configure 378 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204
  1. #! /bin/sh
  2. # From configure.ac Revision: 3869 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003, 2004 Bryan Drewery
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in
  221. *posix*) set -o posix ;;
  222. esac
  223. fi
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. if test -x / >/dev/null 2>&1; then
  451. as_test_x='test -x'
  452. else
  453. if ls -dL / >/dev/null 2>&1; then
  454. as_ls_L_option=L
  455. else
  456. as_ls_L_option=
  457. fi
  458. as_test_x='
  459. eval sh -c '\''
  460. if test -d "$1"; then
  461. test -d "$1/.";
  462. else
  463. case $1 in
  464. -*)set "./$1";;
  465. esac;
  466. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  467. ???[sx]*):;;*)false;;esac;fi
  468. '\'' sh
  469. '
  470. fi
  471. as_executable_p=$as_test_x
  472. # Sed expression to map a string onto a valid CPP name.
  473. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  474. # Sed expression to map a string onto a valid variable name.
  475. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  476. exec 7<&0 </dev/null 6>&1
  477. # Name of the host.
  478. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  479. # so uname gets run too.
  480. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  481. #
  482. # Initializations.
  483. #
  484. ac_default_prefix=/usr/local
  485. ac_clean_files=
  486. ac_config_libobj_dir=.
  487. LIBOBJS=
  488. cross_compiling=no
  489. subdirs=
  490. MFLAGS=
  491. MAKEFLAGS=
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. # Identity of this package.
  494. PACKAGE_NAME=
  495. PACKAGE_TARNAME=
  496. PACKAGE_VERSION=
  497. PACKAGE_STRING=
  498. PACKAGE_BUGREPORT=
  499. ac_unique_file="wraith"
  500. ac_unique_file="src/eggdrop.h"
  501. # Factoring default headers for most tests.
  502. ac_includes_default="\
  503. #include <stdio.h>
  504. #ifdef HAVE_SYS_TYPES_H
  505. # include <sys/types.h>
  506. #endif
  507. #ifdef HAVE_SYS_STAT_H
  508. # include <sys/stat.h>
  509. #endif
  510. #ifdef STDC_HEADERS
  511. # include <stdlib.h>
  512. # include <stddef.h>
  513. #else
  514. # ifdef HAVE_STDLIB_H
  515. # include <stdlib.h>
  516. # endif
  517. #endif
  518. #ifdef HAVE_STRING_H
  519. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  520. # include <memory.h>
  521. # endif
  522. # include <string.h>
  523. #endif
  524. #ifdef HAVE_STRINGS_H
  525. # include <strings.h>
  526. #endif
  527. #ifdef HAVE_INTTYPES_H
  528. # include <inttypes.h>
  529. #endif
  530. #ifdef HAVE_STDINT_H
  531. # include <stdint.h>
  532. #endif
  533. #ifdef HAVE_UNISTD_H
  534. # include <unistd.h>
  535. #endif"
  536. ac_header_list=
  537. ac_func_list=
  538. ac_subst_vars='SHELL
  539. PATH_SEPARATOR
  540. PACKAGE_NAME
  541. PACKAGE_TARNAME
  542. PACKAGE_VERSION
  543. PACKAGE_STRING
  544. PACKAGE_BUGREPORT
  545. exec_prefix
  546. prefix
  547. program_transform_name
  548. bindir
  549. sbindir
  550. libexecdir
  551. datarootdir
  552. datadir
  553. sysconfdir
  554. sharedstatedir
  555. localstatedir
  556. includedir
  557. oldincludedir
  558. docdir
  559. infodir
  560. htmldir
  561. dvidir
  562. pdfdir
  563. psdir
  564. libdir
  565. localedir
  566. mandir
  567. DEFS
  568. ECHO_C
  569. ECHO_N
  570. ECHO_T
  571. LIBS
  572. build_alias
  573. host_alias
  574. target_alias
  575. egg_ac_parameters
  576. CXX
  577. CXXFLAGS
  578. LDFLAGS
  579. CPPFLAGS
  580. ac_ct_CXX
  581. EXEEXT
  582. OBJEXT
  583. CXXCPP
  584. GREP
  585. EGREP
  586. CCDEPMODE
  587. GCC3
  588. GCC3DEB
  589. SET_MAKE
  590. HEAD_1
  591. AWK
  592. BASENAME
  593. OBJCOPY
  594. STRIP
  595. DIFF
  596. UNAME
  597. CCACHE
  598. DISTCC
  599. BUILDOS
  600. BUILDARCH
  601. CCDEBUG
  602. LIBOBJS
  603. VERSION
  604. NUMVER
  605. MOD_UPDIR
  606. LTLIBOBJS'
  607. ac_subst_files=''
  608. ac_precious_vars='build_alias
  609. host_alias
  610. target_alias
  611. CXX
  612. CXXFLAGS
  613. LDFLAGS
  614. LIBS
  615. CPPFLAGS
  616. CCC
  617. CXXCPP'
  618. # Initialize some variables set by options.
  619. ac_init_help=
  620. ac_init_version=false
  621. # The variables have the same names as the options, with
  622. # dashes changed to underlines.
  623. cache_file=./config.cache
  624. exec_prefix=NONE
  625. no_create=
  626. no_recursion=
  627. prefix=NONE
  628. program_prefix=NONE
  629. program_suffix=NONE
  630. program_transform_name=s,x,x,
  631. silent=
  632. site=
  633. srcdir=
  634. verbose=
  635. x_includes=NONE
  636. x_libraries=NONE
  637. # Installation directory options.
  638. # These are left unexpanded so users can "make install exec_prefix=/foo"
  639. # and all the variables that are supposed to be based on exec_prefix
  640. # by default will actually change.
  641. # Use braces instead of parens because sh, perl, etc. also accept them.
  642. # (The list follows the same order as the GNU Coding Standards.)
  643. bindir='${exec_prefix}/bin'
  644. sbindir='${exec_prefix}/sbin'
  645. libexecdir='${exec_prefix}/libexec'
  646. datarootdir='${prefix}/share'
  647. datadir='${datarootdir}'
  648. sysconfdir='${prefix}/etc'
  649. sharedstatedir='${prefix}/com'
  650. localstatedir='${prefix}/var'
  651. includedir='${prefix}/include'
  652. oldincludedir='/usr/include'
  653. docdir='${datarootdir}/doc/${PACKAGE}'
  654. infodir='${datarootdir}/info'
  655. htmldir='${docdir}'
  656. dvidir='${docdir}'
  657. pdfdir='${docdir}'
  658. psdir='${docdir}'
  659. libdir='${exec_prefix}/lib'
  660. localedir='${datarootdir}/locale'
  661. mandir='${datarootdir}/man'
  662. ac_prev=
  663. ac_dashdash=
  664. for ac_option
  665. do
  666. # If the previous option needs an argument, assign it.
  667. if test -n "$ac_prev"; then
  668. eval $ac_prev=\$ac_option
  669. ac_prev=
  670. continue
  671. fi
  672. case $ac_option in
  673. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  674. *) ac_optarg=yes ;;
  675. esac
  676. # Accept the important Cygnus configure options, so we can diagnose typos.
  677. case $ac_dashdash$ac_option in
  678. --)
  679. ac_dashdash=yes ;;
  680. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  681. ac_prev=bindir ;;
  682. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  683. bindir=$ac_optarg ;;
  684. -build | --build | --buil | --bui | --bu)
  685. ac_prev=build_alias ;;
  686. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  687. build_alias=$ac_optarg ;;
  688. -cache-file | --cache-file | --cache-fil | --cache-fi \
  689. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  690. ac_prev=cache_file ;;
  691. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  692. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  693. cache_file=$ac_optarg ;;
  694. --config-cache | -C)
  695. cache_file=config.cache ;;
  696. -datadir | --datadir | --datadi | --datad)
  697. ac_prev=datadir ;;
  698. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  699. datadir=$ac_optarg ;;
  700. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  701. | --dataroo | --dataro | --datar)
  702. ac_prev=datarootdir ;;
  703. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  704. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  705. datarootdir=$ac_optarg ;;
  706. -disable-* | --disable-*)
  707. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  708. # Reject names that are not valid shell variable names.
  709. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  710. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  711. { (exit 1); exit 1; }; }
  712. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  713. eval enable_$ac_feature=no ;;
  714. -docdir | --docdir | --docdi | --doc | --do)
  715. ac_prev=docdir ;;
  716. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  717. docdir=$ac_optarg ;;
  718. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  719. ac_prev=dvidir ;;
  720. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  721. dvidir=$ac_optarg ;;
  722. -enable-* | --enable-*)
  723. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  724. # Reject names that are not valid shell variable names.
  725. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  726. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  727. { (exit 1); exit 1; }; }
  728. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  729. eval enable_$ac_feature=\$ac_optarg ;;
  730. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  731. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  732. | --exec | --exe | --ex)
  733. ac_prev=exec_prefix ;;
  734. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  735. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  736. | --exec=* | --exe=* | --ex=*)
  737. exec_prefix=$ac_optarg ;;
  738. -gas | --gas | --ga | --g)
  739. # Obsolete; use --with-gas.
  740. with_gas=yes ;;
  741. -help | --help | --hel | --he | -h)
  742. ac_init_help=long ;;
  743. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  744. ac_init_help=recursive ;;
  745. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  746. ac_init_help=short ;;
  747. -host | --host | --hos | --ho)
  748. ac_prev=host_alias ;;
  749. -host=* | --host=* | --hos=* | --ho=*)
  750. host_alias=$ac_optarg ;;
  751. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  752. ac_prev=htmldir ;;
  753. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  754. | --ht=*)
  755. htmldir=$ac_optarg ;;
  756. -includedir | --includedir | --includedi | --included | --include \
  757. | --includ | --inclu | --incl | --inc)
  758. ac_prev=includedir ;;
  759. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  760. | --includ=* | --inclu=* | --incl=* | --inc=*)
  761. includedir=$ac_optarg ;;
  762. -infodir | --infodir | --infodi | --infod | --info | --inf)
  763. ac_prev=infodir ;;
  764. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  765. infodir=$ac_optarg ;;
  766. -libdir | --libdir | --libdi | --libd)
  767. ac_prev=libdir ;;
  768. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  769. libdir=$ac_optarg ;;
  770. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  771. | --libexe | --libex | --libe)
  772. ac_prev=libexecdir ;;
  773. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  774. | --libexe=* | --libex=* | --libe=*)
  775. libexecdir=$ac_optarg ;;
  776. -localedir | --localedir | --localedi | --localed | --locale)
  777. ac_prev=localedir ;;
  778. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  779. localedir=$ac_optarg ;;
  780. -localstatedir | --localstatedir | --localstatedi | --localstated \
  781. | --localstate | --localstat | --localsta | --localst | --locals)
  782. ac_prev=localstatedir ;;
  783. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  784. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  785. localstatedir=$ac_optarg ;;
  786. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  787. ac_prev=mandir ;;
  788. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  789. mandir=$ac_optarg ;;
  790. -nfp | --nfp | --nf)
  791. # Obsolete; use --without-fp.
  792. with_fp=no ;;
  793. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  794. | --no-cr | --no-c | -n)
  795. no_create=yes ;;
  796. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  797. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  798. no_recursion=yes ;;
  799. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  800. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  801. | --oldin | --oldi | --old | --ol | --o)
  802. ac_prev=oldincludedir ;;
  803. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  804. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  805. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  806. oldincludedir=$ac_optarg ;;
  807. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  808. ac_prev=prefix ;;
  809. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  810. prefix=$ac_optarg ;;
  811. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  812. | --program-pre | --program-pr | --program-p)
  813. ac_prev=program_prefix ;;
  814. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  815. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  816. program_prefix=$ac_optarg ;;
  817. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  818. | --program-suf | --program-su | --program-s)
  819. ac_prev=program_suffix ;;
  820. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  821. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  822. program_suffix=$ac_optarg ;;
  823. -program-transform-name | --program-transform-name \
  824. | --program-transform-nam | --program-transform-na \
  825. | --program-transform-n | --program-transform- \
  826. | --program-transform | --program-transfor \
  827. | --program-transfo | --program-transf \
  828. | --program-trans | --program-tran \
  829. | --progr-tra | --program-tr | --program-t)
  830. ac_prev=program_transform_name ;;
  831. -program-transform-name=* | --program-transform-name=* \
  832. | --program-transform-nam=* | --program-transform-na=* \
  833. | --program-transform-n=* | --program-transform-=* \
  834. | --program-transform=* | --program-transfor=* \
  835. | --program-transfo=* | --program-transf=* \
  836. | --program-trans=* | --program-tran=* \
  837. | --progr-tra=* | --program-tr=* | --program-t=*)
  838. program_transform_name=$ac_optarg ;;
  839. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  840. ac_prev=pdfdir ;;
  841. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  842. pdfdir=$ac_optarg ;;
  843. -psdir | --psdir | --psdi | --psd | --ps)
  844. ac_prev=psdir ;;
  845. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  846. psdir=$ac_optarg ;;
  847. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  848. | -silent | --silent | --silen | --sile | --sil)
  849. silent=yes ;;
  850. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  851. ac_prev=sbindir ;;
  852. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  853. | --sbi=* | --sb=*)
  854. sbindir=$ac_optarg ;;
  855. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  856. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  857. | --sharedst | --shareds | --shared | --share | --shar \
  858. | --sha | --sh)
  859. ac_prev=sharedstatedir ;;
  860. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  861. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  862. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  863. | --sha=* | --sh=*)
  864. sharedstatedir=$ac_optarg ;;
  865. -site | --site | --sit)
  866. ac_prev=site ;;
  867. -site=* | --site=* | --sit=*)
  868. site=$ac_optarg ;;
  869. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  870. ac_prev=srcdir ;;
  871. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  872. srcdir=$ac_optarg ;;
  873. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  874. | --syscon | --sysco | --sysc | --sys | --sy)
  875. ac_prev=sysconfdir ;;
  876. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  877. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  878. sysconfdir=$ac_optarg ;;
  879. -target | --target | --targe | --targ | --tar | --ta | --t)
  880. ac_prev=target_alias ;;
  881. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  882. target_alias=$ac_optarg ;;
  883. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  884. verbose=yes ;;
  885. -version | --version | --versio | --versi | --vers | -V)
  886. ac_init_version=: ;;
  887. -with-* | --with-*)
  888. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  891. { echo "$as_me: error: invalid package name: $ac_package" >&2
  892. { (exit 1); exit 1; }; }
  893. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  894. eval with_$ac_package=\$ac_optarg ;;
  895. -without-* | --without-*)
  896. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  897. # Reject names that are not valid shell variable names.
  898. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  899. { echo "$as_me: error: invalid package name: $ac_package" >&2
  900. { (exit 1); exit 1; }; }
  901. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  902. eval with_$ac_package=no ;;
  903. --x)
  904. # Obsolete; use --with-x.
  905. with_x=yes ;;
  906. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  907. | --x-incl | --x-inc | --x-in | --x-i)
  908. ac_prev=x_includes ;;
  909. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  910. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  911. x_includes=$ac_optarg ;;
  912. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  913. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  914. ac_prev=x_libraries ;;
  915. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  916. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  917. x_libraries=$ac_optarg ;;
  918. -*) { echo "$as_me: error: unrecognized option: $ac_option
  919. Try \`$0 --help' for more information." >&2
  920. { (exit 1); exit 1; }; }
  921. ;;
  922. *=*)
  923. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  926. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  927. { (exit 1); exit 1; }; }
  928. eval $ac_envvar=\$ac_optarg
  929. export $ac_envvar ;;
  930. *)
  931. # FIXME: should be removed in autoconf 3.0.
  932. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  933. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  934. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  935. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  936. ;;
  937. esac
  938. done
  939. if test -n "$ac_prev"; then
  940. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  941. { echo "$as_me: error: missing argument to $ac_option" >&2
  942. { (exit 1); exit 1; }; }
  943. fi
  944. # Be sure to have absolute directory names.
  945. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  946. datadir sysconfdir sharedstatedir localstatedir includedir \
  947. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  948. libdir localedir mandir
  949. do
  950. eval ac_val=\$$ac_var
  951. case $ac_val in
  952. [\\/$]* | ?:[\\/]* ) continue;;
  953. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  954. esac
  955. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  956. { (exit 1); exit 1; }; }
  957. done
  958. # There might be people who depend on the old broken behavior: `$host'
  959. # used to hold the argument of --host etc.
  960. # FIXME: To remove some day.
  961. build=$build_alias
  962. host=$host_alias
  963. target=$target_alias
  964. # FIXME: To remove some day.
  965. if test "x$host_alias" != x; then
  966. if test "x$build_alias" = x; then
  967. cross_compiling=maybe
  968. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  969. If a cross compiler is detected then cross compile mode will be used." >&2
  970. elif test "x$build_alias" != "x$host_alias"; then
  971. cross_compiling=yes
  972. fi
  973. fi
  974. ac_tool_prefix=
  975. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  976. test "$silent" = yes && exec 6>/dev/null
  977. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  978. ac_ls_di=`ls -di .` &&
  979. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  980. { echo "$as_me: error: Working directory cannot be determined" >&2
  981. { (exit 1); exit 1; }; }
  982. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  983. { echo "$as_me: error: pwd does not report name of working directory" >&2
  984. { (exit 1); exit 1; }; }
  985. # Find the source files, if location was not specified.
  986. if test -z "$srcdir"; then
  987. ac_srcdir_defaulted=yes
  988. # Try the directory containing this script, then the parent directory.
  989. ac_confdir=`$as_dirname -- "$0" ||
  990. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  991. X"$0" : 'X\(//\)[^/]' \| \
  992. X"$0" : 'X\(//\)$' \| \
  993. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  994. echo X"$0" |
  995. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  996. s//\1/
  997. q
  998. }
  999. /^X\(\/\/\)[^/].*/{
  1000. s//\1/
  1001. q
  1002. }
  1003. /^X\(\/\/\)$/{
  1004. s//\1/
  1005. q
  1006. }
  1007. /^X\(\/\).*/{
  1008. s//\1/
  1009. q
  1010. }
  1011. s/.*/./; q'`
  1012. srcdir=$ac_confdir
  1013. if test ! -r "$srcdir/$ac_unique_file"; then
  1014. srcdir=..
  1015. fi
  1016. else
  1017. ac_srcdir_defaulted=no
  1018. fi
  1019. if test ! -r "$srcdir/$ac_unique_file"; then
  1020. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1021. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1022. { (exit 1); exit 1; }; }
  1023. fi
  1024. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1025. ac_abs_confdir=`(
  1026. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1027. { (exit 1); exit 1; }; }
  1028. pwd)`
  1029. # When building in place, set srcdir=.
  1030. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1031. srcdir=.
  1032. fi
  1033. # Remove unnecessary trailing slashes from srcdir.
  1034. # Double slashes in file names in object file debugging info
  1035. # mess up M-x gdb in Emacs.
  1036. case $srcdir in
  1037. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1038. esac
  1039. for ac_var in $ac_precious_vars; do
  1040. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1041. eval ac_env_${ac_var}_value=\$${ac_var}
  1042. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1043. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1044. done
  1045. #
  1046. # Report the --help message.
  1047. #
  1048. if test "$ac_init_help" = "long"; then
  1049. # Omit some internal or obsolete options to make the list less imposing.
  1050. # This message is too long to be a string in the A/UX 3.1 sh.
  1051. cat <<_ACEOF
  1052. \`configure' configures this package to adapt to many kinds of systems.
  1053. Usage: $0 [OPTION]... [VAR=VALUE]...
  1054. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1055. VAR=VALUE. See below for descriptions of some of the useful variables.
  1056. Defaults for the options are specified in brackets.
  1057. Configuration:
  1058. -h, --help display this help and exit
  1059. --help=short display options specific to this package
  1060. --help=recursive display the short help of all the included packages
  1061. -V, --version display version information and exit
  1062. -q, --quiet, --silent do not print \`checking...' messages
  1063. --cache-file=FILE cache test results in FILE [disabled]
  1064. -C, --config-cache alias for \`--cache-file=config.cache'
  1065. -n, --no-create do not create output files
  1066. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1067. Installation directories:
  1068. --prefix=PREFIX install architecture-independent files in PREFIX
  1069. [$ac_default_prefix]
  1070. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1071. [PREFIX]
  1072. By default, \`make install' will install all the files in
  1073. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1074. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1075. for instance \`--prefix=\$HOME'.
  1076. For better control, use the options below.
  1077. Fine tuning of the installation directories:
  1078. --bindir=DIR user executables [EPREFIX/bin]
  1079. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1080. --libexecdir=DIR program executables [EPREFIX/libexec]
  1081. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1082. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1083. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1084. --libdir=DIR object code libraries [EPREFIX/lib]
  1085. --includedir=DIR C header files [PREFIX/include]
  1086. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1087. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1088. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1089. --infodir=DIR info documentation [DATAROOTDIR/info]
  1090. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1091. --mandir=DIR man documentation [DATAROOTDIR/man]
  1092. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1093. --htmldir=DIR html documentation [DOCDIR]
  1094. --dvidir=DIR dvi documentation [DOCDIR]
  1095. --pdfdir=DIR pdf documentation [DOCDIR]
  1096. --psdir=DIR ps documentation [DOCDIR]
  1097. _ACEOF
  1098. cat <<\_ACEOF
  1099. _ACEOF
  1100. fi
  1101. if test -n "$ac_init_help"; then
  1102. cat <<\_ACEOF
  1103. Optional Features:
  1104. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1105. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1106. --disable-ipv6 disable IPv6 support
  1107. Some influential environment variables:
  1108. CXX C++ compiler command
  1109. CXXFLAGS C++ compiler flags
  1110. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1111. nonstandard directory <lib dir>
  1112. LIBS libraries to pass to the linker, e.g. -l<library>
  1113. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1114. you have headers in a nonstandard directory <include dir>
  1115. CXXCPP C++ preprocessor
  1116. Use these variables to override the choices made by `configure' or to help
  1117. it to find libraries and programs with nonstandard names/locations.
  1118. _ACEOF
  1119. ac_status=$?
  1120. fi
  1121. if test "$ac_init_help" = "recursive"; then
  1122. # If there are subdirs, report their specific --help.
  1123. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1124. test -d "$ac_dir" || continue
  1125. ac_builddir=.
  1126. case "$ac_dir" in
  1127. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1128. *)
  1129. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1130. # A ".." for each directory in $ac_dir_suffix.
  1131. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1132. case $ac_top_builddir_sub in
  1133. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1134. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1135. esac ;;
  1136. esac
  1137. ac_abs_top_builddir=$ac_pwd
  1138. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1139. # for backward compatibility:
  1140. ac_top_builddir=$ac_top_build_prefix
  1141. case $srcdir in
  1142. .) # We are building in place.
  1143. ac_srcdir=.
  1144. ac_top_srcdir=$ac_top_builddir_sub
  1145. ac_abs_top_srcdir=$ac_pwd ;;
  1146. [\\/]* | ?:[\\/]* ) # Absolute name.
  1147. ac_srcdir=$srcdir$ac_dir_suffix;
  1148. ac_top_srcdir=$srcdir
  1149. ac_abs_top_srcdir=$srcdir ;;
  1150. *) # Relative name.
  1151. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1152. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1153. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1154. esac
  1155. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1156. cd "$ac_dir" || { ac_status=$?; continue; }
  1157. # Check for guested configure.
  1158. if test -f "$ac_srcdir/configure.gnu"; then
  1159. echo &&
  1160. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1161. elif test -f "$ac_srcdir/configure"; then
  1162. echo &&
  1163. $SHELL "$ac_srcdir/configure" --help=recursive
  1164. else
  1165. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1166. fi || ac_status=$?
  1167. cd "$ac_pwd" || { ac_status=$?; break; }
  1168. done
  1169. fi
  1170. test -n "$ac_init_help" && exit $ac_status
  1171. if $ac_init_version; then
  1172. cat <<\_ACEOF
  1173. configure
  1174. generated by GNU Autoconf 2.61
  1175. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1176. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1177. This configure script is free software; the Free Software Foundation
  1178. gives unlimited permission to copy, distribute and modify it.
  1179. Copyright (c) 2003, 2004 Bryan Drewery
  1180. _ACEOF
  1181. exit
  1182. fi
  1183. cat >config.log <<_ACEOF
  1184. This file contains any messages produced by compilers while
  1185. running configure, to aid debugging if configure makes a mistake.
  1186. It was created by $as_me, which was
  1187. generated by GNU Autoconf 2.61. Invocation command line was
  1188. $ $0 $@
  1189. _ACEOF
  1190. exec 5>>config.log
  1191. {
  1192. cat <<_ASUNAME
  1193. ## --------- ##
  1194. ## Platform. ##
  1195. ## --------- ##
  1196. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1197. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1198. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1199. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1200. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1201. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1202. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1203. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1204. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1205. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1206. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1207. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1208. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1209. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1210. _ASUNAME
  1211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1212. for as_dir in $PATH
  1213. do
  1214. IFS=$as_save_IFS
  1215. test -z "$as_dir" && as_dir=.
  1216. echo "PATH: $as_dir"
  1217. done
  1218. IFS=$as_save_IFS
  1219. } >&5
  1220. cat >&5 <<_ACEOF
  1221. ## ----------- ##
  1222. ## Core tests. ##
  1223. ## ----------- ##
  1224. _ACEOF
  1225. # Keep a trace of the command line.
  1226. # Strip out --no-create and --no-recursion so they do not pile up.
  1227. # Strip out --silent because we don't want to record it for future runs.
  1228. # Also quote any args containing shell meta-characters.
  1229. # Make two passes to allow for proper duplicate-argument suppression.
  1230. ac_configure_args=
  1231. ac_configure_args0=
  1232. ac_configure_args1=
  1233. ac_must_keep_next=false
  1234. for ac_pass in 1 2
  1235. do
  1236. for ac_arg
  1237. do
  1238. case $ac_arg in
  1239. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1240. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1241. | -silent | --silent | --silen | --sile | --sil)
  1242. continue ;;
  1243. *\'*)
  1244. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1245. esac
  1246. case $ac_pass in
  1247. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1248. 2)
  1249. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1250. if test $ac_must_keep_next = true; then
  1251. ac_must_keep_next=false # Got value, back to normal.
  1252. else
  1253. case $ac_arg in
  1254. *=* | --config-cache | -C | -disable-* | --disable-* \
  1255. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1256. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1257. | -with-* | --with-* | -without-* | --without-* | --x)
  1258. case "$ac_configure_args0 " in
  1259. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1260. esac
  1261. ;;
  1262. -* ) ac_must_keep_next=true ;;
  1263. esac
  1264. fi
  1265. ac_configure_args="$ac_configure_args '$ac_arg'"
  1266. ;;
  1267. esac
  1268. done
  1269. done
  1270. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1271. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1272. # When interrupted or exit'd, cleanup temporary files, and complete
  1273. # config.log. We remove comments because anyway the quotes in there
  1274. # would cause problems or look ugly.
  1275. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1276. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1277. trap 'exit_status=$?
  1278. # Save into config.log some information that might help in debugging.
  1279. {
  1280. echo
  1281. cat <<\_ASBOX
  1282. ## ---------------- ##
  1283. ## Cache variables. ##
  1284. ## ---------------- ##
  1285. _ASBOX
  1286. echo
  1287. # The following way of writing the cache mishandles newlines in values,
  1288. (
  1289. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1290. eval ac_val=\$$ac_var
  1291. case $ac_val in #(
  1292. *${as_nl}*)
  1293. case $ac_var in #(
  1294. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1295. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1296. esac
  1297. case $ac_var in #(
  1298. _ | IFS | as_nl) ;; #(
  1299. *) $as_unset $ac_var ;;
  1300. esac ;;
  1301. esac
  1302. done
  1303. (set) 2>&1 |
  1304. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1305. *${as_nl}ac_space=\ *)
  1306. sed -n \
  1307. "s/'\''/'\''\\\\'\'''\''/g;
  1308. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1309. ;; #(
  1310. *)
  1311. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1312. ;;
  1313. esac |
  1314. sort
  1315. )
  1316. echo
  1317. cat <<\_ASBOX
  1318. ## ----------------- ##
  1319. ## Output variables. ##
  1320. ## ----------------- ##
  1321. _ASBOX
  1322. echo
  1323. for ac_var in $ac_subst_vars
  1324. do
  1325. eval ac_val=\$$ac_var
  1326. case $ac_val in
  1327. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1328. esac
  1329. echo "$ac_var='\''$ac_val'\''"
  1330. done | sort
  1331. echo
  1332. if test -n "$ac_subst_files"; then
  1333. cat <<\_ASBOX
  1334. ## ------------------- ##
  1335. ## File substitutions. ##
  1336. ## ------------------- ##
  1337. _ASBOX
  1338. echo
  1339. for ac_var in $ac_subst_files
  1340. do
  1341. eval ac_val=\$$ac_var
  1342. case $ac_val in
  1343. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1344. esac
  1345. echo "$ac_var='\''$ac_val'\''"
  1346. done | sort
  1347. echo
  1348. fi
  1349. if test -s confdefs.h; then
  1350. cat <<\_ASBOX
  1351. ## ----------- ##
  1352. ## confdefs.h. ##
  1353. ## ----------- ##
  1354. _ASBOX
  1355. echo
  1356. cat confdefs.h
  1357. echo
  1358. fi
  1359. test "$ac_signal" != 0 &&
  1360. echo "$as_me: caught signal $ac_signal"
  1361. echo "$as_me: exit $exit_status"
  1362. } >&5
  1363. rm -f core *.core core.conftest.* &&
  1364. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1365. exit $exit_status
  1366. ' 0
  1367. for ac_signal in 1 2 13 15; do
  1368. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1369. done
  1370. ac_signal=0
  1371. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1372. rm -f -r conftest* confdefs.h
  1373. # Predefined preprocessor variables.
  1374. cat >>confdefs.h <<_ACEOF
  1375. #define PACKAGE_NAME "$PACKAGE_NAME"
  1376. _ACEOF
  1377. cat >>confdefs.h <<_ACEOF
  1378. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1379. _ACEOF
  1380. cat >>confdefs.h <<_ACEOF
  1381. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1382. _ACEOF
  1383. cat >>confdefs.h <<_ACEOF
  1384. #define PACKAGE_STRING "$PACKAGE_STRING"
  1385. _ACEOF
  1386. cat >>confdefs.h <<_ACEOF
  1387. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1388. _ACEOF
  1389. # Let the site file select an alternate cache file if it wants to.
  1390. # Prefer explicitly selected file to automatically selected ones.
  1391. if test -n "$CONFIG_SITE"; then
  1392. set x "$CONFIG_SITE"
  1393. elif test "x$prefix" != xNONE; then
  1394. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1395. else
  1396. set x "$ac_default_prefix/share/config.site" \
  1397. "$ac_default_prefix/etc/config.site"
  1398. fi
  1399. shift
  1400. for ac_site_file
  1401. do
  1402. if test -r "$ac_site_file"; then
  1403. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1404. echo "$as_me: loading site script $ac_site_file" >&6;}
  1405. sed 's/^/| /' "$ac_site_file" >&5
  1406. . "$ac_site_file"
  1407. fi
  1408. done
  1409. if test -r "$cache_file"; then
  1410. # Some versions of bash will fail to source /dev/null (special
  1411. # files actually), so we avoid doing that.
  1412. if test -f "$cache_file"; then
  1413. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1414. echo "$as_me: loading cache $cache_file" >&6;}
  1415. case $cache_file in
  1416. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1417. *) . "./$cache_file";;
  1418. esac
  1419. fi
  1420. else
  1421. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1422. echo "$as_me: creating cache $cache_file" >&6;}
  1423. >$cache_file
  1424. fi
  1425. ac_header_list="$ac_header_list sys/time.h"
  1426. ac_header_list="$ac_header_list unistd.h"
  1427. ac_func_list="$ac_func_list alarm"
  1428. # Check that the precious variables saved in the cache have kept the same
  1429. # value.
  1430. ac_cache_corrupted=false
  1431. for ac_var in $ac_precious_vars; do
  1432. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1433. eval ac_new_set=\$ac_env_${ac_var}_set
  1434. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1435. eval ac_new_val=\$ac_env_${ac_var}_value
  1436. case $ac_old_set,$ac_new_set in
  1437. set,)
  1438. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1439. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1440. ac_cache_corrupted=: ;;
  1441. ,set)
  1442. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1443. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1444. ac_cache_corrupted=: ;;
  1445. ,);;
  1446. *)
  1447. if test "x$ac_old_val" != "x$ac_new_val"; then
  1448. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1449. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1450. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1451. echo "$as_me: former value: $ac_old_val" >&2;}
  1452. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1453. echo "$as_me: current value: $ac_new_val" >&2;}
  1454. ac_cache_corrupted=:
  1455. fi;;
  1456. esac
  1457. # Pass precious variables to config.status.
  1458. if test "$ac_new_set" = set; then
  1459. case $ac_new_val in
  1460. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1461. *) ac_arg=$ac_var=$ac_new_val ;;
  1462. esac
  1463. case " $ac_configure_args " in
  1464. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1465. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1466. esac
  1467. fi
  1468. done
  1469. if $ac_cache_corrupted; then
  1470. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1471. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1472. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1473. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1474. { (exit 1); exit 1; }; }
  1475. fi
  1476. ac_ext=c
  1477. ac_cpp='$CPP $CPPFLAGS'
  1478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1481. ac_config_headers="$ac_config_headers config.h"
  1482. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1483. egg_ac_parameters=
  1484. ac_prev=
  1485. for ac_arg in $ac_configure_args; do
  1486. if test -n "$ac_prev"; then
  1487. ac_prev=
  1488. continue
  1489. fi
  1490. case $ac_arg in
  1491. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1492. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1493. ac_prev=cache_file ;;
  1494. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1495. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1496. | --c=*)
  1497. ;;
  1498. --config-cache | -C)
  1499. ;;
  1500. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1501. ac_prev=srcdir ;;
  1502. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1503. ;;
  1504. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1505. esac
  1506. done
  1507. # Setup build environment
  1508. #AC_REQUIRE_CPP
  1509. ac_ext=cpp
  1510. ac_cpp='$CXXCPP $CPPFLAGS'
  1511. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1512. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1513. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1514. ac_ext=cpp
  1515. ac_cpp='$CXXCPP $CPPFLAGS'
  1516. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1517. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1518. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1519. if test -z "$CXX"; then
  1520. if test -n "$CCC"; then
  1521. CXX=$CCC
  1522. else
  1523. if test -n "$ac_tool_prefix"; then
  1524. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1525. do
  1526. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1527. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1528. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1529. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1530. if test "${ac_cv_prog_CXX+set}" = set; then
  1531. echo $ECHO_N "(cached) $ECHO_C" >&6
  1532. else
  1533. if test -n "$CXX"; then
  1534. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1535. else
  1536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1537. for as_dir in $PATH
  1538. do
  1539. IFS=$as_save_IFS
  1540. test -z "$as_dir" && as_dir=.
  1541. for ac_exec_ext in '' $ac_executable_extensions; do
  1542. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1543. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1545. break 2
  1546. fi
  1547. done
  1548. done
  1549. IFS=$as_save_IFS
  1550. fi
  1551. fi
  1552. CXX=$ac_cv_prog_CXX
  1553. if test -n "$CXX"; then
  1554. { echo "$as_me:$LINENO: result: $CXX" >&5
  1555. echo "${ECHO_T}$CXX" >&6; }
  1556. else
  1557. { echo "$as_me:$LINENO: result: no" >&5
  1558. echo "${ECHO_T}no" >&6; }
  1559. fi
  1560. test -n "$CXX" && break
  1561. done
  1562. fi
  1563. if test -z "$CXX"; then
  1564. ac_ct_CXX=$CXX
  1565. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1566. do
  1567. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1568. set dummy $ac_prog; ac_word=$2
  1569. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1570. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1571. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1572. echo $ECHO_N "(cached) $ECHO_C" >&6
  1573. else
  1574. if test -n "$ac_ct_CXX"; then
  1575. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1576. else
  1577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1578. for as_dir in $PATH
  1579. do
  1580. IFS=$as_save_IFS
  1581. test -z "$as_dir" && as_dir=.
  1582. for ac_exec_ext in '' $ac_executable_extensions; do
  1583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1584. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1585. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1586. break 2
  1587. fi
  1588. done
  1589. done
  1590. IFS=$as_save_IFS
  1591. fi
  1592. fi
  1593. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1594. if test -n "$ac_ct_CXX"; then
  1595. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1596. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1597. else
  1598. { echo "$as_me:$LINENO: result: no" >&5
  1599. echo "${ECHO_T}no" >&6; }
  1600. fi
  1601. test -n "$ac_ct_CXX" && break
  1602. done
  1603. if test "x$ac_ct_CXX" = x; then
  1604. CXX="g++"
  1605. else
  1606. case $cross_compiling:$ac_tool_warned in
  1607. yes:)
  1608. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1609. whose name does not start with the host triplet. If you think this
  1610. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1611. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1612. whose name does not start with the host triplet. If you think this
  1613. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1614. ac_tool_warned=yes ;;
  1615. esac
  1616. CXX=$ac_ct_CXX
  1617. fi
  1618. fi
  1619. fi
  1620. fi
  1621. # Provide some information about the compiler.
  1622. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1623. ac_compiler=`set X $ac_compile; echo $2`
  1624. { (ac_try="$ac_compiler --version >&5"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1630. (eval "$ac_compiler --version >&5") 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }
  1634. { (ac_try="$ac_compiler -v >&5"
  1635. case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1640. (eval "$ac_compiler -v >&5") 2>&5
  1641. ac_status=$?
  1642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1643. (exit $ac_status); }
  1644. { (ac_try="$ac_compiler -V >&5"
  1645. case "(($ac_try" in
  1646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647. *) ac_try_echo=$ac_try;;
  1648. esac
  1649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1650. (eval "$ac_compiler -V >&5") 2>&5
  1651. ac_status=$?
  1652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1653. (exit $ac_status); }
  1654. cat >conftest.$ac_ext <<_ACEOF
  1655. /* confdefs.h. */
  1656. _ACEOF
  1657. cat confdefs.h >>conftest.$ac_ext
  1658. cat >>conftest.$ac_ext <<_ACEOF
  1659. /* end confdefs.h. */
  1660. int
  1661. main ()
  1662. {
  1663. ;
  1664. return 0;
  1665. }
  1666. _ACEOF
  1667. ac_clean_files_save=$ac_clean_files
  1668. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1669. # Try to create an executable without -o first, disregard a.out.
  1670. # It will help us diagnose broken compilers, and finding out an intuition
  1671. # of exeext.
  1672. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1673. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1674. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1675. #
  1676. # List of possible output files, starting from the most likely.
  1677. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1678. # only as a last resort. b.out is created by i960 compilers.
  1679. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1680. #
  1681. # The IRIX 6 linker writes into existing files which may not be
  1682. # executable, retaining their permissions. Remove them first so a
  1683. # subsequent execution test works.
  1684. ac_rmfiles=
  1685. for ac_file in $ac_files
  1686. do
  1687. case $ac_file in
  1688. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1689. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1690. esac
  1691. done
  1692. rm -f $ac_rmfiles
  1693. if { (ac_try="$ac_link_default"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1699. (eval "$ac_link_default") 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; then
  1703. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1704. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1705. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1706. # so that the user can short-circuit this test for compilers unknown to
  1707. # Autoconf.
  1708. for ac_file in $ac_files ''
  1709. do
  1710. test -f "$ac_file" || continue
  1711. case $ac_file in
  1712. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1713. ;;
  1714. [ab].out )
  1715. # We found the default executable, but exeext='' is most
  1716. # certainly right.
  1717. break;;
  1718. *.* )
  1719. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1720. then :; else
  1721. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1722. fi
  1723. # We set ac_cv_exeext here because the later test for it is not
  1724. # safe: cross compilers may not add the suffix if given an `-o'
  1725. # argument, so we may need to know it at that point already.
  1726. # Even if this section looks crufty: it has the advantage of
  1727. # actually working.
  1728. break;;
  1729. * )
  1730. break;;
  1731. esac
  1732. done
  1733. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1734. else
  1735. ac_file=''
  1736. fi
  1737. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1738. echo "${ECHO_T}$ac_file" >&6; }
  1739. if test -z "$ac_file"; then
  1740. echo "$as_me: failed program was:" >&5
  1741. sed 's/^/| /' conftest.$ac_ext >&5
  1742. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1743. See \`config.log' for more details." >&5
  1744. echo "$as_me: error: C++ compiler cannot create executables
  1745. See \`config.log' for more details." >&2;}
  1746. { (exit 77); exit 77; }; }
  1747. fi
  1748. ac_exeext=$ac_cv_exeext
  1749. # Check that the compiler produces executables we can run. If not, either
  1750. # the compiler is broken, or we cross compile.
  1751. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1752. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1753. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1754. # If not cross compiling, check that we can run a simple program.
  1755. if test "$cross_compiling" != yes; then
  1756. if { ac_try='./$ac_file'
  1757. { (case "(($ac_try" in
  1758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1759. *) ac_try_echo=$ac_try;;
  1760. esac
  1761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1762. (eval "$ac_try") 2>&5
  1763. ac_status=$?
  1764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1765. (exit $ac_status); }; }; then
  1766. cross_compiling=no
  1767. else
  1768. if test "$cross_compiling" = maybe; then
  1769. cross_compiling=yes
  1770. else
  1771. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1772. If you meant to cross compile, use \`--host'.
  1773. See \`config.log' for more details." >&5
  1774. echo "$as_me: error: cannot run C++ compiled programs.
  1775. If you meant to cross compile, use \`--host'.
  1776. See \`config.log' for more details." >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. fi
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: yes" >&5
  1782. echo "${ECHO_T}yes" >&6; }
  1783. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1784. ac_clean_files=$ac_clean_files_save
  1785. # Check that the compiler produces executables we can run. If not, either
  1786. # the compiler is broken, or we cross compile.
  1787. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1788. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1789. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1790. echo "${ECHO_T}$cross_compiling" >&6; }
  1791. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1792. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1793. if { (ac_try="$ac_link"
  1794. case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1799. (eval "$ac_link") 2>&5
  1800. ac_status=$?
  1801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1802. (exit $ac_status); }; then
  1803. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1804. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1805. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1806. # `rm'.
  1807. for ac_file in conftest.exe conftest conftest.*; do
  1808. test -f "$ac_file" || continue
  1809. case $ac_file in
  1810. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1811. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1812. break;;
  1813. * ) break;;
  1814. esac
  1815. done
  1816. else
  1817. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1818. See \`config.log' for more details." >&5
  1819. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1820. See \`config.log' for more details." >&2;}
  1821. { (exit 1); exit 1; }; }
  1822. fi
  1823. rm -f conftest$ac_cv_exeext
  1824. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1825. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1826. rm -f conftest.$ac_ext
  1827. EXEEXT=$ac_cv_exeext
  1828. ac_exeext=$EXEEXT
  1829. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1830. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1831. if test "${ac_cv_objext+set}" = set; then
  1832. echo $ECHO_N "(cached) $ECHO_C" >&6
  1833. else
  1834. cat >conftest.$ac_ext <<_ACEOF
  1835. /* confdefs.h. */
  1836. _ACEOF
  1837. cat confdefs.h >>conftest.$ac_ext
  1838. cat >>conftest.$ac_ext <<_ACEOF
  1839. /* end confdefs.h. */
  1840. int
  1841. main ()
  1842. {
  1843. ;
  1844. return 0;
  1845. }
  1846. _ACEOF
  1847. rm -f conftest.o conftest.obj
  1848. if { (ac_try="$ac_compile"
  1849. case "(($ac_try" in
  1850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1851. *) ac_try_echo=$ac_try;;
  1852. esac
  1853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1854. (eval "$ac_compile") 2>&5
  1855. ac_status=$?
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); }; then
  1858. for ac_file in conftest.o conftest.obj conftest.*; do
  1859. test -f "$ac_file" || continue;
  1860. case $ac_file in
  1861. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1862. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1863. break;;
  1864. esac
  1865. done
  1866. else
  1867. echo "$as_me: failed program was:" >&5
  1868. sed 's/^/| /' conftest.$ac_ext >&5
  1869. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1870. See \`config.log' for more details." >&5
  1871. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1872. See \`config.log' for more details." >&2;}
  1873. { (exit 1); exit 1; }; }
  1874. fi
  1875. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1876. fi
  1877. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1878. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1879. OBJEXT=$ac_cv_objext
  1880. ac_objext=$OBJEXT
  1881. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1882. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1883. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1884. echo $ECHO_N "(cached) $ECHO_C" >&6
  1885. else
  1886. cat >conftest.$ac_ext <<_ACEOF
  1887. /* confdefs.h. */
  1888. _ACEOF
  1889. cat confdefs.h >>conftest.$ac_ext
  1890. cat >>conftest.$ac_ext <<_ACEOF
  1891. /* end confdefs.h. */
  1892. int
  1893. main ()
  1894. {
  1895. #ifndef __GNUC__
  1896. choke me
  1897. #endif
  1898. ;
  1899. return 0;
  1900. }
  1901. _ACEOF
  1902. rm -f conftest.$ac_objext
  1903. if { (ac_try="$ac_compile"
  1904. case "(($ac_try" in
  1905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1906. *) ac_try_echo=$ac_try;;
  1907. esac
  1908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1909. (eval "$ac_compile") 2>conftest.er1
  1910. ac_status=$?
  1911. grep -v '^ *+' conftest.er1 >conftest.err
  1912. rm -f conftest.er1
  1913. cat conftest.err >&5
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); } && {
  1916. test -z "$ac_cxx_werror_flag" ||
  1917. test ! -s conftest.err
  1918. } && test -s conftest.$ac_objext; then
  1919. ac_compiler_gnu=yes
  1920. else
  1921. echo "$as_me: failed program was:" >&5
  1922. sed 's/^/| /' conftest.$ac_ext >&5
  1923. ac_compiler_gnu=no
  1924. fi
  1925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1926. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1927. fi
  1928. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1929. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1930. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1931. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1932. ac_save_CXXFLAGS=$CXXFLAGS
  1933. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1934. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1935. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1936. echo $ECHO_N "(cached) $ECHO_C" >&6
  1937. else
  1938. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1939. ac_cxx_werror_flag=yes
  1940. ac_cv_prog_cxx_g=no
  1941. CXXFLAGS="-g"
  1942. cat >conftest.$ac_ext <<_ACEOF
  1943. /* confdefs.h. */
  1944. _ACEOF
  1945. cat confdefs.h >>conftest.$ac_ext
  1946. cat >>conftest.$ac_ext <<_ACEOF
  1947. /* end confdefs.h. */
  1948. int
  1949. main ()
  1950. {
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. rm -f conftest.$ac_objext
  1956. if { (ac_try="$ac_compile"
  1957. case "(($ac_try" in
  1958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1959. *) ac_try_echo=$ac_try;;
  1960. esac
  1961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1962. (eval "$ac_compile") 2>conftest.er1
  1963. ac_status=$?
  1964. grep -v '^ *+' conftest.er1 >conftest.err
  1965. rm -f conftest.er1
  1966. cat conftest.err >&5
  1967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1968. (exit $ac_status); } && {
  1969. test -z "$ac_cxx_werror_flag" ||
  1970. test ! -s conftest.err
  1971. } && test -s conftest.$ac_objext; then
  1972. ac_cv_prog_cxx_g=yes
  1973. else
  1974. echo "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. CXXFLAGS=""
  1977. cat >conftest.$ac_ext <<_ACEOF
  1978. /* confdefs.h. */
  1979. _ACEOF
  1980. cat confdefs.h >>conftest.$ac_ext
  1981. cat >>conftest.$ac_ext <<_ACEOF
  1982. /* end confdefs.h. */
  1983. int
  1984. main ()
  1985. {
  1986. ;
  1987. return 0;
  1988. }
  1989. _ACEOF
  1990. rm -f conftest.$ac_objext
  1991. if { (ac_try="$ac_compile"
  1992. case "(($ac_try" in
  1993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1994. *) ac_try_echo=$ac_try;;
  1995. esac
  1996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1997. (eval "$ac_compile") 2>conftest.er1
  1998. ac_status=$?
  1999. grep -v '^ *+' conftest.er1 >conftest.err
  2000. rm -f conftest.er1
  2001. cat conftest.err >&5
  2002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2003. (exit $ac_status); } && {
  2004. test -z "$ac_cxx_werror_flag" ||
  2005. test ! -s conftest.err
  2006. } && test -s conftest.$ac_objext; then
  2007. :
  2008. else
  2009. echo "$as_me: failed program was:" >&5
  2010. sed 's/^/| /' conftest.$ac_ext >&5
  2011. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2012. CXXFLAGS="-g"
  2013. cat >conftest.$ac_ext <<_ACEOF
  2014. /* confdefs.h. */
  2015. _ACEOF
  2016. cat confdefs.h >>conftest.$ac_ext
  2017. cat >>conftest.$ac_ext <<_ACEOF
  2018. /* end confdefs.h. */
  2019. int
  2020. main ()
  2021. {
  2022. ;
  2023. return 0;
  2024. }
  2025. _ACEOF
  2026. rm -f conftest.$ac_objext
  2027. if { (ac_try="$ac_compile"
  2028. case "(($ac_try" in
  2029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2030. *) ac_try_echo=$ac_try;;
  2031. esac
  2032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2033. (eval "$ac_compile") 2>conftest.er1
  2034. ac_status=$?
  2035. grep -v '^ *+' conftest.er1 >conftest.err
  2036. rm -f conftest.er1
  2037. cat conftest.err >&5
  2038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2039. (exit $ac_status); } && {
  2040. test -z "$ac_cxx_werror_flag" ||
  2041. test ! -s conftest.err
  2042. } && test -s conftest.$ac_objext; then
  2043. ac_cv_prog_cxx_g=yes
  2044. else
  2045. echo "$as_me: failed program was:" >&5
  2046. sed 's/^/| /' conftest.$ac_ext >&5
  2047. fi
  2048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2049. fi
  2050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2051. fi
  2052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2053. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2054. fi
  2055. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2056. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2057. if test "$ac_test_CXXFLAGS" = set; then
  2058. CXXFLAGS=$ac_save_CXXFLAGS
  2059. elif test $ac_cv_prog_cxx_g = yes; then
  2060. if test "$GXX" = yes; then
  2061. CXXFLAGS="-g -O2"
  2062. else
  2063. CXXFLAGS="-g"
  2064. fi
  2065. else
  2066. if test "$GXX" = yes; then
  2067. CXXFLAGS="-O2"
  2068. else
  2069. CXXFLAGS=
  2070. fi
  2071. fi
  2072. ac_ext=cpp
  2073. ac_cpp='$CXXCPP $CPPFLAGS'
  2074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2077. if test "${cross_compiling-x}" = "x"
  2078. then
  2079. cat << 'EOF' >&2
  2080. configure: error:
  2081. This system does not appear to have a working C compiler.
  2082. A working C compiler is required to compile Eggdrop.
  2083. EOF
  2084. exit 1
  2085. fi
  2086. if test -n "$GXX"; then
  2087. CXXFLAGS="$CXXFLAGS -O3"
  2088. fi
  2089. # Crazy machines
  2090. ac_ext=cpp
  2091. ac_cpp='$CXXCPP $CPPFLAGS'
  2092. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2093. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2094. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2095. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2096. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  2097. if test -z "$CXXCPP"; then
  2098. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2099. echo $ECHO_N "(cached) $ECHO_C" >&6
  2100. else
  2101. # Double quotes because CXXCPP needs to be expanded
  2102. for CXXCPP in "$CXX -E" "/lib/cpp"
  2103. do
  2104. ac_preproc_ok=false
  2105. for ac_cxx_preproc_warn_flag in '' yes
  2106. do
  2107. # Use a header file that comes with gcc, so configuring glibc
  2108. # with a fresh cross-compiler works.
  2109. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2110. # <limits.h> exists even on freestanding compilers.
  2111. # On the NeXT, cc -E runs the code through the compiler's parser,
  2112. # not just through cpp. "Syntax error" is here to catch this case.
  2113. cat >conftest.$ac_ext <<_ACEOF
  2114. /* confdefs.h. */
  2115. _ACEOF
  2116. cat confdefs.h >>conftest.$ac_ext
  2117. cat >>conftest.$ac_ext <<_ACEOF
  2118. /* end confdefs.h. */
  2119. #ifdef __STDC__
  2120. # include <limits.h>
  2121. #else
  2122. # include <assert.h>
  2123. #endif
  2124. Syntax error
  2125. _ACEOF
  2126. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2127. case "(($ac_try" in
  2128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2129. *) ac_try_echo=$ac_try;;
  2130. esac
  2131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2132. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2133. ac_status=$?
  2134. grep -v '^ *+' conftest.er1 >conftest.err
  2135. rm -f conftest.er1
  2136. cat conftest.err >&5
  2137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2138. (exit $ac_status); } >/dev/null && {
  2139. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2140. test ! -s conftest.err
  2141. }; then
  2142. :
  2143. else
  2144. echo "$as_me: failed program was:" >&5
  2145. sed 's/^/| /' conftest.$ac_ext >&5
  2146. # Broken: fails on valid input.
  2147. continue
  2148. fi
  2149. rm -f conftest.err conftest.$ac_ext
  2150. # OK, works on sane cases. Now check whether nonexistent headers
  2151. # can be detected and how.
  2152. cat >conftest.$ac_ext <<_ACEOF
  2153. /* confdefs.h. */
  2154. _ACEOF
  2155. cat confdefs.h >>conftest.$ac_ext
  2156. cat >>conftest.$ac_ext <<_ACEOF
  2157. /* end confdefs.h. */
  2158. #include <ac_nonexistent.h>
  2159. _ACEOF
  2160. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2161. case "(($ac_try" in
  2162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2163. *) ac_try_echo=$ac_try;;
  2164. esac
  2165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2166. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2167. ac_status=$?
  2168. grep -v '^ *+' conftest.er1 >conftest.err
  2169. rm -f conftest.er1
  2170. cat conftest.err >&5
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); } >/dev/null && {
  2173. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2174. test ! -s conftest.err
  2175. }; then
  2176. # Broken: success on invalid input.
  2177. continue
  2178. else
  2179. echo "$as_me: failed program was:" >&5
  2180. sed 's/^/| /' conftest.$ac_ext >&5
  2181. # Passes both tests.
  2182. ac_preproc_ok=:
  2183. break
  2184. fi
  2185. rm -f conftest.err conftest.$ac_ext
  2186. done
  2187. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2188. rm -f conftest.err conftest.$ac_ext
  2189. if $ac_preproc_ok; then
  2190. break
  2191. fi
  2192. done
  2193. ac_cv_prog_CXXCPP=$CXXCPP
  2194. fi
  2195. CXXCPP=$ac_cv_prog_CXXCPP
  2196. else
  2197. ac_cv_prog_CXXCPP=$CXXCPP
  2198. fi
  2199. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2200. echo "${ECHO_T}$CXXCPP" >&6; }
  2201. ac_preproc_ok=false
  2202. for ac_cxx_preproc_warn_flag in '' yes
  2203. do
  2204. # Use a header file that comes with gcc, so configuring glibc
  2205. # with a fresh cross-compiler works.
  2206. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2207. # <limits.h> exists even on freestanding compilers.
  2208. # On the NeXT, cc -E runs the code through the compiler's parser,
  2209. # not just through cpp. "Syntax error" is here to catch this case.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #ifdef __STDC__
  2217. # include <limits.h>
  2218. #else
  2219. # include <assert.h>
  2220. #endif
  2221. Syntax error
  2222. _ACEOF
  2223. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2224. case "(($ac_try" in
  2225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2226. *) ac_try_echo=$ac_try;;
  2227. esac
  2228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2229. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2230. ac_status=$?
  2231. grep -v '^ *+' conftest.er1 >conftest.err
  2232. rm -f conftest.er1
  2233. cat conftest.err >&5
  2234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. (exit $ac_status); } >/dev/null && {
  2236. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2237. test ! -s conftest.err
  2238. }; then
  2239. :
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. # Broken: fails on valid input.
  2244. continue
  2245. fi
  2246. rm -f conftest.err conftest.$ac_ext
  2247. # OK, works on sane cases. Now check whether nonexistent headers
  2248. # can be detected and how.
  2249. cat >conftest.$ac_ext <<_ACEOF
  2250. /* confdefs.h. */
  2251. _ACEOF
  2252. cat confdefs.h >>conftest.$ac_ext
  2253. cat >>conftest.$ac_ext <<_ACEOF
  2254. /* end confdefs.h. */
  2255. #include <ac_nonexistent.h>
  2256. _ACEOF
  2257. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2258. case "(($ac_try" in
  2259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2260. *) ac_try_echo=$ac_try;;
  2261. esac
  2262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2263. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2264. ac_status=$?
  2265. grep -v '^ *+' conftest.er1 >conftest.err
  2266. rm -f conftest.er1
  2267. cat conftest.err >&5
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2269. (exit $ac_status); } >/dev/null && {
  2270. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2271. test ! -s conftest.err
  2272. }; then
  2273. # Broken: success on invalid input.
  2274. continue
  2275. else
  2276. echo "$as_me: failed program was:" >&5
  2277. sed 's/^/| /' conftest.$ac_ext >&5
  2278. # Passes both tests.
  2279. ac_preproc_ok=:
  2280. break
  2281. fi
  2282. rm -f conftest.err conftest.$ac_ext
  2283. done
  2284. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2285. rm -f conftest.err conftest.$ac_ext
  2286. if $ac_preproc_ok; then
  2287. :
  2288. else
  2289. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2290. See \`config.log' for more details." >&5
  2291. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2292. See \`config.log' for more details." >&2;}
  2293. { (exit 1); exit 1; }; }
  2294. fi
  2295. ac_ext=cpp
  2296. ac_cpp='$CXXCPP $CPPFLAGS'
  2297. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2298. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2299. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2300. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2301. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2302. if test "${ac_cv_path_GREP+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. # Extract the first word of "grep ggrep" to use in msg output
  2306. if test -z "$GREP"; then
  2307. set dummy grep ggrep; ac_prog_name=$2
  2308. if test "${ac_cv_path_GREP+set}" = set; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. ac_path_GREP_found=false
  2312. # Loop through the user's path and test for each of PROGNAME-LIST
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_prog in grep ggrep; do
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2321. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2322. # Check for GNU ac_path_GREP and select it if it is found.
  2323. # Check for GNU $ac_path_GREP
  2324. case `"$ac_path_GREP" --version 2>&1` in
  2325. *GNU*)
  2326. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2327. *)
  2328. ac_count=0
  2329. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2330. while :
  2331. do
  2332. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2333. mv "conftest.tmp" "conftest.in"
  2334. cp "conftest.in" "conftest.nl"
  2335. echo 'GREP' >> "conftest.nl"
  2336. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2337. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2338. ac_count=`expr $ac_count + 1`
  2339. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2340. # Best one so far, save it but keep looking for a better one
  2341. ac_cv_path_GREP="$ac_path_GREP"
  2342. ac_path_GREP_max=$ac_count
  2343. fi
  2344. # 10*(2^10) chars as input seems more than enough
  2345. test $ac_count -gt 10 && break
  2346. done
  2347. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2348. esac
  2349. $ac_path_GREP_found && break 3
  2350. done
  2351. done
  2352. done
  2353. IFS=$as_save_IFS
  2354. fi
  2355. GREP="$ac_cv_path_GREP"
  2356. if test -z "$GREP"; then
  2357. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2358. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2359. { (exit 1); exit 1; }; }
  2360. fi
  2361. else
  2362. ac_cv_path_GREP=$GREP
  2363. fi
  2364. fi
  2365. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2366. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2367. GREP="$ac_cv_path_GREP"
  2368. { echo "$as_me:$LINENO: checking for egrep" >&5
  2369. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2370. if test "${ac_cv_path_EGREP+set}" = set; then
  2371. echo $ECHO_N "(cached) $ECHO_C" >&6
  2372. else
  2373. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2374. then ac_cv_path_EGREP="$GREP -E"
  2375. else
  2376. # Extract the first word of "egrep" to use in msg output
  2377. if test -z "$EGREP"; then
  2378. set dummy egrep; ac_prog_name=$2
  2379. if test "${ac_cv_path_EGREP+set}" = set; then
  2380. echo $ECHO_N "(cached) $ECHO_C" >&6
  2381. else
  2382. ac_path_EGREP_found=false
  2383. # Loop through the user's path and test for each of PROGNAME-LIST
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_prog in egrep; do
  2390. for ac_exec_ext in '' $ac_executable_extensions; do
  2391. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2392. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2393. # Check for GNU ac_path_EGREP and select it if it is found.
  2394. # Check for GNU $ac_path_EGREP
  2395. case `"$ac_path_EGREP" --version 2>&1` in
  2396. *GNU*)
  2397. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2398. *)
  2399. ac_count=0
  2400. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2401. while :
  2402. do
  2403. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2404. mv "conftest.tmp" "conftest.in"
  2405. cp "conftest.in" "conftest.nl"
  2406. echo 'EGREP' >> "conftest.nl"
  2407. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2408. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2409. ac_count=`expr $ac_count + 1`
  2410. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2411. # Best one so far, save it but keep looking for a better one
  2412. ac_cv_path_EGREP="$ac_path_EGREP"
  2413. ac_path_EGREP_max=$ac_count
  2414. fi
  2415. # 10*(2^10) chars as input seems more than enough
  2416. test $ac_count -gt 10 && break
  2417. done
  2418. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2419. esac
  2420. $ac_path_EGREP_found && break 3
  2421. done
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. EGREP="$ac_cv_path_EGREP"
  2427. if test -z "$EGREP"; then
  2428. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2429. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2430. { (exit 1); exit 1; }; }
  2431. fi
  2432. else
  2433. ac_cv_path_EGREP=$EGREP
  2434. fi
  2435. fi
  2436. fi
  2437. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2438. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2439. EGREP="$ac_cv_path_EGREP"
  2440. { echo "$as_me:$LINENO: checking for AIX" >&5
  2441. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  2442. cat >conftest.$ac_ext <<_ACEOF
  2443. /* confdefs.h. */
  2444. _ACEOF
  2445. cat confdefs.h >>conftest.$ac_ext
  2446. cat >>conftest.$ac_ext <<_ACEOF
  2447. /* end confdefs.h. */
  2448. #ifdef _AIX
  2449. yes
  2450. #endif
  2451. _ACEOF
  2452. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2453. $EGREP "yes" >/dev/null 2>&1; then
  2454. { echo "$as_me:$LINENO: result: yes" >&5
  2455. echo "${ECHO_T}yes" >&6; }
  2456. cat >>confdefs.h <<\_ACEOF
  2457. #define _ALL_SOURCE 1
  2458. _ACEOF
  2459. else
  2460. { echo "$as_me:$LINENO: result: no" >&5
  2461. echo "${ECHO_T}no" >&6; }
  2462. fi
  2463. rm -f conftest*
  2464. { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2465. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  2466. if test "${ac_cv_search_strerror+set}" = set; then
  2467. echo $ECHO_N "(cached) $ECHO_C" >&6
  2468. else
  2469. ac_func_search_save_LIBS=$LIBS
  2470. cat >conftest.$ac_ext <<_ACEOF
  2471. /* confdefs.h. */
  2472. _ACEOF
  2473. cat confdefs.h >>conftest.$ac_ext
  2474. cat >>conftest.$ac_ext <<_ACEOF
  2475. /* end confdefs.h. */
  2476. /* Override any GCC internal prototype to avoid an error.
  2477. Use char because int might match the return type of a GCC
  2478. builtin and then its argument prototype would still apply. */
  2479. #ifdef __cplusplus
  2480. extern "C"
  2481. #endif
  2482. char strerror ();
  2483. int
  2484. main ()
  2485. {
  2486. return strerror ();
  2487. ;
  2488. return 0;
  2489. }
  2490. _ACEOF
  2491. for ac_lib in '' cposix; do
  2492. if test -z "$ac_lib"; then
  2493. ac_res="none required"
  2494. else
  2495. ac_res=-l$ac_lib
  2496. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2497. fi
  2498. rm -f conftest.$ac_objext conftest$ac_exeext
  2499. if { (ac_try="$ac_link"
  2500. case "(($ac_try" in
  2501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2502. *) ac_try_echo=$ac_try;;
  2503. esac
  2504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2505. (eval "$ac_link") 2>conftest.er1
  2506. ac_status=$?
  2507. grep -v '^ *+' conftest.er1 >conftest.err
  2508. rm -f conftest.er1
  2509. cat conftest.err >&5
  2510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511. (exit $ac_status); } && {
  2512. test -z "$ac_cxx_werror_flag" ||
  2513. test ! -s conftest.err
  2514. } && test -s conftest$ac_exeext &&
  2515. $as_test_x conftest$ac_exeext; then
  2516. ac_cv_search_strerror=$ac_res
  2517. else
  2518. echo "$as_me: failed program was:" >&5
  2519. sed 's/^/| /' conftest.$ac_ext >&5
  2520. fi
  2521. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2522. conftest$ac_exeext
  2523. if test "${ac_cv_search_strerror+set}" = set; then
  2524. break
  2525. fi
  2526. done
  2527. if test "${ac_cv_search_strerror+set}" = set; then
  2528. :
  2529. else
  2530. ac_cv_search_strerror=no
  2531. fi
  2532. rm conftest.$ac_ext
  2533. LIBS=$ac_func_search_save_LIBS
  2534. fi
  2535. { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2536. echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  2537. ac_res=$ac_cv_search_strerror
  2538. if test "$ac_res" != no; then
  2539. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2540. fi
  2541. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2542. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2543. if test "${ac_cv_header_stdc+set}" = set; then
  2544. echo $ECHO_N "(cached) $ECHO_C" >&6
  2545. else
  2546. cat >conftest.$ac_ext <<_ACEOF
  2547. /* confdefs.h. */
  2548. _ACEOF
  2549. cat confdefs.h >>conftest.$ac_ext
  2550. cat >>conftest.$ac_ext <<_ACEOF
  2551. /* end confdefs.h. */
  2552. #include <stdlib.h>
  2553. #include <stdarg.h>
  2554. #include <string.h>
  2555. #include <float.h>
  2556. int
  2557. main ()
  2558. {
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. rm -f conftest.$ac_objext
  2564. if { (ac_try="$ac_compile"
  2565. case "(($ac_try" in
  2566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2567. *) ac_try_echo=$ac_try;;
  2568. esac
  2569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2570. (eval "$ac_compile") 2>conftest.er1
  2571. ac_status=$?
  2572. grep -v '^ *+' conftest.er1 >conftest.err
  2573. rm -f conftest.er1
  2574. cat conftest.err >&5
  2575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2576. (exit $ac_status); } && {
  2577. test -z "$ac_cxx_werror_flag" ||
  2578. test ! -s conftest.err
  2579. } && test -s conftest.$ac_objext; then
  2580. ac_cv_header_stdc=yes
  2581. else
  2582. echo "$as_me: failed program was:" >&5
  2583. sed 's/^/| /' conftest.$ac_ext >&5
  2584. ac_cv_header_stdc=no
  2585. fi
  2586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2587. if test $ac_cv_header_stdc = yes; then
  2588. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2589. cat >conftest.$ac_ext <<_ACEOF
  2590. /* confdefs.h. */
  2591. _ACEOF
  2592. cat confdefs.h >>conftest.$ac_ext
  2593. cat >>conftest.$ac_ext <<_ACEOF
  2594. /* end confdefs.h. */
  2595. #include <string.h>
  2596. _ACEOF
  2597. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2598. $EGREP "memchr" >/dev/null 2>&1; then
  2599. :
  2600. else
  2601. ac_cv_header_stdc=no
  2602. fi
  2603. rm -f conftest*
  2604. fi
  2605. if test $ac_cv_header_stdc = yes; then
  2606. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2607. cat >conftest.$ac_ext <<_ACEOF
  2608. /* confdefs.h. */
  2609. _ACEOF
  2610. cat confdefs.h >>conftest.$ac_ext
  2611. cat >>conftest.$ac_ext <<_ACEOF
  2612. /* end confdefs.h. */
  2613. #include <stdlib.h>
  2614. _ACEOF
  2615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2616. $EGREP "free" >/dev/null 2>&1; then
  2617. :
  2618. else
  2619. ac_cv_header_stdc=no
  2620. fi
  2621. rm -f conftest*
  2622. fi
  2623. if test $ac_cv_header_stdc = yes; then
  2624. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2625. if test "$cross_compiling" = yes; then
  2626. :
  2627. else
  2628. cat >conftest.$ac_ext <<_ACEOF
  2629. /* confdefs.h. */
  2630. _ACEOF
  2631. cat confdefs.h >>conftest.$ac_ext
  2632. cat >>conftest.$ac_ext <<_ACEOF
  2633. /* end confdefs.h. */
  2634. #include <ctype.h>
  2635. #include <stdlib.h>
  2636. #if ((' ' & 0x0FF) == 0x020)
  2637. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2638. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2639. #else
  2640. # define ISLOWER(c) \
  2641. (('a' <= (c) && (c) <= 'i') \
  2642. || ('j' <= (c) && (c) <= 'r') \
  2643. || ('s' <= (c) && (c) <= 'z'))
  2644. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2645. #endif
  2646. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2647. int
  2648. main ()
  2649. {
  2650. int i;
  2651. for (i = 0; i < 256; i++)
  2652. if (XOR (islower (i), ISLOWER (i))
  2653. || toupper (i) != TOUPPER (i))
  2654. return 2;
  2655. return 0;
  2656. }
  2657. _ACEOF
  2658. rm -f conftest$ac_exeext
  2659. if { (ac_try="$ac_link"
  2660. case "(($ac_try" in
  2661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662. *) ac_try_echo=$ac_try;;
  2663. esac
  2664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2665. (eval "$ac_link") 2>&5
  2666. ac_status=$?
  2667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2669. { (case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2674. (eval "$ac_try") 2>&5
  2675. ac_status=$?
  2676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); }; }; then
  2678. :
  2679. else
  2680. echo "$as_me: program exited with status $ac_status" >&5
  2681. echo "$as_me: failed program was:" >&5
  2682. sed 's/^/| /' conftest.$ac_ext >&5
  2683. ( exit $ac_status )
  2684. ac_cv_header_stdc=no
  2685. fi
  2686. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2687. fi
  2688. fi
  2689. fi
  2690. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2691. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2692. if test $ac_cv_header_stdc = yes; then
  2693. cat >>confdefs.h <<\_ACEOF
  2694. #define STDC_HEADERS 1
  2695. _ACEOF
  2696. fi
  2697. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2698. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2699. inttypes.h stdint.h unistd.h
  2700. do
  2701. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2702. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2704. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2705. echo $ECHO_N "(cached) $ECHO_C" >&6
  2706. else
  2707. cat >conftest.$ac_ext <<_ACEOF
  2708. /* confdefs.h. */
  2709. _ACEOF
  2710. cat confdefs.h >>conftest.$ac_ext
  2711. cat >>conftest.$ac_ext <<_ACEOF
  2712. /* end confdefs.h. */
  2713. $ac_includes_default
  2714. #include <$ac_header>
  2715. _ACEOF
  2716. rm -f conftest.$ac_objext
  2717. if { (ac_try="$ac_compile"
  2718. case "(($ac_try" in
  2719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2720. *) ac_try_echo=$ac_try;;
  2721. esac
  2722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2723. (eval "$ac_compile") 2>conftest.er1
  2724. ac_status=$?
  2725. grep -v '^ *+' conftest.er1 >conftest.err
  2726. rm -f conftest.er1
  2727. cat conftest.err >&5
  2728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2729. (exit $ac_status); } && {
  2730. test -z "$ac_cxx_werror_flag" ||
  2731. test ! -s conftest.err
  2732. } && test -s conftest.$ac_objext; then
  2733. eval "$as_ac_Header=yes"
  2734. else
  2735. echo "$as_me: failed program was:" >&5
  2736. sed 's/^/| /' conftest.$ac_ext >&5
  2737. eval "$as_ac_Header=no"
  2738. fi
  2739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2740. fi
  2741. ac_res=`eval echo '${'$as_ac_Header'}'`
  2742. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2743. echo "${ECHO_T}$ac_res" >&6; }
  2744. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2745. cat >>confdefs.h <<_ACEOF
  2746. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2747. _ACEOF
  2748. fi
  2749. done
  2750. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2751. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2752. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2753. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2754. echo $ECHO_N "(cached) $ECHO_C" >&6
  2755. fi
  2756. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2757. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2758. else
  2759. # Is the header compilable?
  2760. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2761. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  2762. cat >conftest.$ac_ext <<_ACEOF
  2763. /* confdefs.h. */
  2764. _ACEOF
  2765. cat confdefs.h >>conftest.$ac_ext
  2766. cat >>conftest.$ac_ext <<_ACEOF
  2767. /* end confdefs.h. */
  2768. $ac_includes_default
  2769. #include <minix/config.h>
  2770. _ACEOF
  2771. rm -f conftest.$ac_objext
  2772. if { (ac_try="$ac_compile"
  2773. case "(($ac_try" in
  2774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2775. *) ac_try_echo=$ac_try;;
  2776. esac
  2777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2778. (eval "$ac_compile") 2>conftest.er1
  2779. ac_status=$?
  2780. grep -v '^ *+' conftest.er1 >conftest.err
  2781. rm -f conftest.er1
  2782. cat conftest.err >&5
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); } && {
  2785. test -z "$ac_cxx_werror_flag" ||
  2786. test ! -s conftest.err
  2787. } && test -s conftest.$ac_objext; then
  2788. ac_header_compiler=yes
  2789. else
  2790. echo "$as_me: failed program was:" >&5
  2791. sed 's/^/| /' conftest.$ac_ext >&5
  2792. ac_header_compiler=no
  2793. fi
  2794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2795. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2796. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2797. # Is the header present?
  2798. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2799. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  2800. cat >conftest.$ac_ext <<_ACEOF
  2801. /* confdefs.h. */
  2802. _ACEOF
  2803. cat confdefs.h >>conftest.$ac_ext
  2804. cat >>conftest.$ac_ext <<_ACEOF
  2805. /* end confdefs.h. */
  2806. #include <minix/config.h>
  2807. _ACEOF
  2808. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2809. case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2814. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2815. ac_status=$?
  2816. grep -v '^ *+' conftest.er1 >conftest.err
  2817. rm -f conftest.er1
  2818. cat conftest.err >&5
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); } >/dev/null && {
  2821. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2822. test ! -s conftest.err
  2823. }; then
  2824. ac_header_preproc=yes
  2825. else
  2826. echo "$as_me: failed program was:" >&5
  2827. sed 's/^/| /' conftest.$ac_ext >&5
  2828. ac_header_preproc=no
  2829. fi
  2830. rm -f conftest.err conftest.$ac_ext
  2831. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2832. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2833. # So? What about this header?
  2834. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2835. yes:no: )
  2836. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2837. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2838. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2839. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2840. ac_header_preproc=yes
  2841. ;;
  2842. no:yes:* )
  2843. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2844. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2845. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2846. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2847. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2848. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2849. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2850. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2851. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2852. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2853. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2854. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2855. ;;
  2856. esac
  2857. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2858. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2859. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2860. echo $ECHO_N "(cached) $ECHO_C" >&6
  2861. else
  2862. ac_cv_header_minix_config_h=$ac_header_preproc
  2863. fi
  2864. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2865. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2866. fi
  2867. if test $ac_cv_header_minix_config_h = yes; then
  2868. MINIX=yes
  2869. else
  2870. MINIX=
  2871. fi
  2872. if test "$MINIX" = yes; then
  2873. cat >>confdefs.h <<\_ACEOF
  2874. #define _POSIX_SOURCE 1
  2875. _ACEOF
  2876. cat >>confdefs.h <<\_ACEOF
  2877. #define _POSIX_1_SOURCE 2
  2878. _ACEOF
  2879. cat >>confdefs.h <<\_ACEOF
  2880. #define _MINIX 1
  2881. _ACEOF
  2882. fi
  2883. #checkpoint
  2884. cat >confcache <<\_ACEOF
  2885. # This file is a shell script that caches the results of configure
  2886. # tests run on this system so they can be shared between configure
  2887. # scripts and configure runs, see configure's option --config-cache.
  2888. # It is not useful on other systems. If it contains results you don't
  2889. # want to keep, you may remove or edit it.
  2890. #
  2891. # config.status only pays attention to the cache file if you give it
  2892. # the --recheck option to rerun configure.
  2893. #
  2894. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2895. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2896. # following values.
  2897. _ACEOF
  2898. # The following way of writing the cache mishandles newlines in values,
  2899. # but we know of no workaround that is simple, portable, and efficient.
  2900. # So, we kill variables containing newlines.
  2901. # Ultrix sh set writes to stderr and can't be redirected directly,
  2902. # and sets the high bit in the cache file unless we assign to the vars.
  2903. (
  2904. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2905. eval ac_val=\$$ac_var
  2906. case $ac_val in #(
  2907. *${as_nl}*)
  2908. case $ac_var in #(
  2909. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  2910. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  2911. esac
  2912. case $ac_var in #(
  2913. _ | IFS | as_nl) ;; #(
  2914. *) $as_unset $ac_var ;;
  2915. esac ;;
  2916. esac
  2917. done
  2918. (set) 2>&1 |
  2919. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  2920. *${as_nl}ac_space=\ *)
  2921. # `set' does not quote correctly, so add quotes (double-quote
  2922. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2923. sed -n \
  2924. "s/'/'\\\\''/g;
  2925. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2926. ;; #(
  2927. *)
  2928. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2929. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2930. ;;
  2931. esac |
  2932. sort
  2933. ) |
  2934. sed '
  2935. /^ac_cv_env_/b end
  2936. t clear
  2937. :clear
  2938. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2939. t end
  2940. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2941. :end' >>confcache
  2942. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2943. if test -w "$cache_file"; then
  2944. test "x$cache_file" != "x/dev/null" &&
  2945. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  2946. echo "$as_me: updating cache $cache_file" >&6;}
  2947. cat confcache >$cache_file
  2948. else
  2949. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  2950. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2951. fi
  2952. fi
  2953. rm -f confcache
  2954. # Speedup compile
  2955. if test -n "$GXX" && test -z "$no_wall"; then
  2956. { echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2957. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6; }
  2958. if test "${egg_cv_var_ccwall+set}" = set; then
  2959. echo $ECHO_N "(cached) $ECHO_C" >&6
  2960. else
  2961. ac_old_CXXFLAGS="$CXXFLAGS"
  2962. CXXFLAGS="$CXXFLAGS -Wall"
  2963. cat >conftest.$ac_ext <<_ACEOF
  2964. int main ()
  2965. {
  2966. return(0);
  2967. }
  2968. _ACEOF
  2969. rm -f conftest.$ac_objext
  2970. if { (ac_try="$ac_compile"
  2971. case "(($ac_try" in
  2972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2973. *) ac_try_echo=$ac_try;;
  2974. esac
  2975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2976. (eval "$ac_compile") 2>conftest.er1
  2977. ac_status=$?
  2978. grep -v '^ *+' conftest.er1 >conftest.err
  2979. rm -f conftest.er1
  2980. cat conftest.err >&5
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); } && {
  2983. test -z "$ac_cxx_werror_flag" ||
  2984. test ! -s conftest.err
  2985. } && test -s conftest.$ac_objext; then
  2986. egg_cv_var_ccwall="yes"
  2987. else
  2988. echo "$as_me: failed program was:" >&5
  2989. sed 's/^/| /' conftest.$ac_ext >&5
  2990. egg_cv_var_ccwall="no"
  2991. fi
  2992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2993. CXXFLAGS="$ac_old_CXXFLAGS"
  2994. fi
  2995. { echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2996. echo "${ECHO_T}$egg_cv_var_ccwall" >&6; }
  2997. if test "$egg_cv_var_ccwall" = "yes"; then
  2998. CXXFLAGS="$CXXFLAGS -Wall"
  2999. fi
  3000. fi
  3001. if test -n "$GXX" && test -z "$no_pipe"; then
  3002. { echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3003. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6; }
  3004. if test "${egg_cv_var_ccpipe+set}" = set; then
  3005. echo $ECHO_N "(cached) $ECHO_C" >&6
  3006. else
  3007. ac_old_CXX="$CXX"
  3008. CXX="$CXX -pipe"
  3009. cat >conftest.$ac_ext <<_ACEOF
  3010. int main ()
  3011. {
  3012. return(0);
  3013. }
  3014. _ACEOF
  3015. rm -f conftest.$ac_objext
  3016. if { (ac_try="$ac_compile"
  3017. case "(($ac_try" in
  3018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3019. *) ac_try_echo=$ac_try;;
  3020. esac
  3021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3022. (eval "$ac_compile") 2>conftest.er1
  3023. ac_status=$?
  3024. grep -v '^ *+' conftest.er1 >conftest.err
  3025. rm -f conftest.er1
  3026. cat conftest.err >&5
  3027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3028. (exit $ac_status); } && {
  3029. test -z "$ac_cxx_werror_flag" ||
  3030. test ! -s conftest.err
  3031. } && test -s conftest.$ac_objext; then
  3032. egg_cv_var_ccpipe="yes"
  3033. else
  3034. echo "$as_me: failed program was:" >&5
  3035. sed 's/^/| /' conftest.$ac_ext >&5
  3036. egg_cv_var_ccpipe="no"
  3037. fi
  3038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3039. CXX="$ac_old_CXX"
  3040. fi
  3041. { echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3042. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6; }
  3043. if test "$egg_cv_var_ccpipe" = "yes"; then
  3044. CXX="$CXX -pipe"
  3045. fi
  3046. fi
  3047. CCDEPMODE=gcc
  3048. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3049. if test $num -ge "3"; then
  3050. CCDEPMODE=gcc3
  3051. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3052. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings"
  3053. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3054. fi
  3055. #checkpoint
  3056. cat >confcache <<\_ACEOF
  3057. # This file is a shell script that caches the results of configure
  3058. # tests run on this system so they can be shared between configure
  3059. # scripts and configure runs, see configure's option --config-cache.
  3060. # It is not useful on other systems. If it contains results you don't
  3061. # want to keep, you may remove or edit it.
  3062. #
  3063. # config.status only pays attention to the cache file if you give it
  3064. # the --recheck option to rerun configure.
  3065. #
  3066. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3067. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3068. # following values.
  3069. _ACEOF
  3070. # The following way of writing the cache mishandles newlines in values,
  3071. # but we know of no workaround that is simple, portable, and efficient.
  3072. # So, we kill variables containing newlines.
  3073. # Ultrix sh set writes to stderr and can't be redirected directly,
  3074. # and sets the high bit in the cache file unless we assign to the vars.
  3075. (
  3076. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3077. eval ac_val=\$$ac_var
  3078. case $ac_val in #(
  3079. *${as_nl}*)
  3080. case $ac_var in #(
  3081. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3082. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3083. esac
  3084. case $ac_var in #(
  3085. _ | IFS | as_nl) ;; #(
  3086. *) $as_unset $ac_var ;;
  3087. esac ;;
  3088. esac
  3089. done
  3090. (set) 2>&1 |
  3091. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3092. *${as_nl}ac_space=\ *)
  3093. # `set' does not quote correctly, so add quotes (double-quote
  3094. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3095. sed -n \
  3096. "s/'/'\\\\''/g;
  3097. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3098. ;; #(
  3099. *)
  3100. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3101. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3102. ;;
  3103. esac |
  3104. sort
  3105. ) |
  3106. sed '
  3107. /^ac_cv_env_/b end
  3108. t clear
  3109. :clear
  3110. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3111. t end
  3112. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3113. :end' >>confcache
  3114. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3115. if test -w "$cache_file"; then
  3116. test "x$cache_file" != "x/dev/null" &&
  3117. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3118. echo "$as_me: updating cache $cache_file" >&6;}
  3119. cat confcache >$cache_file
  3120. else
  3121. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3122. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3123. fi
  3124. fi
  3125. rm -f confcache
  3126. # Checks for programs
  3127. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3128. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3129. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3130. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3131. echo $ECHO_N "(cached) $ECHO_C" >&6
  3132. else
  3133. cat >conftest.make <<\_ACEOF
  3134. SHELL = /bin/sh
  3135. all:
  3136. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3137. _ACEOF
  3138. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3139. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3140. *@@@%%%=?*=@@@%%%*)
  3141. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3142. *)
  3143. eval ac_cv_prog_make_${ac_make}_set=no;;
  3144. esac
  3145. rm -f conftest.make
  3146. fi
  3147. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3148. { echo "$as_me:$LINENO: result: yes" >&5
  3149. echo "${ECHO_T}yes" >&6; }
  3150. SET_MAKE=
  3151. else
  3152. { echo "$as_me:$LINENO: result: no" >&5
  3153. echo "${ECHO_T}no" >&6; }
  3154. SET_MAKE="MAKE=${MAKE-make}"
  3155. fi
  3156. cat << 'EOF' > conftest.head
  3157. a
  3158. b
  3159. c
  3160. EOF
  3161. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3162. do
  3163. { echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3164. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6; }
  3165. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3166. echo $ECHO_N "(cached) $ECHO_C" >&6
  3167. else
  3168. if test -n "$HEAD_1"
  3169. then
  3170. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3171. else
  3172. if test "`cat conftest.head | $ac_prog`" = "a";
  3173. then
  3174. { echo "$as_me:$LINENO: result: yes" >&5
  3175. echo "${ECHO_T}yes" >&6; }
  3176. ac_cv_prog_HEAD_1=$ac_prog
  3177. else
  3178. { echo "$as_me:$LINENO: result: no" >&5
  3179. echo "${ECHO_T}no" >&6; }
  3180. fi
  3181. fi
  3182. fi
  3183. test -n "$ac_cv_prog_HEAD_1" && break
  3184. done
  3185. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3186. then
  3187. cat << 'EOF' >&2
  3188. configure: error:
  3189. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3190. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3191. EOF
  3192. exit 1
  3193. fi
  3194. rm -f conftest.head
  3195. HEAD_1=$ac_cv_prog_HEAD_1
  3196. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3197. for ac_prog in gawk mawk nawk awk
  3198. do
  3199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3200. set dummy $ac_prog; ac_word=$2
  3201. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3203. if test "${ac_cv_prog_AWK+set}" = set; then
  3204. echo $ECHO_N "(cached) $ECHO_C" >&6
  3205. else
  3206. if test -n "$AWK"; then
  3207. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3208. else
  3209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3210. for as_dir in $PATH
  3211. do
  3212. IFS=$as_save_IFS
  3213. test -z "$as_dir" && as_dir=.
  3214. for ac_exec_ext in '' $ac_executable_extensions; do
  3215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3216. ac_cv_prog_AWK="$ac_prog"
  3217. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3218. break 2
  3219. fi
  3220. done
  3221. done
  3222. IFS=$as_save_IFS
  3223. fi
  3224. fi
  3225. AWK=$ac_cv_prog_AWK
  3226. if test -n "$AWK"; then
  3227. { echo "$as_me:$LINENO: result: $AWK" >&5
  3228. echo "${ECHO_T}$AWK" >&6; }
  3229. else
  3230. { echo "$as_me:$LINENO: result: no" >&5
  3231. echo "${ECHO_T}no" >&6; }
  3232. fi
  3233. test -n "$AWK" && break
  3234. done
  3235. if test "${AWK-x}" = "x"
  3236. then
  3237. cat << 'EOF' >&2
  3238. configure: error:
  3239. This system seems to lack a working 'awk' command.
  3240. A working 'awk' command is required to compile Eggdrop.
  3241. EOF
  3242. exit 1
  3243. fi
  3244. # basename is needed for Tcl library and header checks
  3245. # Extract the first word of "basename", so it can be a program name with args.
  3246. set dummy basename; ac_word=$2
  3247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3249. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3250. echo $ECHO_N "(cached) $ECHO_C" >&6
  3251. else
  3252. if test -n "$BASENAME"; then
  3253. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3254. else
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258. IFS=$as_save_IFS
  3259. test -z "$as_dir" && as_dir=.
  3260. for ac_exec_ext in '' $ac_executable_extensions; do
  3261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3262. ac_cv_prog_BASENAME="basename"
  3263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264. break 2
  3265. fi
  3266. done
  3267. done
  3268. IFS=$as_save_IFS
  3269. fi
  3270. fi
  3271. BASENAME=$ac_cv_prog_BASENAME
  3272. if test -n "$BASENAME"; then
  3273. { echo "$as_me:$LINENO: result: $BASENAME" >&5
  3274. echo "${ECHO_T}$BASENAME" >&6; }
  3275. else
  3276. { echo "$as_me:$LINENO: result: no" >&5
  3277. echo "${ECHO_T}no" >&6; }
  3278. fi
  3279. if test "${BASENAME-x}" = "x"
  3280. then
  3281. cat << 'EOF' >&2
  3282. configure: error:
  3283. This system seems to lack a working 'basename' command.
  3284. A working 'basename' command is required to compile Eggdrop.
  3285. EOF
  3286. exit 1
  3287. fi
  3288. # Extract the first word of "objcopy", so it can be a program name with args.
  3289. set dummy objcopy; ac_word=$2
  3290. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3291. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3292. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3293. echo $ECHO_N "(cached) $ECHO_C" >&6
  3294. else
  3295. if test -n "$OBJCOPY"; then
  3296. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3297. else
  3298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3299. for as_dir in $PATH
  3300. do
  3301. IFS=$as_save_IFS
  3302. test -z "$as_dir" && as_dir=.
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3305. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3306. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3307. break 2
  3308. fi
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3313. fi
  3314. fi
  3315. OBJCOPY=$ac_cv_prog_OBJCOPY
  3316. if test -n "$OBJCOPY"; then
  3317. { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3318. echo "${ECHO_T}$OBJCOPY" >&6; }
  3319. else
  3320. { echo "$as_me:$LINENO: result: no" >&5
  3321. echo "${ECHO_T}no" >&6; }
  3322. fi
  3323. # Extract the first word of "strip", so it can be a program name with args.
  3324. set dummy strip; ac_word=$2
  3325. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3326. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3327. if test "${ac_cv_prog_STRIP+set}" = set; then
  3328. echo $ECHO_N "(cached) $ECHO_C" >&6
  3329. else
  3330. if test -n "$STRIP"; then
  3331. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3332. else
  3333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3334. for as_dir in $PATH
  3335. do
  3336. IFS=$as_save_IFS
  3337. test -z "$as_dir" && as_dir=.
  3338. for ac_exec_ext in '' $ac_executable_extensions; do
  3339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3340. ac_cv_prog_STRIP="strip"
  3341. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3342. break 2
  3343. fi
  3344. done
  3345. done
  3346. IFS=$as_save_IFS
  3347. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3348. fi
  3349. fi
  3350. STRIP=$ac_cv_prog_STRIP
  3351. if test -n "$STRIP"; then
  3352. { echo "$as_me:$LINENO: result: $STRIP" >&5
  3353. echo "${ECHO_T}$STRIP" >&6; }
  3354. else
  3355. { echo "$as_me:$LINENO: result: no" >&5
  3356. echo "${ECHO_T}no" >&6; }
  3357. fi
  3358. # Extract the first word of "gdiff", so it can be a program name with args.
  3359. set dummy gdiff; ac_word=$2
  3360. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3361. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3362. if test "${ac_cv_prog_DIFF+set}" = set; then
  3363. echo $ECHO_N "(cached) $ECHO_C" >&6
  3364. else
  3365. if test -n "$DIFF"; then
  3366. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3367. else
  3368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3369. for as_dir in $PATH
  3370. do
  3371. IFS=$as_save_IFS
  3372. test -z "$as_dir" && as_dir=.
  3373. for ac_exec_ext in '' $ac_executable_extensions; do
  3374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3375. ac_cv_prog_DIFF="gdiff"
  3376. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3377. break 2
  3378. fi
  3379. done
  3380. done
  3381. IFS=$as_save_IFS
  3382. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3383. fi
  3384. fi
  3385. DIFF=$ac_cv_prog_DIFF
  3386. if test -n "$DIFF"; then
  3387. { echo "$as_me:$LINENO: result: $DIFF" >&5
  3388. echo "${ECHO_T}$DIFF" >&6; }
  3389. else
  3390. { echo "$as_me:$LINENO: result: no" >&5
  3391. echo "${ECHO_T}no" >&6; }
  3392. fi
  3393. # Extract the first word of "uname", so it can be a program name with args.
  3394. set dummy uname; ac_word=$2
  3395. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3396. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3397. if test "${ac_cv_prog_UNAME+set}" = set; then
  3398. echo $ECHO_N "(cached) $ECHO_C" >&6
  3399. else
  3400. if test -n "$UNAME"; then
  3401. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3402. else
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH
  3405. do
  3406. IFS=$as_save_IFS
  3407. test -z "$as_dir" && as_dir=.
  3408. for ac_exec_ext in '' $ac_executable_extensions; do
  3409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3410. ac_cv_prog_UNAME="uname"
  3411. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3412. break 2
  3413. fi
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. fi
  3418. fi
  3419. UNAME=$ac_cv_prog_UNAME
  3420. if test -n "$UNAME"; then
  3421. { echo "$as_me:$LINENO: result: $UNAME" >&5
  3422. echo "${ECHO_T}$UNAME" >&6; }
  3423. else
  3424. { echo "$as_me:$LINENO: result: no" >&5
  3425. echo "${ECHO_T}no" >&6; }
  3426. fi
  3427. # Extract the first word of "ccache", so it can be a program name with args.
  3428. set dummy ccache; ac_word=$2
  3429. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3430. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3431. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3432. echo $ECHO_N "(cached) $ECHO_C" >&6
  3433. else
  3434. if test -n "$CCACHE"; then
  3435. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3436. else
  3437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3438. for as_dir in $PATH
  3439. do
  3440. IFS=$as_save_IFS
  3441. test -z "$as_dir" && as_dir=.
  3442. for ac_exec_ext in '' $ac_executable_extensions; do
  3443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3444. ac_cv_prog_CCACHE="ccache"
  3445. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3446. break 2
  3447. fi
  3448. done
  3449. done
  3450. IFS=$as_save_IFS
  3451. fi
  3452. fi
  3453. CCACHE=$ac_cv_prog_CCACHE
  3454. if test -n "$CCACHE"; then
  3455. { echo "$as_me:$LINENO: result: $CCACHE" >&5
  3456. echo "${ECHO_T}$CCACHE" >&6; }
  3457. else
  3458. { echo "$as_me:$LINENO: result: no" >&5
  3459. echo "${ECHO_T}no" >&6; }
  3460. fi
  3461. # Extract the first word of "distcc", so it can be a program name with args.
  3462. set dummy distcc; ac_word=$2
  3463. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3464. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3465. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3466. echo $ECHO_N "(cached) $ECHO_C" >&6
  3467. else
  3468. if test -n "$DISTCC"; then
  3469. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3470. else
  3471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3472. for as_dir in $PATH
  3473. do
  3474. IFS=$as_save_IFS
  3475. test -z "$as_dir" && as_dir=.
  3476. for ac_exec_ext in '' $ac_executable_extensions; do
  3477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3478. ac_cv_prog_DISTCC="distcc"
  3479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3480. break 2
  3481. fi
  3482. done
  3483. done
  3484. IFS=$as_save_IFS
  3485. fi
  3486. fi
  3487. DISTCC=$ac_cv_prog_DISTCC
  3488. if test -n "$DISTCC"; then
  3489. { echo "$as_me:$LINENO: result: $DISTCC" >&5
  3490. echo "${ECHO_T}$DISTCC" >&6; }
  3491. else
  3492. { echo "$as_me:$LINENO: result: no" >&5
  3493. echo "${ECHO_T}no" >&6; }
  3494. fi
  3495. # Test the os and set the module linking settings
  3496. EGG_CYGWIN=no
  3497. { echo "$as_me:$LINENO: checking system type" >&5
  3498. echo $ECHO_N "checking system type... $ECHO_C" >&6; }
  3499. if test "${egg_cv_var_system_type+set}" = set; then
  3500. echo $ECHO_N "(cached) $ECHO_C" >&6
  3501. else
  3502. egg_cv_var_system_type=`$UNAME -s`
  3503. fi
  3504. { echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3505. echo "${ECHO_T}$egg_cv_var_system_type" >&6; }
  3506. { echo "$as_me:$LINENO: checking system release" >&5
  3507. echo $ECHO_N "checking system release... $ECHO_C" >&6; }
  3508. if test "${egg_cv_var_system_release+set}" = set; then
  3509. echo $ECHO_N "(cached) $ECHO_C" >&6
  3510. else
  3511. egg_cv_var_system_release=`$UNAME -r`
  3512. fi
  3513. { echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3514. echo "${ECHO_T}$egg_cv_var_system_release" >&6; }
  3515. { echo "$as_me:$LINENO: checking system machine" >&5
  3516. echo $ECHO_N "checking system machine... $ECHO_C" >&6; }
  3517. if test "${egg_cv_var_system_machine+set}" = set; then
  3518. echo $ECHO_N "(cached) $ECHO_C" >&6
  3519. else
  3520. egg_cv_var_system_machine=`$UNAME -m`
  3521. fi
  3522. { echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3523. echo "${ECHO_T}$egg_cv_var_system_machine" >&6; }
  3524. BUILDOS="$egg_cv_var_system_type"
  3525. BUILDARCH="$egg_cv_var_system_machine"
  3526. case "$egg_cv_var_system_machine" in
  3527. i*)
  3528. CXX="$CXX -march=i486"
  3529. BUILDARCH="i486"
  3530. ;;
  3531. *)
  3532. ;;
  3533. esac
  3534. case "$egg_cv_var_system_type" in
  3535. BSD/OS)
  3536. ;;
  3537. CYGWI*)
  3538. { echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3539. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6; }
  3540. WIN32FLAGS=
  3541. cat >conftest.$ac_ext <<_ACEOF
  3542. /* confdefs.h. */
  3543. _ACEOF
  3544. cat confdefs.h >>conftest.$ac_ext
  3545. cat >>conftest.$ac_ext <<_ACEOF
  3546. /* end confdefs.h. */
  3547. int
  3548. main ()
  3549. {
  3550. #ifndef WIN32
  3551. # ifndef _WIN32
  3552. # error WIN32 or _WIN32 not defined
  3553. # endif
  3554. #endif
  3555. ;
  3556. return 0;
  3557. }
  3558. _ACEOF
  3559. rm -f conftest.$ac_objext
  3560. if { (ac_try="$ac_compile"
  3561. case "(($ac_try" in
  3562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3563. *) ac_try_echo=$ac_try;;
  3564. esac
  3565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3566. (eval "$ac_compile") 2>conftest.er1
  3567. ac_status=$?
  3568. grep -v '^ *+' conftest.er1 >conftest.err
  3569. rm -f conftest.er1
  3570. cat conftest.err >&5
  3571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3572. (exit $ac_status); } && {
  3573. test -z "$ac_cxx_werror_flag" ||
  3574. test ! -s conftest.err
  3575. } && test -s conftest.$ac_objext; then
  3576. { echo "$as_me:$LINENO: result: present by default" >&5
  3577. echo "${ECHO_T}present by default" >&6; }
  3578. else
  3579. echo "$as_me: failed program was:" >&5
  3580. sed 's/^/| /' conftest.$ac_ext >&5
  3581. ac_compile_save="$ac_compile"
  3582. save_CXX="$CXX"
  3583. ac_compile="$ac_compile -mwin32"
  3584. CXX="$CXX -mwin32"
  3585. cat >conftest.$ac_ext <<_ACEOF
  3586. /* confdefs.h. */
  3587. _ACEOF
  3588. cat confdefs.h >>conftest.$ac_ext
  3589. cat >>conftest.$ac_ext <<_ACEOF
  3590. /* end confdefs.h. */
  3591. int
  3592. main ()
  3593. {
  3594. #ifndef WIN32
  3595. # ifndef _WIN32
  3596. # error WIN32 or _WIN32 not defined
  3597. # endif
  3598. #endif
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. rm -f conftest.$ac_objext
  3604. if { (ac_try="$ac_compile"
  3605. case "(($ac_try" in
  3606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3607. *) ac_try_echo=$ac_try;;
  3608. esac
  3609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3610. (eval "$ac_compile") 2>conftest.er1
  3611. ac_status=$?
  3612. grep -v '^ *+' conftest.er1 >conftest.err
  3613. rm -f conftest.er1
  3614. cat conftest.err >&5
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); } && {
  3617. test -z "$ac_cxx_werror_flag" ||
  3618. test ! -s conftest.err
  3619. } && test -s conftest.$ac_objext; then
  3620. { echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3621. echo "${ECHO_T}found via -mwin32" >&6; }
  3622. ac_compile="$ac_compile_save"
  3623. CXX="$save_CXX"
  3624. WIN32FLAGS="-mwin32"
  3625. else
  3626. echo "$as_me: failed program was:" >&5
  3627. sed 's/^/| /' conftest.$ac_ext >&5
  3628. ac_compile="$ac_compile_save"
  3629. CXX="$save_CXX"
  3630. { echo "$as_me:$LINENO: result: not found" >&5
  3631. echo "${ECHO_T}not found" >&6; }
  3632. fi
  3633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3634. fi
  3635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. CXX="$CXX $WIN32FLAGS"
  3637. EGG_CYGWIN="yes"
  3638. if test $EGG_CYGWIN = "yes"; then
  3639. { echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3640. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6; }
  3641. if test -r /usr/lib/binmode.o; then
  3642. { echo "$as_me:$LINENO: result: yes" >&5
  3643. echo "${ECHO_T}yes" >&6; }
  3644. LIBS="$LIBS /usr/lib/binmode.o"
  3645. else
  3646. { echo "$as_me:$LINENO: result: no" >&5
  3647. echo "${ECHO_T}no" >&6; }
  3648. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3649. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3650. fi
  3651. fi
  3652. cat >>confdefs.h <<\_ACEOF
  3653. #define CYGWIN_HACKS 1
  3654. _ACEOF
  3655. cat >>confdefs.h <<\_ACEOF
  3656. #define WIN32_LEAN_AND_MEAN 1
  3657. _ACEOF
  3658. ;;
  3659. IRIX)
  3660. ;;
  3661. HP-UX)
  3662. cat >>confdefs.h <<\_ACEOF
  3663. #define MD32_XARRAY 1
  3664. _ACEOF
  3665. ;;
  3666. Ultrix)
  3667. SHELL=/bin/sh5
  3668. ;;
  3669. SINIX*)
  3670. ;;
  3671. BeOS)
  3672. ;;
  3673. Linux)
  3674. ;;
  3675. Lynx)
  3676. ;;
  3677. QNX)
  3678. ;;
  3679. OSF1)
  3680. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3681. V*)
  3682. if test "$AWK" = "gawk"
  3683. then
  3684. AWK=awk
  3685. fi
  3686. ;;
  3687. 1.0|1.1|1.2)
  3688. cat >>confdefs.h <<\_ACEOF
  3689. #define OSF1_HACKS 1
  3690. _ACEOF
  3691. ;;
  3692. 1.*)
  3693. cat >>confdefs.h <<\_ACEOF
  3694. #define OSF1_HACKS 1
  3695. _ACEOF
  3696. ;;
  3697. *)
  3698. ;;
  3699. esac
  3700. cat >>confdefs.h <<\_ACEOF
  3701. #define STOP_UAC 1
  3702. _ACEOF
  3703. cat >>confdefs.h <<\_ACEOF
  3704. #define BROKEN_SNPRINTF 1
  3705. _ACEOF
  3706. ;;
  3707. SunOS)
  3708. SUNOS="yes"
  3709. ;;
  3710. *BSD)
  3711. # FreeBSD/OpenBSD/NetBSD
  3712. ;;
  3713. *)
  3714. { echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3715. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6; }
  3716. if test -r /mach
  3717. then
  3718. { echo "$as_me:$LINENO: result: yes" >&5
  3719. echo "${ECHO_T}yes" >&6; }
  3720. cat >>confdefs.h <<\_ACEOF
  3721. #define BORGCUBES 1
  3722. _ACEOF
  3723. else
  3724. { echo "$as_me:$LINENO: result: no" >&5
  3725. echo "${ECHO_T}no" >&6; }
  3726. { echo "$as_me:$LINENO: checking if system is QNX" >&5
  3727. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6; }
  3728. if test -r /cmds
  3729. then
  3730. { echo "$as_me:$LINENO: result: yes" >&5
  3731. echo "${ECHO_T}yes" >&6; }
  3732. else
  3733. { echo "$as_me:$LINENO: result: no" >&5
  3734. echo "${ECHO_T}no" >&6; }
  3735. { echo "$as_me:$LINENO: result: Something unknown!" >&5
  3736. echo "${ECHO_T}Something unknown!" >&6; }
  3737. { echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3738. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  3739. fi
  3740. fi
  3741. ;;
  3742. esac
  3743. # Check for IPv6 support
  3744. #EGG_IPV6_SUPPORTED
  3745. { echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3746. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6; }
  3747. # Check whether --enable-ipv6 was given.
  3748. if test "${enable_ipv6+set}" = set; then
  3749. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3750. { echo "$as_me:$LINENO: result: yes" >&5
  3751. echo "${ECHO_T}yes" >&6; }
  3752. else
  3753. ac_cv_dipv6="no"
  3754. if test "$egg_cv_ipv6_supported" = "no"; then
  3755. ac_cv_dipv6="no"
  3756. fi
  3757. { echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3758. echo "${ECHO_T}$ac_cv_dipv6" >&6; }
  3759. fi
  3760. if ! test "$EGG_CYGWIN" = "yes"; then
  3761. if test "$ac_cv_dipv6" = "no"; then
  3762. cat >>confdefs.h <<\_ACEOF
  3763. #define USE_IPV6 1
  3764. _ACEOF
  3765. fi
  3766. fi
  3767. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  3768. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  3769. if test "${egg_cv_socklen_t+set}" = set; then
  3770. echo $ECHO_N "(cached) $ECHO_C" >&6
  3771. else
  3772. if test "$cross_compiling" = yes; then
  3773. egg_cv_socklen_t=no
  3774. else
  3775. cat >conftest.$ac_ext <<_ACEOF
  3776. /* confdefs.h. */
  3777. _ACEOF
  3778. cat confdefs.h >>conftest.$ac_ext
  3779. cat >>conftest.$ac_ext <<_ACEOF
  3780. /* end confdefs.h. */
  3781. #include <unistd.h>
  3782. #include <sys/types.h>
  3783. #include <sys/socket.h>
  3784. #include <netinet/in.h>
  3785. #include <arpa/inet.h>
  3786. int main()
  3787. {
  3788. socklen_t test = sizeof(int);
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. rm -f conftest$ac_exeext
  3793. if { (ac_try="$ac_link"
  3794. case "(($ac_try" in
  3795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3796. *) ac_try_echo=$ac_try;;
  3797. esac
  3798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3799. (eval "$ac_link") 2>&5
  3800. ac_status=$?
  3801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3803. { (case "(($ac_try" in
  3804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3805. *) ac_try_echo=$ac_try;;
  3806. esac
  3807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3808. (eval "$ac_try") 2>&5
  3809. ac_status=$?
  3810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811. (exit $ac_status); }; }; then
  3812. egg_cv_socklen_t=yes
  3813. else
  3814. echo "$as_me: program exited with status $ac_status" >&5
  3815. echo "$as_me: failed program was:" >&5
  3816. sed 's/^/| /' conftest.$ac_ext >&5
  3817. ( exit $ac_status )
  3818. egg_cv_socklen_t=no
  3819. fi
  3820. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3821. fi
  3822. fi
  3823. if test "$egg_cv_socklen_t" = "yes"; then
  3824. cat >>confdefs.h <<\_ACEOF
  3825. #define HAVE_SOCKLEN_T 1
  3826. _ACEOF
  3827. { echo "$as_me:$LINENO: result: yes" >&5
  3828. echo "${ECHO_T}yes" >&6; }
  3829. else
  3830. { echo "$as_me:$LINENO: result: no" >&5
  3831. echo "${ECHO_T}no" >&6; }
  3832. fi
  3833. # Check for inconsistent random() functions
  3834. { echo "$as_me:$LINENO: checking for random limit" >&5
  3835. echo $ECHO_N "checking for random limit... $ECHO_C" >&6; }
  3836. case "$egg_cv_var_system_type" in
  3837. SunOS) RMAX=0x7FFFFFFF
  3838. ;;
  3839. *) RMAX=RAND_MAX
  3840. ;;
  3841. esac
  3842. { echo "$as_me:$LINENO: result: $RMAX" >&5
  3843. echo "${ECHO_T}$RMAX" >&6; }
  3844. cat >>confdefs.h <<_ACEOF
  3845. #define RANDOM_MAX $RMAX
  3846. _ACEOF
  3847. # Create static binaries
  3848. if test -z "$no_static"
  3849. then
  3850. if test -n "$GXX"
  3851. then
  3852. { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3853. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
  3854. if test "${egg_cv_var_ccstatic+set}" = set; then
  3855. echo $ECHO_N "(cached) $ECHO_C" >&6
  3856. else
  3857. ac_old_CXX="$CXX"
  3858. CXX="$CXX -static"
  3859. cat >conftest.$ac_ext <<_ACEOF
  3860. /* confdefs.h. */
  3861. _ACEOF
  3862. cat confdefs.h >>conftest.$ac_ext
  3863. cat >>conftest.$ac_ext <<_ACEOF
  3864. /* end confdefs.h. */
  3865. int
  3866. main ()
  3867. {
  3868. ;
  3869. return 0;
  3870. }
  3871. _ACEOF
  3872. rm -f conftest.$ac_objext
  3873. if { (ac_try="$ac_compile"
  3874. case "(($ac_try" in
  3875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3876. *) ac_try_echo=$ac_try;;
  3877. esac
  3878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3879. (eval "$ac_compile") 2>conftest.er1
  3880. ac_status=$?
  3881. grep -v '^ *+' conftest.er1 >conftest.err
  3882. rm -f conftest.er1
  3883. cat conftest.err >&5
  3884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3885. (exit $ac_status); } && {
  3886. test -z "$ac_cxx_werror_flag" ||
  3887. test ! -s conftest.err
  3888. } && test -s conftest.$ac_objext; then
  3889. egg_cv_var_ccstatic="yes"
  3890. else
  3891. echo "$as_me: failed program was:" >&5
  3892. sed 's/^/| /' conftest.$ac_ext >&5
  3893. egg_cv_var_ccstatic="no"
  3894. fi
  3895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3896. CXX="$ac_old_CXX"
  3897. fi
  3898. { echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3899. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6; }
  3900. if test "$egg_cv_var_ccstatic" = "yes"
  3901. then
  3902. CCDEBUG="$CXX"
  3903. # CXX="$CXX -static"
  3904. else
  3905. cat << 'EOF' >&2
  3906. configure: error:
  3907. Your C compiler does not support -static.
  3908. This compile flag is required for the botpack.
  3909. EOF
  3910. exit 1
  3911. fi
  3912. fi
  3913. fi
  3914. #checkpoint
  3915. cat >confcache <<\_ACEOF
  3916. # This file is a shell script that caches the results of configure
  3917. # tests run on this system so they can be shared between configure
  3918. # scripts and configure runs, see configure's option --config-cache.
  3919. # It is not useful on other systems. If it contains results you don't
  3920. # want to keep, you may remove or edit it.
  3921. #
  3922. # config.status only pays attention to the cache file if you give it
  3923. # the --recheck option to rerun configure.
  3924. #
  3925. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3926. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3927. # following values.
  3928. _ACEOF
  3929. # The following way of writing the cache mishandles newlines in values,
  3930. # but we know of no workaround that is simple, portable, and efficient.
  3931. # So, we kill variables containing newlines.
  3932. # Ultrix sh set writes to stderr and can't be redirected directly,
  3933. # and sets the high bit in the cache file unless we assign to the vars.
  3934. (
  3935. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3936. eval ac_val=\$$ac_var
  3937. case $ac_val in #(
  3938. *${as_nl}*)
  3939. case $ac_var in #(
  3940. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3941. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3942. esac
  3943. case $ac_var in #(
  3944. _ | IFS | as_nl) ;; #(
  3945. *) $as_unset $ac_var ;;
  3946. esac ;;
  3947. esac
  3948. done
  3949. (set) 2>&1 |
  3950. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3951. *${as_nl}ac_space=\ *)
  3952. # `set' does not quote correctly, so add quotes (double-quote
  3953. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3954. sed -n \
  3955. "s/'/'\\\\''/g;
  3956. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3957. ;; #(
  3958. *)
  3959. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3960. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3961. ;;
  3962. esac |
  3963. sort
  3964. ) |
  3965. sed '
  3966. /^ac_cv_env_/b end
  3967. t clear
  3968. :clear
  3969. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3970. t end
  3971. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3972. :end' >>confcache
  3973. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3974. if test -w "$cache_file"; then
  3975. test "x$cache_file" != "x/dev/null" &&
  3976. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3977. echo "$as_me: updating cache $cache_file" >&6;}
  3978. cat confcache >$cache_file
  3979. else
  3980. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3981. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3982. fi
  3983. fi
  3984. rm -f confcache
  3985. # Checks for system libraries
  3986. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3987. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  3988. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3989. echo $ECHO_N "(cached) $ECHO_C" >&6
  3990. else
  3991. ac_check_lib_save_LIBS=$LIBS
  3992. LIBS="-lsocket $LIBS"
  3993. cat >conftest.$ac_ext <<_ACEOF
  3994. /* confdefs.h. */
  3995. _ACEOF
  3996. cat confdefs.h >>conftest.$ac_ext
  3997. cat >>conftest.$ac_ext <<_ACEOF
  3998. /* end confdefs.h. */
  3999. /* Override any GCC internal prototype to avoid an error.
  4000. Use char because int might match the return type of a GCC
  4001. builtin and then its argument prototype would still apply. */
  4002. #ifdef __cplusplus
  4003. extern "C"
  4004. #endif
  4005. char socket ();
  4006. int
  4007. main ()
  4008. {
  4009. return socket ();
  4010. ;
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. rm -f conftest.$ac_objext conftest$ac_exeext
  4015. if { (ac_try="$ac_link"
  4016. case "(($ac_try" in
  4017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4018. *) ac_try_echo=$ac_try;;
  4019. esac
  4020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4021. (eval "$ac_link") 2>conftest.er1
  4022. ac_status=$?
  4023. grep -v '^ *+' conftest.er1 >conftest.err
  4024. rm -f conftest.er1
  4025. cat conftest.err >&5
  4026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4027. (exit $ac_status); } && {
  4028. test -z "$ac_cxx_werror_flag" ||
  4029. test ! -s conftest.err
  4030. } && test -s conftest$ac_exeext &&
  4031. $as_test_x conftest$ac_exeext; then
  4032. ac_cv_lib_socket_socket=yes
  4033. else
  4034. echo "$as_me: failed program was:" >&5
  4035. sed 's/^/| /' conftest.$ac_ext >&5
  4036. ac_cv_lib_socket_socket=no
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4039. conftest$ac_exeext conftest.$ac_ext
  4040. LIBS=$ac_check_lib_save_LIBS
  4041. fi
  4042. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4043. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  4044. if test $ac_cv_lib_socket_socket = yes; then
  4045. cat >>confdefs.h <<_ACEOF
  4046. #define HAVE_LIBSOCKET 1
  4047. _ACEOF
  4048. LIBS="-lsocket $LIBS"
  4049. fi
  4050. # AC_CHECK_LIB(nsl, connect)
  4051. # AC_CHECK_LIB(dl, dlopen)
  4052. # AC_CHECK_LIB(nsl, gethostbyname)
  4053. # AC_CHECK_LIB(dns, gethostbyname)
  4054. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4055. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4056. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4057. # This is needed for Tcl libraries compiled with thread support
  4058. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4059. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4060. # ac_cv_lib_pthread="-lpthread"], [dnl
  4061. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4062. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4063. # ac_cv_lib_pthread="-lpthread"], [dnl
  4064. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4065. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4066. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4067. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4068. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4069. # ac_cv_lib_pthread=""],
  4070. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4071. if test "$SUNOS" = "yes"; then
  4072. # For suns without yp
  4073. { echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4074. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
  4075. if test "${ac_cv_lib_dl_main+set}" = set; then
  4076. echo $ECHO_N "(cached) $ECHO_C" >&6
  4077. else
  4078. ac_check_lib_save_LIBS=$LIBS
  4079. LIBS="-ldl $LIBS"
  4080. cat >conftest.$ac_ext <<_ACEOF
  4081. /* confdefs.h. */
  4082. _ACEOF
  4083. cat confdefs.h >>conftest.$ac_ext
  4084. cat >>conftest.$ac_ext <<_ACEOF
  4085. /* end confdefs.h. */
  4086. int
  4087. main ()
  4088. {
  4089. return main ();
  4090. ;
  4091. return 0;
  4092. }
  4093. _ACEOF
  4094. rm -f conftest.$ac_objext conftest$ac_exeext
  4095. if { (ac_try="$ac_link"
  4096. case "(($ac_try" in
  4097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4098. *) ac_try_echo=$ac_try;;
  4099. esac
  4100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4101. (eval "$ac_link") 2>conftest.er1
  4102. ac_status=$?
  4103. grep -v '^ *+' conftest.er1 >conftest.err
  4104. rm -f conftest.er1
  4105. cat conftest.err >&5
  4106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4107. (exit $ac_status); } && {
  4108. test -z "$ac_cxx_werror_flag" ||
  4109. test ! -s conftest.err
  4110. } && test -s conftest$ac_exeext &&
  4111. $as_test_x conftest$ac_exeext; then
  4112. ac_cv_lib_dl_main=yes
  4113. else
  4114. echo "$as_me: failed program was:" >&5
  4115. sed 's/^/| /' conftest.$ac_ext >&5
  4116. ac_cv_lib_dl_main=no
  4117. fi
  4118. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4119. conftest$ac_exeext conftest.$ac_ext
  4120. LIBS=$ac_check_lib_save_LIBS
  4121. fi
  4122. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4123. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
  4124. if test $ac_cv_lib_dl_main = yes; then
  4125. cat >>confdefs.h <<_ACEOF
  4126. #define HAVE_LIBDL 1
  4127. _ACEOF
  4128. LIBS="-ldl $LIBS"
  4129. fi
  4130. { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4131. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
  4132. if test "${ac_cv_lib_socket_main+set}" = set; then
  4133. echo $ECHO_N "(cached) $ECHO_C" >&6
  4134. else
  4135. ac_check_lib_save_LIBS=$LIBS
  4136. LIBS="-lsocket $LIBS"
  4137. cat >conftest.$ac_ext <<_ACEOF
  4138. /* confdefs.h. */
  4139. _ACEOF
  4140. cat confdefs.h >>conftest.$ac_ext
  4141. cat >>conftest.$ac_ext <<_ACEOF
  4142. /* end confdefs.h. */
  4143. int
  4144. main ()
  4145. {
  4146. return main ();
  4147. ;
  4148. return 0;
  4149. }
  4150. _ACEOF
  4151. rm -f conftest.$ac_objext conftest$ac_exeext
  4152. if { (ac_try="$ac_link"
  4153. case "(($ac_try" in
  4154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4155. *) ac_try_echo=$ac_try;;
  4156. esac
  4157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4158. (eval "$ac_link") 2>conftest.er1
  4159. ac_status=$?
  4160. grep -v '^ *+' conftest.er1 >conftest.err
  4161. rm -f conftest.er1
  4162. cat conftest.err >&5
  4163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4164. (exit $ac_status); } && {
  4165. test -z "$ac_cxx_werror_flag" ||
  4166. test ! -s conftest.err
  4167. } && test -s conftest$ac_exeext &&
  4168. $as_test_x conftest$ac_exeext; then
  4169. ac_cv_lib_socket_main=yes
  4170. else
  4171. echo "$as_me: failed program was:" >&5
  4172. sed 's/^/| /' conftest.$ac_ext >&5
  4173. ac_cv_lib_socket_main=no
  4174. fi
  4175. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4176. conftest$ac_exeext conftest.$ac_ext
  4177. LIBS=$ac_check_lib_save_LIBS
  4178. fi
  4179. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4180. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
  4181. if test $ac_cv_lib_socket_main = yes; then
  4182. cat >>confdefs.h <<_ACEOF
  4183. #define HAVE_LIBSOCKET 1
  4184. _ACEOF
  4185. LIBS="-lsocket $LIBS"
  4186. fi
  4187. { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4188. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
  4189. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4190. echo $ECHO_N "(cached) $ECHO_C" >&6
  4191. else
  4192. ac_check_lib_save_LIBS=$LIBS
  4193. LIBS="-lnsl $LIBS"
  4194. cat >conftest.$ac_ext <<_ACEOF
  4195. /* confdefs.h. */
  4196. _ACEOF
  4197. cat confdefs.h >>conftest.$ac_ext
  4198. cat >>conftest.$ac_ext <<_ACEOF
  4199. /* end confdefs.h. */
  4200. int
  4201. main ()
  4202. {
  4203. return main ();
  4204. ;
  4205. return 0;
  4206. }
  4207. _ACEOF
  4208. rm -f conftest.$ac_objext conftest$ac_exeext
  4209. if { (ac_try="$ac_link"
  4210. case "(($ac_try" in
  4211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4212. *) ac_try_echo=$ac_try;;
  4213. esac
  4214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4215. (eval "$ac_link") 2>conftest.er1
  4216. ac_status=$?
  4217. grep -v '^ *+' conftest.er1 >conftest.err
  4218. rm -f conftest.er1
  4219. cat conftest.err >&5
  4220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4221. (exit $ac_status); } && {
  4222. test -z "$ac_cxx_werror_flag" ||
  4223. test ! -s conftest.err
  4224. } && test -s conftest$ac_exeext &&
  4225. $as_test_x conftest$ac_exeext; then
  4226. ac_cv_lib_nsl_main=yes
  4227. else
  4228. echo "$as_me: failed program was:" >&5
  4229. sed 's/^/| /' conftest.$ac_ext >&5
  4230. ac_cv_lib_nsl_main=no
  4231. fi
  4232. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4233. conftest$ac_exeext conftest.$ac_ext
  4234. LIBS=$ac_check_lib_save_LIBS
  4235. fi
  4236. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4237. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
  4238. if test $ac_cv_lib_nsl_main = yes; then
  4239. cat >>confdefs.h <<_ACEOF
  4240. #define HAVE_LIBNSL 1
  4241. _ACEOF
  4242. LIBS="-lnsl $LIBS"
  4243. fi
  4244. fi
  4245. # Checks for header files
  4246. ac_header_dirent=no
  4247. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4248. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4249. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4250. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4251. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4252. echo $ECHO_N "(cached) $ECHO_C" >&6
  4253. else
  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 <sys/types.h>
  4261. #include <$ac_hdr>
  4262. int
  4263. main ()
  4264. {
  4265. if ((DIR *) 0)
  4266. return 0;
  4267. ;
  4268. return 0;
  4269. }
  4270. _ACEOF
  4271. rm -f conftest.$ac_objext
  4272. if { (ac_try="$ac_compile"
  4273. case "(($ac_try" in
  4274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4275. *) ac_try_echo=$ac_try;;
  4276. esac
  4277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4278. (eval "$ac_compile") 2>conftest.er1
  4279. ac_status=$?
  4280. grep -v '^ *+' conftest.er1 >conftest.err
  4281. rm -f conftest.er1
  4282. cat conftest.err >&5
  4283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4284. (exit $ac_status); } && {
  4285. test -z "$ac_cxx_werror_flag" ||
  4286. test ! -s conftest.err
  4287. } && test -s conftest.$ac_objext; then
  4288. eval "$as_ac_Header=yes"
  4289. else
  4290. echo "$as_me: failed program was:" >&5
  4291. sed 's/^/| /' conftest.$ac_ext >&5
  4292. eval "$as_ac_Header=no"
  4293. fi
  4294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4295. fi
  4296. ac_res=`eval echo '${'$as_ac_Header'}'`
  4297. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4298. echo "${ECHO_T}$ac_res" >&6; }
  4299. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4300. cat >>confdefs.h <<_ACEOF
  4301. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4302. _ACEOF
  4303. ac_header_dirent=$ac_hdr; break
  4304. fi
  4305. done
  4306. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4307. if test $ac_header_dirent = dirent.h; then
  4308. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4309. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4310. if test "${ac_cv_search_opendir+set}" = set; then
  4311. echo $ECHO_N "(cached) $ECHO_C" >&6
  4312. else
  4313. ac_func_search_save_LIBS=$LIBS
  4314. cat >conftest.$ac_ext <<_ACEOF
  4315. /* confdefs.h. */
  4316. _ACEOF
  4317. cat confdefs.h >>conftest.$ac_ext
  4318. cat >>conftest.$ac_ext <<_ACEOF
  4319. /* end confdefs.h. */
  4320. /* Override any GCC internal prototype to avoid an error.
  4321. Use char because int might match the return type of a GCC
  4322. builtin and then its argument prototype would still apply. */
  4323. #ifdef __cplusplus
  4324. extern "C"
  4325. #endif
  4326. char opendir ();
  4327. int
  4328. main ()
  4329. {
  4330. return opendir ();
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. for ac_lib in '' dir; do
  4336. if test -z "$ac_lib"; then
  4337. ac_res="none required"
  4338. else
  4339. ac_res=-l$ac_lib
  4340. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4341. fi
  4342. rm -f conftest.$ac_objext conftest$ac_exeext
  4343. if { (ac_try="$ac_link"
  4344. case "(($ac_try" in
  4345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4346. *) ac_try_echo=$ac_try;;
  4347. esac
  4348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4349. (eval "$ac_link") 2>conftest.er1
  4350. ac_status=$?
  4351. grep -v '^ *+' conftest.er1 >conftest.err
  4352. rm -f conftest.er1
  4353. cat conftest.err >&5
  4354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4355. (exit $ac_status); } && {
  4356. test -z "$ac_cxx_werror_flag" ||
  4357. test ! -s conftest.err
  4358. } && test -s conftest$ac_exeext &&
  4359. $as_test_x conftest$ac_exeext; then
  4360. ac_cv_search_opendir=$ac_res
  4361. else
  4362. echo "$as_me: failed program was:" >&5
  4363. sed 's/^/| /' conftest.$ac_ext >&5
  4364. fi
  4365. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4366. conftest$ac_exeext
  4367. if test "${ac_cv_search_opendir+set}" = set; then
  4368. break
  4369. fi
  4370. done
  4371. if test "${ac_cv_search_opendir+set}" = set; then
  4372. :
  4373. else
  4374. ac_cv_search_opendir=no
  4375. fi
  4376. rm conftest.$ac_ext
  4377. LIBS=$ac_func_search_save_LIBS
  4378. fi
  4379. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4380. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4381. ac_res=$ac_cv_search_opendir
  4382. if test "$ac_res" != no; then
  4383. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4384. fi
  4385. else
  4386. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4387. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4388. if test "${ac_cv_search_opendir+set}" = set; then
  4389. echo $ECHO_N "(cached) $ECHO_C" >&6
  4390. else
  4391. ac_func_search_save_LIBS=$LIBS
  4392. cat >conftest.$ac_ext <<_ACEOF
  4393. /* confdefs.h. */
  4394. _ACEOF
  4395. cat confdefs.h >>conftest.$ac_ext
  4396. cat >>conftest.$ac_ext <<_ACEOF
  4397. /* end confdefs.h. */
  4398. /* Override any GCC internal prototype to avoid an error.
  4399. Use char because int might match the return type of a GCC
  4400. builtin and then its argument prototype would still apply. */
  4401. #ifdef __cplusplus
  4402. extern "C"
  4403. #endif
  4404. char opendir ();
  4405. int
  4406. main ()
  4407. {
  4408. return opendir ();
  4409. ;
  4410. return 0;
  4411. }
  4412. _ACEOF
  4413. for ac_lib in '' x; do
  4414. if test -z "$ac_lib"; then
  4415. ac_res="none required"
  4416. else
  4417. ac_res=-l$ac_lib
  4418. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4419. fi
  4420. rm -f conftest.$ac_objext conftest$ac_exeext
  4421. if { (ac_try="$ac_link"
  4422. case "(($ac_try" in
  4423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4424. *) ac_try_echo=$ac_try;;
  4425. esac
  4426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4427. (eval "$ac_link") 2>conftest.er1
  4428. ac_status=$?
  4429. grep -v '^ *+' conftest.er1 >conftest.err
  4430. rm -f conftest.er1
  4431. cat conftest.err >&5
  4432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4433. (exit $ac_status); } && {
  4434. test -z "$ac_cxx_werror_flag" ||
  4435. test ! -s conftest.err
  4436. } && test -s conftest$ac_exeext &&
  4437. $as_test_x conftest$ac_exeext; then
  4438. ac_cv_search_opendir=$ac_res
  4439. else
  4440. echo "$as_me: failed program was:" >&5
  4441. sed 's/^/| /' conftest.$ac_ext >&5
  4442. fi
  4443. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4444. conftest$ac_exeext
  4445. if test "${ac_cv_search_opendir+set}" = set; then
  4446. break
  4447. fi
  4448. done
  4449. if test "${ac_cv_search_opendir+set}" = set; then
  4450. :
  4451. else
  4452. ac_cv_search_opendir=no
  4453. fi
  4454. rm conftest.$ac_ext
  4455. LIBS=$ac_func_search_save_LIBS
  4456. fi
  4457. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4458. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4459. ac_res=$ac_cv_search_opendir
  4460. if test "$ac_res" != no; then
  4461. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4462. fi
  4463. fi
  4464. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4465. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4466. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4467. echo $ECHO_N "(cached) $ECHO_C" >&6
  4468. else
  4469. cat >conftest.$ac_ext <<_ACEOF
  4470. /* confdefs.h. */
  4471. _ACEOF
  4472. cat confdefs.h >>conftest.$ac_ext
  4473. cat >>conftest.$ac_ext <<_ACEOF
  4474. /* end confdefs.h. */
  4475. #include <sys/types.h>
  4476. #include <sys/wait.h>
  4477. #ifndef WEXITSTATUS
  4478. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4479. #endif
  4480. #ifndef WIFEXITED
  4481. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4482. #endif
  4483. int
  4484. main ()
  4485. {
  4486. int s;
  4487. wait (&s);
  4488. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4489. ;
  4490. return 0;
  4491. }
  4492. _ACEOF
  4493. rm -f conftest.$ac_objext
  4494. if { (ac_try="$ac_compile"
  4495. case "(($ac_try" in
  4496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4497. *) ac_try_echo=$ac_try;;
  4498. esac
  4499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4500. (eval "$ac_compile") 2>conftest.er1
  4501. ac_status=$?
  4502. grep -v '^ *+' conftest.er1 >conftest.err
  4503. rm -f conftest.er1
  4504. cat conftest.err >&5
  4505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. (exit $ac_status); } && {
  4507. test -z "$ac_cxx_werror_flag" ||
  4508. test ! -s conftest.err
  4509. } && test -s conftest.$ac_objext; then
  4510. ac_cv_header_sys_wait_h=yes
  4511. else
  4512. echo "$as_me: failed program was:" >&5
  4513. sed 's/^/| /' conftest.$ac_ext >&5
  4514. ac_cv_header_sys_wait_h=no
  4515. fi
  4516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4517. fi
  4518. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4519. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4520. if test $ac_cv_header_sys_wait_h = yes; then
  4521. cat >>confdefs.h <<\_ACEOF
  4522. #define HAVE_SYS_WAIT_H 1
  4523. _ACEOF
  4524. fi
  4525. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4526. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4527. if test "${ac_cv_header_time+set}" = set; then
  4528. echo $ECHO_N "(cached) $ECHO_C" >&6
  4529. else
  4530. cat >conftest.$ac_ext <<_ACEOF
  4531. /* confdefs.h. */
  4532. _ACEOF
  4533. cat confdefs.h >>conftest.$ac_ext
  4534. cat >>conftest.$ac_ext <<_ACEOF
  4535. /* end confdefs.h. */
  4536. #include <sys/types.h>
  4537. #include <sys/time.h>
  4538. #include <time.h>
  4539. int
  4540. main ()
  4541. {
  4542. if ((struct tm *) 0)
  4543. return 0;
  4544. ;
  4545. return 0;
  4546. }
  4547. _ACEOF
  4548. rm -f conftest.$ac_objext
  4549. if { (ac_try="$ac_compile"
  4550. case "(($ac_try" in
  4551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4552. *) ac_try_echo=$ac_try;;
  4553. esac
  4554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4555. (eval "$ac_compile") 2>conftest.er1
  4556. ac_status=$?
  4557. grep -v '^ *+' conftest.er1 >conftest.err
  4558. rm -f conftest.er1
  4559. cat conftest.err >&5
  4560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4561. (exit $ac_status); } && {
  4562. test -z "$ac_cxx_werror_flag" ||
  4563. test ! -s conftest.err
  4564. } && test -s conftest.$ac_objext; then
  4565. ac_cv_header_time=yes
  4566. else
  4567. echo "$as_me: failed program was:" >&5
  4568. sed 's/^/| /' conftest.$ac_ext >&5
  4569. ac_cv_header_time=no
  4570. fi
  4571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4572. fi
  4573. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4574. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4575. if test $ac_cv_header_time = yes; then
  4576. cat >>confdefs.h <<\_ACEOF
  4577. #define TIME_WITH_SYS_TIME 1
  4578. _ACEOF
  4579. fi
  4580. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4581. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  4582. if test "${ac_cv_header_stat_broken+set}" = set; then
  4583. echo $ECHO_N "(cached) $ECHO_C" >&6
  4584. else
  4585. cat >conftest.$ac_ext <<_ACEOF
  4586. /* confdefs.h. */
  4587. _ACEOF
  4588. cat confdefs.h >>conftest.$ac_ext
  4589. cat >>conftest.$ac_ext <<_ACEOF
  4590. /* end confdefs.h. */
  4591. #include <sys/types.h>
  4592. #include <sys/stat.h>
  4593. #if defined S_ISBLK && defined S_IFDIR
  4594. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4595. #endif
  4596. #if defined S_ISBLK && defined S_IFCHR
  4597. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4598. #endif
  4599. #if defined S_ISLNK && defined S_IFREG
  4600. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4601. #endif
  4602. #if defined S_ISSOCK && defined S_IFREG
  4603. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4604. #endif
  4605. _ACEOF
  4606. rm -f conftest.$ac_objext
  4607. if { (ac_try="$ac_compile"
  4608. case "(($ac_try" in
  4609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4610. *) ac_try_echo=$ac_try;;
  4611. esac
  4612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4613. (eval "$ac_compile") 2>conftest.er1
  4614. ac_status=$?
  4615. grep -v '^ *+' conftest.er1 >conftest.err
  4616. rm -f conftest.er1
  4617. cat conftest.err >&5
  4618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4619. (exit $ac_status); } && {
  4620. test -z "$ac_cxx_werror_flag" ||
  4621. test ! -s conftest.err
  4622. } && test -s conftest.$ac_objext; then
  4623. ac_cv_header_stat_broken=no
  4624. else
  4625. echo "$as_me: failed program was:" >&5
  4626. sed 's/^/| /' conftest.$ac_ext >&5
  4627. ac_cv_header_stat_broken=yes
  4628. fi
  4629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4630. fi
  4631. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4632. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  4633. if test $ac_cv_header_stat_broken = yes; then
  4634. cat >>confdefs.h <<\_ACEOF
  4635. #define STAT_MACROS_BROKEN 1
  4636. _ACEOF
  4637. fi
  4638. #checkpoint
  4639. cat >confcache <<\_ACEOF
  4640. # This file is a shell script that caches the results of configure
  4641. # tests run on this system so they can be shared between configure
  4642. # scripts and configure runs, see configure's option --config-cache.
  4643. # It is not useful on other systems. If it contains results you don't
  4644. # want to keep, you may remove or edit it.
  4645. #
  4646. # config.status only pays attention to the cache file if you give it
  4647. # the --recheck option to rerun configure.
  4648. #
  4649. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4650. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4651. # following values.
  4652. _ACEOF
  4653. # The following way of writing the cache mishandles newlines in values,
  4654. # but we know of no workaround that is simple, portable, and efficient.
  4655. # So, we kill variables containing newlines.
  4656. # Ultrix sh set writes to stderr and can't be redirected directly,
  4657. # and sets the high bit in the cache file unless we assign to the vars.
  4658. (
  4659. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4660. eval ac_val=\$$ac_var
  4661. case $ac_val in #(
  4662. *${as_nl}*)
  4663. case $ac_var in #(
  4664. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4665. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4666. esac
  4667. case $ac_var in #(
  4668. _ | IFS | as_nl) ;; #(
  4669. *) $as_unset $ac_var ;;
  4670. esac ;;
  4671. esac
  4672. done
  4673. (set) 2>&1 |
  4674. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4675. *${as_nl}ac_space=\ *)
  4676. # `set' does not quote correctly, so add quotes (double-quote
  4677. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4678. sed -n \
  4679. "s/'/'\\\\''/g;
  4680. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4681. ;; #(
  4682. *)
  4683. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4684. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4685. ;;
  4686. esac |
  4687. sort
  4688. ) |
  4689. sed '
  4690. /^ac_cv_env_/b end
  4691. t clear
  4692. :clear
  4693. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4694. t end
  4695. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4696. :end' >>confcache
  4697. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4698. if test -w "$cache_file"; then
  4699. test "x$cache_file" != "x/dev/null" &&
  4700. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4701. echo "$as_me: updating cache $cache_file" >&6;}
  4702. cat confcache >$cache_file
  4703. else
  4704. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4705. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4706. fi
  4707. fi
  4708. rm -f confcache
  4709. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4710. do
  4711. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4712. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4713. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4714. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4716. echo $ECHO_N "(cached) $ECHO_C" >&6
  4717. fi
  4718. ac_res=`eval echo '${'$as_ac_Header'}'`
  4719. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4720. echo "${ECHO_T}$ac_res" >&6; }
  4721. else
  4722. # Is the header compilable?
  4723. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4724. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4725. cat >conftest.$ac_ext <<_ACEOF
  4726. /* confdefs.h. */
  4727. _ACEOF
  4728. cat confdefs.h >>conftest.$ac_ext
  4729. cat >>conftest.$ac_ext <<_ACEOF
  4730. /* end confdefs.h. */
  4731. $ac_includes_default
  4732. #include <$ac_header>
  4733. _ACEOF
  4734. rm -f conftest.$ac_objext
  4735. if { (ac_try="$ac_compile"
  4736. case "(($ac_try" in
  4737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4738. *) ac_try_echo=$ac_try;;
  4739. esac
  4740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4741. (eval "$ac_compile") 2>conftest.er1
  4742. ac_status=$?
  4743. grep -v '^ *+' conftest.er1 >conftest.err
  4744. rm -f conftest.er1
  4745. cat conftest.err >&5
  4746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4747. (exit $ac_status); } && {
  4748. test -z "$ac_cxx_werror_flag" ||
  4749. test ! -s conftest.err
  4750. } && test -s conftest.$ac_objext; then
  4751. ac_header_compiler=yes
  4752. else
  4753. echo "$as_me: failed program was:" >&5
  4754. sed 's/^/| /' conftest.$ac_ext >&5
  4755. ac_header_compiler=no
  4756. fi
  4757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4758. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4759. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4760. # Is the header present?
  4761. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4762. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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. #include <$ac_header>
  4770. _ACEOF
  4771. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4772. case "(($ac_try" in
  4773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4774. *) ac_try_echo=$ac_try;;
  4775. esac
  4776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4777. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4778. ac_status=$?
  4779. grep -v '^ *+' conftest.er1 >conftest.err
  4780. rm -f conftest.er1
  4781. cat conftest.err >&5
  4782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4783. (exit $ac_status); } >/dev/null && {
  4784. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4785. test ! -s conftest.err
  4786. }; then
  4787. ac_header_preproc=yes
  4788. else
  4789. echo "$as_me: failed program was:" >&5
  4790. sed 's/^/| /' conftest.$ac_ext >&5
  4791. ac_header_preproc=no
  4792. fi
  4793. rm -f conftest.err conftest.$ac_ext
  4794. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4795. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4796. # So? What about this header?
  4797. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4798. yes:no: )
  4799. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4800. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4802. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4803. ac_header_preproc=yes
  4804. ;;
  4805. no:yes:* )
  4806. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4807. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4808. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4809. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4810. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4811. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4812. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4813. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4814. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4815. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4816. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4817. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4818. ;;
  4819. esac
  4820. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4821. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4822. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4823. echo $ECHO_N "(cached) $ECHO_C" >&6
  4824. else
  4825. eval "$as_ac_Header=\$ac_header_preproc"
  4826. fi
  4827. ac_res=`eval echo '${'$as_ac_Header'}'`
  4828. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4829. echo "${ECHO_T}$ac_res" >&6; }
  4830. fi
  4831. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4832. cat >>confdefs.h <<_ACEOF
  4833. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4834. _ACEOF
  4835. fi
  4836. done
  4837. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4838. do
  4839. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4840. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4841. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4842. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4843. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4844. echo $ECHO_N "(cached) $ECHO_C" >&6
  4845. fi
  4846. ac_res=`eval echo '${'$as_ac_Header'}'`
  4847. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4848. echo "${ECHO_T}$ac_res" >&6; }
  4849. else
  4850. # Is the header compilable?
  4851. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4852. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4853. cat >conftest.$ac_ext <<_ACEOF
  4854. /* confdefs.h. */
  4855. _ACEOF
  4856. cat confdefs.h >>conftest.$ac_ext
  4857. cat >>conftest.$ac_ext <<_ACEOF
  4858. /* end confdefs.h. */
  4859. $ac_includes_default
  4860. #include <$ac_header>
  4861. _ACEOF
  4862. rm -f conftest.$ac_objext
  4863. if { (ac_try="$ac_compile"
  4864. case "(($ac_try" in
  4865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4866. *) ac_try_echo=$ac_try;;
  4867. esac
  4868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4869. (eval "$ac_compile") 2>conftest.er1
  4870. ac_status=$?
  4871. grep -v '^ *+' conftest.er1 >conftest.err
  4872. rm -f conftest.er1
  4873. cat conftest.err >&5
  4874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4875. (exit $ac_status); } && {
  4876. test -z "$ac_cxx_werror_flag" ||
  4877. test ! -s conftest.err
  4878. } && test -s conftest.$ac_objext; then
  4879. ac_header_compiler=yes
  4880. else
  4881. echo "$as_me: failed program was:" >&5
  4882. sed 's/^/| /' conftest.$ac_ext >&5
  4883. ac_header_compiler=no
  4884. fi
  4885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4886. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4887. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4888. # Is the header present?
  4889. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4890. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4891. cat >conftest.$ac_ext <<_ACEOF
  4892. /* confdefs.h. */
  4893. _ACEOF
  4894. cat confdefs.h >>conftest.$ac_ext
  4895. cat >>conftest.$ac_ext <<_ACEOF
  4896. /* end confdefs.h. */
  4897. #include <$ac_header>
  4898. _ACEOF
  4899. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4900. case "(($ac_try" in
  4901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4902. *) ac_try_echo=$ac_try;;
  4903. esac
  4904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4905. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4906. ac_status=$?
  4907. grep -v '^ *+' conftest.er1 >conftest.err
  4908. rm -f conftest.er1
  4909. cat conftest.err >&5
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); } >/dev/null && {
  4912. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4913. test ! -s conftest.err
  4914. }; then
  4915. ac_header_preproc=yes
  4916. else
  4917. echo "$as_me: failed program was:" >&5
  4918. sed 's/^/| /' conftest.$ac_ext >&5
  4919. ac_header_preproc=no
  4920. fi
  4921. rm -f conftest.err conftest.$ac_ext
  4922. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4923. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4924. # So? What about this header?
  4925. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4926. yes:no: )
  4927. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4928. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4929. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4930. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4931. ac_header_preproc=yes
  4932. ;;
  4933. no:yes:* )
  4934. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4935. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4936. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4937. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4938. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4939. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4940. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4941. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4942. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4943. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4944. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4945. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4946. ;;
  4947. esac
  4948. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4949. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4950. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4951. echo $ECHO_N "(cached) $ECHO_C" >&6
  4952. else
  4953. eval "$as_ac_Header=\$ac_header_preproc"
  4954. fi
  4955. ac_res=`eval echo '${'$as_ac_Header'}'`
  4956. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4957. echo "${ECHO_T}$ac_res" >&6; }
  4958. fi
  4959. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4960. cat >>confdefs.h <<_ACEOF
  4961. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4962. _ACEOF
  4963. fi
  4964. done
  4965. #checkpoint
  4966. cat >confcache <<\_ACEOF
  4967. # This file is a shell script that caches the results of configure
  4968. # tests run on this system so they can be shared between configure
  4969. # scripts and configure runs, see configure's option --config-cache.
  4970. # It is not useful on other systems. If it contains results you don't
  4971. # want to keep, you may remove or edit it.
  4972. #
  4973. # config.status only pays attention to the cache file if you give it
  4974. # the --recheck option to rerun configure.
  4975. #
  4976. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4977. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4978. # following values.
  4979. _ACEOF
  4980. # The following way of writing the cache mishandles newlines in values,
  4981. # but we know of no workaround that is simple, portable, and efficient.
  4982. # So, we kill variables containing newlines.
  4983. # Ultrix sh set writes to stderr and can't be redirected directly,
  4984. # and sets the high bit in the cache file unless we assign to the vars.
  4985. (
  4986. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4987. eval ac_val=\$$ac_var
  4988. case $ac_val in #(
  4989. *${as_nl}*)
  4990. case $ac_var in #(
  4991. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4992. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4993. esac
  4994. case $ac_var in #(
  4995. _ | IFS | as_nl) ;; #(
  4996. *) $as_unset $ac_var ;;
  4997. esac ;;
  4998. esac
  4999. done
  5000. (set) 2>&1 |
  5001. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5002. *${as_nl}ac_space=\ *)
  5003. # `set' does not quote correctly, so add quotes (double-quote
  5004. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5005. sed -n \
  5006. "s/'/'\\\\''/g;
  5007. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5008. ;; #(
  5009. *)
  5010. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5011. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5012. ;;
  5013. esac |
  5014. sort
  5015. ) |
  5016. sed '
  5017. /^ac_cv_env_/b end
  5018. t clear
  5019. :clear
  5020. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5021. t end
  5022. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5023. :end' >>confcache
  5024. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5025. if test -w "$cache_file"; then
  5026. test "x$cache_file" != "x/dev/null" &&
  5027. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5028. echo "$as_me: updating cache $cache_file" >&6;}
  5029. cat confcache >$cache_file
  5030. else
  5031. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5032. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5033. fi
  5034. fi
  5035. rm -f confcache
  5036. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5037. #AC_CHECK_HEADERS(zlib.h)
  5038. #EGG_CHECK_ZLIB
  5039. #EGG_CHECK_SSL
  5040. #AC_SUBST(ZLIB)dnl
  5041. #AC_SUBST(SSL)dnl
  5042. # Checks for typedefs, structures, and compiler characteristics
  5043. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5044. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5045. if test "${ac_cv_type_pid_t+set}" = set; then
  5046. echo $ECHO_N "(cached) $ECHO_C" >&6
  5047. else
  5048. cat >conftest.$ac_ext <<_ACEOF
  5049. /* confdefs.h. */
  5050. _ACEOF
  5051. cat confdefs.h >>conftest.$ac_ext
  5052. cat >>conftest.$ac_ext <<_ACEOF
  5053. /* end confdefs.h. */
  5054. $ac_includes_default
  5055. typedef pid_t ac__type_new_;
  5056. int
  5057. main ()
  5058. {
  5059. if ((ac__type_new_ *) 0)
  5060. return 0;
  5061. if (sizeof (ac__type_new_))
  5062. return 0;
  5063. ;
  5064. return 0;
  5065. }
  5066. _ACEOF
  5067. rm -f conftest.$ac_objext
  5068. if { (ac_try="$ac_compile"
  5069. case "(($ac_try" in
  5070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5071. *) ac_try_echo=$ac_try;;
  5072. esac
  5073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5074. (eval "$ac_compile") 2>conftest.er1
  5075. ac_status=$?
  5076. grep -v '^ *+' conftest.er1 >conftest.err
  5077. rm -f conftest.er1
  5078. cat conftest.err >&5
  5079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5080. (exit $ac_status); } && {
  5081. test -z "$ac_cxx_werror_flag" ||
  5082. test ! -s conftest.err
  5083. } && test -s conftest.$ac_objext; then
  5084. ac_cv_type_pid_t=yes
  5085. else
  5086. echo "$as_me: failed program was:" >&5
  5087. sed 's/^/| /' conftest.$ac_ext >&5
  5088. ac_cv_type_pid_t=no
  5089. fi
  5090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5091. fi
  5092. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5093. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5094. if test $ac_cv_type_pid_t = yes; then
  5095. :
  5096. else
  5097. cat >>confdefs.h <<_ACEOF
  5098. #define pid_t int
  5099. _ACEOF
  5100. fi
  5101. { echo "$as_me:$LINENO: checking for size_t" >&5
  5102. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5103. if test "${ac_cv_type_size_t+set}" = set; then
  5104. echo $ECHO_N "(cached) $ECHO_C" >&6
  5105. else
  5106. cat >conftest.$ac_ext <<_ACEOF
  5107. /* confdefs.h. */
  5108. _ACEOF
  5109. cat confdefs.h >>conftest.$ac_ext
  5110. cat >>conftest.$ac_ext <<_ACEOF
  5111. /* end confdefs.h. */
  5112. $ac_includes_default
  5113. typedef size_t ac__type_new_;
  5114. int
  5115. main ()
  5116. {
  5117. if ((ac__type_new_ *) 0)
  5118. return 0;
  5119. if (sizeof (ac__type_new_))
  5120. return 0;
  5121. ;
  5122. return 0;
  5123. }
  5124. _ACEOF
  5125. rm -f conftest.$ac_objext
  5126. if { (ac_try="$ac_compile"
  5127. case "(($ac_try" in
  5128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5129. *) ac_try_echo=$ac_try;;
  5130. esac
  5131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5132. (eval "$ac_compile") 2>conftest.er1
  5133. ac_status=$?
  5134. grep -v '^ *+' conftest.er1 >conftest.err
  5135. rm -f conftest.er1
  5136. cat conftest.err >&5
  5137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5138. (exit $ac_status); } && {
  5139. test -z "$ac_cxx_werror_flag" ||
  5140. test ! -s conftest.err
  5141. } && test -s conftest.$ac_objext; then
  5142. ac_cv_type_size_t=yes
  5143. else
  5144. echo "$as_me: failed program was:" >&5
  5145. sed 's/^/| /' conftest.$ac_ext >&5
  5146. ac_cv_type_size_t=no
  5147. fi
  5148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5149. fi
  5150. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5151. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5152. if test $ac_cv_type_size_t = yes; then
  5153. :
  5154. else
  5155. cat >>confdefs.h <<_ACEOF
  5156. #define size_t unsigned int
  5157. _ACEOF
  5158. fi
  5159. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5160. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  5161. if test "${ac_cv_type_uid_t+set}" = set; then
  5162. echo $ECHO_N "(cached) $ECHO_C" >&6
  5163. else
  5164. cat >conftest.$ac_ext <<_ACEOF
  5165. /* confdefs.h. */
  5166. _ACEOF
  5167. cat confdefs.h >>conftest.$ac_ext
  5168. cat >>conftest.$ac_ext <<_ACEOF
  5169. /* end confdefs.h. */
  5170. #include <sys/types.h>
  5171. _ACEOF
  5172. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5173. $EGREP "uid_t" >/dev/null 2>&1; then
  5174. ac_cv_type_uid_t=yes
  5175. else
  5176. ac_cv_type_uid_t=no
  5177. fi
  5178. rm -f conftest*
  5179. fi
  5180. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5181. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  5182. if test $ac_cv_type_uid_t = no; then
  5183. cat >>confdefs.h <<\_ACEOF
  5184. #define uid_t int
  5185. _ACEOF
  5186. cat >>confdefs.h <<\_ACEOF
  5187. #define gid_t int
  5188. _ACEOF
  5189. fi
  5190. #AC_C_CONST
  5191. { echo "$as_me:$LINENO: checking for working volatile" >&5
  5192. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  5193. if test "${ac_cv_c_volatile+set}" = set; then
  5194. echo $ECHO_N "(cached) $ECHO_C" >&6
  5195. else
  5196. cat >conftest.$ac_ext <<_ACEOF
  5197. /* confdefs.h. */
  5198. _ACEOF
  5199. cat confdefs.h >>conftest.$ac_ext
  5200. cat >>conftest.$ac_ext <<_ACEOF
  5201. /* end confdefs.h. */
  5202. int
  5203. main ()
  5204. {
  5205. volatile int x;
  5206. int * volatile y = (int *) 0;
  5207. return !x && !y;
  5208. ;
  5209. return 0;
  5210. }
  5211. _ACEOF
  5212. rm -f conftest.$ac_objext
  5213. if { (ac_try="$ac_compile"
  5214. case "(($ac_try" in
  5215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5216. *) ac_try_echo=$ac_try;;
  5217. esac
  5218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5219. (eval "$ac_compile") 2>conftest.er1
  5220. ac_status=$?
  5221. grep -v '^ *+' conftest.er1 >conftest.err
  5222. rm -f conftest.er1
  5223. cat conftest.err >&5
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); } && {
  5226. test -z "$ac_cxx_werror_flag" ||
  5227. test ! -s conftest.err
  5228. } && test -s conftest.$ac_objext; then
  5229. ac_cv_c_volatile=yes
  5230. else
  5231. echo "$as_me: failed program was:" >&5
  5232. sed 's/^/| /' conftest.$ac_ext >&5
  5233. ac_cv_c_volatile=no
  5234. fi
  5235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5236. fi
  5237. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5238. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  5239. if test $ac_cv_c_volatile = no; then
  5240. cat >>confdefs.h <<\_ACEOF
  5241. #define volatile
  5242. _ACEOF
  5243. fi
  5244. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5245. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  5246. if test "${ac_cv_c_bigendian+set}" = set; then
  5247. echo $ECHO_N "(cached) $ECHO_C" >&6
  5248. else
  5249. # See if sys/param.h defines the BYTE_ORDER macro.
  5250. cat >conftest.$ac_ext <<_ACEOF
  5251. /* confdefs.h. */
  5252. _ACEOF
  5253. cat confdefs.h >>conftest.$ac_ext
  5254. cat >>conftest.$ac_ext <<_ACEOF
  5255. /* end confdefs.h. */
  5256. #include <sys/types.h>
  5257. #include <sys/param.h>
  5258. int
  5259. main ()
  5260. {
  5261. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  5262. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  5263. bogus endian macros
  5264. #endif
  5265. ;
  5266. return 0;
  5267. }
  5268. _ACEOF
  5269. rm -f conftest.$ac_objext
  5270. if { (ac_try="$ac_compile"
  5271. case "(($ac_try" in
  5272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5273. *) ac_try_echo=$ac_try;;
  5274. esac
  5275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5276. (eval "$ac_compile") 2>conftest.er1
  5277. ac_status=$?
  5278. grep -v '^ *+' conftest.er1 >conftest.err
  5279. rm -f conftest.er1
  5280. cat conftest.err >&5
  5281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5282. (exit $ac_status); } && {
  5283. test -z "$ac_cxx_werror_flag" ||
  5284. test ! -s conftest.err
  5285. } && test -s conftest.$ac_objext; then
  5286. # It does; now see whether it defined to BIG_ENDIAN or not.
  5287. cat >conftest.$ac_ext <<_ACEOF
  5288. /* confdefs.h. */
  5289. _ACEOF
  5290. cat confdefs.h >>conftest.$ac_ext
  5291. cat >>conftest.$ac_ext <<_ACEOF
  5292. /* end confdefs.h. */
  5293. #include <sys/types.h>
  5294. #include <sys/param.h>
  5295. int
  5296. main ()
  5297. {
  5298. #if BYTE_ORDER != BIG_ENDIAN
  5299. not big endian
  5300. #endif
  5301. ;
  5302. return 0;
  5303. }
  5304. _ACEOF
  5305. rm -f conftest.$ac_objext
  5306. if { (ac_try="$ac_compile"
  5307. case "(($ac_try" in
  5308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5309. *) ac_try_echo=$ac_try;;
  5310. esac
  5311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5312. (eval "$ac_compile") 2>conftest.er1
  5313. ac_status=$?
  5314. grep -v '^ *+' conftest.er1 >conftest.err
  5315. rm -f conftest.er1
  5316. cat conftest.err >&5
  5317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5318. (exit $ac_status); } && {
  5319. test -z "$ac_cxx_werror_flag" ||
  5320. test ! -s conftest.err
  5321. } && test -s conftest.$ac_objext; then
  5322. ac_cv_c_bigendian=yes
  5323. else
  5324. echo "$as_me: failed program was:" >&5
  5325. sed 's/^/| /' conftest.$ac_ext >&5
  5326. ac_cv_c_bigendian=no
  5327. fi
  5328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5329. else
  5330. echo "$as_me: failed program was:" >&5
  5331. sed 's/^/| /' conftest.$ac_ext >&5
  5332. # It does not; compile a test program.
  5333. if test "$cross_compiling" = yes; then
  5334. # try to guess the endianness by grepping values into an object file
  5335. ac_cv_c_bigendian=unknown
  5336. cat >conftest.$ac_ext <<_ACEOF
  5337. /* confdefs.h. */
  5338. _ACEOF
  5339. cat confdefs.h >>conftest.$ac_ext
  5340. cat >>conftest.$ac_ext <<_ACEOF
  5341. /* end confdefs.h. */
  5342. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5343. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5344. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5345. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5346. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5347. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5348. int
  5349. main ()
  5350. {
  5351. _ascii (); _ebcdic ();
  5352. ;
  5353. return 0;
  5354. }
  5355. _ACEOF
  5356. rm -f conftest.$ac_objext
  5357. if { (ac_try="$ac_compile"
  5358. case "(($ac_try" in
  5359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5360. *) ac_try_echo=$ac_try;;
  5361. esac
  5362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5363. (eval "$ac_compile") 2>conftest.er1
  5364. ac_status=$?
  5365. grep -v '^ *+' conftest.er1 >conftest.err
  5366. rm -f conftest.er1
  5367. cat conftest.err >&5
  5368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369. (exit $ac_status); } && {
  5370. test -z "$ac_cxx_werror_flag" ||
  5371. test ! -s conftest.err
  5372. } && test -s conftest.$ac_objext; then
  5373. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5374. ac_cv_c_bigendian=yes
  5375. fi
  5376. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5377. if test "$ac_cv_c_bigendian" = unknown; then
  5378. ac_cv_c_bigendian=no
  5379. else
  5380. # finding both strings is unlikely to happen, but who knows?
  5381. ac_cv_c_bigendian=unknown
  5382. fi
  5383. fi
  5384. else
  5385. echo "$as_me: failed program was:" >&5
  5386. sed 's/^/| /' conftest.$ac_ext >&5
  5387. fi
  5388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5389. else
  5390. cat >conftest.$ac_ext <<_ACEOF
  5391. /* confdefs.h. */
  5392. _ACEOF
  5393. cat confdefs.h >>conftest.$ac_ext
  5394. cat >>conftest.$ac_ext <<_ACEOF
  5395. /* end confdefs.h. */
  5396. $ac_includes_default
  5397. int
  5398. main ()
  5399. {
  5400. /* Are we little or big endian? From Harbison&Steele. */
  5401. union
  5402. {
  5403. long int l;
  5404. char c[sizeof (long int)];
  5405. } u;
  5406. u.l = 1;
  5407. return u.c[sizeof (long int) - 1] == 1;
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. rm -f conftest$ac_exeext
  5413. if { (ac_try="$ac_link"
  5414. case "(($ac_try" in
  5415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416. *) ac_try_echo=$ac_try;;
  5417. esac
  5418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5419. (eval "$ac_link") 2>&5
  5420. ac_status=$?
  5421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5422. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5423. { (case "(($ac_try" in
  5424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5425. *) ac_try_echo=$ac_try;;
  5426. esac
  5427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5428. (eval "$ac_try") 2>&5
  5429. ac_status=$?
  5430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431. (exit $ac_status); }; }; then
  5432. ac_cv_c_bigendian=no
  5433. else
  5434. echo "$as_me: program exited with status $ac_status" >&5
  5435. echo "$as_me: failed program was:" >&5
  5436. sed 's/^/| /' conftest.$ac_ext >&5
  5437. ( exit $ac_status )
  5438. ac_cv_c_bigendian=yes
  5439. fi
  5440. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5441. fi
  5442. fi
  5443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5444. fi
  5445. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5446. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  5447. case $ac_cv_c_bigendian in
  5448. yes)
  5449. cat >>confdefs.h <<\_ACEOF
  5450. #define B_ENDIAN 1
  5451. _ACEOF
  5452. ;;
  5453. no)
  5454. cat >>confdefs.h <<\_ACEOF
  5455. #define L_ENDIAN 1
  5456. _ACEOF
  5457. ;;
  5458. *)
  5459. { { echo "$as_me:$LINENO: error: unknown endianness
  5460. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5461. echo "$as_me: error: unknown endianness
  5462. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5463. { (exit 1); exit 1; }; } ;;
  5464. esac
  5465. #AC_C_INLINE
  5466. { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5467. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
  5468. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5469. echo $ECHO_N "(cached) $ECHO_C" >&6
  5470. else
  5471. cat >conftest.$ac_ext <<_ACEOF
  5472. /* confdefs.h. */
  5473. _ACEOF
  5474. cat confdefs.h >>conftest.$ac_ext
  5475. cat >>conftest.$ac_ext <<_ACEOF
  5476. /* end confdefs.h. */
  5477. $ac_includes_default
  5478. int
  5479. main ()
  5480. {
  5481. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5482. test_array [0] = 0
  5483. ;
  5484. return 0;
  5485. }
  5486. _ACEOF
  5487. rm -f conftest.$ac_objext
  5488. if { (ac_try="$ac_compile"
  5489. case "(($ac_try" in
  5490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5491. *) ac_try_echo=$ac_try;;
  5492. esac
  5493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5494. (eval "$ac_compile") 2>conftest.er1
  5495. ac_status=$?
  5496. grep -v '^ *+' conftest.er1 >conftest.err
  5497. rm -f conftest.er1
  5498. cat conftest.err >&5
  5499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5500. (exit $ac_status); } && {
  5501. test -z "$ac_cxx_werror_flag" ||
  5502. test ! -s conftest.err
  5503. } && test -s conftest.$ac_objext; then
  5504. ac_cv_c_char_unsigned=no
  5505. else
  5506. echo "$as_me: failed program was:" >&5
  5507. sed 's/^/| /' conftest.$ac_ext >&5
  5508. ac_cv_c_char_unsigned=yes
  5509. fi
  5510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5511. fi
  5512. { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5513. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
  5514. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5515. cat >>confdefs.h <<\_ACEOF
  5516. #define __CHAR_UNSIGNED__ 1
  5517. _ACEOF
  5518. fi
  5519. #AC_C_STRINGIZE
  5520. #AC_C_PROTOTYPES
  5521. #checkpoint
  5522. cat >confcache <<\_ACEOF
  5523. # This file is a shell script that caches the results of configure
  5524. # tests run on this system so they can be shared between configure
  5525. # scripts and configure runs, see configure's option --config-cache.
  5526. # It is not useful on other systems. If it contains results you don't
  5527. # want to keep, you may remove or edit it.
  5528. #
  5529. # config.status only pays attention to the cache file if you give it
  5530. # the --recheck option to rerun configure.
  5531. #
  5532. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5533. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5534. # following values.
  5535. _ACEOF
  5536. # The following way of writing the cache mishandles newlines in values,
  5537. # but we know of no workaround that is simple, portable, and efficient.
  5538. # So, we kill variables containing newlines.
  5539. # Ultrix sh set writes to stderr and can't be redirected directly,
  5540. # and sets the high bit in the cache file unless we assign to the vars.
  5541. (
  5542. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5543. eval ac_val=\$$ac_var
  5544. case $ac_val in #(
  5545. *${as_nl}*)
  5546. case $ac_var in #(
  5547. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5548. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5549. esac
  5550. case $ac_var in #(
  5551. _ | IFS | as_nl) ;; #(
  5552. *) $as_unset $ac_var ;;
  5553. esac ;;
  5554. esac
  5555. done
  5556. (set) 2>&1 |
  5557. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5558. *${as_nl}ac_space=\ *)
  5559. # `set' does not quote correctly, so add quotes (double-quote
  5560. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5561. sed -n \
  5562. "s/'/'\\\\''/g;
  5563. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5564. ;; #(
  5565. *)
  5566. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5567. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5568. ;;
  5569. esac |
  5570. sort
  5571. ) |
  5572. sed '
  5573. /^ac_cv_env_/b end
  5574. t clear
  5575. :clear
  5576. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5577. t end
  5578. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5579. :end' >>confcache
  5580. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5581. if test -w "$cache_file"; then
  5582. test "x$cache_file" != "x/dev/null" &&
  5583. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5584. echo "$as_me: updating cache $cache_file" >&6;}
  5585. cat confcache >$cache_file
  5586. else
  5587. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5588. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5589. fi
  5590. fi
  5591. rm -f confcache
  5592. { echo "$as_me:$LINENO: checking for short" >&5
  5593. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  5594. if test "${ac_cv_type_short+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. cat >conftest.$ac_ext <<_ACEOF
  5598. /* confdefs.h. */
  5599. _ACEOF
  5600. cat confdefs.h >>conftest.$ac_ext
  5601. cat >>conftest.$ac_ext <<_ACEOF
  5602. /* end confdefs.h. */
  5603. $ac_includes_default
  5604. typedef short ac__type_new_;
  5605. int
  5606. main ()
  5607. {
  5608. if ((ac__type_new_ *) 0)
  5609. return 0;
  5610. if (sizeof (ac__type_new_))
  5611. return 0;
  5612. ;
  5613. return 0;
  5614. }
  5615. _ACEOF
  5616. rm -f conftest.$ac_objext
  5617. if { (ac_try="$ac_compile"
  5618. case "(($ac_try" in
  5619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5620. *) ac_try_echo=$ac_try;;
  5621. esac
  5622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5623. (eval "$ac_compile") 2>conftest.er1
  5624. ac_status=$?
  5625. grep -v '^ *+' conftest.er1 >conftest.err
  5626. rm -f conftest.er1
  5627. cat conftest.err >&5
  5628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5629. (exit $ac_status); } && {
  5630. test -z "$ac_cxx_werror_flag" ||
  5631. test ! -s conftest.err
  5632. } && test -s conftest.$ac_objext; then
  5633. ac_cv_type_short=yes
  5634. else
  5635. echo "$as_me: failed program was:" >&5
  5636. sed 's/^/| /' conftest.$ac_ext >&5
  5637. ac_cv_type_short=no
  5638. fi
  5639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5640. fi
  5641. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5642. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  5643. # The cast to long int works around a bug in the HP C Compiler
  5644. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5645. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5646. # This bug is HP SR number 8606223364.
  5647. { echo "$as_me:$LINENO: checking size of short" >&5
  5648. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  5649. if test "${ac_cv_sizeof_short+set}" = set; then
  5650. echo $ECHO_N "(cached) $ECHO_C" >&6
  5651. else
  5652. if test "$cross_compiling" = yes; then
  5653. # Depending upon the size, compute the lo and hi bounds.
  5654. cat >conftest.$ac_ext <<_ACEOF
  5655. /* confdefs.h. */
  5656. _ACEOF
  5657. cat confdefs.h >>conftest.$ac_ext
  5658. cat >>conftest.$ac_ext <<_ACEOF
  5659. /* end confdefs.h. */
  5660. $ac_includes_default
  5661. typedef short ac__type_sizeof_;
  5662. int
  5663. main ()
  5664. {
  5665. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5666. test_array [0] = 0
  5667. ;
  5668. return 0;
  5669. }
  5670. _ACEOF
  5671. rm -f conftest.$ac_objext
  5672. if { (ac_try="$ac_compile"
  5673. case "(($ac_try" in
  5674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5675. *) ac_try_echo=$ac_try;;
  5676. esac
  5677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5678. (eval "$ac_compile") 2>conftest.er1
  5679. ac_status=$?
  5680. grep -v '^ *+' conftest.er1 >conftest.err
  5681. rm -f conftest.er1
  5682. cat conftest.err >&5
  5683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); } && {
  5685. test -z "$ac_cxx_werror_flag" ||
  5686. test ! -s conftest.err
  5687. } && test -s conftest.$ac_objext; then
  5688. ac_lo=0 ac_mid=0
  5689. while :; do
  5690. cat >conftest.$ac_ext <<_ACEOF
  5691. /* confdefs.h. */
  5692. _ACEOF
  5693. cat confdefs.h >>conftest.$ac_ext
  5694. cat >>conftest.$ac_ext <<_ACEOF
  5695. /* end confdefs.h. */
  5696. $ac_includes_default
  5697. typedef short ac__type_sizeof_;
  5698. int
  5699. main ()
  5700. {
  5701. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5702. test_array [0] = 0
  5703. ;
  5704. return 0;
  5705. }
  5706. _ACEOF
  5707. rm -f conftest.$ac_objext
  5708. if { (ac_try="$ac_compile"
  5709. case "(($ac_try" in
  5710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5711. *) ac_try_echo=$ac_try;;
  5712. esac
  5713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5714. (eval "$ac_compile") 2>conftest.er1
  5715. ac_status=$?
  5716. grep -v '^ *+' conftest.er1 >conftest.err
  5717. rm -f conftest.er1
  5718. cat conftest.err >&5
  5719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5720. (exit $ac_status); } && {
  5721. test -z "$ac_cxx_werror_flag" ||
  5722. test ! -s conftest.err
  5723. } && test -s conftest.$ac_objext; then
  5724. ac_hi=$ac_mid; break
  5725. else
  5726. echo "$as_me: failed program was:" >&5
  5727. sed 's/^/| /' conftest.$ac_ext >&5
  5728. ac_lo=`expr $ac_mid + 1`
  5729. if test $ac_lo -le $ac_mid; then
  5730. ac_lo= ac_hi=
  5731. break
  5732. fi
  5733. ac_mid=`expr 2 '*' $ac_mid + 1`
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5736. done
  5737. else
  5738. echo "$as_me: failed program was:" >&5
  5739. sed 's/^/| /' conftest.$ac_ext >&5
  5740. cat >conftest.$ac_ext <<_ACEOF
  5741. /* confdefs.h. */
  5742. _ACEOF
  5743. cat confdefs.h >>conftest.$ac_ext
  5744. cat >>conftest.$ac_ext <<_ACEOF
  5745. /* end confdefs.h. */
  5746. $ac_includes_default
  5747. typedef short ac__type_sizeof_;
  5748. int
  5749. main ()
  5750. {
  5751. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5752. test_array [0] = 0
  5753. ;
  5754. return 0;
  5755. }
  5756. _ACEOF
  5757. rm -f conftest.$ac_objext
  5758. if { (ac_try="$ac_compile"
  5759. case "(($ac_try" in
  5760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5761. *) ac_try_echo=$ac_try;;
  5762. esac
  5763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5764. (eval "$ac_compile") 2>conftest.er1
  5765. ac_status=$?
  5766. grep -v '^ *+' conftest.er1 >conftest.err
  5767. rm -f conftest.er1
  5768. cat conftest.err >&5
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); } && {
  5771. test -z "$ac_cxx_werror_flag" ||
  5772. test ! -s conftest.err
  5773. } && test -s conftest.$ac_objext; then
  5774. ac_hi=-1 ac_mid=-1
  5775. while :; do
  5776. cat >conftest.$ac_ext <<_ACEOF
  5777. /* confdefs.h. */
  5778. _ACEOF
  5779. cat confdefs.h >>conftest.$ac_ext
  5780. cat >>conftest.$ac_ext <<_ACEOF
  5781. /* end confdefs.h. */
  5782. $ac_includes_default
  5783. typedef short ac__type_sizeof_;
  5784. int
  5785. main ()
  5786. {
  5787. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5788. test_array [0] = 0
  5789. ;
  5790. return 0;
  5791. }
  5792. _ACEOF
  5793. rm -f conftest.$ac_objext
  5794. if { (ac_try="$ac_compile"
  5795. case "(($ac_try" in
  5796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5797. *) ac_try_echo=$ac_try;;
  5798. esac
  5799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5800. (eval "$ac_compile") 2>conftest.er1
  5801. ac_status=$?
  5802. grep -v '^ *+' conftest.er1 >conftest.err
  5803. rm -f conftest.er1
  5804. cat conftest.err >&5
  5805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5806. (exit $ac_status); } && {
  5807. test -z "$ac_cxx_werror_flag" ||
  5808. test ! -s conftest.err
  5809. } && test -s conftest.$ac_objext; then
  5810. ac_lo=$ac_mid; break
  5811. else
  5812. echo "$as_me: failed program was:" >&5
  5813. sed 's/^/| /' conftest.$ac_ext >&5
  5814. ac_hi=`expr '(' $ac_mid ')' - 1`
  5815. if test $ac_mid -le $ac_hi; then
  5816. ac_lo= ac_hi=
  5817. break
  5818. fi
  5819. ac_mid=`expr 2 '*' $ac_mid`
  5820. fi
  5821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5822. done
  5823. else
  5824. echo "$as_me: failed program was:" >&5
  5825. sed 's/^/| /' conftest.$ac_ext >&5
  5826. ac_lo= ac_hi=
  5827. fi
  5828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5829. fi
  5830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5831. # Binary search between lo and hi bounds.
  5832. while test "x$ac_lo" != "x$ac_hi"; do
  5833. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5834. cat >conftest.$ac_ext <<_ACEOF
  5835. /* confdefs.h. */
  5836. _ACEOF
  5837. cat confdefs.h >>conftest.$ac_ext
  5838. cat >>conftest.$ac_ext <<_ACEOF
  5839. /* end confdefs.h. */
  5840. $ac_includes_default
  5841. typedef short ac__type_sizeof_;
  5842. int
  5843. main ()
  5844. {
  5845. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5846. test_array [0] = 0
  5847. ;
  5848. return 0;
  5849. }
  5850. _ACEOF
  5851. rm -f conftest.$ac_objext
  5852. if { (ac_try="$ac_compile"
  5853. case "(($ac_try" in
  5854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5855. *) ac_try_echo=$ac_try;;
  5856. esac
  5857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5858. (eval "$ac_compile") 2>conftest.er1
  5859. ac_status=$?
  5860. grep -v '^ *+' conftest.er1 >conftest.err
  5861. rm -f conftest.er1
  5862. cat conftest.err >&5
  5863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5864. (exit $ac_status); } && {
  5865. test -z "$ac_cxx_werror_flag" ||
  5866. test ! -s conftest.err
  5867. } && test -s conftest.$ac_objext; then
  5868. ac_hi=$ac_mid
  5869. else
  5870. echo "$as_me: failed program was:" >&5
  5871. sed 's/^/| /' conftest.$ac_ext >&5
  5872. ac_lo=`expr '(' $ac_mid ')' + 1`
  5873. fi
  5874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5875. done
  5876. case $ac_lo in
  5877. ?*) ac_cv_sizeof_short=$ac_lo;;
  5878. '') if test "$ac_cv_type_short" = yes; then
  5879. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  5880. See \`config.log' for more details." >&5
  5881. echo "$as_me: error: cannot compute sizeof (short)
  5882. See \`config.log' for more details." >&2;}
  5883. { (exit 77); exit 77; }; }
  5884. else
  5885. ac_cv_sizeof_short=0
  5886. fi ;;
  5887. esac
  5888. else
  5889. cat >conftest.$ac_ext <<_ACEOF
  5890. /* confdefs.h. */
  5891. _ACEOF
  5892. cat confdefs.h >>conftest.$ac_ext
  5893. cat >>conftest.$ac_ext <<_ACEOF
  5894. /* end confdefs.h. */
  5895. $ac_includes_default
  5896. typedef short ac__type_sizeof_;
  5897. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5898. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5899. #include <stdio.h>
  5900. #include <stdlib.h>
  5901. int
  5902. main ()
  5903. {
  5904. FILE *f = fopen ("conftest.val", "w");
  5905. if (! f)
  5906. return 1;
  5907. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5908. {
  5909. long int i = longval ();
  5910. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5911. return 1;
  5912. fprintf (f, "%ld\n", i);
  5913. }
  5914. else
  5915. {
  5916. unsigned long int i = ulongval ();
  5917. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5918. return 1;
  5919. fprintf (f, "%lu\n", i);
  5920. }
  5921. return ferror (f) || fclose (f) != 0;
  5922. ;
  5923. return 0;
  5924. }
  5925. _ACEOF
  5926. rm -f conftest$ac_exeext
  5927. if { (ac_try="$ac_link"
  5928. case "(($ac_try" in
  5929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5930. *) ac_try_echo=$ac_try;;
  5931. esac
  5932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5933. (eval "$ac_link") 2>&5
  5934. ac_status=$?
  5935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5936. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5937. { (case "(($ac_try" in
  5938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5939. *) ac_try_echo=$ac_try;;
  5940. esac
  5941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5942. (eval "$ac_try") 2>&5
  5943. ac_status=$?
  5944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5945. (exit $ac_status); }; }; then
  5946. ac_cv_sizeof_short=`cat conftest.val`
  5947. else
  5948. echo "$as_me: program exited with status $ac_status" >&5
  5949. echo "$as_me: failed program was:" >&5
  5950. sed 's/^/| /' conftest.$ac_ext >&5
  5951. ( exit $ac_status )
  5952. if test "$ac_cv_type_short" = yes; then
  5953. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  5954. See \`config.log' for more details." >&5
  5955. echo "$as_me: error: cannot compute sizeof (short)
  5956. See \`config.log' for more details." >&2;}
  5957. { (exit 77); exit 77; }; }
  5958. else
  5959. ac_cv_sizeof_short=0
  5960. fi
  5961. fi
  5962. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5963. fi
  5964. rm -f conftest.val
  5965. fi
  5966. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  5967. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  5968. cat >>confdefs.h <<_ACEOF
  5969. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5970. _ACEOF
  5971. { echo "$as_me:$LINENO: checking for int" >&5
  5972. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  5973. if test "${ac_cv_type_int+set}" = set; then
  5974. echo $ECHO_N "(cached) $ECHO_C" >&6
  5975. else
  5976. cat >conftest.$ac_ext <<_ACEOF
  5977. /* confdefs.h. */
  5978. _ACEOF
  5979. cat confdefs.h >>conftest.$ac_ext
  5980. cat >>conftest.$ac_ext <<_ACEOF
  5981. /* end confdefs.h. */
  5982. $ac_includes_default
  5983. typedef int ac__type_new_;
  5984. int
  5985. main ()
  5986. {
  5987. if ((ac__type_new_ *) 0)
  5988. return 0;
  5989. if (sizeof (ac__type_new_))
  5990. return 0;
  5991. ;
  5992. return 0;
  5993. }
  5994. _ACEOF
  5995. rm -f conftest.$ac_objext
  5996. if { (ac_try="$ac_compile"
  5997. case "(($ac_try" in
  5998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5999. *) ac_try_echo=$ac_try;;
  6000. esac
  6001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6002. (eval "$ac_compile") 2>conftest.er1
  6003. ac_status=$?
  6004. grep -v '^ *+' conftest.er1 >conftest.err
  6005. rm -f conftest.er1
  6006. cat conftest.err >&5
  6007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6008. (exit $ac_status); } && {
  6009. test -z "$ac_cxx_werror_flag" ||
  6010. test ! -s conftest.err
  6011. } && test -s conftest.$ac_objext; then
  6012. ac_cv_type_int=yes
  6013. else
  6014. echo "$as_me: failed program was:" >&5
  6015. sed 's/^/| /' conftest.$ac_ext >&5
  6016. ac_cv_type_int=no
  6017. fi
  6018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6019. fi
  6020. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6021. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  6022. # The cast to long int works around a bug in the HP C Compiler
  6023. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6024. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6025. # This bug is HP SR number 8606223364.
  6026. { echo "$as_me:$LINENO: checking size of int" >&5
  6027. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  6028. if test "${ac_cv_sizeof_int+set}" = set; then
  6029. echo $ECHO_N "(cached) $ECHO_C" >&6
  6030. else
  6031. if test "$cross_compiling" = yes; then
  6032. # Depending upon the size, compute the lo and hi bounds.
  6033. cat >conftest.$ac_ext <<_ACEOF
  6034. /* confdefs.h. */
  6035. _ACEOF
  6036. cat confdefs.h >>conftest.$ac_ext
  6037. cat >>conftest.$ac_ext <<_ACEOF
  6038. /* end confdefs.h. */
  6039. $ac_includes_default
  6040. typedef int ac__type_sizeof_;
  6041. int
  6042. main ()
  6043. {
  6044. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6045. test_array [0] = 0
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. rm -f conftest.$ac_objext
  6051. if { (ac_try="$ac_compile"
  6052. case "(($ac_try" in
  6053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6054. *) ac_try_echo=$ac_try;;
  6055. esac
  6056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6057. (eval "$ac_compile") 2>conftest.er1
  6058. ac_status=$?
  6059. grep -v '^ *+' conftest.er1 >conftest.err
  6060. rm -f conftest.er1
  6061. cat conftest.err >&5
  6062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6063. (exit $ac_status); } && {
  6064. test -z "$ac_cxx_werror_flag" ||
  6065. test ! -s conftest.err
  6066. } && test -s conftest.$ac_objext; then
  6067. ac_lo=0 ac_mid=0
  6068. while :; do
  6069. cat >conftest.$ac_ext <<_ACEOF
  6070. /* confdefs.h. */
  6071. _ACEOF
  6072. cat confdefs.h >>conftest.$ac_ext
  6073. cat >>conftest.$ac_ext <<_ACEOF
  6074. /* end confdefs.h. */
  6075. $ac_includes_default
  6076. typedef int ac__type_sizeof_;
  6077. int
  6078. main ()
  6079. {
  6080. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6081. test_array [0] = 0
  6082. ;
  6083. return 0;
  6084. }
  6085. _ACEOF
  6086. rm -f conftest.$ac_objext
  6087. if { (ac_try="$ac_compile"
  6088. case "(($ac_try" in
  6089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6090. *) ac_try_echo=$ac_try;;
  6091. esac
  6092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6093. (eval "$ac_compile") 2>conftest.er1
  6094. ac_status=$?
  6095. grep -v '^ *+' conftest.er1 >conftest.err
  6096. rm -f conftest.er1
  6097. cat conftest.err >&5
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); } && {
  6100. test -z "$ac_cxx_werror_flag" ||
  6101. test ! -s conftest.err
  6102. } && test -s conftest.$ac_objext; then
  6103. ac_hi=$ac_mid; break
  6104. else
  6105. echo "$as_me: failed program was:" >&5
  6106. sed 's/^/| /' conftest.$ac_ext >&5
  6107. ac_lo=`expr $ac_mid + 1`
  6108. if test $ac_lo -le $ac_mid; then
  6109. ac_lo= ac_hi=
  6110. break
  6111. fi
  6112. ac_mid=`expr 2 '*' $ac_mid + 1`
  6113. fi
  6114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6115. done
  6116. else
  6117. echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119. cat >conftest.$ac_ext <<_ACEOF
  6120. /* confdefs.h. */
  6121. _ACEOF
  6122. cat confdefs.h >>conftest.$ac_ext
  6123. cat >>conftest.$ac_ext <<_ACEOF
  6124. /* end confdefs.h. */
  6125. $ac_includes_default
  6126. typedef int ac__type_sizeof_;
  6127. int
  6128. main ()
  6129. {
  6130. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6131. test_array [0] = 0
  6132. ;
  6133. return 0;
  6134. }
  6135. _ACEOF
  6136. rm -f conftest.$ac_objext
  6137. if { (ac_try="$ac_compile"
  6138. case "(($ac_try" in
  6139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6140. *) ac_try_echo=$ac_try;;
  6141. esac
  6142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6143. (eval "$ac_compile") 2>conftest.er1
  6144. ac_status=$?
  6145. grep -v '^ *+' conftest.er1 >conftest.err
  6146. rm -f conftest.er1
  6147. cat conftest.err >&5
  6148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6149. (exit $ac_status); } && {
  6150. test -z "$ac_cxx_werror_flag" ||
  6151. test ! -s conftest.err
  6152. } && test -s conftest.$ac_objext; then
  6153. ac_hi=-1 ac_mid=-1
  6154. while :; do
  6155. cat >conftest.$ac_ext <<_ACEOF
  6156. /* confdefs.h. */
  6157. _ACEOF
  6158. cat confdefs.h >>conftest.$ac_ext
  6159. cat >>conftest.$ac_ext <<_ACEOF
  6160. /* end confdefs.h. */
  6161. $ac_includes_default
  6162. typedef int ac__type_sizeof_;
  6163. int
  6164. main ()
  6165. {
  6166. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6167. test_array [0] = 0
  6168. ;
  6169. return 0;
  6170. }
  6171. _ACEOF
  6172. rm -f conftest.$ac_objext
  6173. if { (ac_try="$ac_compile"
  6174. case "(($ac_try" in
  6175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6176. *) ac_try_echo=$ac_try;;
  6177. esac
  6178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6179. (eval "$ac_compile") 2>conftest.er1
  6180. ac_status=$?
  6181. grep -v '^ *+' conftest.er1 >conftest.err
  6182. rm -f conftest.er1
  6183. cat conftest.err >&5
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); } && {
  6186. test -z "$ac_cxx_werror_flag" ||
  6187. test ! -s conftest.err
  6188. } && test -s conftest.$ac_objext; then
  6189. ac_lo=$ac_mid; break
  6190. else
  6191. echo "$as_me: failed program was:" >&5
  6192. sed 's/^/| /' conftest.$ac_ext >&5
  6193. ac_hi=`expr '(' $ac_mid ')' - 1`
  6194. if test $ac_mid -le $ac_hi; then
  6195. ac_lo= ac_hi=
  6196. break
  6197. fi
  6198. ac_mid=`expr 2 '*' $ac_mid`
  6199. fi
  6200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6201. done
  6202. else
  6203. echo "$as_me: failed program was:" >&5
  6204. sed 's/^/| /' conftest.$ac_ext >&5
  6205. ac_lo= ac_hi=
  6206. fi
  6207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6208. fi
  6209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6210. # Binary search between lo and hi bounds.
  6211. while test "x$ac_lo" != "x$ac_hi"; do
  6212. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6213. cat >conftest.$ac_ext <<_ACEOF
  6214. /* confdefs.h. */
  6215. _ACEOF
  6216. cat confdefs.h >>conftest.$ac_ext
  6217. cat >>conftest.$ac_ext <<_ACEOF
  6218. /* end confdefs.h. */
  6219. $ac_includes_default
  6220. typedef int ac__type_sizeof_;
  6221. int
  6222. main ()
  6223. {
  6224. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6225. test_array [0] = 0
  6226. ;
  6227. return 0;
  6228. }
  6229. _ACEOF
  6230. rm -f conftest.$ac_objext
  6231. if { (ac_try="$ac_compile"
  6232. case "(($ac_try" in
  6233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6234. *) ac_try_echo=$ac_try;;
  6235. esac
  6236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6237. (eval "$ac_compile") 2>conftest.er1
  6238. ac_status=$?
  6239. grep -v '^ *+' conftest.er1 >conftest.err
  6240. rm -f conftest.er1
  6241. cat conftest.err >&5
  6242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6243. (exit $ac_status); } && {
  6244. test -z "$ac_cxx_werror_flag" ||
  6245. test ! -s conftest.err
  6246. } && test -s conftest.$ac_objext; then
  6247. ac_hi=$ac_mid
  6248. else
  6249. echo "$as_me: failed program was:" >&5
  6250. sed 's/^/| /' conftest.$ac_ext >&5
  6251. ac_lo=`expr '(' $ac_mid ')' + 1`
  6252. fi
  6253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6254. done
  6255. case $ac_lo in
  6256. ?*) ac_cv_sizeof_int=$ac_lo;;
  6257. '') if test "$ac_cv_type_int" = yes; then
  6258. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6259. See \`config.log' for more details." >&5
  6260. echo "$as_me: error: cannot compute sizeof (int)
  6261. See \`config.log' for more details." >&2;}
  6262. { (exit 77); exit 77; }; }
  6263. else
  6264. ac_cv_sizeof_int=0
  6265. fi ;;
  6266. esac
  6267. else
  6268. cat >conftest.$ac_ext <<_ACEOF
  6269. /* confdefs.h. */
  6270. _ACEOF
  6271. cat confdefs.h >>conftest.$ac_ext
  6272. cat >>conftest.$ac_ext <<_ACEOF
  6273. /* end confdefs.h. */
  6274. $ac_includes_default
  6275. typedef int ac__type_sizeof_;
  6276. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6277. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6278. #include <stdio.h>
  6279. #include <stdlib.h>
  6280. int
  6281. main ()
  6282. {
  6283. FILE *f = fopen ("conftest.val", "w");
  6284. if (! f)
  6285. return 1;
  6286. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6287. {
  6288. long int i = longval ();
  6289. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6290. return 1;
  6291. fprintf (f, "%ld\n", i);
  6292. }
  6293. else
  6294. {
  6295. unsigned long int i = ulongval ();
  6296. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6297. return 1;
  6298. fprintf (f, "%lu\n", i);
  6299. }
  6300. return ferror (f) || fclose (f) != 0;
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest$ac_exeext
  6306. if { (ac_try="$ac_link"
  6307. case "(($ac_try" in
  6308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. *) ac_try_echo=$ac_try;;
  6310. esac
  6311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6312. (eval "$ac_link") 2>&5
  6313. ac_status=$?
  6314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6316. { (case "(($ac_try" in
  6317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6318. *) ac_try_echo=$ac_try;;
  6319. esac
  6320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6321. (eval "$ac_try") 2>&5
  6322. ac_status=$?
  6323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6324. (exit $ac_status); }; }; then
  6325. ac_cv_sizeof_int=`cat conftest.val`
  6326. else
  6327. echo "$as_me: program exited with status $ac_status" >&5
  6328. echo "$as_me: failed program was:" >&5
  6329. sed 's/^/| /' conftest.$ac_ext >&5
  6330. ( exit $ac_status )
  6331. if test "$ac_cv_type_int" = yes; then
  6332. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6333. See \`config.log' for more details." >&5
  6334. echo "$as_me: error: cannot compute sizeof (int)
  6335. See \`config.log' for more details." >&2;}
  6336. { (exit 77); exit 77; }; }
  6337. else
  6338. ac_cv_sizeof_int=0
  6339. fi
  6340. fi
  6341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6342. fi
  6343. rm -f conftest.val
  6344. fi
  6345. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6346. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  6347. cat >>confdefs.h <<_ACEOF
  6348. #define SIZEOF_INT $ac_cv_sizeof_int
  6349. _ACEOF
  6350. { echo "$as_me:$LINENO: checking for long" >&5
  6351. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  6352. if test "${ac_cv_type_long+set}" = set; then
  6353. echo $ECHO_N "(cached) $ECHO_C" >&6
  6354. else
  6355. cat >conftest.$ac_ext <<_ACEOF
  6356. /* confdefs.h. */
  6357. _ACEOF
  6358. cat confdefs.h >>conftest.$ac_ext
  6359. cat >>conftest.$ac_ext <<_ACEOF
  6360. /* end confdefs.h. */
  6361. $ac_includes_default
  6362. typedef long ac__type_new_;
  6363. int
  6364. main ()
  6365. {
  6366. if ((ac__type_new_ *) 0)
  6367. return 0;
  6368. if (sizeof (ac__type_new_))
  6369. return 0;
  6370. ;
  6371. return 0;
  6372. }
  6373. _ACEOF
  6374. rm -f conftest.$ac_objext
  6375. if { (ac_try="$ac_compile"
  6376. case "(($ac_try" in
  6377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6378. *) ac_try_echo=$ac_try;;
  6379. esac
  6380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6381. (eval "$ac_compile") 2>conftest.er1
  6382. ac_status=$?
  6383. grep -v '^ *+' conftest.er1 >conftest.err
  6384. rm -f conftest.er1
  6385. cat conftest.err >&5
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. (exit $ac_status); } && {
  6388. test -z "$ac_cxx_werror_flag" ||
  6389. test ! -s conftest.err
  6390. } && test -s conftest.$ac_objext; then
  6391. ac_cv_type_long=yes
  6392. else
  6393. echo "$as_me: failed program was:" >&5
  6394. sed 's/^/| /' conftest.$ac_ext >&5
  6395. ac_cv_type_long=no
  6396. fi
  6397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6398. fi
  6399. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6400. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  6401. # The cast to long int works around a bug in the HP C Compiler
  6402. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6403. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6404. # This bug is HP SR number 8606223364.
  6405. { echo "$as_me:$LINENO: checking size of long" >&5
  6406. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  6407. if test "${ac_cv_sizeof_long+set}" = set; then
  6408. echo $ECHO_N "(cached) $ECHO_C" >&6
  6409. else
  6410. if test "$cross_compiling" = yes; then
  6411. # Depending upon the size, compute the lo and hi bounds.
  6412. cat >conftest.$ac_ext <<_ACEOF
  6413. /* confdefs.h. */
  6414. _ACEOF
  6415. cat confdefs.h >>conftest.$ac_ext
  6416. cat >>conftest.$ac_ext <<_ACEOF
  6417. /* end confdefs.h. */
  6418. $ac_includes_default
  6419. typedef long ac__type_sizeof_;
  6420. int
  6421. main ()
  6422. {
  6423. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6424. test_array [0] = 0
  6425. ;
  6426. return 0;
  6427. }
  6428. _ACEOF
  6429. rm -f conftest.$ac_objext
  6430. if { (ac_try="$ac_compile"
  6431. case "(($ac_try" in
  6432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6433. *) ac_try_echo=$ac_try;;
  6434. esac
  6435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6436. (eval "$ac_compile") 2>conftest.er1
  6437. ac_status=$?
  6438. grep -v '^ *+' conftest.er1 >conftest.err
  6439. rm -f conftest.er1
  6440. cat conftest.err >&5
  6441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6442. (exit $ac_status); } && {
  6443. test -z "$ac_cxx_werror_flag" ||
  6444. test ! -s conftest.err
  6445. } && test -s conftest.$ac_objext; then
  6446. ac_lo=0 ac_mid=0
  6447. while :; do
  6448. cat >conftest.$ac_ext <<_ACEOF
  6449. /* confdefs.h. */
  6450. _ACEOF
  6451. cat confdefs.h >>conftest.$ac_ext
  6452. cat >>conftest.$ac_ext <<_ACEOF
  6453. /* end confdefs.h. */
  6454. $ac_includes_default
  6455. typedef long ac__type_sizeof_;
  6456. int
  6457. main ()
  6458. {
  6459. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6460. test_array [0] = 0
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. rm -f conftest.$ac_objext
  6466. if { (ac_try="$ac_compile"
  6467. case "(($ac_try" in
  6468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6469. *) ac_try_echo=$ac_try;;
  6470. esac
  6471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6472. (eval "$ac_compile") 2>conftest.er1
  6473. ac_status=$?
  6474. grep -v '^ *+' conftest.er1 >conftest.err
  6475. rm -f conftest.er1
  6476. cat conftest.err >&5
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); } && {
  6479. test -z "$ac_cxx_werror_flag" ||
  6480. test ! -s conftest.err
  6481. } && test -s conftest.$ac_objext; then
  6482. ac_hi=$ac_mid; break
  6483. else
  6484. echo "$as_me: failed program was:" >&5
  6485. sed 's/^/| /' conftest.$ac_ext >&5
  6486. ac_lo=`expr $ac_mid + 1`
  6487. if test $ac_lo -le $ac_mid; then
  6488. ac_lo= ac_hi=
  6489. break
  6490. fi
  6491. ac_mid=`expr 2 '*' $ac_mid + 1`
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6494. done
  6495. else
  6496. echo "$as_me: failed program was:" >&5
  6497. sed 's/^/| /' conftest.$ac_ext >&5
  6498. cat >conftest.$ac_ext <<_ACEOF
  6499. /* confdefs.h. */
  6500. _ACEOF
  6501. cat confdefs.h >>conftest.$ac_ext
  6502. cat >>conftest.$ac_ext <<_ACEOF
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. typedef long ac__type_sizeof_;
  6506. int
  6507. main ()
  6508. {
  6509. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6510. test_array [0] = 0
  6511. ;
  6512. return 0;
  6513. }
  6514. _ACEOF
  6515. rm -f conftest.$ac_objext
  6516. if { (ac_try="$ac_compile"
  6517. case "(($ac_try" in
  6518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6519. *) ac_try_echo=$ac_try;;
  6520. esac
  6521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6522. (eval "$ac_compile") 2>conftest.er1
  6523. ac_status=$?
  6524. grep -v '^ *+' conftest.er1 >conftest.err
  6525. rm -f conftest.er1
  6526. cat conftest.err >&5
  6527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); } && {
  6529. test -z "$ac_cxx_werror_flag" ||
  6530. test ! -s conftest.err
  6531. } && test -s conftest.$ac_objext; then
  6532. ac_hi=-1 ac_mid=-1
  6533. while :; do
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. /* confdefs.h. */
  6536. _ACEOF
  6537. cat confdefs.h >>conftest.$ac_ext
  6538. cat >>conftest.$ac_ext <<_ACEOF
  6539. /* end confdefs.h. */
  6540. $ac_includes_default
  6541. typedef long ac__type_sizeof_;
  6542. int
  6543. main ()
  6544. {
  6545. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6546. test_array [0] = 0
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. rm -f conftest.$ac_objext
  6552. if { (ac_try="$ac_compile"
  6553. case "(($ac_try" in
  6554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6555. *) ac_try_echo=$ac_try;;
  6556. esac
  6557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6558. (eval "$ac_compile") 2>conftest.er1
  6559. ac_status=$?
  6560. grep -v '^ *+' conftest.er1 >conftest.err
  6561. rm -f conftest.er1
  6562. cat conftest.err >&5
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); } && {
  6565. test -z "$ac_cxx_werror_flag" ||
  6566. test ! -s conftest.err
  6567. } && test -s conftest.$ac_objext; then
  6568. ac_lo=$ac_mid; break
  6569. else
  6570. echo "$as_me: failed program was:" >&5
  6571. sed 's/^/| /' conftest.$ac_ext >&5
  6572. ac_hi=`expr '(' $ac_mid ')' - 1`
  6573. if test $ac_mid -le $ac_hi; then
  6574. ac_lo= ac_hi=
  6575. break
  6576. fi
  6577. ac_mid=`expr 2 '*' $ac_mid`
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6580. done
  6581. else
  6582. echo "$as_me: failed program was:" >&5
  6583. sed 's/^/| /' conftest.$ac_ext >&5
  6584. ac_lo= ac_hi=
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. fi
  6588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6589. # Binary search between lo and hi bounds.
  6590. while test "x$ac_lo" != "x$ac_hi"; do
  6591. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6592. cat >conftest.$ac_ext <<_ACEOF
  6593. /* confdefs.h. */
  6594. _ACEOF
  6595. cat confdefs.h >>conftest.$ac_ext
  6596. cat >>conftest.$ac_ext <<_ACEOF
  6597. /* end confdefs.h. */
  6598. $ac_includes_default
  6599. typedef long ac__type_sizeof_;
  6600. int
  6601. main ()
  6602. {
  6603. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6604. test_array [0] = 0
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. rm -f conftest.$ac_objext
  6610. if { (ac_try="$ac_compile"
  6611. case "(($ac_try" in
  6612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6613. *) ac_try_echo=$ac_try;;
  6614. esac
  6615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6616. (eval "$ac_compile") 2>conftest.er1
  6617. ac_status=$?
  6618. grep -v '^ *+' conftest.er1 >conftest.err
  6619. rm -f conftest.er1
  6620. cat conftest.err >&5
  6621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } && {
  6623. test -z "$ac_cxx_werror_flag" ||
  6624. test ! -s conftest.err
  6625. } && test -s conftest.$ac_objext; then
  6626. ac_hi=$ac_mid
  6627. else
  6628. echo "$as_me: failed program was:" >&5
  6629. sed 's/^/| /' conftest.$ac_ext >&5
  6630. ac_lo=`expr '(' $ac_mid ')' + 1`
  6631. fi
  6632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6633. done
  6634. case $ac_lo in
  6635. ?*) ac_cv_sizeof_long=$ac_lo;;
  6636. '') if test "$ac_cv_type_long" = yes; then
  6637. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6638. See \`config.log' for more details." >&5
  6639. echo "$as_me: error: cannot compute sizeof (long)
  6640. See \`config.log' for more details." >&2;}
  6641. { (exit 77); exit 77; }; }
  6642. else
  6643. ac_cv_sizeof_long=0
  6644. fi ;;
  6645. esac
  6646. else
  6647. cat >conftest.$ac_ext <<_ACEOF
  6648. /* confdefs.h. */
  6649. _ACEOF
  6650. cat confdefs.h >>conftest.$ac_ext
  6651. cat >>conftest.$ac_ext <<_ACEOF
  6652. /* end confdefs.h. */
  6653. $ac_includes_default
  6654. typedef long ac__type_sizeof_;
  6655. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6656. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6657. #include <stdio.h>
  6658. #include <stdlib.h>
  6659. int
  6660. main ()
  6661. {
  6662. FILE *f = fopen ("conftest.val", "w");
  6663. if (! f)
  6664. return 1;
  6665. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6666. {
  6667. long int i = longval ();
  6668. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6669. return 1;
  6670. fprintf (f, "%ld\n", i);
  6671. }
  6672. else
  6673. {
  6674. unsigned long int i = ulongval ();
  6675. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6676. return 1;
  6677. fprintf (f, "%lu\n", i);
  6678. }
  6679. return ferror (f) || fclose (f) != 0;
  6680. ;
  6681. return 0;
  6682. }
  6683. _ACEOF
  6684. rm -f conftest$ac_exeext
  6685. if { (ac_try="$ac_link"
  6686. case "(($ac_try" in
  6687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6688. *) ac_try_echo=$ac_try;;
  6689. esac
  6690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6691. (eval "$ac_link") 2>&5
  6692. ac_status=$?
  6693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6694. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6695. { (case "(($ac_try" in
  6696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6697. *) ac_try_echo=$ac_try;;
  6698. esac
  6699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6700. (eval "$ac_try") 2>&5
  6701. ac_status=$?
  6702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. (exit $ac_status); }; }; then
  6704. ac_cv_sizeof_long=`cat conftest.val`
  6705. else
  6706. echo "$as_me: program exited with status $ac_status" >&5
  6707. echo "$as_me: failed program was:" >&5
  6708. sed 's/^/| /' conftest.$ac_ext >&5
  6709. ( exit $ac_status )
  6710. if test "$ac_cv_type_long" = yes; then
  6711. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6712. See \`config.log' for more details." >&5
  6713. echo "$as_me: error: cannot compute sizeof (long)
  6714. See \`config.log' for more details." >&2;}
  6715. { (exit 77); exit 77; }; }
  6716. else
  6717. ac_cv_sizeof_long=0
  6718. fi
  6719. fi
  6720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6721. fi
  6722. rm -f conftest.val
  6723. fi
  6724. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6725. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  6726. cat >>confdefs.h <<_ACEOF
  6727. #define SIZEOF_LONG $ac_cv_sizeof_long
  6728. _ACEOF
  6729. { echo "$as_me:$LINENO: checking for long long" >&5
  6730. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  6731. if test "${ac_cv_type_long_long+set}" = set; then
  6732. echo $ECHO_N "(cached) $ECHO_C" >&6
  6733. else
  6734. cat >conftest.$ac_ext <<_ACEOF
  6735. /* confdefs.h. */
  6736. _ACEOF
  6737. cat confdefs.h >>conftest.$ac_ext
  6738. cat >>conftest.$ac_ext <<_ACEOF
  6739. /* end confdefs.h. */
  6740. $ac_includes_default
  6741. typedef long long ac__type_new_;
  6742. int
  6743. main ()
  6744. {
  6745. if ((ac__type_new_ *) 0)
  6746. return 0;
  6747. if (sizeof (ac__type_new_))
  6748. return 0;
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. rm -f conftest.$ac_objext
  6754. if { (ac_try="$ac_compile"
  6755. case "(($ac_try" in
  6756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757. *) ac_try_echo=$ac_try;;
  6758. esac
  6759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6760. (eval "$ac_compile") 2>conftest.er1
  6761. ac_status=$?
  6762. grep -v '^ *+' conftest.er1 >conftest.err
  6763. rm -f conftest.er1
  6764. cat conftest.err >&5
  6765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766. (exit $ac_status); } && {
  6767. test -z "$ac_cxx_werror_flag" ||
  6768. test ! -s conftest.err
  6769. } && test -s conftest.$ac_objext; then
  6770. ac_cv_type_long_long=yes
  6771. else
  6772. echo "$as_me: failed program was:" >&5
  6773. sed 's/^/| /' conftest.$ac_ext >&5
  6774. ac_cv_type_long_long=no
  6775. fi
  6776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6777. fi
  6778. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6779. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  6780. # The cast to long int works around a bug in the HP C Compiler
  6781. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6782. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6783. # This bug is HP SR number 8606223364.
  6784. { echo "$as_me:$LINENO: checking size of long long" >&5
  6785. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  6786. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6787. echo $ECHO_N "(cached) $ECHO_C" >&6
  6788. else
  6789. if test "$cross_compiling" = yes; then
  6790. # Depending upon the size, compute the lo and hi bounds.
  6791. cat >conftest.$ac_ext <<_ACEOF
  6792. /* confdefs.h. */
  6793. _ACEOF
  6794. cat confdefs.h >>conftest.$ac_ext
  6795. cat >>conftest.$ac_ext <<_ACEOF
  6796. /* end confdefs.h. */
  6797. $ac_includes_default
  6798. typedef long long ac__type_sizeof_;
  6799. int
  6800. main ()
  6801. {
  6802. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6803. test_array [0] = 0
  6804. ;
  6805. return 0;
  6806. }
  6807. _ACEOF
  6808. rm -f conftest.$ac_objext
  6809. if { (ac_try="$ac_compile"
  6810. case "(($ac_try" in
  6811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6812. *) ac_try_echo=$ac_try;;
  6813. esac
  6814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6815. (eval "$ac_compile") 2>conftest.er1
  6816. ac_status=$?
  6817. grep -v '^ *+' conftest.er1 >conftest.err
  6818. rm -f conftest.er1
  6819. cat conftest.err >&5
  6820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6821. (exit $ac_status); } && {
  6822. test -z "$ac_cxx_werror_flag" ||
  6823. test ! -s conftest.err
  6824. } && test -s conftest.$ac_objext; then
  6825. ac_lo=0 ac_mid=0
  6826. while :; do
  6827. cat >conftest.$ac_ext <<_ACEOF
  6828. /* confdefs.h. */
  6829. _ACEOF
  6830. cat confdefs.h >>conftest.$ac_ext
  6831. cat >>conftest.$ac_ext <<_ACEOF
  6832. /* end confdefs.h. */
  6833. $ac_includes_default
  6834. typedef long long ac__type_sizeof_;
  6835. int
  6836. main ()
  6837. {
  6838. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6839. test_array [0] = 0
  6840. ;
  6841. return 0;
  6842. }
  6843. _ACEOF
  6844. rm -f conftest.$ac_objext
  6845. if { (ac_try="$ac_compile"
  6846. case "(($ac_try" in
  6847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6848. *) ac_try_echo=$ac_try;;
  6849. esac
  6850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6851. (eval "$ac_compile") 2>conftest.er1
  6852. ac_status=$?
  6853. grep -v '^ *+' conftest.er1 >conftest.err
  6854. rm -f conftest.er1
  6855. cat conftest.err >&5
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); } && {
  6858. test -z "$ac_cxx_werror_flag" ||
  6859. test ! -s conftest.err
  6860. } && test -s conftest.$ac_objext; then
  6861. ac_hi=$ac_mid; break
  6862. else
  6863. echo "$as_me: failed program was:" >&5
  6864. sed 's/^/| /' conftest.$ac_ext >&5
  6865. ac_lo=`expr $ac_mid + 1`
  6866. if test $ac_lo -le $ac_mid; then
  6867. ac_lo= ac_hi=
  6868. break
  6869. fi
  6870. ac_mid=`expr 2 '*' $ac_mid + 1`
  6871. fi
  6872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6873. done
  6874. else
  6875. echo "$as_me: failed program was:" >&5
  6876. sed 's/^/| /' conftest.$ac_ext >&5
  6877. cat >conftest.$ac_ext <<_ACEOF
  6878. /* confdefs.h. */
  6879. _ACEOF
  6880. cat confdefs.h >>conftest.$ac_ext
  6881. cat >>conftest.$ac_ext <<_ACEOF
  6882. /* end confdefs.h. */
  6883. $ac_includes_default
  6884. typedef long long ac__type_sizeof_;
  6885. int
  6886. main ()
  6887. {
  6888. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6889. test_array [0] = 0
  6890. ;
  6891. return 0;
  6892. }
  6893. _ACEOF
  6894. rm -f conftest.$ac_objext
  6895. if { (ac_try="$ac_compile"
  6896. case "(($ac_try" in
  6897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6898. *) ac_try_echo=$ac_try;;
  6899. esac
  6900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6901. (eval "$ac_compile") 2>conftest.er1
  6902. ac_status=$?
  6903. grep -v '^ *+' conftest.er1 >conftest.err
  6904. rm -f conftest.er1
  6905. cat conftest.err >&5
  6906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6907. (exit $ac_status); } && {
  6908. test -z "$ac_cxx_werror_flag" ||
  6909. test ! -s conftest.err
  6910. } && test -s conftest.$ac_objext; then
  6911. ac_hi=-1 ac_mid=-1
  6912. while :; do
  6913. cat >conftest.$ac_ext <<_ACEOF
  6914. /* confdefs.h. */
  6915. _ACEOF
  6916. cat confdefs.h >>conftest.$ac_ext
  6917. cat >>conftest.$ac_ext <<_ACEOF
  6918. /* end confdefs.h. */
  6919. $ac_includes_default
  6920. typedef long long ac__type_sizeof_;
  6921. int
  6922. main ()
  6923. {
  6924. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6925. test_array [0] = 0
  6926. ;
  6927. return 0;
  6928. }
  6929. _ACEOF
  6930. rm -f conftest.$ac_objext
  6931. if { (ac_try="$ac_compile"
  6932. case "(($ac_try" in
  6933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6934. *) ac_try_echo=$ac_try;;
  6935. esac
  6936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6937. (eval "$ac_compile") 2>conftest.er1
  6938. ac_status=$?
  6939. grep -v '^ *+' conftest.er1 >conftest.err
  6940. rm -f conftest.er1
  6941. cat conftest.err >&5
  6942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6943. (exit $ac_status); } && {
  6944. test -z "$ac_cxx_werror_flag" ||
  6945. test ! -s conftest.err
  6946. } && test -s conftest.$ac_objext; then
  6947. ac_lo=$ac_mid; break
  6948. else
  6949. echo "$as_me: failed program was:" >&5
  6950. sed 's/^/| /' conftest.$ac_ext >&5
  6951. ac_hi=`expr '(' $ac_mid ')' - 1`
  6952. if test $ac_mid -le $ac_hi; then
  6953. ac_lo= ac_hi=
  6954. break
  6955. fi
  6956. ac_mid=`expr 2 '*' $ac_mid`
  6957. fi
  6958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6959. done
  6960. else
  6961. echo "$as_me: failed program was:" >&5
  6962. sed 's/^/| /' conftest.$ac_ext >&5
  6963. ac_lo= ac_hi=
  6964. fi
  6965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6966. fi
  6967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6968. # Binary search between lo and hi bounds.
  6969. while test "x$ac_lo" != "x$ac_hi"; do
  6970. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6971. cat >conftest.$ac_ext <<_ACEOF
  6972. /* confdefs.h. */
  6973. _ACEOF
  6974. cat confdefs.h >>conftest.$ac_ext
  6975. cat >>conftest.$ac_ext <<_ACEOF
  6976. /* end confdefs.h. */
  6977. $ac_includes_default
  6978. typedef long long ac__type_sizeof_;
  6979. int
  6980. main ()
  6981. {
  6982. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6983. test_array [0] = 0
  6984. ;
  6985. return 0;
  6986. }
  6987. _ACEOF
  6988. rm -f conftest.$ac_objext
  6989. if { (ac_try="$ac_compile"
  6990. case "(($ac_try" in
  6991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6992. *) ac_try_echo=$ac_try;;
  6993. esac
  6994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6995. (eval "$ac_compile") 2>conftest.er1
  6996. ac_status=$?
  6997. grep -v '^ *+' conftest.er1 >conftest.err
  6998. rm -f conftest.er1
  6999. cat conftest.err >&5
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); } && {
  7002. test -z "$ac_cxx_werror_flag" ||
  7003. test ! -s conftest.err
  7004. } && test -s conftest.$ac_objext; then
  7005. ac_hi=$ac_mid
  7006. else
  7007. echo "$as_me: failed program was:" >&5
  7008. sed 's/^/| /' conftest.$ac_ext >&5
  7009. ac_lo=`expr '(' $ac_mid ')' + 1`
  7010. fi
  7011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7012. done
  7013. case $ac_lo in
  7014. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7015. '') if test "$ac_cv_type_long_long" = yes; then
  7016. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7017. See \`config.log' for more details." >&5
  7018. echo "$as_me: error: cannot compute sizeof (long long)
  7019. See \`config.log' for more details." >&2;}
  7020. { (exit 77); exit 77; }; }
  7021. else
  7022. ac_cv_sizeof_long_long=0
  7023. fi ;;
  7024. esac
  7025. else
  7026. cat >conftest.$ac_ext <<_ACEOF
  7027. /* confdefs.h. */
  7028. _ACEOF
  7029. cat confdefs.h >>conftest.$ac_ext
  7030. cat >>conftest.$ac_ext <<_ACEOF
  7031. /* end confdefs.h. */
  7032. $ac_includes_default
  7033. typedef long long ac__type_sizeof_;
  7034. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7035. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7036. #include <stdio.h>
  7037. #include <stdlib.h>
  7038. int
  7039. main ()
  7040. {
  7041. FILE *f = fopen ("conftest.val", "w");
  7042. if (! f)
  7043. return 1;
  7044. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7045. {
  7046. long int i = longval ();
  7047. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7048. return 1;
  7049. fprintf (f, "%ld\n", i);
  7050. }
  7051. else
  7052. {
  7053. unsigned long int i = ulongval ();
  7054. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7055. return 1;
  7056. fprintf (f, "%lu\n", i);
  7057. }
  7058. return ferror (f) || fclose (f) != 0;
  7059. ;
  7060. return 0;
  7061. }
  7062. _ACEOF
  7063. rm -f conftest$ac_exeext
  7064. if { (ac_try="$ac_link"
  7065. case "(($ac_try" in
  7066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7067. *) ac_try_echo=$ac_try;;
  7068. esac
  7069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7070. (eval "$ac_link") 2>&5
  7071. ac_status=$?
  7072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7074. { (case "(($ac_try" in
  7075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7076. *) ac_try_echo=$ac_try;;
  7077. esac
  7078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7079. (eval "$ac_try") 2>&5
  7080. ac_status=$?
  7081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7082. (exit $ac_status); }; }; then
  7083. ac_cv_sizeof_long_long=`cat conftest.val`
  7084. else
  7085. echo "$as_me: program exited with status $ac_status" >&5
  7086. echo "$as_me: failed program was:" >&5
  7087. sed 's/^/| /' conftest.$ac_ext >&5
  7088. ( exit $ac_status )
  7089. if test "$ac_cv_type_long_long" = yes; then
  7090. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7091. See \`config.log' for more details." >&5
  7092. echo "$as_me: error: cannot compute sizeof (long long)
  7093. See \`config.log' for more details." >&2;}
  7094. { (exit 77); exit 77; }; }
  7095. else
  7096. ac_cv_sizeof_long_long=0
  7097. fi
  7098. fi
  7099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7100. fi
  7101. rm -f conftest.val
  7102. fi
  7103. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7104. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  7105. cat >>confdefs.h <<_ACEOF
  7106. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7107. _ACEOF
  7108. { echo "$as_me:$LINENO: checking for size_t" >&5
  7109. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7110. if test "${ac_cv_type_size_t+set}" = set; then
  7111. echo $ECHO_N "(cached) $ECHO_C" >&6
  7112. else
  7113. cat >conftest.$ac_ext <<_ACEOF
  7114. /* confdefs.h. */
  7115. _ACEOF
  7116. cat confdefs.h >>conftest.$ac_ext
  7117. cat >>conftest.$ac_ext <<_ACEOF
  7118. /* end confdefs.h. */
  7119. $ac_includes_default
  7120. typedef size_t ac__type_new_;
  7121. int
  7122. main ()
  7123. {
  7124. if ((ac__type_new_ *) 0)
  7125. return 0;
  7126. if (sizeof (ac__type_new_))
  7127. return 0;
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. rm -f conftest.$ac_objext
  7133. if { (ac_try="$ac_compile"
  7134. case "(($ac_try" in
  7135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7136. *) ac_try_echo=$ac_try;;
  7137. esac
  7138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7139. (eval "$ac_compile") 2>conftest.er1
  7140. ac_status=$?
  7141. grep -v '^ *+' conftest.er1 >conftest.err
  7142. rm -f conftest.er1
  7143. cat conftest.err >&5
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. (exit $ac_status); } && {
  7146. test -z "$ac_cxx_werror_flag" ||
  7147. test ! -s conftest.err
  7148. } && test -s conftest.$ac_objext; then
  7149. ac_cv_type_size_t=yes
  7150. else
  7151. echo "$as_me: failed program was:" >&5
  7152. sed 's/^/| /' conftest.$ac_ext >&5
  7153. ac_cv_type_size_t=no
  7154. fi
  7155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7156. fi
  7157. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7158. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7159. # The cast to long int works around a bug in the HP C Compiler
  7160. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7161. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7162. # This bug is HP SR number 8606223364.
  7163. { echo "$as_me:$LINENO: checking size of size_t" >&5
  7164. echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
  7165. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7166. echo $ECHO_N "(cached) $ECHO_C" >&6
  7167. else
  7168. if test "$cross_compiling" = yes; then
  7169. # Depending upon the size, compute the lo and hi bounds.
  7170. cat >conftest.$ac_ext <<_ACEOF
  7171. /* confdefs.h. */
  7172. _ACEOF
  7173. cat confdefs.h >>conftest.$ac_ext
  7174. cat >>conftest.$ac_ext <<_ACEOF
  7175. /* end confdefs.h. */
  7176. $ac_includes_default
  7177. typedef size_t ac__type_sizeof_;
  7178. int
  7179. main ()
  7180. {
  7181. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7182. test_array [0] = 0
  7183. ;
  7184. return 0;
  7185. }
  7186. _ACEOF
  7187. rm -f conftest.$ac_objext
  7188. if { (ac_try="$ac_compile"
  7189. case "(($ac_try" in
  7190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7191. *) ac_try_echo=$ac_try;;
  7192. esac
  7193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7194. (eval "$ac_compile") 2>conftest.er1
  7195. ac_status=$?
  7196. grep -v '^ *+' conftest.er1 >conftest.err
  7197. rm -f conftest.er1
  7198. cat conftest.err >&5
  7199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); } && {
  7201. test -z "$ac_cxx_werror_flag" ||
  7202. test ! -s conftest.err
  7203. } && test -s conftest.$ac_objext; then
  7204. ac_lo=0 ac_mid=0
  7205. while :; do
  7206. cat >conftest.$ac_ext <<_ACEOF
  7207. /* confdefs.h. */
  7208. _ACEOF
  7209. cat confdefs.h >>conftest.$ac_ext
  7210. cat >>conftest.$ac_ext <<_ACEOF
  7211. /* end confdefs.h. */
  7212. $ac_includes_default
  7213. typedef size_t ac__type_sizeof_;
  7214. int
  7215. main ()
  7216. {
  7217. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7218. test_array [0] = 0
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. rm -f conftest.$ac_objext
  7224. if { (ac_try="$ac_compile"
  7225. case "(($ac_try" in
  7226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7227. *) ac_try_echo=$ac_try;;
  7228. esac
  7229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7230. (eval "$ac_compile") 2>conftest.er1
  7231. ac_status=$?
  7232. grep -v '^ *+' conftest.er1 >conftest.err
  7233. rm -f conftest.er1
  7234. cat conftest.err >&5
  7235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); } && {
  7237. test -z "$ac_cxx_werror_flag" ||
  7238. test ! -s conftest.err
  7239. } && test -s conftest.$ac_objext; then
  7240. ac_hi=$ac_mid; break
  7241. else
  7242. echo "$as_me: failed program was:" >&5
  7243. sed 's/^/| /' conftest.$ac_ext >&5
  7244. ac_lo=`expr $ac_mid + 1`
  7245. if test $ac_lo -le $ac_mid; then
  7246. ac_lo= ac_hi=
  7247. break
  7248. fi
  7249. ac_mid=`expr 2 '*' $ac_mid + 1`
  7250. fi
  7251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7252. done
  7253. else
  7254. echo "$as_me: failed program was:" >&5
  7255. sed 's/^/| /' conftest.$ac_ext >&5
  7256. cat >conftest.$ac_ext <<_ACEOF
  7257. /* confdefs.h. */
  7258. _ACEOF
  7259. cat confdefs.h >>conftest.$ac_ext
  7260. cat >>conftest.$ac_ext <<_ACEOF
  7261. /* end confdefs.h. */
  7262. $ac_includes_default
  7263. typedef size_t ac__type_sizeof_;
  7264. int
  7265. main ()
  7266. {
  7267. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7268. test_array [0] = 0
  7269. ;
  7270. return 0;
  7271. }
  7272. _ACEOF
  7273. rm -f conftest.$ac_objext
  7274. if { (ac_try="$ac_compile"
  7275. case "(($ac_try" in
  7276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7277. *) ac_try_echo=$ac_try;;
  7278. esac
  7279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7280. (eval "$ac_compile") 2>conftest.er1
  7281. ac_status=$?
  7282. grep -v '^ *+' conftest.er1 >conftest.err
  7283. rm -f conftest.er1
  7284. cat conftest.err >&5
  7285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7286. (exit $ac_status); } && {
  7287. test -z "$ac_cxx_werror_flag" ||
  7288. test ! -s conftest.err
  7289. } && test -s conftest.$ac_objext; then
  7290. ac_hi=-1 ac_mid=-1
  7291. while :; do
  7292. cat >conftest.$ac_ext <<_ACEOF
  7293. /* confdefs.h. */
  7294. _ACEOF
  7295. cat confdefs.h >>conftest.$ac_ext
  7296. cat >>conftest.$ac_ext <<_ACEOF
  7297. /* end confdefs.h. */
  7298. $ac_includes_default
  7299. typedef size_t ac__type_sizeof_;
  7300. int
  7301. main ()
  7302. {
  7303. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7304. test_array [0] = 0
  7305. ;
  7306. return 0;
  7307. }
  7308. _ACEOF
  7309. rm -f conftest.$ac_objext
  7310. if { (ac_try="$ac_compile"
  7311. case "(($ac_try" in
  7312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7313. *) ac_try_echo=$ac_try;;
  7314. esac
  7315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7316. (eval "$ac_compile") 2>conftest.er1
  7317. ac_status=$?
  7318. grep -v '^ *+' conftest.er1 >conftest.err
  7319. rm -f conftest.er1
  7320. cat conftest.err >&5
  7321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7322. (exit $ac_status); } && {
  7323. test -z "$ac_cxx_werror_flag" ||
  7324. test ! -s conftest.err
  7325. } && test -s conftest.$ac_objext; then
  7326. ac_lo=$ac_mid; break
  7327. else
  7328. echo "$as_me: failed program was:" >&5
  7329. sed 's/^/| /' conftest.$ac_ext >&5
  7330. ac_hi=`expr '(' $ac_mid ')' - 1`
  7331. if test $ac_mid -le $ac_hi; then
  7332. ac_lo= ac_hi=
  7333. break
  7334. fi
  7335. ac_mid=`expr 2 '*' $ac_mid`
  7336. fi
  7337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7338. done
  7339. else
  7340. echo "$as_me: failed program was:" >&5
  7341. sed 's/^/| /' conftest.$ac_ext >&5
  7342. ac_lo= ac_hi=
  7343. fi
  7344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7347. # Binary search between lo and hi bounds.
  7348. while test "x$ac_lo" != "x$ac_hi"; do
  7349. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7350. cat >conftest.$ac_ext <<_ACEOF
  7351. /* confdefs.h. */
  7352. _ACEOF
  7353. cat confdefs.h >>conftest.$ac_ext
  7354. cat >>conftest.$ac_ext <<_ACEOF
  7355. /* end confdefs.h. */
  7356. $ac_includes_default
  7357. typedef size_t ac__type_sizeof_;
  7358. int
  7359. main ()
  7360. {
  7361. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7362. test_array [0] = 0
  7363. ;
  7364. return 0;
  7365. }
  7366. _ACEOF
  7367. rm -f conftest.$ac_objext
  7368. if { (ac_try="$ac_compile"
  7369. case "(($ac_try" in
  7370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7371. *) ac_try_echo=$ac_try;;
  7372. esac
  7373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7374. (eval "$ac_compile") 2>conftest.er1
  7375. ac_status=$?
  7376. grep -v '^ *+' conftest.er1 >conftest.err
  7377. rm -f conftest.er1
  7378. cat conftest.err >&5
  7379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); } && {
  7381. test -z "$ac_cxx_werror_flag" ||
  7382. test ! -s conftest.err
  7383. } && test -s conftest.$ac_objext; then
  7384. ac_hi=$ac_mid
  7385. else
  7386. echo "$as_me: failed program was:" >&5
  7387. sed 's/^/| /' conftest.$ac_ext >&5
  7388. ac_lo=`expr '(' $ac_mid ')' + 1`
  7389. fi
  7390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7391. done
  7392. case $ac_lo in
  7393. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7394. '') if test "$ac_cv_type_size_t" = yes; then
  7395. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7396. See \`config.log' for more details." >&5
  7397. echo "$as_me: error: cannot compute sizeof (size_t)
  7398. See \`config.log' for more details." >&2;}
  7399. { (exit 77); exit 77; }; }
  7400. else
  7401. ac_cv_sizeof_size_t=0
  7402. fi ;;
  7403. esac
  7404. else
  7405. cat >conftest.$ac_ext <<_ACEOF
  7406. /* confdefs.h. */
  7407. _ACEOF
  7408. cat confdefs.h >>conftest.$ac_ext
  7409. cat >>conftest.$ac_ext <<_ACEOF
  7410. /* end confdefs.h. */
  7411. $ac_includes_default
  7412. typedef size_t ac__type_sizeof_;
  7413. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7414. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7415. #include <stdio.h>
  7416. #include <stdlib.h>
  7417. int
  7418. main ()
  7419. {
  7420. FILE *f = fopen ("conftest.val", "w");
  7421. if (! f)
  7422. return 1;
  7423. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7424. {
  7425. long int i = longval ();
  7426. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7427. return 1;
  7428. fprintf (f, "%ld\n", i);
  7429. }
  7430. else
  7431. {
  7432. unsigned long int i = ulongval ();
  7433. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7434. return 1;
  7435. fprintf (f, "%lu\n", i);
  7436. }
  7437. return ferror (f) || fclose (f) != 0;
  7438. ;
  7439. return 0;
  7440. }
  7441. _ACEOF
  7442. rm -f conftest$ac_exeext
  7443. if { (ac_try="$ac_link"
  7444. case "(($ac_try" in
  7445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7446. *) ac_try_echo=$ac_try;;
  7447. esac
  7448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7449. (eval "$ac_link") 2>&5
  7450. ac_status=$?
  7451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7452. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7453. { (case "(($ac_try" in
  7454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7455. *) ac_try_echo=$ac_try;;
  7456. esac
  7457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7458. (eval "$ac_try") 2>&5
  7459. ac_status=$?
  7460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7461. (exit $ac_status); }; }; then
  7462. ac_cv_sizeof_size_t=`cat conftest.val`
  7463. else
  7464. echo "$as_me: program exited with status $ac_status" >&5
  7465. echo "$as_me: failed program was:" >&5
  7466. sed 's/^/| /' conftest.$ac_ext >&5
  7467. ( exit $ac_status )
  7468. if test "$ac_cv_type_size_t" = yes; then
  7469. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7470. See \`config.log' for more details." >&5
  7471. echo "$as_me: error: cannot compute sizeof (size_t)
  7472. See \`config.log' for more details." >&2;}
  7473. { (exit 77); exit 77; }; }
  7474. else
  7475. ac_cv_sizeof_size_t=0
  7476. fi
  7477. fi
  7478. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7479. fi
  7480. rm -f conftest.val
  7481. fi
  7482. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  7483. echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
  7484. cat >>confdefs.h <<_ACEOF
  7485. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  7486. _ACEOF
  7487. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  7488. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  7489. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  7490. echo $ECHO_N "(cached) $ECHO_C" >&6
  7491. else
  7492. cat >conftest.$ac_ext <<_ACEOF
  7493. /* confdefs.h. */
  7494. _ACEOF
  7495. cat confdefs.h >>conftest.$ac_ext
  7496. cat >>conftest.$ac_ext <<_ACEOF
  7497. /* end confdefs.h. */
  7498. $ac_includes_default
  7499. typedef ptrdiff_t ac__type_new_;
  7500. int
  7501. main ()
  7502. {
  7503. if ((ac__type_new_ *) 0)
  7504. return 0;
  7505. if (sizeof (ac__type_new_))
  7506. return 0;
  7507. ;
  7508. return 0;
  7509. }
  7510. _ACEOF
  7511. rm -f conftest.$ac_objext
  7512. if { (ac_try="$ac_compile"
  7513. case "(($ac_try" in
  7514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7515. *) ac_try_echo=$ac_try;;
  7516. esac
  7517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7518. (eval "$ac_compile") 2>conftest.er1
  7519. ac_status=$?
  7520. grep -v '^ *+' conftest.er1 >conftest.err
  7521. rm -f conftest.er1
  7522. cat conftest.err >&5
  7523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. (exit $ac_status); } && {
  7525. test -z "$ac_cxx_werror_flag" ||
  7526. test ! -s conftest.err
  7527. } && test -s conftest.$ac_objext; then
  7528. ac_cv_type_ptrdiff_t=yes
  7529. else
  7530. echo "$as_me: failed program was:" >&5
  7531. sed 's/^/| /' conftest.$ac_ext >&5
  7532. ac_cv_type_ptrdiff_t=no
  7533. fi
  7534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7535. fi
  7536. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  7537. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  7538. # The cast to long int works around a bug in the HP C Compiler
  7539. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7540. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7541. # This bug is HP SR number 8606223364.
  7542. { echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  7543. echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6; }
  7544. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  7545. echo $ECHO_N "(cached) $ECHO_C" >&6
  7546. else
  7547. if test "$cross_compiling" = yes; then
  7548. # Depending upon the size, compute the lo and hi bounds.
  7549. cat >conftest.$ac_ext <<_ACEOF
  7550. /* confdefs.h. */
  7551. _ACEOF
  7552. cat confdefs.h >>conftest.$ac_ext
  7553. cat >>conftest.$ac_ext <<_ACEOF
  7554. /* end confdefs.h. */
  7555. $ac_includes_default
  7556. typedef ptrdiff_t ac__type_sizeof_;
  7557. int
  7558. main ()
  7559. {
  7560. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7561. test_array [0] = 0
  7562. ;
  7563. return 0;
  7564. }
  7565. _ACEOF
  7566. rm -f conftest.$ac_objext
  7567. if { (ac_try="$ac_compile"
  7568. case "(($ac_try" in
  7569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7570. *) ac_try_echo=$ac_try;;
  7571. esac
  7572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7573. (eval "$ac_compile") 2>conftest.er1
  7574. ac_status=$?
  7575. grep -v '^ *+' conftest.er1 >conftest.err
  7576. rm -f conftest.er1
  7577. cat conftest.err >&5
  7578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7579. (exit $ac_status); } && {
  7580. test -z "$ac_cxx_werror_flag" ||
  7581. test ! -s conftest.err
  7582. } && test -s conftest.$ac_objext; then
  7583. ac_lo=0 ac_mid=0
  7584. while :; do
  7585. cat >conftest.$ac_ext <<_ACEOF
  7586. /* confdefs.h. */
  7587. _ACEOF
  7588. cat confdefs.h >>conftest.$ac_ext
  7589. cat >>conftest.$ac_ext <<_ACEOF
  7590. /* end confdefs.h. */
  7591. $ac_includes_default
  7592. typedef ptrdiff_t ac__type_sizeof_;
  7593. int
  7594. main ()
  7595. {
  7596. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7597. test_array [0] = 0
  7598. ;
  7599. return 0;
  7600. }
  7601. _ACEOF
  7602. rm -f conftest.$ac_objext
  7603. if { (ac_try="$ac_compile"
  7604. case "(($ac_try" in
  7605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7606. *) ac_try_echo=$ac_try;;
  7607. esac
  7608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7609. (eval "$ac_compile") 2>conftest.er1
  7610. ac_status=$?
  7611. grep -v '^ *+' conftest.er1 >conftest.err
  7612. rm -f conftest.er1
  7613. cat conftest.err >&5
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. (exit $ac_status); } && {
  7616. test -z "$ac_cxx_werror_flag" ||
  7617. test ! -s conftest.err
  7618. } && test -s conftest.$ac_objext; then
  7619. ac_hi=$ac_mid; break
  7620. else
  7621. echo "$as_me: failed program was:" >&5
  7622. sed 's/^/| /' conftest.$ac_ext >&5
  7623. ac_lo=`expr $ac_mid + 1`
  7624. if test $ac_lo -le $ac_mid; then
  7625. ac_lo= ac_hi=
  7626. break
  7627. fi
  7628. ac_mid=`expr 2 '*' $ac_mid + 1`
  7629. fi
  7630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7631. done
  7632. else
  7633. echo "$as_me: failed program was:" >&5
  7634. sed 's/^/| /' conftest.$ac_ext >&5
  7635. cat >conftest.$ac_ext <<_ACEOF
  7636. /* confdefs.h. */
  7637. _ACEOF
  7638. cat confdefs.h >>conftest.$ac_ext
  7639. cat >>conftest.$ac_ext <<_ACEOF
  7640. /* end confdefs.h. */
  7641. $ac_includes_default
  7642. typedef ptrdiff_t ac__type_sizeof_;
  7643. int
  7644. main ()
  7645. {
  7646. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7647. test_array [0] = 0
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. rm -f conftest.$ac_objext
  7653. if { (ac_try="$ac_compile"
  7654. case "(($ac_try" in
  7655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7656. *) ac_try_echo=$ac_try;;
  7657. esac
  7658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7659. (eval "$ac_compile") 2>conftest.er1
  7660. ac_status=$?
  7661. grep -v '^ *+' conftest.er1 >conftest.err
  7662. rm -f conftest.er1
  7663. cat conftest.err >&5
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); } && {
  7666. test -z "$ac_cxx_werror_flag" ||
  7667. test ! -s conftest.err
  7668. } && test -s conftest.$ac_objext; then
  7669. ac_hi=-1 ac_mid=-1
  7670. while :; do
  7671. cat >conftest.$ac_ext <<_ACEOF
  7672. /* confdefs.h. */
  7673. _ACEOF
  7674. cat confdefs.h >>conftest.$ac_ext
  7675. cat >>conftest.$ac_ext <<_ACEOF
  7676. /* end confdefs.h. */
  7677. $ac_includes_default
  7678. typedef ptrdiff_t ac__type_sizeof_;
  7679. int
  7680. main ()
  7681. {
  7682. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7683. test_array [0] = 0
  7684. ;
  7685. return 0;
  7686. }
  7687. _ACEOF
  7688. rm -f conftest.$ac_objext
  7689. if { (ac_try="$ac_compile"
  7690. case "(($ac_try" in
  7691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7692. *) ac_try_echo=$ac_try;;
  7693. esac
  7694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7695. (eval "$ac_compile") 2>conftest.er1
  7696. ac_status=$?
  7697. grep -v '^ *+' conftest.er1 >conftest.err
  7698. rm -f conftest.er1
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } && {
  7702. test -z "$ac_cxx_werror_flag" ||
  7703. test ! -s conftest.err
  7704. } && test -s conftest.$ac_objext; then
  7705. ac_lo=$ac_mid; break
  7706. else
  7707. echo "$as_me: failed program was:" >&5
  7708. sed 's/^/| /' conftest.$ac_ext >&5
  7709. ac_hi=`expr '(' $ac_mid ')' - 1`
  7710. if test $ac_mid -le $ac_hi; then
  7711. ac_lo= ac_hi=
  7712. break
  7713. fi
  7714. ac_mid=`expr 2 '*' $ac_mid`
  7715. fi
  7716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7717. done
  7718. else
  7719. echo "$as_me: failed program was:" >&5
  7720. sed 's/^/| /' conftest.$ac_ext >&5
  7721. ac_lo= ac_hi=
  7722. fi
  7723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7724. fi
  7725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7726. # Binary search between lo and hi bounds.
  7727. while test "x$ac_lo" != "x$ac_hi"; do
  7728. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7729. cat >conftest.$ac_ext <<_ACEOF
  7730. /* confdefs.h. */
  7731. _ACEOF
  7732. cat confdefs.h >>conftest.$ac_ext
  7733. cat >>conftest.$ac_ext <<_ACEOF
  7734. /* end confdefs.h. */
  7735. $ac_includes_default
  7736. typedef ptrdiff_t ac__type_sizeof_;
  7737. int
  7738. main ()
  7739. {
  7740. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7741. test_array [0] = 0
  7742. ;
  7743. return 0;
  7744. }
  7745. _ACEOF
  7746. rm -f conftest.$ac_objext
  7747. if { (ac_try="$ac_compile"
  7748. case "(($ac_try" in
  7749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7750. *) ac_try_echo=$ac_try;;
  7751. esac
  7752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7753. (eval "$ac_compile") 2>conftest.er1
  7754. ac_status=$?
  7755. grep -v '^ *+' conftest.er1 >conftest.err
  7756. rm -f conftest.er1
  7757. cat conftest.err >&5
  7758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. (exit $ac_status); } && {
  7760. test -z "$ac_cxx_werror_flag" ||
  7761. test ! -s conftest.err
  7762. } && test -s conftest.$ac_objext; then
  7763. ac_hi=$ac_mid
  7764. else
  7765. echo "$as_me: failed program was:" >&5
  7766. sed 's/^/| /' conftest.$ac_ext >&5
  7767. ac_lo=`expr '(' $ac_mid ')' + 1`
  7768. fi
  7769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7770. done
  7771. case $ac_lo in
  7772. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  7773. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  7774. { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  7775. See \`config.log' for more details." >&5
  7776. echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  7777. See \`config.log' for more details." >&2;}
  7778. { (exit 77); exit 77; }; }
  7779. else
  7780. ac_cv_sizeof_ptrdiff_t=0
  7781. fi ;;
  7782. esac
  7783. else
  7784. cat >conftest.$ac_ext <<_ACEOF
  7785. /* confdefs.h. */
  7786. _ACEOF
  7787. cat confdefs.h >>conftest.$ac_ext
  7788. cat >>conftest.$ac_ext <<_ACEOF
  7789. /* end confdefs.h. */
  7790. $ac_includes_default
  7791. typedef ptrdiff_t ac__type_sizeof_;
  7792. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7793. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7794. #include <stdio.h>
  7795. #include <stdlib.h>
  7796. int
  7797. main ()
  7798. {
  7799. FILE *f = fopen ("conftest.val", "w");
  7800. if (! f)
  7801. return 1;
  7802. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7803. {
  7804. long int i = longval ();
  7805. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7806. return 1;
  7807. fprintf (f, "%ld\n", i);
  7808. }
  7809. else
  7810. {
  7811. unsigned long int i = ulongval ();
  7812. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7813. return 1;
  7814. fprintf (f, "%lu\n", i);
  7815. }
  7816. return ferror (f) || fclose (f) != 0;
  7817. ;
  7818. return 0;
  7819. }
  7820. _ACEOF
  7821. rm -f conftest$ac_exeext
  7822. if { (ac_try="$ac_link"
  7823. case "(($ac_try" in
  7824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7825. *) ac_try_echo=$ac_try;;
  7826. esac
  7827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7828. (eval "$ac_link") 2>&5
  7829. ac_status=$?
  7830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7831. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7832. { (case "(($ac_try" in
  7833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7834. *) ac_try_echo=$ac_try;;
  7835. esac
  7836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7837. (eval "$ac_try") 2>&5
  7838. ac_status=$?
  7839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7840. (exit $ac_status); }; }; then
  7841. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  7842. else
  7843. echo "$as_me: program exited with status $ac_status" >&5
  7844. echo "$as_me: failed program was:" >&5
  7845. sed 's/^/| /' conftest.$ac_ext >&5
  7846. ( exit $ac_status )
  7847. if test "$ac_cv_type_ptrdiff_t" = yes; then
  7848. { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  7849. See \`config.log' for more details." >&5
  7850. echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  7851. See \`config.log' for more details." >&2;}
  7852. { (exit 77); exit 77; }; }
  7853. else
  7854. ac_cv_sizeof_ptrdiff_t=0
  7855. fi
  7856. fi
  7857. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7858. fi
  7859. rm -f conftest.val
  7860. fi
  7861. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  7862. echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6; }
  7863. cat >>confdefs.h <<_ACEOF
  7864. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  7865. _ACEOF
  7866. { echo "$as_me:$LINENO: checking for time_t" >&5
  7867. echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
  7868. if test "${ac_cv_type_time_t+set}" = set; then
  7869. echo $ECHO_N "(cached) $ECHO_C" >&6
  7870. else
  7871. cat >conftest.$ac_ext <<_ACEOF
  7872. /* confdefs.h. */
  7873. _ACEOF
  7874. cat confdefs.h >>conftest.$ac_ext
  7875. cat >>conftest.$ac_ext <<_ACEOF
  7876. /* end confdefs.h. */
  7877. $ac_includes_default
  7878. typedef time_t ac__type_new_;
  7879. int
  7880. main ()
  7881. {
  7882. if ((ac__type_new_ *) 0)
  7883. return 0;
  7884. if (sizeof (ac__type_new_))
  7885. return 0;
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. rm -f conftest.$ac_objext
  7891. if { (ac_try="$ac_compile"
  7892. case "(($ac_try" in
  7893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7894. *) ac_try_echo=$ac_try;;
  7895. esac
  7896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7897. (eval "$ac_compile") 2>conftest.er1
  7898. ac_status=$?
  7899. grep -v '^ *+' conftest.er1 >conftest.err
  7900. rm -f conftest.er1
  7901. cat conftest.err >&5
  7902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903. (exit $ac_status); } && {
  7904. test -z "$ac_cxx_werror_flag" ||
  7905. test ! -s conftest.err
  7906. } && test -s conftest.$ac_objext; then
  7907. ac_cv_type_time_t=yes
  7908. else
  7909. echo "$as_me: failed program was:" >&5
  7910. sed 's/^/| /' conftest.$ac_ext >&5
  7911. ac_cv_type_time_t=no
  7912. fi
  7913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7914. fi
  7915. { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
  7916. echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
  7917. # The cast to long int works around a bug in the HP C Compiler
  7918. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7919. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7920. # This bug is HP SR number 8606223364.
  7921. { echo "$as_me:$LINENO: checking size of time_t" >&5
  7922. echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
  7923. if test "${ac_cv_sizeof_time_t+set}" = set; then
  7924. echo $ECHO_N "(cached) $ECHO_C" >&6
  7925. else
  7926. if test "$cross_compiling" = yes; then
  7927. # Depending upon the size, compute the lo and hi bounds.
  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. $ac_includes_default
  7935. typedef time_t ac__type_sizeof_;
  7936. int
  7937. main ()
  7938. {
  7939. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7940. test_array [0] = 0
  7941. ;
  7942. return 0;
  7943. }
  7944. _ACEOF
  7945. rm -f conftest.$ac_objext
  7946. if { (ac_try="$ac_compile"
  7947. case "(($ac_try" in
  7948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7949. *) ac_try_echo=$ac_try;;
  7950. esac
  7951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7952. (eval "$ac_compile") 2>conftest.er1
  7953. ac_status=$?
  7954. grep -v '^ *+' conftest.er1 >conftest.err
  7955. rm -f conftest.er1
  7956. cat conftest.err >&5
  7957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7958. (exit $ac_status); } && {
  7959. test -z "$ac_cxx_werror_flag" ||
  7960. test ! -s conftest.err
  7961. } && test -s conftest.$ac_objext; then
  7962. ac_lo=0 ac_mid=0
  7963. while :; do
  7964. cat >conftest.$ac_ext <<_ACEOF
  7965. /* confdefs.h. */
  7966. _ACEOF
  7967. cat confdefs.h >>conftest.$ac_ext
  7968. cat >>conftest.$ac_ext <<_ACEOF
  7969. /* end confdefs.h. */
  7970. $ac_includes_default
  7971. typedef time_t ac__type_sizeof_;
  7972. int
  7973. main ()
  7974. {
  7975. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7976. test_array [0] = 0
  7977. ;
  7978. return 0;
  7979. }
  7980. _ACEOF
  7981. rm -f conftest.$ac_objext
  7982. if { (ac_try="$ac_compile"
  7983. case "(($ac_try" in
  7984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7985. *) ac_try_echo=$ac_try;;
  7986. esac
  7987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7988. (eval "$ac_compile") 2>conftest.er1
  7989. ac_status=$?
  7990. grep -v '^ *+' conftest.er1 >conftest.err
  7991. rm -f conftest.er1
  7992. cat conftest.err >&5
  7993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7994. (exit $ac_status); } && {
  7995. test -z "$ac_cxx_werror_flag" ||
  7996. test ! -s conftest.err
  7997. } && test -s conftest.$ac_objext; then
  7998. ac_hi=$ac_mid; break
  7999. else
  8000. echo "$as_me: failed program was:" >&5
  8001. sed 's/^/| /' conftest.$ac_ext >&5
  8002. ac_lo=`expr $ac_mid + 1`
  8003. if test $ac_lo -le $ac_mid; then
  8004. ac_lo= ac_hi=
  8005. break
  8006. fi
  8007. ac_mid=`expr 2 '*' $ac_mid + 1`
  8008. fi
  8009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8010. done
  8011. else
  8012. echo "$as_me: failed program was:" >&5
  8013. sed 's/^/| /' conftest.$ac_ext >&5
  8014. cat >conftest.$ac_ext <<_ACEOF
  8015. /* confdefs.h. */
  8016. _ACEOF
  8017. cat confdefs.h >>conftest.$ac_ext
  8018. cat >>conftest.$ac_ext <<_ACEOF
  8019. /* end confdefs.h. */
  8020. $ac_includes_default
  8021. typedef time_t ac__type_sizeof_;
  8022. int
  8023. main ()
  8024. {
  8025. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8026. test_array [0] = 0
  8027. ;
  8028. return 0;
  8029. }
  8030. _ACEOF
  8031. rm -f conftest.$ac_objext
  8032. if { (ac_try="$ac_compile"
  8033. case "(($ac_try" in
  8034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8035. *) ac_try_echo=$ac_try;;
  8036. esac
  8037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8038. (eval "$ac_compile") 2>conftest.er1
  8039. ac_status=$?
  8040. grep -v '^ *+' conftest.er1 >conftest.err
  8041. rm -f conftest.er1
  8042. cat conftest.err >&5
  8043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044. (exit $ac_status); } && {
  8045. test -z "$ac_cxx_werror_flag" ||
  8046. test ! -s conftest.err
  8047. } && test -s conftest.$ac_objext; then
  8048. ac_hi=-1 ac_mid=-1
  8049. while :; do
  8050. cat >conftest.$ac_ext <<_ACEOF
  8051. /* confdefs.h. */
  8052. _ACEOF
  8053. cat confdefs.h >>conftest.$ac_ext
  8054. cat >>conftest.$ac_ext <<_ACEOF
  8055. /* end confdefs.h. */
  8056. $ac_includes_default
  8057. typedef time_t ac__type_sizeof_;
  8058. int
  8059. main ()
  8060. {
  8061. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8062. test_array [0] = 0
  8063. ;
  8064. return 0;
  8065. }
  8066. _ACEOF
  8067. rm -f conftest.$ac_objext
  8068. if { (ac_try="$ac_compile"
  8069. case "(($ac_try" in
  8070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8071. *) ac_try_echo=$ac_try;;
  8072. esac
  8073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8074. (eval "$ac_compile") 2>conftest.er1
  8075. ac_status=$?
  8076. grep -v '^ *+' conftest.er1 >conftest.err
  8077. rm -f conftest.er1
  8078. cat conftest.err >&5
  8079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8080. (exit $ac_status); } && {
  8081. test -z "$ac_cxx_werror_flag" ||
  8082. test ! -s conftest.err
  8083. } && test -s conftest.$ac_objext; then
  8084. ac_lo=$ac_mid; break
  8085. else
  8086. echo "$as_me: failed program was:" >&5
  8087. sed 's/^/| /' conftest.$ac_ext >&5
  8088. ac_hi=`expr '(' $ac_mid ')' - 1`
  8089. if test $ac_mid -le $ac_hi; then
  8090. ac_lo= ac_hi=
  8091. break
  8092. fi
  8093. ac_mid=`expr 2 '*' $ac_mid`
  8094. fi
  8095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8096. done
  8097. else
  8098. echo "$as_me: failed program was:" >&5
  8099. sed 's/^/| /' conftest.$ac_ext >&5
  8100. ac_lo= ac_hi=
  8101. fi
  8102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8103. fi
  8104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8105. # Binary search between lo and hi bounds.
  8106. while test "x$ac_lo" != "x$ac_hi"; do
  8107. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8108. cat >conftest.$ac_ext <<_ACEOF
  8109. /* confdefs.h. */
  8110. _ACEOF
  8111. cat confdefs.h >>conftest.$ac_ext
  8112. cat >>conftest.$ac_ext <<_ACEOF
  8113. /* end confdefs.h. */
  8114. $ac_includes_default
  8115. typedef time_t ac__type_sizeof_;
  8116. int
  8117. main ()
  8118. {
  8119. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8120. test_array [0] = 0
  8121. ;
  8122. return 0;
  8123. }
  8124. _ACEOF
  8125. rm -f conftest.$ac_objext
  8126. if { (ac_try="$ac_compile"
  8127. case "(($ac_try" in
  8128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8129. *) ac_try_echo=$ac_try;;
  8130. esac
  8131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8132. (eval "$ac_compile") 2>conftest.er1
  8133. ac_status=$?
  8134. grep -v '^ *+' conftest.er1 >conftest.err
  8135. rm -f conftest.er1
  8136. cat conftest.err >&5
  8137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. (exit $ac_status); } && {
  8139. test -z "$ac_cxx_werror_flag" ||
  8140. test ! -s conftest.err
  8141. } && test -s conftest.$ac_objext; then
  8142. ac_hi=$ac_mid
  8143. else
  8144. echo "$as_me: failed program was:" >&5
  8145. sed 's/^/| /' conftest.$ac_ext >&5
  8146. ac_lo=`expr '(' $ac_mid ')' + 1`
  8147. fi
  8148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8149. done
  8150. case $ac_lo in
  8151. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8152. '') if test "$ac_cv_type_time_t" = yes; then
  8153. { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8154. See \`config.log' for more details." >&5
  8155. echo "$as_me: error: cannot compute sizeof (time_t)
  8156. See \`config.log' for more details." >&2;}
  8157. { (exit 77); exit 77; }; }
  8158. else
  8159. ac_cv_sizeof_time_t=0
  8160. fi ;;
  8161. esac
  8162. else
  8163. cat >conftest.$ac_ext <<_ACEOF
  8164. /* confdefs.h. */
  8165. _ACEOF
  8166. cat confdefs.h >>conftest.$ac_ext
  8167. cat >>conftest.$ac_ext <<_ACEOF
  8168. /* end confdefs.h. */
  8169. $ac_includes_default
  8170. typedef time_t ac__type_sizeof_;
  8171. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8172. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8173. #include <stdio.h>
  8174. #include <stdlib.h>
  8175. int
  8176. main ()
  8177. {
  8178. FILE *f = fopen ("conftest.val", "w");
  8179. if (! f)
  8180. return 1;
  8181. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8182. {
  8183. long int i = longval ();
  8184. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8185. return 1;
  8186. fprintf (f, "%ld\n", i);
  8187. }
  8188. else
  8189. {
  8190. unsigned long int i = ulongval ();
  8191. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8192. return 1;
  8193. fprintf (f, "%lu\n", i);
  8194. }
  8195. return ferror (f) || fclose (f) != 0;
  8196. ;
  8197. return 0;
  8198. }
  8199. _ACEOF
  8200. rm -f conftest$ac_exeext
  8201. if { (ac_try="$ac_link"
  8202. case "(($ac_try" in
  8203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8204. *) ac_try_echo=$ac_try;;
  8205. esac
  8206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8207. (eval "$ac_link") 2>&5
  8208. ac_status=$?
  8209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8210. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8211. { (case "(($ac_try" in
  8212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8213. *) ac_try_echo=$ac_try;;
  8214. esac
  8215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8216. (eval "$ac_try") 2>&5
  8217. ac_status=$?
  8218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219. (exit $ac_status); }; }; then
  8220. ac_cv_sizeof_time_t=`cat conftest.val`
  8221. else
  8222. echo "$as_me: program exited with status $ac_status" >&5
  8223. echo "$as_me: failed program was:" >&5
  8224. sed 's/^/| /' conftest.$ac_ext >&5
  8225. ( exit $ac_status )
  8226. if test "$ac_cv_type_time_t" = yes; then
  8227. { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8228. See \`config.log' for more details." >&5
  8229. echo "$as_me: error: cannot compute sizeof (time_t)
  8230. See \`config.log' for more details." >&2;}
  8231. { (exit 77); exit 77; }; }
  8232. else
  8233. ac_cv_sizeof_time_t=0
  8234. fi
  8235. fi
  8236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8237. fi
  8238. rm -f conftest.val
  8239. fi
  8240. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8241. echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
  8242. cat >>confdefs.h <<_ACEOF
  8243. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8244. _ACEOF
  8245. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8246. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8247. if test "${ac_cv_struct_tm+set}" = set; then
  8248. echo $ECHO_N "(cached) $ECHO_C" >&6
  8249. else
  8250. cat >conftest.$ac_ext <<_ACEOF
  8251. /* confdefs.h. */
  8252. _ACEOF
  8253. cat confdefs.h >>conftest.$ac_ext
  8254. cat >>conftest.$ac_ext <<_ACEOF
  8255. /* end confdefs.h. */
  8256. #include <sys/types.h>
  8257. #include <time.h>
  8258. int
  8259. main ()
  8260. {
  8261. struct tm tm;
  8262. int *p = &tm.tm_sec;
  8263. return !p;
  8264. ;
  8265. return 0;
  8266. }
  8267. _ACEOF
  8268. rm -f conftest.$ac_objext
  8269. if { (ac_try="$ac_compile"
  8270. case "(($ac_try" in
  8271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8272. *) ac_try_echo=$ac_try;;
  8273. esac
  8274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8275. (eval "$ac_compile") 2>conftest.er1
  8276. ac_status=$?
  8277. grep -v '^ *+' conftest.er1 >conftest.err
  8278. rm -f conftest.er1
  8279. cat conftest.err >&5
  8280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8281. (exit $ac_status); } && {
  8282. test -z "$ac_cxx_werror_flag" ||
  8283. test ! -s conftest.err
  8284. } && test -s conftest.$ac_objext; then
  8285. ac_cv_struct_tm=time.h
  8286. else
  8287. echo "$as_me: failed program was:" >&5
  8288. sed 's/^/| /' conftest.$ac_ext >&5
  8289. ac_cv_struct_tm=sys/time.h
  8290. fi
  8291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8292. fi
  8293. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8294. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8295. if test $ac_cv_struct_tm = sys/time.h; then
  8296. cat >>confdefs.h <<\_ACEOF
  8297. #define TM_IN_SYS_TIME 1
  8298. _ACEOF
  8299. fi
  8300. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8301. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  8302. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8303. echo $ECHO_N "(cached) $ECHO_C" >&6
  8304. else
  8305. cat >conftest.$ac_ext <<_ACEOF
  8306. /* confdefs.h. */
  8307. _ACEOF
  8308. cat confdefs.h >>conftest.$ac_ext
  8309. cat >>conftest.$ac_ext <<_ACEOF
  8310. /* end confdefs.h. */
  8311. #include <sys/types.h>
  8312. #include <$ac_cv_struct_tm>
  8313. int
  8314. main ()
  8315. {
  8316. static struct tm ac_aggr;
  8317. if (ac_aggr.tm_zone)
  8318. return 0;
  8319. ;
  8320. return 0;
  8321. }
  8322. _ACEOF
  8323. rm -f conftest.$ac_objext
  8324. if { (ac_try="$ac_compile"
  8325. case "(($ac_try" in
  8326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8327. *) ac_try_echo=$ac_try;;
  8328. esac
  8329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8330. (eval "$ac_compile") 2>conftest.er1
  8331. ac_status=$?
  8332. grep -v '^ *+' conftest.er1 >conftest.err
  8333. rm -f conftest.er1
  8334. cat conftest.err >&5
  8335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336. (exit $ac_status); } && {
  8337. test -z "$ac_cxx_werror_flag" ||
  8338. test ! -s conftest.err
  8339. } && test -s conftest.$ac_objext; then
  8340. ac_cv_member_struct_tm_tm_zone=yes
  8341. else
  8342. echo "$as_me: failed program was:" >&5
  8343. sed 's/^/| /' conftest.$ac_ext >&5
  8344. cat >conftest.$ac_ext <<_ACEOF
  8345. /* confdefs.h. */
  8346. _ACEOF
  8347. cat confdefs.h >>conftest.$ac_ext
  8348. cat >>conftest.$ac_ext <<_ACEOF
  8349. /* end confdefs.h. */
  8350. #include <sys/types.h>
  8351. #include <$ac_cv_struct_tm>
  8352. int
  8353. main ()
  8354. {
  8355. static struct tm ac_aggr;
  8356. if (sizeof ac_aggr.tm_zone)
  8357. return 0;
  8358. ;
  8359. return 0;
  8360. }
  8361. _ACEOF
  8362. rm -f conftest.$ac_objext
  8363. if { (ac_try="$ac_compile"
  8364. case "(($ac_try" in
  8365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8366. *) ac_try_echo=$ac_try;;
  8367. esac
  8368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8369. (eval "$ac_compile") 2>conftest.er1
  8370. ac_status=$?
  8371. grep -v '^ *+' conftest.er1 >conftest.err
  8372. rm -f conftest.er1
  8373. cat conftest.err >&5
  8374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8375. (exit $ac_status); } && {
  8376. test -z "$ac_cxx_werror_flag" ||
  8377. test ! -s conftest.err
  8378. } && test -s conftest.$ac_objext; then
  8379. ac_cv_member_struct_tm_tm_zone=yes
  8380. else
  8381. echo "$as_me: failed program was:" >&5
  8382. sed 's/^/| /' conftest.$ac_ext >&5
  8383. ac_cv_member_struct_tm_tm_zone=no
  8384. fi
  8385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8386. fi
  8387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8388. fi
  8389. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8390. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  8391. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8392. cat >>confdefs.h <<_ACEOF
  8393. #define HAVE_STRUCT_TM_TM_ZONE 1
  8394. _ACEOF
  8395. fi
  8396. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8397. cat >>confdefs.h <<\_ACEOF
  8398. #define HAVE_TM_ZONE 1
  8399. _ACEOF
  8400. else
  8401. { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8402. echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
  8403. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8404. echo $ECHO_N "(cached) $ECHO_C" >&6
  8405. else
  8406. cat >conftest.$ac_ext <<_ACEOF
  8407. /* confdefs.h. */
  8408. _ACEOF
  8409. cat confdefs.h >>conftest.$ac_ext
  8410. cat >>conftest.$ac_ext <<_ACEOF
  8411. /* end confdefs.h. */
  8412. #include <time.h>
  8413. int
  8414. main ()
  8415. {
  8416. #ifndef tzname
  8417. (void) tzname;
  8418. #endif
  8419. ;
  8420. return 0;
  8421. }
  8422. _ACEOF
  8423. rm -f conftest.$ac_objext
  8424. if { (ac_try="$ac_compile"
  8425. case "(($ac_try" in
  8426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8427. *) ac_try_echo=$ac_try;;
  8428. esac
  8429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8430. (eval "$ac_compile") 2>conftest.er1
  8431. ac_status=$?
  8432. grep -v '^ *+' conftest.er1 >conftest.err
  8433. rm -f conftest.er1
  8434. cat conftest.err >&5
  8435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8436. (exit $ac_status); } && {
  8437. test -z "$ac_cxx_werror_flag" ||
  8438. test ! -s conftest.err
  8439. } && test -s conftest.$ac_objext; then
  8440. ac_cv_have_decl_tzname=yes
  8441. else
  8442. echo "$as_me: failed program was:" >&5
  8443. sed 's/^/| /' conftest.$ac_ext >&5
  8444. ac_cv_have_decl_tzname=no
  8445. fi
  8446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8447. fi
  8448. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8449. echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
  8450. if test $ac_cv_have_decl_tzname = yes; then
  8451. cat >>confdefs.h <<_ACEOF
  8452. #define HAVE_DECL_TZNAME 1
  8453. _ACEOF
  8454. else
  8455. cat >>confdefs.h <<_ACEOF
  8456. #define HAVE_DECL_TZNAME 0
  8457. _ACEOF
  8458. fi
  8459. { echo "$as_me:$LINENO: checking for tzname" >&5
  8460. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  8461. if test "${ac_cv_var_tzname+set}" = set; then
  8462. echo $ECHO_N "(cached) $ECHO_C" >&6
  8463. else
  8464. cat >conftest.$ac_ext <<_ACEOF
  8465. /* confdefs.h. */
  8466. _ACEOF
  8467. cat confdefs.h >>conftest.$ac_ext
  8468. cat >>conftest.$ac_ext <<_ACEOF
  8469. /* end confdefs.h. */
  8470. #include <time.h>
  8471. #if !HAVE_DECL_TZNAME
  8472. extern char *tzname[];
  8473. #endif
  8474. int
  8475. main ()
  8476. {
  8477. return tzname[0][0];
  8478. ;
  8479. return 0;
  8480. }
  8481. _ACEOF
  8482. rm -f conftest.$ac_objext conftest$ac_exeext
  8483. if { (ac_try="$ac_link"
  8484. case "(($ac_try" in
  8485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8486. *) ac_try_echo=$ac_try;;
  8487. esac
  8488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8489. (eval "$ac_link") 2>conftest.er1
  8490. ac_status=$?
  8491. grep -v '^ *+' conftest.er1 >conftest.err
  8492. rm -f conftest.er1
  8493. cat conftest.err >&5
  8494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8495. (exit $ac_status); } && {
  8496. test -z "$ac_cxx_werror_flag" ||
  8497. test ! -s conftest.err
  8498. } && test -s conftest$ac_exeext &&
  8499. $as_test_x conftest$ac_exeext; then
  8500. ac_cv_var_tzname=yes
  8501. else
  8502. echo "$as_me: failed program was:" >&5
  8503. sed 's/^/| /' conftest.$ac_ext >&5
  8504. ac_cv_var_tzname=no
  8505. fi
  8506. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8507. conftest$ac_exeext conftest.$ac_ext
  8508. fi
  8509. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8510. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  8511. if test $ac_cv_var_tzname = yes; then
  8512. cat >>confdefs.h <<\_ACEOF
  8513. #define HAVE_TZNAME 1
  8514. _ACEOF
  8515. fi
  8516. fi
  8517. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8518. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8519. if test "${ac_cv_struct_tm+set}" = set; then
  8520. echo $ECHO_N "(cached) $ECHO_C" >&6
  8521. else
  8522. cat >conftest.$ac_ext <<_ACEOF
  8523. /* confdefs.h. */
  8524. _ACEOF
  8525. cat confdefs.h >>conftest.$ac_ext
  8526. cat >>conftest.$ac_ext <<_ACEOF
  8527. /* end confdefs.h. */
  8528. #include <sys/types.h>
  8529. #include <time.h>
  8530. int
  8531. main ()
  8532. {
  8533. struct tm tm;
  8534. int *p = &tm.tm_sec;
  8535. return !p;
  8536. ;
  8537. return 0;
  8538. }
  8539. _ACEOF
  8540. rm -f conftest.$ac_objext
  8541. if { (ac_try="$ac_compile"
  8542. case "(($ac_try" in
  8543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8544. *) ac_try_echo=$ac_try;;
  8545. esac
  8546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8547. (eval "$ac_compile") 2>conftest.er1
  8548. ac_status=$?
  8549. grep -v '^ *+' conftest.er1 >conftest.err
  8550. rm -f conftest.er1
  8551. cat conftest.err >&5
  8552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8553. (exit $ac_status); } && {
  8554. test -z "$ac_cxx_werror_flag" ||
  8555. test ! -s conftest.err
  8556. } && test -s conftest.$ac_objext; then
  8557. ac_cv_struct_tm=time.h
  8558. else
  8559. echo "$as_me: failed program was:" >&5
  8560. sed 's/^/| /' conftest.$ac_ext >&5
  8561. ac_cv_struct_tm=sys/time.h
  8562. fi
  8563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8564. fi
  8565. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8566. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8567. if test $ac_cv_struct_tm = sys/time.h; then
  8568. cat >>confdefs.h <<\_ACEOF
  8569. #define TM_IN_SYS_TIME 1
  8570. _ACEOF
  8571. fi
  8572. # Checks for library functions
  8573. for ac_header in vfork.h
  8574. do
  8575. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8576. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8577. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8578. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8579. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8580. echo $ECHO_N "(cached) $ECHO_C" >&6
  8581. fi
  8582. ac_res=`eval echo '${'$as_ac_Header'}'`
  8583. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8584. echo "${ECHO_T}$ac_res" >&6; }
  8585. else
  8586. # Is the header compilable?
  8587. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8588. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8589. cat >conftest.$ac_ext <<_ACEOF
  8590. /* confdefs.h. */
  8591. _ACEOF
  8592. cat confdefs.h >>conftest.$ac_ext
  8593. cat >>conftest.$ac_ext <<_ACEOF
  8594. /* end confdefs.h. */
  8595. $ac_includes_default
  8596. #include <$ac_header>
  8597. _ACEOF
  8598. rm -f conftest.$ac_objext
  8599. if { (ac_try="$ac_compile"
  8600. case "(($ac_try" in
  8601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8602. *) ac_try_echo=$ac_try;;
  8603. esac
  8604. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8605. (eval "$ac_compile") 2>conftest.er1
  8606. ac_status=$?
  8607. grep -v '^ *+' conftest.er1 >conftest.err
  8608. rm -f conftest.er1
  8609. cat conftest.err >&5
  8610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8611. (exit $ac_status); } && {
  8612. test -z "$ac_cxx_werror_flag" ||
  8613. test ! -s conftest.err
  8614. } && test -s conftest.$ac_objext; then
  8615. ac_header_compiler=yes
  8616. else
  8617. echo "$as_me: failed program was:" >&5
  8618. sed 's/^/| /' conftest.$ac_ext >&5
  8619. ac_header_compiler=no
  8620. fi
  8621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8622. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8623. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8624. # Is the header present?
  8625. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8626. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8627. cat >conftest.$ac_ext <<_ACEOF
  8628. /* confdefs.h. */
  8629. _ACEOF
  8630. cat confdefs.h >>conftest.$ac_ext
  8631. cat >>conftest.$ac_ext <<_ACEOF
  8632. /* end confdefs.h. */
  8633. #include <$ac_header>
  8634. _ACEOF
  8635. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8636. case "(($ac_try" in
  8637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8638. *) ac_try_echo=$ac_try;;
  8639. esac
  8640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8641. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8642. ac_status=$?
  8643. grep -v '^ *+' conftest.er1 >conftest.err
  8644. rm -f conftest.er1
  8645. cat conftest.err >&5
  8646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8647. (exit $ac_status); } >/dev/null && {
  8648. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8649. test ! -s conftest.err
  8650. }; then
  8651. ac_header_preproc=yes
  8652. else
  8653. echo "$as_me: failed program was:" >&5
  8654. sed 's/^/| /' conftest.$ac_ext >&5
  8655. ac_header_preproc=no
  8656. fi
  8657. rm -f conftest.err conftest.$ac_ext
  8658. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8659. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8660. # So? What about this header?
  8661. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8662. yes:no: )
  8663. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8664. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8665. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8666. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8667. ac_header_preproc=yes
  8668. ;;
  8669. no:yes:* )
  8670. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8671. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8672. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8673. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8674. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8675. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8676. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8677. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8678. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8679. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8680. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8681. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8682. ;;
  8683. esac
  8684. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8685. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8686. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8687. echo $ECHO_N "(cached) $ECHO_C" >&6
  8688. else
  8689. eval "$as_ac_Header=\$ac_header_preproc"
  8690. fi
  8691. ac_res=`eval echo '${'$as_ac_Header'}'`
  8692. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8693. echo "${ECHO_T}$ac_res" >&6; }
  8694. fi
  8695. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8696. cat >>confdefs.h <<_ACEOF
  8697. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8698. _ACEOF
  8699. fi
  8700. done
  8701. for ac_func in fork vfork
  8702. do
  8703. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8704. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8705. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8706. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8707. echo $ECHO_N "(cached) $ECHO_C" >&6
  8708. else
  8709. cat >conftest.$ac_ext <<_ACEOF
  8710. /* confdefs.h. */
  8711. _ACEOF
  8712. cat confdefs.h >>conftest.$ac_ext
  8713. cat >>conftest.$ac_ext <<_ACEOF
  8714. /* end confdefs.h. */
  8715. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8716. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8717. #define $ac_func innocuous_$ac_func
  8718. /* System header to define __stub macros and hopefully few prototypes,
  8719. which can conflict with char $ac_func (); below.
  8720. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8721. <limits.h> exists even on freestanding compilers. */
  8722. #ifdef __STDC__
  8723. # include <limits.h>
  8724. #else
  8725. # include <assert.h>
  8726. #endif
  8727. #undef $ac_func
  8728. /* Override any GCC internal prototype to avoid an error.
  8729. Use char because int might match the return type of a GCC
  8730. builtin and then its argument prototype would still apply. */
  8731. #ifdef __cplusplus
  8732. extern "C"
  8733. #endif
  8734. char $ac_func ();
  8735. /* The GNU C library defines this for functions which it implements
  8736. to always fail with ENOSYS. Some functions are actually named
  8737. something starting with __ and the normal name is an alias. */
  8738. #if defined __stub_$ac_func || defined __stub___$ac_func
  8739. choke me
  8740. #endif
  8741. int
  8742. main ()
  8743. {
  8744. return $ac_func ();
  8745. ;
  8746. return 0;
  8747. }
  8748. _ACEOF
  8749. rm -f conftest.$ac_objext conftest$ac_exeext
  8750. if { (ac_try="$ac_link"
  8751. case "(($ac_try" in
  8752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8753. *) ac_try_echo=$ac_try;;
  8754. esac
  8755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8756. (eval "$ac_link") 2>conftest.er1
  8757. ac_status=$?
  8758. grep -v '^ *+' conftest.er1 >conftest.err
  8759. rm -f conftest.er1
  8760. cat conftest.err >&5
  8761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8762. (exit $ac_status); } && {
  8763. test -z "$ac_cxx_werror_flag" ||
  8764. test ! -s conftest.err
  8765. } && test -s conftest$ac_exeext &&
  8766. $as_test_x conftest$ac_exeext; then
  8767. eval "$as_ac_var=yes"
  8768. else
  8769. echo "$as_me: failed program was:" >&5
  8770. sed 's/^/| /' conftest.$ac_ext >&5
  8771. eval "$as_ac_var=no"
  8772. fi
  8773. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8774. conftest$ac_exeext conftest.$ac_ext
  8775. fi
  8776. ac_res=`eval echo '${'$as_ac_var'}'`
  8777. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8778. echo "${ECHO_T}$ac_res" >&6; }
  8779. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8780. cat >>confdefs.h <<_ACEOF
  8781. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8782. _ACEOF
  8783. fi
  8784. done
  8785. if test "x$ac_cv_func_fork" = xyes; then
  8786. { echo "$as_me:$LINENO: checking for working fork" >&5
  8787. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  8788. if test "${ac_cv_func_fork_works+set}" = set; then
  8789. echo $ECHO_N "(cached) $ECHO_C" >&6
  8790. else
  8791. if test "$cross_compiling" = yes; then
  8792. ac_cv_func_fork_works=cross
  8793. else
  8794. cat >conftest.$ac_ext <<_ACEOF
  8795. /* confdefs.h. */
  8796. _ACEOF
  8797. cat confdefs.h >>conftest.$ac_ext
  8798. cat >>conftest.$ac_ext <<_ACEOF
  8799. /* end confdefs.h. */
  8800. $ac_includes_default
  8801. int
  8802. main ()
  8803. {
  8804. /* By Ruediger Kuhlmann. */
  8805. return fork () < 0;
  8806. ;
  8807. return 0;
  8808. }
  8809. _ACEOF
  8810. rm -f conftest$ac_exeext
  8811. if { (ac_try="$ac_link"
  8812. case "(($ac_try" in
  8813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8814. *) ac_try_echo=$ac_try;;
  8815. esac
  8816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8817. (eval "$ac_link") 2>&5
  8818. ac_status=$?
  8819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8820. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8821. { (case "(($ac_try" in
  8822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8823. *) ac_try_echo=$ac_try;;
  8824. esac
  8825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8826. (eval "$ac_try") 2>&5
  8827. ac_status=$?
  8828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8829. (exit $ac_status); }; }; then
  8830. ac_cv_func_fork_works=yes
  8831. else
  8832. echo "$as_me: program exited with status $ac_status" >&5
  8833. echo "$as_me: failed program was:" >&5
  8834. sed 's/^/| /' conftest.$ac_ext >&5
  8835. ( exit $ac_status )
  8836. ac_cv_func_fork_works=no
  8837. fi
  8838. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8839. fi
  8840. fi
  8841. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8842. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  8843. else
  8844. ac_cv_func_fork_works=$ac_cv_func_fork
  8845. fi
  8846. if test "x$ac_cv_func_fork_works" = xcross; then
  8847. case $host in
  8848. *-*-amigaos* | *-*-msdosdjgpp*)
  8849. # Override, as these systems have only a dummy fork() stub
  8850. ac_cv_func_fork_works=no
  8851. ;;
  8852. *)
  8853. ac_cv_func_fork_works=yes
  8854. ;;
  8855. esac
  8856. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8857. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8858. fi
  8859. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8860. if test "x$ac_cv_func_vfork" = xyes; then
  8861. { echo "$as_me:$LINENO: checking for working vfork" >&5
  8862. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  8863. if test "${ac_cv_func_vfork_works+set}" = set; then
  8864. echo $ECHO_N "(cached) $ECHO_C" >&6
  8865. else
  8866. if test "$cross_compiling" = yes; then
  8867. ac_cv_func_vfork_works=cross
  8868. else
  8869. cat >conftest.$ac_ext <<_ACEOF
  8870. /* confdefs.h. */
  8871. _ACEOF
  8872. cat confdefs.h >>conftest.$ac_ext
  8873. cat >>conftest.$ac_ext <<_ACEOF
  8874. /* end confdefs.h. */
  8875. /* Thanks to Paul Eggert for this test. */
  8876. $ac_includes_default
  8877. #include <sys/wait.h>
  8878. #ifdef HAVE_VFORK_H
  8879. # include <vfork.h>
  8880. #endif
  8881. /* On some sparc systems, changes by the child to local and incoming
  8882. argument registers are propagated back to the parent. The compiler
  8883. is told about this with #include <vfork.h>, but some compilers
  8884. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8885. static variable whose address is put into a register that is
  8886. clobbered by the vfork. */
  8887. static void
  8888. #ifdef __cplusplus
  8889. sparc_address_test (int arg)
  8890. # else
  8891. sparc_address_test (arg) int arg;
  8892. #endif
  8893. {
  8894. static pid_t child;
  8895. if (!child) {
  8896. child = vfork ();
  8897. if (child < 0) {
  8898. perror ("vfork");
  8899. _exit(2);
  8900. }
  8901. if (!child) {
  8902. arg = getpid();
  8903. write(-1, "", 0);
  8904. _exit (arg);
  8905. }
  8906. }
  8907. }
  8908. int
  8909. main ()
  8910. {
  8911. pid_t parent = getpid ();
  8912. pid_t child;
  8913. sparc_address_test (0);
  8914. child = vfork ();
  8915. if (child == 0) {
  8916. /* Here is another test for sparc vfork register problems. This
  8917. test uses lots of local variables, at least as many local
  8918. variables as main has allocated so far including compiler
  8919. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8920. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8921. reuse the register of parent for one of the local variables,
  8922. since it will think that parent can't possibly be used any more
  8923. in this routine. Assigning to the local variable will thus
  8924. munge parent in the parent process. */
  8925. pid_t
  8926. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8927. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8928. /* Convince the compiler that p..p7 are live; otherwise, it might
  8929. use the same hardware register for all 8 local variables. */
  8930. if (p != p1 || p != p2 || p != p3 || p != p4
  8931. || p != p5 || p != p6 || p != p7)
  8932. _exit(1);
  8933. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8934. from child file descriptors. If the child closes a descriptor
  8935. before it execs or exits, this munges the parent's descriptor
  8936. as well. Test for this by closing stdout in the child. */
  8937. _exit(close(fileno(stdout)) != 0);
  8938. } else {
  8939. int status;
  8940. struct stat st;
  8941. while (wait(&status) != child)
  8942. ;
  8943. return (
  8944. /* Was there some problem with vforking? */
  8945. child < 0
  8946. /* Did the child fail? (This shouldn't happen.) */
  8947. || status
  8948. /* Did the vfork/compiler bug occur? */
  8949. || parent != getpid()
  8950. /* Did the file descriptor bug occur? */
  8951. || fstat(fileno(stdout), &st) != 0
  8952. );
  8953. }
  8954. }
  8955. _ACEOF
  8956. rm -f conftest$ac_exeext
  8957. if { (ac_try="$ac_link"
  8958. case "(($ac_try" in
  8959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8960. *) ac_try_echo=$ac_try;;
  8961. esac
  8962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8963. (eval "$ac_link") 2>&5
  8964. ac_status=$?
  8965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8966. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8967. { (case "(($ac_try" in
  8968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8969. *) ac_try_echo=$ac_try;;
  8970. esac
  8971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8972. (eval "$ac_try") 2>&5
  8973. ac_status=$?
  8974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8975. (exit $ac_status); }; }; then
  8976. ac_cv_func_vfork_works=yes
  8977. else
  8978. echo "$as_me: program exited with status $ac_status" >&5
  8979. echo "$as_me: failed program was:" >&5
  8980. sed 's/^/| /' conftest.$ac_ext >&5
  8981. ( exit $ac_status )
  8982. ac_cv_func_vfork_works=no
  8983. fi
  8984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8985. fi
  8986. fi
  8987. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8988. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  8989. fi;
  8990. if test "x$ac_cv_func_fork_works" = xcross; then
  8991. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8992. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8993. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8994. fi
  8995. if test "x$ac_cv_func_vfork_works" = xyes; then
  8996. cat >>confdefs.h <<\_ACEOF
  8997. #define HAVE_WORKING_VFORK 1
  8998. _ACEOF
  8999. else
  9000. cat >>confdefs.h <<\_ACEOF
  9001. #define vfork fork
  9002. _ACEOF
  9003. fi
  9004. if test "x$ac_cv_func_fork_works" = xyes; then
  9005. cat >>confdefs.h <<\_ACEOF
  9006. #define HAVE_WORKING_FORK 1
  9007. _ACEOF
  9008. fi
  9009. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9010. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  9011. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9012. echo $ECHO_N "(cached) $ECHO_C" >&6
  9013. else
  9014. rm -f conftest.sym conftest.file
  9015. echo >conftest.file
  9016. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9017. if test "$cross_compiling" = yes; then
  9018. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9019. else
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. $ac_includes_default
  9027. int
  9028. main ()
  9029. {
  9030. struct stat sbuf;
  9031. /* Linux will dereference the symlink and fail.
  9032. That is better in the sense that it means we will not
  9033. have to compile and use the lstat wrapper. */
  9034. return lstat ("conftest.sym/", &sbuf) == 0;
  9035. ;
  9036. return 0;
  9037. }
  9038. _ACEOF
  9039. rm -f conftest$ac_exeext
  9040. if { (ac_try="$ac_link"
  9041. case "(($ac_try" in
  9042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9043. *) ac_try_echo=$ac_try;;
  9044. esac
  9045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9046. (eval "$ac_link") 2>&5
  9047. ac_status=$?
  9048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9050. { (case "(($ac_try" in
  9051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9052. *) ac_try_echo=$ac_try;;
  9053. esac
  9054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9055. (eval "$ac_try") 2>&5
  9056. ac_status=$?
  9057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9058. (exit $ac_status); }; }; then
  9059. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9060. else
  9061. echo "$as_me: program exited with status $ac_status" >&5
  9062. echo "$as_me: failed program was:" >&5
  9063. sed 's/^/| /' conftest.$ac_ext >&5
  9064. ( exit $ac_status )
  9065. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9066. fi
  9067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9068. fi
  9069. else
  9070. # If the `ln -s' command failed, then we probably don't even
  9071. # have an lstat function.
  9072. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9073. fi
  9074. rm -f conftest.sym conftest.file
  9075. fi
  9076. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9077. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9078. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9079. cat >>confdefs.h <<_ACEOF
  9080. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9081. _ACEOF
  9082. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9083. case " $LIBOBJS " in
  9084. *" lstat.$ac_objext "* ) ;;
  9085. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9086. ;;
  9087. esac
  9088. fi
  9089. { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9090. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
  9091. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9092. echo $ECHO_N "(cached) $ECHO_C" >&6
  9093. else
  9094. if test "$cross_compiling" = yes; then
  9095. ac_cv_func_lstat_empty_string_bug=yes
  9096. else
  9097. cat >conftest.$ac_ext <<_ACEOF
  9098. /* confdefs.h. */
  9099. _ACEOF
  9100. cat confdefs.h >>conftest.$ac_ext
  9101. cat >>conftest.$ac_ext <<_ACEOF
  9102. /* end confdefs.h. */
  9103. $ac_includes_default
  9104. int
  9105. main ()
  9106. {
  9107. struct stat sbuf;
  9108. return lstat ("", &sbuf) == 0;
  9109. ;
  9110. return 0;
  9111. }
  9112. _ACEOF
  9113. rm -f conftest$ac_exeext
  9114. if { (ac_try="$ac_link"
  9115. case "(($ac_try" in
  9116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9117. *) ac_try_echo=$ac_try;;
  9118. esac
  9119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9120. (eval "$ac_link") 2>&5
  9121. ac_status=$?
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9124. { (case "(($ac_try" in
  9125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9126. *) ac_try_echo=$ac_try;;
  9127. esac
  9128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9129. (eval "$ac_try") 2>&5
  9130. ac_status=$?
  9131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9132. (exit $ac_status); }; }; then
  9133. ac_cv_func_lstat_empty_string_bug=no
  9134. else
  9135. echo "$as_me: program exited with status $ac_status" >&5
  9136. echo "$as_me: failed program was:" >&5
  9137. sed 's/^/| /' conftest.$ac_ext >&5
  9138. ( exit $ac_status )
  9139. ac_cv_func_lstat_empty_string_bug=yes
  9140. fi
  9141. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9142. fi
  9143. fi
  9144. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9145. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
  9146. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9147. case " $LIBOBJS " in
  9148. *" lstat.$ac_objext "* ) ;;
  9149. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9150. ;;
  9151. esac
  9152. cat >>confdefs.h <<_ACEOF
  9153. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9154. _ACEOF
  9155. fi
  9156. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9157. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  9158. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9159. echo $ECHO_N "(cached) $ECHO_C" >&6
  9160. else
  9161. rm -f conftest.sym conftest.file
  9162. echo >conftest.file
  9163. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9164. if test "$cross_compiling" = yes; then
  9165. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9166. else
  9167. cat >conftest.$ac_ext <<_ACEOF
  9168. /* confdefs.h. */
  9169. _ACEOF
  9170. cat confdefs.h >>conftest.$ac_ext
  9171. cat >>conftest.$ac_ext <<_ACEOF
  9172. /* end confdefs.h. */
  9173. $ac_includes_default
  9174. int
  9175. main ()
  9176. {
  9177. struct stat sbuf;
  9178. /* Linux will dereference the symlink and fail.
  9179. That is better in the sense that it means we will not
  9180. have to compile and use the lstat wrapper. */
  9181. return lstat ("conftest.sym/", &sbuf) == 0;
  9182. ;
  9183. return 0;
  9184. }
  9185. _ACEOF
  9186. rm -f conftest$ac_exeext
  9187. if { (ac_try="$ac_link"
  9188. case "(($ac_try" in
  9189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9190. *) ac_try_echo=$ac_try;;
  9191. esac
  9192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9193. (eval "$ac_link") 2>&5
  9194. ac_status=$?
  9195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9196. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9197. { (case "(($ac_try" in
  9198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9199. *) ac_try_echo=$ac_try;;
  9200. esac
  9201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9202. (eval "$ac_try") 2>&5
  9203. ac_status=$?
  9204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9205. (exit $ac_status); }; }; then
  9206. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9207. else
  9208. echo "$as_me: program exited with status $ac_status" >&5
  9209. echo "$as_me: failed program was:" >&5
  9210. sed 's/^/| /' conftest.$ac_ext >&5
  9211. ( exit $ac_status )
  9212. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9213. fi
  9214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9215. fi
  9216. else
  9217. # If the `ln -s' command failed, then we probably don't even
  9218. # have an lstat function.
  9219. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9220. fi
  9221. rm -f conftest.sym conftest.file
  9222. fi
  9223. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9224. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9225. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9226. cat >>confdefs.h <<_ACEOF
  9227. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9228. _ACEOF
  9229. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9230. case " $LIBOBJS " in
  9231. *" lstat.$ac_objext "* ) ;;
  9232. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9233. ;;
  9234. esac
  9235. fi
  9236. for ac_header in stdlib.h
  9237. do
  9238. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9239. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9240. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9241. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9242. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9243. echo $ECHO_N "(cached) $ECHO_C" >&6
  9244. fi
  9245. ac_res=`eval echo '${'$as_ac_Header'}'`
  9246. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9247. echo "${ECHO_T}$ac_res" >&6; }
  9248. else
  9249. # Is the header compilable?
  9250. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9251. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9252. cat >conftest.$ac_ext <<_ACEOF
  9253. /* confdefs.h. */
  9254. _ACEOF
  9255. cat confdefs.h >>conftest.$ac_ext
  9256. cat >>conftest.$ac_ext <<_ACEOF
  9257. /* end confdefs.h. */
  9258. $ac_includes_default
  9259. #include <$ac_header>
  9260. _ACEOF
  9261. rm -f conftest.$ac_objext
  9262. if { (ac_try="$ac_compile"
  9263. case "(($ac_try" in
  9264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9265. *) ac_try_echo=$ac_try;;
  9266. esac
  9267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9268. (eval "$ac_compile") 2>conftest.er1
  9269. ac_status=$?
  9270. grep -v '^ *+' conftest.er1 >conftest.err
  9271. rm -f conftest.er1
  9272. cat conftest.err >&5
  9273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9274. (exit $ac_status); } && {
  9275. test -z "$ac_cxx_werror_flag" ||
  9276. test ! -s conftest.err
  9277. } && test -s conftest.$ac_objext; then
  9278. ac_header_compiler=yes
  9279. else
  9280. echo "$as_me: failed program was:" >&5
  9281. sed 's/^/| /' conftest.$ac_ext >&5
  9282. ac_header_compiler=no
  9283. fi
  9284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9285. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9286. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9287. # Is the header present?
  9288. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9289. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9290. cat >conftest.$ac_ext <<_ACEOF
  9291. /* confdefs.h. */
  9292. _ACEOF
  9293. cat confdefs.h >>conftest.$ac_ext
  9294. cat >>conftest.$ac_ext <<_ACEOF
  9295. /* end confdefs.h. */
  9296. #include <$ac_header>
  9297. _ACEOF
  9298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9299. case "(($ac_try" in
  9300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9301. *) ac_try_echo=$ac_try;;
  9302. esac
  9303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9305. ac_status=$?
  9306. grep -v '^ *+' conftest.er1 >conftest.err
  9307. rm -f conftest.er1
  9308. cat conftest.err >&5
  9309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9310. (exit $ac_status); } >/dev/null && {
  9311. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9312. test ! -s conftest.err
  9313. }; then
  9314. ac_header_preproc=yes
  9315. else
  9316. echo "$as_me: failed program was:" >&5
  9317. sed 's/^/| /' conftest.$ac_ext >&5
  9318. ac_header_preproc=no
  9319. fi
  9320. rm -f conftest.err conftest.$ac_ext
  9321. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9322. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9323. # So? What about this header?
  9324. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9325. yes:no: )
  9326. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9327. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9328. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9329. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9330. ac_header_preproc=yes
  9331. ;;
  9332. no:yes:* )
  9333. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9334. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9335. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9336. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9337. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9338. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9339. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9340. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9341. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9342. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9343. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9344. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9345. ;;
  9346. esac
  9347. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9348. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9349. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9350. echo $ECHO_N "(cached) $ECHO_C" >&6
  9351. else
  9352. eval "$as_ac_Header=\$ac_header_preproc"
  9353. fi
  9354. ac_res=`eval echo '${'$as_ac_Header'}'`
  9355. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9356. echo "${ECHO_T}$ac_res" >&6; }
  9357. fi
  9358. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9359. cat >>confdefs.h <<_ACEOF
  9360. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9361. _ACEOF
  9362. fi
  9363. done
  9364. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9365. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9366. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9367. echo $ECHO_N "(cached) $ECHO_C" >&6
  9368. else
  9369. if test "$cross_compiling" = yes; then
  9370. ac_cv_func_malloc_0_nonnull=no
  9371. else
  9372. cat >conftest.$ac_ext <<_ACEOF
  9373. /* confdefs.h. */
  9374. _ACEOF
  9375. cat confdefs.h >>conftest.$ac_ext
  9376. cat >>conftest.$ac_ext <<_ACEOF
  9377. /* end confdefs.h. */
  9378. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9379. # include <stdlib.h>
  9380. #else
  9381. char *malloc ();
  9382. #endif
  9383. int
  9384. main ()
  9385. {
  9386. return ! malloc (0);
  9387. ;
  9388. return 0;
  9389. }
  9390. _ACEOF
  9391. rm -f conftest$ac_exeext
  9392. if { (ac_try="$ac_link"
  9393. case "(($ac_try" in
  9394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9395. *) ac_try_echo=$ac_try;;
  9396. esac
  9397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9398. (eval "$ac_link") 2>&5
  9399. ac_status=$?
  9400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9401. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9402. { (case "(($ac_try" in
  9403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9404. *) ac_try_echo=$ac_try;;
  9405. esac
  9406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9407. (eval "$ac_try") 2>&5
  9408. ac_status=$?
  9409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9410. (exit $ac_status); }; }; then
  9411. ac_cv_func_malloc_0_nonnull=yes
  9412. else
  9413. echo "$as_me: program exited with status $ac_status" >&5
  9414. echo "$as_me: failed program was:" >&5
  9415. sed 's/^/| /' conftest.$ac_ext >&5
  9416. ( exit $ac_status )
  9417. ac_cv_func_malloc_0_nonnull=no
  9418. fi
  9419. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9420. fi
  9421. fi
  9422. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9423. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9424. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9425. cat >>confdefs.h <<\_ACEOF
  9426. #define HAVE_MALLOC 1
  9427. _ACEOF
  9428. else
  9429. cat >>confdefs.h <<\_ACEOF
  9430. #define HAVE_MALLOC 0
  9431. _ACEOF
  9432. case " $LIBOBJS " in
  9433. *" malloc.$ac_objext "* ) ;;
  9434. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9435. ;;
  9436. esac
  9437. cat >>confdefs.h <<\_ACEOF
  9438. #define malloc rpl_malloc
  9439. _ACEOF
  9440. fi
  9441. for ac_header in $ac_header_list
  9442. do
  9443. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9444. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9445. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9447. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9448. echo $ECHO_N "(cached) $ECHO_C" >&6
  9449. fi
  9450. ac_res=`eval echo '${'$as_ac_Header'}'`
  9451. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9452. echo "${ECHO_T}$ac_res" >&6; }
  9453. else
  9454. # Is the header compilable?
  9455. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9456. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9457. cat >conftest.$ac_ext <<_ACEOF
  9458. /* confdefs.h. */
  9459. _ACEOF
  9460. cat confdefs.h >>conftest.$ac_ext
  9461. cat >>conftest.$ac_ext <<_ACEOF
  9462. /* end confdefs.h. */
  9463. $ac_includes_default
  9464. #include <$ac_header>
  9465. _ACEOF
  9466. rm -f conftest.$ac_objext
  9467. if { (ac_try="$ac_compile"
  9468. case "(($ac_try" in
  9469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9470. *) ac_try_echo=$ac_try;;
  9471. esac
  9472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9473. (eval "$ac_compile") 2>conftest.er1
  9474. ac_status=$?
  9475. grep -v '^ *+' conftest.er1 >conftest.err
  9476. rm -f conftest.er1
  9477. cat conftest.err >&5
  9478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9479. (exit $ac_status); } && {
  9480. test -z "$ac_cxx_werror_flag" ||
  9481. test ! -s conftest.err
  9482. } && test -s conftest.$ac_objext; then
  9483. ac_header_compiler=yes
  9484. else
  9485. echo "$as_me: failed program was:" >&5
  9486. sed 's/^/| /' conftest.$ac_ext >&5
  9487. ac_header_compiler=no
  9488. fi
  9489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9490. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9491. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9492. # Is the header present?
  9493. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9494. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9495. cat >conftest.$ac_ext <<_ACEOF
  9496. /* confdefs.h. */
  9497. _ACEOF
  9498. cat confdefs.h >>conftest.$ac_ext
  9499. cat >>conftest.$ac_ext <<_ACEOF
  9500. /* end confdefs.h. */
  9501. #include <$ac_header>
  9502. _ACEOF
  9503. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9504. case "(($ac_try" in
  9505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9506. *) ac_try_echo=$ac_try;;
  9507. esac
  9508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9509. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9510. ac_status=$?
  9511. grep -v '^ *+' conftest.er1 >conftest.err
  9512. rm -f conftest.er1
  9513. cat conftest.err >&5
  9514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9515. (exit $ac_status); } >/dev/null && {
  9516. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9517. test ! -s conftest.err
  9518. }; then
  9519. ac_header_preproc=yes
  9520. else
  9521. echo "$as_me: failed program was:" >&5
  9522. sed 's/^/| /' conftest.$ac_ext >&5
  9523. ac_header_preproc=no
  9524. fi
  9525. rm -f conftest.err conftest.$ac_ext
  9526. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9527. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9528. # So? What about this header?
  9529. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9530. yes:no: )
  9531. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9532. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9533. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9534. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9535. ac_header_preproc=yes
  9536. ;;
  9537. no:yes:* )
  9538. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9539. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9540. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9541. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9542. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9543. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9544. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9545. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9546. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9547. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9548. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9549. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9550. ;;
  9551. esac
  9552. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9553. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9555. echo $ECHO_N "(cached) $ECHO_C" >&6
  9556. else
  9557. eval "$as_ac_Header=\$ac_header_preproc"
  9558. fi
  9559. ac_res=`eval echo '${'$as_ac_Header'}'`
  9560. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9561. echo "${ECHO_T}$ac_res" >&6; }
  9562. fi
  9563. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9564. cat >>confdefs.h <<_ACEOF
  9565. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9566. _ACEOF
  9567. fi
  9568. done
  9569. for ac_func in $ac_func_list
  9570. do
  9571. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9572. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9573. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9574. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9575. echo $ECHO_N "(cached) $ECHO_C" >&6
  9576. else
  9577. cat >conftest.$ac_ext <<_ACEOF
  9578. /* confdefs.h. */
  9579. _ACEOF
  9580. cat confdefs.h >>conftest.$ac_ext
  9581. cat >>conftest.$ac_ext <<_ACEOF
  9582. /* end confdefs.h. */
  9583. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9584. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9585. #define $ac_func innocuous_$ac_func
  9586. /* System header to define __stub macros and hopefully few prototypes,
  9587. which can conflict with char $ac_func (); below.
  9588. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9589. <limits.h> exists even on freestanding compilers. */
  9590. #ifdef __STDC__
  9591. # include <limits.h>
  9592. #else
  9593. # include <assert.h>
  9594. #endif
  9595. #undef $ac_func
  9596. /* Override any GCC internal prototype to avoid an error.
  9597. Use char because int might match the return type of a GCC
  9598. builtin and then its argument prototype would still apply. */
  9599. #ifdef __cplusplus
  9600. extern "C"
  9601. #endif
  9602. char $ac_func ();
  9603. /* The GNU C library defines this for functions which it implements
  9604. to always fail with ENOSYS. Some functions are actually named
  9605. something starting with __ and the normal name is an alias. */
  9606. #if defined __stub_$ac_func || defined __stub___$ac_func
  9607. choke me
  9608. #endif
  9609. int
  9610. main ()
  9611. {
  9612. return $ac_func ();
  9613. ;
  9614. return 0;
  9615. }
  9616. _ACEOF
  9617. rm -f conftest.$ac_objext conftest$ac_exeext
  9618. if { (ac_try="$ac_link"
  9619. case "(($ac_try" in
  9620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9621. *) ac_try_echo=$ac_try;;
  9622. esac
  9623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9624. (eval "$ac_link") 2>conftest.er1
  9625. ac_status=$?
  9626. grep -v '^ *+' conftest.er1 >conftest.err
  9627. rm -f conftest.er1
  9628. cat conftest.err >&5
  9629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9630. (exit $ac_status); } && {
  9631. test -z "$ac_cxx_werror_flag" ||
  9632. test ! -s conftest.err
  9633. } && test -s conftest$ac_exeext &&
  9634. $as_test_x conftest$ac_exeext; then
  9635. eval "$as_ac_var=yes"
  9636. else
  9637. echo "$as_me: failed program was:" >&5
  9638. sed 's/^/| /' conftest.$ac_ext >&5
  9639. eval "$as_ac_var=no"
  9640. fi
  9641. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9642. conftest$ac_exeext conftest.$ac_ext
  9643. fi
  9644. ac_res=`eval echo '${'$as_ac_var'}'`
  9645. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9646. echo "${ECHO_T}$ac_res" >&6; }
  9647. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9648. cat >>confdefs.h <<_ACEOF
  9649. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9650. _ACEOF
  9651. fi
  9652. done
  9653. { echo "$as_me:$LINENO: checking for working mktime" >&5
  9654. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  9655. if test "${ac_cv_func_working_mktime+set}" = set; then
  9656. echo $ECHO_N "(cached) $ECHO_C" >&6
  9657. else
  9658. if test "$cross_compiling" = yes; then
  9659. ac_cv_func_working_mktime=no
  9660. else
  9661. cat >conftest.$ac_ext <<_ACEOF
  9662. /* confdefs.h. */
  9663. _ACEOF
  9664. cat confdefs.h >>conftest.$ac_ext
  9665. cat >>conftest.$ac_ext <<_ACEOF
  9666. /* end confdefs.h. */
  9667. /* Test program from Paul Eggert and Tony Leneis. */
  9668. #ifdef TIME_WITH_SYS_TIME
  9669. # include <sys/time.h>
  9670. # include <time.h>
  9671. #else
  9672. # ifdef HAVE_SYS_TIME_H
  9673. # include <sys/time.h>
  9674. # else
  9675. # include <time.h>
  9676. # endif
  9677. #endif
  9678. #include <limits.h>
  9679. #include <stdlib.h>
  9680. #ifdef HAVE_UNISTD_H
  9681. # include <unistd.h>
  9682. #endif
  9683. #ifndef HAVE_ALARM
  9684. # define alarm(X) /* empty */
  9685. #endif
  9686. /* Work around redefinition to rpl_putenv by other config tests. */
  9687. #undef putenv
  9688. static time_t time_t_max;
  9689. static time_t time_t_min;
  9690. /* Values we'll use to set the TZ environment variable. */
  9691. static char *tz_strings[] = {
  9692. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9693. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9694. };
  9695. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9696. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  9697. Based on a problem report from Andreas Jaeger. */
  9698. static int
  9699. spring_forward_gap ()
  9700. {
  9701. /* glibc (up to about 1998-10-07) failed this test. */
  9702. struct tm tm;
  9703. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9704. instead of "TZ=America/Vancouver" in order to detect the bug even
  9705. on systems that don't support the Olson extension, or don't have the
  9706. full zoneinfo tables installed. */
  9707. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9708. tm.tm_year = 98;
  9709. tm.tm_mon = 3;
  9710. tm.tm_mday = 5;
  9711. tm.tm_hour = 2;
  9712. tm.tm_min = 0;
  9713. tm.tm_sec = 0;
  9714. tm.tm_isdst = -1;
  9715. return mktime (&tm) != (time_t) -1;
  9716. }
  9717. static int
  9718. mktime_test1 (now)
  9719. time_t now;
  9720. {
  9721. struct tm *lt;
  9722. return ! (lt = localtime (&now)) || mktime (lt) == now;
  9723. }
  9724. static int
  9725. mktime_test (now)
  9726. time_t now;
  9727. {
  9728. return (mktime_test1 (now)
  9729. && mktime_test1 ((time_t) (time_t_max - now))
  9730. && mktime_test1 ((time_t) (time_t_min + now)));
  9731. }
  9732. static int
  9733. irix_6_4_bug ()
  9734. {
  9735. /* Based on code from Ariel Faigon. */
  9736. struct tm tm;
  9737. tm.tm_year = 96;
  9738. tm.tm_mon = 3;
  9739. tm.tm_mday = 0;
  9740. tm.tm_hour = 0;
  9741. tm.tm_min = 0;
  9742. tm.tm_sec = 0;
  9743. tm.tm_isdst = -1;
  9744. mktime (&tm);
  9745. return tm.tm_mon == 2 && tm.tm_mday == 31;
  9746. }
  9747. static int
  9748. bigtime_test (j)
  9749. int j;
  9750. {
  9751. struct tm tm;
  9752. time_t now;
  9753. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9754. now = mktime (&tm);
  9755. if (now != (time_t) -1)
  9756. {
  9757. struct tm *lt = localtime (&now);
  9758. if (! (lt
  9759. && lt->tm_year == tm.tm_year
  9760. && lt->tm_mon == tm.tm_mon
  9761. && lt->tm_mday == tm.tm_mday
  9762. && lt->tm_hour == tm.tm_hour
  9763. && lt->tm_min == tm.tm_min
  9764. && lt->tm_sec == tm.tm_sec
  9765. && lt->tm_yday == tm.tm_yday
  9766. && lt->tm_wday == tm.tm_wday
  9767. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9768. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9769. return 0;
  9770. }
  9771. return 1;
  9772. }
  9773. static int
  9774. year_2050_test ()
  9775. {
  9776. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  9777. ignoring leap seconds. */
  9778. unsigned long int answer = 2527315200UL;
  9779. struct tm tm;
  9780. time_t t;
  9781. tm.tm_year = 2050 - 1900;
  9782. tm.tm_mon = 2 - 1;
  9783. tm.tm_mday = 1;
  9784. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  9785. tm.tm_isdst = -1;
  9786. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9787. instead of "TZ=America/Vancouver" in order to detect the bug even
  9788. on systems that don't support the Olson extension, or don't have the
  9789. full zoneinfo tables installed. */
  9790. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9791. t = mktime (&tm);
  9792. /* Check that the result is either a failure, or close enough
  9793. to the correct answer that we can assume the discrepancy is
  9794. due to leap seconds. */
  9795. return (t == (time_t) -1
  9796. || (0 < t && answer - 120 <= t && t <= answer + 120));
  9797. }
  9798. int
  9799. main ()
  9800. {
  9801. time_t t, delta;
  9802. int i, j;
  9803. /* This test makes some buggy mktime implementations loop.
  9804. Give up after 60 seconds; a mktime slower than that
  9805. isn't worth using anyway. */
  9806. alarm (60);
  9807. for (;;)
  9808. {
  9809. t = (time_t_max << 1) + 1;
  9810. if (t <= time_t_max)
  9811. break;
  9812. time_t_max = t;
  9813. }
  9814. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  9815. delta = time_t_max / 997; /* a suitable prime number */
  9816. for (i = 0; i < N_STRINGS; i++)
  9817. {
  9818. if (tz_strings[i])
  9819. putenv (tz_strings[i]);
  9820. for (t = 0; t <= time_t_max - delta; t += delta)
  9821. if (! mktime_test (t))
  9822. return 1;
  9823. if (! (mktime_test ((time_t) 1)
  9824. && mktime_test ((time_t) (60 * 60))
  9825. && mktime_test ((time_t) (60 * 60 * 24))))
  9826. return 1;
  9827. for (j = 1; ; j <<= 1)
  9828. if (! bigtime_test (j))
  9829. return 1;
  9830. else if (INT_MAX / 2 < j)
  9831. break;
  9832. if (! bigtime_test (INT_MAX))
  9833. return 1;
  9834. }
  9835. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  9836. }
  9837. _ACEOF
  9838. rm -f conftest$ac_exeext
  9839. if { (ac_try="$ac_link"
  9840. case "(($ac_try" in
  9841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9842. *) ac_try_echo=$ac_try;;
  9843. esac
  9844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9845. (eval "$ac_link") 2>&5
  9846. ac_status=$?
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9849. { (case "(($ac_try" in
  9850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9851. *) ac_try_echo=$ac_try;;
  9852. esac
  9853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9854. (eval "$ac_try") 2>&5
  9855. ac_status=$?
  9856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. (exit $ac_status); }; }; then
  9858. ac_cv_func_working_mktime=yes
  9859. else
  9860. echo "$as_me: program exited with status $ac_status" >&5
  9861. echo "$as_me: failed program was:" >&5
  9862. sed 's/^/| /' conftest.$ac_ext >&5
  9863. ( exit $ac_status )
  9864. ac_cv_func_working_mktime=no
  9865. fi
  9866. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9867. fi
  9868. fi
  9869. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9870. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  9871. if test $ac_cv_func_working_mktime = no; then
  9872. case " $LIBOBJS " in
  9873. *" mktime.$ac_objext "* ) ;;
  9874. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  9875. ;;
  9876. esac
  9877. fi
  9878. for ac_header in stdlib.h unistd.h
  9879. do
  9880. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9881. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9882. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9883. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9884. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9885. echo $ECHO_N "(cached) $ECHO_C" >&6
  9886. fi
  9887. ac_res=`eval echo '${'$as_ac_Header'}'`
  9888. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9889. echo "${ECHO_T}$ac_res" >&6; }
  9890. else
  9891. # Is the header compilable?
  9892. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9893. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9894. cat >conftest.$ac_ext <<_ACEOF
  9895. /* confdefs.h. */
  9896. _ACEOF
  9897. cat confdefs.h >>conftest.$ac_ext
  9898. cat >>conftest.$ac_ext <<_ACEOF
  9899. /* end confdefs.h. */
  9900. $ac_includes_default
  9901. #include <$ac_header>
  9902. _ACEOF
  9903. rm -f conftest.$ac_objext
  9904. if { (ac_try="$ac_compile"
  9905. case "(($ac_try" in
  9906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9907. *) ac_try_echo=$ac_try;;
  9908. esac
  9909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9910. (eval "$ac_compile") 2>conftest.er1
  9911. ac_status=$?
  9912. grep -v '^ *+' conftest.er1 >conftest.err
  9913. rm -f conftest.er1
  9914. cat conftest.err >&5
  9915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9916. (exit $ac_status); } && {
  9917. test -z "$ac_cxx_werror_flag" ||
  9918. test ! -s conftest.err
  9919. } && test -s conftest.$ac_objext; then
  9920. ac_header_compiler=yes
  9921. else
  9922. echo "$as_me: failed program was:" >&5
  9923. sed 's/^/| /' conftest.$ac_ext >&5
  9924. ac_header_compiler=no
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9927. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9928. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9929. # Is the header present?
  9930. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9931. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9932. cat >conftest.$ac_ext <<_ACEOF
  9933. /* confdefs.h. */
  9934. _ACEOF
  9935. cat confdefs.h >>conftest.$ac_ext
  9936. cat >>conftest.$ac_ext <<_ACEOF
  9937. /* end confdefs.h. */
  9938. #include <$ac_header>
  9939. _ACEOF
  9940. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9941. case "(($ac_try" in
  9942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9943. *) ac_try_echo=$ac_try;;
  9944. esac
  9945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9946. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9947. ac_status=$?
  9948. grep -v '^ *+' conftest.er1 >conftest.err
  9949. rm -f conftest.er1
  9950. cat conftest.err >&5
  9951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } >/dev/null && {
  9953. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9954. test ! -s conftest.err
  9955. }; then
  9956. ac_header_preproc=yes
  9957. else
  9958. echo "$as_me: failed program was:" >&5
  9959. sed 's/^/| /' conftest.$ac_ext >&5
  9960. ac_header_preproc=no
  9961. fi
  9962. rm -f conftest.err conftest.$ac_ext
  9963. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9964. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9965. # So? What about this header?
  9966. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9967. yes:no: )
  9968. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9969. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9970. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9971. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9972. ac_header_preproc=yes
  9973. ;;
  9974. no:yes:* )
  9975. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9976. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9977. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9978. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9979. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9980. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9981. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9982. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9983. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9984. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9985. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9986. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9987. ;;
  9988. esac
  9989. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9990. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9991. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9992. echo $ECHO_N "(cached) $ECHO_C" >&6
  9993. else
  9994. eval "$as_ac_Header=\$ac_header_preproc"
  9995. fi
  9996. ac_res=`eval echo '${'$as_ac_Header'}'`
  9997. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9998. echo "${ECHO_T}$ac_res" >&6; }
  9999. fi
  10000. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10001. cat >>confdefs.h <<_ACEOF
  10002. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10003. _ACEOF
  10004. fi
  10005. done
  10006. for ac_func in getpagesize
  10007. do
  10008. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10009. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10010. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10011. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10012. echo $ECHO_N "(cached) $ECHO_C" >&6
  10013. else
  10014. cat >conftest.$ac_ext <<_ACEOF
  10015. /* confdefs.h. */
  10016. _ACEOF
  10017. cat confdefs.h >>conftest.$ac_ext
  10018. cat >>conftest.$ac_ext <<_ACEOF
  10019. /* end confdefs.h. */
  10020. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10021. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10022. #define $ac_func innocuous_$ac_func
  10023. /* System header to define __stub macros and hopefully few prototypes,
  10024. which can conflict with char $ac_func (); below.
  10025. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10026. <limits.h> exists even on freestanding compilers. */
  10027. #ifdef __STDC__
  10028. # include <limits.h>
  10029. #else
  10030. # include <assert.h>
  10031. #endif
  10032. #undef $ac_func
  10033. /* Override any GCC internal prototype to avoid an error.
  10034. Use char because int might match the return type of a GCC
  10035. builtin and then its argument prototype would still apply. */
  10036. #ifdef __cplusplus
  10037. extern "C"
  10038. #endif
  10039. char $ac_func ();
  10040. /* The GNU C library defines this for functions which it implements
  10041. to always fail with ENOSYS. Some functions are actually named
  10042. something starting with __ and the normal name is an alias. */
  10043. #if defined __stub_$ac_func || defined __stub___$ac_func
  10044. choke me
  10045. #endif
  10046. int
  10047. main ()
  10048. {
  10049. return $ac_func ();
  10050. ;
  10051. return 0;
  10052. }
  10053. _ACEOF
  10054. rm -f conftest.$ac_objext conftest$ac_exeext
  10055. if { (ac_try="$ac_link"
  10056. case "(($ac_try" in
  10057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10058. *) ac_try_echo=$ac_try;;
  10059. esac
  10060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10061. (eval "$ac_link") 2>conftest.er1
  10062. ac_status=$?
  10063. grep -v '^ *+' conftest.er1 >conftest.err
  10064. rm -f conftest.er1
  10065. cat conftest.err >&5
  10066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10067. (exit $ac_status); } && {
  10068. test -z "$ac_cxx_werror_flag" ||
  10069. test ! -s conftest.err
  10070. } && test -s conftest$ac_exeext &&
  10071. $as_test_x conftest$ac_exeext; then
  10072. eval "$as_ac_var=yes"
  10073. else
  10074. echo "$as_me: failed program was:" >&5
  10075. sed 's/^/| /' conftest.$ac_ext >&5
  10076. eval "$as_ac_var=no"
  10077. fi
  10078. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10079. conftest$ac_exeext conftest.$ac_ext
  10080. fi
  10081. ac_res=`eval echo '${'$as_ac_var'}'`
  10082. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10083. echo "${ECHO_T}$ac_res" >&6; }
  10084. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10085. cat >>confdefs.h <<_ACEOF
  10086. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10087. _ACEOF
  10088. fi
  10089. done
  10090. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10091. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10092. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10093. echo $ECHO_N "(cached) $ECHO_C" >&6
  10094. else
  10095. if test "$cross_compiling" = yes; then
  10096. ac_cv_func_mmap_fixed_mapped=no
  10097. else
  10098. cat >conftest.$ac_ext <<_ACEOF
  10099. /* confdefs.h. */
  10100. _ACEOF
  10101. cat confdefs.h >>conftest.$ac_ext
  10102. cat >>conftest.$ac_ext <<_ACEOF
  10103. /* end confdefs.h. */
  10104. $ac_includes_default
  10105. /* malloc might have been renamed as rpl_malloc. */
  10106. #undef malloc
  10107. /* Thanks to Mike Haertel and Jim Avera for this test.
  10108. Here is a matrix of mmap possibilities:
  10109. mmap private not fixed
  10110. mmap private fixed at somewhere currently unmapped
  10111. mmap private fixed at somewhere already mapped
  10112. mmap shared not fixed
  10113. mmap shared fixed at somewhere currently unmapped
  10114. mmap shared fixed at somewhere already mapped
  10115. For private mappings, we should verify that changes cannot be read()
  10116. back from the file, nor mmap's back from the file at a different
  10117. address. (There have been systems where private was not correctly
  10118. implemented like the infamous i386 svr4.0, and systems where the
  10119. VM page cache was not coherent with the file system buffer cache
  10120. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10121. For shared mappings, we should conversely verify that changes get
  10122. propagated back to all the places they're supposed to be.
  10123. Grep wants private fixed already mapped.
  10124. The main things grep needs to know about mmap are:
  10125. * does it exist and is it safe to write into the mmap'd area
  10126. * how to use it (BSD variants) */
  10127. #include <fcntl.h>
  10128. #include <sys/mman.h>
  10129. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10130. char *malloc ();
  10131. #endif
  10132. /* This mess was copied from the GNU getpagesize.h. */
  10133. #ifndef HAVE_GETPAGESIZE
  10134. /* Assume that all systems that can run configure have sys/param.h. */
  10135. # ifndef HAVE_SYS_PARAM_H
  10136. # define HAVE_SYS_PARAM_H 1
  10137. # endif
  10138. # ifdef _SC_PAGESIZE
  10139. # define getpagesize() sysconf(_SC_PAGESIZE)
  10140. # else /* no _SC_PAGESIZE */
  10141. # ifdef HAVE_SYS_PARAM_H
  10142. # include <sys/param.h>
  10143. # ifdef EXEC_PAGESIZE
  10144. # define getpagesize() EXEC_PAGESIZE
  10145. # else /* no EXEC_PAGESIZE */
  10146. # ifdef NBPG
  10147. # define getpagesize() NBPG * CLSIZE
  10148. # ifndef CLSIZE
  10149. # define CLSIZE 1
  10150. # endif /* no CLSIZE */
  10151. # else /* no NBPG */
  10152. # ifdef NBPC
  10153. # define getpagesize() NBPC
  10154. # else /* no NBPC */
  10155. # ifdef PAGESIZE
  10156. # define getpagesize() PAGESIZE
  10157. # endif /* PAGESIZE */
  10158. # endif /* no NBPC */
  10159. # endif /* no NBPG */
  10160. # endif /* no EXEC_PAGESIZE */
  10161. # else /* no HAVE_SYS_PARAM_H */
  10162. # define getpagesize() 8192 /* punt totally */
  10163. # endif /* no HAVE_SYS_PARAM_H */
  10164. # endif /* no _SC_PAGESIZE */
  10165. #endif /* no HAVE_GETPAGESIZE */
  10166. int
  10167. main ()
  10168. {
  10169. char *data, *data2, *data3;
  10170. int i, pagesize;
  10171. int fd;
  10172. pagesize = getpagesize ();
  10173. /* First, make a file with some known garbage in it. */
  10174. data = (char *) malloc (pagesize);
  10175. if (!data)
  10176. return 1;
  10177. for (i = 0; i < pagesize; ++i)
  10178. *(data + i) = rand ();
  10179. umask (0);
  10180. fd = creat ("conftest.mmap", 0600);
  10181. if (fd < 0)
  10182. return 1;
  10183. if (write (fd, data, pagesize) != pagesize)
  10184. return 1;
  10185. close (fd);
  10186. /* Next, try to mmap the file at a fixed address which already has
  10187. something else allocated at it. If we can, also make sure that
  10188. we see the same garbage. */
  10189. fd = open ("conftest.mmap", O_RDWR);
  10190. if (fd < 0)
  10191. return 1;
  10192. data2 = (char *) malloc (2 * pagesize);
  10193. if (!data2)
  10194. return 1;
  10195. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10196. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10197. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10198. return 1;
  10199. for (i = 0; i < pagesize; ++i)
  10200. if (*(data + i) != *(data2 + i))
  10201. return 1;
  10202. /* Finally, make sure that changes to the mapped area do not
  10203. percolate back to the file as seen by read(). (This is a bug on
  10204. some variants of i386 svr4.0.) */
  10205. for (i = 0; i < pagesize; ++i)
  10206. *(data2 + i) = *(data2 + i) + 1;
  10207. data3 = (char *) malloc (pagesize);
  10208. if (!data3)
  10209. return 1;
  10210. if (read (fd, data3, pagesize) != pagesize)
  10211. return 1;
  10212. for (i = 0; i < pagesize; ++i)
  10213. if (*(data + i) != *(data3 + i))
  10214. return 1;
  10215. close (fd);
  10216. return 0;
  10217. }
  10218. _ACEOF
  10219. rm -f conftest$ac_exeext
  10220. if { (ac_try="$ac_link"
  10221. case "(($ac_try" in
  10222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10223. *) ac_try_echo=$ac_try;;
  10224. esac
  10225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10226. (eval "$ac_link") 2>&5
  10227. ac_status=$?
  10228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10229. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10230. { (case "(($ac_try" in
  10231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10232. *) ac_try_echo=$ac_try;;
  10233. esac
  10234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10235. (eval "$ac_try") 2>&5
  10236. ac_status=$?
  10237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10238. (exit $ac_status); }; }; then
  10239. ac_cv_func_mmap_fixed_mapped=yes
  10240. else
  10241. echo "$as_me: program exited with status $ac_status" >&5
  10242. echo "$as_me: failed program was:" >&5
  10243. sed 's/^/| /' conftest.$ac_ext >&5
  10244. ( exit $ac_status )
  10245. ac_cv_func_mmap_fixed_mapped=no
  10246. fi
  10247. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10248. fi
  10249. fi
  10250. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10251. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10252. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10253. cat >>confdefs.h <<\_ACEOF
  10254. #define HAVE_MMAP 1
  10255. _ACEOF
  10256. fi
  10257. rm -f conftest.mmap
  10258. for ac_header in stdlib.h
  10259. do
  10260. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10261. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10262. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10263. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10264. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10265. echo $ECHO_N "(cached) $ECHO_C" >&6
  10266. fi
  10267. ac_res=`eval echo '${'$as_ac_Header'}'`
  10268. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10269. echo "${ECHO_T}$ac_res" >&6; }
  10270. else
  10271. # Is the header compilable?
  10272. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10273. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10274. cat >conftest.$ac_ext <<_ACEOF
  10275. /* confdefs.h. */
  10276. _ACEOF
  10277. cat confdefs.h >>conftest.$ac_ext
  10278. cat >>conftest.$ac_ext <<_ACEOF
  10279. /* end confdefs.h. */
  10280. $ac_includes_default
  10281. #include <$ac_header>
  10282. _ACEOF
  10283. rm -f conftest.$ac_objext
  10284. if { (ac_try="$ac_compile"
  10285. case "(($ac_try" in
  10286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10287. *) ac_try_echo=$ac_try;;
  10288. esac
  10289. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10290. (eval "$ac_compile") 2>conftest.er1
  10291. ac_status=$?
  10292. grep -v '^ *+' conftest.er1 >conftest.err
  10293. rm -f conftest.er1
  10294. cat conftest.err >&5
  10295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10296. (exit $ac_status); } && {
  10297. test -z "$ac_cxx_werror_flag" ||
  10298. test ! -s conftest.err
  10299. } && test -s conftest.$ac_objext; then
  10300. ac_header_compiler=yes
  10301. else
  10302. echo "$as_me: failed program was:" >&5
  10303. sed 's/^/| /' conftest.$ac_ext >&5
  10304. ac_header_compiler=no
  10305. fi
  10306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10307. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10308. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10309. # Is the header present?
  10310. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10311. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10312. cat >conftest.$ac_ext <<_ACEOF
  10313. /* confdefs.h. */
  10314. _ACEOF
  10315. cat confdefs.h >>conftest.$ac_ext
  10316. cat >>conftest.$ac_ext <<_ACEOF
  10317. /* end confdefs.h. */
  10318. #include <$ac_header>
  10319. _ACEOF
  10320. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10321. case "(($ac_try" in
  10322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10323. *) ac_try_echo=$ac_try;;
  10324. esac
  10325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10326. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10327. ac_status=$?
  10328. grep -v '^ *+' conftest.er1 >conftest.err
  10329. rm -f conftest.er1
  10330. cat conftest.err >&5
  10331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10332. (exit $ac_status); } >/dev/null && {
  10333. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10334. test ! -s conftest.err
  10335. }; then
  10336. ac_header_preproc=yes
  10337. else
  10338. echo "$as_me: failed program was:" >&5
  10339. sed 's/^/| /' conftest.$ac_ext >&5
  10340. ac_header_preproc=no
  10341. fi
  10342. rm -f conftest.err conftest.$ac_ext
  10343. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10344. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10345. # So? What about this header?
  10346. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10347. yes:no: )
  10348. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10349. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10350. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10351. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10352. ac_header_preproc=yes
  10353. ;;
  10354. no:yes:* )
  10355. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10356. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10357. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10358. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10359. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10360. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10361. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10362. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10363. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10364. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10365. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10366. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10367. ;;
  10368. esac
  10369. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10370. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10371. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10372. echo $ECHO_N "(cached) $ECHO_C" >&6
  10373. else
  10374. eval "$as_ac_Header=\$ac_header_preproc"
  10375. fi
  10376. ac_res=`eval echo '${'$as_ac_Header'}'`
  10377. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10378. echo "${ECHO_T}$ac_res" >&6; }
  10379. fi
  10380. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10381. cat >>confdefs.h <<_ACEOF
  10382. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10383. _ACEOF
  10384. fi
  10385. done
  10386. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10387. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10388. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10389. echo $ECHO_N "(cached) $ECHO_C" >&6
  10390. else
  10391. if test "$cross_compiling" = yes; then
  10392. ac_cv_func_realloc_0_nonnull=no
  10393. else
  10394. cat >conftest.$ac_ext <<_ACEOF
  10395. /* confdefs.h. */
  10396. _ACEOF
  10397. cat confdefs.h >>conftest.$ac_ext
  10398. cat >>conftest.$ac_ext <<_ACEOF
  10399. /* end confdefs.h. */
  10400. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10401. # include <stdlib.h>
  10402. #else
  10403. char *realloc ();
  10404. #endif
  10405. int
  10406. main ()
  10407. {
  10408. return ! realloc (0, 0);
  10409. ;
  10410. return 0;
  10411. }
  10412. _ACEOF
  10413. rm -f conftest$ac_exeext
  10414. if { (ac_try="$ac_link"
  10415. case "(($ac_try" in
  10416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10417. *) ac_try_echo=$ac_try;;
  10418. esac
  10419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10420. (eval "$ac_link") 2>&5
  10421. ac_status=$?
  10422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10424. { (case "(($ac_try" in
  10425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10426. *) ac_try_echo=$ac_try;;
  10427. esac
  10428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10429. (eval "$ac_try") 2>&5
  10430. ac_status=$?
  10431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10432. (exit $ac_status); }; }; then
  10433. ac_cv_func_realloc_0_nonnull=yes
  10434. else
  10435. echo "$as_me: program exited with status $ac_status" >&5
  10436. echo "$as_me: failed program was:" >&5
  10437. sed 's/^/| /' conftest.$ac_ext >&5
  10438. ( exit $ac_status )
  10439. ac_cv_func_realloc_0_nonnull=no
  10440. fi
  10441. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10442. fi
  10443. fi
  10444. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10445. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10446. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10447. cat >>confdefs.h <<\_ACEOF
  10448. #define HAVE_REALLOC 1
  10449. _ACEOF
  10450. else
  10451. cat >>confdefs.h <<\_ACEOF
  10452. #define HAVE_REALLOC 0
  10453. _ACEOF
  10454. case " $LIBOBJS " in
  10455. *" realloc.$ac_objext "* ) ;;
  10456. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10457. ;;
  10458. esac
  10459. cat >>confdefs.h <<\_ACEOF
  10460. #define realloc rpl_realloc
  10461. _ACEOF
  10462. fi
  10463. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10464. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10465. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10466. echo $ECHO_N "(cached) $ECHO_C" >&6
  10467. else
  10468. if test "$cross_compiling" = yes; then
  10469. ac_cv_func_stat_empty_string_bug=yes
  10470. else
  10471. cat >conftest.$ac_ext <<_ACEOF
  10472. /* confdefs.h. */
  10473. _ACEOF
  10474. cat confdefs.h >>conftest.$ac_ext
  10475. cat >>conftest.$ac_ext <<_ACEOF
  10476. /* end confdefs.h. */
  10477. $ac_includes_default
  10478. int
  10479. main ()
  10480. {
  10481. struct stat sbuf;
  10482. return stat ("", &sbuf) == 0;
  10483. ;
  10484. return 0;
  10485. }
  10486. _ACEOF
  10487. rm -f conftest$ac_exeext
  10488. if { (ac_try="$ac_link"
  10489. case "(($ac_try" in
  10490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10491. *) ac_try_echo=$ac_try;;
  10492. esac
  10493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10494. (eval "$ac_link") 2>&5
  10495. ac_status=$?
  10496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10497. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10498. { (case "(($ac_try" in
  10499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10500. *) ac_try_echo=$ac_try;;
  10501. esac
  10502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10503. (eval "$ac_try") 2>&5
  10504. ac_status=$?
  10505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10506. (exit $ac_status); }; }; then
  10507. ac_cv_func_stat_empty_string_bug=no
  10508. else
  10509. echo "$as_me: program exited with status $ac_status" >&5
  10510. echo "$as_me: failed program was:" >&5
  10511. sed 's/^/| /' conftest.$ac_ext >&5
  10512. ( exit $ac_status )
  10513. ac_cv_func_stat_empty_string_bug=yes
  10514. fi
  10515. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10516. fi
  10517. fi
  10518. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10519. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10520. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10521. case " $LIBOBJS " in
  10522. *" stat.$ac_objext "* ) ;;
  10523. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10524. ;;
  10525. esac
  10526. cat >>confdefs.h <<_ACEOF
  10527. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10528. _ACEOF
  10529. fi
  10530. { echo "$as_me:$LINENO: checking for struct timespec" >&5
  10531. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
  10532. if test "${ac_cv_type_struct_timespec+set}" = set; then
  10533. echo $ECHO_N "(cached) $ECHO_C" >&6
  10534. else
  10535. cat >conftest.$ac_ext <<_ACEOF
  10536. /* confdefs.h. */
  10537. _ACEOF
  10538. cat confdefs.h >>conftest.$ac_ext
  10539. cat >>conftest.$ac_ext <<_ACEOF
  10540. /* end confdefs.h. */
  10541. #include <sys/types.h>
  10542. #include <sys/time.h>
  10543. #include <time.h>
  10544. typedef struct timespec ac__type_new_;
  10545. int
  10546. main ()
  10547. {
  10548. if ((ac__type_new_ *) 0)
  10549. return 0;
  10550. if (sizeof (ac__type_new_))
  10551. return 0;
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. rm -f conftest.$ac_objext
  10557. if { (ac_try="$ac_compile"
  10558. case "(($ac_try" in
  10559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10560. *) ac_try_echo=$ac_try;;
  10561. esac
  10562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10563. (eval "$ac_compile") 2>conftest.er1
  10564. ac_status=$?
  10565. grep -v '^ *+' conftest.er1 >conftest.err
  10566. rm -f conftest.er1
  10567. cat conftest.err >&5
  10568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10569. (exit $ac_status); } && {
  10570. test -z "$ac_cxx_werror_flag" ||
  10571. test ! -s conftest.err
  10572. } && test -s conftest.$ac_objext; then
  10573. ac_cv_type_struct_timespec=yes
  10574. else
  10575. echo "$as_me: failed program was:" >&5
  10576. sed 's/^/| /' conftest.$ac_ext >&5
  10577. ac_cv_type_struct_timespec=no
  10578. fi
  10579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10580. fi
  10581. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  10582. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
  10583. if test $ac_cv_type_struct_timespec = yes; then
  10584. cat >>confdefs.h <<\_ACEOF
  10585. #define HAVE_TIMESPEC 1
  10586. _ACEOF
  10587. fi
  10588. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  10589. { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  10590. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
  10591. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  10592. echo $ECHO_N "(cached) $ECHO_C" >&6
  10593. else
  10594. cat >conftest.$ac_ext <<_ACEOF
  10595. /* confdefs.h. */
  10596. _ACEOF
  10597. cat confdefs.h >>conftest.$ac_ext
  10598. cat >>conftest.$ac_ext <<_ACEOF
  10599. /* end confdefs.h. */
  10600. $ac_includes_default
  10601. int
  10602. main ()
  10603. {
  10604. static struct stat ac_aggr;
  10605. if (ac_aggr.st_mtim)
  10606. return 0;
  10607. ;
  10608. return 0;
  10609. }
  10610. _ACEOF
  10611. rm -f conftest.$ac_objext
  10612. if { (ac_try="$ac_compile"
  10613. case "(($ac_try" in
  10614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10615. *) ac_try_echo=$ac_try;;
  10616. esac
  10617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10618. (eval "$ac_compile") 2>conftest.er1
  10619. ac_status=$?
  10620. grep -v '^ *+' conftest.er1 >conftest.err
  10621. rm -f conftest.er1
  10622. cat conftest.err >&5
  10623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10624. (exit $ac_status); } && {
  10625. test -z "$ac_cxx_werror_flag" ||
  10626. test ! -s conftest.err
  10627. } && test -s conftest.$ac_objext; then
  10628. ac_cv_member_struct_stat_st_mtim=yes
  10629. else
  10630. echo "$as_me: failed program was:" >&5
  10631. sed 's/^/| /' conftest.$ac_ext >&5
  10632. cat >conftest.$ac_ext <<_ACEOF
  10633. /* confdefs.h. */
  10634. _ACEOF
  10635. cat confdefs.h >>conftest.$ac_ext
  10636. cat >>conftest.$ac_ext <<_ACEOF
  10637. /* end confdefs.h. */
  10638. $ac_includes_default
  10639. int
  10640. main ()
  10641. {
  10642. static struct stat ac_aggr;
  10643. if (sizeof ac_aggr.st_mtim)
  10644. return 0;
  10645. ;
  10646. return 0;
  10647. }
  10648. _ACEOF
  10649. rm -f conftest.$ac_objext
  10650. if { (ac_try="$ac_compile"
  10651. case "(($ac_try" in
  10652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10653. *) ac_try_echo=$ac_try;;
  10654. esac
  10655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10656. (eval "$ac_compile") 2>conftest.er1
  10657. ac_status=$?
  10658. grep -v '^ *+' conftest.er1 >conftest.err
  10659. rm -f conftest.er1
  10660. cat conftest.err >&5
  10661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10662. (exit $ac_status); } && {
  10663. test -z "$ac_cxx_werror_flag" ||
  10664. test ! -s conftest.err
  10665. } && test -s conftest.$ac_objext; then
  10666. ac_cv_member_struct_stat_st_mtim=yes
  10667. else
  10668. echo "$as_me: failed program was:" >&5
  10669. sed 's/^/| /' conftest.$ac_ext >&5
  10670. ac_cv_member_struct_stat_st_mtim=no
  10671. fi
  10672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10673. fi
  10674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10675. fi
  10676. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  10677. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
  10678. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  10679. cat >>confdefs.h <<\_ACEOF
  10680. #define HAVE_ST_MTIM 1
  10681. _ACEOF
  10682. else
  10683. { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  10684. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
  10685. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  10686. echo $ECHO_N "(cached) $ECHO_C" >&6
  10687. else
  10688. cat >conftest.$ac_ext <<_ACEOF
  10689. /* confdefs.h. */
  10690. _ACEOF
  10691. cat confdefs.h >>conftest.$ac_ext
  10692. cat >>conftest.$ac_ext <<_ACEOF
  10693. /* end confdefs.h. */
  10694. $ac_includes_default
  10695. int
  10696. main ()
  10697. {
  10698. static struct stat ac_aggr;
  10699. if (ac_aggr.st_mtimespec)
  10700. return 0;
  10701. ;
  10702. return 0;
  10703. }
  10704. _ACEOF
  10705. rm -f conftest.$ac_objext
  10706. if { (ac_try="$ac_compile"
  10707. case "(($ac_try" in
  10708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10709. *) ac_try_echo=$ac_try;;
  10710. esac
  10711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10712. (eval "$ac_compile") 2>conftest.er1
  10713. ac_status=$?
  10714. grep -v '^ *+' conftest.er1 >conftest.err
  10715. rm -f conftest.er1
  10716. cat conftest.err >&5
  10717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10718. (exit $ac_status); } && {
  10719. test -z "$ac_cxx_werror_flag" ||
  10720. test ! -s conftest.err
  10721. } && test -s conftest.$ac_objext; then
  10722. ac_cv_member_struct_stat_st_mtimespec=yes
  10723. else
  10724. echo "$as_me: failed program was:" >&5
  10725. sed 's/^/| /' conftest.$ac_ext >&5
  10726. cat >conftest.$ac_ext <<_ACEOF
  10727. /* confdefs.h. */
  10728. _ACEOF
  10729. cat confdefs.h >>conftest.$ac_ext
  10730. cat >>conftest.$ac_ext <<_ACEOF
  10731. /* end confdefs.h. */
  10732. $ac_includes_default
  10733. int
  10734. main ()
  10735. {
  10736. static struct stat ac_aggr;
  10737. if (sizeof ac_aggr.st_mtimespec)
  10738. return 0;
  10739. ;
  10740. return 0;
  10741. }
  10742. _ACEOF
  10743. rm -f conftest.$ac_objext
  10744. if { (ac_try="$ac_compile"
  10745. case "(($ac_try" in
  10746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10747. *) ac_try_echo=$ac_try;;
  10748. esac
  10749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10750. (eval "$ac_compile") 2>conftest.er1
  10751. ac_status=$?
  10752. grep -v '^ *+' conftest.er1 >conftest.err
  10753. rm -f conftest.er1
  10754. cat conftest.err >&5
  10755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10756. (exit $ac_status); } && {
  10757. test -z "$ac_cxx_werror_flag" ||
  10758. test ! -s conftest.err
  10759. } && test -s conftest.$ac_objext; then
  10760. ac_cv_member_struct_stat_st_mtimespec=yes
  10761. else
  10762. echo "$as_me: failed program was:" >&5
  10763. sed 's/^/| /' conftest.$ac_ext >&5
  10764. ac_cv_member_struct_stat_st_mtimespec=no
  10765. fi
  10766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10767. fi
  10768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10769. fi
  10770. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  10771. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  10772. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  10773. cat >>confdefs.h <<\_ACEOF
  10774. #define HAVE_ST_MTIMESPEC 1
  10775. _ACEOF
  10776. fi
  10777. fi
  10778. { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  10779. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
  10780. cat >conftest.$ac_ext <<_ACEOF
  10781. /* confdefs.h. */
  10782. _ACEOF
  10783. cat confdefs.h >>conftest.$ac_ext
  10784. cat >>conftest.$ac_ext <<_ACEOF
  10785. /* end confdefs.h. */
  10786. #include <sys/types.h>
  10787. #include <sys/time.h>
  10788. int
  10789. main ()
  10790. {
  10791. struct timespec ts1, ts2;
  10792. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  10793. #ifndef timespecsub
  10794. #error missing timespecsub
  10795. #endif
  10796. timespecsub(&ts1, &ts2);
  10797. ;
  10798. return 0;
  10799. }
  10800. _ACEOF
  10801. rm -f conftest.$ac_objext
  10802. if { (ac_try="$ac_compile"
  10803. case "(($ac_try" in
  10804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10805. *) ac_try_echo=$ac_try;;
  10806. esac
  10807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10808. (eval "$ac_compile") 2>conftest.er1
  10809. ac_status=$?
  10810. grep -v '^ *+' conftest.er1 >conftest.err
  10811. rm -f conftest.er1
  10812. cat conftest.err >&5
  10813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10814. (exit $ac_status); } && {
  10815. test -z "$ac_cxx_werror_flag" ||
  10816. test ! -s conftest.err
  10817. } && test -s conftest.$ac_objext; then
  10818. cat >>confdefs.h <<\_ACEOF
  10819. #define HAVE_TIMESPECSUB2 1
  10820. _ACEOF
  10821. { echo "$as_me:$LINENO: result: yes" >&5
  10822. echo "${ECHO_T}yes" >&6; }
  10823. else
  10824. echo "$as_me: failed program was:" >&5
  10825. sed 's/^/| /' conftest.$ac_ext >&5
  10826. { echo "$as_me:$LINENO: result: no" >&5
  10827. echo "${ECHO_T}no" >&6; }
  10828. fi
  10829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10830. fi
  10831. for ac_func in strftime
  10832. do
  10833. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10834. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10835. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10836. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10837. echo $ECHO_N "(cached) $ECHO_C" >&6
  10838. else
  10839. cat >conftest.$ac_ext <<_ACEOF
  10840. /* confdefs.h. */
  10841. _ACEOF
  10842. cat confdefs.h >>conftest.$ac_ext
  10843. cat >>conftest.$ac_ext <<_ACEOF
  10844. /* end confdefs.h. */
  10845. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10847. #define $ac_func innocuous_$ac_func
  10848. /* System header to define __stub macros and hopefully few prototypes,
  10849. which can conflict with char $ac_func (); below.
  10850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10851. <limits.h> exists even on freestanding compilers. */
  10852. #ifdef __STDC__
  10853. # include <limits.h>
  10854. #else
  10855. # include <assert.h>
  10856. #endif
  10857. #undef $ac_func
  10858. /* Override any GCC internal prototype to avoid an error.
  10859. Use char because int might match the return type of a GCC
  10860. builtin and then its argument prototype would still apply. */
  10861. #ifdef __cplusplus
  10862. extern "C"
  10863. #endif
  10864. char $ac_func ();
  10865. /* The GNU C library defines this for functions which it implements
  10866. to always fail with ENOSYS. Some functions are actually named
  10867. something starting with __ and the normal name is an alias. */
  10868. #if defined __stub_$ac_func || defined __stub___$ac_func
  10869. choke me
  10870. #endif
  10871. int
  10872. main ()
  10873. {
  10874. return $ac_func ();
  10875. ;
  10876. return 0;
  10877. }
  10878. _ACEOF
  10879. rm -f conftest.$ac_objext conftest$ac_exeext
  10880. if { (ac_try="$ac_link"
  10881. case "(($ac_try" in
  10882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10883. *) ac_try_echo=$ac_try;;
  10884. esac
  10885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10886. (eval "$ac_link") 2>conftest.er1
  10887. ac_status=$?
  10888. grep -v '^ *+' conftest.er1 >conftest.err
  10889. rm -f conftest.er1
  10890. cat conftest.err >&5
  10891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10892. (exit $ac_status); } && {
  10893. test -z "$ac_cxx_werror_flag" ||
  10894. test ! -s conftest.err
  10895. } && test -s conftest$ac_exeext &&
  10896. $as_test_x conftest$ac_exeext; then
  10897. eval "$as_ac_var=yes"
  10898. else
  10899. echo "$as_me: failed program was:" >&5
  10900. sed 's/^/| /' conftest.$ac_ext >&5
  10901. eval "$as_ac_var=no"
  10902. fi
  10903. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10904. conftest$ac_exeext conftest.$ac_ext
  10905. fi
  10906. ac_res=`eval echo '${'$as_ac_var'}'`
  10907. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10908. echo "${ECHO_T}$ac_res" >&6; }
  10909. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10910. cat >>confdefs.h <<_ACEOF
  10911. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10912. _ACEOF
  10913. else
  10914. # strftime is in -lintl on SCO UNIX.
  10915. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10916. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  10917. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10918. echo $ECHO_N "(cached) $ECHO_C" >&6
  10919. else
  10920. ac_check_lib_save_LIBS=$LIBS
  10921. LIBS="-lintl $LIBS"
  10922. cat >conftest.$ac_ext <<_ACEOF
  10923. /* confdefs.h. */
  10924. _ACEOF
  10925. cat confdefs.h >>conftest.$ac_ext
  10926. cat >>conftest.$ac_ext <<_ACEOF
  10927. /* end confdefs.h. */
  10928. /* Override any GCC internal prototype to avoid an error.
  10929. Use char because int might match the return type of a GCC
  10930. builtin and then its argument prototype would still apply. */
  10931. #ifdef __cplusplus
  10932. extern "C"
  10933. #endif
  10934. char strftime ();
  10935. int
  10936. main ()
  10937. {
  10938. return strftime ();
  10939. ;
  10940. return 0;
  10941. }
  10942. _ACEOF
  10943. rm -f conftest.$ac_objext conftest$ac_exeext
  10944. if { (ac_try="$ac_link"
  10945. case "(($ac_try" in
  10946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10947. *) ac_try_echo=$ac_try;;
  10948. esac
  10949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10950. (eval "$ac_link") 2>conftest.er1
  10951. ac_status=$?
  10952. grep -v '^ *+' conftest.er1 >conftest.err
  10953. rm -f conftest.er1
  10954. cat conftest.err >&5
  10955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10956. (exit $ac_status); } && {
  10957. test -z "$ac_cxx_werror_flag" ||
  10958. test ! -s conftest.err
  10959. } && test -s conftest$ac_exeext &&
  10960. $as_test_x conftest$ac_exeext; then
  10961. ac_cv_lib_intl_strftime=yes
  10962. else
  10963. echo "$as_me: failed program was:" >&5
  10964. sed 's/^/| /' conftest.$ac_ext >&5
  10965. ac_cv_lib_intl_strftime=no
  10966. fi
  10967. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10968. conftest$ac_exeext conftest.$ac_ext
  10969. LIBS=$ac_check_lib_save_LIBS
  10970. fi
  10971. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10972. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  10973. if test $ac_cv_lib_intl_strftime = yes; then
  10974. cat >>confdefs.h <<\_ACEOF
  10975. #define HAVE_STRFTIME 1
  10976. _ACEOF
  10977. LIBS="-lintl $LIBS"
  10978. fi
  10979. fi
  10980. done
  10981. #checkpoint
  10982. cat >confcache <<\_ACEOF
  10983. # This file is a shell script that caches the results of configure
  10984. # tests run on this system so they can be shared between configure
  10985. # scripts and configure runs, see configure's option --config-cache.
  10986. # It is not useful on other systems. If it contains results you don't
  10987. # want to keep, you may remove or edit it.
  10988. #
  10989. # config.status only pays attention to the cache file if you give it
  10990. # the --recheck option to rerun configure.
  10991. #
  10992. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10993. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10994. # following values.
  10995. _ACEOF
  10996. # The following way of writing the cache mishandles newlines in values,
  10997. # but we know of no workaround that is simple, portable, and efficient.
  10998. # So, we kill variables containing newlines.
  10999. # Ultrix sh set writes to stderr and can't be redirected directly,
  11000. # and sets the high bit in the cache file unless we assign to the vars.
  11001. (
  11002. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11003. eval ac_val=\$$ac_var
  11004. case $ac_val in #(
  11005. *${as_nl}*)
  11006. case $ac_var in #(
  11007. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11008. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11009. esac
  11010. case $ac_var in #(
  11011. _ | IFS | as_nl) ;; #(
  11012. *) $as_unset $ac_var ;;
  11013. esac ;;
  11014. esac
  11015. done
  11016. (set) 2>&1 |
  11017. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11018. *${as_nl}ac_space=\ *)
  11019. # `set' does not quote correctly, so add quotes (double-quote
  11020. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11021. sed -n \
  11022. "s/'/'\\\\''/g;
  11023. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11024. ;; #(
  11025. *)
  11026. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11027. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11028. ;;
  11029. esac |
  11030. sort
  11031. ) |
  11032. sed '
  11033. /^ac_cv_env_/b end
  11034. t clear
  11035. :clear
  11036. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11037. t end
  11038. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11039. :end' >>confcache
  11040. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11041. if test -w "$cache_file"; then
  11042. test "x$cache_file" != "x/dev/null" &&
  11043. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11044. echo "$as_me: updating cache $cache_file" >&6;}
  11045. cat confcache >$cache_file
  11046. else
  11047. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11048. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11049. fi
  11050. fi
  11051. rm -f confcache
  11052. for ac_func in clock fsync getrusage isascii getpassphrase
  11053. do
  11054. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11055. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11056. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11057. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11058. echo $ECHO_N "(cached) $ECHO_C" >&6
  11059. else
  11060. cat >conftest.$ac_ext <<_ACEOF
  11061. /* confdefs.h. */
  11062. _ACEOF
  11063. cat confdefs.h >>conftest.$ac_ext
  11064. cat >>conftest.$ac_ext <<_ACEOF
  11065. /* end confdefs.h. */
  11066. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11067. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11068. #define $ac_func innocuous_$ac_func
  11069. /* System header to define __stub macros and hopefully few prototypes,
  11070. which can conflict with char $ac_func (); below.
  11071. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11072. <limits.h> exists even on freestanding compilers. */
  11073. #ifdef __STDC__
  11074. # include <limits.h>
  11075. #else
  11076. # include <assert.h>
  11077. #endif
  11078. #undef $ac_func
  11079. /* Override any GCC internal prototype to avoid an error.
  11080. Use char because int might match the return type of a GCC
  11081. builtin and then its argument prototype would still apply. */
  11082. #ifdef __cplusplus
  11083. extern "C"
  11084. #endif
  11085. char $ac_func ();
  11086. /* The GNU C library defines this for functions which it implements
  11087. to always fail with ENOSYS. Some functions are actually named
  11088. something starting with __ and the normal name is an alias. */
  11089. #if defined __stub_$ac_func || defined __stub___$ac_func
  11090. choke me
  11091. #endif
  11092. int
  11093. main ()
  11094. {
  11095. return $ac_func ();
  11096. ;
  11097. return 0;
  11098. }
  11099. _ACEOF
  11100. rm -f conftest.$ac_objext conftest$ac_exeext
  11101. if { (ac_try="$ac_link"
  11102. case "(($ac_try" in
  11103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11104. *) ac_try_echo=$ac_try;;
  11105. esac
  11106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11107. (eval "$ac_link") 2>conftest.er1
  11108. ac_status=$?
  11109. grep -v '^ *+' conftest.er1 >conftest.err
  11110. rm -f conftest.er1
  11111. cat conftest.err >&5
  11112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11113. (exit $ac_status); } && {
  11114. test -z "$ac_cxx_werror_flag" ||
  11115. test ! -s conftest.err
  11116. } && test -s conftest$ac_exeext &&
  11117. $as_test_x conftest$ac_exeext; then
  11118. eval "$as_ac_var=yes"
  11119. else
  11120. echo "$as_me: failed program was:" >&5
  11121. sed 's/^/| /' conftest.$ac_ext >&5
  11122. eval "$as_ac_var=no"
  11123. fi
  11124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11125. conftest$ac_exeext conftest.$ac_ext
  11126. fi
  11127. ac_res=`eval echo '${'$as_ac_var'}'`
  11128. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11129. echo "${ECHO_T}$ac_res" >&6; }
  11130. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11131. cat >>confdefs.h <<_ACEOF
  11132. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11133. _ACEOF
  11134. fi
  11135. done
  11136. for ac_func in memcpy memset random rename snprintf srandom gettime
  11137. do
  11138. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11139. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11140. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11141. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11142. echo $ECHO_N "(cached) $ECHO_C" >&6
  11143. else
  11144. cat >conftest.$ac_ext <<_ACEOF
  11145. /* confdefs.h. */
  11146. _ACEOF
  11147. cat confdefs.h >>conftest.$ac_ext
  11148. cat >>conftest.$ac_ext <<_ACEOF
  11149. /* end confdefs.h. */
  11150. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11151. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11152. #define $ac_func innocuous_$ac_func
  11153. /* System header to define __stub macros and hopefully few prototypes,
  11154. which can conflict with char $ac_func (); below.
  11155. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11156. <limits.h> exists even on freestanding compilers. */
  11157. #ifdef __STDC__
  11158. # include <limits.h>
  11159. #else
  11160. # include <assert.h>
  11161. #endif
  11162. #undef $ac_func
  11163. /* Override any GCC internal prototype to avoid an error.
  11164. Use char because int might match the return type of a GCC
  11165. builtin and then its argument prototype would still apply. */
  11166. #ifdef __cplusplus
  11167. extern "C"
  11168. #endif
  11169. char $ac_func ();
  11170. /* The GNU C library defines this for functions which it implements
  11171. to always fail with ENOSYS. Some functions are actually named
  11172. something starting with __ and the normal name is an alias. */
  11173. #if defined __stub_$ac_func || defined __stub___$ac_func
  11174. choke me
  11175. #endif
  11176. int
  11177. main ()
  11178. {
  11179. return $ac_func ();
  11180. ;
  11181. return 0;
  11182. }
  11183. _ACEOF
  11184. rm -f conftest.$ac_objext conftest$ac_exeext
  11185. if { (ac_try="$ac_link"
  11186. case "(($ac_try" in
  11187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11188. *) ac_try_echo=$ac_try;;
  11189. esac
  11190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11191. (eval "$ac_link") 2>conftest.er1
  11192. ac_status=$?
  11193. grep -v '^ *+' conftest.er1 >conftest.err
  11194. rm -f conftest.er1
  11195. cat conftest.err >&5
  11196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11197. (exit $ac_status); } && {
  11198. test -z "$ac_cxx_werror_flag" ||
  11199. test ! -s conftest.err
  11200. } && test -s conftest$ac_exeext &&
  11201. $as_test_x conftest$ac_exeext; then
  11202. eval "$as_ac_var=yes"
  11203. else
  11204. echo "$as_me: failed program was:" >&5
  11205. sed 's/^/| /' conftest.$ac_ext >&5
  11206. eval "$as_ac_var=no"
  11207. fi
  11208. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11209. conftest$ac_exeext conftest.$ac_ext
  11210. fi
  11211. ac_res=`eval echo '${'$as_ac_var'}'`
  11212. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11213. echo "${ECHO_T}$ac_res" >&6; }
  11214. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11215. cat >>confdefs.h <<_ACEOF
  11216. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11217. _ACEOF
  11218. fi
  11219. done
  11220. #checkpoint
  11221. cat >confcache <<\_ACEOF
  11222. # This file is a shell script that caches the results of configure
  11223. # tests run on this system so they can be shared between configure
  11224. # scripts and configure runs, see configure's option --config-cache.
  11225. # It is not useful on other systems. If it contains results you don't
  11226. # want to keep, you may remove or edit it.
  11227. #
  11228. # config.status only pays attention to the cache file if you give it
  11229. # the --recheck option to rerun configure.
  11230. #
  11231. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11232. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11233. # following values.
  11234. _ACEOF
  11235. # The following way of writing the cache mishandles newlines in values,
  11236. # but we know of no workaround that is simple, portable, and efficient.
  11237. # So, we kill variables containing newlines.
  11238. # Ultrix sh set writes to stderr and can't be redirected directly,
  11239. # and sets the high bit in the cache file unless we assign to the vars.
  11240. (
  11241. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11242. eval ac_val=\$$ac_var
  11243. case $ac_val in #(
  11244. *${as_nl}*)
  11245. case $ac_var in #(
  11246. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11247. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11248. esac
  11249. case $ac_var in #(
  11250. _ | IFS | as_nl) ;; #(
  11251. *) $as_unset $ac_var ;;
  11252. esac ;;
  11253. esac
  11254. done
  11255. (set) 2>&1 |
  11256. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11257. *${as_nl}ac_space=\ *)
  11258. # `set' does not quote correctly, so add quotes (double-quote
  11259. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11260. sed -n \
  11261. "s/'/'\\\\''/g;
  11262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11263. ;; #(
  11264. *)
  11265. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11266. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11267. ;;
  11268. esac |
  11269. sort
  11270. ) |
  11271. sed '
  11272. /^ac_cv_env_/b end
  11273. t clear
  11274. :clear
  11275. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11276. t end
  11277. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11278. :end' >>confcache
  11279. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11280. if test -w "$cache_file"; then
  11281. test "x$cache_file" != "x/dev/null" &&
  11282. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11283. echo "$as_me: updating cache $cache_file" >&6;}
  11284. cat confcache >$cache_file
  11285. else
  11286. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11287. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11288. fi
  11289. fi
  11290. rm -f confcache
  11291. for ac_func in strcasecmp strncasecmp vsnprintf
  11292. do
  11293. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11294. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11295. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11296. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11297. echo $ECHO_N "(cached) $ECHO_C" >&6
  11298. else
  11299. cat >conftest.$ac_ext <<_ACEOF
  11300. /* confdefs.h. */
  11301. _ACEOF
  11302. cat confdefs.h >>conftest.$ac_ext
  11303. cat >>conftest.$ac_ext <<_ACEOF
  11304. /* end confdefs.h. */
  11305. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11306. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11307. #define $ac_func innocuous_$ac_func
  11308. /* System header to define __stub macros and hopefully few prototypes,
  11309. which can conflict with char $ac_func (); below.
  11310. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11311. <limits.h> exists even on freestanding compilers. */
  11312. #ifdef __STDC__
  11313. # include <limits.h>
  11314. #else
  11315. # include <assert.h>
  11316. #endif
  11317. #undef $ac_func
  11318. /* Override any GCC internal prototype to avoid an error.
  11319. Use char because int might match the return type of a GCC
  11320. builtin and then its argument prototype would still apply. */
  11321. #ifdef __cplusplus
  11322. extern "C"
  11323. #endif
  11324. char $ac_func ();
  11325. /* The GNU C library defines this for functions which it implements
  11326. to always fail with ENOSYS. Some functions are actually named
  11327. something starting with __ and the normal name is an alias. */
  11328. #if defined __stub_$ac_func || defined __stub___$ac_func
  11329. choke me
  11330. #endif
  11331. int
  11332. main ()
  11333. {
  11334. return $ac_func ();
  11335. ;
  11336. return 0;
  11337. }
  11338. _ACEOF
  11339. rm -f conftest.$ac_objext conftest$ac_exeext
  11340. if { (ac_try="$ac_link"
  11341. case "(($ac_try" in
  11342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11343. *) ac_try_echo=$ac_try;;
  11344. esac
  11345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11346. (eval "$ac_link") 2>conftest.er1
  11347. ac_status=$?
  11348. grep -v '^ *+' conftest.er1 >conftest.err
  11349. rm -f conftest.er1
  11350. cat conftest.err >&5
  11351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11352. (exit $ac_status); } && {
  11353. test -z "$ac_cxx_werror_flag" ||
  11354. test ! -s conftest.err
  11355. } && test -s conftest$ac_exeext &&
  11356. $as_test_x conftest$ac_exeext; then
  11357. eval "$as_ac_var=yes"
  11358. else
  11359. echo "$as_me: failed program was:" >&5
  11360. sed 's/^/| /' conftest.$ac_ext >&5
  11361. eval "$as_ac_var=no"
  11362. fi
  11363. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11364. conftest$ac_exeext conftest.$ac_ext
  11365. fi
  11366. ac_res=`eval echo '${'$as_ac_var'}'`
  11367. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11368. echo "${ECHO_T}$ac_res" >&6; }
  11369. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11370. cat >>confdefs.h <<_ACEOF
  11371. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11372. _ACEOF
  11373. fi
  11374. done
  11375. #autoscan suggested this....
  11376. #These are recommended by autoscan, but no code supports it currently
  11377. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  11378. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11379. for ac_func in vsprintf
  11380. do
  11381. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11382. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11383. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11384. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11385. echo $ECHO_N "(cached) $ECHO_C" >&6
  11386. else
  11387. cat >conftest.$ac_ext <<_ACEOF
  11388. /* confdefs.h. */
  11389. _ACEOF
  11390. cat confdefs.h >>conftest.$ac_ext
  11391. cat >>conftest.$ac_ext <<_ACEOF
  11392. /* end confdefs.h. */
  11393. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11394. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11395. #define $ac_func innocuous_$ac_func
  11396. /* System header to define __stub macros and hopefully few prototypes,
  11397. which can conflict with char $ac_func (); below.
  11398. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11399. <limits.h> exists even on freestanding compilers. */
  11400. #ifdef __STDC__
  11401. # include <limits.h>
  11402. #else
  11403. # include <assert.h>
  11404. #endif
  11405. #undef $ac_func
  11406. /* Override any GCC internal prototype to avoid an error.
  11407. Use char because int might match the return type of a GCC
  11408. builtin and then its argument prototype would still apply. */
  11409. #ifdef __cplusplus
  11410. extern "C"
  11411. #endif
  11412. char $ac_func ();
  11413. /* The GNU C library defines this for functions which it implements
  11414. to always fail with ENOSYS. Some functions are actually named
  11415. something starting with __ and the normal name is an alias. */
  11416. #if defined __stub_$ac_func || defined __stub___$ac_func
  11417. choke me
  11418. #endif
  11419. int
  11420. main ()
  11421. {
  11422. return $ac_func ();
  11423. ;
  11424. return 0;
  11425. }
  11426. _ACEOF
  11427. rm -f conftest.$ac_objext conftest$ac_exeext
  11428. if { (ac_try="$ac_link"
  11429. case "(($ac_try" in
  11430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11431. *) ac_try_echo=$ac_try;;
  11432. esac
  11433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11434. (eval "$ac_link") 2>conftest.er1
  11435. ac_status=$?
  11436. grep -v '^ *+' conftest.er1 >conftest.err
  11437. rm -f conftest.er1
  11438. cat conftest.err >&5
  11439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11440. (exit $ac_status); } && {
  11441. test -z "$ac_cxx_werror_flag" ||
  11442. test ! -s conftest.err
  11443. } && test -s conftest$ac_exeext &&
  11444. $as_test_x conftest$ac_exeext; then
  11445. eval "$as_ac_var=yes"
  11446. else
  11447. echo "$as_me: failed program was:" >&5
  11448. sed 's/^/| /' conftest.$ac_ext >&5
  11449. eval "$as_ac_var=no"
  11450. fi
  11451. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11452. conftest$ac_exeext conftest.$ac_ext
  11453. fi
  11454. ac_res=`eval echo '${'$as_ac_var'}'`
  11455. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11456. echo "${ECHO_T}$ac_res" >&6; }
  11457. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11458. cat >>confdefs.h <<_ACEOF
  11459. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11460. _ACEOF
  11461. fi
  11462. done
  11463. if test "$ac_cv_func_vsprintf" = "no"
  11464. then
  11465. cat << 'EOF' >&2
  11466. configure: error:
  11467. Your system does not have the sprintf/vsprintf libraries.
  11468. These are required to compile almost anything. Sorry.
  11469. EOF
  11470. exit 1
  11471. fi
  11472. for ac_func in uname
  11473. do
  11474. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11475. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11476. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11477. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11478. echo $ECHO_N "(cached) $ECHO_C" >&6
  11479. else
  11480. cat >conftest.$ac_ext <<_ACEOF
  11481. /* confdefs.h. */
  11482. _ACEOF
  11483. cat confdefs.h >>conftest.$ac_ext
  11484. cat >>conftest.$ac_ext <<_ACEOF
  11485. /* end confdefs.h. */
  11486. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11487. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11488. #define $ac_func innocuous_$ac_func
  11489. /* System header to define __stub macros and hopefully few prototypes,
  11490. which can conflict with char $ac_func (); below.
  11491. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11492. <limits.h> exists even on freestanding compilers. */
  11493. #ifdef __STDC__
  11494. # include <limits.h>
  11495. #else
  11496. # include <assert.h>
  11497. #endif
  11498. #undef $ac_func
  11499. /* Override any GCC internal prototype to avoid an error.
  11500. Use char because int might match the return type of a GCC
  11501. builtin and then its argument prototype would still apply. */
  11502. #ifdef __cplusplus
  11503. extern "C"
  11504. #endif
  11505. char $ac_func ();
  11506. /* The GNU C library defines this for functions which it implements
  11507. to always fail with ENOSYS. Some functions are actually named
  11508. something starting with __ and the normal name is an alias. */
  11509. #if defined __stub_$ac_func || defined __stub___$ac_func
  11510. choke me
  11511. #endif
  11512. int
  11513. main ()
  11514. {
  11515. return $ac_func ();
  11516. ;
  11517. return 0;
  11518. }
  11519. _ACEOF
  11520. rm -f conftest.$ac_objext conftest$ac_exeext
  11521. if { (ac_try="$ac_link"
  11522. case "(($ac_try" in
  11523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11524. *) ac_try_echo=$ac_try;;
  11525. esac
  11526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11527. (eval "$ac_link") 2>conftest.er1
  11528. ac_status=$?
  11529. grep -v '^ *+' conftest.er1 >conftest.err
  11530. rm -f conftest.er1
  11531. cat conftest.err >&5
  11532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11533. (exit $ac_status); } && {
  11534. test -z "$ac_cxx_werror_flag" ||
  11535. test ! -s conftest.err
  11536. } && test -s conftest$ac_exeext &&
  11537. $as_test_x conftest$ac_exeext; then
  11538. eval "$as_ac_var=yes"
  11539. else
  11540. echo "$as_me: failed program was:" >&5
  11541. sed 's/^/| /' conftest.$ac_ext >&5
  11542. eval "$as_ac_var=no"
  11543. fi
  11544. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11545. conftest$ac_exeext conftest.$ac_ext
  11546. fi
  11547. ac_res=`eval echo '${'$as_ac_var'}'`
  11548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11549. echo "${ECHO_T}$ac_res" >&6; }
  11550. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11551. cat >>confdefs.h <<_ACEOF
  11552. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11553. _ACEOF
  11554. fi
  11555. done
  11556. if test "$ac_cv_func_uname" = "no"
  11557. then
  11558. cat << 'EOF' >&2
  11559. configure: error:
  11560. Your system does not have the uname() function.
  11561. This is required for the botpack.
  11562. EOF
  11563. exit 1
  11564. fi
  11565. # Make sure we have stdc headers, since we can't compile without them
  11566. if test "$ac_cv_header_stdc" = "no"
  11567. then
  11568. cat << 'EOF' >&2
  11569. configure: error:
  11570. Your system must support ANSI C Header files.
  11571. These are required for the language support. Sorry.
  11572. EOF
  11573. exit 1
  11574. fi
  11575. #checkpoint
  11576. cat >confcache <<\_ACEOF
  11577. # This file is a shell script that caches the results of configure
  11578. # tests run on this system so they can be shared between configure
  11579. # scripts and configure runs, see configure's option --config-cache.
  11580. # It is not useful on other systems. If it contains results you don't
  11581. # want to keep, you may remove or edit it.
  11582. #
  11583. # config.status only pays attention to the cache file if you give it
  11584. # the --recheck option to rerun configure.
  11585. #
  11586. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11587. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11588. # following values.
  11589. _ACEOF
  11590. # The following way of writing the cache mishandles newlines in values,
  11591. # but we know of no workaround that is simple, portable, and efficient.
  11592. # So, we kill variables containing newlines.
  11593. # Ultrix sh set writes to stderr and can't be redirected directly,
  11594. # and sets the high bit in the cache file unless we assign to the vars.
  11595. (
  11596. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11597. eval ac_val=\$$ac_var
  11598. case $ac_val in #(
  11599. *${as_nl}*)
  11600. case $ac_var in #(
  11601. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11602. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11603. esac
  11604. case $ac_var in #(
  11605. _ | IFS | as_nl) ;; #(
  11606. *) $as_unset $ac_var ;;
  11607. esac ;;
  11608. esac
  11609. done
  11610. (set) 2>&1 |
  11611. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11612. *${as_nl}ac_space=\ *)
  11613. # `set' does not quote correctly, so add quotes (double-quote
  11614. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11615. sed -n \
  11616. "s/'/'\\\\''/g;
  11617. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11618. ;; #(
  11619. *)
  11620. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11621. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11622. ;;
  11623. esac |
  11624. sort
  11625. ) |
  11626. sed '
  11627. /^ac_cv_env_/b end
  11628. t clear
  11629. :clear
  11630. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11631. t end
  11632. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11633. :end' >>confcache
  11634. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11635. if test -w "$cache_file"; then
  11636. test "x$cache_file" != "x/dev/null" &&
  11637. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11638. echo "$as_me: updating cache $cache_file" >&6;}
  11639. cat confcache >$cache_file
  11640. else
  11641. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11642. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11643. fi
  11644. fi
  11645. rm -f confcache
  11646. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11647. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11648. cat >>confdefs.h <<_ACEOF
  11649. #define EGG_VERSION $version_num
  11650. _ACEOF
  11651. #FIND_WRAPS
  11652. case "$srcdir" in
  11653. [\\/]* | ?:[\\/]*)
  11654. MOD_UPDIR=""
  11655. ;;
  11656. *)
  11657. MOD_UPDIR="../"
  11658. ;;
  11659. esac
  11660. 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/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  11661. for mf in $files; do
  11662. # Strip MF so we end up with the name of the file.
  11663. # echo "MF: $mf"
  11664. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11665. dirpart=`$as_dirname -- "$mf" ||
  11666. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11667. X"$mf" : 'X\(//\)[^/]' \| \
  11668. X"$mf" : 'X\(//\)$' \| \
  11669. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11670. echo X"$mf" |
  11671. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11672. s//\1/
  11673. q
  11674. }
  11675. /^X\(\/\/\)[^/].*/{
  11676. s//\1/
  11677. q
  11678. }
  11679. /^X\(\/\/\)$/{
  11680. s//\1/
  11681. q
  11682. }
  11683. /^X\(\/\).*/{
  11684. s//\1/
  11685. q
  11686. }
  11687. s/.*/./; q'`
  11688. # echo "dirpart: $dirpart mf: $mf"
  11689. # rm -rf "$dirpart/.deps/"
  11690. rm -f "$dirpart/.deps/includes"
  11691. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11692. for file in `sed -n -e '
  11693. /^OBJS = .*\\\\$/ {
  11694. s/^OBJS = //
  11695. :loop
  11696. s/\\\\$//
  11697. p
  11698. n
  11699. /\\\\$/ b loop
  11700. p
  11701. }
  11702. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11703. do
  11704. base=`basename $file .o`
  11705. test -f "$dirpart/$base.c" || continue
  11706. if ! test -f "$dirpart/.deps/$base.Po"; then
  11707. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11708. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11709. if test -f "$dirpart/$base.o"; then
  11710. rm -f "$dirpart/$base.o"
  11711. fi
  11712. fi
  11713. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11714. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11715. done
  11716. done
  11717. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  11718. cat >confcache <<\_ACEOF
  11719. # This file is a shell script that caches the results of configure
  11720. # tests run on this system so they can be shared between configure
  11721. # scripts and configure runs, see configure's option --config-cache.
  11722. # It is not useful on other systems. If it contains results you don't
  11723. # want to keep, you may remove or edit it.
  11724. #
  11725. # config.status only pays attention to the cache file if you give it
  11726. # the --recheck option to rerun configure.
  11727. #
  11728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11730. # following values.
  11731. _ACEOF
  11732. # The following way of writing the cache mishandles newlines in values,
  11733. # but we know of no workaround that is simple, portable, and efficient.
  11734. # So, we kill variables containing newlines.
  11735. # Ultrix sh set writes to stderr and can't be redirected directly,
  11736. # and sets the high bit in the cache file unless we assign to the vars.
  11737. (
  11738. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11739. eval ac_val=\$$ac_var
  11740. case $ac_val in #(
  11741. *${as_nl}*)
  11742. case $ac_var in #(
  11743. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11744. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11745. esac
  11746. case $ac_var in #(
  11747. _ | IFS | as_nl) ;; #(
  11748. *) $as_unset $ac_var ;;
  11749. esac ;;
  11750. esac
  11751. done
  11752. (set) 2>&1 |
  11753. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11754. *${as_nl}ac_space=\ *)
  11755. # `set' does not quote correctly, so add quotes (double-quote
  11756. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11757. sed -n \
  11758. "s/'/'\\\\''/g;
  11759. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11760. ;; #(
  11761. *)
  11762. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11763. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11764. ;;
  11765. esac |
  11766. sort
  11767. ) |
  11768. sed '
  11769. /^ac_cv_env_/b end
  11770. t clear
  11771. :clear
  11772. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11773. t end
  11774. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11775. :end' >>confcache
  11776. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11777. if test -w "$cache_file"; then
  11778. test "x$cache_file" != "x/dev/null" &&
  11779. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11780. echo "$as_me: updating cache $cache_file" >&6;}
  11781. cat confcache >$cache_file
  11782. else
  11783. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11784. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11785. fi
  11786. fi
  11787. rm -f confcache
  11788. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11789. # Let make expand exec_prefix.
  11790. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11791. DEFS=-DHAVE_CONFIG_H
  11792. ac_libobjs=
  11793. ac_ltlibobjs=
  11794. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11795. # 1. Remove the extension, and $U if already installed.
  11796. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11797. ac_i=`echo "$ac_i" | sed "$ac_script"`
  11798. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11799. # will be set to the directory where LIBOBJS objects are built.
  11800. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11801. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11802. done
  11803. LIBOBJS=$ac_libobjs
  11804. LTLIBOBJS=$ac_ltlibobjs
  11805. : ${CONFIG_STATUS=./config.status}
  11806. ac_clean_files_save=$ac_clean_files
  11807. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11808. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11809. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11810. cat >$CONFIG_STATUS <<_ACEOF
  11811. #! $SHELL
  11812. # Generated by $as_me.
  11813. # Run this file to recreate the current configuration.
  11814. # Compiler output produced by configure, useful for debugging
  11815. # configure, is in config.log if it exists.
  11816. debug=false
  11817. ac_cs_recheck=false
  11818. ac_cs_silent=false
  11819. SHELL=\${CONFIG_SHELL-$SHELL}
  11820. _ACEOF
  11821. cat >>$CONFIG_STATUS <<\_ACEOF
  11822. ## --------------------- ##
  11823. ## M4sh Initialization. ##
  11824. ## --------------------- ##
  11825. # Be more Bourne compatible
  11826. DUALCASE=1; export DUALCASE # for MKS sh
  11827. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11828. emulate sh
  11829. NULLCMD=:
  11830. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11831. # is contrary to our usage. Disable this feature.
  11832. alias -g '${1+"$@"}'='"$@"'
  11833. setopt NO_GLOB_SUBST
  11834. else
  11835. case `(set -o) 2>/dev/null` in
  11836. *posix*) set -o posix ;;
  11837. esac
  11838. fi
  11839. # PATH needs CR
  11840. # Avoid depending upon Character Ranges.
  11841. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11842. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11843. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11844. as_cr_digits='0123456789'
  11845. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11846. # The user is always right.
  11847. if test "${PATH_SEPARATOR+set}" != set; then
  11848. echo "#! /bin/sh" >conf$$.sh
  11849. echo "exit 0" >>conf$$.sh
  11850. chmod +x conf$$.sh
  11851. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11852. PATH_SEPARATOR=';'
  11853. else
  11854. PATH_SEPARATOR=:
  11855. fi
  11856. rm -f conf$$.sh
  11857. fi
  11858. # Support unset when possible.
  11859. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11860. as_unset=unset
  11861. else
  11862. as_unset=false
  11863. fi
  11864. # IFS
  11865. # We need space, tab and new line, in precisely that order. Quoting is
  11866. # there to prevent editors from complaining about space-tab.
  11867. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11868. # splitting by setting IFS to empty value.)
  11869. as_nl='
  11870. '
  11871. IFS=" "" $as_nl"
  11872. # Find who we are. Look in the path if we contain no directory separator.
  11873. case $0 in
  11874. *[\\/]* ) as_myself=$0 ;;
  11875. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11876. for as_dir in $PATH
  11877. do
  11878. IFS=$as_save_IFS
  11879. test -z "$as_dir" && as_dir=.
  11880. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11881. done
  11882. IFS=$as_save_IFS
  11883. ;;
  11884. esac
  11885. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11886. # in which case we are not to be found in the path.
  11887. if test "x$as_myself" = x; then
  11888. as_myself=$0
  11889. fi
  11890. if test ! -f "$as_myself"; then
  11891. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11892. { (exit 1); exit 1; }
  11893. fi
  11894. # Work around bugs in pre-3.0 UWIN ksh.
  11895. for as_var in ENV MAIL MAILPATH
  11896. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11897. done
  11898. PS1='$ '
  11899. PS2='> '
  11900. PS4='+ '
  11901. # NLS nuisances.
  11902. for as_var in \
  11903. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11904. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11905. LC_TELEPHONE LC_TIME
  11906. do
  11907. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11908. eval $as_var=C; export $as_var
  11909. else
  11910. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11911. fi
  11912. done
  11913. # Required to use basename.
  11914. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11915. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11916. as_expr=expr
  11917. else
  11918. as_expr=false
  11919. fi
  11920. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11921. as_basename=basename
  11922. else
  11923. as_basename=false
  11924. fi
  11925. # Name of the executable.
  11926. as_me=`$as_basename -- "$0" ||
  11927. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11928. X"$0" : 'X\(//\)$' \| \
  11929. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11930. echo X/"$0" |
  11931. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11932. s//\1/
  11933. q
  11934. }
  11935. /^X\/\(\/\/\)$/{
  11936. s//\1/
  11937. q
  11938. }
  11939. /^X\/\(\/\).*/{
  11940. s//\1/
  11941. q
  11942. }
  11943. s/.*/./; q'`
  11944. # CDPATH.
  11945. $as_unset CDPATH
  11946. as_lineno_1=$LINENO
  11947. as_lineno_2=$LINENO
  11948. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11949. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11950. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11951. # uniformly replaced by the line number. The first 'sed' inserts a
  11952. # line-number line after each line using $LINENO; the second 'sed'
  11953. # does the real work. The second script uses 'N' to pair each
  11954. # line-number line with the line containing $LINENO, and appends
  11955. # trailing '-' during substitution so that $LINENO is not a special
  11956. # case at line end.
  11957. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11958. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11959. # E. McMahon (1931-1989) for sed's syntax. :-)
  11960. sed -n '
  11961. p
  11962. /[$]LINENO/=
  11963. ' <$as_myself |
  11964. sed '
  11965. s/[$]LINENO.*/&-/
  11966. t lineno
  11967. b
  11968. :lineno
  11969. N
  11970. :loop
  11971. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11972. t loop
  11973. s/-\n.*//
  11974. ' >$as_me.lineno &&
  11975. chmod +x "$as_me.lineno" ||
  11976. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11977. { (exit 1); exit 1; }; }
  11978. # Don't try to exec as it changes $[0], causing all sort of problems
  11979. # (the dirname of $[0] is not the place where we might find the
  11980. # original and so on. Autoconf is especially sensitive to this).
  11981. . "./$as_me.lineno"
  11982. # Exit status is that of the last command.
  11983. exit
  11984. }
  11985. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11986. as_dirname=dirname
  11987. else
  11988. as_dirname=false
  11989. fi
  11990. ECHO_C= ECHO_N= ECHO_T=
  11991. case `echo -n x` in
  11992. -n*)
  11993. case `echo 'x\c'` in
  11994. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11995. *) ECHO_C='\c';;
  11996. esac;;
  11997. *)
  11998. ECHO_N='-n';;
  11999. esac
  12000. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12001. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12002. as_expr=expr
  12003. else
  12004. as_expr=false
  12005. fi
  12006. rm -f conf$$ conf$$.exe conf$$.file
  12007. if test -d conf$$.dir; then
  12008. rm -f conf$$.dir/conf$$.file
  12009. else
  12010. rm -f conf$$.dir
  12011. mkdir conf$$.dir
  12012. fi
  12013. echo >conf$$.file
  12014. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12015. as_ln_s='ln -s'
  12016. # ... but there are two gotchas:
  12017. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12018. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12019. # In both cases, we have to default to `cp -p'.
  12020. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12021. as_ln_s='cp -p'
  12022. elif ln conf$$.file conf$$ 2>/dev/null; then
  12023. as_ln_s=ln
  12024. else
  12025. as_ln_s='cp -p'
  12026. fi
  12027. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12028. rmdir conf$$.dir 2>/dev/null
  12029. if mkdir -p . 2>/dev/null; then
  12030. as_mkdir_p=:
  12031. else
  12032. test -d ./-p && rmdir ./-p
  12033. as_mkdir_p=false
  12034. fi
  12035. if test -x / >/dev/null 2>&1; then
  12036. as_test_x='test -x'
  12037. else
  12038. if ls -dL / >/dev/null 2>&1; then
  12039. as_ls_L_option=L
  12040. else
  12041. as_ls_L_option=
  12042. fi
  12043. as_test_x='
  12044. eval sh -c '\''
  12045. if test -d "$1"; then
  12046. test -d "$1/.";
  12047. else
  12048. case $1 in
  12049. -*)set "./$1";;
  12050. esac;
  12051. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12052. ???[sx]*):;;*)false;;esac;fi
  12053. '\'' sh
  12054. '
  12055. fi
  12056. as_executable_p=$as_test_x
  12057. # Sed expression to map a string onto a valid CPP name.
  12058. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12059. # Sed expression to map a string onto a valid variable name.
  12060. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12061. exec 6>&1
  12062. # Save the log message, to keep $[0] and so on meaningful, and to
  12063. # report actual input values of CONFIG_FILES etc. instead of their
  12064. # values after options handling.
  12065. ac_log="
  12066. This file was extended by $as_me, which was
  12067. generated by GNU Autoconf 2.61. Invocation command line was
  12068. CONFIG_FILES = $CONFIG_FILES
  12069. CONFIG_HEADERS = $CONFIG_HEADERS
  12070. CONFIG_LINKS = $CONFIG_LINKS
  12071. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12072. $ $0 $@
  12073. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12074. "
  12075. _ACEOF
  12076. cat >>$CONFIG_STATUS <<_ACEOF
  12077. # Files that config.status was made for.
  12078. config_files="$ac_config_files"
  12079. config_headers="$ac_config_headers"
  12080. _ACEOF
  12081. cat >>$CONFIG_STATUS <<\_ACEOF
  12082. ac_cs_usage="\
  12083. \`$as_me' instantiates files from templates according to the
  12084. current configuration.
  12085. Usage: $0 [OPTIONS] [FILE]...
  12086. -h, --help print this help, then exit
  12087. -V, --version print version number and configuration settings, then exit
  12088. -q, --quiet do not print progress messages
  12089. -d, --debug don't remove temporary files
  12090. --recheck update $as_me by reconfiguring in the same conditions
  12091. --file=FILE[:TEMPLATE]
  12092. instantiate the configuration file FILE
  12093. --header=FILE[:TEMPLATE]
  12094. instantiate the configuration header FILE
  12095. Configuration files:
  12096. $config_files
  12097. Configuration headers:
  12098. $config_headers
  12099. Report bugs to <bug-autoconf@gnu.org>."
  12100. _ACEOF
  12101. cat >>$CONFIG_STATUS <<_ACEOF
  12102. ac_cs_version="\\
  12103. config.status
  12104. configured by $0, generated by GNU Autoconf 2.61,
  12105. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12106. Copyright (C) 2006 Free Software Foundation, Inc.
  12107. This config.status script is free software; the Free Software Foundation
  12108. gives unlimited permission to copy, distribute and modify it."
  12109. ac_pwd='$ac_pwd'
  12110. srcdir='$srcdir'
  12111. _ACEOF
  12112. cat >>$CONFIG_STATUS <<\_ACEOF
  12113. # If no file are specified by the user, then we need to provide default
  12114. # value. By we need to know if files were specified by the user.
  12115. ac_need_defaults=:
  12116. while test $# != 0
  12117. do
  12118. case $1 in
  12119. --*=*)
  12120. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12121. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12122. ac_shift=:
  12123. ;;
  12124. *)
  12125. ac_option=$1
  12126. ac_optarg=$2
  12127. ac_shift=shift
  12128. ;;
  12129. esac
  12130. case $ac_option in
  12131. # Handling of the options.
  12132. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12133. ac_cs_recheck=: ;;
  12134. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12135. echo "$ac_cs_version"; exit ;;
  12136. --debug | --debu | --deb | --de | --d | -d )
  12137. debug=: ;;
  12138. --file | --fil | --fi | --f )
  12139. $ac_shift
  12140. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12141. ac_need_defaults=false;;
  12142. --header | --heade | --head | --hea )
  12143. $ac_shift
  12144. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12145. ac_need_defaults=false;;
  12146. --he | --h)
  12147. # Conflict between --help and --header
  12148. { echo "$as_me: error: ambiguous option: $1
  12149. Try \`$0 --help' for more information." >&2
  12150. { (exit 1); exit 1; }; };;
  12151. --help | --hel | -h )
  12152. echo "$ac_cs_usage"; exit ;;
  12153. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12154. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12155. ac_cs_silent=: ;;
  12156. # This is an error.
  12157. -*) { echo "$as_me: error: unrecognized option: $1
  12158. Try \`$0 --help' for more information." >&2
  12159. { (exit 1); exit 1; }; } ;;
  12160. *) ac_config_targets="$ac_config_targets $1"
  12161. ac_need_defaults=false ;;
  12162. esac
  12163. shift
  12164. done
  12165. ac_configure_extra_args=
  12166. if $ac_cs_silent; then
  12167. exec 6>/dev/null
  12168. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12169. fi
  12170. _ACEOF
  12171. cat >>$CONFIG_STATUS <<_ACEOF
  12172. if \$ac_cs_recheck; then
  12173. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12174. CONFIG_SHELL=$SHELL
  12175. export CONFIG_SHELL
  12176. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12177. fi
  12178. _ACEOF
  12179. cat >>$CONFIG_STATUS <<\_ACEOF
  12180. exec 5>>config.log
  12181. {
  12182. echo
  12183. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12184. ## Running $as_me. ##
  12185. _ASBOX
  12186. echo "$ac_log"
  12187. } >&5
  12188. _ACEOF
  12189. cat >>$CONFIG_STATUS <<_ACEOF
  12190. _ACEOF
  12191. cat >>$CONFIG_STATUS <<\_ACEOF
  12192. # Handling of arguments.
  12193. for ac_config_target in $ac_config_targets
  12194. do
  12195. case $ac_config_target in
  12196. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12197. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12198. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12199. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12200. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12201. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12202. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12203. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12204. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12205. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12206. { (exit 1); exit 1; }; };;
  12207. esac
  12208. done
  12209. # If the user did not use the arguments to specify the items to instantiate,
  12210. # then the envvar interface is used. Set only those that are not.
  12211. # We use the long form for the default assignment because of an extremely
  12212. # bizarre bug on SunOS 4.1.3.
  12213. if $ac_need_defaults; then
  12214. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12215. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12216. fi
  12217. # Have a temporary directory for convenience. Make it in the build tree
  12218. # simply because there is no reason against having it here, and in addition,
  12219. # creating and moving files from /tmp can sometimes cause problems.
  12220. # Hook for its removal unless debugging.
  12221. # Note that there is a small window in which the directory will not be cleaned:
  12222. # after its creation but before its name has been assigned to `$tmp'.
  12223. $debug ||
  12224. {
  12225. tmp=
  12226. trap 'exit_status=$?
  12227. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12228. ' 0
  12229. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12230. }
  12231. # Create a (secure) tmp directory for tmp files.
  12232. {
  12233. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12234. test -n "$tmp" && test -d "$tmp"
  12235. } ||
  12236. {
  12237. tmp=./conf$$-$RANDOM
  12238. (umask 077 && mkdir "$tmp")
  12239. } ||
  12240. {
  12241. echo "$me: cannot create a temporary directory in ." >&2
  12242. { (exit 1); exit 1; }
  12243. }
  12244. #
  12245. # Set up the sed scripts for CONFIG_FILES section.
  12246. #
  12247. # No need to generate the scripts if there are no CONFIG_FILES.
  12248. # This happens for instance when ./config.status config.h
  12249. if test -n "$CONFIG_FILES"; then
  12250. _ACEOF
  12251. ac_delim='%!_!# '
  12252. for ac_last_try in false false false false false :; do
  12253. cat >conf$$subs.sed <<_ACEOF
  12254. SHELL!$SHELL$ac_delim
  12255. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12256. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12257. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12258. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12259. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12260. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12261. exec_prefix!$exec_prefix$ac_delim
  12262. prefix!$prefix$ac_delim
  12263. program_transform_name!$program_transform_name$ac_delim
  12264. bindir!$bindir$ac_delim
  12265. sbindir!$sbindir$ac_delim
  12266. libexecdir!$libexecdir$ac_delim
  12267. datarootdir!$datarootdir$ac_delim
  12268. datadir!$datadir$ac_delim
  12269. sysconfdir!$sysconfdir$ac_delim
  12270. sharedstatedir!$sharedstatedir$ac_delim
  12271. localstatedir!$localstatedir$ac_delim
  12272. includedir!$includedir$ac_delim
  12273. oldincludedir!$oldincludedir$ac_delim
  12274. docdir!$docdir$ac_delim
  12275. infodir!$infodir$ac_delim
  12276. htmldir!$htmldir$ac_delim
  12277. dvidir!$dvidir$ac_delim
  12278. pdfdir!$pdfdir$ac_delim
  12279. psdir!$psdir$ac_delim
  12280. libdir!$libdir$ac_delim
  12281. localedir!$localedir$ac_delim
  12282. mandir!$mandir$ac_delim
  12283. DEFS!$DEFS$ac_delim
  12284. ECHO_C!$ECHO_C$ac_delim
  12285. ECHO_N!$ECHO_N$ac_delim
  12286. ECHO_T!$ECHO_T$ac_delim
  12287. LIBS!$LIBS$ac_delim
  12288. build_alias!$build_alias$ac_delim
  12289. host_alias!$host_alias$ac_delim
  12290. target_alias!$target_alias$ac_delim
  12291. egg_ac_parameters!$egg_ac_parameters$ac_delim
  12292. CXX!$CXX$ac_delim
  12293. CXXFLAGS!$CXXFLAGS$ac_delim
  12294. LDFLAGS!$LDFLAGS$ac_delim
  12295. CPPFLAGS!$CPPFLAGS$ac_delim
  12296. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12297. EXEEXT!$EXEEXT$ac_delim
  12298. OBJEXT!$OBJEXT$ac_delim
  12299. CXXCPP!$CXXCPP$ac_delim
  12300. GREP!$GREP$ac_delim
  12301. EGREP!$EGREP$ac_delim
  12302. CCDEPMODE!$CCDEPMODE$ac_delim
  12303. GCC3!$GCC3$ac_delim
  12304. GCC3DEB!$GCC3DEB$ac_delim
  12305. SET_MAKE!$SET_MAKE$ac_delim
  12306. HEAD_1!$HEAD_1$ac_delim
  12307. AWK!$AWK$ac_delim
  12308. BASENAME!$BASENAME$ac_delim
  12309. OBJCOPY!$OBJCOPY$ac_delim
  12310. STRIP!$STRIP$ac_delim
  12311. DIFF!$DIFF$ac_delim
  12312. UNAME!$UNAME$ac_delim
  12313. CCACHE!$CCACHE$ac_delim
  12314. DISTCC!$DISTCC$ac_delim
  12315. BUILDOS!$BUILDOS$ac_delim
  12316. BUILDARCH!$BUILDARCH$ac_delim
  12317. CCDEBUG!$CCDEBUG$ac_delim
  12318. LIBOBJS!$LIBOBJS$ac_delim
  12319. VERSION!$VERSION$ac_delim
  12320. NUMVER!$NUMVER$ac_delim
  12321. MOD_UPDIR!$MOD_UPDIR$ac_delim
  12322. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12323. _ACEOF
  12324. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
  12325. break
  12326. elif $ac_last_try; then
  12327. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12328. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12329. { (exit 1); exit 1; }; }
  12330. else
  12331. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12332. fi
  12333. done
  12334. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12335. if test -n "$ac_eof"; then
  12336. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12337. ac_eof=`expr $ac_eof + 1`
  12338. fi
  12339. cat >>$CONFIG_STATUS <<_ACEOF
  12340. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12341. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12342. _ACEOF
  12343. sed '
  12344. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12345. s/^/s,@/; s/!/@,|#_!!_#|/
  12346. :n
  12347. t n
  12348. s/'"$ac_delim"'$/,g/; t
  12349. s/$/\\/; p
  12350. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12351. ' >>$CONFIG_STATUS <conf$$subs.sed
  12352. rm -f conf$$subs.sed
  12353. cat >>$CONFIG_STATUS <<_ACEOF
  12354. :end
  12355. s/|#_!!_#|//g
  12356. CEOF$ac_eof
  12357. _ACEOF
  12358. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12359. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12360. # trailing colons and then remove the whole line if VPATH becomes empty
  12361. # (actually we leave an empty line to preserve line numbers).
  12362. if test "x$srcdir" = x.; then
  12363. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12364. s/:*\$(srcdir):*/:/
  12365. s/:*\${srcdir}:*/:/
  12366. s/:*@srcdir@:*/:/
  12367. s/^\([^=]*=[ ]*\):*/\1/
  12368. s/:*$//
  12369. s/^[^=]*=[ ]*$//
  12370. }'
  12371. fi
  12372. cat >>$CONFIG_STATUS <<\_ACEOF
  12373. fi # test -n "$CONFIG_FILES"
  12374. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  12375. do
  12376. case $ac_tag in
  12377. :[FHLC]) ac_mode=$ac_tag; continue;;
  12378. esac
  12379. case $ac_mode$ac_tag in
  12380. :[FHL]*:*);;
  12381. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12382. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12383. { (exit 1); exit 1; }; };;
  12384. :[FH]-) ac_tag=-:-;;
  12385. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12386. esac
  12387. ac_save_IFS=$IFS
  12388. IFS=:
  12389. set x $ac_tag
  12390. IFS=$ac_save_IFS
  12391. shift
  12392. ac_file=$1
  12393. shift
  12394. case $ac_mode in
  12395. :L) ac_source=$1;;
  12396. :[FH])
  12397. ac_file_inputs=
  12398. for ac_f
  12399. do
  12400. case $ac_f in
  12401. -) ac_f="$tmp/stdin";;
  12402. *) # Look for the file first in the build tree, then in the source tree
  12403. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12404. # because $ac_f cannot contain `:'.
  12405. test -f "$ac_f" ||
  12406. case $ac_f in
  12407. [\\/$]*) false;;
  12408. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12409. esac ||
  12410. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12411. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12412. { (exit 1); exit 1; }; };;
  12413. esac
  12414. ac_file_inputs="$ac_file_inputs $ac_f"
  12415. done
  12416. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12417. # use $as_me), people would be surprised to read:
  12418. # /* config.h. Generated by config.status. */
  12419. configure_input="Generated from "`IFS=:
  12420. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12421. if test x"$ac_file" != x-; then
  12422. configure_input="$ac_file. $configure_input"
  12423. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12424. echo "$as_me: creating $ac_file" >&6;}
  12425. fi
  12426. case $ac_tag in
  12427. *:-:* | *:-) cat >"$tmp/stdin";;
  12428. esac
  12429. ;;
  12430. esac
  12431. ac_dir=`$as_dirname -- "$ac_file" ||
  12432. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12433. X"$ac_file" : 'X\(//\)[^/]' \| \
  12434. X"$ac_file" : 'X\(//\)$' \| \
  12435. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12436. echo X"$ac_file" |
  12437. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12438. s//\1/
  12439. q
  12440. }
  12441. /^X\(\/\/\)[^/].*/{
  12442. s//\1/
  12443. q
  12444. }
  12445. /^X\(\/\/\)$/{
  12446. s//\1/
  12447. q
  12448. }
  12449. /^X\(\/\).*/{
  12450. s//\1/
  12451. q
  12452. }
  12453. s/.*/./; q'`
  12454. { as_dir="$ac_dir"
  12455. case $as_dir in #(
  12456. -*) as_dir=./$as_dir;;
  12457. esac
  12458. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12459. as_dirs=
  12460. while :; do
  12461. case $as_dir in #(
  12462. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12463. *) as_qdir=$as_dir;;
  12464. esac
  12465. as_dirs="'$as_qdir' $as_dirs"
  12466. as_dir=`$as_dirname -- "$as_dir" ||
  12467. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12468. X"$as_dir" : 'X\(//\)[^/]' \| \
  12469. X"$as_dir" : 'X\(//\)$' \| \
  12470. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12471. echo X"$as_dir" |
  12472. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12473. s//\1/
  12474. q
  12475. }
  12476. /^X\(\/\/\)[^/].*/{
  12477. s//\1/
  12478. q
  12479. }
  12480. /^X\(\/\/\)$/{
  12481. s//\1/
  12482. q
  12483. }
  12484. /^X\(\/\).*/{
  12485. s//\1/
  12486. q
  12487. }
  12488. s/.*/./; q'`
  12489. test -d "$as_dir" && break
  12490. done
  12491. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12492. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12493. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12494. { (exit 1); exit 1; }; }; }
  12495. ac_builddir=.
  12496. case "$ac_dir" in
  12497. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12498. *)
  12499. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12500. # A ".." for each directory in $ac_dir_suffix.
  12501. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12502. case $ac_top_builddir_sub in
  12503. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12504. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12505. esac ;;
  12506. esac
  12507. ac_abs_top_builddir=$ac_pwd
  12508. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12509. # for backward compatibility:
  12510. ac_top_builddir=$ac_top_build_prefix
  12511. case $srcdir in
  12512. .) # We are building in place.
  12513. ac_srcdir=.
  12514. ac_top_srcdir=$ac_top_builddir_sub
  12515. ac_abs_top_srcdir=$ac_pwd ;;
  12516. [\\/]* | ?:[\\/]* ) # Absolute name.
  12517. ac_srcdir=$srcdir$ac_dir_suffix;
  12518. ac_top_srcdir=$srcdir
  12519. ac_abs_top_srcdir=$srcdir ;;
  12520. *) # Relative name.
  12521. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12522. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12523. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12524. esac
  12525. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12526. case $ac_mode in
  12527. :F)
  12528. #
  12529. # CONFIG_FILE
  12530. #
  12531. _ACEOF
  12532. cat >>$CONFIG_STATUS <<\_ACEOF
  12533. # If the template does not know about datarootdir, expand it.
  12534. # FIXME: This hack should be removed a few years after 2.60.
  12535. ac_datarootdir_hack=; ac_datarootdir_seen=
  12536. case `sed -n '/datarootdir/ {
  12537. p
  12538. q
  12539. }
  12540. /@datadir@/p
  12541. /@docdir@/p
  12542. /@infodir@/p
  12543. /@localedir@/p
  12544. /@mandir@/p
  12545. ' $ac_file_inputs` in
  12546. *datarootdir*) ac_datarootdir_seen=yes;;
  12547. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12548. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12549. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12550. _ACEOF
  12551. cat >>$CONFIG_STATUS <<_ACEOF
  12552. ac_datarootdir_hack='
  12553. s&@datadir@&$datadir&g
  12554. s&@docdir@&$docdir&g
  12555. s&@infodir@&$infodir&g
  12556. s&@localedir@&$localedir&g
  12557. s&@mandir@&$mandir&g
  12558. s&\\\${datarootdir}&$datarootdir&g' ;;
  12559. esac
  12560. _ACEOF
  12561. # Neutralize VPATH when `$srcdir' = `.'.
  12562. # Shell code in configure.ac might set extrasub.
  12563. # FIXME: do we really want to maintain this feature?
  12564. cat >>$CONFIG_STATUS <<_ACEOF
  12565. sed "$ac_vpsub
  12566. $extrasub
  12567. _ACEOF
  12568. cat >>$CONFIG_STATUS <<\_ACEOF
  12569. :t
  12570. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12571. s&@configure_input@&$configure_input&;t t
  12572. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12573. s&@srcdir@&$ac_srcdir&;t t
  12574. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12575. s&@top_srcdir@&$ac_top_srcdir&;t t
  12576. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12577. s&@builddir@&$ac_builddir&;t t
  12578. s&@abs_builddir@&$ac_abs_builddir&;t t
  12579. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12580. $ac_datarootdir_hack
  12581. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  12582. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12583. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12584. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12585. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12586. which seems to be undefined. Please make sure it is defined." >&5
  12587. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12588. which seems to be undefined. Please make sure it is defined." >&2;}
  12589. rm -f "$tmp/stdin"
  12590. case $ac_file in
  12591. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12592. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12593. esac
  12594. ;;
  12595. :H)
  12596. #
  12597. # CONFIG_HEADER
  12598. #
  12599. _ACEOF
  12600. # Transform confdefs.h into a sed script `conftest.defines', that
  12601. # substitutes the proper values into config.h.in to produce config.h.
  12602. rm -f conftest.defines conftest.tail
  12603. # First, append a space to every undef/define line, to ease matching.
  12604. echo 's/$/ /' >conftest.defines
  12605. # Then, protect against being on the right side of a sed subst, or in
  12606. # an unquoted here document, in config.status. If some macros were
  12607. # called several times there might be several #defines for the same
  12608. # symbol, which is useless. But do not sort them, since the last
  12609. # AC_DEFINE must be honored.
  12610. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12611. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12612. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12613. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12614. # just an empty string.
  12615. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12616. ac_dB='\\)[ (].*,\\1define\\2'
  12617. ac_dC=' '
  12618. ac_dD=' ,'
  12619. uniq confdefs.h |
  12620. sed -n '
  12621. t rset
  12622. :rset
  12623. s/^[ ]*#[ ]*define[ ][ ]*//
  12624. t ok
  12625. d
  12626. :ok
  12627. s/[\\&,]/\\&/g
  12628. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12629. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12630. ' >>conftest.defines
  12631. # Remove the space that was appended to ease matching.
  12632. # Then replace #undef with comments. This is necessary, for
  12633. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12634. # on some systems where configure will not decide to define it.
  12635. # (The regexp can be short, since the line contains either #define or #undef.)
  12636. echo 's/ $//
  12637. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12638. # Break up conftest.defines:
  12639. ac_max_sed_lines=50
  12640. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12641. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12642. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12643. # et cetera.
  12644. ac_in='$ac_file_inputs'
  12645. ac_out='"$tmp/out1"'
  12646. ac_nxt='"$tmp/out2"'
  12647. while :
  12648. do
  12649. # Write a here document:
  12650. cat >>$CONFIG_STATUS <<_ACEOF
  12651. # First, check the format of the line:
  12652. cat >"\$tmp/defines.sed" <<\\CEOF
  12653. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12654. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12655. b
  12656. :def
  12657. _ACEOF
  12658. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12659. echo 'CEOF
  12660. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12661. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12662. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12663. grep . conftest.tail >/dev/null || break
  12664. rm -f conftest.defines
  12665. mv conftest.tail conftest.defines
  12666. done
  12667. rm -f conftest.defines conftest.tail
  12668. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12669. cat >>$CONFIG_STATUS <<\_ACEOF
  12670. if test x"$ac_file" != x-; then
  12671. echo "/* $configure_input */" >"$tmp/config.h"
  12672. cat "$ac_result" >>"$tmp/config.h"
  12673. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12674. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12675. echo "$as_me: $ac_file is unchanged" >&6;}
  12676. else
  12677. rm -f $ac_file
  12678. mv "$tmp/config.h" $ac_file
  12679. fi
  12680. else
  12681. echo "/* $configure_input */"
  12682. cat "$ac_result"
  12683. fi
  12684. rm -f "$tmp/out12"
  12685. ;;
  12686. esac
  12687. done # for ac_tag
  12688. { (exit 0); exit 0; }
  12689. _ACEOF
  12690. chmod +x $CONFIG_STATUS
  12691. ac_clean_files=$ac_clean_files_save
  12692. # configure is writing to config.log, and then calls config.status.
  12693. # config.status does its own redirection, appending to config.log.
  12694. # Unfortunately, on DOS this fails, as config.log is still kept open
  12695. # by configure, so config.status won't be able to write to it; its
  12696. # output is simply discarded. So we exec the FD to /dev/null,
  12697. # effectively closing config.log, so it can be properly (re)opened and
  12698. # appended to by config.status. When coming back to configure, we
  12699. # need to make the FD available again.
  12700. if test "$no_create" != yes; then
  12701. ac_cs_success=:
  12702. ac_config_status_args=
  12703. test "$silent" = yes &&
  12704. ac_config_status_args="$ac_config_status_args --quiet"
  12705. exec 5>/dev/null
  12706. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12707. exec 5>>config.log
  12708. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12709. # would make configure fail if this is the last instruction.
  12710. $ac_cs_success || { (exit 1); exit 1; }
  12711. fi
  12712. #echo ""
  12713. #echo ""
  12714. #echo "------------ Configuring BDLIB ------------"
  12715. #cd lib/bdlib && ./configure