configure 330 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.37 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 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. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. 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 egg_ac_parameters CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP CCDEPMODE GCC3 SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC CCDEBUG ZLIB LIBOBJS VERSION NUMVER MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CXX_set=${CXX+set}
  664. ac_env_CXX_value=$CXX
  665. ac_cv_env_CXX_set=${CXX+set}
  666. ac_cv_env_CXX_value=$CXX
  667. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  670. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CXXCPP_set=${CXXCPP+set}
  680. ac_env_CXXCPP_value=$CXXCPP
  681. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  682. ac_cv_env_CXXCPP_value=$CXXCPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Some influential environment variables:
  741. CXX C++ compiler command
  742. CXXFLAGS C++ compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CXXCPP C++ preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. #AC_REQUIRE_CPP
  1152. ac_ext=cc
  1153. ac_cpp='$CXXCPP $CPPFLAGS'
  1154. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1157. ac_ext=cc
  1158. ac_cpp='$CXXCPP $CPPFLAGS'
  1159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1162. if test -n "$ac_tool_prefix"; then
  1163. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1164. do
  1165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1167. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1169. if test "${ac_cv_prog_CXX+set}" = set; then
  1170. echo $ECHO_N "(cached) $ECHO_C" >&6
  1171. else
  1172. if test -n "$CXX"; then
  1173. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1174. else
  1175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1176. for as_dir in $PATH
  1177. do
  1178. IFS=$as_save_IFS
  1179. test -z "$as_dir" && as_dir=.
  1180. for ac_exec_ext in '' $ac_executable_extensions; do
  1181. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1182. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1184. break 2
  1185. fi
  1186. done
  1187. done
  1188. fi
  1189. fi
  1190. CXX=$ac_cv_prog_CXX
  1191. if test -n "$CXX"; then
  1192. echo "$as_me:$LINENO: result: $CXX" >&5
  1193. echo "${ECHO_T}$CXX" >&6
  1194. else
  1195. echo "$as_me:$LINENO: result: no" >&5
  1196. echo "${ECHO_T}no" >&6
  1197. fi
  1198. test -n "$CXX" && break
  1199. done
  1200. fi
  1201. if test -z "$CXX"; then
  1202. ac_ct_CXX=$CXX
  1203. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1204. do
  1205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1206. set dummy $ac_prog; ac_word=$2
  1207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1209. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1210. echo $ECHO_N "(cached) $ECHO_C" >&6
  1211. else
  1212. if test -n "$ac_ct_CXX"; then
  1213. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1214. else
  1215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1216. for as_dir in $PATH
  1217. do
  1218. IFS=$as_save_IFS
  1219. test -z "$as_dir" && as_dir=.
  1220. for ac_exec_ext in '' $ac_executable_extensions; do
  1221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1222. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1224. break 2
  1225. fi
  1226. done
  1227. done
  1228. fi
  1229. fi
  1230. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1231. if test -n "$ac_ct_CXX"; then
  1232. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1233. echo "${ECHO_T}$ac_ct_CXX" >&6
  1234. else
  1235. echo "$as_me:$LINENO: result: no" >&5
  1236. echo "${ECHO_T}no" >&6
  1237. fi
  1238. test -n "$ac_ct_CXX" && break
  1239. done
  1240. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1241. CXX=$ac_ct_CXX
  1242. fi
  1243. # Provide some information about the compiler.
  1244. echo "$as_me:$LINENO:" \
  1245. "checking for C++ compiler version" >&5
  1246. ac_compiler=`set X $ac_compile; echo $2`
  1247. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1248. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1249. ac_status=$?
  1250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1251. (exit $ac_status); }
  1252. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1253. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1254. ac_status=$?
  1255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1256. (exit $ac_status); }
  1257. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1258. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1259. ac_status=$?
  1260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1261. (exit $ac_status); }
  1262. cat >conftest.$ac_ext <<_ACEOF
  1263. /* confdefs.h. */
  1264. _ACEOF
  1265. cat confdefs.h >>conftest.$ac_ext
  1266. cat >>conftest.$ac_ext <<_ACEOF
  1267. /* end confdefs.h. */
  1268. int
  1269. main ()
  1270. {
  1271. ;
  1272. return 0;
  1273. }
  1274. _ACEOF
  1275. ac_clean_files_save=$ac_clean_files
  1276. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1277. # Try to create an executable without -o first, disregard a.out.
  1278. # It will help us diagnose broken compilers, and finding out an intuition
  1279. # of exeext.
  1280. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1281. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1282. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1283. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1284. (eval $ac_link_default) 2>&5
  1285. ac_status=$?
  1286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1287. (exit $ac_status); }; then
  1288. # Find the output, starting from the most likely. This scheme is
  1289. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1290. # resort.
  1291. # Be careful to initialize this variable, since it used to be cached.
  1292. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1293. ac_cv_exeext=
  1294. # b.out is created by i960 compilers.
  1295. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1296. do
  1297. test -f "$ac_file" || continue
  1298. case $ac_file in
  1299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1300. ;;
  1301. conftest.$ac_ext )
  1302. # This is the source file.
  1303. ;;
  1304. [ab].out )
  1305. # We found the default executable, but exeext='' is most
  1306. # certainly right.
  1307. break;;
  1308. *.* )
  1309. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1310. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1311. # but it would be cool to find out if it's true. Does anybody
  1312. # maintain Libtool? --akim.
  1313. export ac_cv_exeext
  1314. break;;
  1315. * )
  1316. break;;
  1317. esac
  1318. done
  1319. else
  1320. echo "$as_me: failed program was:" >&5
  1321. sed 's/^/| /' conftest.$ac_ext >&5
  1322. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1323. See \`config.log' for more details." >&5
  1324. echo "$as_me: error: C++ compiler cannot create executables
  1325. See \`config.log' for more details." >&2;}
  1326. { (exit 77); exit 77; }; }
  1327. fi
  1328. ac_exeext=$ac_cv_exeext
  1329. echo "$as_me:$LINENO: result: $ac_file" >&5
  1330. echo "${ECHO_T}$ac_file" >&6
  1331. # Check the compiler produces executables we can run. If not, either
  1332. # the compiler is broken, or we cross compile.
  1333. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1334. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1335. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1336. # If not cross compiling, check that we can run a simple program.
  1337. if test "$cross_compiling" != yes; then
  1338. if { ac_try='./$ac_file'
  1339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1340. (eval $ac_try) 2>&5
  1341. ac_status=$?
  1342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1343. (exit $ac_status); }; }; then
  1344. cross_compiling=no
  1345. else
  1346. if test "$cross_compiling" = maybe; then
  1347. cross_compiling=yes
  1348. else
  1349. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1350. If you meant to cross compile, use \`--host'.
  1351. See \`config.log' for more details." >&5
  1352. echo "$as_me: error: cannot run C++ compiled programs.
  1353. If you meant to cross compile, use \`--host'.
  1354. See \`config.log' for more details." >&2;}
  1355. { (exit 1); exit 1; }; }
  1356. fi
  1357. fi
  1358. fi
  1359. echo "$as_me:$LINENO: result: yes" >&5
  1360. echo "${ECHO_T}yes" >&6
  1361. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1362. ac_clean_files=$ac_clean_files_save
  1363. # Check the compiler produces executables we can run. If not, either
  1364. # the compiler is broken, or we cross compile.
  1365. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1366. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1367. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1368. echo "${ECHO_T}$cross_compiling" >&6
  1369. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1370. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1372. (eval $ac_link) 2>&5
  1373. ac_status=$?
  1374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1375. (exit $ac_status); }; then
  1376. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1377. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1378. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1379. # `rm'.
  1380. for ac_file in conftest.exe conftest conftest.*; do
  1381. test -f "$ac_file" || continue
  1382. case $ac_file in
  1383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1384. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1385. export ac_cv_exeext
  1386. break;;
  1387. * ) break;;
  1388. esac
  1389. done
  1390. else
  1391. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&5
  1393. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1394. See \`config.log' for more details." >&2;}
  1395. { (exit 1); exit 1; }; }
  1396. fi
  1397. rm -f conftest$ac_cv_exeext
  1398. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1399. echo "${ECHO_T}$ac_cv_exeext" >&6
  1400. rm -f conftest.$ac_ext
  1401. EXEEXT=$ac_cv_exeext
  1402. ac_exeext=$EXEEXT
  1403. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1404. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1405. if test "${ac_cv_objext+set}" = set; then
  1406. echo $ECHO_N "(cached) $ECHO_C" >&6
  1407. else
  1408. cat >conftest.$ac_ext <<_ACEOF
  1409. /* confdefs.h. */
  1410. _ACEOF
  1411. cat confdefs.h >>conftest.$ac_ext
  1412. cat >>conftest.$ac_ext <<_ACEOF
  1413. /* end confdefs.h. */
  1414. int
  1415. main ()
  1416. {
  1417. ;
  1418. return 0;
  1419. }
  1420. _ACEOF
  1421. rm -f conftest.o conftest.obj
  1422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1423. (eval $ac_compile) 2>&5
  1424. ac_status=$?
  1425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1426. (exit $ac_status); }; then
  1427. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1428. case $ac_file in
  1429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1430. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1431. break;;
  1432. esac
  1433. done
  1434. else
  1435. echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&5
  1439. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1440. See \`config.log' for more details." >&2;}
  1441. { (exit 1); exit 1; }; }
  1442. fi
  1443. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1444. fi
  1445. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1446. echo "${ECHO_T}$ac_cv_objext" >&6
  1447. OBJEXT=$ac_cv_objext
  1448. ac_objext=$OBJEXT
  1449. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1450. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1451. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1452. echo $ECHO_N "(cached) $ECHO_C" >&6
  1453. else
  1454. cat >conftest.$ac_ext <<_ACEOF
  1455. /* confdefs.h. */
  1456. _ACEOF
  1457. cat confdefs.h >>conftest.$ac_ext
  1458. cat >>conftest.$ac_ext <<_ACEOF
  1459. /* end confdefs.h. */
  1460. int
  1461. main ()
  1462. {
  1463. #ifndef __GNUC__
  1464. choke me
  1465. #endif
  1466. ;
  1467. return 0;
  1468. }
  1469. _ACEOF
  1470. rm -f conftest.$ac_objext
  1471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1472. (eval $ac_compile) 2>conftest.er1
  1473. ac_status=$?
  1474. grep -v '^ *+' conftest.er1 >conftest.err
  1475. rm -f conftest.er1
  1476. cat conftest.err >&5
  1477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1478. (exit $ac_status); } &&
  1479. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1481. (eval $ac_try) 2>&5
  1482. ac_status=$?
  1483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1484. (exit $ac_status); }; } &&
  1485. { ac_try='test -s conftest.$ac_objext'
  1486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1487. (eval $ac_try) 2>&5
  1488. ac_status=$?
  1489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1490. (exit $ac_status); }; }; then
  1491. ac_compiler_gnu=yes
  1492. else
  1493. echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_compiler_gnu=no
  1496. fi
  1497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1498. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1499. fi
  1500. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1501. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1502. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1503. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1504. ac_save_CXXFLAGS=$CXXFLAGS
  1505. CXXFLAGS="-g"
  1506. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1507. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1508. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1509. echo $ECHO_N "(cached) $ECHO_C" >&6
  1510. else
  1511. cat >conftest.$ac_ext <<_ACEOF
  1512. /* confdefs.h. */
  1513. _ACEOF
  1514. cat confdefs.h >>conftest.$ac_ext
  1515. cat >>conftest.$ac_ext <<_ACEOF
  1516. /* end confdefs.h. */
  1517. int
  1518. main ()
  1519. {
  1520. ;
  1521. return 0;
  1522. }
  1523. _ACEOF
  1524. rm -f conftest.$ac_objext
  1525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1526. (eval $ac_compile) 2>conftest.er1
  1527. ac_status=$?
  1528. grep -v '^ *+' conftest.er1 >conftest.err
  1529. rm -f conftest.er1
  1530. cat conftest.err >&5
  1531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1532. (exit $ac_status); } &&
  1533. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1535. (eval $ac_try) 2>&5
  1536. ac_status=$?
  1537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1538. (exit $ac_status); }; } &&
  1539. { ac_try='test -s conftest.$ac_objext'
  1540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1541. (eval $ac_try) 2>&5
  1542. ac_status=$?
  1543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1544. (exit $ac_status); }; }; then
  1545. ac_cv_prog_cxx_g=yes
  1546. else
  1547. echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_cv_prog_cxx_g=no
  1550. fi
  1551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1552. fi
  1553. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1554. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1555. if test "$ac_test_CXXFLAGS" = set; then
  1556. CXXFLAGS=$ac_save_CXXFLAGS
  1557. elif test $ac_cv_prog_cxx_g = yes; then
  1558. if test "$GXX" = yes; then
  1559. CXXFLAGS="-g -O2"
  1560. else
  1561. CXXFLAGS="-g"
  1562. fi
  1563. else
  1564. if test "$GXX" = yes; then
  1565. CXXFLAGS="-O2"
  1566. else
  1567. CXXFLAGS=
  1568. fi
  1569. fi
  1570. for ac_declaration in \
  1571. '' \
  1572. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1573. 'extern "C" void std::exit (int); using std::exit;' \
  1574. 'extern "C" void exit (int) throw ();' \
  1575. 'extern "C" void exit (int);' \
  1576. 'void exit (int);'
  1577. do
  1578. cat >conftest.$ac_ext <<_ACEOF
  1579. /* confdefs.h. */
  1580. _ACEOF
  1581. cat confdefs.h >>conftest.$ac_ext
  1582. cat >>conftest.$ac_ext <<_ACEOF
  1583. /* end confdefs.h. */
  1584. $ac_declaration
  1585. #include <stdlib.h>
  1586. int
  1587. main ()
  1588. {
  1589. exit (42);
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. rm -f conftest.$ac_objext
  1595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1596. (eval $ac_compile) 2>conftest.er1
  1597. ac_status=$?
  1598. grep -v '^ *+' conftest.er1 >conftest.err
  1599. rm -f conftest.er1
  1600. cat conftest.err >&5
  1601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1602. (exit $ac_status); } &&
  1603. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1605. (eval $ac_try) 2>&5
  1606. ac_status=$?
  1607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1608. (exit $ac_status); }; } &&
  1609. { ac_try='test -s conftest.$ac_objext'
  1610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1611. (eval $ac_try) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1614. (exit $ac_status); }; }; then
  1615. :
  1616. else
  1617. echo "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. continue
  1620. fi
  1621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. cat >conftest.$ac_ext <<_ACEOF
  1623. /* confdefs.h. */
  1624. _ACEOF
  1625. cat confdefs.h >>conftest.$ac_ext
  1626. cat >>conftest.$ac_ext <<_ACEOF
  1627. /* end confdefs.h. */
  1628. $ac_declaration
  1629. int
  1630. main ()
  1631. {
  1632. exit (42);
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. rm -f conftest.$ac_objext
  1638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1639. (eval $ac_compile) 2>conftest.er1
  1640. ac_status=$?
  1641. grep -v '^ *+' conftest.er1 >conftest.err
  1642. rm -f conftest.er1
  1643. cat conftest.err >&5
  1644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1645. (exit $ac_status); } &&
  1646. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1648. (eval $ac_try) 2>&5
  1649. ac_status=$?
  1650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1651. (exit $ac_status); }; } &&
  1652. { ac_try='test -s conftest.$ac_objext'
  1653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1654. (eval $ac_try) 2>&5
  1655. ac_status=$?
  1656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1657. (exit $ac_status); }; }; then
  1658. break
  1659. else
  1660. echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. fi
  1663. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. done
  1665. rm -f conftest*
  1666. if test -n "$ac_declaration"; then
  1667. echo '#ifdef __cplusplus' >>confdefs.h
  1668. echo $ac_declaration >>confdefs.h
  1669. echo '#endif' >>confdefs.h
  1670. fi
  1671. ac_ext=cc
  1672. ac_cpp='$CXXCPP $CPPFLAGS'
  1673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1676. if test "${cross_compiling-x}" = "x"
  1677. then
  1678. cat << 'EOF' >&2
  1679. configure: error:
  1680. This system does not appear to have a working C compiler.
  1681. A working C compiler is required to compile Eggdrop.
  1682. EOF
  1683. exit 1
  1684. fi
  1685. if test -n "$GXX"; then
  1686. CXXFLAGS="$CXXFLAGS -O3"
  1687. fi
  1688. # Crazy machines
  1689. ac_ext=cc
  1690. ac_cpp='$CXXCPP $CPPFLAGS'
  1691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1694. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  1695. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  1696. if test -z "$CXXCPP"; then
  1697. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. # Double quotes because CXXCPP needs to be expanded
  1701. for CXXCPP in "$CXX -E" "/lib/cpp"
  1702. do
  1703. ac_preproc_ok=false
  1704. for ac_cxx_preproc_warn_flag in '' yes
  1705. do
  1706. # Use a header file that comes with gcc, so configuring glibc
  1707. # with a fresh cross-compiler works.
  1708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1709. # <limits.h> exists even on freestanding compilers.
  1710. # On the NeXT, cc -E runs the code through the compiler's parser,
  1711. # not just through cpp. "Syntax error" is here to catch this case.
  1712. cat >conftest.$ac_ext <<_ACEOF
  1713. /* confdefs.h. */
  1714. _ACEOF
  1715. cat confdefs.h >>conftest.$ac_ext
  1716. cat >>conftest.$ac_ext <<_ACEOF
  1717. /* end confdefs.h. */
  1718. #ifdef __STDC__
  1719. # include <limits.h>
  1720. #else
  1721. # include <assert.h>
  1722. #endif
  1723. Syntax error
  1724. _ACEOF
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1726. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1727. ac_status=$?
  1728. grep -v '^ *+' conftest.er1 >conftest.err
  1729. rm -f conftest.er1
  1730. cat conftest.err >&5
  1731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); } >/dev/null; then
  1733. if test -s conftest.err; then
  1734. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1735. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1736. else
  1737. ac_cpp_err=
  1738. fi
  1739. else
  1740. ac_cpp_err=yes
  1741. fi
  1742. if test -z "$ac_cpp_err"; then
  1743. :
  1744. else
  1745. echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. # Broken: fails on valid input.
  1748. continue
  1749. fi
  1750. rm -f conftest.err conftest.$ac_ext
  1751. # OK, works on sane cases. Now check whether non-existent headers
  1752. # can be detected and how.
  1753. cat >conftest.$ac_ext <<_ACEOF
  1754. /* confdefs.h. */
  1755. _ACEOF
  1756. cat confdefs.h >>conftest.$ac_ext
  1757. cat >>conftest.$ac_ext <<_ACEOF
  1758. /* end confdefs.h. */
  1759. #include <ac_nonexistent.h>
  1760. _ACEOF
  1761. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1762. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1763. ac_status=$?
  1764. grep -v '^ *+' conftest.er1 >conftest.err
  1765. rm -f conftest.er1
  1766. cat conftest.err >&5
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); } >/dev/null; then
  1769. if test -s conftest.err; then
  1770. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1771. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1772. else
  1773. ac_cpp_err=
  1774. fi
  1775. else
  1776. ac_cpp_err=yes
  1777. fi
  1778. if test -z "$ac_cpp_err"; then
  1779. # Broken: success on invalid input.
  1780. continue
  1781. else
  1782. echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. # Passes both tests.
  1785. ac_preproc_ok=:
  1786. break
  1787. fi
  1788. rm -f conftest.err conftest.$ac_ext
  1789. done
  1790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1791. rm -f conftest.err conftest.$ac_ext
  1792. if $ac_preproc_ok; then
  1793. break
  1794. fi
  1795. done
  1796. ac_cv_prog_CXXCPP=$CXXCPP
  1797. fi
  1798. CXXCPP=$ac_cv_prog_CXXCPP
  1799. else
  1800. ac_cv_prog_CXXCPP=$CXXCPP
  1801. fi
  1802. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  1803. echo "${ECHO_T}$CXXCPP" >&6
  1804. ac_preproc_ok=false
  1805. for ac_cxx_preproc_warn_flag in '' yes
  1806. do
  1807. # Use a header file that comes with gcc, so configuring glibc
  1808. # with a fresh cross-compiler works.
  1809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1810. # <limits.h> exists even on freestanding compilers.
  1811. # On the NeXT, cc -E runs the code through the compiler's parser,
  1812. # not just through cpp. "Syntax error" is here to catch this case.
  1813. cat >conftest.$ac_ext <<_ACEOF
  1814. /* confdefs.h. */
  1815. _ACEOF
  1816. cat confdefs.h >>conftest.$ac_ext
  1817. cat >>conftest.$ac_ext <<_ACEOF
  1818. /* end confdefs.h. */
  1819. #ifdef __STDC__
  1820. # include <limits.h>
  1821. #else
  1822. # include <assert.h>
  1823. #endif
  1824. Syntax error
  1825. _ACEOF
  1826. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1827. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1828. ac_status=$?
  1829. grep -v '^ *+' conftest.er1 >conftest.err
  1830. rm -f conftest.er1
  1831. cat conftest.err >&5
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); } >/dev/null; then
  1834. if test -s conftest.err; then
  1835. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1836. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1837. else
  1838. ac_cpp_err=
  1839. fi
  1840. else
  1841. ac_cpp_err=yes
  1842. fi
  1843. if test -z "$ac_cpp_err"; then
  1844. :
  1845. else
  1846. echo "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. # Broken: fails on valid input.
  1849. continue
  1850. fi
  1851. rm -f conftest.err conftest.$ac_ext
  1852. # OK, works on sane cases. Now check whether non-existent headers
  1853. # can be detected and how.
  1854. cat >conftest.$ac_ext <<_ACEOF
  1855. /* confdefs.h. */
  1856. _ACEOF
  1857. cat confdefs.h >>conftest.$ac_ext
  1858. cat >>conftest.$ac_ext <<_ACEOF
  1859. /* end confdefs.h. */
  1860. #include <ac_nonexistent.h>
  1861. _ACEOF
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1863. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } >/dev/null; then
  1870. if test -s conftest.err; then
  1871. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1872. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1873. else
  1874. ac_cpp_err=
  1875. fi
  1876. else
  1877. ac_cpp_err=yes
  1878. fi
  1879. if test -z "$ac_cpp_err"; then
  1880. # Broken: success on invalid input.
  1881. continue
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. # Passes both tests.
  1886. ac_preproc_ok=:
  1887. break
  1888. fi
  1889. rm -f conftest.err conftest.$ac_ext
  1890. done
  1891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1892. rm -f conftest.err conftest.$ac_ext
  1893. if $ac_preproc_ok; then
  1894. :
  1895. else
  1896. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1897. See \`config.log' for more details." >&5
  1898. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1899. See \`config.log' for more details." >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. ac_ext=cc
  1903. ac_cpp='$CXXCPP $CPPFLAGS'
  1904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1907. echo "$as_me:$LINENO: checking for egrep" >&5
  1908. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  1909. if test "${ac_cv_prog_egrep+set}" = set; then
  1910. echo $ECHO_N "(cached) $ECHO_C" >&6
  1911. else
  1912. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1913. then ac_cv_prog_egrep='grep -E'
  1914. else ac_cv_prog_egrep='egrep'
  1915. fi
  1916. fi
  1917. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  1918. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  1919. EGREP=$ac_cv_prog_egrep
  1920. echo "$as_me:$LINENO: checking for AIX" >&5
  1921. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  1922. cat >conftest.$ac_ext <<_ACEOF
  1923. /* confdefs.h. */
  1924. _ACEOF
  1925. cat confdefs.h >>conftest.$ac_ext
  1926. cat >>conftest.$ac_ext <<_ACEOF
  1927. /* end confdefs.h. */
  1928. #ifdef _AIX
  1929. yes
  1930. #endif
  1931. _ACEOF
  1932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1933. $EGREP "yes" >/dev/null 2>&1; then
  1934. echo "$as_me:$LINENO: result: yes" >&5
  1935. echo "${ECHO_T}yes" >&6
  1936. cat >>confdefs.h <<\_ACEOF
  1937. #define _ALL_SOURCE 1
  1938. _ACEOF
  1939. else
  1940. echo "$as_me:$LINENO: result: no" >&5
  1941. echo "${ECHO_T}no" >&6
  1942. fi
  1943. rm -f conftest*
  1944. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  1945. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  1946. if test "${ac_cv_search_strerror+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_func_search_save_LIBS=$LIBS
  1950. ac_cv_search_strerror=no
  1951. cat >conftest.$ac_ext <<_ACEOF
  1952. /* confdefs.h. */
  1953. _ACEOF
  1954. cat confdefs.h >>conftest.$ac_ext
  1955. cat >>conftest.$ac_ext <<_ACEOF
  1956. /* end confdefs.h. */
  1957. /* Override any gcc2 internal prototype to avoid an error. */
  1958. #ifdef __cplusplus
  1959. extern "C"
  1960. #endif
  1961. /* We use char because int might match the return type of a gcc2
  1962. builtin and then its argument prototype would still apply. */
  1963. char strerror ();
  1964. int
  1965. main ()
  1966. {
  1967. strerror ();
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. rm -f conftest.$ac_objext conftest$ac_exeext
  1973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1974. (eval $ac_link) 2>conftest.er1
  1975. ac_status=$?
  1976. grep -v '^ *+' conftest.er1 >conftest.err
  1977. rm -f conftest.er1
  1978. cat conftest.err >&5
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); } &&
  1981. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1983. (eval $ac_try) 2>&5
  1984. ac_status=$?
  1985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1986. (exit $ac_status); }; } &&
  1987. { ac_try='test -s conftest$ac_exeext'
  1988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1989. (eval $ac_try) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; }; then
  1993. ac_cv_search_strerror="none required"
  1994. else
  1995. echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. fi
  1998. rm -f conftest.err conftest.$ac_objext \
  1999. conftest$ac_exeext conftest.$ac_ext
  2000. if test "$ac_cv_search_strerror" = no; then
  2001. for ac_lib in cposix; do
  2002. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2003. cat >conftest.$ac_ext <<_ACEOF
  2004. /* confdefs.h. */
  2005. _ACEOF
  2006. cat confdefs.h >>conftest.$ac_ext
  2007. cat >>conftest.$ac_ext <<_ACEOF
  2008. /* end confdefs.h. */
  2009. /* Override any gcc2 internal prototype to avoid an error. */
  2010. #ifdef __cplusplus
  2011. extern "C"
  2012. #endif
  2013. /* We use char because int might match the return type of a gcc2
  2014. builtin and then its argument prototype would still apply. */
  2015. char strerror ();
  2016. int
  2017. main ()
  2018. {
  2019. strerror ();
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2026. (eval $ac_link) 2>conftest.er1
  2027. ac_status=$?
  2028. grep -v '^ *+' conftest.er1 >conftest.err
  2029. rm -f conftest.er1
  2030. cat conftest.err >&5
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); } &&
  2033. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; } &&
  2039. { ac_try='test -s conftest$ac_exeext'
  2040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2041. (eval $ac_try) 2>&5
  2042. ac_status=$?
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); }; }; then
  2045. ac_cv_search_strerror="-l$ac_lib"
  2046. break
  2047. else
  2048. echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. fi
  2051. rm -f conftest.err conftest.$ac_objext \
  2052. conftest$ac_exeext conftest.$ac_ext
  2053. done
  2054. fi
  2055. LIBS=$ac_func_search_save_LIBS
  2056. fi
  2057. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2058. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2059. if test "$ac_cv_search_strerror" != no; then
  2060. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2061. fi
  2062. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2063. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2064. if test "${ac_cv_header_stdc+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #include <stdlib.h>
  2074. #include <stdarg.h>
  2075. #include <string.h>
  2076. #include <float.h>
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.$ac_objext
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2086. (eval $ac_compile) 2>conftest.er1
  2087. ac_status=$?
  2088. grep -v '^ *+' conftest.er1 >conftest.err
  2089. rm -f conftest.er1
  2090. cat conftest.err >&5
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); } &&
  2093. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2095. (eval $ac_try) 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; } &&
  2099. { ac_try='test -s conftest.$ac_objext'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; }; then
  2105. ac_cv_header_stdc=yes
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. ac_cv_header_stdc=no
  2110. fi
  2111. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. if test $ac_cv_header_stdc = yes; then
  2113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2114. cat >conftest.$ac_ext <<_ACEOF
  2115. /* confdefs.h. */
  2116. _ACEOF
  2117. cat confdefs.h >>conftest.$ac_ext
  2118. cat >>conftest.$ac_ext <<_ACEOF
  2119. /* end confdefs.h. */
  2120. #include <string.h>
  2121. _ACEOF
  2122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2123. $EGREP "memchr" >/dev/null 2>&1; then
  2124. :
  2125. else
  2126. ac_cv_header_stdc=no
  2127. fi
  2128. rm -f conftest*
  2129. fi
  2130. if test $ac_cv_header_stdc = yes; then
  2131. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2132. cat >conftest.$ac_ext <<_ACEOF
  2133. /* confdefs.h. */
  2134. _ACEOF
  2135. cat confdefs.h >>conftest.$ac_ext
  2136. cat >>conftest.$ac_ext <<_ACEOF
  2137. /* end confdefs.h. */
  2138. #include <stdlib.h>
  2139. _ACEOF
  2140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2141. $EGREP "free" >/dev/null 2>&1; then
  2142. :
  2143. else
  2144. ac_cv_header_stdc=no
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148. if test $ac_cv_header_stdc = yes; then
  2149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2150. if test "$cross_compiling" = yes; then
  2151. :
  2152. else
  2153. cat >conftest.$ac_ext <<_ACEOF
  2154. /* confdefs.h. */
  2155. _ACEOF
  2156. cat confdefs.h >>conftest.$ac_ext
  2157. cat >>conftest.$ac_ext <<_ACEOF
  2158. /* end confdefs.h. */
  2159. #include <ctype.h>
  2160. #if ((' ' & 0x0FF) == 0x020)
  2161. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2162. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2163. #else
  2164. # define ISLOWER(c) \
  2165. (('a' <= (c) && (c) <= 'i') \
  2166. || ('j' <= (c) && (c) <= 'r') \
  2167. || ('s' <= (c) && (c) <= 'z'))
  2168. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2169. #endif
  2170. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2171. int
  2172. main ()
  2173. {
  2174. int i;
  2175. for (i = 0; i < 256; i++)
  2176. if (XOR (islower (i), ISLOWER (i))
  2177. || toupper (i) != TOUPPER (i))
  2178. exit(2);
  2179. exit (0);
  2180. }
  2181. _ACEOF
  2182. rm -f conftest$ac_exeext
  2183. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2184. (eval $ac_link) 2>&5
  2185. ac_status=$?
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; }; then
  2193. :
  2194. else
  2195. echo "$as_me: program exited with status $ac_status" >&5
  2196. echo "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. ( exit $ac_status )
  2199. ac_cv_header_stdc=no
  2200. fi
  2201. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. fi
  2204. fi
  2205. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2206. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2207. if test $ac_cv_header_stdc = yes; then
  2208. cat >>confdefs.h <<\_ACEOF
  2209. #define STDC_HEADERS 1
  2210. _ACEOF
  2211. fi
  2212. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2213. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2214. inttypes.h stdint.h unistd.h
  2215. do
  2216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2217. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2219. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2220. echo $ECHO_N "(cached) $ECHO_C" >&6
  2221. else
  2222. cat >conftest.$ac_ext <<_ACEOF
  2223. /* confdefs.h. */
  2224. _ACEOF
  2225. cat confdefs.h >>conftest.$ac_ext
  2226. cat >>conftest.$ac_ext <<_ACEOF
  2227. /* end confdefs.h. */
  2228. $ac_includes_default
  2229. #include <$ac_header>
  2230. _ACEOF
  2231. rm -f conftest.$ac_objext
  2232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2233. (eval $ac_compile) 2>conftest.er1
  2234. ac_status=$?
  2235. grep -v '^ *+' conftest.er1 >conftest.err
  2236. rm -f conftest.er1
  2237. cat conftest.err >&5
  2238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2239. (exit $ac_status); } &&
  2240. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2242. (eval $ac_try) 2>&5
  2243. ac_status=$?
  2244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); }; } &&
  2246. { ac_try='test -s conftest.$ac_objext'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; }; then
  2252. eval "$as_ac_Header=yes"
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. eval "$as_ac_Header=no"
  2257. fi
  2258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. fi
  2260. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2261. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2265. _ACEOF
  2266. fi
  2267. done
  2268. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2269. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2270. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2271. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. fi
  2274. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2275. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2276. else
  2277. # Is the header compilable?
  2278. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2279. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2280. cat >conftest.$ac_ext <<_ACEOF
  2281. /* confdefs.h. */
  2282. _ACEOF
  2283. cat confdefs.h >>conftest.$ac_ext
  2284. cat >>conftest.$ac_ext <<_ACEOF
  2285. /* end confdefs.h. */
  2286. $ac_includes_default
  2287. #include <minix/config.h>
  2288. _ACEOF
  2289. rm -f conftest.$ac_objext
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2291. (eval $ac_compile) 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } &&
  2298. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. ac_header_compiler=yes
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. ac_header_compiler=no
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2318. echo "${ECHO_T}$ac_header_compiler" >&6
  2319. # Is the header present?
  2320. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2321. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2322. cat >conftest.$ac_ext <<_ACEOF
  2323. /* confdefs.h. */
  2324. _ACEOF
  2325. cat confdefs.h >>conftest.$ac_ext
  2326. cat >>conftest.$ac_ext <<_ACEOF
  2327. /* end confdefs.h. */
  2328. #include <minix/config.h>
  2329. _ACEOF
  2330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2331. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2332. ac_status=$?
  2333. grep -v '^ *+' conftest.er1 >conftest.err
  2334. rm -f conftest.er1
  2335. cat conftest.err >&5
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); } >/dev/null; then
  2338. if test -s conftest.err; then
  2339. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2340. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2341. else
  2342. ac_cpp_err=
  2343. fi
  2344. else
  2345. ac_cpp_err=yes
  2346. fi
  2347. if test -z "$ac_cpp_err"; then
  2348. ac_header_preproc=yes
  2349. else
  2350. echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. ac_header_preproc=no
  2353. fi
  2354. rm -f conftest.err conftest.$ac_ext
  2355. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2356. echo "${ECHO_T}$ac_header_preproc" >&6
  2357. # So? What about this header?
  2358. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2359. yes:no: )
  2360. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2361. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2362. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2363. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2364. ac_header_preproc=yes
  2365. ;;
  2366. no:yes:* )
  2367. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2368. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2369. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2370. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2371. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2372. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2373. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2374. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2375. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2376. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2377. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2378. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2379. (
  2380. cat <<\_ASBOX
  2381. ## ------------------------------------------ ##
  2382. ## Report this to the AC_PACKAGE_NAME lists. ##
  2383. ## ------------------------------------------ ##
  2384. _ASBOX
  2385. ) |
  2386. sed "s/^/$as_me: WARNING: /" >&2
  2387. ;;
  2388. esac
  2389. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2390. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2391. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2392. echo $ECHO_N "(cached) $ECHO_C" >&6
  2393. else
  2394. ac_cv_header_minix_config_h=$ac_header_preproc
  2395. fi
  2396. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2397. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2398. fi
  2399. if test $ac_cv_header_minix_config_h = yes; then
  2400. MINIX=yes
  2401. else
  2402. MINIX=
  2403. fi
  2404. if test "$MINIX" = yes; then
  2405. cat >>confdefs.h <<\_ACEOF
  2406. #define _POSIX_SOURCE 1
  2407. _ACEOF
  2408. cat >>confdefs.h <<\_ACEOF
  2409. #define _POSIX_1_SOURCE 2
  2410. _ACEOF
  2411. cat >>confdefs.h <<\_ACEOF
  2412. #define _MINIX 1
  2413. _ACEOF
  2414. fi
  2415. #checkpoint
  2416. cat >confcache <<\_ACEOF
  2417. # This file is a shell script that caches the results of configure
  2418. # tests run on this system so they can be shared between configure
  2419. # scripts and configure runs, see configure's option --config-cache.
  2420. # It is not useful on other systems. If it contains results you don't
  2421. # want to keep, you may remove or edit it.
  2422. #
  2423. # config.status only pays attention to the cache file if you give it
  2424. # the --recheck option to rerun configure.
  2425. #
  2426. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2427. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2428. # following values.
  2429. _ACEOF
  2430. # The following way of writing the cache mishandles newlines in values,
  2431. # but we know of no workaround that is simple, portable, and efficient.
  2432. # So, don't put newlines in cache variables' values.
  2433. # Ultrix sh set writes to stderr and can't be redirected directly,
  2434. # and sets the high bit in the cache file unless we assign to the vars.
  2435. {
  2436. (set) 2>&1 |
  2437. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2438. *ac_space=\ *)
  2439. # `set' does not quote correctly, so add quotes (double-quote
  2440. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2441. sed -n \
  2442. "s/'/'\\\\''/g;
  2443. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2444. ;;
  2445. *)
  2446. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2447. sed -n \
  2448. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2449. ;;
  2450. esac;
  2451. } |
  2452. sed '
  2453. t clear
  2454. : clear
  2455. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2456. t end
  2457. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2458. : end' >>confcache
  2459. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2460. if test -w $cache_file; then
  2461. test "x$cache_file" != "x/dev/null"
  2462. cat confcache >$cache_file
  2463. else
  2464. echo "not updating unwritable cache $cache_file"
  2465. fi
  2466. fi
  2467. rm -f confcache
  2468. # Speedup compile
  2469. if test -n "$GXX" && test -z "$no_wall"; then
  2470. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2471. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2472. if test "${egg_cv_var_ccwall+set}" = set; then
  2473. echo $ECHO_N "(cached) $ECHO_C" >&6
  2474. else
  2475. ac_old_CXXFLAGS="$CXXFLAGS"
  2476. CXXFLAGS="$CXXFLAGS -Wall"
  2477. cat >conftest.$ac_ext <<_ACEOF
  2478. int main ()
  2479. {
  2480. return(0);
  2481. }
  2482. _ACEOF
  2483. rm -f conftest.$ac_objext
  2484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2485. (eval $ac_compile) 2>conftest.er1
  2486. ac_status=$?
  2487. grep -v '^ *+' conftest.er1 >conftest.err
  2488. rm -f conftest.er1
  2489. cat conftest.err >&5
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); } &&
  2492. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2494. (eval $ac_try) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }; } &&
  2498. { ac_try='test -s conftest.$ac_objext'
  2499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2500. (eval $ac_try) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; }; then
  2504. egg_cv_var_ccwall="yes"
  2505. else
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. egg_cv_var_ccwall="no"
  2509. fi
  2510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2511. CXXFLAGS="$ac_old_CXXFLAGS"
  2512. fi
  2513. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2514. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2515. if test "$egg_cv_var_ccwall" = "yes"; then
  2516. CXXFLAGS="$CXXFLAGS -Wall"
  2517. fi
  2518. fi
  2519. if test -n "$GXX" && test -z "$no_pipe"; then
  2520. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2521. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2522. if test "${egg_cv_var_ccpipe+set}" = set; then
  2523. echo $ECHO_N "(cached) $ECHO_C" >&6
  2524. else
  2525. ac_old_CXX="$CXX"
  2526. CXX="$CXX -pipe"
  2527. cat >conftest.$ac_ext <<_ACEOF
  2528. int main ()
  2529. {
  2530. return(0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. egg_cv_var_ccpipe="yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. egg_cv_var_ccpipe="no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. CXX="$ac_old_CXX"
  2562. fi
  2563. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2564. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2565. if test "$egg_cv_var_ccpipe" = "yes"; then
  2566. CXX="$CXX -pipe"
  2567. fi
  2568. fi
  2569. CCDEPMODE=gcc
  2570. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2571. if test $num = "3"; then
  2572. CCDEPMODE=gcc3
  2573. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2574. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  2575. fi
  2576. #checkpoint
  2577. cat >confcache <<\_ACEOF
  2578. # This file is a shell script that caches the results of configure
  2579. # tests run on this system so they can be shared between configure
  2580. # scripts and configure runs, see configure's option --config-cache.
  2581. # It is not useful on other systems. If it contains results you don't
  2582. # want to keep, you may remove or edit it.
  2583. #
  2584. # config.status only pays attention to the cache file if you give it
  2585. # the --recheck option to rerun configure.
  2586. #
  2587. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2588. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2589. # following values.
  2590. _ACEOF
  2591. # The following way of writing the cache mishandles newlines in values,
  2592. # but we know of no workaround that is simple, portable, and efficient.
  2593. # So, don't put newlines in cache variables' values.
  2594. # Ultrix sh set writes to stderr and can't be redirected directly,
  2595. # and sets the high bit in the cache file unless we assign to the vars.
  2596. {
  2597. (set) 2>&1 |
  2598. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2599. *ac_space=\ *)
  2600. # `set' does not quote correctly, so add quotes (double-quote
  2601. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2602. sed -n \
  2603. "s/'/'\\\\''/g;
  2604. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2605. ;;
  2606. *)
  2607. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2608. sed -n \
  2609. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2610. ;;
  2611. esac;
  2612. } |
  2613. sed '
  2614. t clear
  2615. : clear
  2616. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2617. t end
  2618. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2619. : end' >>confcache
  2620. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2621. if test -w $cache_file; then
  2622. test "x$cache_file" != "x/dev/null"
  2623. cat confcache >$cache_file
  2624. else
  2625. echo "not updating unwritable cache $cache_file"
  2626. fi
  2627. fi
  2628. rm -f confcache
  2629. # Checks for programs
  2630. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2631. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2632. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2633. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.make <<\_ACEOF
  2637. all:
  2638. @echo 'ac_maketemp="$(MAKE)"'
  2639. _ACEOF
  2640. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2641. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2642. if test -n "$ac_maketemp"; then
  2643. eval ac_cv_prog_make_${ac_make}_set=yes
  2644. else
  2645. eval ac_cv_prog_make_${ac_make}_set=no
  2646. fi
  2647. rm -f conftest.make
  2648. fi
  2649. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2650. echo "$as_me:$LINENO: result: yes" >&5
  2651. echo "${ECHO_T}yes" >&6
  2652. SET_MAKE=
  2653. else
  2654. echo "$as_me:$LINENO: result: no" >&5
  2655. echo "${ECHO_T}no" >&6
  2656. SET_MAKE="MAKE=${MAKE-make}"
  2657. fi
  2658. cat << 'EOF' > conftest.head
  2659. a
  2660. b
  2661. c
  2662. EOF
  2663. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2664. do
  2665. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2666. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2667. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2668. echo $ECHO_N "(cached) $ECHO_C" >&6
  2669. else
  2670. if test -n "$HEAD_1"
  2671. then
  2672. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2673. else
  2674. if test "`cat conftest.head | $ac_prog`" = "a";
  2675. then
  2676. echo "$as_me:$LINENO: result: yes" >&5
  2677. echo "${ECHO_T}yes" >&6
  2678. ac_cv_prog_HEAD_1=$ac_prog
  2679. else
  2680. echo "$as_me:$LINENO: result: no" >&5
  2681. echo "${ECHO_T}no" >&6
  2682. fi
  2683. fi
  2684. fi
  2685. test -n "$ac_cv_prog_HEAD_1" && break
  2686. done
  2687. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2688. then
  2689. cat << 'EOF' >&2
  2690. configure: error:
  2691. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2692. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2693. EOF
  2694. exit 1
  2695. fi
  2696. rm -f conftest.head
  2697. HEAD_1=$ac_cv_prog_HEAD_1
  2698. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2699. for ac_prog in gawk mawk nawk awk
  2700. do
  2701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2702. set dummy $ac_prog; ac_word=$2
  2703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2705. if test "${ac_cv_prog_AWK+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. if test -n "$AWK"; then
  2709. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_AWK="$ac_prog"
  2719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. fi
  2725. fi
  2726. AWK=$ac_cv_prog_AWK
  2727. if test -n "$AWK"; then
  2728. echo "$as_me:$LINENO: result: $AWK" >&5
  2729. echo "${ECHO_T}$AWK" >&6
  2730. else
  2731. echo "$as_me:$LINENO: result: no" >&5
  2732. echo "${ECHO_T}no" >&6
  2733. fi
  2734. test -n "$AWK" && break
  2735. done
  2736. if test "${AWK-x}" = "x"
  2737. then
  2738. cat << 'EOF' >&2
  2739. configure: error:
  2740. This system seems to lack a working 'awk' command.
  2741. A working 'awk' command is required to compile Eggdrop.
  2742. EOF
  2743. exit 1
  2744. fi
  2745. # basename is needed for Tcl library and header checks
  2746. # Extract the first word of "basename", so it can be a program name with args.
  2747. set dummy basename; ac_word=$2
  2748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2750. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2751. echo $ECHO_N "(cached) $ECHO_C" >&6
  2752. else
  2753. if test -n "$BASENAME"; then
  2754. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_BASENAME="basename"
  2764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. fi
  2770. fi
  2771. BASENAME=$ac_cv_prog_BASENAME
  2772. if test -n "$BASENAME"; then
  2773. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2774. echo "${ECHO_T}$BASENAME" >&6
  2775. else
  2776. echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6
  2778. fi
  2779. if test "${BASENAME-x}" = "x"
  2780. then
  2781. cat << 'EOF' >&2
  2782. configure: error:
  2783. This system seems to lack a working 'basename' command.
  2784. A working 'basename' command is required to compile Eggdrop.
  2785. EOF
  2786. exit 1
  2787. fi
  2788. # Extract the first word of "objcopy", so it can be a program name with args.
  2789. set dummy objcopy; ac_word=$2
  2790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2792. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2793. echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. else
  2795. if test -n "$OBJCOPY"; then
  2796. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2812. fi
  2813. fi
  2814. OBJCOPY=$ac_cv_prog_OBJCOPY
  2815. if test -n "$OBJCOPY"; then
  2816. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2817. echo "${ECHO_T}$OBJCOPY" >&6
  2818. else
  2819. echo "$as_me:$LINENO: result: no" >&5
  2820. echo "${ECHO_T}no" >&6
  2821. fi
  2822. # Extract the first word of "strip", so it can be a program name with args.
  2823. set dummy strip; ac_word=$2
  2824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2826. if test "${ac_cv_prog_STRIP+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. if test -n "$STRIP"; then
  2830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_STRIP="strip"
  2840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2846. fi
  2847. fi
  2848. STRIP=$ac_cv_prog_STRIP
  2849. if test -n "$STRIP"; then
  2850. echo "$as_me:$LINENO: result: $STRIP" >&5
  2851. echo "${ECHO_T}$STRIP" >&6
  2852. else
  2853. echo "$as_me:$LINENO: result: no" >&5
  2854. echo "${ECHO_T}no" >&6
  2855. fi
  2856. # Extract the first word of "uname", so it can be a program name with args.
  2857. set dummy uname; ac_word=$2
  2858. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2859. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2860. if test "${ac_cv_prog_UNAME+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. if test -n "$UNAME"; then
  2864. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_exec_ext in '' $ac_executable_extensions; do
  2872. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2873. ac_cv_prog_UNAME="uname"
  2874. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2875. break 2
  2876. fi
  2877. done
  2878. done
  2879. fi
  2880. fi
  2881. UNAME=$ac_cv_prog_UNAME
  2882. if test -n "$UNAME"; then
  2883. echo "$as_me:$LINENO: result: $UNAME" >&5
  2884. echo "${ECHO_T}$UNAME" >&6
  2885. else
  2886. echo "$as_me:$LINENO: result: no" >&5
  2887. echo "${ECHO_T}no" >&6
  2888. fi
  2889. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  2890. # Extract the first word of "distcc", so it can be a program name with args.
  2891. set dummy distcc; ac_word=$2
  2892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2894. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2895. echo $ECHO_N "(cached) $ECHO_C" >&6
  2896. else
  2897. if test -n "$DISTCC"; then
  2898. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_DISTCC="distcc"
  2908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. fi
  2914. fi
  2915. DISTCC=$ac_cv_prog_DISTCC
  2916. if test -n "$DISTCC"; then
  2917. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2918. echo "${ECHO_T}$DISTCC" >&6
  2919. else
  2920. echo "$as_me:$LINENO: result: no" >&5
  2921. echo "${ECHO_T}no" >&6
  2922. fi
  2923. # Test the os and set the module linking settings
  2924. EGG_CYGWIN=no
  2925. echo "$as_me:$LINENO: checking system type" >&5
  2926. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2927. if test "${egg_cv_var_system_type+set}" = set; then
  2928. echo $ECHO_N "(cached) $ECHO_C" >&6
  2929. else
  2930. egg_cv_var_system_type=`$UNAME -s`
  2931. fi
  2932. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2933. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  2934. echo "$as_me:$LINENO: checking system release" >&5
  2935. echo $ECHO_N "checking system release... $ECHO_C" >&6
  2936. if test "${egg_cv_var_system_release+set}" = set; then
  2937. echo $ECHO_N "(cached) $ECHO_C" >&6
  2938. else
  2939. egg_cv_var_system_release=`$UNAME -r`
  2940. fi
  2941. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  2942. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  2943. case "$egg_cv_var_system_type" in
  2944. BSD/OS)
  2945. ;;
  2946. CYGWI*)
  2947. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  2948. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  2949. WIN32FLAGS=
  2950. cat >conftest.$ac_ext <<_ACEOF
  2951. /* confdefs.h. */
  2952. _ACEOF
  2953. cat confdefs.h >>conftest.$ac_ext
  2954. cat >>conftest.$ac_ext <<_ACEOF
  2955. /* end confdefs.h. */
  2956. int
  2957. main ()
  2958. {
  2959. #ifndef WIN32
  2960. # ifndef _WIN32
  2961. # error WIN32 or _WIN32 not defined
  2962. # endif
  2963. #endif
  2964. ;
  2965. return 0;
  2966. }
  2967. _ACEOF
  2968. rm -f conftest.$ac_objext
  2969. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2970. (eval $ac_compile) 2>conftest.er1
  2971. ac_status=$?
  2972. grep -v '^ *+' conftest.er1 >conftest.err
  2973. rm -f conftest.er1
  2974. cat conftest.err >&5
  2975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. (exit $ac_status); } &&
  2977. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2979. (eval $ac_try) 2>&5
  2980. ac_status=$?
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); }; } &&
  2983. { ac_try='test -s conftest.$ac_objext'
  2984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2985. (eval $ac_try) 2>&5
  2986. ac_status=$?
  2987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2988. (exit $ac_status); }; }; then
  2989. echo "$as_me:$LINENO: result: present by default" >&5
  2990. echo "${ECHO_T}present by default" >&6
  2991. else
  2992. echo "$as_me: failed program was:" >&5
  2993. sed 's/^/| /' conftest.$ac_ext >&5
  2994. ac_compile_save="$ac_compile"
  2995. save_CXX="$CXX"
  2996. ac_compile="$ac_compile -mwin32"
  2997. CXX="$CXX -mwin32"
  2998. cat >conftest.$ac_ext <<_ACEOF
  2999. /* confdefs.h. */
  3000. _ACEOF
  3001. cat confdefs.h >>conftest.$ac_ext
  3002. cat >>conftest.$ac_ext <<_ACEOF
  3003. /* end confdefs.h. */
  3004. int
  3005. main ()
  3006. {
  3007. #ifndef WIN32
  3008. # ifndef _WIN32
  3009. # error WIN32 or _WIN32 not defined
  3010. # endif
  3011. #endif
  3012. ;
  3013. return 0;
  3014. }
  3015. _ACEOF
  3016. rm -f conftest.$ac_objext
  3017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3018. (eval $ac_compile) 2>conftest.er1
  3019. ac_status=$?
  3020. grep -v '^ *+' conftest.er1 >conftest.err
  3021. rm -f conftest.er1
  3022. cat conftest.err >&5
  3023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } &&
  3025. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3027. (eval $ac_try) 2>&5
  3028. ac_status=$?
  3029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3030. (exit $ac_status); }; } &&
  3031. { ac_try='test -s conftest.$ac_objext'
  3032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3033. (eval $ac_try) 2>&5
  3034. ac_status=$?
  3035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3036. (exit $ac_status); }; }; then
  3037. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3038. echo "${ECHO_T}found via -mwin32" >&6
  3039. ac_compile="$ac_compile_save"
  3040. CXX="$save_CC"
  3041. WIN32FLAGS="-mwin32"
  3042. else
  3043. echo "$as_me: failed program was:" >&5
  3044. sed 's/^/| /' conftest.$ac_ext >&5
  3045. ac_compile="$ac_compile_save"
  3046. CXX="$save_CC"
  3047. echo "$as_me:$LINENO: result: not found" >&5
  3048. echo "${ECHO_T}not found" >&6
  3049. fi
  3050. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3051. fi
  3052. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3053. CXX="$CXX $WIN32FLAGS"
  3054. EGG_CYGWIN="yes"
  3055. if test $EGG_CYGWIN = "yes"; then
  3056. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3057. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3058. if test -r /usr/lib/binmode.o; then
  3059. echo "$as_me:$LINENO: result: yes" >&5
  3060. echo "${ECHO_T}yes" >&6
  3061. LIBS="$LIBS /usr/lib/binmode.o"
  3062. else
  3063. echo "$as_me:$LINENO: result: no" >&5
  3064. echo "${ECHO_T}no" >&6
  3065. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3066. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3067. fi
  3068. fi
  3069. cat >>confdefs.h <<\_ACEOF
  3070. #define CYGWIN_HACKS 1
  3071. _ACEOF
  3072. cat >>confdefs.h <<\_ACEOF
  3073. #define WIN32_LEAN_AND_MEAN 1
  3074. _ACEOF
  3075. ;;
  3076. IRIX)
  3077. ;;
  3078. Ultrix)
  3079. SHELL=/bin/sh5
  3080. ;;
  3081. SINIX*)
  3082. ;;
  3083. BeOS)
  3084. ;;
  3085. Linux)
  3086. ;;
  3087. Lynx)
  3088. ;;
  3089. QNX)
  3090. ;;
  3091. OSF1)
  3092. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3093. V*)
  3094. if test "$AWK" = "gawk"
  3095. then
  3096. AWK=awk
  3097. fi
  3098. ;;
  3099. 1.0|1.1|1.2)
  3100. cat >>confdefs.h <<\_ACEOF
  3101. #define OSF1_HACKS 1
  3102. _ACEOF
  3103. ;;
  3104. 1.*)
  3105. cat >>confdefs.h <<\_ACEOF
  3106. #define OSF1_HACKS 1
  3107. _ACEOF
  3108. ;;
  3109. *)
  3110. ;;
  3111. esac
  3112. cat >>confdefs.h <<\_ACEOF
  3113. #define STOP_UAC 1
  3114. _ACEOF
  3115. cat >>confdefs.h <<\_ACEOF
  3116. #define BROKEN_SNPRINTF 1
  3117. _ACEOF
  3118. ;;
  3119. SunOS)
  3120. ;;
  3121. *BSD)
  3122. # FreeBSD/OpenBSD/NetBSD
  3123. ;;
  3124. *)
  3125. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3126. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3127. if test -r /mach
  3128. then
  3129. echo "$as_me:$LINENO: result: yes" >&5
  3130. echo "${ECHO_T}yes" >&6
  3131. cat >>confdefs.h <<\_ACEOF
  3132. #define BORGCUBES 1
  3133. _ACEOF
  3134. else
  3135. echo "$as_me:$LINENO: result: no" >&5
  3136. echo "${ECHO_T}no" >&6
  3137. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3138. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3139. if test -r /cmds
  3140. then
  3141. echo "$as_me:$LINENO: result: yes" >&5
  3142. echo "${ECHO_T}yes" >&6
  3143. else
  3144. echo "$as_me:$LINENO: result: no" >&5
  3145. echo "${ECHO_T}no" >&6
  3146. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3147. echo "${ECHO_T}Something unknown!" >&6
  3148. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3149. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3150. fi
  3151. fi
  3152. ;;
  3153. esac
  3154. # Check for IPv6 support
  3155. #EGG_IPV6_SUPPORTED
  3156. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3157. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  3158. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  3159. if test "${enable_ipv6+set}" = set; then
  3160. enableval="$enable_ipv6"
  3161. ac_cv_dipv6="yes"
  3162. echo "$as_me:$LINENO: result: yes" >&5
  3163. echo "${ECHO_T}yes" >&6
  3164. else
  3165. ac_cv_dipv6="no"
  3166. if test "$egg_cv_ipv6_supported" = "no"; then
  3167. ac_cv_dipv6="no"
  3168. fi
  3169. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3170. echo "${ECHO_T}$ac_cv_dipv6" >&6
  3171. fi;
  3172. if ! test "$EGG_CYGWIN" = "yes"; then
  3173. if test "$ac_cv_dipv6" = "no"; then
  3174. cat >>confdefs.h <<\_ACEOF
  3175. #define USE_IPV6 1
  3176. _ACEOF
  3177. fi
  3178. fi
  3179. echo "$as_me:$LINENO: checking for socklen_t" >&5
  3180. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  3181. if test "${egg_cv_socklen_t+set}" = set; then
  3182. echo $ECHO_N "(cached) $ECHO_C" >&6
  3183. else
  3184. if test "$cross_compiling" = yes; then
  3185. egg_cv_socklen_t=no
  3186. else
  3187. cat >conftest.$ac_ext <<_ACEOF
  3188. /* confdefs.h. */
  3189. _ACEOF
  3190. cat confdefs.h >>conftest.$ac_ext
  3191. cat >>conftest.$ac_ext <<_ACEOF
  3192. /* end confdefs.h. */
  3193. #include <unistd.h>
  3194. #include <sys/types.h>
  3195. #include <sys/socket.h>
  3196. #include <netinet/in.h>
  3197. #include <arpa/inet.h>
  3198. int main()
  3199. {
  3200. socklen_t test = sizeof(int);
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. rm -f conftest$ac_exeext
  3205. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3206. (eval $ac_link) 2>&5
  3207. ac_status=$?
  3208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3209. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3211. (eval $ac_try) 2>&5
  3212. ac_status=$?
  3213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3214. (exit $ac_status); }; }; then
  3215. egg_cv_socklen_t=yes
  3216. else
  3217. echo "$as_me: program exited with status $ac_status" >&5
  3218. echo "$as_me: failed program was:" >&5
  3219. sed 's/^/| /' conftest.$ac_ext >&5
  3220. ( exit $ac_status )
  3221. egg_cv_socklen_t=no
  3222. fi
  3223. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3224. fi
  3225. fi
  3226. if test "$egg_cv_socklen_t" = "yes"; then
  3227. cat >>confdefs.h <<\_ACEOF
  3228. #define HAVE_SOCKLEN_T 1
  3229. _ACEOF
  3230. echo "$as_me:$LINENO: result: yes" >&5
  3231. echo "${ECHO_T}yes" >&6
  3232. else
  3233. echo "$as_me:$LINENO: result: no" >&5
  3234. echo "${ECHO_T}no" >&6
  3235. fi
  3236. # Check for inconsistent random() functions
  3237. echo "$as_me:$LINENO: checking for random limit" >&5
  3238. echo $ECHO_N "checking for random limit... $ECHO_C" >&6
  3239. case "$egg_cv_var_system_type" in
  3240. SunOS) RMAX=0x7FFFFFFF
  3241. ;;
  3242. *) RMAX=RAND_MAX
  3243. ;;
  3244. esac
  3245. echo "$as_me:$LINENO: result: $RMAX" >&5
  3246. echo "${ECHO_T}$RMAX" >&6
  3247. cat >>confdefs.h <<_ACEOF
  3248. #define RANDOM_MAX $RMAX
  3249. _ACEOF
  3250. # Create static binaries
  3251. if test -z "$no_static"
  3252. then
  3253. if test -n "$GXX"
  3254. then
  3255. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3256. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  3257. if test "${egg_cv_var_ccstatic+set}" = set; then
  3258. echo $ECHO_N "(cached) $ECHO_C" >&6
  3259. else
  3260. ac_old_CXX="$CXX"
  3261. CXX="$CXX -static"
  3262. cat >conftest.$ac_ext <<_ACEOF
  3263. /* confdefs.h. */
  3264. _ACEOF
  3265. cat confdefs.h >>conftest.$ac_ext
  3266. cat >>conftest.$ac_ext <<_ACEOF
  3267. /* end confdefs.h. */
  3268. int
  3269. main ()
  3270. {
  3271. ;
  3272. return 0;
  3273. }
  3274. _ACEOF
  3275. rm -f conftest.$ac_objext
  3276. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3277. (eval $ac_compile) 2>conftest.er1
  3278. ac_status=$?
  3279. grep -v '^ *+' conftest.er1 >conftest.err
  3280. rm -f conftest.er1
  3281. cat conftest.err >&5
  3282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. (exit $ac_status); } &&
  3284. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3286. (eval $ac_try) 2>&5
  3287. ac_status=$?
  3288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3289. (exit $ac_status); }; } &&
  3290. { ac_try='test -s conftest.$ac_objext'
  3291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3292. (eval $ac_try) 2>&5
  3293. ac_status=$?
  3294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295. (exit $ac_status); }; }; then
  3296. egg_cv_var_ccstatic="yes"
  3297. else
  3298. echo "$as_me: failed program was:" >&5
  3299. sed 's/^/| /' conftest.$ac_ext >&5
  3300. egg_cv_var_ccstatic="no"
  3301. fi
  3302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. CXX="$ac_old_CXX"
  3304. fi
  3305. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3306. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  3307. if test "$egg_cv_var_ccstatic" = "yes"
  3308. then
  3309. CCDEBUG="$CXX"
  3310. CXX="$CXX -static"
  3311. else
  3312. cat << 'EOF' >&2
  3313. configure: error:
  3314. Your C compiler does not support -static.
  3315. This compile flag is required for the botpack.
  3316. EOF
  3317. exit 1
  3318. fi
  3319. fi
  3320. fi
  3321. #checkpoint
  3322. cat >confcache <<\_ACEOF
  3323. # This file is a shell script that caches the results of configure
  3324. # tests run on this system so they can be shared between configure
  3325. # scripts and configure runs, see configure's option --config-cache.
  3326. # It is not useful on other systems. If it contains results you don't
  3327. # want to keep, you may remove or edit it.
  3328. #
  3329. # config.status only pays attention to the cache file if you give it
  3330. # the --recheck option to rerun configure.
  3331. #
  3332. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3333. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3334. # following values.
  3335. _ACEOF
  3336. # The following way of writing the cache mishandles newlines in values,
  3337. # but we know of no workaround that is simple, portable, and efficient.
  3338. # So, don't put newlines in cache variables' values.
  3339. # Ultrix sh set writes to stderr and can't be redirected directly,
  3340. # and sets the high bit in the cache file unless we assign to the vars.
  3341. {
  3342. (set) 2>&1 |
  3343. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3344. *ac_space=\ *)
  3345. # `set' does not quote correctly, so add quotes (double-quote
  3346. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3347. sed -n \
  3348. "s/'/'\\\\''/g;
  3349. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3350. ;;
  3351. *)
  3352. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3353. sed -n \
  3354. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3355. ;;
  3356. esac;
  3357. } |
  3358. sed '
  3359. t clear
  3360. : clear
  3361. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3362. t end
  3363. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3364. : end' >>confcache
  3365. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3366. if test -w $cache_file; then
  3367. test "x$cache_file" != "x/dev/null"
  3368. cat confcache >$cache_file
  3369. else
  3370. echo "not updating unwritable cache $cache_file"
  3371. fi
  3372. fi
  3373. rm -f confcache
  3374. # Checks for system libraries
  3375. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3376. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3377. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3378. echo $ECHO_N "(cached) $ECHO_C" >&6
  3379. else
  3380. ac_check_lib_save_LIBS=$LIBS
  3381. LIBS="-lsocket $LIBS"
  3382. cat >conftest.$ac_ext <<_ACEOF
  3383. /* confdefs.h. */
  3384. _ACEOF
  3385. cat confdefs.h >>conftest.$ac_ext
  3386. cat >>conftest.$ac_ext <<_ACEOF
  3387. /* end confdefs.h. */
  3388. /* Override any gcc2 internal prototype to avoid an error. */
  3389. #ifdef __cplusplus
  3390. extern "C"
  3391. #endif
  3392. /* We use char because int might match the return type of a gcc2
  3393. builtin and then its argument prototype would still apply. */
  3394. char socket ();
  3395. int
  3396. main ()
  3397. {
  3398. socket ();
  3399. ;
  3400. return 0;
  3401. }
  3402. _ACEOF
  3403. rm -f conftest.$ac_objext conftest$ac_exeext
  3404. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3405. (eval $ac_link) 2>conftest.er1
  3406. ac_status=$?
  3407. grep -v '^ *+' conftest.er1 >conftest.err
  3408. rm -f conftest.er1
  3409. cat conftest.err >&5
  3410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3411. (exit $ac_status); } &&
  3412. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3414. (eval $ac_try) 2>&5
  3415. ac_status=$?
  3416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3417. (exit $ac_status); }; } &&
  3418. { ac_try='test -s conftest$ac_exeext'
  3419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3420. (eval $ac_try) 2>&5
  3421. ac_status=$?
  3422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3423. (exit $ac_status); }; }; then
  3424. ac_cv_lib_socket_socket=yes
  3425. else
  3426. echo "$as_me: failed program was:" >&5
  3427. sed 's/^/| /' conftest.$ac_ext >&5
  3428. ac_cv_lib_socket_socket=no
  3429. fi
  3430. rm -f conftest.err conftest.$ac_objext \
  3431. conftest$ac_exeext conftest.$ac_ext
  3432. LIBS=$ac_check_lib_save_LIBS
  3433. fi
  3434. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3435. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3436. if test $ac_cv_lib_socket_socket = yes; then
  3437. cat >>confdefs.h <<_ACEOF
  3438. #define HAVE_LIBSOCKET 1
  3439. _ACEOF
  3440. LIBS="-lsocket $LIBS"
  3441. fi
  3442. # AC_CHECK_LIB(nsl, connect)
  3443. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3444. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3445. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3446. echo $ECHO_N "(cached) $ECHO_C" >&6
  3447. else
  3448. ac_check_lib_save_LIBS=$LIBS
  3449. LIBS="-ldns $LIBS"
  3450. cat >conftest.$ac_ext <<_ACEOF
  3451. /* confdefs.h. */
  3452. _ACEOF
  3453. cat confdefs.h >>conftest.$ac_ext
  3454. cat >>conftest.$ac_ext <<_ACEOF
  3455. /* end confdefs.h. */
  3456. /* Override any gcc2 internal prototype to avoid an error. */
  3457. #ifdef __cplusplus
  3458. extern "C"
  3459. #endif
  3460. /* We use char because int might match the return type of a gcc2
  3461. builtin and then its argument prototype would still apply. */
  3462. char gethostbyname ();
  3463. int
  3464. main ()
  3465. {
  3466. gethostbyname ();
  3467. ;
  3468. return 0;
  3469. }
  3470. _ACEOF
  3471. rm -f conftest.$ac_objext conftest$ac_exeext
  3472. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3473. (eval $ac_link) 2>conftest.er1
  3474. ac_status=$?
  3475. grep -v '^ *+' conftest.er1 >conftest.err
  3476. rm -f conftest.er1
  3477. cat conftest.err >&5
  3478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3479. (exit $ac_status); } &&
  3480. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3482. (eval $ac_try) 2>&5
  3483. ac_status=$?
  3484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3485. (exit $ac_status); }; } &&
  3486. { ac_try='test -s conftest$ac_exeext'
  3487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3488. (eval $ac_try) 2>&5
  3489. ac_status=$?
  3490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3491. (exit $ac_status); }; }; then
  3492. ac_cv_lib_dns_gethostbyname=yes
  3493. else
  3494. echo "$as_me: failed program was:" >&5
  3495. sed 's/^/| /' conftest.$ac_ext >&5
  3496. ac_cv_lib_dns_gethostbyname=no
  3497. fi
  3498. rm -f conftest.err conftest.$ac_objext \
  3499. conftest$ac_exeext conftest.$ac_ext
  3500. LIBS=$ac_check_lib_save_LIBS
  3501. fi
  3502. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3503. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3504. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3505. cat >>confdefs.h <<_ACEOF
  3506. #define HAVE_LIBDNS 1
  3507. _ACEOF
  3508. LIBS="-ldns $LIBS"
  3509. fi
  3510. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  3511. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  3512. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  3513. # This is needed for Tcl libraries compiled with thread support
  3514. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  3515. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3516. # ac_cv_lib_pthread="-lpthread"], [dnl
  3517. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  3518. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3519. # ac_cv_lib_pthread="-lpthread"], [dnl
  3520. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  3521. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3522. # ac_cv_lib_pthread="-lpthreads"], [dnl
  3523. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  3524. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3525. # ac_cv_lib_pthread=""],
  3526. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  3527. # Checks for header files
  3528. ac_header_dirent=no
  3529. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  3530. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  3531. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  3532. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  3533. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3534. echo $ECHO_N "(cached) $ECHO_C" >&6
  3535. else
  3536. cat >conftest.$ac_ext <<_ACEOF
  3537. /* confdefs.h. */
  3538. _ACEOF
  3539. cat confdefs.h >>conftest.$ac_ext
  3540. cat >>conftest.$ac_ext <<_ACEOF
  3541. /* end confdefs.h. */
  3542. #include <sys/types.h>
  3543. #include <$ac_hdr>
  3544. int
  3545. main ()
  3546. {
  3547. if ((DIR *) 0)
  3548. return 0;
  3549. ;
  3550. return 0;
  3551. }
  3552. _ACEOF
  3553. rm -f conftest.$ac_objext
  3554. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3555. (eval $ac_compile) 2>conftest.er1
  3556. ac_status=$?
  3557. grep -v '^ *+' conftest.er1 >conftest.err
  3558. rm -f conftest.er1
  3559. cat conftest.err >&5
  3560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); } &&
  3562. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3564. (eval $ac_try) 2>&5
  3565. ac_status=$?
  3566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567. (exit $ac_status); }; } &&
  3568. { ac_try='test -s conftest.$ac_objext'
  3569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3570. (eval $ac_try) 2>&5
  3571. ac_status=$?
  3572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3573. (exit $ac_status); }; }; then
  3574. eval "$as_ac_Header=yes"
  3575. else
  3576. echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. eval "$as_ac_Header=no"
  3579. fi
  3580. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3581. fi
  3582. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3583. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3584. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3585. cat >>confdefs.h <<_ACEOF
  3586. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  3587. _ACEOF
  3588. ac_header_dirent=$ac_hdr; break
  3589. fi
  3590. done
  3591. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  3592. if test $ac_header_dirent = dirent.h; then
  3593. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3594. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3595. if test "${ac_cv_search_opendir+set}" = set; then
  3596. echo $ECHO_N "(cached) $ECHO_C" >&6
  3597. else
  3598. ac_func_search_save_LIBS=$LIBS
  3599. ac_cv_search_opendir=no
  3600. cat >conftest.$ac_ext <<_ACEOF
  3601. /* confdefs.h. */
  3602. _ACEOF
  3603. cat confdefs.h >>conftest.$ac_ext
  3604. cat >>conftest.$ac_ext <<_ACEOF
  3605. /* end confdefs.h. */
  3606. /* Override any gcc2 internal prototype to avoid an error. */
  3607. #ifdef __cplusplus
  3608. extern "C"
  3609. #endif
  3610. /* We use char because int might match the return type of a gcc2
  3611. builtin and then its argument prototype would still apply. */
  3612. char opendir ();
  3613. int
  3614. main ()
  3615. {
  3616. opendir ();
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. rm -f conftest.$ac_objext conftest$ac_exeext
  3622. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3623. (eval $ac_link) 2>conftest.er1
  3624. ac_status=$?
  3625. grep -v '^ *+' conftest.er1 >conftest.err
  3626. rm -f conftest.er1
  3627. cat conftest.err >&5
  3628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3629. (exit $ac_status); } &&
  3630. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3632. (eval $ac_try) 2>&5
  3633. ac_status=$?
  3634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3635. (exit $ac_status); }; } &&
  3636. { ac_try='test -s conftest$ac_exeext'
  3637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3638. (eval $ac_try) 2>&5
  3639. ac_status=$?
  3640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. (exit $ac_status); }; }; then
  3642. ac_cv_search_opendir="none required"
  3643. else
  3644. echo "$as_me: failed program was:" >&5
  3645. sed 's/^/| /' conftest.$ac_ext >&5
  3646. fi
  3647. rm -f conftest.err conftest.$ac_objext \
  3648. conftest$ac_exeext conftest.$ac_ext
  3649. if test "$ac_cv_search_opendir" = no; then
  3650. for ac_lib in dir; do
  3651. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3652. cat >conftest.$ac_ext <<_ACEOF
  3653. /* confdefs.h. */
  3654. _ACEOF
  3655. cat confdefs.h >>conftest.$ac_ext
  3656. cat >>conftest.$ac_ext <<_ACEOF
  3657. /* end confdefs.h. */
  3658. /* Override any gcc2 internal prototype to avoid an error. */
  3659. #ifdef __cplusplus
  3660. extern "C"
  3661. #endif
  3662. /* We use char because int might match the return type of a gcc2
  3663. builtin and then its argument prototype would still apply. */
  3664. char opendir ();
  3665. int
  3666. main ()
  3667. {
  3668. opendir ();
  3669. ;
  3670. return 0;
  3671. }
  3672. _ACEOF
  3673. rm -f conftest.$ac_objext conftest$ac_exeext
  3674. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3675. (eval $ac_link) 2>conftest.er1
  3676. ac_status=$?
  3677. grep -v '^ *+' conftest.er1 >conftest.err
  3678. rm -f conftest.er1
  3679. cat conftest.err >&5
  3680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3681. (exit $ac_status); } &&
  3682. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3684. (eval $ac_try) 2>&5
  3685. ac_status=$?
  3686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3687. (exit $ac_status); }; } &&
  3688. { ac_try='test -s conftest$ac_exeext'
  3689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3690. (eval $ac_try) 2>&5
  3691. ac_status=$?
  3692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3693. (exit $ac_status); }; }; then
  3694. ac_cv_search_opendir="-l$ac_lib"
  3695. break
  3696. else
  3697. echo "$as_me: failed program was:" >&5
  3698. sed 's/^/| /' conftest.$ac_ext >&5
  3699. fi
  3700. rm -f conftest.err conftest.$ac_objext \
  3701. conftest$ac_exeext conftest.$ac_ext
  3702. done
  3703. fi
  3704. LIBS=$ac_func_search_save_LIBS
  3705. fi
  3706. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3707. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3708. if test "$ac_cv_search_opendir" != no; then
  3709. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3710. fi
  3711. else
  3712. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3713. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3714. if test "${ac_cv_search_opendir+set}" = set; then
  3715. echo $ECHO_N "(cached) $ECHO_C" >&6
  3716. else
  3717. ac_func_search_save_LIBS=$LIBS
  3718. ac_cv_search_opendir=no
  3719. cat >conftest.$ac_ext <<_ACEOF
  3720. /* confdefs.h. */
  3721. _ACEOF
  3722. cat confdefs.h >>conftest.$ac_ext
  3723. cat >>conftest.$ac_ext <<_ACEOF
  3724. /* end confdefs.h. */
  3725. /* Override any gcc2 internal prototype to avoid an error. */
  3726. #ifdef __cplusplus
  3727. extern "C"
  3728. #endif
  3729. /* We use char because int might match the return type of a gcc2
  3730. builtin and then its argument prototype would still apply. */
  3731. char opendir ();
  3732. int
  3733. main ()
  3734. {
  3735. opendir ();
  3736. ;
  3737. return 0;
  3738. }
  3739. _ACEOF
  3740. rm -f conftest.$ac_objext conftest$ac_exeext
  3741. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3742. (eval $ac_link) 2>conftest.er1
  3743. ac_status=$?
  3744. grep -v '^ *+' conftest.er1 >conftest.err
  3745. rm -f conftest.er1
  3746. cat conftest.err >&5
  3747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3748. (exit $ac_status); } &&
  3749. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3751. (eval $ac_try) 2>&5
  3752. ac_status=$?
  3753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3754. (exit $ac_status); }; } &&
  3755. { ac_try='test -s conftest$ac_exeext'
  3756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3757. (eval $ac_try) 2>&5
  3758. ac_status=$?
  3759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. (exit $ac_status); }; }; then
  3761. ac_cv_search_opendir="none required"
  3762. else
  3763. echo "$as_me: failed program was:" >&5
  3764. sed 's/^/| /' conftest.$ac_ext >&5
  3765. fi
  3766. rm -f conftest.err conftest.$ac_objext \
  3767. conftest$ac_exeext conftest.$ac_ext
  3768. if test "$ac_cv_search_opendir" = no; then
  3769. for ac_lib in x; do
  3770. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3771. cat >conftest.$ac_ext <<_ACEOF
  3772. /* confdefs.h. */
  3773. _ACEOF
  3774. cat confdefs.h >>conftest.$ac_ext
  3775. cat >>conftest.$ac_ext <<_ACEOF
  3776. /* end confdefs.h. */
  3777. /* Override any gcc2 internal prototype to avoid an error. */
  3778. #ifdef __cplusplus
  3779. extern "C"
  3780. #endif
  3781. /* We use char because int might match the return type of a gcc2
  3782. builtin and then its argument prototype would still apply. */
  3783. char opendir ();
  3784. int
  3785. main ()
  3786. {
  3787. opendir ();
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. rm -f conftest.$ac_objext conftest$ac_exeext
  3793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3794. (eval $ac_link) 2>conftest.er1
  3795. ac_status=$?
  3796. grep -v '^ *+' conftest.er1 >conftest.err
  3797. rm -f conftest.er1
  3798. cat conftest.err >&5
  3799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } &&
  3801. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3803. (eval $ac_try) 2>&5
  3804. ac_status=$?
  3805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3806. (exit $ac_status); }; } &&
  3807. { ac_try='test -s conftest$ac_exeext'
  3808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3809. (eval $ac_try) 2>&5
  3810. ac_status=$?
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); }; }; then
  3813. ac_cv_search_opendir="-l$ac_lib"
  3814. break
  3815. else
  3816. echo "$as_me: failed program was:" >&5
  3817. sed 's/^/| /' conftest.$ac_ext >&5
  3818. fi
  3819. rm -f conftest.err conftest.$ac_objext \
  3820. conftest$ac_exeext conftest.$ac_ext
  3821. done
  3822. fi
  3823. LIBS=$ac_func_search_save_LIBS
  3824. fi
  3825. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3826. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3827. if test "$ac_cv_search_opendir" != no; then
  3828. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3829. fi
  3830. fi
  3831. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3832. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3833. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3834. echo $ECHO_N "(cached) $ECHO_C" >&6
  3835. else
  3836. cat >conftest.$ac_ext <<_ACEOF
  3837. /* confdefs.h. */
  3838. _ACEOF
  3839. cat confdefs.h >>conftest.$ac_ext
  3840. cat >>conftest.$ac_ext <<_ACEOF
  3841. /* end confdefs.h. */
  3842. #include <sys/types.h>
  3843. #include <sys/wait.h>
  3844. #ifndef WEXITSTATUS
  3845. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3846. #endif
  3847. #ifndef WIFEXITED
  3848. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3849. #endif
  3850. int
  3851. main ()
  3852. {
  3853. int s;
  3854. wait (&s);
  3855. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3856. ;
  3857. return 0;
  3858. }
  3859. _ACEOF
  3860. rm -f conftest.$ac_objext
  3861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3862. (eval $ac_compile) 2>conftest.er1
  3863. ac_status=$?
  3864. grep -v '^ *+' conftest.er1 >conftest.err
  3865. rm -f conftest.er1
  3866. cat conftest.err >&5
  3867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3868. (exit $ac_status); } &&
  3869. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3871. (eval $ac_try) 2>&5
  3872. ac_status=$?
  3873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3874. (exit $ac_status); }; } &&
  3875. { ac_try='test -s conftest.$ac_objext'
  3876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3877. (eval $ac_try) 2>&5
  3878. ac_status=$?
  3879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3880. (exit $ac_status); }; }; then
  3881. ac_cv_header_sys_wait_h=yes
  3882. else
  3883. echo "$as_me: failed program was:" >&5
  3884. sed 's/^/| /' conftest.$ac_ext >&5
  3885. ac_cv_header_sys_wait_h=no
  3886. fi
  3887. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3888. fi
  3889. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3890. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3891. if test $ac_cv_header_sys_wait_h = yes; then
  3892. cat >>confdefs.h <<\_ACEOF
  3893. #define HAVE_SYS_WAIT_H 1
  3894. _ACEOF
  3895. fi
  3896. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3897. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3898. if test "${ac_cv_header_time+set}" = set; then
  3899. echo $ECHO_N "(cached) $ECHO_C" >&6
  3900. else
  3901. cat >conftest.$ac_ext <<_ACEOF
  3902. /* confdefs.h. */
  3903. _ACEOF
  3904. cat confdefs.h >>conftest.$ac_ext
  3905. cat >>conftest.$ac_ext <<_ACEOF
  3906. /* end confdefs.h. */
  3907. #include <sys/types.h>
  3908. #include <sys/time.h>
  3909. #include <time.h>
  3910. int
  3911. main ()
  3912. {
  3913. if ((struct tm *) 0)
  3914. return 0;
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. rm -f conftest.$ac_objext
  3920. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3921. (eval $ac_compile) 2>conftest.er1
  3922. ac_status=$?
  3923. grep -v '^ *+' conftest.er1 >conftest.err
  3924. rm -f conftest.er1
  3925. cat conftest.err >&5
  3926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3927. (exit $ac_status); } &&
  3928. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3930. (eval $ac_try) 2>&5
  3931. ac_status=$?
  3932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3933. (exit $ac_status); }; } &&
  3934. { ac_try='test -s conftest.$ac_objext'
  3935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3936. (eval $ac_try) 2>&5
  3937. ac_status=$?
  3938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3939. (exit $ac_status); }; }; then
  3940. ac_cv_header_time=yes
  3941. else
  3942. echo "$as_me: failed program was:" >&5
  3943. sed 's/^/| /' conftest.$ac_ext >&5
  3944. ac_cv_header_time=no
  3945. fi
  3946. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3947. fi
  3948. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  3949. echo "${ECHO_T}$ac_cv_header_time" >&6
  3950. if test $ac_cv_header_time = yes; then
  3951. cat >>confdefs.h <<\_ACEOF
  3952. #define TIME_WITH_SYS_TIME 1
  3953. _ACEOF
  3954. fi
  3955. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  3956. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  3957. if test "${ac_cv_header_stat_broken+set}" = set; then
  3958. echo $ECHO_N "(cached) $ECHO_C" >&6
  3959. else
  3960. cat >conftest.$ac_ext <<_ACEOF
  3961. /* confdefs.h. */
  3962. _ACEOF
  3963. cat confdefs.h >>conftest.$ac_ext
  3964. cat >>conftest.$ac_ext <<_ACEOF
  3965. /* end confdefs.h. */
  3966. #include <sys/types.h>
  3967. #include <sys/stat.h>
  3968. #if defined(S_ISBLK) && defined(S_IFDIR)
  3969. # if S_ISBLK (S_IFDIR)
  3970. You lose.
  3971. # endif
  3972. #endif
  3973. #if defined(S_ISBLK) && defined(S_IFCHR)
  3974. # if S_ISBLK (S_IFCHR)
  3975. You lose.
  3976. # endif
  3977. #endif
  3978. #if defined(S_ISLNK) && defined(S_IFREG)
  3979. # if S_ISLNK (S_IFREG)
  3980. You lose.
  3981. # endif
  3982. #endif
  3983. #if defined(S_ISSOCK) && defined(S_IFREG)
  3984. # if S_ISSOCK (S_IFREG)
  3985. You lose.
  3986. # endif
  3987. #endif
  3988. _ACEOF
  3989. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3990. $EGREP "You lose" >/dev/null 2>&1; then
  3991. ac_cv_header_stat_broken=yes
  3992. else
  3993. ac_cv_header_stat_broken=no
  3994. fi
  3995. rm -f conftest*
  3996. fi
  3997. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  3998. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  3999. if test $ac_cv_header_stat_broken = yes; then
  4000. cat >>confdefs.h <<\_ACEOF
  4001. #define STAT_MACROS_BROKEN 1
  4002. _ACEOF
  4003. fi
  4004. #checkpoint
  4005. cat >confcache <<\_ACEOF
  4006. # This file is a shell script that caches the results of configure
  4007. # tests run on this system so they can be shared between configure
  4008. # scripts and configure runs, see configure's option --config-cache.
  4009. # It is not useful on other systems. If it contains results you don't
  4010. # want to keep, you may remove or edit it.
  4011. #
  4012. # config.status only pays attention to the cache file if you give it
  4013. # the --recheck option to rerun configure.
  4014. #
  4015. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4016. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4017. # following values.
  4018. _ACEOF
  4019. # The following way of writing the cache mishandles newlines in values,
  4020. # but we know of no workaround that is simple, portable, and efficient.
  4021. # So, don't put newlines in cache variables' values.
  4022. # Ultrix sh set writes to stderr and can't be redirected directly,
  4023. # and sets the high bit in the cache file unless we assign to the vars.
  4024. {
  4025. (set) 2>&1 |
  4026. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4027. *ac_space=\ *)
  4028. # `set' does not quote correctly, so add quotes (double-quote
  4029. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4030. sed -n \
  4031. "s/'/'\\\\''/g;
  4032. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4033. ;;
  4034. *)
  4035. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4036. sed -n \
  4037. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4038. ;;
  4039. esac;
  4040. } |
  4041. sed '
  4042. t clear
  4043. : clear
  4044. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4045. t end
  4046. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4047. : end' >>confcache
  4048. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4049. if test -w $cache_file; then
  4050. test "x$cache_file" != "x/dev/null"
  4051. cat confcache >$cache_file
  4052. else
  4053. echo "not updating unwritable cache $cache_file"
  4054. fi
  4055. fi
  4056. rm -f confcache
  4057. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4058. do
  4059. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4060. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4061. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4062. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4063. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. fi
  4066. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4067. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4068. else
  4069. # Is the header compilable?
  4070. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4071. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4072. cat >conftest.$ac_ext <<_ACEOF
  4073. /* confdefs.h. */
  4074. _ACEOF
  4075. cat confdefs.h >>conftest.$ac_ext
  4076. cat >>conftest.$ac_ext <<_ACEOF
  4077. /* end confdefs.h. */
  4078. $ac_includes_default
  4079. #include <$ac_header>
  4080. _ACEOF
  4081. rm -f conftest.$ac_objext
  4082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4083. (eval $ac_compile) 2>conftest.er1
  4084. ac_status=$?
  4085. grep -v '^ *+' conftest.er1 >conftest.err
  4086. rm -f conftest.er1
  4087. cat conftest.err >&5
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); } &&
  4090. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4092. (eval $ac_try) 2>&5
  4093. ac_status=$?
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); }; } &&
  4096. { ac_try='test -s conftest.$ac_objext'
  4097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4098. (eval $ac_try) 2>&5
  4099. ac_status=$?
  4100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4101. (exit $ac_status); }; }; then
  4102. ac_header_compiler=yes
  4103. else
  4104. echo "$as_me: failed program was:" >&5
  4105. sed 's/^/| /' conftest.$ac_ext >&5
  4106. ac_header_compiler=no
  4107. fi
  4108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4110. echo "${ECHO_T}$ac_header_compiler" >&6
  4111. # Is the header present?
  4112. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4113. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4114. cat >conftest.$ac_ext <<_ACEOF
  4115. /* confdefs.h. */
  4116. _ACEOF
  4117. cat confdefs.h >>conftest.$ac_ext
  4118. cat >>conftest.$ac_ext <<_ACEOF
  4119. /* end confdefs.h. */
  4120. #include <$ac_header>
  4121. _ACEOF
  4122. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4123. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4124. ac_status=$?
  4125. grep -v '^ *+' conftest.er1 >conftest.err
  4126. rm -f conftest.er1
  4127. cat conftest.err >&5
  4128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4129. (exit $ac_status); } >/dev/null; then
  4130. if test -s conftest.err; then
  4131. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4132. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4133. else
  4134. ac_cpp_err=
  4135. fi
  4136. else
  4137. ac_cpp_err=yes
  4138. fi
  4139. if test -z "$ac_cpp_err"; then
  4140. ac_header_preproc=yes
  4141. else
  4142. echo "$as_me: failed program was:" >&5
  4143. sed 's/^/| /' conftest.$ac_ext >&5
  4144. ac_header_preproc=no
  4145. fi
  4146. rm -f conftest.err conftest.$ac_ext
  4147. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4148. echo "${ECHO_T}$ac_header_preproc" >&6
  4149. # So? What about this header?
  4150. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4151. yes:no: )
  4152. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4153. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4154. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4155. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4156. ac_header_preproc=yes
  4157. ;;
  4158. no:yes:* )
  4159. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4160. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4161. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4162. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4163. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4164. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4165. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4166. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4167. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4168. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4169. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4170. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4171. (
  4172. cat <<\_ASBOX
  4173. ## ------------------------------------------ ##
  4174. ## Report this to the AC_PACKAGE_NAME lists. ##
  4175. ## ------------------------------------------ ##
  4176. _ASBOX
  4177. ) |
  4178. sed "s/^/$as_me: WARNING: /" >&2
  4179. ;;
  4180. esac
  4181. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4182. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4183. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4184. echo $ECHO_N "(cached) $ECHO_C" >&6
  4185. else
  4186. eval "$as_ac_Header=\$ac_header_preproc"
  4187. fi
  4188. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4189. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4190. fi
  4191. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4192. cat >>confdefs.h <<_ACEOF
  4193. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4194. _ACEOF
  4195. fi
  4196. done
  4197. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  4198. do
  4199. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4200. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4201. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4202. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4203. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4204. echo $ECHO_N "(cached) $ECHO_C" >&6
  4205. fi
  4206. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4207. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4208. else
  4209. # Is the header compilable?
  4210. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4211. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4212. cat >conftest.$ac_ext <<_ACEOF
  4213. /* confdefs.h. */
  4214. _ACEOF
  4215. cat confdefs.h >>conftest.$ac_ext
  4216. cat >>conftest.$ac_ext <<_ACEOF
  4217. /* end confdefs.h. */
  4218. $ac_includes_default
  4219. #include <$ac_header>
  4220. _ACEOF
  4221. rm -f conftest.$ac_objext
  4222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4223. (eval $ac_compile) 2>conftest.er1
  4224. ac_status=$?
  4225. grep -v '^ *+' conftest.er1 >conftest.err
  4226. rm -f conftest.er1
  4227. cat conftest.err >&5
  4228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4229. (exit $ac_status); } &&
  4230. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4232. (eval $ac_try) 2>&5
  4233. ac_status=$?
  4234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4235. (exit $ac_status); }; } &&
  4236. { ac_try='test -s conftest.$ac_objext'
  4237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4238. (eval $ac_try) 2>&5
  4239. ac_status=$?
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); }; }; then
  4242. ac_header_compiler=yes
  4243. else
  4244. echo "$as_me: failed program was:" >&5
  4245. sed 's/^/| /' conftest.$ac_ext >&5
  4246. ac_header_compiler=no
  4247. fi
  4248. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4249. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4250. echo "${ECHO_T}$ac_header_compiler" >&6
  4251. # Is the header present?
  4252. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4253. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4254. cat >conftest.$ac_ext <<_ACEOF
  4255. /* confdefs.h. */
  4256. _ACEOF
  4257. cat confdefs.h >>conftest.$ac_ext
  4258. cat >>conftest.$ac_ext <<_ACEOF
  4259. /* end confdefs.h. */
  4260. #include <$ac_header>
  4261. _ACEOF
  4262. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4263. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4264. ac_status=$?
  4265. grep -v '^ *+' conftest.er1 >conftest.err
  4266. rm -f conftest.er1
  4267. cat conftest.err >&5
  4268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4269. (exit $ac_status); } >/dev/null; then
  4270. if test -s conftest.err; then
  4271. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4272. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4273. else
  4274. ac_cpp_err=
  4275. fi
  4276. else
  4277. ac_cpp_err=yes
  4278. fi
  4279. if test -z "$ac_cpp_err"; then
  4280. ac_header_preproc=yes
  4281. else
  4282. echo "$as_me: failed program was:" >&5
  4283. sed 's/^/| /' conftest.$ac_ext >&5
  4284. ac_header_preproc=no
  4285. fi
  4286. rm -f conftest.err conftest.$ac_ext
  4287. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4288. echo "${ECHO_T}$ac_header_preproc" >&6
  4289. # So? What about this header?
  4290. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4291. yes:no: )
  4292. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4293. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4294. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4295. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4296. ac_header_preproc=yes
  4297. ;;
  4298. no:yes:* )
  4299. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4300. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4301. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4302. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4303. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4304. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4305. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4306. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4307. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4308. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4309. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4310. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4311. (
  4312. cat <<\_ASBOX
  4313. ## ------------------------------------------ ##
  4314. ## Report this to the AC_PACKAGE_NAME lists. ##
  4315. ## ------------------------------------------ ##
  4316. _ASBOX
  4317. ) |
  4318. sed "s/^/$as_me: WARNING: /" >&2
  4319. ;;
  4320. esac
  4321. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4322. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4323. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4324. echo $ECHO_N "(cached) $ECHO_C" >&6
  4325. else
  4326. eval "$as_ac_Header=\$ac_header_preproc"
  4327. fi
  4328. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4329. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4330. fi
  4331. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4332. cat >>confdefs.h <<_ACEOF
  4333. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4334. _ACEOF
  4335. fi
  4336. done
  4337. #checkpoint
  4338. cat >confcache <<\_ACEOF
  4339. # This file is a shell script that caches the results of configure
  4340. # tests run on this system so they can be shared between configure
  4341. # scripts and configure runs, see configure's option --config-cache.
  4342. # It is not useful on other systems. If it contains results you don't
  4343. # want to keep, you may remove or edit it.
  4344. #
  4345. # config.status only pays attention to the cache file if you give it
  4346. # the --recheck option to rerun configure.
  4347. #
  4348. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4349. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4350. # following values.
  4351. _ACEOF
  4352. # The following way of writing the cache mishandles newlines in values,
  4353. # but we know of no workaround that is simple, portable, and efficient.
  4354. # So, don't put newlines in cache variables' values.
  4355. # Ultrix sh set writes to stderr and can't be redirected directly,
  4356. # and sets the high bit in the cache file unless we assign to the vars.
  4357. {
  4358. (set) 2>&1 |
  4359. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4360. *ac_space=\ *)
  4361. # `set' does not quote correctly, so add quotes (double-quote
  4362. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4363. sed -n \
  4364. "s/'/'\\\\''/g;
  4365. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4366. ;;
  4367. *)
  4368. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4369. sed -n \
  4370. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4371. ;;
  4372. esac;
  4373. } |
  4374. sed '
  4375. t clear
  4376. : clear
  4377. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4378. t end
  4379. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4380. : end' >>confcache
  4381. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4382. if test -w $cache_file; then
  4383. test "x$cache_file" != "x/dev/null"
  4384. cat confcache >$cache_file
  4385. else
  4386. echo "not updating unwritable cache $cache_file"
  4387. fi
  4388. fi
  4389. rm -f confcache
  4390. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4391. #AC_CHECK_HEADERS(zlib.h)
  4392. #EGG_CHECK_ZLIB
  4393. #EGG_CHECK_SSL
  4394. #AC_SUBST(SSL)dnl
  4395. # Checks for typedefs, structures, and compiler characteristics
  4396. echo "$as_me:$LINENO: checking for pid_t" >&5
  4397. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4398. if test "${ac_cv_type_pid_t+set}" = set; then
  4399. echo $ECHO_N "(cached) $ECHO_C" >&6
  4400. else
  4401. cat >conftest.$ac_ext <<_ACEOF
  4402. /* confdefs.h. */
  4403. _ACEOF
  4404. cat confdefs.h >>conftest.$ac_ext
  4405. cat >>conftest.$ac_ext <<_ACEOF
  4406. /* end confdefs.h. */
  4407. $ac_includes_default
  4408. int
  4409. main ()
  4410. {
  4411. if ((pid_t *) 0)
  4412. return 0;
  4413. if (sizeof (pid_t))
  4414. return 0;
  4415. ;
  4416. return 0;
  4417. }
  4418. _ACEOF
  4419. rm -f conftest.$ac_objext
  4420. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4421. (eval $ac_compile) 2>conftest.er1
  4422. ac_status=$?
  4423. grep -v '^ *+' conftest.er1 >conftest.err
  4424. rm -f conftest.er1
  4425. cat conftest.err >&5
  4426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4427. (exit $ac_status); } &&
  4428. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4430. (eval $ac_try) 2>&5
  4431. ac_status=$?
  4432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4433. (exit $ac_status); }; } &&
  4434. { ac_try='test -s conftest.$ac_objext'
  4435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4436. (eval $ac_try) 2>&5
  4437. ac_status=$?
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); }; }; then
  4440. ac_cv_type_pid_t=yes
  4441. else
  4442. echo "$as_me: failed program was:" >&5
  4443. sed 's/^/| /' conftest.$ac_ext >&5
  4444. ac_cv_type_pid_t=no
  4445. fi
  4446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4447. fi
  4448. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4449. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4450. if test $ac_cv_type_pid_t = yes; then
  4451. :
  4452. else
  4453. cat >>confdefs.h <<_ACEOF
  4454. #define pid_t int
  4455. _ACEOF
  4456. fi
  4457. echo "$as_me:$LINENO: checking for size_t" >&5
  4458. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4459. if test "${ac_cv_type_size_t+set}" = set; then
  4460. echo $ECHO_N "(cached) $ECHO_C" >&6
  4461. else
  4462. cat >conftest.$ac_ext <<_ACEOF
  4463. /* confdefs.h. */
  4464. _ACEOF
  4465. cat confdefs.h >>conftest.$ac_ext
  4466. cat >>conftest.$ac_ext <<_ACEOF
  4467. /* end confdefs.h. */
  4468. $ac_includes_default
  4469. int
  4470. main ()
  4471. {
  4472. if ((size_t *) 0)
  4473. return 0;
  4474. if (sizeof (size_t))
  4475. return 0;
  4476. ;
  4477. return 0;
  4478. }
  4479. _ACEOF
  4480. rm -f conftest.$ac_objext
  4481. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4482. (eval $ac_compile) 2>conftest.er1
  4483. ac_status=$?
  4484. grep -v '^ *+' conftest.er1 >conftest.err
  4485. rm -f conftest.er1
  4486. cat conftest.err >&5
  4487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4488. (exit $ac_status); } &&
  4489. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4491. (eval $ac_try) 2>&5
  4492. ac_status=$?
  4493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4494. (exit $ac_status); }; } &&
  4495. { ac_try='test -s conftest.$ac_objext'
  4496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4497. (eval $ac_try) 2>&5
  4498. ac_status=$?
  4499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4500. (exit $ac_status); }; }; then
  4501. ac_cv_type_size_t=yes
  4502. else
  4503. echo "$as_me: failed program was:" >&5
  4504. sed 's/^/| /' conftest.$ac_ext >&5
  4505. ac_cv_type_size_t=no
  4506. fi
  4507. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4508. fi
  4509. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4510. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4511. if test $ac_cv_type_size_t = yes; then
  4512. :
  4513. else
  4514. cat >>confdefs.h <<_ACEOF
  4515. #define size_t unsigned
  4516. _ACEOF
  4517. fi
  4518. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  4519. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  4520. if test "${ac_cv_type_uid_t+set}" = set; then
  4521. echo $ECHO_N "(cached) $ECHO_C" >&6
  4522. else
  4523. cat >conftest.$ac_ext <<_ACEOF
  4524. /* confdefs.h. */
  4525. _ACEOF
  4526. cat confdefs.h >>conftest.$ac_ext
  4527. cat >>conftest.$ac_ext <<_ACEOF
  4528. /* end confdefs.h. */
  4529. #include <sys/types.h>
  4530. _ACEOF
  4531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4532. $EGREP "uid_t" >/dev/null 2>&1; then
  4533. ac_cv_type_uid_t=yes
  4534. else
  4535. ac_cv_type_uid_t=no
  4536. fi
  4537. rm -f conftest*
  4538. fi
  4539. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  4540. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  4541. if test $ac_cv_type_uid_t = no; then
  4542. cat >>confdefs.h <<\_ACEOF
  4543. #define uid_t int
  4544. _ACEOF
  4545. cat >>confdefs.h <<\_ACEOF
  4546. #define gid_t int
  4547. _ACEOF
  4548. fi
  4549. #AC_C_CONST
  4550. echo "$as_me:$LINENO: checking for working volatile" >&5
  4551. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4552. if test "${ac_cv_c_volatile+set}" = set; then
  4553. echo $ECHO_N "(cached) $ECHO_C" >&6
  4554. else
  4555. cat >conftest.$ac_ext <<_ACEOF
  4556. /* confdefs.h. */
  4557. _ACEOF
  4558. cat confdefs.h >>conftest.$ac_ext
  4559. cat >>conftest.$ac_ext <<_ACEOF
  4560. /* end confdefs.h. */
  4561. int
  4562. main ()
  4563. {
  4564. volatile int x;
  4565. int * volatile y;
  4566. ;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. rm -f conftest.$ac_objext
  4571. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4572. (eval $ac_compile) 2>conftest.er1
  4573. ac_status=$?
  4574. grep -v '^ *+' conftest.er1 >conftest.err
  4575. rm -f conftest.er1
  4576. cat conftest.err >&5
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); } &&
  4579. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4581. (eval $ac_try) 2>&5
  4582. ac_status=$?
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); }; } &&
  4585. { ac_try='test -s conftest.$ac_objext'
  4586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4587. (eval $ac_try) 2>&5
  4588. ac_status=$?
  4589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4590. (exit $ac_status); }; }; then
  4591. ac_cv_c_volatile=yes
  4592. else
  4593. echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. ac_cv_c_volatile=no
  4596. fi
  4597. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4598. fi
  4599. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  4600. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  4601. if test $ac_cv_c_volatile = no; then
  4602. cat >>confdefs.h <<\_ACEOF
  4603. #define volatile
  4604. _ACEOF
  4605. fi
  4606. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4607. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  4608. if test "${ac_cv_c_bigendian+set}" = set; then
  4609. echo $ECHO_N "(cached) $ECHO_C" >&6
  4610. else
  4611. # See if sys/param.h defines the BYTE_ORDER macro.
  4612. cat >conftest.$ac_ext <<_ACEOF
  4613. /* confdefs.h. */
  4614. _ACEOF
  4615. cat confdefs.h >>conftest.$ac_ext
  4616. cat >>conftest.$ac_ext <<_ACEOF
  4617. /* end confdefs.h. */
  4618. #include <sys/types.h>
  4619. #include <sys/param.h>
  4620. int
  4621. main ()
  4622. {
  4623. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  4624. bogus endian macros
  4625. #endif
  4626. ;
  4627. return 0;
  4628. }
  4629. _ACEOF
  4630. rm -f conftest.$ac_objext
  4631. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4632. (eval $ac_compile) 2>conftest.er1
  4633. ac_status=$?
  4634. grep -v '^ *+' conftest.er1 >conftest.err
  4635. rm -f conftest.er1
  4636. cat conftest.err >&5
  4637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4638. (exit $ac_status); } &&
  4639. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4641. (eval $ac_try) 2>&5
  4642. ac_status=$?
  4643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4644. (exit $ac_status); }; } &&
  4645. { ac_try='test -s conftest.$ac_objext'
  4646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4647. (eval $ac_try) 2>&5
  4648. ac_status=$?
  4649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4650. (exit $ac_status); }; }; then
  4651. # It does; now see whether it defined to BIG_ENDIAN or not.
  4652. cat >conftest.$ac_ext <<_ACEOF
  4653. /* confdefs.h. */
  4654. _ACEOF
  4655. cat confdefs.h >>conftest.$ac_ext
  4656. cat >>conftest.$ac_ext <<_ACEOF
  4657. /* end confdefs.h. */
  4658. #include <sys/types.h>
  4659. #include <sys/param.h>
  4660. int
  4661. main ()
  4662. {
  4663. #if BYTE_ORDER != BIG_ENDIAN
  4664. not big endian
  4665. #endif
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. rm -f conftest.$ac_objext
  4671. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4672. (eval $ac_compile) 2>conftest.er1
  4673. ac_status=$?
  4674. grep -v '^ *+' conftest.er1 >conftest.err
  4675. rm -f conftest.er1
  4676. cat conftest.err >&5
  4677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); } &&
  4679. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; } &&
  4685. { ac_try='test -s conftest.$ac_objext'
  4686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4687. (eval $ac_try) 2>&5
  4688. ac_status=$?
  4689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); }; }; then
  4691. ac_cv_c_bigendian=yes
  4692. else
  4693. echo "$as_me: failed program was:" >&5
  4694. sed 's/^/| /' conftest.$ac_ext >&5
  4695. ac_cv_c_bigendian=no
  4696. fi
  4697. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4698. else
  4699. echo "$as_me: failed program was:" >&5
  4700. sed 's/^/| /' conftest.$ac_ext >&5
  4701. # It does not; compile a test program.
  4702. if test "$cross_compiling" = yes; then
  4703. # try to guess the endianness by grepping values into an object file
  4704. ac_cv_c_bigendian=unknown
  4705. cat >conftest.$ac_ext <<_ACEOF
  4706. /* confdefs.h. */
  4707. _ACEOF
  4708. cat confdefs.h >>conftest.$ac_ext
  4709. cat >>conftest.$ac_ext <<_ACEOF
  4710. /* end confdefs.h. */
  4711. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4712. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4713. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4714. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4715. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4716. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4717. int
  4718. main ()
  4719. {
  4720. _ascii (); _ebcdic ();
  4721. ;
  4722. return 0;
  4723. }
  4724. _ACEOF
  4725. rm -f conftest.$ac_objext
  4726. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4727. (eval $ac_compile) 2>conftest.er1
  4728. ac_status=$?
  4729. grep -v '^ *+' conftest.er1 >conftest.err
  4730. rm -f conftest.er1
  4731. cat conftest.err >&5
  4732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4733. (exit $ac_status); } &&
  4734. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4736. (eval $ac_try) 2>&5
  4737. ac_status=$?
  4738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4739. (exit $ac_status); }; } &&
  4740. { ac_try='test -s conftest.$ac_objext'
  4741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4742. (eval $ac_try) 2>&5
  4743. ac_status=$?
  4744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. (exit $ac_status); }; }; then
  4746. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4747. ac_cv_c_bigendian=yes
  4748. fi
  4749. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4750. if test "$ac_cv_c_bigendian" = unknown; then
  4751. ac_cv_c_bigendian=no
  4752. else
  4753. # finding both strings is unlikely to happen, but who knows?
  4754. ac_cv_c_bigendian=unknown
  4755. fi
  4756. fi
  4757. else
  4758. echo "$as_me: failed program was:" >&5
  4759. sed 's/^/| /' conftest.$ac_ext >&5
  4760. fi
  4761. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4762. else
  4763. cat >conftest.$ac_ext <<_ACEOF
  4764. /* confdefs.h. */
  4765. _ACEOF
  4766. cat confdefs.h >>conftest.$ac_ext
  4767. cat >>conftest.$ac_ext <<_ACEOF
  4768. /* end confdefs.h. */
  4769. int
  4770. main ()
  4771. {
  4772. /* Are we little or big endian? From Harbison&Steele. */
  4773. union
  4774. {
  4775. long l;
  4776. char c[sizeof (long)];
  4777. } u;
  4778. u.l = 1;
  4779. exit (u.c[sizeof (long) - 1] == 1);
  4780. }
  4781. _ACEOF
  4782. rm -f conftest$ac_exeext
  4783. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4784. (eval $ac_link) 2>&5
  4785. ac_status=$?
  4786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4787. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4789. (eval $ac_try) 2>&5
  4790. ac_status=$?
  4791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4792. (exit $ac_status); }; }; then
  4793. ac_cv_c_bigendian=no
  4794. else
  4795. echo "$as_me: program exited with status $ac_status" >&5
  4796. echo "$as_me: failed program was:" >&5
  4797. sed 's/^/| /' conftest.$ac_ext >&5
  4798. ( exit $ac_status )
  4799. ac_cv_c_bigendian=yes
  4800. fi
  4801. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4802. fi
  4803. fi
  4804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4805. fi
  4806. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4807. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  4808. case $ac_cv_c_bigendian in
  4809. yes)
  4810. cat >>confdefs.h <<\_ACEOF
  4811. #define WORDS_BIGENDIAN 1
  4812. _ACEOF
  4813. ;;
  4814. no)
  4815. ;;
  4816. *)
  4817. { { echo "$as_me:$LINENO: error: unknown endianness
  4818. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4819. echo "$as_me: error: unknown endianness
  4820. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4821. { (exit 1); exit 1; }; } ;;
  4822. esac
  4823. #AC_C_INLINE
  4824. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  4825. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  4826. if test "${ac_cv_c_char_unsigned+set}" = set; then
  4827. echo $ECHO_N "(cached) $ECHO_C" >&6
  4828. else
  4829. cat >conftest.$ac_ext <<_ACEOF
  4830. /* confdefs.h. */
  4831. _ACEOF
  4832. cat confdefs.h >>conftest.$ac_ext
  4833. cat >>conftest.$ac_ext <<_ACEOF
  4834. /* end confdefs.h. */
  4835. $ac_includes_default
  4836. int
  4837. main ()
  4838. {
  4839. static int test_array [1 - 2 * !(((char) -1) < 0)];
  4840. test_array [0] = 0
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. rm -f conftest.$ac_objext
  4846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4847. (eval $ac_compile) 2>conftest.er1
  4848. ac_status=$?
  4849. grep -v '^ *+' conftest.er1 >conftest.err
  4850. rm -f conftest.er1
  4851. cat conftest.err >&5
  4852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4853. (exit $ac_status); } &&
  4854. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4856. (eval $ac_try) 2>&5
  4857. ac_status=$?
  4858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4859. (exit $ac_status); }; } &&
  4860. { ac_try='test -s conftest.$ac_objext'
  4861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4862. (eval $ac_try) 2>&5
  4863. ac_status=$?
  4864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4865. (exit $ac_status); }; }; then
  4866. ac_cv_c_char_unsigned=no
  4867. else
  4868. echo "$as_me: failed program was:" >&5
  4869. sed 's/^/| /' conftest.$ac_ext >&5
  4870. ac_cv_c_char_unsigned=yes
  4871. fi
  4872. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4873. fi
  4874. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  4875. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  4876. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  4877. cat >>confdefs.h <<\_ACEOF
  4878. #define __CHAR_UNSIGNED__ 1
  4879. _ACEOF
  4880. fi
  4881. #AC_C_STRINGIZE
  4882. #AC_C_PROTOTYPES
  4883. #checkpoint
  4884. cat >confcache <<\_ACEOF
  4885. # This file is a shell script that caches the results of configure
  4886. # tests run on this system so they can be shared between configure
  4887. # scripts and configure runs, see configure's option --config-cache.
  4888. # It is not useful on other systems. If it contains results you don't
  4889. # want to keep, you may remove or edit it.
  4890. #
  4891. # config.status only pays attention to the cache file if you give it
  4892. # the --recheck option to rerun configure.
  4893. #
  4894. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4895. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4896. # following values.
  4897. _ACEOF
  4898. # The following way of writing the cache mishandles newlines in values,
  4899. # but we know of no workaround that is simple, portable, and efficient.
  4900. # So, don't put newlines in cache variables' values.
  4901. # Ultrix sh set writes to stderr and can't be redirected directly,
  4902. # and sets the high bit in the cache file unless we assign to the vars.
  4903. {
  4904. (set) 2>&1 |
  4905. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4906. *ac_space=\ *)
  4907. # `set' does not quote correctly, so add quotes (double-quote
  4908. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4909. sed -n \
  4910. "s/'/'\\\\''/g;
  4911. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4912. ;;
  4913. *)
  4914. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4915. sed -n \
  4916. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4917. ;;
  4918. esac;
  4919. } |
  4920. sed '
  4921. t clear
  4922. : clear
  4923. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4924. t end
  4925. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4926. : end' >>confcache
  4927. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4928. if test -w $cache_file; then
  4929. test "x$cache_file" != "x/dev/null"
  4930. cat confcache >$cache_file
  4931. else
  4932. echo "not updating unwritable cache $cache_file"
  4933. fi
  4934. fi
  4935. rm -f confcache
  4936. echo "$as_me:$LINENO: checking for int" >&5
  4937. echo $ECHO_N "checking for int... $ECHO_C" >&6
  4938. if test "${ac_cv_type_int+set}" = set; then
  4939. echo $ECHO_N "(cached) $ECHO_C" >&6
  4940. else
  4941. cat >conftest.$ac_ext <<_ACEOF
  4942. /* confdefs.h. */
  4943. _ACEOF
  4944. cat confdefs.h >>conftest.$ac_ext
  4945. cat >>conftest.$ac_ext <<_ACEOF
  4946. /* end confdefs.h. */
  4947. $ac_includes_default
  4948. int
  4949. main ()
  4950. {
  4951. if ((int *) 0)
  4952. return 0;
  4953. if (sizeof (int))
  4954. return 0;
  4955. ;
  4956. return 0;
  4957. }
  4958. _ACEOF
  4959. rm -f conftest.$ac_objext
  4960. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4961. (eval $ac_compile) 2>conftest.er1
  4962. ac_status=$?
  4963. grep -v '^ *+' conftest.er1 >conftest.err
  4964. rm -f conftest.er1
  4965. cat conftest.err >&5
  4966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4967. (exit $ac_status); } &&
  4968. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4970. (eval $ac_try) 2>&5
  4971. ac_status=$?
  4972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4973. (exit $ac_status); }; } &&
  4974. { ac_try='test -s conftest.$ac_objext'
  4975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4976. (eval $ac_try) 2>&5
  4977. ac_status=$?
  4978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4979. (exit $ac_status); }; }; then
  4980. ac_cv_type_int=yes
  4981. else
  4982. echo "$as_me: failed program was:" >&5
  4983. sed 's/^/| /' conftest.$ac_ext >&5
  4984. ac_cv_type_int=no
  4985. fi
  4986. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4987. fi
  4988. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  4989. echo "${ECHO_T}$ac_cv_type_int" >&6
  4990. echo "$as_me:$LINENO: checking size of int" >&5
  4991. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  4992. if test "${ac_cv_sizeof_int+set}" = set; then
  4993. echo $ECHO_N "(cached) $ECHO_C" >&6
  4994. else
  4995. if test "$ac_cv_type_int" = yes; then
  4996. # The cast to unsigned long works around a bug in the HP C Compiler
  4997. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4998. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4999. # This bug is HP SR number 8606223364.
  5000. if test "$cross_compiling" = yes; then
  5001. # Depending upon the size, compute the lo and hi bounds.
  5002. cat >conftest.$ac_ext <<_ACEOF
  5003. /* confdefs.h. */
  5004. _ACEOF
  5005. cat confdefs.h >>conftest.$ac_ext
  5006. cat >>conftest.$ac_ext <<_ACEOF
  5007. /* end confdefs.h. */
  5008. $ac_includes_default
  5009. int
  5010. main ()
  5011. {
  5012. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5013. test_array [0] = 0
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. rm -f conftest.$ac_objext
  5019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5020. (eval $ac_compile) 2>conftest.er1
  5021. ac_status=$?
  5022. grep -v '^ *+' conftest.er1 >conftest.err
  5023. rm -f conftest.er1
  5024. cat conftest.err >&5
  5025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5026. (exit $ac_status); } &&
  5027. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5029. (eval $ac_try) 2>&5
  5030. ac_status=$?
  5031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5032. (exit $ac_status); }; } &&
  5033. { ac_try='test -s conftest.$ac_objext'
  5034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5035. (eval $ac_try) 2>&5
  5036. ac_status=$?
  5037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5038. (exit $ac_status); }; }; then
  5039. ac_lo=0 ac_mid=0
  5040. while :; do
  5041. cat >conftest.$ac_ext <<_ACEOF
  5042. /* confdefs.h. */
  5043. _ACEOF
  5044. cat confdefs.h >>conftest.$ac_ext
  5045. cat >>conftest.$ac_ext <<_ACEOF
  5046. /* end confdefs.h. */
  5047. $ac_includes_default
  5048. int
  5049. main ()
  5050. {
  5051. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5052. test_array [0] = 0
  5053. ;
  5054. return 0;
  5055. }
  5056. _ACEOF
  5057. rm -f conftest.$ac_objext
  5058. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5059. (eval $ac_compile) 2>conftest.er1
  5060. ac_status=$?
  5061. grep -v '^ *+' conftest.er1 >conftest.err
  5062. rm -f conftest.er1
  5063. cat conftest.err >&5
  5064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5065. (exit $ac_status); } &&
  5066. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5068. (eval $ac_try) 2>&5
  5069. ac_status=$?
  5070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5071. (exit $ac_status); }; } &&
  5072. { ac_try='test -s conftest.$ac_objext'
  5073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5074. (eval $ac_try) 2>&5
  5075. ac_status=$?
  5076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5077. (exit $ac_status); }; }; then
  5078. ac_hi=$ac_mid; break
  5079. else
  5080. echo "$as_me: failed program was:" >&5
  5081. sed 's/^/| /' conftest.$ac_ext >&5
  5082. ac_lo=`expr $ac_mid + 1`
  5083. if test $ac_lo -le $ac_mid; then
  5084. ac_lo= ac_hi=
  5085. break
  5086. fi
  5087. ac_mid=`expr 2 '*' $ac_mid + 1`
  5088. fi
  5089. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5090. done
  5091. else
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. cat >conftest.$ac_ext <<_ACEOF
  5095. /* confdefs.h. */
  5096. _ACEOF
  5097. cat confdefs.h >>conftest.$ac_ext
  5098. cat >>conftest.$ac_ext <<_ACEOF
  5099. /* end confdefs.h. */
  5100. $ac_includes_default
  5101. int
  5102. main ()
  5103. {
  5104. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  5105. test_array [0] = 0
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. rm -f conftest.$ac_objext
  5111. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5112. (eval $ac_compile) 2>conftest.er1
  5113. ac_status=$?
  5114. grep -v '^ *+' conftest.er1 >conftest.err
  5115. rm -f conftest.er1
  5116. cat conftest.err >&5
  5117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118. (exit $ac_status); } &&
  5119. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5121. (eval $ac_try) 2>&5
  5122. ac_status=$?
  5123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5124. (exit $ac_status); }; } &&
  5125. { ac_try='test -s conftest.$ac_objext'
  5126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5127. (eval $ac_try) 2>&5
  5128. ac_status=$?
  5129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5130. (exit $ac_status); }; }; then
  5131. ac_hi=-1 ac_mid=-1
  5132. while :; do
  5133. cat >conftest.$ac_ext <<_ACEOF
  5134. /* confdefs.h. */
  5135. _ACEOF
  5136. cat confdefs.h >>conftest.$ac_ext
  5137. cat >>conftest.$ac_ext <<_ACEOF
  5138. /* end confdefs.h. */
  5139. $ac_includes_default
  5140. int
  5141. main ()
  5142. {
  5143. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  5144. test_array [0] = 0
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. rm -f conftest.$ac_objext
  5150. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5151. (eval $ac_compile) 2>conftest.er1
  5152. ac_status=$?
  5153. grep -v '^ *+' conftest.er1 >conftest.err
  5154. rm -f conftest.er1
  5155. cat conftest.err >&5
  5156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5157. (exit $ac_status); } &&
  5158. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5160. (eval $ac_try) 2>&5
  5161. ac_status=$?
  5162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5163. (exit $ac_status); }; } &&
  5164. { ac_try='test -s conftest.$ac_objext'
  5165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5166. (eval $ac_try) 2>&5
  5167. ac_status=$?
  5168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5169. (exit $ac_status); }; }; then
  5170. ac_lo=$ac_mid; break
  5171. else
  5172. echo "$as_me: failed program was:" >&5
  5173. sed 's/^/| /' conftest.$ac_ext >&5
  5174. ac_hi=`expr '(' $ac_mid ')' - 1`
  5175. if test $ac_mid -le $ac_hi; then
  5176. ac_lo= ac_hi=
  5177. break
  5178. fi
  5179. ac_mid=`expr 2 '*' $ac_mid`
  5180. fi
  5181. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5182. done
  5183. else
  5184. echo "$as_me: failed program was:" >&5
  5185. sed 's/^/| /' conftest.$ac_ext >&5
  5186. ac_lo= ac_hi=
  5187. fi
  5188. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5189. fi
  5190. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5191. # Binary search between lo and hi bounds.
  5192. while test "x$ac_lo" != "x$ac_hi"; do
  5193. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5194. cat >conftest.$ac_ext <<_ACEOF
  5195. /* confdefs.h. */
  5196. _ACEOF
  5197. cat confdefs.h >>conftest.$ac_ext
  5198. cat >>conftest.$ac_ext <<_ACEOF
  5199. /* end confdefs.h. */
  5200. $ac_includes_default
  5201. int
  5202. main ()
  5203. {
  5204. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5205. test_array [0] = 0
  5206. ;
  5207. return 0;
  5208. }
  5209. _ACEOF
  5210. rm -f conftest.$ac_objext
  5211. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5212. (eval $ac_compile) 2>conftest.er1
  5213. ac_status=$?
  5214. grep -v '^ *+' conftest.er1 >conftest.err
  5215. rm -f conftest.er1
  5216. cat conftest.err >&5
  5217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5218. (exit $ac_status); } &&
  5219. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5221. (eval $ac_try) 2>&5
  5222. ac_status=$?
  5223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5224. (exit $ac_status); }; } &&
  5225. { ac_try='test -s conftest.$ac_objext'
  5226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5227. (eval $ac_try) 2>&5
  5228. ac_status=$?
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); }; }; then
  5231. ac_hi=$ac_mid
  5232. else
  5233. echo "$as_me: failed program was:" >&5
  5234. sed 's/^/| /' conftest.$ac_ext >&5
  5235. ac_lo=`expr '(' $ac_mid ')' + 1`
  5236. fi
  5237. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5238. done
  5239. case $ac_lo in
  5240. ?*) ac_cv_sizeof_int=$ac_lo;;
  5241. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5242. See \`config.log' for more details." >&5
  5243. echo "$as_me: error: cannot compute sizeof (int), 77
  5244. See \`config.log' for more details." >&2;}
  5245. { (exit 1); exit 1; }; } ;;
  5246. esac
  5247. else
  5248. if test "$cross_compiling" = yes; then
  5249. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5250. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5251. { (exit 1); exit 1; }; }
  5252. else
  5253. cat >conftest.$ac_ext <<_ACEOF
  5254. /* confdefs.h. */
  5255. _ACEOF
  5256. cat confdefs.h >>conftest.$ac_ext
  5257. cat >>conftest.$ac_ext <<_ACEOF
  5258. /* end confdefs.h. */
  5259. $ac_includes_default
  5260. long longval () { return (long) (sizeof (int)); }
  5261. unsigned long ulongval () { return (long) (sizeof (int)); }
  5262. #include <stdio.h>
  5263. #include <stdlib.h>
  5264. int
  5265. main ()
  5266. {
  5267. FILE *f = fopen ("conftest.val", "w");
  5268. if (! f)
  5269. exit (1);
  5270. if (((long) (sizeof (int))) < 0)
  5271. {
  5272. long i = longval ();
  5273. if (i != ((long) (sizeof (int))))
  5274. exit (1);
  5275. fprintf (f, "%ld\n", i);
  5276. }
  5277. else
  5278. {
  5279. unsigned long i = ulongval ();
  5280. if (i != ((long) (sizeof (int))))
  5281. exit (1);
  5282. fprintf (f, "%lu\n", i);
  5283. }
  5284. exit (ferror (f) || fclose (f) != 0);
  5285. ;
  5286. return 0;
  5287. }
  5288. _ACEOF
  5289. rm -f conftest$ac_exeext
  5290. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5291. (eval $ac_link) 2>&5
  5292. ac_status=$?
  5293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5294. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5296. (eval $ac_try) 2>&5
  5297. ac_status=$?
  5298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5299. (exit $ac_status); }; }; then
  5300. ac_cv_sizeof_int=`cat conftest.val`
  5301. else
  5302. echo "$as_me: program exited with status $ac_status" >&5
  5303. echo "$as_me: failed program was:" >&5
  5304. sed 's/^/| /' conftest.$ac_ext >&5
  5305. ( exit $ac_status )
  5306. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5307. See \`config.log' for more details." >&5
  5308. echo "$as_me: error: cannot compute sizeof (int), 77
  5309. See \`config.log' for more details." >&2;}
  5310. { (exit 1); exit 1; }; }
  5311. fi
  5312. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5313. fi
  5314. fi
  5315. rm -f conftest.val
  5316. else
  5317. ac_cv_sizeof_int=0
  5318. fi
  5319. fi
  5320. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5321. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  5322. cat >>confdefs.h <<_ACEOF
  5323. #define SIZEOF_INT $ac_cv_sizeof_int
  5324. _ACEOF
  5325. echo "$as_me:$LINENO: checking for short" >&5
  5326. echo $ECHO_N "checking for short... $ECHO_C" >&6
  5327. if test "${ac_cv_type_short+set}" = set; then
  5328. echo $ECHO_N "(cached) $ECHO_C" >&6
  5329. else
  5330. cat >conftest.$ac_ext <<_ACEOF
  5331. /* confdefs.h. */
  5332. _ACEOF
  5333. cat confdefs.h >>conftest.$ac_ext
  5334. cat >>conftest.$ac_ext <<_ACEOF
  5335. /* end confdefs.h. */
  5336. $ac_includes_default
  5337. int
  5338. main ()
  5339. {
  5340. if ((short *) 0)
  5341. return 0;
  5342. if (sizeof (short))
  5343. return 0;
  5344. ;
  5345. return 0;
  5346. }
  5347. _ACEOF
  5348. rm -f conftest.$ac_objext
  5349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5350. (eval $ac_compile) 2>conftest.er1
  5351. ac_status=$?
  5352. grep -v '^ *+' conftest.er1 >conftest.err
  5353. rm -f conftest.er1
  5354. cat conftest.err >&5
  5355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); } &&
  5357. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5359. (eval $ac_try) 2>&5
  5360. ac_status=$?
  5361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5362. (exit $ac_status); }; } &&
  5363. { ac_try='test -s conftest.$ac_objext'
  5364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5365. (eval $ac_try) 2>&5
  5366. ac_status=$?
  5367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5368. (exit $ac_status); }; }; then
  5369. ac_cv_type_short=yes
  5370. else
  5371. echo "$as_me: failed program was:" >&5
  5372. sed 's/^/| /' conftest.$ac_ext >&5
  5373. ac_cv_type_short=no
  5374. fi
  5375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5376. fi
  5377. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5378. echo "${ECHO_T}$ac_cv_type_short" >&6
  5379. echo "$as_me:$LINENO: checking size of short" >&5
  5380. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  5381. if test "${ac_cv_sizeof_short+set}" = set; then
  5382. echo $ECHO_N "(cached) $ECHO_C" >&6
  5383. else
  5384. if test "$ac_cv_type_short" = yes; then
  5385. # The cast to unsigned long works around a bug in the HP C Compiler
  5386. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5387. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5388. # This bug is HP SR number 8606223364.
  5389. if test "$cross_compiling" = yes; then
  5390. # Depending upon the size, compute the lo and hi bounds.
  5391. cat >conftest.$ac_ext <<_ACEOF
  5392. /* confdefs.h. */
  5393. _ACEOF
  5394. cat confdefs.h >>conftest.$ac_ext
  5395. cat >>conftest.$ac_ext <<_ACEOF
  5396. /* end confdefs.h. */
  5397. $ac_includes_default
  5398. int
  5399. main ()
  5400. {
  5401. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  5402. test_array [0] = 0
  5403. ;
  5404. return 0;
  5405. }
  5406. _ACEOF
  5407. rm -f conftest.$ac_objext
  5408. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5409. (eval $ac_compile) 2>conftest.er1
  5410. ac_status=$?
  5411. grep -v '^ *+' conftest.er1 >conftest.err
  5412. rm -f conftest.er1
  5413. cat conftest.err >&5
  5414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5415. (exit $ac_status); } &&
  5416. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5418. (eval $ac_try) 2>&5
  5419. ac_status=$?
  5420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5421. (exit $ac_status); }; } &&
  5422. { ac_try='test -s conftest.$ac_objext'
  5423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5424. (eval $ac_try) 2>&5
  5425. ac_status=$?
  5426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5427. (exit $ac_status); }; }; then
  5428. ac_lo=0 ac_mid=0
  5429. while :; do
  5430. cat >conftest.$ac_ext <<_ACEOF
  5431. /* confdefs.h. */
  5432. _ACEOF
  5433. cat confdefs.h >>conftest.$ac_ext
  5434. cat >>conftest.$ac_ext <<_ACEOF
  5435. /* end confdefs.h. */
  5436. $ac_includes_default
  5437. int
  5438. main ()
  5439. {
  5440. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5441. test_array [0] = 0
  5442. ;
  5443. return 0;
  5444. }
  5445. _ACEOF
  5446. rm -f conftest.$ac_objext
  5447. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5448. (eval $ac_compile) 2>conftest.er1
  5449. ac_status=$?
  5450. grep -v '^ *+' conftest.er1 >conftest.err
  5451. rm -f conftest.er1
  5452. cat conftest.err >&5
  5453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5454. (exit $ac_status); } &&
  5455. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5457. (eval $ac_try) 2>&5
  5458. ac_status=$?
  5459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5460. (exit $ac_status); }; } &&
  5461. { ac_try='test -s conftest.$ac_objext'
  5462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5463. (eval $ac_try) 2>&5
  5464. ac_status=$?
  5465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5466. (exit $ac_status); }; }; then
  5467. ac_hi=$ac_mid; break
  5468. else
  5469. echo "$as_me: failed program was:" >&5
  5470. sed 's/^/| /' conftest.$ac_ext >&5
  5471. ac_lo=`expr $ac_mid + 1`
  5472. if test $ac_lo -le $ac_mid; then
  5473. ac_lo= ac_hi=
  5474. break
  5475. fi
  5476. ac_mid=`expr 2 '*' $ac_mid + 1`
  5477. fi
  5478. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5479. done
  5480. else
  5481. echo "$as_me: failed program was:" >&5
  5482. sed 's/^/| /' conftest.$ac_ext >&5
  5483. cat >conftest.$ac_ext <<_ACEOF
  5484. /* confdefs.h. */
  5485. _ACEOF
  5486. cat confdefs.h >>conftest.$ac_ext
  5487. cat >>conftest.$ac_ext <<_ACEOF
  5488. /* end confdefs.h. */
  5489. $ac_includes_default
  5490. int
  5491. main ()
  5492. {
  5493. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  5494. test_array [0] = 0
  5495. ;
  5496. return 0;
  5497. }
  5498. _ACEOF
  5499. rm -f conftest.$ac_objext
  5500. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5501. (eval $ac_compile) 2>conftest.er1
  5502. ac_status=$?
  5503. grep -v '^ *+' conftest.er1 >conftest.err
  5504. rm -f conftest.er1
  5505. cat conftest.err >&5
  5506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5507. (exit $ac_status); } &&
  5508. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5510. (eval $ac_try) 2>&5
  5511. ac_status=$?
  5512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5513. (exit $ac_status); }; } &&
  5514. { ac_try='test -s conftest.$ac_objext'
  5515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5516. (eval $ac_try) 2>&5
  5517. ac_status=$?
  5518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5519. (exit $ac_status); }; }; then
  5520. ac_hi=-1 ac_mid=-1
  5521. while :; do
  5522. cat >conftest.$ac_ext <<_ACEOF
  5523. /* confdefs.h. */
  5524. _ACEOF
  5525. cat confdefs.h >>conftest.$ac_ext
  5526. cat >>conftest.$ac_ext <<_ACEOF
  5527. /* end confdefs.h. */
  5528. $ac_includes_default
  5529. int
  5530. main ()
  5531. {
  5532. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  5533. test_array [0] = 0
  5534. ;
  5535. return 0;
  5536. }
  5537. _ACEOF
  5538. rm -f conftest.$ac_objext
  5539. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5540. (eval $ac_compile) 2>conftest.er1
  5541. ac_status=$?
  5542. grep -v '^ *+' conftest.er1 >conftest.err
  5543. rm -f conftest.er1
  5544. cat conftest.err >&5
  5545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5546. (exit $ac_status); } &&
  5547. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5549. (eval $ac_try) 2>&5
  5550. ac_status=$?
  5551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5552. (exit $ac_status); }; } &&
  5553. { ac_try='test -s conftest.$ac_objext'
  5554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5555. (eval $ac_try) 2>&5
  5556. ac_status=$?
  5557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5558. (exit $ac_status); }; }; then
  5559. ac_lo=$ac_mid; break
  5560. else
  5561. echo "$as_me: failed program was:" >&5
  5562. sed 's/^/| /' conftest.$ac_ext >&5
  5563. ac_hi=`expr '(' $ac_mid ')' - 1`
  5564. if test $ac_mid -le $ac_hi; then
  5565. ac_lo= ac_hi=
  5566. break
  5567. fi
  5568. ac_mid=`expr 2 '*' $ac_mid`
  5569. fi
  5570. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5571. done
  5572. else
  5573. echo "$as_me: failed program was:" >&5
  5574. sed 's/^/| /' conftest.$ac_ext >&5
  5575. ac_lo= ac_hi=
  5576. fi
  5577. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5578. fi
  5579. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5580. # Binary search between lo and hi bounds.
  5581. while test "x$ac_lo" != "x$ac_hi"; do
  5582. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5583. cat >conftest.$ac_ext <<_ACEOF
  5584. /* confdefs.h. */
  5585. _ACEOF
  5586. cat confdefs.h >>conftest.$ac_ext
  5587. cat >>conftest.$ac_ext <<_ACEOF
  5588. /* end confdefs.h. */
  5589. $ac_includes_default
  5590. int
  5591. main ()
  5592. {
  5593. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5594. test_array [0] = 0
  5595. ;
  5596. return 0;
  5597. }
  5598. _ACEOF
  5599. rm -f conftest.$ac_objext
  5600. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5601. (eval $ac_compile) 2>conftest.er1
  5602. ac_status=$?
  5603. grep -v '^ *+' conftest.er1 >conftest.err
  5604. rm -f conftest.er1
  5605. cat conftest.err >&5
  5606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5607. (exit $ac_status); } &&
  5608. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5610. (eval $ac_try) 2>&5
  5611. ac_status=$?
  5612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); }; } &&
  5614. { ac_try='test -s conftest.$ac_objext'
  5615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5616. (eval $ac_try) 2>&5
  5617. ac_status=$?
  5618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5619. (exit $ac_status); }; }; then
  5620. ac_hi=$ac_mid
  5621. else
  5622. echo "$as_me: failed program was:" >&5
  5623. sed 's/^/| /' conftest.$ac_ext >&5
  5624. ac_lo=`expr '(' $ac_mid ')' + 1`
  5625. fi
  5626. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5627. done
  5628. case $ac_lo in
  5629. ?*) ac_cv_sizeof_short=$ac_lo;;
  5630. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5631. See \`config.log' for more details." >&5
  5632. echo "$as_me: error: cannot compute sizeof (short), 77
  5633. See \`config.log' for more details." >&2;}
  5634. { (exit 1); exit 1; }; } ;;
  5635. esac
  5636. else
  5637. if test "$cross_compiling" = yes; then
  5638. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5639. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5640. { (exit 1); exit 1; }; }
  5641. else
  5642. cat >conftest.$ac_ext <<_ACEOF
  5643. /* confdefs.h. */
  5644. _ACEOF
  5645. cat confdefs.h >>conftest.$ac_ext
  5646. cat >>conftest.$ac_ext <<_ACEOF
  5647. /* end confdefs.h. */
  5648. $ac_includes_default
  5649. long longval () { return (long) (sizeof (short)); }
  5650. unsigned long ulongval () { return (long) (sizeof (short)); }
  5651. #include <stdio.h>
  5652. #include <stdlib.h>
  5653. int
  5654. main ()
  5655. {
  5656. FILE *f = fopen ("conftest.val", "w");
  5657. if (! f)
  5658. exit (1);
  5659. if (((long) (sizeof (short))) < 0)
  5660. {
  5661. long i = longval ();
  5662. if (i != ((long) (sizeof (short))))
  5663. exit (1);
  5664. fprintf (f, "%ld\n", i);
  5665. }
  5666. else
  5667. {
  5668. unsigned long i = ulongval ();
  5669. if (i != ((long) (sizeof (short))))
  5670. exit (1);
  5671. fprintf (f, "%lu\n", i);
  5672. }
  5673. exit (ferror (f) || fclose (f) != 0);
  5674. ;
  5675. return 0;
  5676. }
  5677. _ACEOF
  5678. rm -f conftest$ac_exeext
  5679. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5680. (eval $ac_link) 2>&5
  5681. ac_status=$?
  5682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5683. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5685. (eval $ac_try) 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }; }; then
  5689. ac_cv_sizeof_short=`cat conftest.val`
  5690. else
  5691. echo "$as_me: program exited with status $ac_status" >&5
  5692. echo "$as_me: failed program was:" >&5
  5693. sed 's/^/| /' conftest.$ac_ext >&5
  5694. ( exit $ac_status )
  5695. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5696. See \`config.log' for more details." >&5
  5697. echo "$as_me: error: cannot compute sizeof (short), 77
  5698. See \`config.log' for more details." >&2;}
  5699. { (exit 1); exit 1; }; }
  5700. fi
  5701. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5702. fi
  5703. fi
  5704. rm -f conftest.val
  5705. else
  5706. ac_cv_sizeof_short=0
  5707. fi
  5708. fi
  5709. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  5710. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  5711. cat >>confdefs.h <<_ACEOF
  5712. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5713. _ACEOF
  5714. echo "$as_me:$LINENO: checking for long" >&5
  5715. echo $ECHO_N "checking for long... $ECHO_C" >&6
  5716. if test "${ac_cv_type_long+set}" = set; then
  5717. echo $ECHO_N "(cached) $ECHO_C" >&6
  5718. else
  5719. cat >conftest.$ac_ext <<_ACEOF
  5720. /* confdefs.h. */
  5721. _ACEOF
  5722. cat confdefs.h >>conftest.$ac_ext
  5723. cat >>conftest.$ac_ext <<_ACEOF
  5724. /* end confdefs.h. */
  5725. $ac_includes_default
  5726. int
  5727. main ()
  5728. {
  5729. if ((long *) 0)
  5730. return 0;
  5731. if (sizeof (long))
  5732. return 0;
  5733. ;
  5734. return 0;
  5735. }
  5736. _ACEOF
  5737. rm -f conftest.$ac_objext
  5738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5739. (eval $ac_compile) 2>conftest.er1
  5740. ac_status=$?
  5741. grep -v '^ *+' conftest.er1 >conftest.err
  5742. rm -f conftest.er1
  5743. cat conftest.err >&5
  5744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5745. (exit $ac_status); } &&
  5746. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5748. (eval $ac_try) 2>&5
  5749. ac_status=$?
  5750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751. (exit $ac_status); }; } &&
  5752. { ac_try='test -s conftest.$ac_objext'
  5753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5754. (eval $ac_try) 2>&5
  5755. ac_status=$?
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); }; }; then
  5758. ac_cv_type_long=yes
  5759. else
  5760. echo "$as_me: failed program was:" >&5
  5761. sed 's/^/| /' conftest.$ac_ext >&5
  5762. ac_cv_type_long=no
  5763. fi
  5764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5765. fi
  5766. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5767. echo "${ECHO_T}$ac_cv_type_long" >&6
  5768. echo "$as_me:$LINENO: checking size of long" >&5
  5769. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  5770. if test "${ac_cv_sizeof_long+set}" = set; then
  5771. echo $ECHO_N "(cached) $ECHO_C" >&6
  5772. else
  5773. if test "$ac_cv_type_long" = yes; then
  5774. # The cast to unsigned long works around a bug in the HP C Compiler
  5775. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5776. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5777. # This bug is HP SR number 8606223364.
  5778. if test "$cross_compiling" = yes; then
  5779. # Depending upon the size, compute the lo and hi bounds.
  5780. cat >conftest.$ac_ext <<_ACEOF
  5781. /* confdefs.h. */
  5782. _ACEOF
  5783. cat confdefs.h >>conftest.$ac_ext
  5784. cat >>conftest.$ac_ext <<_ACEOF
  5785. /* end confdefs.h. */
  5786. $ac_includes_default
  5787. int
  5788. main ()
  5789. {
  5790. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  5791. test_array [0] = 0
  5792. ;
  5793. return 0;
  5794. }
  5795. _ACEOF
  5796. rm -f conftest.$ac_objext
  5797. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5798. (eval $ac_compile) 2>conftest.er1
  5799. ac_status=$?
  5800. grep -v '^ *+' conftest.er1 >conftest.err
  5801. rm -f conftest.er1
  5802. cat conftest.err >&5
  5803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5804. (exit $ac_status); } &&
  5805. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5807. (eval $ac_try) 2>&5
  5808. ac_status=$?
  5809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5810. (exit $ac_status); }; } &&
  5811. { ac_try='test -s conftest.$ac_objext'
  5812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5813. (eval $ac_try) 2>&5
  5814. ac_status=$?
  5815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5816. (exit $ac_status); }; }; then
  5817. ac_lo=0 ac_mid=0
  5818. while :; do
  5819. cat >conftest.$ac_ext <<_ACEOF
  5820. /* confdefs.h. */
  5821. _ACEOF
  5822. cat confdefs.h >>conftest.$ac_ext
  5823. cat >>conftest.$ac_ext <<_ACEOF
  5824. /* end confdefs.h. */
  5825. $ac_includes_default
  5826. int
  5827. main ()
  5828. {
  5829. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  5830. test_array [0] = 0
  5831. ;
  5832. return 0;
  5833. }
  5834. _ACEOF
  5835. rm -f conftest.$ac_objext
  5836. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5837. (eval $ac_compile) 2>conftest.er1
  5838. ac_status=$?
  5839. grep -v '^ *+' conftest.er1 >conftest.err
  5840. rm -f conftest.er1
  5841. cat conftest.err >&5
  5842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. (exit $ac_status); } &&
  5844. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5846. (eval $ac_try) 2>&5
  5847. ac_status=$?
  5848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); }; } &&
  5850. { ac_try='test -s conftest.$ac_objext'
  5851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5852. (eval $ac_try) 2>&5
  5853. ac_status=$?
  5854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5855. (exit $ac_status); }; }; then
  5856. ac_hi=$ac_mid; break
  5857. else
  5858. echo "$as_me: failed program was:" >&5
  5859. sed 's/^/| /' conftest.$ac_ext >&5
  5860. ac_lo=`expr $ac_mid + 1`
  5861. if test $ac_lo -le $ac_mid; then
  5862. ac_lo= ac_hi=
  5863. break
  5864. fi
  5865. ac_mid=`expr 2 '*' $ac_mid + 1`
  5866. fi
  5867. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5868. done
  5869. else
  5870. echo "$as_me: failed program was:" >&5
  5871. sed 's/^/| /' conftest.$ac_ext >&5
  5872. cat >conftest.$ac_ext <<_ACEOF
  5873. /* confdefs.h. */
  5874. _ACEOF
  5875. cat confdefs.h >>conftest.$ac_ext
  5876. cat >>conftest.$ac_ext <<_ACEOF
  5877. /* end confdefs.h. */
  5878. $ac_includes_default
  5879. int
  5880. main ()
  5881. {
  5882. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  5883. test_array [0] = 0
  5884. ;
  5885. return 0;
  5886. }
  5887. _ACEOF
  5888. rm -f conftest.$ac_objext
  5889. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5890. (eval $ac_compile) 2>conftest.er1
  5891. ac_status=$?
  5892. grep -v '^ *+' conftest.er1 >conftest.err
  5893. rm -f conftest.er1
  5894. cat conftest.err >&5
  5895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5896. (exit $ac_status); } &&
  5897. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5899. (eval $ac_try) 2>&5
  5900. ac_status=$?
  5901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5902. (exit $ac_status); }; } &&
  5903. { ac_try='test -s conftest.$ac_objext'
  5904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5905. (eval $ac_try) 2>&5
  5906. ac_status=$?
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); }; }; then
  5909. ac_hi=-1 ac_mid=-1
  5910. while :; do
  5911. cat >conftest.$ac_ext <<_ACEOF
  5912. /* confdefs.h. */
  5913. _ACEOF
  5914. cat confdefs.h >>conftest.$ac_ext
  5915. cat >>conftest.$ac_ext <<_ACEOF
  5916. /* end confdefs.h. */
  5917. $ac_includes_default
  5918. int
  5919. main ()
  5920. {
  5921. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  5922. test_array [0] = 0
  5923. ;
  5924. return 0;
  5925. }
  5926. _ACEOF
  5927. rm -f conftest.$ac_objext
  5928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5929. (eval $ac_compile) 2>conftest.er1
  5930. ac_status=$?
  5931. grep -v '^ *+' conftest.er1 >conftest.err
  5932. rm -f conftest.er1
  5933. cat conftest.err >&5
  5934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5935. (exit $ac_status); } &&
  5936. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5938. (eval $ac_try) 2>&5
  5939. ac_status=$?
  5940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5941. (exit $ac_status); }; } &&
  5942. { ac_try='test -s conftest.$ac_objext'
  5943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5944. (eval $ac_try) 2>&5
  5945. ac_status=$?
  5946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5947. (exit $ac_status); }; }; then
  5948. ac_lo=$ac_mid; break
  5949. else
  5950. echo "$as_me: failed program was:" >&5
  5951. sed 's/^/| /' conftest.$ac_ext >&5
  5952. ac_hi=`expr '(' $ac_mid ')' - 1`
  5953. if test $ac_mid -le $ac_hi; then
  5954. ac_lo= ac_hi=
  5955. break
  5956. fi
  5957. ac_mid=`expr 2 '*' $ac_mid`
  5958. fi
  5959. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5960. done
  5961. else
  5962. echo "$as_me: failed program was:" >&5
  5963. sed 's/^/| /' conftest.$ac_ext >&5
  5964. ac_lo= ac_hi=
  5965. fi
  5966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5967. fi
  5968. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5969. # Binary search between lo and hi bounds.
  5970. while test "x$ac_lo" != "x$ac_hi"; do
  5971. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5972. cat >conftest.$ac_ext <<_ACEOF
  5973. /* confdefs.h. */
  5974. _ACEOF
  5975. cat confdefs.h >>conftest.$ac_ext
  5976. cat >>conftest.$ac_ext <<_ACEOF
  5977. /* end confdefs.h. */
  5978. $ac_includes_default
  5979. int
  5980. main ()
  5981. {
  5982. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  5983. test_array [0] = 0
  5984. ;
  5985. return 0;
  5986. }
  5987. _ACEOF
  5988. rm -f conftest.$ac_objext
  5989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5990. (eval $ac_compile) 2>conftest.er1
  5991. ac_status=$?
  5992. grep -v '^ *+' conftest.er1 >conftest.err
  5993. rm -f conftest.er1
  5994. cat conftest.err >&5
  5995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5996. (exit $ac_status); } &&
  5997. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5999. (eval $ac_try) 2>&5
  6000. ac_status=$?
  6001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6002. (exit $ac_status); }; } &&
  6003. { ac_try='test -s conftest.$ac_objext'
  6004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6005. (eval $ac_try) 2>&5
  6006. ac_status=$?
  6007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6008. (exit $ac_status); }; }; then
  6009. ac_hi=$ac_mid
  6010. else
  6011. echo "$as_me: failed program was:" >&5
  6012. sed 's/^/| /' conftest.$ac_ext >&5
  6013. ac_lo=`expr '(' $ac_mid ')' + 1`
  6014. fi
  6015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6016. done
  6017. case $ac_lo in
  6018. ?*) ac_cv_sizeof_long=$ac_lo;;
  6019. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6020. See \`config.log' for more details." >&5
  6021. echo "$as_me: error: cannot compute sizeof (long), 77
  6022. See \`config.log' for more details." >&2;}
  6023. { (exit 1); exit 1; }; } ;;
  6024. esac
  6025. else
  6026. if test "$cross_compiling" = yes; then
  6027. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6028. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6029. { (exit 1); exit 1; }; }
  6030. else
  6031. cat >conftest.$ac_ext <<_ACEOF
  6032. /* confdefs.h. */
  6033. _ACEOF
  6034. cat confdefs.h >>conftest.$ac_ext
  6035. cat >>conftest.$ac_ext <<_ACEOF
  6036. /* end confdefs.h. */
  6037. $ac_includes_default
  6038. long longval () { return (long) (sizeof (long)); }
  6039. unsigned long ulongval () { return (long) (sizeof (long)); }
  6040. #include <stdio.h>
  6041. #include <stdlib.h>
  6042. int
  6043. main ()
  6044. {
  6045. FILE *f = fopen ("conftest.val", "w");
  6046. if (! f)
  6047. exit (1);
  6048. if (((long) (sizeof (long))) < 0)
  6049. {
  6050. long i = longval ();
  6051. if (i != ((long) (sizeof (long))))
  6052. exit (1);
  6053. fprintf (f, "%ld\n", i);
  6054. }
  6055. else
  6056. {
  6057. unsigned long i = ulongval ();
  6058. if (i != ((long) (sizeof (long))))
  6059. exit (1);
  6060. fprintf (f, "%lu\n", i);
  6061. }
  6062. exit (ferror (f) || fclose (f) != 0);
  6063. ;
  6064. return 0;
  6065. }
  6066. _ACEOF
  6067. rm -f conftest$ac_exeext
  6068. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6069. (eval $ac_link) 2>&5
  6070. ac_status=$?
  6071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6072. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6074. (eval $ac_try) 2>&5
  6075. ac_status=$?
  6076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6077. (exit $ac_status); }; }; then
  6078. ac_cv_sizeof_long=`cat conftest.val`
  6079. else
  6080. echo "$as_me: program exited with status $ac_status" >&5
  6081. echo "$as_me: failed program was:" >&5
  6082. sed 's/^/| /' conftest.$ac_ext >&5
  6083. ( exit $ac_status )
  6084. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6085. See \`config.log' for more details." >&5
  6086. echo "$as_me: error: cannot compute sizeof (long), 77
  6087. See \`config.log' for more details." >&2;}
  6088. { (exit 1); exit 1; }; }
  6089. fi
  6090. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6091. fi
  6092. fi
  6093. rm -f conftest.val
  6094. else
  6095. ac_cv_sizeof_long=0
  6096. fi
  6097. fi
  6098. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6099. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6100. cat >>confdefs.h <<_ACEOF
  6101. #define SIZEOF_LONG $ac_cv_sizeof_long
  6102. _ACEOF
  6103. echo "$as_me:$LINENO: checking for long long" >&5
  6104. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  6105. if test "${ac_cv_type_long_long+set}" = set; then
  6106. echo $ECHO_N "(cached) $ECHO_C" >&6
  6107. else
  6108. cat >conftest.$ac_ext <<_ACEOF
  6109. /* confdefs.h. */
  6110. _ACEOF
  6111. cat confdefs.h >>conftest.$ac_ext
  6112. cat >>conftest.$ac_ext <<_ACEOF
  6113. /* end confdefs.h. */
  6114. $ac_includes_default
  6115. int
  6116. main ()
  6117. {
  6118. if ((long long *) 0)
  6119. return 0;
  6120. if (sizeof (long long))
  6121. return 0;
  6122. ;
  6123. return 0;
  6124. }
  6125. _ACEOF
  6126. rm -f conftest.$ac_objext
  6127. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6128. (eval $ac_compile) 2>conftest.er1
  6129. ac_status=$?
  6130. grep -v '^ *+' conftest.er1 >conftest.err
  6131. rm -f conftest.er1
  6132. cat conftest.err >&5
  6133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6134. (exit $ac_status); } &&
  6135. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6137. (eval $ac_try) 2>&5
  6138. ac_status=$?
  6139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6140. (exit $ac_status); }; } &&
  6141. { ac_try='test -s conftest.$ac_objext'
  6142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6143. (eval $ac_try) 2>&5
  6144. ac_status=$?
  6145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6146. (exit $ac_status); }; }; then
  6147. ac_cv_type_long_long=yes
  6148. else
  6149. echo "$as_me: failed program was:" >&5
  6150. sed 's/^/| /' conftest.$ac_ext >&5
  6151. ac_cv_type_long_long=no
  6152. fi
  6153. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6154. fi
  6155. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6156. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  6157. echo "$as_me:$LINENO: checking size of long long" >&5
  6158. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  6159. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6160. echo $ECHO_N "(cached) $ECHO_C" >&6
  6161. else
  6162. if test "$ac_cv_type_long_long" = yes; then
  6163. # The cast to unsigned long works around a bug in the HP C Compiler
  6164. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6165. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6166. # This bug is HP SR number 8606223364.
  6167. if test "$cross_compiling" = yes; then
  6168. # Depending upon the size, compute the lo and hi bounds.
  6169. cat >conftest.$ac_ext <<_ACEOF
  6170. /* confdefs.h. */
  6171. _ACEOF
  6172. cat confdefs.h >>conftest.$ac_ext
  6173. cat >>conftest.$ac_ext <<_ACEOF
  6174. /* end confdefs.h. */
  6175. $ac_includes_default
  6176. int
  6177. main ()
  6178. {
  6179. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  6180. test_array [0] = 0
  6181. ;
  6182. return 0;
  6183. }
  6184. _ACEOF
  6185. rm -f conftest.$ac_objext
  6186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6187. (eval $ac_compile) 2>conftest.er1
  6188. ac_status=$?
  6189. grep -v '^ *+' conftest.er1 >conftest.err
  6190. rm -f conftest.er1
  6191. cat conftest.err >&5
  6192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6193. (exit $ac_status); } &&
  6194. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6196. (eval $ac_try) 2>&5
  6197. ac_status=$?
  6198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6199. (exit $ac_status); }; } &&
  6200. { ac_try='test -s conftest.$ac_objext'
  6201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6202. (eval $ac_try) 2>&5
  6203. ac_status=$?
  6204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205. (exit $ac_status); }; }; then
  6206. ac_lo=0 ac_mid=0
  6207. while :; do
  6208. cat >conftest.$ac_ext <<_ACEOF
  6209. /* confdefs.h. */
  6210. _ACEOF
  6211. cat confdefs.h >>conftest.$ac_ext
  6212. cat >>conftest.$ac_ext <<_ACEOF
  6213. /* end confdefs.h. */
  6214. $ac_includes_default
  6215. int
  6216. main ()
  6217. {
  6218. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6219. test_array [0] = 0
  6220. ;
  6221. return 0;
  6222. }
  6223. _ACEOF
  6224. rm -f conftest.$ac_objext
  6225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6226. (eval $ac_compile) 2>conftest.er1
  6227. ac_status=$?
  6228. grep -v '^ *+' conftest.er1 >conftest.err
  6229. rm -f conftest.er1
  6230. cat conftest.err >&5
  6231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); } &&
  6233. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6235. (eval $ac_try) 2>&5
  6236. ac_status=$?
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); }; } &&
  6239. { ac_try='test -s conftest.$ac_objext'
  6240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6241. (eval $ac_try) 2>&5
  6242. ac_status=$?
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); }; }; then
  6245. ac_hi=$ac_mid; break
  6246. else
  6247. echo "$as_me: failed program was:" >&5
  6248. sed 's/^/| /' conftest.$ac_ext >&5
  6249. ac_lo=`expr $ac_mid + 1`
  6250. if test $ac_lo -le $ac_mid; then
  6251. ac_lo= ac_hi=
  6252. break
  6253. fi
  6254. ac_mid=`expr 2 '*' $ac_mid + 1`
  6255. fi
  6256. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6257. done
  6258. else
  6259. echo "$as_me: failed program was:" >&5
  6260. sed 's/^/| /' conftest.$ac_ext >&5
  6261. cat >conftest.$ac_ext <<_ACEOF
  6262. /* confdefs.h. */
  6263. _ACEOF
  6264. cat confdefs.h >>conftest.$ac_ext
  6265. cat >>conftest.$ac_ext <<_ACEOF
  6266. /* end confdefs.h. */
  6267. $ac_includes_default
  6268. int
  6269. main ()
  6270. {
  6271. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  6272. test_array [0] = 0
  6273. ;
  6274. return 0;
  6275. }
  6276. _ACEOF
  6277. rm -f conftest.$ac_objext
  6278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6279. (eval $ac_compile) 2>conftest.er1
  6280. ac_status=$?
  6281. grep -v '^ *+' conftest.er1 >conftest.err
  6282. rm -f conftest.er1
  6283. cat conftest.err >&5
  6284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285. (exit $ac_status); } &&
  6286. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6288. (eval $ac_try) 2>&5
  6289. ac_status=$?
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); }; } &&
  6292. { ac_try='test -s conftest.$ac_objext'
  6293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6294. (eval $ac_try) 2>&5
  6295. ac_status=$?
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); }; }; then
  6298. ac_hi=-1 ac_mid=-1
  6299. while :; do
  6300. cat >conftest.$ac_ext <<_ACEOF
  6301. /* confdefs.h. */
  6302. _ACEOF
  6303. cat confdefs.h >>conftest.$ac_ext
  6304. cat >>conftest.$ac_ext <<_ACEOF
  6305. /* end confdefs.h. */
  6306. $ac_includes_default
  6307. int
  6308. main ()
  6309. {
  6310. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  6311. test_array [0] = 0
  6312. ;
  6313. return 0;
  6314. }
  6315. _ACEOF
  6316. rm -f conftest.$ac_objext
  6317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6318. (eval $ac_compile) 2>conftest.er1
  6319. ac_status=$?
  6320. grep -v '^ *+' conftest.er1 >conftest.err
  6321. rm -f conftest.er1
  6322. cat conftest.err >&5
  6323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6324. (exit $ac_status); } &&
  6325. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6327. (eval $ac_try) 2>&5
  6328. ac_status=$?
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); }; } &&
  6331. { ac_try='test -s conftest.$ac_objext'
  6332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6333. (eval $ac_try) 2>&5
  6334. ac_status=$?
  6335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6336. (exit $ac_status); }; }; then
  6337. ac_lo=$ac_mid; break
  6338. else
  6339. echo "$as_me: failed program was:" >&5
  6340. sed 's/^/| /' conftest.$ac_ext >&5
  6341. ac_hi=`expr '(' $ac_mid ')' - 1`
  6342. if test $ac_mid -le $ac_hi; then
  6343. ac_lo= ac_hi=
  6344. break
  6345. fi
  6346. ac_mid=`expr 2 '*' $ac_mid`
  6347. fi
  6348. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6349. done
  6350. else
  6351. echo "$as_me: failed program was:" >&5
  6352. sed 's/^/| /' conftest.$ac_ext >&5
  6353. ac_lo= ac_hi=
  6354. fi
  6355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6356. fi
  6357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6358. # Binary search between lo and hi bounds.
  6359. while test "x$ac_lo" != "x$ac_hi"; do
  6360. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6361. cat >conftest.$ac_ext <<_ACEOF
  6362. /* confdefs.h. */
  6363. _ACEOF
  6364. cat confdefs.h >>conftest.$ac_ext
  6365. cat >>conftest.$ac_ext <<_ACEOF
  6366. /* end confdefs.h. */
  6367. $ac_includes_default
  6368. int
  6369. main ()
  6370. {
  6371. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6372. test_array [0] = 0
  6373. ;
  6374. return 0;
  6375. }
  6376. _ACEOF
  6377. rm -f conftest.$ac_objext
  6378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6379. (eval $ac_compile) 2>conftest.er1
  6380. ac_status=$?
  6381. grep -v '^ *+' conftest.er1 >conftest.err
  6382. rm -f conftest.er1
  6383. cat conftest.err >&5
  6384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6385. (exit $ac_status); } &&
  6386. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6387. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6388. (eval $ac_try) 2>&5
  6389. ac_status=$?
  6390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6391. (exit $ac_status); }; } &&
  6392. { ac_try='test -s conftest.$ac_objext'
  6393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6394. (eval $ac_try) 2>&5
  6395. ac_status=$?
  6396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6397. (exit $ac_status); }; }; then
  6398. ac_hi=$ac_mid
  6399. else
  6400. echo "$as_me: failed program was:" >&5
  6401. sed 's/^/| /' conftest.$ac_ext >&5
  6402. ac_lo=`expr '(' $ac_mid ')' + 1`
  6403. fi
  6404. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6405. done
  6406. case $ac_lo in
  6407. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  6408. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6409. See \`config.log' for more details." >&5
  6410. echo "$as_me: error: cannot compute sizeof (long long), 77
  6411. See \`config.log' for more details." >&2;}
  6412. { (exit 1); exit 1; }; } ;;
  6413. esac
  6414. else
  6415. if test "$cross_compiling" = yes; then
  6416. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6417. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6418. { (exit 1); exit 1; }; }
  6419. else
  6420. cat >conftest.$ac_ext <<_ACEOF
  6421. /* confdefs.h. */
  6422. _ACEOF
  6423. cat confdefs.h >>conftest.$ac_ext
  6424. cat >>conftest.$ac_ext <<_ACEOF
  6425. /* end confdefs.h. */
  6426. $ac_includes_default
  6427. long longval () { return (long) (sizeof (long long)); }
  6428. unsigned long ulongval () { return (long) (sizeof (long long)); }
  6429. #include <stdio.h>
  6430. #include <stdlib.h>
  6431. int
  6432. main ()
  6433. {
  6434. FILE *f = fopen ("conftest.val", "w");
  6435. if (! f)
  6436. exit (1);
  6437. if (((long) (sizeof (long long))) < 0)
  6438. {
  6439. long i = longval ();
  6440. if (i != ((long) (sizeof (long long))))
  6441. exit (1);
  6442. fprintf (f, "%ld\n", i);
  6443. }
  6444. else
  6445. {
  6446. unsigned long i = ulongval ();
  6447. if (i != ((long) (sizeof (long long))))
  6448. exit (1);
  6449. fprintf (f, "%lu\n", i);
  6450. }
  6451. exit (ferror (f) || fclose (f) != 0);
  6452. ;
  6453. return 0;
  6454. }
  6455. _ACEOF
  6456. rm -f conftest$ac_exeext
  6457. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6458. (eval $ac_link) 2>&5
  6459. ac_status=$?
  6460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6461. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6463. (eval $ac_try) 2>&5
  6464. ac_status=$?
  6465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6466. (exit $ac_status); }; }; then
  6467. ac_cv_sizeof_long_long=`cat conftest.val`
  6468. else
  6469. echo "$as_me: program exited with status $ac_status" >&5
  6470. echo "$as_me: failed program was:" >&5
  6471. sed 's/^/| /' conftest.$ac_ext >&5
  6472. ( exit $ac_status )
  6473. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6474. See \`config.log' for more details." >&5
  6475. echo "$as_me: error: cannot compute sizeof (long long), 77
  6476. See \`config.log' for more details." >&2;}
  6477. { (exit 1); exit 1; }; }
  6478. fi
  6479. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6480. fi
  6481. fi
  6482. rm -f conftest.val
  6483. else
  6484. ac_cv_sizeof_long_long=0
  6485. fi
  6486. fi
  6487. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6488. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  6489. cat >>confdefs.h <<_ACEOF
  6490. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6491. _ACEOF
  6492. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6493. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6494. if test "${ac_cv_struct_tm+set}" = set; then
  6495. echo $ECHO_N "(cached) $ECHO_C" >&6
  6496. else
  6497. cat >conftest.$ac_ext <<_ACEOF
  6498. /* confdefs.h. */
  6499. _ACEOF
  6500. cat confdefs.h >>conftest.$ac_ext
  6501. cat >>conftest.$ac_ext <<_ACEOF
  6502. /* end confdefs.h. */
  6503. #include <sys/types.h>
  6504. #include <time.h>
  6505. int
  6506. main ()
  6507. {
  6508. struct tm *tp; tp->tm_sec;
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. rm -f conftest.$ac_objext
  6514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6515. (eval $ac_compile) 2>conftest.er1
  6516. ac_status=$?
  6517. grep -v '^ *+' conftest.er1 >conftest.err
  6518. rm -f conftest.er1
  6519. cat conftest.err >&5
  6520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6521. (exit $ac_status); } &&
  6522. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6524. (eval $ac_try) 2>&5
  6525. ac_status=$?
  6526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6527. (exit $ac_status); }; } &&
  6528. { ac_try='test -s conftest.$ac_objext'
  6529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6530. (eval $ac_try) 2>&5
  6531. ac_status=$?
  6532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6533. (exit $ac_status); }; }; then
  6534. ac_cv_struct_tm=time.h
  6535. else
  6536. echo "$as_me: failed program was:" >&5
  6537. sed 's/^/| /' conftest.$ac_ext >&5
  6538. ac_cv_struct_tm=sys/time.h
  6539. fi
  6540. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6541. fi
  6542. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6543. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6544. if test $ac_cv_struct_tm = sys/time.h; then
  6545. cat >>confdefs.h <<\_ACEOF
  6546. #define TM_IN_SYS_TIME 1
  6547. _ACEOF
  6548. fi
  6549. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  6550. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  6551. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  6552. echo $ECHO_N "(cached) $ECHO_C" >&6
  6553. else
  6554. cat >conftest.$ac_ext <<_ACEOF
  6555. /* confdefs.h. */
  6556. _ACEOF
  6557. cat confdefs.h >>conftest.$ac_ext
  6558. cat >>conftest.$ac_ext <<_ACEOF
  6559. /* end confdefs.h. */
  6560. #include <sys/types.h>
  6561. #include <$ac_cv_struct_tm>
  6562. int
  6563. main ()
  6564. {
  6565. static struct tm ac_aggr;
  6566. if (ac_aggr.tm_zone)
  6567. return 0;
  6568. ;
  6569. return 0;
  6570. }
  6571. _ACEOF
  6572. rm -f conftest.$ac_objext
  6573. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6574. (eval $ac_compile) 2>conftest.er1
  6575. ac_status=$?
  6576. grep -v '^ *+' conftest.er1 >conftest.err
  6577. rm -f conftest.er1
  6578. cat conftest.err >&5
  6579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6580. (exit $ac_status); } &&
  6581. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6583. (eval $ac_try) 2>&5
  6584. ac_status=$?
  6585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6586. (exit $ac_status); }; } &&
  6587. { ac_try='test -s conftest.$ac_objext'
  6588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6589. (eval $ac_try) 2>&5
  6590. ac_status=$?
  6591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6592. (exit $ac_status); }; }; then
  6593. ac_cv_member_struct_tm_tm_zone=yes
  6594. else
  6595. echo "$as_me: failed program was:" >&5
  6596. sed 's/^/| /' conftest.$ac_ext >&5
  6597. cat >conftest.$ac_ext <<_ACEOF
  6598. /* confdefs.h. */
  6599. _ACEOF
  6600. cat confdefs.h >>conftest.$ac_ext
  6601. cat >>conftest.$ac_ext <<_ACEOF
  6602. /* end confdefs.h. */
  6603. #include <sys/types.h>
  6604. #include <$ac_cv_struct_tm>
  6605. int
  6606. main ()
  6607. {
  6608. static struct tm ac_aggr;
  6609. if (sizeof ac_aggr.tm_zone)
  6610. return 0;
  6611. ;
  6612. return 0;
  6613. }
  6614. _ACEOF
  6615. rm -f conftest.$ac_objext
  6616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6617. (eval $ac_compile) 2>conftest.er1
  6618. ac_status=$?
  6619. grep -v '^ *+' conftest.er1 >conftest.err
  6620. rm -f conftest.er1
  6621. cat conftest.err >&5
  6622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6623. (exit $ac_status); } &&
  6624. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6626. (eval $ac_try) 2>&5
  6627. ac_status=$?
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. (exit $ac_status); }; } &&
  6630. { ac_try='test -s conftest.$ac_objext'
  6631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6632. (eval $ac_try) 2>&5
  6633. ac_status=$?
  6634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6635. (exit $ac_status); }; }; then
  6636. ac_cv_member_struct_tm_tm_zone=yes
  6637. else
  6638. echo "$as_me: failed program was:" >&5
  6639. sed 's/^/| /' conftest.$ac_ext >&5
  6640. ac_cv_member_struct_tm_tm_zone=no
  6641. fi
  6642. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6643. fi
  6644. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6645. fi
  6646. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  6647. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  6648. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  6649. cat >>confdefs.h <<_ACEOF
  6650. #define HAVE_STRUCT_TM_TM_ZONE 1
  6651. _ACEOF
  6652. fi
  6653. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6654. cat >>confdefs.h <<\_ACEOF
  6655. #define HAVE_TM_ZONE 1
  6656. _ACEOF
  6657. else
  6658. echo "$as_me:$LINENO: checking for tzname" >&5
  6659. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  6660. if test "${ac_cv_var_tzname+set}" = set; then
  6661. echo $ECHO_N "(cached) $ECHO_C" >&6
  6662. else
  6663. cat >conftest.$ac_ext <<_ACEOF
  6664. /* confdefs.h. */
  6665. _ACEOF
  6666. cat confdefs.h >>conftest.$ac_ext
  6667. cat >>conftest.$ac_ext <<_ACEOF
  6668. /* end confdefs.h. */
  6669. #include <time.h>
  6670. #ifndef tzname /* For SGI. */
  6671. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  6672. #endif
  6673. int
  6674. main ()
  6675. {
  6676. atoi(*tzname);
  6677. ;
  6678. return 0;
  6679. }
  6680. _ACEOF
  6681. rm -f conftest.$ac_objext conftest$ac_exeext
  6682. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6683. (eval $ac_link) 2>conftest.er1
  6684. ac_status=$?
  6685. grep -v '^ *+' conftest.er1 >conftest.err
  6686. rm -f conftest.er1
  6687. cat conftest.err >&5
  6688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6689. (exit $ac_status); } &&
  6690. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6692. (eval $ac_try) 2>&5
  6693. ac_status=$?
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }; } &&
  6696. { ac_try='test -s conftest$ac_exeext'
  6697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6698. (eval $ac_try) 2>&5
  6699. ac_status=$?
  6700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6701. (exit $ac_status); }; }; then
  6702. ac_cv_var_tzname=yes
  6703. else
  6704. echo "$as_me: failed program was:" >&5
  6705. sed 's/^/| /' conftest.$ac_ext >&5
  6706. ac_cv_var_tzname=no
  6707. fi
  6708. rm -f conftest.err conftest.$ac_objext \
  6709. conftest$ac_exeext conftest.$ac_ext
  6710. fi
  6711. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  6712. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  6713. if test $ac_cv_var_tzname = yes; then
  6714. cat >>confdefs.h <<\_ACEOF
  6715. #define HAVE_TZNAME 1
  6716. _ACEOF
  6717. fi
  6718. fi
  6719. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6720. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6721. if test "${ac_cv_struct_tm+set}" = set; then
  6722. echo $ECHO_N "(cached) $ECHO_C" >&6
  6723. else
  6724. cat >conftest.$ac_ext <<_ACEOF
  6725. /* confdefs.h. */
  6726. _ACEOF
  6727. cat confdefs.h >>conftest.$ac_ext
  6728. cat >>conftest.$ac_ext <<_ACEOF
  6729. /* end confdefs.h. */
  6730. #include <sys/types.h>
  6731. #include <time.h>
  6732. int
  6733. main ()
  6734. {
  6735. struct tm *tp; tp->tm_sec;
  6736. ;
  6737. return 0;
  6738. }
  6739. _ACEOF
  6740. rm -f conftest.$ac_objext
  6741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6742. (eval $ac_compile) 2>conftest.er1
  6743. ac_status=$?
  6744. grep -v '^ *+' conftest.er1 >conftest.err
  6745. rm -f conftest.er1
  6746. cat conftest.err >&5
  6747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); } &&
  6749. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6751. (eval $ac_try) 2>&5
  6752. ac_status=$?
  6753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6754. (exit $ac_status); }; } &&
  6755. { ac_try='test -s conftest.$ac_objext'
  6756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6757. (eval $ac_try) 2>&5
  6758. ac_status=$?
  6759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6760. (exit $ac_status); }; }; then
  6761. ac_cv_struct_tm=time.h
  6762. else
  6763. echo "$as_me: failed program was:" >&5
  6764. sed 's/^/| /' conftest.$ac_ext >&5
  6765. ac_cv_struct_tm=sys/time.h
  6766. fi
  6767. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6768. fi
  6769. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6770. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6771. if test $ac_cv_struct_tm = sys/time.h; then
  6772. cat >>confdefs.h <<\_ACEOF
  6773. #define TM_IN_SYS_TIME 1
  6774. _ACEOF
  6775. fi
  6776. #checkpoint
  6777. cat >confcache <<\_ACEOF
  6778. # This file is a shell script that caches the results of configure
  6779. # tests run on this system so they can be shared between configure
  6780. # scripts and configure runs, see configure's option --config-cache.
  6781. # It is not useful on other systems. If it contains results you don't
  6782. # want to keep, you may remove or edit it.
  6783. #
  6784. # config.status only pays attention to the cache file if you give it
  6785. # the --recheck option to rerun configure.
  6786. #
  6787. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6788. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6789. # following values.
  6790. _ACEOF
  6791. # The following way of writing the cache mishandles newlines in values,
  6792. # but we know of no workaround that is simple, portable, and efficient.
  6793. # So, don't put newlines in cache variables' values.
  6794. # Ultrix sh set writes to stderr and can't be redirected directly,
  6795. # and sets the high bit in the cache file unless we assign to the vars.
  6796. {
  6797. (set) 2>&1 |
  6798. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6799. *ac_space=\ *)
  6800. # `set' does not quote correctly, so add quotes (double-quote
  6801. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6802. sed -n \
  6803. "s/'/'\\\\''/g;
  6804. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6805. ;;
  6806. *)
  6807. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6808. sed -n \
  6809. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6810. ;;
  6811. esac;
  6812. } |
  6813. sed '
  6814. t clear
  6815. : clear
  6816. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6817. t end
  6818. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6819. : end' >>confcache
  6820. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6821. if test -w $cache_file; then
  6822. test "x$cache_file" != "x/dev/null"
  6823. cat confcache >$cache_file
  6824. else
  6825. echo "not updating unwritable cache $cache_file"
  6826. fi
  6827. fi
  6828. rm -f confcache
  6829. # Checks for library functions
  6830. for ac_header in unistd.h vfork.h
  6831. do
  6832. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6833. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6834. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6835. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6836. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6837. echo $ECHO_N "(cached) $ECHO_C" >&6
  6838. fi
  6839. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6840. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6841. else
  6842. # Is the header compilable?
  6843. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6844. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6845. cat >conftest.$ac_ext <<_ACEOF
  6846. /* confdefs.h. */
  6847. _ACEOF
  6848. cat confdefs.h >>conftest.$ac_ext
  6849. cat >>conftest.$ac_ext <<_ACEOF
  6850. /* end confdefs.h. */
  6851. $ac_includes_default
  6852. #include <$ac_header>
  6853. _ACEOF
  6854. rm -f conftest.$ac_objext
  6855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6856. (eval $ac_compile) 2>conftest.er1
  6857. ac_status=$?
  6858. grep -v '^ *+' conftest.er1 >conftest.err
  6859. rm -f conftest.er1
  6860. cat conftest.err >&5
  6861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6862. (exit $ac_status); } &&
  6863. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6865. (eval $ac_try) 2>&5
  6866. ac_status=$?
  6867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); }; } &&
  6869. { ac_try='test -s conftest.$ac_objext'
  6870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6871. (eval $ac_try) 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); }; }; then
  6875. ac_header_compiler=yes
  6876. else
  6877. echo "$as_me: failed program was:" >&5
  6878. sed 's/^/| /' conftest.$ac_ext >&5
  6879. ac_header_compiler=no
  6880. fi
  6881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6882. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6883. echo "${ECHO_T}$ac_header_compiler" >&6
  6884. # Is the header present?
  6885. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6886. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6887. cat >conftest.$ac_ext <<_ACEOF
  6888. /* confdefs.h. */
  6889. _ACEOF
  6890. cat confdefs.h >>conftest.$ac_ext
  6891. cat >>conftest.$ac_ext <<_ACEOF
  6892. /* end confdefs.h. */
  6893. #include <$ac_header>
  6894. _ACEOF
  6895. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6896. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6897. ac_status=$?
  6898. grep -v '^ *+' conftest.er1 >conftest.err
  6899. rm -f conftest.er1
  6900. cat conftest.err >&5
  6901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6902. (exit $ac_status); } >/dev/null; then
  6903. if test -s conftest.err; then
  6904. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6905. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6906. else
  6907. ac_cpp_err=
  6908. fi
  6909. else
  6910. ac_cpp_err=yes
  6911. fi
  6912. if test -z "$ac_cpp_err"; then
  6913. ac_header_preproc=yes
  6914. else
  6915. echo "$as_me: failed program was:" >&5
  6916. sed 's/^/| /' conftest.$ac_ext >&5
  6917. ac_header_preproc=no
  6918. fi
  6919. rm -f conftest.err conftest.$ac_ext
  6920. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6921. echo "${ECHO_T}$ac_header_preproc" >&6
  6922. # So? What about this header?
  6923. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6924. yes:no: )
  6925. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6926. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6927. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6928. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6929. ac_header_preproc=yes
  6930. ;;
  6931. no:yes:* )
  6932. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6933. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6934. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6935. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6936. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6937. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6938. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6939. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6940. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6941. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6942. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6943. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6944. (
  6945. cat <<\_ASBOX
  6946. ## ------------------------------------------ ##
  6947. ## Report this to the AC_PACKAGE_NAME lists. ##
  6948. ## ------------------------------------------ ##
  6949. _ASBOX
  6950. ) |
  6951. sed "s/^/$as_me: WARNING: /" >&2
  6952. ;;
  6953. esac
  6954. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6955. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6956. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6957. echo $ECHO_N "(cached) $ECHO_C" >&6
  6958. else
  6959. eval "$as_ac_Header=\$ac_header_preproc"
  6960. fi
  6961. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6962. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6963. fi
  6964. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6965. cat >>confdefs.h <<_ACEOF
  6966. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6967. _ACEOF
  6968. fi
  6969. done
  6970. for ac_func in fork vfork
  6971. do
  6972. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6973. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6974. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6975. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6976. echo $ECHO_N "(cached) $ECHO_C" >&6
  6977. else
  6978. cat >conftest.$ac_ext <<_ACEOF
  6979. /* confdefs.h. */
  6980. _ACEOF
  6981. cat confdefs.h >>conftest.$ac_ext
  6982. cat >>conftest.$ac_ext <<_ACEOF
  6983. /* end confdefs.h. */
  6984. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6985. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6986. #define $ac_func innocuous_$ac_func
  6987. /* System header to define __stub macros and hopefully few prototypes,
  6988. which can conflict with char $ac_func (); below.
  6989. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6990. <limits.h> exists even on freestanding compilers. */
  6991. #ifdef __STDC__
  6992. # include <limits.h>
  6993. #else
  6994. # include <assert.h>
  6995. #endif
  6996. #undef $ac_func
  6997. /* Override any gcc2 internal prototype to avoid an error. */
  6998. #ifdef __cplusplus
  6999. extern "C"
  7000. {
  7001. #endif
  7002. /* We use char because int might match the return type of a gcc2
  7003. builtin and then its argument prototype would still apply. */
  7004. char $ac_func ();
  7005. /* The GNU C library defines this for functions which it implements
  7006. to always fail with ENOSYS. Some functions are actually named
  7007. something starting with __ and the normal name is an alias. */
  7008. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7009. choke me
  7010. #else
  7011. char (*f) () = $ac_func;
  7012. #endif
  7013. #ifdef __cplusplus
  7014. }
  7015. #endif
  7016. int
  7017. main ()
  7018. {
  7019. return f != $ac_func;
  7020. ;
  7021. return 0;
  7022. }
  7023. _ACEOF
  7024. rm -f conftest.$ac_objext conftest$ac_exeext
  7025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7026. (eval $ac_link) 2>conftest.er1
  7027. ac_status=$?
  7028. grep -v '^ *+' conftest.er1 >conftest.err
  7029. rm -f conftest.er1
  7030. cat conftest.err >&5
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. (exit $ac_status); } &&
  7033. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7035. (eval $ac_try) 2>&5
  7036. ac_status=$?
  7037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7038. (exit $ac_status); }; } &&
  7039. { ac_try='test -s conftest$ac_exeext'
  7040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7041. (eval $ac_try) 2>&5
  7042. ac_status=$?
  7043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044. (exit $ac_status); }; }; then
  7045. eval "$as_ac_var=yes"
  7046. else
  7047. echo "$as_me: failed program was:" >&5
  7048. sed 's/^/| /' conftest.$ac_ext >&5
  7049. eval "$as_ac_var=no"
  7050. fi
  7051. rm -f conftest.err conftest.$ac_objext \
  7052. conftest$ac_exeext conftest.$ac_ext
  7053. fi
  7054. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7055. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7056. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7057. cat >>confdefs.h <<_ACEOF
  7058. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7059. _ACEOF
  7060. fi
  7061. done
  7062. if test "x$ac_cv_func_fork" = xyes; then
  7063. echo "$as_me:$LINENO: checking for working fork" >&5
  7064. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7065. if test "${ac_cv_func_fork_works+set}" = set; then
  7066. echo $ECHO_N "(cached) $ECHO_C" >&6
  7067. else
  7068. if test "$cross_compiling" = yes; then
  7069. ac_cv_func_fork_works=cross
  7070. else
  7071. cat >conftest.$ac_ext <<_ACEOF
  7072. /* By Ruediger Kuhlmann. */
  7073. #include <sys/types.h>
  7074. #if HAVE_UNISTD_H
  7075. # include <unistd.h>
  7076. #endif
  7077. /* Some systems only have a dummy stub for fork() */
  7078. int main ()
  7079. {
  7080. if (fork() < 0)
  7081. exit (1);
  7082. exit (0);
  7083. }
  7084. _ACEOF
  7085. rm -f conftest$ac_exeext
  7086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7087. (eval $ac_link) 2>&5
  7088. ac_status=$?
  7089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7090. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7092. (eval $ac_try) 2>&5
  7093. ac_status=$?
  7094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095. (exit $ac_status); }; }; then
  7096. ac_cv_func_fork_works=yes
  7097. else
  7098. echo "$as_me: program exited with status $ac_status" >&5
  7099. echo "$as_me: failed program was:" >&5
  7100. sed 's/^/| /' conftest.$ac_ext >&5
  7101. ( exit $ac_status )
  7102. ac_cv_func_fork_works=no
  7103. fi
  7104. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7105. fi
  7106. fi
  7107. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7108. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7109. else
  7110. ac_cv_func_fork_works=$ac_cv_func_fork
  7111. fi
  7112. if test "x$ac_cv_func_fork_works" = xcross; then
  7113. case $host in
  7114. *-*-amigaos* | *-*-msdosdjgpp*)
  7115. # Override, as these systems have only a dummy fork() stub
  7116. ac_cv_func_fork_works=no
  7117. ;;
  7118. *)
  7119. ac_cv_func_fork_works=yes
  7120. ;;
  7121. esac
  7122. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7123. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7124. fi
  7125. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7126. if test "x$ac_cv_func_vfork" = xyes; then
  7127. echo "$as_me:$LINENO: checking for working vfork" >&5
  7128. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7129. if test "${ac_cv_func_vfork_works+set}" = set; then
  7130. echo $ECHO_N "(cached) $ECHO_C" >&6
  7131. else
  7132. if test "$cross_compiling" = yes; then
  7133. ac_cv_func_vfork_works=cross
  7134. else
  7135. cat >conftest.$ac_ext <<_ACEOF
  7136. /* confdefs.h. */
  7137. _ACEOF
  7138. cat confdefs.h >>conftest.$ac_ext
  7139. cat >>conftest.$ac_ext <<_ACEOF
  7140. /* end confdefs.h. */
  7141. /* Thanks to Paul Eggert for this test. */
  7142. #include <stdio.h>
  7143. #include <stdlib.h>
  7144. #include <sys/types.h>
  7145. #include <sys/stat.h>
  7146. #include <sys/wait.h>
  7147. #if HAVE_UNISTD_H
  7148. # include <unistd.h>
  7149. #endif
  7150. #if HAVE_VFORK_H
  7151. # include <vfork.h>
  7152. #endif
  7153. /* On some sparc systems, changes by the child to local and incoming
  7154. argument registers are propagated back to the parent. The compiler
  7155. is told about this with #include <vfork.h>, but some compilers
  7156. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7157. static variable whose address is put into a register that is
  7158. clobbered by the vfork. */
  7159. static void
  7160. #ifdef __cplusplus
  7161. sparc_address_test (int arg)
  7162. # else
  7163. sparc_address_test (arg) int arg;
  7164. #endif
  7165. {
  7166. static pid_t child;
  7167. if (!child) {
  7168. child = vfork ();
  7169. if (child < 0) {
  7170. perror ("vfork");
  7171. _exit(2);
  7172. }
  7173. if (!child) {
  7174. arg = getpid();
  7175. write(-1, "", 0);
  7176. _exit (arg);
  7177. }
  7178. }
  7179. }
  7180. int
  7181. main ()
  7182. {
  7183. pid_t parent = getpid ();
  7184. pid_t child;
  7185. sparc_address_test (0);
  7186. child = vfork ();
  7187. if (child == 0) {
  7188. /* Here is another test for sparc vfork register problems. This
  7189. test uses lots of local variables, at least as many local
  7190. variables as main has allocated so far including compiler
  7191. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7192. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7193. reuse the register of parent for one of the local variables,
  7194. since it will think that parent can't possibly be used any more
  7195. in this routine. Assigning to the local variable will thus
  7196. munge parent in the parent process. */
  7197. pid_t
  7198. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7199. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7200. /* Convince the compiler that p..p7 are live; otherwise, it might
  7201. use the same hardware register for all 8 local variables. */
  7202. if (p != p1 || p != p2 || p != p3 || p != p4
  7203. || p != p5 || p != p6 || p != p7)
  7204. _exit(1);
  7205. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7206. from child file descriptors. If the child closes a descriptor
  7207. before it execs or exits, this munges the parent's descriptor
  7208. as well. Test for this by closing stdout in the child. */
  7209. _exit(close(fileno(stdout)) != 0);
  7210. } else {
  7211. int status;
  7212. struct stat st;
  7213. while (wait(&status) != child)
  7214. ;
  7215. exit(
  7216. /* Was there some problem with vforking? */
  7217. child < 0
  7218. /* Did the child fail? (This shouldn't happen.) */
  7219. || status
  7220. /* Did the vfork/compiler bug occur? */
  7221. || parent != getpid()
  7222. /* Did the file descriptor bug occur? */
  7223. || fstat(fileno(stdout), &st) != 0
  7224. );
  7225. }
  7226. }
  7227. _ACEOF
  7228. rm -f conftest$ac_exeext
  7229. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7230. (eval $ac_link) 2>&5
  7231. ac_status=$?
  7232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7233. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7235. (eval $ac_try) 2>&5
  7236. ac_status=$?
  7237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. (exit $ac_status); }; }; then
  7239. ac_cv_func_vfork_works=yes
  7240. else
  7241. echo "$as_me: program exited with status $ac_status" >&5
  7242. echo "$as_me: failed program was:" >&5
  7243. sed 's/^/| /' conftest.$ac_ext >&5
  7244. ( exit $ac_status )
  7245. ac_cv_func_vfork_works=no
  7246. fi
  7247. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7248. fi
  7249. fi
  7250. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7251. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7252. fi;
  7253. if test "x$ac_cv_func_fork_works" = xcross; then
  7254. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7255. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7256. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7257. fi
  7258. if test "x$ac_cv_func_vfork_works" = xyes; then
  7259. cat >>confdefs.h <<\_ACEOF
  7260. #define HAVE_WORKING_VFORK 1
  7261. _ACEOF
  7262. else
  7263. cat >>confdefs.h <<\_ACEOF
  7264. #define vfork fork
  7265. _ACEOF
  7266. fi
  7267. if test "x$ac_cv_func_fork_works" = xyes; then
  7268. cat >>confdefs.h <<\_ACEOF
  7269. #define HAVE_WORKING_FORK 1
  7270. _ACEOF
  7271. fi
  7272. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7273. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7274. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7275. echo $ECHO_N "(cached) $ECHO_C" >&6
  7276. else
  7277. rm -f conftest.sym conftest.file
  7278. echo >conftest.file
  7279. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7280. if test "$cross_compiling" = yes; then
  7281. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7282. else
  7283. cat >conftest.$ac_ext <<_ACEOF
  7284. /* confdefs.h. */
  7285. _ACEOF
  7286. cat confdefs.h >>conftest.$ac_ext
  7287. cat >>conftest.$ac_ext <<_ACEOF
  7288. /* end confdefs.h. */
  7289. $ac_includes_default
  7290. int
  7291. main ()
  7292. {
  7293. struct stat sbuf;
  7294. /* Linux will dereference the symlink and fail.
  7295. That is better in the sense that it means we will not
  7296. have to compile and use the lstat wrapper. */
  7297. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7298. ;
  7299. return 0;
  7300. }
  7301. _ACEOF
  7302. rm -f conftest$ac_exeext
  7303. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7304. (eval $ac_link) 2>&5
  7305. ac_status=$?
  7306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7307. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7309. (eval $ac_try) 2>&5
  7310. ac_status=$?
  7311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7312. (exit $ac_status); }; }; then
  7313. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7314. else
  7315. echo "$as_me: program exited with status $ac_status" >&5
  7316. echo "$as_me: failed program was:" >&5
  7317. sed 's/^/| /' conftest.$ac_ext >&5
  7318. ( exit $ac_status )
  7319. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7320. fi
  7321. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7322. fi
  7323. else
  7324. # If the `ln -s' command failed, then we probably don't even
  7325. # have an lstat function.
  7326. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7327. fi
  7328. rm -f conftest.sym conftest.file
  7329. fi
  7330. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7331. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7332. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7333. cat >>confdefs.h <<_ACEOF
  7334. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7335. _ACEOF
  7336. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7337. case $LIBOBJS in
  7338. "lstat.$ac_objext" | \
  7339. *" lstat.$ac_objext" | \
  7340. "lstat.$ac_objext "* | \
  7341. *" lstat.$ac_objext "* ) ;;
  7342. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7343. esac
  7344. fi
  7345. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7346. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7347. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7348. echo $ECHO_N "(cached) $ECHO_C" >&6
  7349. else
  7350. if test "$cross_compiling" = yes; then
  7351. ac_cv_func_lstat_empty_string_bug=yes
  7352. else
  7353. cat >conftest.$ac_ext <<_ACEOF
  7354. /* confdefs.h. */
  7355. _ACEOF
  7356. cat confdefs.h >>conftest.$ac_ext
  7357. cat >>conftest.$ac_ext <<_ACEOF
  7358. /* end confdefs.h. */
  7359. $ac_includes_default
  7360. int
  7361. main ()
  7362. {
  7363. struct stat sbuf;
  7364. exit (lstat ("", &sbuf) ? 1 : 0);
  7365. ;
  7366. return 0;
  7367. }
  7368. _ACEOF
  7369. rm -f conftest$ac_exeext
  7370. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7371. (eval $ac_link) 2>&5
  7372. ac_status=$?
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7376. (eval $ac_try) 2>&5
  7377. ac_status=$?
  7378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7379. (exit $ac_status); }; }; then
  7380. ac_cv_func_lstat_empty_string_bug=yes
  7381. else
  7382. echo "$as_me: program exited with status $ac_status" >&5
  7383. echo "$as_me: failed program was:" >&5
  7384. sed 's/^/| /' conftest.$ac_ext >&5
  7385. ( exit $ac_status )
  7386. ac_cv_func_lstat_empty_string_bug=no
  7387. fi
  7388. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7389. fi
  7390. fi
  7391. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7392. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  7393. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7394. case $LIBOBJS in
  7395. "lstat.$ac_objext" | \
  7396. *" lstat.$ac_objext" | \
  7397. "lstat.$ac_objext "* | \
  7398. *" lstat.$ac_objext "* ) ;;
  7399. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7400. esac
  7401. cat >>confdefs.h <<_ACEOF
  7402. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7403. _ACEOF
  7404. fi
  7405. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7406. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7407. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7408. echo $ECHO_N "(cached) $ECHO_C" >&6
  7409. else
  7410. rm -f conftest.sym conftest.file
  7411. echo >conftest.file
  7412. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7413. if test "$cross_compiling" = yes; then
  7414. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7415. else
  7416. cat >conftest.$ac_ext <<_ACEOF
  7417. /* confdefs.h. */
  7418. _ACEOF
  7419. cat confdefs.h >>conftest.$ac_ext
  7420. cat >>conftest.$ac_ext <<_ACEOF
  7421. /* end confdefs.h. */
  7422. $ac_includes_default
  7423. int
  7424. main ()
  7425. {
  7426. struct stat sbuf;
  7427. /* Linux will dereference the symlink and fail.
  7428. That is better in the sense that it means we will not
  7429. have to compile and use the lstat wrapper. */
  7430. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7431. ;
  7432. return 0;
  7433. }
  7434. _ACEOF
  7435. rm -f conftest$ac_exeext
  7436. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7437. (eval $ac_link) 2>&5
  7438. ac_status=$?
  7439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7440. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7442. (eval $ac_try) 2>&5
  7443. ac_status=$?
  7444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7445. (exit $ac_status); }; }; then
  7446. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7447. else
  7448. echo "$as_me: program exited with status $ac_status" >&5
  7449. echo "$as_me: failed program was:" >&5
  7450. sed 's/^/| /' conftest.$ac_ext >&5
  7451. ( exit $ac_status )
  7452. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7453. fi
  7454. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7455. fi
  7456. else
  7457. # If the `ln -s' command failed, then we probably don't even
  7458. # have an lstat function.
  7459. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7460. fi
  7461. rm -f conftest.sym conftest.file
  7462. fi
  7463. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7464. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7465. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7466. cat >>confdefs.h <<_ACEOF
  7467. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7468. _ACEOF
  7469. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7470. case $LIBOBJS in
  7471. "lstat.$ac_objext" | \
  7472. *" lstat.$ac_objext" | \
  7473. "lstat.$ac_objext "* | \
  7474. *" lstat.$ac_objext "* ) ;;
  7475. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7476. esac
  7477. fi
  7478. for ac_header in stdlib.h
  7479. do
  7480. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7481. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7482. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7483. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7484. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7485. echo $ECHO_N "(cached) $ECHO_C" >&6
  7486. fi
  7487. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7488. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7489. else
  7490. # Is the header compilable?
  7491. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7492. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7493. cat >conftest.$ac_ext <<_ACEOF
  7494. /* confdefs.h. */
  7495. _ACEOF
  7496. cat confdefs.h >>conftest.$ac_ext
  7497. cat >>conftest.$ac_ext <<_ACEOF
  7498. /* end confdefs.h. */
  7499. $ac_includes_default
  7500. #include <$ac_header>
  7501. _ACEOF
  7502. rm -f conftest.$ac_objext
  7503. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7504. (eval $ac_compile) 2>conftest.er1
  7505. ac_status=$?
  7506. grep -v '^ *+' conftest.er1 >conftest.err
  7507. rm -f conftest.er1
  7508. cat conftest.err >&5
  7509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7510. (exit $ac_status); } &&
  7511. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7513. (eval $ac_try) 2>&5
  7514. ac_status=$?
  7515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7516. (exit $ac_status); }; } &&
  7517. { ac_try='test -s conftest.$ac_objext'
  7518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7519. (eval $ac_try) 2>&5
  7520. ac_status=$?
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. (exit $ac_status); }; }; then
  7523. ac_header_compiler=yes
  7524. else
  7525. echo "$as_me: failed program was:" >&5
  7526. sed 's/^/| /' conftest.$ac_ext >&5
  7527. ac_header_compiler=no
  7528. fi
  7529. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7530. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7531. echo "${ECHO_T}$ac_header_compiler" >&6
  7532. # Is the header present?
  7533. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7534. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7535. cat >conftest.$ac_ext <<_ACEOF
  7536. /* confdefs.h. */
  7537. _ACEOF
  7538. cat confdefs.h >>conftest.$ac_ext
  7539. cat >>conftest.$ac_ext <<_ACEOF
  7540. /* end confdefs.h. */
  7541. #include <$ac_header>
  7542. _ACEOF
  7543. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7544. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7545. ac_status=$?
  7546. grep -v '^ *+' conftest.er1 >conftest.err
  7547. rm -f conftest.er1
  7548. cat conftest.err >&5
  7549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7550. (exit $ac_status); } >/dev/null; then
  7551. if test -s conftest.err; then
  7552. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7553. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7554. else
  7555. ac_cpp_err=
  7556. fi
  7557. else
  7558. ac_cpp_err=yes
  7559. fi
  7560. if test -z "$ac_cpp_err"; then
  7561. ac_header_preproc=yes
  7562. else
  7563. echo "$as_me: failed program was:" >&5
  7564. sed 's/^/| /' conftest.$ac_ext >&5
  7565. ac_header_preproc=no
  7566. fi
  7567. rm -f conftest.err conftest.$ac_ext
  7568. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7569. echo "${ECHO_T}$ac_header_preproc" >&6
  7570. # So? What about this header?
  7571. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7572. yes:no: )
  7573. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7574. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7575. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7576. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7577. ac_header_preproc=yes
  7578. ;;
  7579. no:yes:* )
  7580. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7581. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7582. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7583. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7584. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7585. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7586. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7587. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7588. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7589. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7590. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7591. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7592. (
  7593. cat <<\_ASBOX
  7594. ## ------------------------------------------ ##
  7595. ## Report this to the AC_PACKAGE_NAME lists. ##
  7596. ## ------------------------------------------ ##
  7597. _ASBOX
  7598. ) |
  7599. sed "s/^/$as_me: WARNING: /" >&2
  7600. ;;
  7601. esac
  7602. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7603. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7604. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7605. echo $ECHO_N "(cached) $ECHO_C" >&6
  7606. else
  7607. eval "$as_ac_Header=\$ac_header_preproc"
  7608. fi
  7609. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7610. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7611. fi
  7612. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7613. cat >>confdefs.h <<_ACEOF
  7614. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7615. _ACEOF
  7616. fi
  7617. done
  7618. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  7619. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  7620. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  7621. echo $ECHO_N "(cached) $ECHO_C" >&6
  7622. else
  7623. if test "$cross_compiling" = yes; then
  7624. ac_cv_func_malloc_0_nonnull=no
  7625. else
  7626. cat >conftest.$ac_ext <<_ACEOF
  7627. /* confdefs.h. */
  7628. _ACEOF
  7629. cat confdefs.h >>conftest.$ac_ext
  7630. cat >>conftest.$ac_ext <<_ACEOF
  7631. /* end confdefs.h. */
  7632. #if STDC_HEADERS || HAVE_STDLIB_H
  7633. # include <stdlib.h>
  7634. #else
  7635. char *malloc ();
  7636. #endif
  7637. int
  7638. main ()
  7639. {
  7640. exit (malloc (0) ? 0 : 1);
  7641. ;
  7642. return 0;
  7643. }
  7644. _ACEOF
  7645. rm -f conftest$ac_exeext
  7646. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7647. (eval $ac_link) 2>&5
  7648. ac_status=$?
  7649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7650. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7652. (eval $ac_try) 2>&5
  7653. ac_status=$?
  7654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7655. (exit $ac_status); }; }; then
  7656. ac_cv_func_malloc_0_nonnull=yes
  7657. else
  7658. echo "$as_me: program exited with status $ac_status" >&5
  7659. echo "$as_me: failed program was:" >&5
  7660. sed 's/^/| /' conftest.$ac_ext >&5
  7661. ( exit $ac_status )
  7662. ac_cv_func_malloc_0_nonnull=no
  7663. fi
  7664. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7665. fi
  7666. fi
  7667. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  7668. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  7669. if test $ac_cv_func_malloc_0_nonnull = yes; then
  7670. cat >>confdefs.h <<\_ACEOF
  7671. #define HAVE_MALLOC 1
  7672. _ACEOF
  7673. else
  7674. cat >>confdefs.h <<\_ACEOF
  7675. #define HAVE_MALLOC 0
  7676. _ACEOF
  7677. case $LIBOBJS in
  7678. "malloc.$ac_objext" | \
  7679. *" malloc.$ac_objext" | \
  7680. "malloc.$ac_objext "* | \
  7681. *" malloc.$ac_objext "* ) ;;
  7682. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  7683. esac
  7684. cat >>confdefs.h <<\_ACEOF
  7685. #define malloc rpl_malloc
  7686. _ACEOF
  7687. fi
  7688. for ac_header in stdlib.h sys/time.h unistd.h
  7689. do
  7690. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7691. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7692. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7693. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7694. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7695. echo $ECHO_N "(cached) $ECHO_C" >&6
  7696. fi
  7697. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7698. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7699. else
  7700. # Is the header compilable?
  7701. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7702. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7703. cat >conftest.$ac_ext <<_ACEOF
  7704. /* confdefs.h. */
  7705. _ACEOF
  7706. cat confdefs.h >>conftest.$ac_ext
  7707. cat >>conftest.$ac_ext <<_ACEOF
  7708. /* end confdefs.h. */
  7709. $ac_includes_default
  7710. #include <$ac_header>
  7711. _ACEOF
  7712. rm -f conftest.$ac_objext
  7713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7714. (eval $ac_compile) 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } &&
  7721. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7723. (eval $ac_try) 2>&5
  7724. ac_status=$?
  7725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); }; } &&
  7727. { ac_try='test -s conftest.$ac_objext'
  7728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7729. (eval $ac_try) 2>&5
  7730. ac_status=$?
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. (exit $ac_status); }; }; then
  7733. ac_header_compiler=yes
  7734. else
  7735. echo "$as_me: failed program was:" >&5
  7736. sed 's/^/| /' conftest.$ac_ext >&5
  7737. ac_header_compiler=no
  7738. fi
  7739. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7740. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7741. echo "${ECHO_T}$ac_header_compiler" >&6
  7742. # Is the header present?
  7743. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7744. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7745. cat >conftest.$ac_ext <<_ACEOF
  7746. /* confdefs.h. */
  7747. _ACEOF
  7748. cat confdefs.h >>conftest.$ac_ext
  7749. cat >>conftest.$ac_ext <<_ACEOF
  7750. /* end confdefs.h. */
  7751. #include <$ac_header>
  7752. _ACEOF
  7753. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7754. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7755. ac_status=$?
  7756. grep -v '^ *+' conftest.er1 >conftest.err
  7757. rm -f conftest.er1
  7758. cat conftest.err >&5
  7759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7760. (exit $ac_status); } >/dev/null; then
  7761. if test -s conftest.err; then
  7762. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7763. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7764. else
  7765. ac_cpp_err=
  7766. fi
  7767. else
  7768. ac_cpp_err=yes
  7769. fi
  7770. if test -z "$ac_cpp_err"; then
  7771. ac_header_preproc=yes
  7772. else
  7773. echo "$as_me: failed program was:" >&5
  7774. sed 's/^/| /' conftest.$ac_ext >&5
  7775. ac_header_preproc=no
  7776. fi
  7777. rm -f conftest.err conftest.$ac_ext
  7778. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7779. echo "${ECHO_T}$ac_header_preproc" >&6
  7780. # So? What about this header?
  7781. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7782. yes:no: )
  7783. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7784. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7785. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7786. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7787. ac_header_preproc=yes
  7788. ;;
  7789. no:yes:* )
  7790. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7791. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7792. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7793. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7794. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7795. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7796. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7797. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7798. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7799. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7800. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7801. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7802. (
  7803. cat <<\_ASBOX
  7804. ## ------------------------------------------ ##
  7805. ## Report this to the AC_PACKAGE_NAME lists. ##
  7806. ## ------------------------------------------ ##
  7807. _ASBOX
  7808. ) |
  7809. sed "s/^/$as_me: WARNING: /" >&2
  7810. ;;
  7811. esac
  7812. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7813. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7814. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7815. echo $ECHO_N "(cached) $ECHO_C" >&6
  7816. else
  7817. eval "$as_ac_Header=\$ac_header_preproc"
  7818. fi
  7819. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7820. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7821. fi
  7822. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7823. cat >>confdefs.h <<_ACEOF
  7824. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7825. _ACEOF
  7826. fi
  7827. done
  7828. for ac_func in alarm
  7829. do
  7830. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7831. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7832. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7833. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7834. echo $ECHO_N "(cached) $ECHO_C" >&6
  7835. else
  7836. cat >conftest.$ac_ext <<_ACEOF
  7837. /* confdefs.h. */
  7838. _ACEOF
  7839. cat confdefs.h >>conftest.$ac_ext
  7840. cat >>conftest.$ac_ext <<_ACEOF
  7841. /* end confdefs.h. */
  7842. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7843. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7844. #define $ac_func innocuous_$ac_func
  7845. /* System header to define __stub macros and hopefully few prototypes,
  7846. which can conflict with char $ac_func (); below.
  7847. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7848. <limits.h> exists even on freestanding compilers. */
  7849. #ifdef __STDC__
  7850. # include <limits.h>
  7851. #else
  7852. # include <assert.h>
  7853. #endif
  7854. #undef $ac_func
  7855. /* Override any gcc2 internal prototype to avoid an error. */
  7856. #ifdef __cplusplus
  7857. extern "C"
  7858. {
  7859. #endif
  7860. /* We use char because int might match the return type of a gcc2
  7861. builtin and then its argument prototype would still apply. */
  7862. char $ac_func ();
  7863. /* The GNU C library defines this for functions which it implements
  7864. to always fail with ENOSYS. Some functions are actually named
  7865. something starting with __ and the normal name is an alias. */
  7866. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7867. choke me
  7868. #else
  7869. char (*f) () = $ac_func;
  7870. #endif
  7871. #ifdef __cplusplus
  7872. }
  7873. #endif
  7874. int
  7875. main ()
  7876. {
  7877. return f != $ac_func;
  7878. ;
  7879. return 0;
  7880. }
  7881. _ACEOF
  7882. rm -f conftest.$ac_objext conftest$ac_exeext
  7883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7884. (eval $ac_link) 2>conftest.er1
  7885. ac_status=$?
  7886. grep -v '^ *+' conftest.er1 >conftest.err
  7887. rm -f conftest.er1
  7888. cat conftest.err >&5
  7889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7890. (exit $ac_status); } &&
  7891. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7893. (eval $ac_try) 2>&5
  7894. ac_status=$?
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); }; } &&
  7897. { ac_try='test -s conftest$ac_exeext'
  7898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7899. (eval $ac_try) 2>&5
  7900. ac_status=$?
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); }; }; then
  7903. eval "$as_ac_var=yes"
  7904. else
  7905. echo "$as_me: failed program was:" >&5
  7906. sed 's/^/| /' conftest.$ac_ext >&5
  7907. eval "$as_ac_var=no"
  7908. fi
  7909. rm -f conftest.err conftest.$ac_objext \
  7910. conftest$ac_exeext conftest.$ac_ext
  7911. fi
  7912. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7913. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7914. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7915. cat >>confdefs.h <<_ACEOF
  7916. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7917. _ACEOF
  7918. fi
  7919. done
  7920. echo "$as_me:$LINENO: checking for working mktime" >&5
  7921. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  7922. if test "${ac_cv_func_working_mktime+set}" = set; then
  7923. echo $ECHO_N "(cached) $ECHO_C" >&6
  7924. else
  7925. if test "$cross_compiling" = yes; then
  7926. ac_cv_func_working_mktime=no
  7927. else
  7928. cat >conftest.$ac_ext <<_ACEOF
  7929. /* confdefs.h. */
  7930. _ACEOF
  7931. cat confdefs.h >>conftest.$ac_ext
  7932. cat >>conftest.$ac_ext <<_ACEOF
  7933. /* end confdefs.h. */
  7934. /* Test program from Paul Eggert and Tony Leneis. */
  7935. #if TIME_WITH_SYS_TIME
  7936. # include <sys/time.h>
  7937. # include <time.h>
  7938. #else
  7939. # if HAVE_SYS_TIME_H
  7940. # include <sys/time.h>
  7941. # else
  7942. # include <time.h>
  7943. # endif
  7944. #endif
  7945. #if HAVE_STDLIB_H
  7946. # include <stdlib.h>
  7947. #endif
  7948. #if HAVE_UNISTD_H
  7949. # include <unistd.h>
  7950. #endif
  7951. #if !HAVE_ALARM
  7952. # define alarm(X) /* empty */
  7953. #endif
  7954. /* Work around redefinition to rpl_putenv by other config tests. */
  7955. #undef putenv
  7956. static time_t time_t_max;
  7957. static time_t time_t_min;
  7958. /* Values we'll use to set the TZ environment variable. */
  7959. static char *tz_strings[] = {
  7960. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  7961. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  7962. };
  7963. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  7964. /* Fail if mktime fails to convert a date in the spring-forward gap.
  7965. Based on a problem report from Andreas Jaeger. */
  7966. static void
  7967. spring_forward_gap ()
  7968. {
  7969. /* glibc (up to about 1998-10-07) failed this test. */
  7970. struct tm tm;
  7971. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7972. instead of "TZ=America/Vancouver" in order to detect the bug even
  7973. on systems that don't support the Olson extension, or don't have the
  7974. full zoneinfo tables installed. */
  7975. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  7976. tm.tm_year = 98;
  7977. tm.tm_mon = 3;
  7978. tm.tm_mday = 5;
  7979. tm.tm_hour = 2;
  7980. tm.tm_min = 0;
  7981. tm.tm_sec = 0;
  7982. tm.tm_isdst = -1;
  7983. if (mktime (&tm) == (time_t)-1)
  7984. exit (1);
  7985. }
  7986. static void
  7987. mktime_test1 (now)
  7988. time_t now;
  7989. {
  7990. struct tm *lt;
  7991. if ((lt = localtime (&now)) && mktime (lt) != now)
  7992. exit (1);
  7993. }
  7994. static void
  7995. mktime_test (now)
  7996. time_t now;
  7997. {
  7998. mktime_test1 (now);
  7999. mktime_test1 ((time_t) (time_t_max - now));
  8000. mktime_test1 ((time_t) (time_t_min + now));
  8001. }
  8002. static void
  8003. irix_6_4_bug ()
  8004. {
  8005. /* Based on code from Ariel Faigon. */
  8006. struct tm tm;
  8007. tm.tm_year = 96;
  8008. tm.tm_mon = 3;
  8009. tm.tm_mday = 0;
  8010. tm.tm_hour = 0;
  8011. tm.tm_min = 0;
  8012. tm.tm_sec = 0;
  8013. tm.tm_isdst = -1;
  8014. mktime (&tm);
  8015. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8016. exit (1);
  8017. }
  8018. static void
  8019. bigtime_test (j)
  8020. int j;
  8021. {
  8022. struct tm tm;
  8023. time_t now;
  8024. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8025. now = mktime (&tm);
  8026. if (now != (time_t) -1)
  8027. {
  8028. struct tm *lt = localtime (&now);
  8029. if (! (lt
  8030. && lt->tm_year == tm.tm_year
  8031. && lt->tm_mon == tm.tm_mon
  8032. && lt->tm_mday == tm.tm_mday
  8033. && lt->tm_hour == tm.tm_hour
  8034. && lt->tm_min == tm.tm_min
  8035. && lt->tm_sec == tm.tm_sec
  8036. && lt->tm_yday == tm.tm_yday
  8037. && lt->tm_wday == tm.tm_wday
  8038. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8039. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8040. exit (1);
  8041. }
  8042. }
  8043. int
  8044. main ()
  8045. {
  8046. time_t t, delta;
  8047. int i, j;
  8048. /* This test makes some buggy mktime implementations loop.
  8049. Give up after 60 seconds; a mktime slower than that
  8050. isn't worth using anyway. */
  8051. alarm (60);
  8052. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8053. continue;
  8054. time_t_max--;
  8055. if ((time_t) -1 < 0)
  8056. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8057. continue;
  8058. delta = time_t_max / 997; /* a suitable prime number */
  8059. for (i = 0; i < N_STRINGS; i++)
  8060. {
  8061. if (tz_strings[i])
  8062. putenv (tz_strings[i]);
  8063. for (t = 0; t <= time_t_max - delta; t += delta)
  8064. mktime_test (t);
  8065. mktime_test ((time_t) 1);
  8066. mktime_test ((time_t) (60 * 60));
  8067. mktime_test ((time_t) (60 * 60 * 24));
  8068. for (j = 1; 0 < j; j *= 2)
  8069. bigtime_test (j);
  8070. bigtime_test (j - 1);
  8071. }
  8072. irix_6_4_bug ();
  8073. spring_forward_gap ();
  8074. exit (0);
  8075. }
  8076. _ACEOF
  8077. rm -f conftest$ac_exeext
  8078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8079. (eval $ac_link) 2>&5
  8080. ac_status=$?
  8081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8082. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8084. (eval $ac_try) 2>&5
  8085. ac_status=$?
  8086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8087. (exit $ac_status); }; }; then
  8088. ac_cv_func_working_mktime=yes
  8089. else
  8090. echo "$as_me: program exited with status $ac_status" >&5
  8091. echo "$as_me: failed program was:" >&5
  8092. sed 's/^/| /' conftest.$ac_ext >&5
  8093. ( exit $ac_status )
  8094. ac_cv_func_working_mktime=no
  8095. fi
  8096. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8097. fi
  8098. fi
  8099. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8100. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8101. if test $ac_cv_func_working_mktime = no; then
  8102. case $LIBOBJS in
  8103. "mktime.$ac_objext" | \
  8104. *" mktime.$ac_objext" | \
  8105. "mktime.$ac_objext "* | \
  8106. *" mktime.$ac_objext "* ) ;;
  8107. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8108. esac
  8109. fi
  8110. for ac_header in stdlib.h unistd.h
  8111. do
  8112. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8113. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8114. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8115. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8116. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8117. echo $ECHO_N "(cached) $ECHO_C" >&6
  8118. fi
  8119. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8120. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8121. else
  8122. # Is the header compilable?
  8123. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8124. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8125. cat >conftest.$ac_ext <<_ACEOF
  8126. /* confdefs.h. */
  8127. _ACEOF
  8128. cat confdefs.h >>conftest.$ac_ext
  8129. cat >>conftest.$ac_ext <<_ACEOF
  8130. /* end confdefs.h. */
  8131. $ac_includes_default
  8132. #include <$ac_header>
  8133. _ACEOF
  8134. rm -f conftest.$ac_objext
  8135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8136. (eval $ac_compile) 2>conftest.er1
  8137. ac_status=$?
  8138. grep -v '^ *+' conftest.er1 >conftest.err
  8139. rm -f conftest.er1
  8140. cat conftest.err >&5
  8141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8142. (exit $ac_status); } &&
  8143. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8145. (eval $ac_try) 2>&5
  8146. ac_status=$?
  8147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8148. (exit $ac_status); }; } &&
  8149. { ac_try='test -s conftest.$ac_objext'
  8150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8151. (eval $ac_try) 2>&5
  8152. ac_status=$?
  8153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8154. (exit $ac_status); }; }; then
  8155. ac_header_compiler=yes
  8156. else
  8157. echo "$as_me: failed program was:" >&5
  8158. sed 's/^/| /' conftest.$ac_ext >&5
  8159. ac_header_compiler=no
  8160. fi
  8161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8162. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8163. echo "${ECHO_T}$ac_header_compiler" >&6
  8164. # Is the header present?
  8165. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8166. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8167. cat >conftest.$ac_ext <<_ACEOF
  8168. /* confdefs.h. */
  8169. _ACEOF
  8170. cat confdefs.h >>conftest.$ac_ext
  8171. cat >>conftest.$ac_ext <<_ACEOF
  8172. /* end confdefs.h. */
  8173. #include <$ac_header>
  8174. _ACEOF
  8175. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8176. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8177. ac_status=$?
  8178. grep -v '^ *+' conftest.er1 >conftest.err
  8179. rm -f conftest.er1
  8180. cat conftest.err >&5
  8181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8182. (exit $ac_status); } >/dev/null; then
  8183. if test -s conftest.err; then
  8184. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8185. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8186. else
  8187. ac_cpp_err=
  8188. fi
  8189. else
  8190. ac_cpp_err=yes
  8191. fi
  8192. if test -z "$ac_cpp_err"; then
  8193. ac_header_preproc=yes
  8194. else
  8195. echo "$as_me: failed program was:" >&5
  8196. sed 's/^/| /' conftest.$ac_ext >&5
  8197. ac_header_preproc=no
  8198. fi
  8199. rm -f conftest.err conftest.$ac_ext
  8200. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8201. echo "${ECHO_T}$ac_header_preproc" >&6
  8202. # So? What about this header?
  8203. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8204. yes:no: )
  8205. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8206. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8207. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8208. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8209. ac_header_preproc=yes
  8210. ;;
  8211. no:yes:* )
  8212. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8213. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8214. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8215. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8216. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8217. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8218. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8219. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8220. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8221. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8222. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8223. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8224. (
  8225. cat <<\_ASBOX
  8226. ## ------------------------------------------ ##
  8227. ## Report this to the AC_PACKAGE_NAME lists. ##
  8228. ## ------------------------------------------ ##
  8229. _ASBOX
  8230. ) |
  8231. sed "s/^/$as_me: WARNING: /" >&2
  8232. ;;
  8233. esac
  8234. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8235. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8236. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8237. echo $ECHO_N "(cached) $ECHO_C" >&6
  8238. else
  8239. eval "$as_ac_Header=\$ac_header_preproc"
  8240. fi
  8241. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8242. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8243. fi
  8244. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8245. cat >>confdefs.h <<_ACEOF
  8246. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8247. _ACEOF
  8248. fi
  8249. done
  8250. for ac_func in getpagesize
  8251. do
  8252. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8253. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8254. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8255. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8256. echo $ECHO_N "(cached) $ECHO_C" >&6
  8257. else
  8258. cat >conftest.$ac_ext <<_ACEOF
  8259. /* confdefs.h. */
  8260. _ACEOF
  8261. cat confdefs.h >>conftest.$ac_ext
  8262. cat >>conftest.$ac_ext <<_ACEOF
  8263. /* end confdefs.h. */
  8264. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8265. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8266. #define $ac_func innocuous_$ac_func
  8267. /* System header to define __stub macros and hopefully few prototypes,
  8268. which can conflict with char $ac_func (); below.
  8269. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8270. <limits.h> exists even on freestanding compilers. */
  8271. #ifdef __STDC__
  8272. # include <limits.h>
  8273. #else
  8274. # include <assert.h>
  8275. #endif
  8276. #undef $ac_func
  8277. /* Override any gcc2 internal prototype to avoid an error. */
  8278. #ifdef __cplusplus
  8279. extern "C"
  8280. {
  8281. #endif
  8282. /* We use char because int might match the return type of a gcc2
  8283. builtin and then its argument prototype would still apply. */
  8284. char $ac_func ();
  8285. /* The GNU C library defines this for functions which it implements
  8286. to always fail with ENOSYS. Some functions are actually named
  8287. something starting with __ and the normal name is an alias. */
  8288. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8289. choke me
  8290. #else
  8291. char (*f) () = $ac_func;
  8292. #endif
  8293. #ifdef __cplusplus
  8294. }
  8295. #endif
  8296. int
  8297. main ()
  8298. {
  8299. return f != $ac_func;
  8300. ;
  8301. return 0;
  8302. }
  8303. _ACEOF
  8304. rm -f conftest.$ac_objext conftest$ac_exeext
  8305. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8306. (eval $ac_link) 2>conftest.er1
  8307. ac_status=$?
  8308. grep -v '^ *+' conftest.er1 >conftest.err
  8309. rm -f conftest.er1
  8310. cat conftest.err >&5
  8311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8312. (exit $ac_status); } &&
  8313. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8315. (eval $ac_try) 2>&5
  8316. ac_status=$?
  8317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8318. (exit $ac_status); }; } &&
  8319. { ac_try='test -s conftest$ac_exeext'
  8320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8321. (eval $ac_try) 2>&5
  8322. ac_status=$?
  8323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8324. (exit $ac_status); }; }; then
  8325. eval "$as_ac_var=yes"
  8326. else
  8327. echo "$as_me: failed program was:" >&5
  8328. sed 's/^/| /' conftest.$ac_ext >&5
  8329. eval "$as_ac_var=no"
  8330. fi
  8331. rm -f conftest.err conftest.$ac_objext \
  8332. conftest$ac_exeext conftest.$ac_ext
  8333. fi
  8334. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8335. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8336. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8337. cat >>confdefs.h <<_ACEOF
  8338. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8339. _ACEOF
  8340. fi
  8341. done
  8342. echo "$as_me:$LINENO: checking for working mmap" >&5
  8343. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8344. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8345. echo $ECHO_N "(cached) $ECHO_C" >&6
  8346. else
  8347. if test "$cross_compiling" = yes; then
  8348. ac_cv_func_mmap_fixed_mapped=no
  8349. else
  8350. cat >conftest.$ac_ext <<_ACEOF
  8351. /* confdefs.h. */
  8352. _ACEOF
  8353. cat confdefs.h >>conftest.$ac_ext
  8354. cat >>conftest.$ac_ext <<_ACEOF
  8355. /* end confdefs.h. */
  8356. $ac_includes_default
  8357. /* malloc might have been renamed as rpl_malloc. */
  8358. #undef malloc
  8359. /* Thanks to Mike Haertel and Jim Avera for this test.
  8360. Here is a matrix of mmap possibilities:
  8361. mmap private not fixed
  8362. mmap private fixed at somewhere currently unmapped
  8363. mmap private fixed at somewhere already mapped
  8364. mmap shared not fixed
  8365. mmap shared fixed at somewhere currently unmapped
  8366. mmap shared fixed at somewhere already mapped
  8367. For private mappings, we should verify that changes cannot be read()
  8368. back from the file, nor mmap's back from the file at a different
  8369. address. (There have been systems where private was not correctly
  8370. implemented like the infamous i386 svr4.0, and systems where the
  8371. VM page cache was not coherent with the file system buffer cache
  8372. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8373. For shared mappings, we should conversely verify that changes get
  8374. propagated back to all the places they're supposed to be.
  8375. Grep wants private fixed already mapped.
  8376. The main things grep needs to know about mmap are:
  8377. * does it exist and is it safe to write into the mmap'd area
  8378. * how to use it (BSD variants) */
  8379. #include <fcntl.h>
  8380. #include <sys/mman.h>
  8381. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8382. char *malloc ();
  8383. #endif
  8384. /* This mess was copied from the GNU getpagesize.h. */
  8385. #if !HAVE_GETPAGESIZE
  8386. /* Assume that all systems that can run configure have sys/param.h. */
  8387. # if !HAVE_SYS_PARAM_H
  8388. # define HAVE_SYS_PARAM_H 1
  8389. # endif
  8390. # ifdef _SC_PAGESIZE
  8391. # define getpagesize() sysconf(_SC_PAGESIZE)
  8392. # else /* no _SC_PAGESIZE */
  8393. # if HAVE_SYS_PARAM_H
  8394. # include <sys/param.h>
  8395. # ifdef EXEC_PAGESIZE
  8396. # define getpagesize() EXEC_PAGESIZE
  8397. # else /* no EXEC_PAGESIZE */
  8398. # ifdef NBPG
  8399. # define getpagesize() NBPG * CLSIZE
  8400. # ifndef CLSIZE
  8401. # define CLSIZE 1
  8402. # endif /* no CLSIZE */
  8403. # else /* no NBPG */
  8404. # ifdef NBPC
  8405. # define getpagesize() NBPC
  8406. # else /* no NBPC */
  8407. # ifdef PAGESIZE
  8408. # define getpagesize() PAGESIZE
  8409. # endif /* PAGESIZE */
  8410. # endif /* no NBPC */
  8411. # endif /* no NBPG */
  8412. # endif /* no EXEC_PAGESIZE */
  8413. # else /* no HAVE_SYS_PARAM_H */
  8414. # define getpagesize() 8192 /* punt totally */
  8415. # endif /* no HAVE_SYS_PARAM_H */
  8416. # endif /* no _SC_PAGESIZE */
  8417. #endif /* no HAVE_GETPAGESIZE */
  8418. int
  8419. main ()
  8420. {
  8421. char *data, *data2, *data3;
  8422. int i, pagesize;
  8423. int fd;
  8424. pagesize = getpagesize ();
  8425. /* First, make a file with some known garbage in it. */
  8426. data = (char *) malloc (pagesize);
  8427. if (!data)
  8428. exit (1);
  8429. for (i = 0; i < pagesize; ++i)
  8430. *(data + i) = rand ();
  8431. umask (0);
  8432. fd = creat ("conftest.mmap", 0600);
  8433. if (fd < 0)
  8434. exit (1);
  8435. if (write (fd, data, pagesize) != pagesize)
  8436. exit (1);
  8437. close (fd);
  8438. /* Next, try to mmap the file at a fixed address which already has
  8439. something else allocated at it. If we can, also make sure that
  8440. we see the same garbage. */
  8441. fd = open ("conftest.mmap", O_RDWR);
  8442. if (fd < 0)
  8443. exit (1);
  8444. data2 = (char *) malloc (2 * pagesize);
  8445. if (!data2)
  8446. exit (1);
  8447. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8448. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8449. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8450. exit (1);
  8451. for (i = 0; i < pagesize; ++i)
  8452. if (*(data + i) != *(data2 + i))
  8453. exit (1);
  8454. /* Finally, make sure that changes to the mapped area do not
  8455. percolate back to the file as seen by read(). (This is a bug on
  8456. some variants of i386 svr4.0.) */
  8457. for (i = 0; i < pagesize; ++i)
  8458. *(data2 + i) = *(data2 + i) + 1;
  8459. data3 = (char *) malloc (pagesize);
  8460. if (!data3)
  8461. exit (1);
  8462. if (read (fd, data3, pagesize) != pagesize)
  8463. exit (1);
  8464. for (i = 0; i < pagesize; ++i)
  8465. if (*(data + i) != *(data3 + i))
  8466. exit (1);
  8467. close (fd);
  8468. exit (0);
  8469. }
  8470. _ACEOF
  8471. rm -f conftest$ac_exeext
  8472. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8473. (eval $ac_link) 2>&5
  8474. ac_status=$?
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8478. (eval $ac_try) 2>&5
  8479. ac_status=$?
  8480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8481. (exit $ac_status); }; }; then
  8482. ac_cv_func_mmap_fixed_mapped=yes
  8483. else
  8484. echo "$as_me: program exited with status $ac_status" >&5
  8485. echo "$as_me: failed program was:" >&5
  8486. sed 's/^/| /' conftest.$ac_ext >&5
  8487. ( exit $ac_status )
  8488. ac_cv_func_mmap_fixed_mapped=no
  8489. fi
  8490. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8491. fi
  8492. fi
  8493. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8494. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8495. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8496. cat >>confdefs.h <<\_ACEOF
  8497. #define HAVE_MMAP 1
  8498. _ACEOF
  8499. fi
  8500. rm -f conftest.mmap
  8501. for ac_header in stdlib.h
  8502. do
  8503. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8504. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8505. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8506. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8507. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8508. echo $ECHO_N "(cached) $ECHO_C" >&6
  8509. fi
  8510. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8511. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8512. else
  8513. # Is the header compilable?
  8514. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8515. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8516. cat >conftest.$ac_ext <<_ACEOF
  8517. /* confdefs.h. */
  8518. _ACEOF
  8519. cat confdefs.h >>conftest.$ac_ext
  8520. cat >>conftest.$ac_ext <<_ACEOF
  8521. /* end confdefs.h. */
  8522. $ac_includes_default
  8523. #include <$ac_header>
  8524. _ACEOF
  8525. rm -f conftest.$ac_objext
  8526. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8527. (eval $ac_compile) 2>conftest.er1
  8528. ac_status=$?
  8529. grep -v '^ *+' conftest.er1 >conftest.err
  8530. rm -f conftest.er1
  8531. cat conftest.err >&5
  8532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8533. (exit $ac_status); } &&
  8534. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8536. (eval $ac_try) 2>&5
  8537. ac_status=$?
  8538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8539. (exit $ac_status); }; } &&
  8540. { ac_try='test -s conftest.$ac_objext'
  8541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8542. (eval $ac_try) 2>&5
  8543. ac_status=$?
  8544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8545. (exit $ac_status); }; }; then
  8546. ac_header_compiler=yes
  8547. else
  8548. echo "$as_me: failed program was:" >&5
  8549. sed 's/^/| /' conftest.$ac_ext >&5
  8550. ac_header_compiler=no
  8551. fi
  8552. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8553. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8554. echo "${ECHO_T}$ac_header_compiler" >&6
  8555. # Is the header present?
  8556. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8557. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8558. cat >conftest.$ac_ext <<_ACEOF
  8559. /* confdefs.h. */
  8560. _ACEOF
  8561. cat confdefs.h >>conftest.$ac_ext
  8562. cat >>conftest.$ac_ext <<_ACEOF
  8563. /* end confdefs.h. */
  8564. #include <$ac_header>
  8565. _ACEOF
  8566. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8567. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8568. ac_status=$?
  8569. grep -v '^ *+' conftest.er1 >conftest.err
  8570. rm -f conftest.er1
  8571. cat conftest.err >&5
  8572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. (exit $ac_status); } >/dev/null; then
  8574. if test -s conftest.err; then
  8575. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8576. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8577. else
  8578. ac_cpp_err=
  8579. fi
  8580. else
  8581. ac_cpp_err=yes
  8582. fi
  8583. if test -z "$ac_cpp_err"; then
  8584. ac_header_preproc=yes
  8585. else
  8586. echo "$as_me: failed program was:" >&5
  8587. sed 's/^/| /' conftest.$ac_ext >&5
  8588. ac_header_preproc=no
  8589. fi
  8590. rm -f conftest.err conftest.$ac_ext
  8591. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8592. echo "${ECHO_T}$ac_header_preproc" >&6
  8593. # So? What about this header?
  8594. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8595. yes:no: )
  8596. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8597. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8598. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8599. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8600. ac_header_preproc=yes
  8601. ;;
  8602. no:yes:* )
  8603. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8604. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8605. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8606. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8607. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8608. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8609. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8610. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8611. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8612. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8613. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8614. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8615. (
  8616. cat <<\_ASBOX
  8617. ## ------------------------------------------ ##
  8618. ## Report this to the AC_PACKAGE_NAME lists. ##
  8619. ## ------------------------------------------ ##
  8620. _ASBOX
  8621. ) |
  8622. sed "s/^/$as_me: WARNING: /" >&2
  8623. ;;
  8624. esac
  8625. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8626. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8627. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8628. echo $ECHO_N "(cached) $ECHO_C" >&6
  8629. else
  8630. eval "$as_ac_Header=\$ac_header_preproc"
  8631. fi
  8632. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8633. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8634. fi
  8635. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8636. cat >>confdefs.h <<_ACEOF
  8637. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8638. _ACEOF
  8639. fi
  8640. done
  8641. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  8642. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  8643. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  8644. echo $ECHO_N "(cached) $ECHO_C" >&6
  8645. else
  8646. if test "$cross_compiling" = yes; then
  8647. ac_cv_func_realloc_0_nonnull=no
  8648. else
  8649. cat >conftest.$ac_ext <<_ACEOF
  8650. /* confdefs.h. */
  8651. _ACEOF
  8652. cat confdefs.h >>conftest.$ac_ext
  8653. cat >>conftest.$ac_ext <<_ACEOF
  8654. /* end confdefs.h. */
  8655. #if STDC_HEADERS || HAVE_STDLIB_H
  8656. # include <stdlib.h>
  8657. #else
  8658. char *realloc ();
  8659. #endif
  8660. int
  8661. main ()
  8662. {
  8663. exit (realloc (0, 0) ? 0 : 1);
  8664. ;
  8665. return 0;
  8666. }
  8667. _ACEOF
  8668. rm -f conftest$ac_exeext
  8669. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8670. (eval $ac_link) 2>&5
  8671. ac_status=$?
  8672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8673. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8675. (eval $ac_try) 2>&5
  8676. ac_status=$?
  8677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8678. (exit $ac_status); }; }; then
  8679. ac_cv_func_realloc_0_nonnull=yes
  8680. else
  8681. echo "$as_me: program exited with status $ac_status" >&5
  8682. echo "$as_me: failed program was:" >&5
  8683. sed 's/^/| /' conftest.$ac_ext >&5
  8684. ( exit $ac_status )
  8685. ac_cv_func_realloc_0_nonnull=no
  8686. fi
  8687. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8688. fi
  8689. fi
  8690. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  8691. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  8692. if test $ac_cv_func_realloc_0_nonnull = yes; then
  8693. cat >>confdefs.h <<\_ACEOF
  8694. #define HAVE_REALLOC 1
  8695. _ACEOF
  8696. else
  8697. cat >>confdefs.h <<\_ACEOF
  8698. #define HAVE_REALLOC 0
  8699. _ACEOF
  8700. case $LIBOBJS in
  8701. "realloc.$ac_objext" | \
  8702. *" realloc.$ac_objext" | \
  8703. "realloc.$ac_objext "* | \
  8704. *" realloc.$ac_objext "* ) ;;
  8705. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  8706. esac
  8707. cat >>confdefs.h <<\_ACEOF
  8708. #define realloc rpl_realloc
  8709. _ACEOF
  8710. fi
  8711. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  8712. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  8713. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  8714. echo $ECHO_N "(cached) $ECHO_C" >&6
  8715. else
  8716. if test "$cross_compiling" = yes; then
  8717. ac_cv_func_stat_empty_string_bug=yes
  8718. else
  8719. cat >conftest.$ac_ext <<_ACEOF
  8720. /* confdefs.h. */
  8721. _ACEOF
  8722. cat confdefs.h >>conftest.$ac_ext
  8723. cat >>conftest.$ac_ext <<_ACEOF
  8724. /* end confdefs.h. */
  8725. $ac_includes_default
  8726. int
  8727. main ()
  8728. {
  8729. struct stat sbuf;
  8730. exit (stat ("", &sbuf) ? 1 : 0);
  8731. ;
  8732. return 0;
  8733. }
  8734. _ACEOF
  8735. rm -f conftest$ac_exeext
  8736. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8737. (eval $ac_link) 2>&5
  8738. ac_status=$?
  8739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8740. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8742. (eval $ac_try) 2>&5
  8743. ac_status=$?
  8744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. (exit $ac_status); }; }; then
  8746. ac_cv_func_stat_empty_string_bug=yes
  8747. else
  8748. echo "$as_me: program exited with status $ac_status" >&5
  8749. echo "$as_me: failed program was:" >&5
  8750. sed 's/^/| /' conftest.$ac_ext >&5
  8751. ( exit $ac_status )
  8752. ac_cv_func_stat_empty_string_bug=no
  8753. fi
  8754. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8755. fi
  8756. fi
  8757. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  8758. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  8759. if test $ac_cv_func_stat_empty_string_bug = yes; then
  8760. case $LIBOBJS in
  8761. "stat.$ac_objext" | \
  8762. *" stat.$ac_objext" | \
  8763. "stat.$ac_objext "* | \
  8764. *" stat.$ac_objext "* ) ;;
  8765. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  8766. esac
  8767. cat >>confdefs.h <<_ACEOF
  8768. #define HAVE_STAT_EMPTY_STRING_BUG 1
  8769. _ACEOF
  8770. fi
  8771. for ac_func in strftime
  8772. do
  8773. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8774. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8775. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8776. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8777. echo $ECHO_N "(cached) $ECHO_C" >&6
  8778. else
  8779. cat >conftest.$ac_ext <<_ACEOF
  8780. /* confdefs.h. */
  8781. _ACEOF
  8782. cat confdefs.h >>conftest.$ac_ext
  8783. cat >>conftest.$ac_ext <<_ACEOF
  8784. /* end confdefs.h. */
  8785. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8787. #define $ac_func innocuous_$ac_func
  8788. /* System header to define __stub macros and hopefully few prototypes,
  8789. which can conflict with char $ac_func (); below.
  8790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8791. <limits.h> exists even on freestanding compilers. */
  8792. #ifdef __STDC__
  8793. # include <limits.h>
  8794. #else
  8795. # include <assert.h>
  8796. #endif
  8797. #undef $ac_func
  8798. /* Override any gcc2 internal prototype to avoid an error. */
  8799. #ifdef __cplusplus
  8800. extern "C"
  8801. {
  8802. #endif
  8803. /* We use char because int might match the return type of a gcc2
  8804. builtin and then its argument prototype would still apply. */
  8805. char $ac_func ();
  8806. /* The GNU C library defines this for functions which it implements
  8807. to always fail with ENOSYS. Some functions are actually named
  8808. something starting with __ and the normal name is an alias. */
  8809. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8810. choke me
  8811. #else
  8812. char (*f) () = $ac_func;
  8813. #endif
  8814. #ifdef __cplusplus
  8815. }
  8816. #endif
  8817. int
  8818. main ()
  8819. {
  8820. return f != $ac_func;
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. rm -f conftest.$ac_objext conftest$ac_exeext
  8826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8827. (eval $ac_link) 2>conftest.er1
  8828. ac_status=$?
  8829. grep -v '^ *+' conftest.er1 >conftest.err
  8830. rm -f conftest.er1
  8831. cat conftest.err >&5
  8832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8833. (exit $ac_status); } &&
  8834. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8836. (eval $ac_try) 2>&5
  8837. ac_status=$?
  8838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. (exit $ac_status); }; } &&
  8840. { ac_try='test -s 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. eval "$as_ac_var=yes"
  8847. else
  8848. echo "$as_me: failed program was:" >&5
  8849. sed 's/^/| /' conftest.$ac_ext >&5
  8850. eval "$as_ac_var=no"
  8851. fi
  8852. rm -f conftest.err conftest.$ac_objext \
  8853. conftest$ac_exeext conftest.$ac_ext
  8854. fi
  8855. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8856. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8857. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8858. cat >>confdefs.h <<_ACEOF
  8859. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8860. _ACEOF
  8861. else
  8862. # strftime is in -lintl on SCO UNIX.
  8863. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  8864. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  8865. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  8866. echo $ECHO_N "(cached) $ECHO_C" >&6
  8867. else
  8868. ac_check_lib_save_LIBS=$LIBS
  8869. LIBS="-lintl $LIBS"
  8870. cat >conftest.$ac_ext <<_ACEOF
  8871. /* confdefs.h. */
  8872. _ACEOF
  8873. cat confdefs.h >>conftest.$ac_ext
  8874. cat >>conftest.$ac_ext <<_ACEOF
  8875. /* end confdefs.h. */
  8876. /* Override any gcc2 internal prototype to avoid an error. */
  8877. #ifdef __cplusplus
  8878. extern "C"
  8879. #endif
  8880. /* We use char because int might match the return type of a gcc2
  8881. builtin and then its argument prototype would still apply. */
  8882. char strftime ();
  8883. int
  8884. main ()
  8885. {
  8886. strftime ();
  8887. ;
  8888. return 0;
  8889. }
  8890. _ACEOF
  8891. rm -f conftest.$ac_objext conftest$ac_exeext
  8892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8893. (eval $ac_link) 2>conftest.er1
  8894. ac_status=$?
  8895. grep -v '^ *+' conftest.er1 >conftest.err
  8896. rm -f conftest.er1
  8897. cat conftest.err >&5
  8898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8899. (exit $ac_status); } &&
  8900. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8902. (eval $ac_try) 2>&5
  8903. ac_status=$?
  8904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905. (exit $ac_status); }; } &&
  8906. { ac_try='test -s conftest$ac_exeext'
  8907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8908. (eval $ac_try) 2>&5
  8909. ac_status=$?
  8910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8911. (exit $ac_status); }; }; then
  8912. ac_cv_lib_intl_strftime=yes
  8913. else
  8914. echo "$as_me: failed program was:" >&5
  8915. sed 's/^/| /' conftest.$ac_ext >&5
  8916. ac_cv_lib_intl_strftime=no
  8917. fi
  8918. rm -f conftest.err conftest.$ac_objext \
  8919. conftest$ac_exeext conftest.$ac_ext
  8920. LIBS=$ac_check_lib_save_LIBS
  8921. fi
  8922. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  8923. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  8924. if test $ac_cv_lib_intl_strftime = yes; then
  8925. cat >>confdefs.h <<\_ACEOF
  8926. #define HAVE_STRFTIME 1
  8927. _ACEOF
  8928. LIBS="-lintl $LIBS"
  8929. fi
  8930. fi
  8931. done
  8932. #checkpoint
  8933. cat >confcache <<\_ACEOF
  8934. # This file is a shell script that caches the results of configure
  8935. # tests run on this system so they can be shared between configure
  8936. # scripts and configure runs, see configure's option --config-cache.
  8937. # It is not useful on other systems. If it contains results you don't
  8938. # want to keep, you may remove or edit it.
  8939. #
  8940. # config.status only pays attention to the cache file if you give it
  8941. # the --recheck option to rerun configure.
  8942. #
  8943. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8944. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8945. # following values.
  8946. _ACEOF
  8947. # The following way of writing the cache mishandles newlines in values,
  8948. # but we know of no workaround that is simple, portable, and efficient.
  8949. # So, don't put newlines in cache variables' values.
  8950. # Ultrix sh set writes to stderr and can't be redirected directly,
  8951. # and sets the high bit in the cache file unless we assign to the vars.
  8952. {
  8953. (set) 2>&1 |
  8954. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8955. *ac_space=\ *)
  8956. # `set' does not quote correctly, so add quotes (double-quote
  8957. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8958. sed -n \
  8959. "s/'/'\\\\''/g;
  8960. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8961. ;;
  8962. *)
  8963. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8964. sed -n \
  8965. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8966. ;;
  8967. esac;
  8968. } |
  8969. sed '
  8970. t clear
  8971. : clear
  8972. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8973. t end
  8974. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8975. : end' >>confcache
  8976. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8977. if test -w $cache_file; then
  8978. test "x$cache_file" != "x/dev/null"
  8979. cat confcache >$cache_file
  8980. else
  8981. echo "not updating unwritable cache $cache_file"
  8982. fi
  8983. fi
  8984. rm -f confcache
  8985. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  8986. do
  8987. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8988. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8989. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8990. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8991. echo $ECHO_N "(cached) $ECHO_C" >&6
  8992. else
  8993. cat >conftest.$ac_ext <<_ACEOF
  8994. /* confdefs.h. */
  8995. _ACEOF
  8996. cat confdefs.h >>conftest.$ac_ext
  8997. cat >>conftest.$ac_ext <<_ACEOF
  8998. /* end confdefs.h. */
  8999. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9000. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9001. #define $ac_func innocuous_$ac_func
  9002. /* System header to define __stub macros and hopefully few prototypes,
  9003. which can conflict with char $ac_func (); below.
  9004. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9005. <limits.h> exists even on freestanding compilers. */
  9006. #ifdef __STDC__
  9007. # include <limits.h>
  9008. #else
  9009. # include <assert.h>
  9010. #endif
  9011. #undef $ac_func
  9012. /* Override any gcc2 internal prototype to avoid an error. */
  9013. #ifdef __cplusplus
  9014. extern "C"
  9015. {
  9016. #endif
  9017. /* We use char because int might match the return type of a gcc2
  9018. builtin and then its argument prototype would still apply. */
  9019. char $ac_func ();
  9020. /* The GNU C library defines this for functions which it implements
  9021. to always fail with ENOSYS. Some functions are actually named
  9022. something starting with __ and the normal name is an alias. */
  9023. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9024. choke me
  9025. #else
  9026. char (*f) () = $ac_func;
  9027. #endif
  9028. #ifdef __cplusplus
  9029. }
  9030. #endif
  9031. int
  9032. main ()
  9033. {
  9034. return f != $ac_func;
  9035. ;
  9036. return 0;
  9037. }
  9038. _ACEOF
  9039. rm -f conftest.$ac_objext conftest$ac_exeext
  9040. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9041. (eval $ac_link) 2>conftest.er1
  9042. ac_status=$?
  9043. grep -v '^ *+' conftest.er1 >conftest.err
  9044. rm -f conftest.er1
  9045. cat conftest.err >&5
  9046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9047. (exit $ac_status); } &&
  9048. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9050. (eval $ac_try) 2>&5
  9051. ac_status=$?
  9052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9053. (exit $ac_status); }; } &&
  9054. { ac_try='test -s conftest$ac_exeext'
  9055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9056. (eval $ac_try) 2>&5
  9057. ac_status=$?
  9058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9059. (exit $ac_status); }; }; then
  9060. eval "$as_ac_var=yes"
  9061. else
  9062. echo "$as_me: failed program was:" >&5
  9063. sed 's/^/| /' conftest.$ac_ext >&5
  9064. eval "$as_ac_var=no"
  9065. fi
  9066. rm -f conftest.err conftest.$ac_objext \
  9067. conftest$ac_exeext conftest.$ac_ext
  9068. fi
  9069. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9070. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9071. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9072. cat >>confdefs.h <<_ACEOF
  9073. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9074. _ACEOF
  9075. fi
  9076. done
  9077. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  9078. do
  9079. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9080. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9081. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9082. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9083. echo $ECHO_N "(cached) $ECHO_C" >&6
  9084. else
  9085. cat >conftest.$ac_ext <<_ACEOF
  9086. /* confdefs.h. */
  9087. _ACEOF
  9088. cat confdefs.h >>conftest.$ac_ext
  9089. cat >>conftest.$ac_ext <<_ACEOF
  9090. /* end confdefs.h. */
  9091. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9092. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9093. #define $ac_func innocuous_$ac_func
  9094. /* System header to define __stub macros and hopefully few prototypes,
  9095. which can conflict with char $ac_func (); below.
  9096. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9097. <limits.h> exists even on freestanding compilers. */
  9098. #ifdef __STDC__
  9099. # include <limits.h>
  9100. #else
  9101. # include <assert.h>
  9102. #endif
  9103. #undef $ac_func
  9104. /* Override any gcc2 internal prototype to avoid an error. */
  9105. #ifdef __cplusplus
  9106. extern "C"
  9107. {
  9108. #endif
  9109. /* We use char because int might match the return type of a gcc2
  9110. builtin and then its argument prototype would still apply. */
  9111. char $ac_func ();
  9112. /* The GNU C library defines this for functions which it implements
  9113. to always fail with ENOSYS. Some functions are actually named
  9114. something starting with __ and the normal name is an alias. */
  9115. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9116. choke me
  9117. #else
  9118. char (*f) () = $ac_func;
  9119. #endif
  9120. #ifdef __cplusplus
  9121. }
  9122. #endif
  9123. int
  9124. main ()
  9125. {
  9126. return f != $ac_func;
  9127. ;
  9128. return 0;
  9129. }
  9130. _ACEOF
  9131. rm -f conftest.$ac_objext conftest$ac_exeext
  9132. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9133. (eval $ac_link) 2>conftest.er1
  9134. ac_status=$?
  9135. grep -v '^ *+' conftest.er1 >conftest.err
  9136. rm -f conftest.er1
  9137. cat conftest.err >&5
  9138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9139. (exit $ac_status); } &&
  9140. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9142. (eval $ac_try) 2>&5
  9143. ac_status=$?
  9144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9145. (exit $ac_status); }; } &&
  9146. { ac_try='test -s conftest$ac_exeext'
  9147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9148. (eval $ac_try) 2>&5
  9149. ac_status=$?
  9150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. (exit $ac_status); }; }; then
  9152. eval "$as_ac_var=yes"
  9153. else
  9154. echo "$as_me: failed program was:" >&5
  9155. sed 's/^/| /' conftest.$ac_ext >&5
  9156. eval "$as_ac_var=no"
  9157. fi
  9158. rm -f conftest.err conftest.$ac_objext \
  9159. conftest$ac_exeext conftest.$ac_ext
  9160. fi
  9161. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9162. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9163. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9164. cat >>confdefs.h <<_ACEOF
  9165. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9166. _ACEOF
  9167. fi
  9168. done
  9169. #checkpoint
  9170. cat >confcache <<\_ACEOF
  9171. # This file is a shell script that caches the results of configure
  9172. # tests run on this system so they can be shared between configure
  9173. # scripts and configure runs, see configure's option --config-cache.
  9174. # It is not useful on other systems. If it contains results you don't
  9175. # want to keep, you may remove or edit it.
  9176. #
  9177. # config.status only pays attention to the cache file if you give it
  9178. # the --recheck option to rerun configure.
  9179. #
  9180. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9181. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9182. # following values.
  9183. _ACEOF
  9184. # The following way of writing the cache mishandles newlines in values,
  9185. # but we know of no workaround that is simple, portable, and efficient.
  9186. # So, don't put newlines in cache variables' values.
  9187. # Ultrix sh set writes to stderr and can't be redirected directly,
  9188. # and sets the high bit in the cache file unless we assign to the vars.
  9189. {
  9190. (set) 2>&1 |
  9191. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9192. *ac_space=\ *)
  9193. # `set' does not quote correctly, so add quotes (double-quote
  9194. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9195. sed -n \
  9196. "s/'/'\\\\''/g;
  9197. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9198. ;;
  9199. *)
  9200. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9201. sed -n \
  9202. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9203. ;;
  9204. esac;
  9205. } |
  9206. sed '
  9207. t clear
  9208. : clear
  9209. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9210. t end
  9211. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9212. : end' >>confcache
  9213. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9214. if test -w $cache_file; then
  9215. test "x$cache_file" != "x/dev/null"
  9216. cat confcache >$cache_file
  9217. else
  9218. echo "not updating unwritable cache $cache_file"
  9219. fi
  9220. fi
  9221. rm -f confcache
  9222. for ac_func in strcasecmp strncasecmp vsnprintf
  9223. do
  9224. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9225. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9226. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9227. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9228. echo $ECHO_N "(cached) $ECHO_C" >&6
  9229. else
  9230. cat >conftest.$ac_ext <<_ACEOF
  9231. /* confdefs.h. */
  9232. _ACEOF
  9233. cat confdefs.h >>conftest.$ac_ext
  9234. cat >>conftest.$ac_ext <<_ACEOF
  9235. /* end confdefs.h. */
  9236. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9237. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9238. #define $ac_func innocuous_$ac_func
  9239. /* System header to define __stub macros and hopefully few prototypes,
  9240. which can conflict with char $ac_func (); below.
  9241. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9242. <limits.h> exists even on freestanding compilers. */
  9243. #ifdef __STDC__
  9244. # include <limits.h>
  9245. #else
  9246. # include <assert.h>
  9247. #endif
  9248. #undef $ac_func
  9249. /* Override any gcc2 internal prototype to avoid an error. */
  9250. #ifdef __cplusplus
  9251. extern "C"
  9252. {
  9253. #endif
  9254. /* We use char because int might match the return type of a gcc2
  9255. builtin and then its argument prototype would still apply. */
  9256. char $ac_func ();
  9257. /* The GNU C library defines this for functions which it implements
  9258. to always fail with ENOSYS. Some functions are actually named
  9259. something starting with __ and the normal name is an alias. */
  9260. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9261. choke me
  9262. #else
  9263. char (*f) () = $ac_func;
  9264. #endif
  9265. #ifdef __cplusplus
  9266. }
  9267. #endif
  9268. int
  9269. main ()
  9270. {
  9271. return f != $ac_func;
  9272. ;
  9273. return 0;
  9274. }
  9275. _ACEOF
  9276. rm -f conftest.$ac_objext conftest$ac_exeext
  9277. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9278. (eval $ac_link) 2>conftest.er1
  9279. ac_status=$?
  9280. grep -v '^ *+' conftest.er1 >conftest.err
  9281. rm -f conftest.er1
  9282. cat conftest.err >&5
  9283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9284. (exit $ac_status); } &&
  9285. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9287. (eval $ac_try) 2>&5
  9288. ac_status=$?
  9289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9290. (exit $ac_status); }; } &&
  9291. { ac_try='test -s conftest$ac_exeext'
  9292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9293. (eval $ac_try) 2>&5
  9294. ac_status=$?
  9295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9296. (exit $ac_status); }; }; then
  9297. eval "$as_ac_var=yes"
  9298. else
  9299. echo "$as_me: failed program was:" >&5
  9300. sed 's/^/| /' conftest.$ac_ext >&5
  9301. eval "$as_ac_var=no"
  9302. fi
  9303. rm -f conftest.err conftest.$ac_objext \
  9304. conftest$ac_exeext conftest.$ac_ext
  9305. fi
  9306. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9307. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9308. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9309. cat >>confdefs.h <<_ACEOF
  9310. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9311. _ACEOF
  9312. fi
  9313. done
  9314. #autoscan suggested this....
  9315. #These are recommended by autoscan, but no code supports it currently
  9316. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  9317. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  9318. for ac_func in vsprintf
  9319. do
  9320. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9321. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9322. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9323. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9324. echo $ECHO_N "(cached) $ECHO_C" >&6
  9325. else
  9326. cat >conftest.$ac_ext <<_ACEOF
  9327. /* confdefs.h. */
  9328. _ACEOF
  9329. cat confdefs.h >>conftest.$ac_ext
  9330. cat >>conftest.$ac_ext <<_ACEOF
  9331. /* end confdefs.h. */
  9332. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9333. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9334. #define $ac_func innocuous_$ac_func
  9335. /* System header to define __stub macros and hopefully few prototypes,
  9336. which can conflict with char $ac_func (); below.
  9337. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9338. <limits.h> exists even on freestanding compilers. */
  9339. #ifdef __STDC__
  9340. # include <limits.h>
  9341. #else
  9342. # include <assert.h>
  9343. #endif
  9344. #undef $ac_func
  9345. /* Override any gcc2 internal prototype to avoid an error. */
  9346. #ifdef __cplusplus
  9347. extern "C"
  9348. {
  9349. #endif
  9350. /* We use char because int might match the return type of a gcc2
  9351. builtin and then its argument prototype would still apply. */
  9352. char $ac_func ();
  9353. /* The GNU C library defines this for functions which it implements
  9354. to always fail with ENOSYS. Some functions are actually named
  9355. something starting with __ and the normal name is an alias. */
  9356. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9357. choke me
  9358. #else
  9359. char (*f) () = $ac_func;
  9360. #endif
  9361. #ifdef __cplusplus
  9362. }
  9363. #endif
  9364. int
  9365. main ()
  9366. {
  9367. return f != $ac_func;
  9368. ;
  9369. return 0;
  9370. }
  9371. _ACEOF
  9372. rm -f conftest.$ac_objext conftest$ac_exeext
  9373. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9374. (eval $ac_link) 2>conftest.er1
  9375. ac_status=$?
  9376. grep -v '^ *+' conftest.er1 >conftest.err
  9377. rm -f conftest.er1
  9378. cat conftest.err >&5
  9379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9380. (exit $ac_status); } &&
  9381. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9383. (eval $ac_try) 2>&5
  9384. ac_status=$?
  9385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9386. (exit $ac_status); }; } &&
  9387. { ac_try='test -s conftest$ac_exeext'
  9388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9389. (eval $ac_try) 2>&5
  9390. ac_status=$?
  9391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9392. (exit $ac_status); }; }; then
  9393. eval "$as_ac_var=yes"
  9394. else
  9395. echo "$as_me: failed program was:" >&5
  9396. sed 's/^/| /' conftest.$ac_ext >&5
  9397. eval "$as_ac_var=no"
  9398. fi
  9399. rm -f conftest.err conftest.$ac_objext \
  9400. conftest$ac_exeext conftest.$ac_ext
  9401. fi
  9402. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9403. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9404. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9405. cat >>confdefs.h <<_ACEOF
  9406. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9407. _ACEOF
  9408. fi
  9409. done
  9410. if test "$ac_cv_func_vsprintf" = "no"
  9411. then
  9412. cat << 'EOF' >&2
  9413. configure: error:
  9414. Your system does not have the sprintf/vsprintf libraries.
  9415. These are required to compile almost anything. Sorry.
  9416. EOF
  9417. exit 1
  9418. fi
  9419. for ac_func in uname
  9420. do
  9421. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9422. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9423. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9424. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9425. echo $ECHO_N "(cached) $ECHO_C" >&6
  9426. else
  9427. cat >conftest.$ac_ext <<_ACEOF
  9428. /* confdefs.h. */
  9429. _ACEOF
  9430. cat confdefs.h >>conftest.$ac_ext
  9431. cat >>conftest.$ac_ext <<_ACEOF
  9432. /* end confdefs.h. */
  9433. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9434. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9435. #define $ac_func innocuous_$ac_func
  9436. /* System header to define __stub macros and hopefully few prototypes,
  9437. which can conflict with char $ac_func (); below.
  9438. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9439. <limits.h> exists even on freestanding compilers. */
  9440. #ifdef __STDC__
  9441. # include <limits.h>
  9442. #else
  9443. # include <assert.h>
  9444. #endif
  9445. #undef $ac_func
  9446. /* Override any gcc2 internal prototype to avoid an error. */
  9447. #ifdef __cplusplus
  9448. extern "C"
  9449. {
  9450. #endif
  9451. /* We use char because int might match the return type of a gcc2
  9452. builtin and then its argument prototype would still apply. */
  9453. char $ac_func ();
  9454. /* The GNU C library defines this for functions which it implements
  9455. to always fail with ENOSYS. Some functions are actually named
  9456. something starting with __ and the normal name is an alias. */
  9457. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9458. choke me
  9459. #else
  9460. char (*f) () = $ac_func;
  9461. #endif
  9462. #ifdef __cplusplus
  9463. }
  9464. #endif
  9465. int
  9466. main ()
  9467. {
  9468. return f != $ac_func;
  9469. ;
  9470. return 0;
  9471. }
  9472. _ACEOF
  9473. rm -f conftest.$ac_objext conftest$ac_exeext
  9474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9475. (eval $ac_link) 2>conftest.er1
  9476. ac_status=$?
  9477. grep -v '^ *+' conftest.er1 >conftest.err
  9478. rm -f conftest.er1
  9479. cat conftest.err >&5
  9480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9481. (exit $ac_status); } &&
  9482. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9484. (eval $ac_try) 2>&5
  9485. ac_status=$?
  9486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9487. (exit $ac_status); }; } &&
  9488. { ac_try='test -s conftest$ac_exeext'
  9489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9490. (eval $ac_try) 2>&5
  9491. ac_status=$?
  9492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9493. (exit $ac_status); }; }; then
  9494. eval "$as_ac_var=yes"
  9495. else
  9496. echo "$as_me: failed program was:" >&5
  9497. sed 's/^/| /' conftest.$ac_ext >&5
  9498. eval "$as_ac_var=no"
  9499. fi
  9500. rm -f conftest.err conftest.$ac_objext \
  9501. conftest$ac_exeext conftest.$ac_ext
  9502. fi
  9503. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9504. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9505. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9506. cat >>confdefs.h <<_ACEOF
  9507. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9508. _ACEOF
  9509. fi
  9510. done
  9511. if test "$ac_cv_func_uname" = "no"
  9512. then
  9513. cat << 'EOF' >&2
  9514. configure: error:
  9515. Your system does not have the uname() function.
  9516. This is required for the botpack.
  9517. EOF
  9518. exit 1
  9519. fi
  9520. # Make sure we have stdc headers, since we can't compile without them
  9521. if test "$ac_cv_header_stdc" = "no"
  9522. then
  9523. cat << 'EOF' >&2
  9524. configure: error:
  9525. Your system must support ANSI C Header files.
  9526. These are required for the language support. Sorry.
  9527. EOF
  9528. exit 1
  9529. fi
  9530. #checkpoint
  9531. cat >confcache <<\_ACEOF
  9532. # This file is a shell script that caches the results of configure
  9533. # tests run on this system so they can be shared between configure
  9534. # scripts and configure runs, see configure's option --config-cache.
  9535. # It is not useful on other systems. If it contains results you don't
  9536. # want to keep, you may remove or edit it.
  9537. #
  9538. # config.status only pays attention to the cache file if you give it
  9539. # the --recheck option to rerun configure.
  9540. #
  9541. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9542. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9543. # following values.
  9544. _ACEOF
  9545. # The following way of writing the cache mishandles newlines in values,
  9546. # but we know of no workaround that is simple, portable, and efficient.
  9547. # So, don't put newlines in cache variables' values.
  9548. # Ultrix sh set writes to stderr and can't be redirected directly,
  9549. # and sets the high bit in the cache file unless we assign to the vars.
  9550. {
  9551. (set) 2>&1 |
  9552. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9553. *ac_space=\ *)
  9554. # `set' does not quote correctly, so add quotes (double-quote
  9555. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9556. sed -n \
  9557. "s/'/'\\\\''/g;
  9558. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9559. ;;
  9560. *)
  9561. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9562. sed -n \
  9563. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9564. ;;
  9565. esac;
  9566. } |
  9567. sed '
  9568. t clear
  9569. : clear
  9570. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9571. t end
  9572. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9573. : end' >>confcache
  9574. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9575. if test -w $cache_file; then
  9576. test "x$cache_file" != "x/dev/null"
  9577. cat confcache >$cache_file
  9578. else
  9579. echo "not updating unwritable cache $cache_file"
  9580. fi
  9581. fi
  9582. rm -f confcache
  9583. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  9584. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  9585. cat >>confdefs.h <<_ACEOF
  9586. #define EGG_VERSION $version_num
  9587. _ACEOF
  9588. #FIND_WRAPS
  9589. case "$srcdir" in
  9590. [\\/]* | ?:[\\/]*)
  9591. MOD_UPDIR=""
  9592. ;;
  9593. *)
  9594. MOD_UPDIR="../"
  9595. ;;
  9596. esac
  9597. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  9598. for mf in $files; do
  9599. # Strip MF so we end up with the name of the file.
  9600. # echo "MF: $mf"
  9601. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9602. dirpart=`(dirname "$mf") 2>/dev/null ||
  9603. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9604. X"$mf" : 'X\(//\)[^/]' \| \
  9605. X"$mf" : 'X\(//\)$' \| \
  9606. X"$mf" : 'X\(/\)' \| \
  9607. . : '\(.\)' 2>/dev/null ||
  9608. echo X"$mf" |
  9609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9610. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9611. /^X\(\/\/\)$/{ s//\1/; q; }
  9612. /^X\(\/\).*/{ s//\1/; q; }
  9613. s/.*/./; q'`
  9614. # echo "dirpart: $dirpart mf: $mf"
  9615. # rm -rf "$dirpart/.deps/"
  9616. rm -f "$dirpart/.deps/includes"
  9617. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  9618. for file in `sed -n -e '
  9619. /^OBJS = .*\\\\$/ {
  9620. s/^OBJS = //
  9621. :loop
  9622. s/\\\\$//
  9623. p
  9624. n
  9625. /\\\\$/ b loop
  9626. p
  9627. }
  9628. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  9629. do
  9630. base=`basename $file .o`
  9631. test -f "$dirpart/$base.c" || continue
  9632. if ! test -f "$dirpart/.deps/$base.Po"; then
  9633. echo '# dummy' > "$dirpart/.deps/$base.Po"
  9634. #Remove the .o file, because it needs to be recompiled for its dependancies.
  9635. if test -f "$dirpart/$base.o"; then
  9636. rm -f "$dirpart/$base.o"
  9637. fi
  9638. fi
  9639. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  9640. echo "_$base.c:" >> "$dirpart/.deps/includes"
  9641. done
  9642. done
  9643. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  9644. cat >confcache <<\_ACEOF
  9645. # This file is a shell script that caches the results of configure
  9646. # tests run on this system so they can be shared between configure
  9647. # scripts and configure runs, see configure's option --config-cache.
  9648. # It is not useful on other systems. If it contains results you don't
  9649. # want to keep, you may remove or edit it.
  9650. #
  9651. # config.status only pays attention to the cache file if you give it
  9652. # the --recheck option to rerun configure.
  9653. #
  9654. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9655. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9656. # following values.
  9657. _ACEOF
  9658. # The following way of writing the cache mishandles newlines in values,
  9659. # but we know of no workaround that is simple, portable, and efficient.
  9660. # So, don't put newlines in cache variables' values.
  9661. # Ultrix sh set writes to stderr and can't be redirected directly,
  9662. # and sets the high bit in the cache file unless we assign to the vars.
  9663. {
  9664. (set) 2>&1 |
  9665. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9666. *ac_space=\ *)
  9667. # `set' does not quote correctly, so add quotes (double-quote
  9668. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9669. sed -n \
  9670. "s/'/'\\\\''/g;
  9671. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9672. ;;
  9673. *)
  9674. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9675. sed -n \
  9676. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9677. ;;
  9678. esac;
  9679. } |
  9680. sed '
  9681. t clear
  9682. : clear
  9683. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9684. t end
  9685. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9686. : end' >>confcache
  9687. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9688. if test -w $cache_file; then
  9689. test "x$cache_file" != "x/dev/null"
  9690. cat confcache >$cache_file
  9691. else
  9692. echo "not updating unwritable cache $cache_file"
  9693. fi
  9694. fi
  9695. rm -f confcache
  9696. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9697. # Let make expand exec_prefix.
  9698. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9699. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9700. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9701. # trailing colons and then remove the whole line if VPATH becomes empty
  9702. # (actually we leave an empty line to preserve line numbers).
  9703. if test "x$srcdir" = x.; then
  9704. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9705. s/:*\$(srcdir):*/:/;
  9706. s/:*\${srcdir}:*/:/;
  9707. s/:*@srcdir@:*/:/;
  9708. s/^\([^=]*=[ ]*\):*/\1/;
  9709. s/:*$//;
  9710. s/^[^=]*=[ ]*$//;
  9711. }'
  9712. fi
  9713. DEFS=-DHAVE_CONFIG_H
  9714. ac_libobjs=
  9715. ac_ltlibobjs=
  9716. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9717. # 1. Remove the extension, and $U if already installed.
  9718. ac_i=`echo "$ac_i" |
  9719. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9720. # 2. Add them.
  9721. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9722. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9723. done
  9724. LIBOBJS=$ac_libobjs
  9725. LTLIBOBJS=$ac_ltlibobjs
  9726. : ${CONFIG_STATUS=./config.status}
  9727. ac_clean_files_save=$ac_clean_files
  9728. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9729. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9730. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9731. cat >$CONFIG_STATUS <<_ACEOF
  9732. #! $SHELL
  9733. # Generated by $as_me.
  9734. # Run this file to recreate the current configuration.
  9735. # Compiler output produced by configure, useful for debugging
  9736. # configure, is in config.log if it exists.
  9737. debug=false
  9738. ac_cs_recheck=false
  9739. ac_cs_silent=false
  9740. SHELL=\${CONFIG_SHELL-$SHELL}
  9741. _ACEOF
  9742. cat >>$CONFIG_STATUS <<\_ACEOF
  9743. ## --------------------- ##
  9744. ## M4sh Initialization. ##
  9745. ## --------------------- ##
  9746. # Be Bourne compatible
  9747. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9748. emulate sh
  9749. NULLCMD=:
  9750. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9751. # is contrary to our usage. Disable this feature.
  9752. alias -g '${1+"$@"}'='"$@"'
  9753. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9754. set -o posix
  9755. fi
  9756. DUALCASE=1; export DUALCASE # for MKS sh
  9757. # Support unset when possible.
  9758. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9759. as_unset=unset
  9760. else
  9761. as_unset=false
  9762. fi
  9763. # Work around bugs in pre-3.0 UWIN ksh.
  9764. $as_unset ENV MAIL MAILPATH
  9765. PS1='$ '
  9766. PS2='> '
  9767. PS4='+ '
  9768. # NLS nuisances.
  9769. for as_var in \
  9770. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9771. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9772. LC_TELEPHONE LC_TIME
  9773. do
  9774. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9775. eval $as_var=C; export $as_var
  9776. else
  9777. $as_unset $as_var
  9778. fi
  9779. done
  9780. # Required to use basename.
  9781. if expr a : '\(a\)' >/dev/null 2>&1; then
  9782. as_expr=expr
  9783. else
  9784. as_expr=false
  9785. fi
  9786. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9787. as_basename=basename
  9788. else
  9789. as_basename=false
  9790. fi
  9791. # Name of the executable.
  9792. as_me=`$as_basename "$0" ||
  9793. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9794. X"$0" : 'X\(//\)$' \| \
  9795. X"$0" : 'X\(/\)$' \| \
  9796. . : '\(.\)' 2>/dev/null ||
  9797. echo X/"$0" |
  9798. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9799. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9800. /^X\/\(\/\).*/{ s//\1/; q; }
  9801. s/.*/./; q'`
  9802. # PATH needs CR, and LINENO needs CR and PATH.
  9803. # Avoid depending upon Character Ranges.
  9804. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9805. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9806. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9807. as_cr_digits='0123456789'
  9808. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9809. # The user is always right.
  9810. if test "${PATH_SEPARATOR+set}" != set; then
  9811. echo "#! /bin/sh" >conf$$.sh
  9812. echo "exit 0" >>conf$$.sh
  9813. chmod +x conf$$.sh
  9814. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9815. PATH_SEPARATOR=';'
  9816. else
  9817. PATH_SEPARATOR=:
  9818. fi
  9819. rm -f conf$$.sh
  9820. fi
  9821. as_lineno_1=$LINENO
  9822. as_lineno_2=$LINENO
  9823. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9824. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9825. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9826. # Find who we are. Look in the path if we contain no path at all
  9827. # relative or not.
  9828. case $0 in
  9829. *[\\/]* ) as_myself=$0 ;;
  9830. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9831. for as_dir in $PATH
  9832. do
  9833. IFS=$as_save_IFS
  9834. test -z "$as_dir" && as_dir=.
  9835. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9836. done
  9837. ;;
  9838. esac
  9839. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9840. # in which case we are not to be found in the path.
  9841. if test "x$as_myself" = x; then
  9842. as_myself=$0
  9843. fi
  9844. if test ! -f "$as_myself"; then
  9845. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9846. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9847. { (exit 1); exit 1; }; }
  9848. fi
  9849. case $CONFIG_SHELL in
  9850. '')
  9851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9852. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9853. do
  9854. IFS=$as_save_IFS
  9855. test -z "$as_dir" && as_dir=.
  9856. for as_base in sh bash ksh sh5; do
  9857. case $as_dir in
  9858. /*)
  9859. if ("$as_dir/$as_base" -c '
  9860. as_lineno_1=$LINENO
  9861. as_lineno_2=$LINENO
  9862. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9863. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9864. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9865. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9866. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9867. CONFIG_SHELL=$as_dir/$as_base
  9868. export CONFIG_SHELL
  9869. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9870. fi;;
  9871. esac
  9872. done
  9873. done
  9874. ;;
  9875. esac
  9876. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9877. # uniformly replaced by the line number. The first 'sed' inserts a
  9878. # line-number line before each line; the second 'sed' does the real
  9879. # work. The second script uses 'N' to pair each line-number line
  9880. # with the numbered line, and appends trailing '-' during
  9881. # substitution so that $LINENO is not a special case at line end.
  9882. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9883. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9884. sed '=' <$as_myself |
  9885. sed '
  9886. N
  9887. s,$,-,
  9888. : loop
  9889. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9890. t loop
  9891. s,-$,,
  9892. s,^['$as_cr_digits']*\n,,
  9893. ' >$as_me.lineno &&
  9894. chmod +x $as_me.lineno ||
  9895. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9896. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9897. { (exit 1); exit 1; }; }
  9898. # Don't try to exec as it changes $[0], causing all sort of problems
  9899. # (the dirname of $[0] is not the place where we might find the
  9900. # original and so on. Autoconf is especially sensible to this).
  9901. . ./$as_me.lineno
  9902. # Exit status is that of the last command.
  9903. exit
  9904. }
  9905. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9906. *c*,-n*) ECHO_N= ECHO_C='
  9907. ' ECHO_T=' ' ;;
  9908. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9909. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9910. esac
  9911. if expr a : '\(a\)' >/dev/null 2>&1; then
  9912. as_expr=expr
  9913. else
  9914. as_expr=false
  9915. fi
  9916. rm -f conf$$ conf$$.exe conf$$.file
  9917. echo >conf$$.file
  9918. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9919. # We could just check for DJGPP; but this test a) works b) is more generic
  9920. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9921. if test -f conf$$.exe; then
  9922. # Don't use ln at all; we don't have any links
  9923. as_ln_s='cp -p'
  9924. else
  9925. as_ln_s='ln -s'
  9926. fi
  9927. elif ln conf$$.file conf$$ 2>/dev/null; then
  9928. as_ln_s=ln
  9929. else
  9930. as_ln_s='cp -p'
  9931. fi
  9932. rm -f conf$$ conf$$.exe conf$$.file
  9933. if mkdir -p . 2>/dev/null; then
  9934. as_mkdir_p=:
  9935. else
  9936. test -d ./-p && rmdir ./-p
  9937. as_mkdir_p=false
  9938. fi
  9939. as_executable_p="test -f"
  9940. # Sed expression to map a string onto a valid CPP name.
  9941. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9942. # Sed expression to map a string onto a valid variable name.
  9943. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9944. # IFS
  9945. # We need space, tab and new line, in precisely that order.
  9946. as_nl='
  9947. '
  9948. IFS=" $as_nl"
  9949. # CDPATH.
  9950. $as_unset CDPATH
  9951. exec 6>&1
  9952. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9953. # report actual input values of CONFIG_FILES etc. instead of their
  9954. # values after options handling. Logging --version etc. is OK.
  9955. exec 5>>config.log
  9956. {
  9957. echo
  9958. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9959. ## Running $as_me. ##
  9960. _ASBOX
  9961. } >&5
  9962. cat >&5 <<_CSEOF
  9963. This file was extended by $as_me, which was
  9964. generated by GNU Autoconf 2.59. Invocation command line was
  9965. CONFIG_FILES = $CONFIG_FILES
  9966. CONFIG_HEADERS = $CONFIG_HEADERS
  9967. CONFIG_LINKS = $CONFIG_LINKS
  9968. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9969. $ $0 $@
  9970. _CSEOF
  9971. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9972. echo >&5
  9973. _ACEOF
  9974. # Files that config.status was made for.
  9975. if test -n "$ac_config_files"; then
  9976. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9977. fi
  9978. if test -n "$ac_config_headers"; then
  9979. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9980. fi
  9981. if test -n "$ac_config_links"; then
  9982. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9983. fi
  9984. if test -n "$ac_config_commands"; then
  9985. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9986. fi
  9987. cat >>$CONFIG_STATUS <<\_ACEOF
  9988. ac_cs_usage="\
  9989. \`$as_me' instantiates files from templates according to the
  9990. current configuration.
  9991. Usage: $0 [OPTIONS] [FILE]...
  9992. -h, --help print this help, then exit
  9993. -V, --version print version number, then exit
  9994. -q, --quiet do not print progress messages
  9995. -d, --debug don't remove temporary files
  9996. --recheck update $as_me by reconfiguring in the same conditions
  9997. --file=FILE[:TEMPLATE]
  9998. instantiate the configuration file FILE
  9999. --header=FILE[:TEMPLATE]
  10000. instantiate the configuration header FILE
  10001. Configuration files:
  10002. $config_files
  10003. Configuration headers:
  10004. $config_headers
  10005. Report bugs to <bug-autoconf@gnu.org>."
  10006. _ACEOF
  10007. cat >>$CONFIG_STATUS <<_ACEOF
  10008. ac_cs_version="\\
  10009. config.status
  10010. configured by $0, generated by GNU Autoconf 2.59,
  10011. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10012. Copyright (C) 2003 Free Software Foundation, Inc.
  10013. This config.status script is free software; the Free Software Foundation
  10014. gives unlimited permission to copy, distribute and modify it."
  10015. srcdir=$srcdir
  10016. _ACEOF
  10017. cat >>$CONFIG_STATUS <<\_ACEOF
  10018. # If no file are specified by the user, then we need to provide default
  10019. # value. By we need to know if files were specified by the user.
  10020. ac_need_defaults=:
  10021. while test $# != 0
  10022. do
  10023. case $1 in
  10024. --*=*)
  10025. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10026. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10027. ac_shift=:
  10028. ;;
  10029. -*)
  10030. ac_option=$1
  10031. ac_optarg=$2
  10032. ac_shift=shift
  10033. ;;
  10034. *) # This is not an option, so the user has probably given explicit
  10035. # arguments.
  10036. ac_option=$1
  10037. ac_need_defaults=false;;
  10038. esac
  10039. case $ac_option in
  10040. # Handling of the options.
  10041. _ACEOF
  10042. cat >>$CONFIG_STATUS <<\_ACEOF
  10043. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10044. ac_cs_recheck=: ;;
  10045. --version | --vers* | -V )
  10046. echo "$ac_cs_version"; exit 0 ;;
  10047. --he | --h)
  10048. # Conflict between --help and --header
  10049. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10050. Try \`$0 --help' for more information." >&5
  10051. echo "$as_me: error: ambiguous option: $1
  10052. Try \`$0 --help' for more information." >&2;}
  10053. { (exit 1); exit 1; }; };;
  10054. --help | --hel | -h )
  10055. echo "$ac_cs_usage"; exit 0 ;;
  10056. --debug | --d* | -d )
  10057. debug=: ;;
  10058. --file | --fil | --fi | --f )
  10059. $ac_shift
  10060. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10061. ac_need_defaults=false;;
  10062. --header | --heade | --head | --hea )
  10063. $ac_shift
  10064. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10065. ac_need_defaults=false;;
  10066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10067. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10068. ac_cs_silent=: ;;
  10069. # This is an error.
  10070. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10071. Try \`$0 --help' for more information." >&5
  10072. echo "$as_me: error: unrecognized option: $1
  10073. Try \`$0 --help' for more information." >&2;}
  10074. { (exit 1); exit 1; }; } ;;
  10075. *) ac_config_targets="$ac_config_targets $1" ;;
  10076. esac
  10077. shift
  10078. done
  10079. ac_configure_extra_args=
  10080. if $ac_cs_silent; then
  10081. exec 6>/dev/null
  10082. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10083. fi
  10084. _ACEOF
  10085. cat >>$CONFIG_STATUS <<_ACEOF
  10086. if \$ac_cs_recheck; then
  10087. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10088. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10089. fi
  10090. _ACEOF
  10091. cat >>$CONFIG_STATUS <<\_ACEOF
  10092. for ac_config_target in $ac_config_targets
  10093. do
  10094. case "$ac_config_target" in
  10095. # Handling of arguments.
  10096. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10097. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10098. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10099. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10100. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10101. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10102. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10103. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10104. { (exit 1); exit 1; }; };;
  10105. esac
  10106. done
  10107. # If the user did not use the arguments to specify the items to instantiate,
  10108. # then the envvar interface is used. Set only those that are not.
  10109. # We use the long form for the default assignment because of an extremely
  10110. # bizarre bug on SunOS 4.1.3.
  10111. if $ac_need_defaults; then
  10112. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10113. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10114. fi
  10115. # Have a temporary directory for convenience. Make it in the build tree
  10116. # simply because there is no reason to put it here, and in addition,
  10117. # creating and moving files from /tmp can sometimes cause problems.
  10118. # Create a temporary directory, and hook for its removal unless debugging.
  10119. $debug ||
  10120. {
  10121. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10122. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10123. }
  10124. # Create a (secure) tmp directory for tmp files.
  10125. {
  10126. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10127. test -n "$tmp" && test -d "$tmp"
  10128. } ||
  10129. {
  10130. tmp=./confstat$$-$RANDOM
  10131. (umask 077 && mkdir $tmp)
  10132. } ||
  10133. {
  10134. echo "$me: cannot create a temporary directory in ." >&2
  10135. { (exit 1); exit 1; }
  10136. }
  10137. _ACEOF
  10138. cat >>$CONFIG_STATUS <<_ACEOF
  10139. #
  10140. # CONFIG_FILES section.
  10141. #
  10142. # No need to generate the scripts if there are no CONFIG_FILES.
  10143. # This happens for instance when ./config.status config.h
  10144. if test -n "\$CONFIG_FILES"; then
  10145. # Protect against being on the right side of a sed subst in config.status.
  10146. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10147. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10148. s,@SHELL@,$SHELL,;t t
  10149. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10150. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10151. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10152. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10153. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10154. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10155. s,@exec_prefix@,$exec_prefix,;t t
  10156. s,@prefix@,$prefix,;t t
  10157. s,@program_transform_name@,$program_transform_name,;t t
  10158. s,@bindir@,$bindir,;t t
  10159. s,@sbindir@,$sbindir,;t t
  10160. s,@libexecdir@,$libexecdir,;t t
  10161. s,@datadir@,$datadir,;t t
  10162. s,@sysconfdir@,$sysconfdir,;t t
  10163. s,@sharedstatedir@,$sharedstatedir,;t t
  10164. s,@localstatedir@,$localstatedir,;t t
  10165. s,@libdir@,$libdir,;t t
  10166. s,@includedir@,$includedir,;t t
  10167. s,@oldincludedir@,$oldincludedir,;t t
  10168. s,@infodir@,$infodir,;t t
  10169. s,@mandir@,$mandir,;t t
  10170. s,@build_alias@,$build_alias,;t t
  10171. s,@host_alias@,$host_alias,;t t
  10172. s,@target_alias@,$target_alias,;t t
  10173. s,@DEFS@,$DEFS,;t t
  10174. s,@ECHO_C@,$ECHO_C,;t t
  10175. s,@ECHO_N@,$ECHO_N,;t t
  10176. s,@ECHO_T@,$ECHO_T,;t t
  10177. s,@LIBS@,$LIBS,;t t
  10178. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  10179. s,@CXX@,$CXX,;t t
  10180. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10181. s,@LDFLAGS@,$LDFLAGS,;t t
  10182. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10183. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10184. s,@EXEEXT@,$EXEEXT,;t t
  10185. s,@OBJEXT@,$OBJEXT,;t t
  10186. s,@CXXCPP@,$CXXCPP,;t t
  10187. s,@EGREP@,$EGREP,;t t
  10188. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10189. s,@GCC3@,$GCC3,;t t
  10190. s,@SET_MAKE@,$SET_MAKE,;t t
  10191. s,@HEAD_1@,$HEAD_1,;t t
  10192. s,@AWK@,$AWK,;t t
  10193. s,@BASENAME@,$BASENAME,;t t
  10194. s,@OBJCOPY@,$OBJCOPY,;t t
  10195. s,@STRIP@,$STRIP,;t t
  10196. s,@UNAME@,$UNAME,;t t
  10197. s,@DISTCC@,$DISTCC,;t t
  10198. s,@CCDEBUG@,$CCDEBUG,;t t
  10199. s,@ZLIB@,$ZLIB,;t t
  10200. s,@LIBOBJS@,$LIBOBJS,;t t
  10201. s,@VERSION@,$VERSION,;t t
  10202. s,@NUMVER@,$NUMVER,;t t
  10203. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  10204. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10205. CEOF
  10206. _ACEOF
  10207. cat >>$CONFIG_STATUS <<\_ACEOF
  10208. # Split the substitutions into bite-sized pieces for seds with
  10209. # small command number limits, like on Digital OSF/1 and HP-UX.
  10210. ac_max_sed_lines=48
  10211. ac_sed_frag=1 # Number of current file.
  10212. ac_beg=1 # First line for current file.
  10213. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10214. ac_more_lines=:
  10215. ac_sed_cmds=
  10216. while $ac_more_lines; do
  10217. if test $ac_beg -gt 1; then
  10218. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10219. else
  10220. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10221. fi
  10222. if test ! -s $tmp/subs.frag; then
  10223. ac_more_lines=false
  10224. else
  10225. # The purpose of the label and of the branching condition is to
  10226. # speed up the sed processing (if there are no `@' at all, there
  10227. # is no need to browse any of the substitutions).
  10228. # These are the two extra sed commands mentioned above.
  10229. (echo ':t
  10230. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10231. if test -z "$ac_sed_cmds"; then
  10232. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10233. else
  10234. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10235. fi
  10236. ac_sed_frag=`expr $ac_sed_frag + 1`
  10237. ac_beg=$ac_end
  10238. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10239. fi
  10240. done
  10241. if test -z "$ac_sed_cmds"; then
  10242. ac_sed_cmds=cat
  10243. fi
  10244. fi # test -n "$CONFIG_FILES"
  10245. _ACEOF
  10246. cat >>$CONFIG_STATUS <<\_ACEOF
  10247. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10248. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10249. case $ac_file in
  10250. - | *:- | *:-:* ) # input from stdin
  10251. cat >$tmp/stdin
  10252. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10253. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10254. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10255. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10256. * ) ac_file_in=$ac_file.in ;;
  10257. esac
  10258. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10259. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10260. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10261. X"$ac_file" : 'X\(//\)[^/]' \| \
  10262. X"$ac_file" : 'X\(//\)$' \| \
  10263. X"$ac_file" : 'X\(/\)' \| \
  10264. . : '\(.\)' 2>/dev/null ||
  10265. echo X"$ac_file" |
  10266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10267. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10268. /^X\(\/\/\)$/{ s//\1/; q; }
  10269. /^X\(\/\).*/{ s//\1/; q; }
  10270. s/.*/./; q'`
  10271. { if $as_mkdir_p; then
  10272. mkdir -p "$ac_dir"
  10273. else
  10274. as_dir="$ac_dir"
  10275. as_dirs=
  10276. while test ! -d "$as_dir"; do
  10277. as_dirs="$as_dir $as_dirs"
  10278. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10280. X"$as_dir" : 'X\(//\)[^/]' \| \
  10281. X"$as_dir" : 'X\(//\)$' \| \
  10282. X"$as_dir" : 'X\(/\)' \| \
  10283. . : '\(.\)' 2>/dev/null ||
  10284. echo X"$as_dir" |
  10285. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10286. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10287. /^X\(\/\/\)$/{ s//\1/; q; }
  10288. /^X\(\/\).*/{ s//\1/; q; }
  10289. s/.*/./; q'`
  10290. done
  10291. test ! -n "$as_dirs" || mkdir $as_dirs
  10292. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10293. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10294. { (exit 1); exit 1; }; }; }
  10295. ac_builddir=.
  10296. if test "$ac_dir" != .; then
  10297. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10298. # A "../" for each directory in $ac_dir_suffix.
  10299. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10300. else
  10301. ac_dir_suffix= ac_top_builddir=
  10302. fi
  10303. case $srcdir in
  10304. .) # No --srcdir option. We are building in place.
  10305. ac_srcdir=.
  10306. if test -z "$ac_top_builddir"; then
  10307. ac_top_srcdir=.
  10308. else
  10309. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10310. fi ;;
  10311. [\\/]* | ?:[\\/]* ) # Absolute path.
  10312. ac_srcdir=$srcdir$ac_dir_suffix;
  10313. ac_top_srcdir=$srcdir ;;
  10314. *) # Relative path.
  10315. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10316. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10317. esac
  10318. # Do not use `cd foo && pwd` to compute absolute paths, because
  10319. # the directories may not exist.
  10320. case `pwd` in
  10321. .) ac_abs_builddir="$ac_dir";;
  10322. *)
  10323. case "$ac_dir" in
  10324. .) ac_abs_builddir=`pwd`;;
  10325. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10326. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10327. esac;;
  10328. esac
  10329. case $ac_abs_builddir in
  10330. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10331. *)
  10332. case ${ac_top_builddir}. in
  10333. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10334. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10335. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10336. esac;;
  10337. esac
  10338. case $ac_abs_builddir in
  10339. .) ac_abs_srcdir=$ac_srcdir;;
  10340. *)
  10341. case $ac_srcdir in
  10342. .) ac_abs_srcdir=$ac_abs_builddir;;
  10343. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10344. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10345. esac;;
  10346. esac
  10347. case $ac_abs_builddir in
  10348. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10349. *)
  10350. case $ac_top_srcdir in
  10351. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10352. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10353. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10354. esac;;
  10355. esac
  10356. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10357. # use $as_me), people would be surprised to read:
  10358. # /* config.h. Generated by config.status. */
  10359. if test x"$ac_file" = x-; then
  10360. configure_input=
  10361. else
  10362. configure_input="$ac_file. "
  10363. fi
  10364. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10365. sed 's,.*/,,'` by configure."
  10366. # First look for the input files in the build tree, otherwise in the
  10367. # src tree.
  10368. ac_file_inputs=`IFS=:
  10369. for f in $ac_file_in; do
  10370. case $f in
  10371. -) echo $tmp/stdin ;;
  10372. [\\/$]*)
  10373. # Absolute (can't be DOS-style, as IFS=:)
  10374. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10375. echo "$as_me: error: cannot find input file: $f" >&2;}
  10376. { (exit 1); exit 1; }; }
  10377. echo "$f";;
  10378. *) # Relative
  10379. if test -f "$f"; then
  10380. # Build tree
  10381. echo "$f"
  10382. elif test -f "$srcdir/$f"; then
  10383. # Source tree
  10384. echo "$srcdir/$f"
  10385. else
  10386. # /dev/null tree
  10387. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10388. echo "$as_me: error: cannot find input file: $f" >&2;}
  10389. { (exit 1); exit 1; }; }
  10390. fi;;
  10391. esac
  10392. done` || { (exit 1); exit 1; }
  10393. if test x"$ac_file" != x-; then
  10394. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10395. echo "$as_me: creating $ac_file" >&6;}
  10396. rm -f "$ac_file"
  10397. fi
  10398. _ACEOF
  10399. cat >>$CONFIG_STATUS <<_ACEOF
  10400. sed "$ac_vpsub
  10401. $extrasub
  10402. _ACEOF
  10403. cat >>$CONFIG_STATUS <<\_ACEOF
  10404. :t
  10405. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10406. s,@configure_input@,$configure_input,;t t
  10407. s,@srcdir@,$ac_srcdir,;t t
  10408. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10409. s,@top_srcdir@,$ac_top_srcdir,;t t
  10410. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10411. s,@builddir@,$ac_builddir,;t t
  10412. s,@abs_builddir@,$ac_abs_builddir,;t t
  10413. s,@top_builddir@,$ac_top_builddir,;t t
  10414. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10415. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10416. rm -f $tmp/stdin
  10417. if test x"$ac_file" != x-; then
  10418. mv $tmp/out $ac_file
  10419. else
  10420. cat $tmp/out
  10421. rm -f $tmp/out
  10422. fi
  10423. done
  10424. _ACEOF
  10425. cat >>$CONFIG_STATUS <<\_ACEOF
  10426. #
  10427. # CONFIG_HEADER section.
  10428. #
  10429. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10430. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10431. #
  10432. # ac_d sets the value in "#define NAME VALUE" lines.
  10433. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10434. ac_dB='[ ].*$,\1#\2'
  10435. ac_dC=' '
  10436. ac_dD=',;t'
  10437. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10438. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10439. ac_uB='$,\1#\2define\3'
  10440. ac_uC=' '
  10441. ac_uD=',;t'
  10442. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10443. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10444. case $ac_file in
  10445. - | *:- | *:-:* ) # input from stdin
  10446. cat >$tmp/stdin
  10447. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10448. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10449. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10450. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10451. * ) ac_file_in=$ac_file.in ;;
  10452. esac
  10453. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10454. echo "$as_me: creating $ac_file" >&6;}
  10455. # First look for the input files in the build tree, otherwise in the
  10456. # src tree.
  10457. ac_file_inputs=`IFS=:
  10458. for f in $ac_file_in; do
  10459. case $f in
  10460. -) echo $tmp/stdin ;;
  10461. [\\/$]*)
  10462. # Absolute (can't be DOS-style, as IFS=:)
  10463. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10464. echo "$as_me: error: cannot find input file: $f" >&2;}
  10465. { (exit 1); exit 1; }; }
  10466. # Do quote $f, to prevent DOS paths from being IFS'd.
  10467. echo "$f";;
  10468. *) # Relative
  10469. if test -f "$f"; then
  10470. # Build tree
  10471. echo "$f"
  10472. elif test -f "$srcdir/$f"; then
  10473. # Source tree
  10474. echo "$srcdir/$f"
  10475. else
  10476. # /dev/null tree
  10477. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10478. echo "$as_me: error: cannot find input file: $f" >&2;}
  10479. { (exit 1); exit 1; }; }
  10480. fi;;
  10481. esac
  10482. done` || { (exit 1); exit 1; }
  10483. # Remove the trailing spaces.
  10484. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10485. _ACEOF
  10486. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10487. # `conftest.undefs', that substitutes the proper values into
  10488. # config.h.in to produce config.h. The first handles `#define'
  10489. # templates, and the second `#undef' templates.
  10490. # And first: Protect against being on the right side of a sed subst in
  10491. # config.status. Protect against being in an unquoted here document
  10492. # in config.status.
  10493. rm -f conftest.defines conftest.undefs
  10494. # Using a here document instead of a string reduces the quoting nightmare.
  10495. # Putting comments in sed scripts is not portable.
  10496. #
  10497. # `end' is used to avoid that the second main sed command (meant for
  10498. # 0-ary CPP macros) applies to n-ary macro definitions.
  10499. # See the Autoconf documentation for `clear'.
  10500. cat >confdef2sed.sed <<\_ACEOF
  10501. s/[\\&,]/\\&/g
  10502. s,[\\$`],\\&,g
  10503. t clear
  10504. : clear
  10505. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10506. t end
  10507. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10508. : end
  10509. _ACEOF
  10510. # If some macros were called several times there might be several times
  10511. # the same #defines, which is useless. Nevertheless, we may not want to
  10512. # sort them, since we want the *last* AC-DEFINE to be honored.
  10513. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10514. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10515. rm -f confdef2sed.sed
  10516. # This sed command replaces #undef with comments. This is necessary, for
  10517. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10518. # on some systems where configure will not decide to define it.
  10519. cat >>conftest.undefs <<\_ACEOF
  10520. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10521. _ACEOF
  10522. # Break up conftest.defines because some shells have a limit on the size
  10523. # of here documents, and old seds have small limits too (100 cmds).
  10524. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10525. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10526. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10527. echo ' :' >>$CONFIG_STATUS
  10528. rm -f conftest.tail
  10529. while grep . conftest.defines >/dev/null
  10530. do
  10531. # Write a limited-size here document to $tmp/defines.sed.
  10532. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10533. # Speed up: don't consider the non `#define' lines.
  10534. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10535. # Work around the forget-to-reset-the-flag bug.
  10536. echo 't clr' >>$CONFIG_STATUS
  10537. echo ': clr' >>$CONFIG_STATUS
  10538. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10539. echo 'CEOF
  10540. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10541. rm -f $tmp/in
  10542. mv $tmp/out $tmp/in
  10543. ' >>$CONFIG_STATUS
  10544. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10545. rm -f conftest.defines
  10546. mv conftest.tail conftest.defines
  10547. done
  10548. rm -f conftest.defines
  10549. echo ' fi # grep' >>$CONFIG_STATUS
  10550. echo >>$CONFIG_STATUS
  10551. # Break up conftest.undefs because some shells have a limit on the size
  10552. # of here documents, and old seds have small limits too (100 cmds).
  10553. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10554. rm -f conftest.tail
  10555. while grep . conftest.undefs >/dev/null
  10556. do
  10557. # Write a limited-size here document to $tmp/undefs.sed.
  10558. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10559. # Speed up: don't consider the non `#undef'
  10560. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10561. # Work around the forget-to-reset-the-flag bug.
  10562. echo 't clr' >>$CONFIG_STATUS
  10563. echo ': clr' >>$CONFIG_STATUS
  10564. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10565. echo 'CEOF
  10566. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10567. rm -f $tmp/in
  10568. mv $tmp/out $tmp/in
  10569. ' >>$CONFIG_STATUS
  10570. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10571. rm -f conftest.undefs
  10572. mv conftest.tail conftest.undefs
  10573. done
  10574. rm -f conftest.undefs
  10575. cat >>$CONFIG_STATUS <<\_ACEOF
  10576. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10577. # use $as_me), people would be surprised to read:
  10578. # /* config.h. Generated by config.status. */
  10579. if test x"$ac_file" = x-; then
  10580. echo "/* Generated by configure. */" >$tmp/config.h
  10581. else
  10582. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10583. fi
  10584. cat $tmp/in >>$tmp/config.h
  10585. rm -f $tmp/in
  10586. if test x"$ac_file" != x-; then
  10587. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10588. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10589. echo "$as_me: $ac_file is unchanged" >&6;}
  10590. else
  10591. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10592. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10593. X"$ac_file" : 'X\(//\)[^/]' \| \
  10594. X"$ac_file" : 'X\(//\)$' \| \
  10595. X"$ac_file" : 'X\(/\)' \| \
  10596. . : '\(.\)' 2>/dev/null ||
  10597. echo X"$ac_file" |
  10598. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10599. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10600. /^X\(\/\/\)$/{ s//\1/; q; }
  10601. /^X\(\/\).*/{ s//\1/; q; }
  10602. s/.*/./; q'`
  10603. { if $as_mkdir_p; then
  10604. mkdir -p "$ac_dir"
  10605. else
  10606. as_dir="$ac_dir"
  10607. as_dirs=
  10608. while test ! -d "$as_dir"; do
  10609. as_dirs="$as_dir $as_dirs"
  10610. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10611. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10612. X"$as_dir" : 'X\(//\)[^/]' \| \
  10613. X"$as_dir" : 'X\(//\)$' \| \
  10614. X"$as_dir" : 'X\(/\)' \| \
  10615. . : '\(.\)' 2>/dev/null ||
  10616. echo X"$as_dir" |
  10617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10618. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10619. /^X\(\/\/\)$/{ s//\1/; q; }
  10620. /^X\(\/\).*/{ s//\1/; q; }
  10621. s/.*/./; q'`
  10622. done
  10623. test ! -n "$as_dirs" || mkdir $as_dirs
  10624. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10625. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10626. { (exit 1); exit 1; }; }; }
  10627. rm -f $ac_file
  10628. mv $tmp/config.h $ac_file
  10629. fi
  10630. else
  10631. cat $tmp/config.h
  10632. rm -f $tmp/config.h
  10633. fi
  10634. done
  10635. _ACEOF
  10636. cat >>$CONFIG_STATUS <<\_ACEOF
  10637. { (exit 0); exit 0; }
  10638. _ACEOF
  10639. chmod +x $CONFIG_STATUS
  10640. ac_clean_files=$ac_clean_files_save
  10641. # configure is writing to config.log, and then calls config.status.
  10642. # config.status does its own redirection, appending to config.log.
  10643. # Unfortunately, on DOS this fails, as config.log is still kept open
  10644. # by configure, so config.status won't be able to write to it; its
  10645. # output is simply discarded. So we exec the FD to /dev/null,
  10646. # effectively closing config.log, so it can be properly (re)opened and
  10647. # appended to by config.status. When coming back to configure, we
  10648. # need to make the FD available again.
  10649. if test "$no_create" != yes; then
  10650. ac_cs_success=:
  10651. ac_config_status_args=
  10652. test "$silent" = yes &&
  10653. ac_config_status_args="$ac_config_status_args --quiet"
  10654. exec 5>/dev/null
  10655. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10656. exec 5>>config.log
  10657. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10658. # would make configure fail if this is the last instruction.
  10659. $ac_cs_success || { (exit 1); exit 1; }
  10660. fi