configure 404 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 - 2009 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. # Pre-4.2 versions of Zsh do 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. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='printf %s\n'
  45. as_echo_n='printf %s'
  46. else
  47. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  48. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  49. as_echo_n='/usr/ucb/echo -n'
  50. else
  51. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. as_echo_n_body='eval
  53. arg=$1;
  54. case $arg in
  55. *"$as_nl"*)
  56. expr "X$arg" : "X\\(.*\\)$as_nl";
  57. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. esac;
  59. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. '
  61. export as_echo_n_body
  62. as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. export as_echo_body
  65. as_echo='sh -c $as_echo_body as_echo'
  66. fi
  67. # The user is always right.
  68. if test "${PATH_SEPARATOR+set}" != set; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Support unset when possible.
  76. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77. as_unset=unset
  78. else
  79. as_unset=false
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. case $0 in
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. { (exit 1); exit 1; }
  108. fi
  109. # Work around bugs in pre-3.0 UWIN ksh.
  110. for as_var in ENV MAIL MAILPATH
  111. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # Required to use basename.
  122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  124. as_expr=expr
  125. else
  126. as_expr=false
  127. fi
  128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  129. as_basename=basename
  130. else
  131. as_basename=false
  132. fi
  133. # Name of the executable.
  134. as_me=`$as_basename -- "$0" ||
  135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  136. X"$0" : 'X\(//\)$' \| \
  137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  138. $as_echo X/"$0" |
  139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  140. s//\1/
  141. q
  142. }
  143. /^X\/\(\/\/\)$/{
  144. s//\1/
  145. q
  146. }
  147. /^X\/\(\/\).*/{
  148. s//\1/
  149. q
  150. }
  151. s/.*/./; q'`
  152. # CDPATH.
  153. $as_unset CDPATH
  154. if test "x$CONFIG_SHELL" = x; then
  155. if (eval ":") 2>/dev/null; then
  156. as_have_required=yes
  157. else
  158. as_have_required=no
  159. fi
  160. if test $as_have_required = yes && (eval ":
  161. (as_func_return () {
  162. (exit \$1)
  163. }
  164. as_func_success () {
  165. as_func_return 0
  166. }
  167. as_func_failure () {
  168. as_func_return 1
  169. }
  170. as_func_ret_success () {
  171. return 0
  172. }
  173. as_func_ret_failure () {
  174. return 1
  175. }
  176. exitcode=0
  177. if as_func_success; then
  178. :
  179. else
  180. exitcode=1
  181. echo as_func_success failed.
  182. fi
  183. if as_func_failure; then
  184. exitcode=1
  185. echo as_func_failure succeeded.
  186. fi
  187. if as_func_ret_success; then
  188. :
  189. else
  190. exitcode=1
  191. echo as_func_ret_success failed.
  192. fi
  193. if as_func_ret_failure; then
  194. exitcode=1
  195. echo as_func_ret_failure succeeded.
  196. fi
  197. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  198. :
  199. else
  200. exitcode=1
  201. echo positional parameters were not saved.
  202. fi
  203. test \$exitcode = 0) || { (exit 1); exit 1; }
  204. (
  205. as_lineno_1=\$LINENO
  206. as_lineno_2=\$LINENO
  207. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  208. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  209. ") 2> /dev/null; then
  210. :
  211. else
  212. as_candidate_shells=
  213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  214. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  215. do
  216. IFS=$as_save_IFS
  217. test -z "$as_dir" && as_dir=.
  218. case $as_dir in
  219. /*)
  220. for as_base in sh bash ksh sh5; do
  221. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  222. done;;
  223. esac
  224. done
  225. IFS=$as_save_IFS
  226. for as_shell in $as_candidate_shells $SHELL; do
  227. # Try only shells that exist, to save several forks.
  228. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  229. { ("$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. # Pre-4.2 versions of Zsh do 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. _ASEOF
  244. }; then
  245. CONFIG_SHELL=$as_shell
  246. as_have_required=yes
  247. if { "$as_shell" 2> /dev/null <<\_ASEOF
  248. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. emulate sh
  250. NULLCMD=:
  251. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  252. # is contrary to our usage. Disable this feature.
  253. alias -g '${1+"$@"}'='"$@"'
  254. setopt NO_GLOB_SUBST
  255. else
  256. case `(set -o) 2>/dev/null` in
  257. *posix*) set -o posix ;;
  258. esac
  259. fi
  260. :
  261. (as_func_return () {
  262. (exit $1)
  263. }
  264. as_func_success () {
  265. as_func_return 0
  266. }
  267. as_func_failure () {
  268. as_func_return 1
  269. }
  270. as_func_ret_success () {
  271. return 0
  272. }
  273. as_func_ret_failure () {
  274. return 1
  275. }
  276. exitcode=0
  277. if as_func_success; then
  278. :
  279. else
  280. exitcode=1
  281. echo as_func_success failed.
  282. fi
  283. if as_func_failure; then
  284. exitcode=1
  285. echo as_func_failure succeeded.
  286. fi
  287. if as_func_ret_success; then
  288. :
  289. else
  290. exitcode=1
  291. echo as_func_ret_success failed.
  292. fi
  293. if as_func_ret_failure; then
  294. exitcode=1
  295. echo as_func_ret_failure succeeded.
  296. fi
  297. if ( set x; as_func_ret_success y && test x = "$1" ); then
  298. :
  299. else
  300. exitcode=1
  301. echo positional parameters were not saved.
  302. fi
  303. test $exitcode = 0) || { (exit 1); exit 1; }
  304. (
  305. as_lineno_1=$LINENO
  306. as_lineno_2=$LINENO
  307. test "x$as_lineno_1" != "x$as_lineno_2" &&
  308. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  309. _ASEOF
  310. }; then
  311. break
  312. fi
  313. fi
  314. done
  315. if test "x$CONFIG_SHELL" != x; then
  316. for as_var in BASH_ENV ENV
  317. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  318. done
  319. export CONFIG_SHELL
  320. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  321. fi
  322. if test $as_have_required = no; then
  323. echo This script requires a shell more modern than all the
  324. echo shells that I found on your system. Please install a
  325. echo modern shell, or manually run the script under such a
  326. echo shell if you do have one.
  327. { (exit 1); exit 1; }
  328. fi
  329. fi
  330. fi
  331. (eval "as_func_return () {
  332. (exit \$1)
  333. }
  334. as_func_success () {
  335. as_func_return 0
  336. }
  337. as_func_failure () {
  338. as_func_return 1
  339. }
  340. as_func_ret_success () {
  341. return 0
  342. }
  343. as_func_ret_failure () {
  344. return 1
  345. }
  346. exitcode=0
  347. if as_func_success; then
  348. :
  349. else
  350. exitcode=1
  351. echo as_func_success failed.
  352. fi
  353. if as_func_failure; then
  354. exitcode=1
  355. echo as_func_failure succeeded.
  356. fi
  357. if as_func_ret_success; then
  358. :
  359. else
  360. exitcode=1
  361. echo as_func_ret_success failed.
  362. fi
  363. if as_func_ret_failure; then
  364. exitcode=1
  365. echo as_func_ret_failure succeeded.
  366. fi
  367. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  368. :
  369. else
  370. exitcode=1
  371. echo positional parameters were not saved.
  372. fi
  373. test \$exitcode = 0") || {
  374. echo No shell found that supports shell functions.
  375. echo Please tell bug-autoconf@gnu.org about your system,
  376. echo including any error possibly output before this message.
  377. echo This can help us improve future autoconf versions.
  378. echo Configuration will now proceed without shell functions.
  379. }
  380. as_lineno_1=$LINENO
  381. as_lineno_2=$LINENO
  382. test "x$as_lineno_1" != "x$as_lineno_2" &&
  383. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  384. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  385. # uniformly replaced by the line number. The first 'sed' inserts a
  386. # line-number line after each line using $LINENO; the second 'sed'
  387. # does the real work. The second script uses 'N' to pair each
  388. # line-number line with the line containing $LINENO, and appends
  389. # trailing '-' during substitution so that $LINENO is not a special
  390. # case at line end.
  391. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  392. # scripts with optimization help from Paolo Bonzini. Blame Lee
  393. # E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  411. { (exit 1); exit 1; }; }
  412. # Don't try to exec as it changes $[0], causing all sort of problems
  413. # (the dirname of $[0] is not the place where we might find the
  414. # original and so on. Autoconf is especially sensitive to this).
  415. . "./$as_me.lineno"
  416. # Exit status is that of the last command.
  417. exit
  418. }
  419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  420. as_dirname=dirname
  421. else
  422. as_dirname=false
  423. fi
  424. ECHO_C= ECHO_N= ECHO_T=
  425. case `echo -n x` in
  426. -n*)
  427. case `echo 'x\c'` in
  428. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  429. *) ECHO_C='\c';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. if expr a : '\(a\)' >/dev/null 2>&1 &&
  435. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  436. as_expr=expr
  437. else
  438. as_expr=false
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.file
  441. if test -d conf$$.dir; then
  442. rm -f conf$$.dir/conf$$.file
  443. else
  444. rm -f conf$$.dir
  445. mkdir conf$$.dir 2>/dev/null
  446. fi
  447. if (echo >conf$$.file) 2>/dev/null; then
  448. if ln -s conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s='ln -s'
  450. # ... but there are two gotchas:
  451. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  452. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  453. # In both cases, we have to default to `cp -p'.
  454. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  455. as_ln_s='cp -p'
  456. elif ln conf$$.file conf$$ 2>/dev/null; then
  457. as_ln_s=ln
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. else
  462. as_ln_s='cp -p'
  463. fi
  464. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  465. rmdir conf$$.dir 2>/dev/null
  466. if mkdir -p . 2>/dev/null; then
  467. as_mkdir_p=:
  468. else
  469. test -d ./-p && rmdir ./-p
  470. as_mkdir_p=false
  471. fi
  472. if test -x / >/dev/null 2>&1; then
  473. as_test_x='test -x'
  474. else
  475. if ls -dL / >/dev/null 2>&1; then
  476. as_ls_L_option=L
  477. else
  478. as_ls_L_option=
  479. fi
  480. as_test_x='
  481. eval sh -c '\''
  482. if test -d "$1"; then
  483. test -d "$1/.";
  484. else
  485. case $1 in
  486. -*)set "./$1";;
  487. esac;
  488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  489. ???[sx]*):;;*)false;;esac;fi
  490. '\'' sh
  491. '
  492. fi
  493. as_executable_p=$as_test_x
  494. # Sed expression to map a string onto a valid CPP name.
  495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  496. # Sed expression to map a string onto a valid variable name.
  497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  498. exec 7<&0 </dev/null 6>&1
  499. # Name of the host.
  500. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  501. # so uname gets run too.
  502. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  503. #
  504. # Initializations.
  505. #
  506. ac_default_prefix=/usr/local
  507. ac_clean_files=
  508. ac_config_libobj_dir=.
  509. LIBOBJS=
  510. cross_compiling=no
  511. subdirs=
  512. MFLAGS=
  513. MAKEFLAGS=
  514. SHELL=${CONFIG_SHELL-/bin/sh}
  515. # Identity of this package.
  516. PACKAGE_NAME=
  517. PACKAGE_TARNAME=
  518. PACKAGE_VERSION=
  519. PACKAGE_STRING=
  520. PACKAGE_BUGREPORT=
  521. ac_unique_file="wraith"
  522. ac_unique_file="src/eggdrop.h"
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. ac_header_list=
  559. ac_func_list=
  560. ac_subst_vars='LTLIBOBJS
  561. MOD_UPDIR
  562. NUMVER
  563. VERSION
  564. LIBOBJS
  565. SSL_LIBS
  566. SSL_INCLUDES
  567. CCDEBUG
  568. STATIC
  569. BUILDARCH
  570. BUILDOS
  571. DISTCC
  572. CCACHE
  573. UNAME
  574. DIFF
  575. STRIP
  576. OBJCOPY
  577. BASENAME
  578. AWK
  579. HEAD_1
  580. SET_MAKE
  581. GCC4DEB
  582. GCC3DEB
  583. GCC3
  584. CCDEPMODE
  585. EGREP
  586. GREP
  587. CXXCPP
  588. OBJEXT
  589. EXEEXT
  590. ac_ct_CXX
  591. CPPFLAGS
  592. LDFLAGS
  593. CXXFLAGS
  594. CXX
  595. egg_ac_parameters
  596. target_alias
  597. host_alias
  598. build_alias
  599. LIBS
  600. ECHO_T
  601. ECHO_N
  602. ECHO_C
  603. DEFS
  604. mandir
  605. localedir
  606. libdir
  607. psdir
  608. pdfdir
  609. dvidir
  610. htmldir
  611. infodir
  612. docdir
  613. oldincludedir
  614. includedir
  615. localstatedir
  616. sharedstatedir
  617. sysconfdir
  618. datadir
  619. datarootdir
  620. libexecdir
  621. sbindir
  622. bindir
  623. program_transform_name
  624. prefix
  625. exec_prefix
  626. PACKAGE_BUGREPORT
  627. PACKAGE_STRING
  628. PACKAGE_VERSION
  629. PACKAGE_TARNAME
  630. PACKAGE_NAME
  631. PATH_SEPARATOR
  632. SHELL'
  633. ac_subst_files=''
  634. ac_user_opts='
  635. enable_option_checking
  636. enable_ipv6
  637. with_openssl
  638. '
  639. ac_precious_vars='build_alias
  640. host_alias
  641. target_alias
  642. CXX
  643. CXXFLAGS
  644. LDFLAGS
  645. LIBS
  646. CPPFLAGS
  647. CCC
  648. CXXCPP'
  649. # Initialize some variables set by options.
  650. ac_init_help=
  651. ac_init_version=false
  652. ac_unrecognized_opts=
  653. ac_unrecognized_sep=
  654. # The variables have the same names as the options, with
  655. # dashes changed to underlines.
  656. cache_file=./config.cache
  657. exec_prefix=NONE
  658. no_create=
  659. no_recursion=
  660. prefix=NONE
  661. program_prefix=NONE
  662. program_suffix=NONE
  663. program_transform_name=s,x,x,
  664. silent=
  665. site=
  666. srcdir=
  667. verbose=
  668. x_includes=NONE
  669. x_libraries=NONE
  670. # Installation directory options.
  671. # These are left unexpanded so users can "make install exec_prefix=/foo"
  672. # and all the variables that are supposed to be based on exec_prefix
  673. # by default will actually change.
  674. # Use braces instead of parens because sh, perl, etc. also accept them.
  675. # (The list follows the same order as the GNU Coding Standards.)
  676. bindir='${exec_prefix}/bin'
  677. sbindir='${exec_prefix}/sbin'
  678. libexecdir='${exec_prefix}/libexec'
  679. datarootdir='${prefix}/share'
  680. datadir='${datarootdir}'
  681. sysconfdir='${prefix}/etc'
  682. sharedstatedir='${prefix}/com'
  683. localstatedir='${prefix}/var'
  684. includedir='${prefix}/include'
  685. oldincludedir='/usr/include'
  686. docdir='${datarootdir}/doc/${PACKAGE}'
  687. infodir='${datarootdir}/info'
  688. htmldir='${docdir}'
  689. dvidir='${docdir}'
  690. pdfdir='${docdir}'
  691. psdir='${docdir}'
  692. libdir='${exec_prefix}/lib'
  693. localedir='${datarootdir}/locale'
  694. mandir='${datarootdir}/man'
  695. ac_prev=
  696. ac_dashdash=
  697. for ac_option
  698. do
  699. # If the previous option needs an argument, assign it.
  700. if test -n "$ac_prev"; then
  701. eval $ac_prev=\$ac_option
  702. ac_prev=
  703. continue
  704. fi
  705. case $ac_option in
  706. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  707. *) ac_optarg=yes ;;
  708. esac
  709. # Accept the important Cygnus configure options, so we can diagnose typos.
  710. case $ac_dashdash$ac_option in
  711. --)
  712. ac_dashdash=yes ;;
  713. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  714. ac_prev=bindir ;;
  715. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  716. bindir=$ac_optarg ;;
  717. -build | --build | --buil | --bui | --bu)
  718. ac_prev=build_alias ;;
  719. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  720. build_alias=$ac_optarg ;;
  721. -cache-file | --cache-file | --cache-fil | --cache-fi \
  722. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  723. ac_prev=cache_file ;;
  724. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  725. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  726. cache_file=$ac_optarg ;;
  727. --config-cache | -C)
  728. cache_file=config.cache ;;
  729. -datadir | --datadir | --datadi | --datad)
  730. ac_prev=datadir ;;
  731. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  732. datadir=$ac_optarg ;;
  733. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  734. | --dataroo | --dataro | --datar)
  735. ac_prev=datarootdir ;;
  736. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  737. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  738. datarootdir=$ac_optarg ;;
  739. -disable-* | --disable-*)
  740. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  741. # Reject names that are not valid shell variable names.
  742. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  743. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  744. { (exit 1); exit 1; }; }
  745. ac_useropt_orig=$ac_useropt
  746. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  747. case $ac_user_opts in
  748. *"
  749. "enable_$ac_useropt"
  750. "*) ;;
  751. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  752. ac_unrecognized_sep=', ';;
  753. esac
  754. eval enable_$ac_useropt=no ;;
  755. -docdir | --docdir | --docdi | --doc | --do)
  756. ac_prev=docdir ;;
  757. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  758. docdir=$ac_optarg ;;
  759. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  760. ac_prev=dvidir ;;
  761. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  762. dvidir=$ac_optarg ;;
  763. -enable-* | --enable-*)
  764. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  765. # Reject names that are not valid shell variable names.
  766. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  767. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  768. { (exit 1); exit 1; }; }
  769. ac_useropt_orig=$ac_useropt
  770. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  771. case $ac_user_opts in
  772. *"
  773. "enable_$ac_useropt"
  774. "*) ;;
  775. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  776. ac_unrecognized_sep=', ';;
  777. esac
  778. eval enable_$ac_useropt=\$ac_optarg ;;
  779. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  780. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  781. | --exec | --exe | --ex)
  782. ac_prev=exec_prefix ;;
  783. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  784. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  785. | --exec=* | --exe=* | --ex=*)
  786. exec_prefix=$ac_optarg ;;
  787. -gas | --gas | --ga | --g)
  788. # Obsolete; use --with-gas.
  789. with_gas=yes ;;
  790. -help | --help | --hel | --he | -h)
  791. ac_init_help=long ;;
  792. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  793. ac_init_help=recursive ;;
  794. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  795. ac_init_help=short ;;
  796. -host | --host | --hos | --ho)
  797. ac_prev=host_alias ;;
  798. -host=* | --host=* | --hos=* | --ho=*)
  799. host_alias=$ac_optarg ;;
  800. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  801. ac_prev=htmldir ;;
  802. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  803. | --ht=*)
  804. htmldir=$ac_optarg ;;
  805. -includedir | --includedir | --includedi | --included | --include \
  806. | --includ | --inclu | --incl | --inc)
  807. ac_prev=includedir ;;
  808. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  809. | --includ=* | --inclu=* | --incl=* | --inc=*)
  810. includedir=$ac_optarg ;;
  811. -infodir | --infodir | --infodi | --infod | --info | --inf)
  812. ac_prev=infodir ;;
  813. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  814. infodir=$ac_optarg ;;
  815. -libdir | --libdir | --libdi | --libd)
  816. ac_prev=libdir ;;
  817. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  818. libdir=$ac_optarg ;;
  819. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  820. | --libexe | --libex | --libe)
  821. ac_prev=libexecdir ;;
  822. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  823. | --libexe=* | --libex=* | --libe=*)
  824. libexecdir=$ac_optarg ;;
  825. -localedir | --localedir | --localedi | --localed | --locale)
  826. ac_prev=localedir ;;
  827. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  828. localedir=$ac_optarg ;;
  829. -localstatedir | --localstatedir | --localstatedi | --localstated \
  830. | --localstate | --localstat | --localsta | --localst | --locals)
  831. ac_prev=localstatedir ;;
  832. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  833. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  834. localstatedir=$ac_optarg ;;
  835. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  836. ac_prev=mandir ;;
  837. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  838. mandir=$ac_optarg ;;
  839. -nfp | --nfp | --nf)
  840. # Obsolete; use --without-fp.
  841. with_fp=no ;;
  842. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  843. | --no-cr | --no-c | -n)
  844. no_create=yes ;;
  845. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  846. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  847. no_recursion=yes ;;
  848. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  849. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  850. | --oldin | --oldi | --old | --ol | --o)
  851. ac_prev=oldincludedir ;;
  852. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  853. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  854. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  855. oldincludedir=$ac_optarg ;;
  856. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  857. ac_prev=prefix ;;
  858. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  859. prefix=$ac_optarg ;;
  860. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  861. | --program-pre | --program-pr | --program-p)
  862. ac_prev=program_prefix ;;
  863. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  864. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  865. program_prefix=$ac_optarg ;;
  866. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  867. | --program-suf | --program-su | --program-s)
  868. ac_prev=program_suffix ;;
  869. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  870. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  871. program_suffix=$ac_optarg ;;
  872. -program-transform-name | --program-transform-name \
  873. | --program-transform-nam | --program-transform-na \
  874. | --program-transform-n | --program-transform- \
  875. | --program-transform | --program-transfor \
  876. | --program-transfo | --program-transf \
  877. | --program-trans | --program-tran \
  878. | --progr-tra | --program-tr | --program-t)
  879. ac_prev=program_transform_name ;;
  880. -program-transform-name=* | --program-transform-name=* \
  881. | --program-transform-nam=* | --program-transform-na=* \
  882. | --program-transform-n=* | --program-transform-=* \
  883. | --program-transform=* | --program-transfor=* \
  884. | --program-transfo=* | --program-transf=* \
  885. | --program-trans=* | --program-tran=* \
  886. | --progr-tra=* | --program-tr=* | --program-t=*)
  887. program_transform_name=$ac_optarg ;;
  888. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  889. ac_prev=pdfdir ;;
  890. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  891. pdfdir=$ac_optarg ;;
  892. -psdir | --psdir | --psdi | --psd | --ps)
  893. ac_prev=psdir ;;
  894. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  895. psdir=$ac_optarg ;;
  896. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  897. | -silent | --silent | --silen | --sile | --sil)
  898. silent=yes ;;
  899. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  900. ac_prev=sbindir ;;
  901. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  902. | --sbi=* | --sb=*)
  903. sbindir=$ac_optarg ;;
  904. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  905. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  906. | --sharedst | --shareds | --shared | --share | --shar \
  907. | --sha | --sh)
  908. ac_prev=sharedstatedir ;;
  909. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  910. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  911. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  912. | --sha=* | --sh=*)
  913. sharedstatedir=$ac_optarg ;;
  914. -site | --site | --sit)
  915. ac_prev=site ;;
  916. -site=* | --site=* | --sit=*)
  917. site=$ac_optarg ;;
  918. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  919. ac_prev=srcdir ;;
  920. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  921. srcdir=$ac_optarg ;;
  922. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  923. | --syscon | --sysco | --sysc | --sys | --sy)
  924. ac_prev=sysconfdir ;;
  925. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  926. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  927. sysconfdir=$ac_optarg ;;
  928. -target | --target | --targe | --targ | --tar | --ta | --t)
  929. ac_prev=target_alias ;;
  930. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  931. target_alias=$ac_optarg ;;
  932. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  933. verbose=yes ;;
  934. -version | --version | --versio | --versi | --vers | -V)
  935. ac_init_version=: ;;
  936. -with-* | --with-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  941. { (exit 1); exit 1; }; }
  942. ac_useropt_orig=$ac_useropt
  943. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  944. case $ac_user_opts in
  945. *"
  946. "with_$ac_useropt"
  947. "*) ;;
  948. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  949. ac_unrecognized_sep=', ';;
  950. esac
  951. eval with_$ac_useropt=\$ac_optarg ;;
  952. -without-* | --without-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  957. { (exit 1); exit 1; }; }
  958. ac_useropt_orig=$ac_useropt
  959. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  960. case $ac_user_opts in
  961. *"
  962. "with_$ac_useropt"
  963. "*) ;;
  964. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  965. ac_unrecognized_sep=', ';;
  966. esac
  967. eval with_$ac_useropt=no ;;
  968. --x)
  969. # Obsolete; use --with-x.
  970. with_x=yes ;;
  971. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  972. | --x-incl | --x-inc | --x-in | --x-i)
  973. ac_prev=x_includes ;;
  974. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  975. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  976. x_includes=$ac_optarg ;;
  977. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  978. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  979. ac_prev=x_libraries ;;
  980. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  981. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  982. x_libraries=$ac_optarg ;;
  983. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  984. Try \`$0 --help' for more information." >&2
  985. { (exit 1); exit 1; }; }
  986. ;;
  987. *=*)
  988. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  991. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  992. { (exit 1); exit 1; }; }
  993. eval $ac_envvar=\$ac_optarg
  994. export $ac_envvar ;;
  995. *)
  996. # FIXME: should be removed in autoconf 3.0.
  997. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  998. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  999. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1000. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1001. ;;
  1002. esac
  1003. done
  1004. if test -n "$ac_prev"; then
  1005. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1006. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1007. { (exit 1); exit 1; }; }
  1008. fi
  1009. if test -n "$ac_unrecognized_opts"; then
  1010. case $enable_option_checking in
  1011. no) ;;
  1012. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1013. { (exit 1); exit 1; }; } ;;
  1014. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1015. esac
  1016. fi
  1017. # Check all directory arguments for consistency.
  1018. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1019. datadir sysconfdir sharedstatedir localstatedir includedir \
  1020. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1021. libdir localedir mandir
  1022. do
  1023. eval ac_val=\$$ac_var
  1024. # Remove trailing slashes.
  1025. case $ac_val in
  1026. */ )
  1027. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1028. eval $ac_var=\$ac_val;;
  1029. esac
  1030. # Be sure to have absolute directory names.
  1031. case $ac_val in
  1032. [\\/$]* | ?:[\\/]* ) continue;;
  1033. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1034. esac
  1035. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1036. { (exit 1); exit 1; }; }
  1037. done
  1038. # There might be people who depend on the old broken behavior: `$host'
  1039. # used to hold the argument of --host etc.
  1040. # FIXME: To remove some day.
  1041. build=$build_alias
  1042. host=$host_alias
  1043. target=$target_alias
  1044. # FIXME: To remove some day.
  1045. if test "x$host_alias" != x; then
  1046. if test "x$build_alias" = x; then
  1047. cross_compiling=maybe
  1048. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1049. If a cross compiler is detected then cross compile mode will be used." >&2
  1050. elif test "x$build_alias" != "x$host_alias"; then
  1051. cross_compiling=yes
  1052. fi
  1053. fi
  1054. ac_tool_prefix=
  1055. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1056. test "$silent" = yes && exec 6>/dev/null
  1057. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1058. ac_ls_di=`ls -di .` &&
  1059. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1060. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1061. { (exit 1); exit 1; }; }
  1062. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1063. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1064. { (exit 1); exit 1; }; }
  1065. # Find the source files, if location was not specified.
  1066. if test -z "$srcdir"; then
  1067. ac_srcdir_defaulted=yes
  1068. # Try the directory containing this script, then the parent directory.
  1069. ac_confdir=`$as_dirname -- "$as_myself" ||
  1070. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1071. X"$as_myself" : 'X\(//\)[^/]' \| \
  1072. X"$as_myself" : 'X\(//\)$' \| \
  1073. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1074. $as_echo X"$as_myself" |
  1075. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1076. s//\1/
  1077. q
  1078. }
  1079. /^X\(\/\/\)[^/].*/{
  1080. s//\1/
  1081. q
  1082. }
  1083. /^X\(\/\/\)$/{
  1084. s//\1/
  1085. q
  1086. }
  1087. /^X\(\/\).*/{
  1088. s//\1/
  1089. q
  1090. }
  1091. s/.*/./; q'`
  1092. srcdir=$ac_confdir
  1093. if test ! -r "$srcdir/$ac_unique_file"; then
  1094. srcdir=..
  1095. fi
  1096. else
  1097. ac_srcdir_defaulted=no
  1098. fi
  1099. if test ! -r "$srcdir/$ac_unique_file"; then
  1100. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1101. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1102. { (exit 1); exit 1; }; }
  1103. fi
  1104. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1105. ac_abs_confdir=`(
  1106. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1107. { (exit 1); exit 1; }; }
  1108. pwd)`
  1109. # When building in place, set srcdir=.
  1110. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1111. srcdir=.
  1112. fi
  1113. # Remove unnecessary trailing slashes from srcdir.
  1114. # Double slashes in file names in object file debugging info
  1115. # mess up M-x gdb in Emacs.
  1116. case $srcdir in
  1117. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1118. esac
  1119. for ac_var in $ac_precious_vars; do
  1120. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1121. eval ac_env_${ac_var}_value=\$${ac_var}
  1122. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1123. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1124. done
  1125. #
  1126. # Report the --help message.
  1127. #
  1128. if test "$ac_init_help" = "long"; then
  1129. # Omit some internal or obsolete options to make the list less imposing.
  1130. # This message is too long to be a string in the A/UX 3.1 sh.
  1131. cat <<_ACEOF
  1132. \`configure' configures this package to adapt to many kinds of systems.
  1133. Usage: $0 [OPTION]... [VAR=VALUE]...
  1134. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1135. VAR=VALUE. See below for descriptions of some of the useful variables.
  1136. Defaults for the options are specified in brackets.
  1137. Configuration:
  1138. -h, --help display this help and exit
  1139. --help=short display options specific to this package
  1140. --help=recursive display the short help of all the included packages
  1141. -V, --version display version information and exit
  1142. -q, --quiet, --silent do not print \`checking...' messages
  1143. --cache-file=FILE cache test results in FILE [disabled]
  1144. -C, --config-cache alias for \`--cache-file=config.cache'
  1145. -n, --no-create do not create output files
  1146. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1147. Installation directories:
  1148. --prefix=PREFIX install architecture-independent files in PREFIX
  1149. [$ac_default_prefix]
  1150. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1151. [PREFIX]
  1152. By default, \`make install' will install all the files in
  1153. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1154. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1155. for instance \`--prefix=\$HOME'.
  1156. For better control, use the options below.
  1157. Fine tuning of the installation directories:
  1158. --bindir=DIR user executables [EPREFIX/bin]
  1159. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1160. --libexecdir=DIR program executables [EPREFIX/libexec]
  1161. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1162. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1163. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1164. --libdir=DIR object code libraries [EPREFIX/lib]
  1165. --includedir=DIR C header files [PREFIX/include]
  1166. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1167. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1168. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1169. --infodir=DIR info documentation [DATAROOTDIR/info]
  1170. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1171. --mandir=DIR man documentation [DATAROOTDIR/man]
  1172. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1173. --htmldir=DIR html documentation [DOCDIR]
  1174. --dvidir=DIR dvi documentation [DOCDIR]
  1175. --pdfdir=DIR pdf documentation [DOCDIR]
  1176. --psdir=DIR ps documentation [DOCDIR]
  1177. _ACEOF
  1178. cat <<\_ACEOF
  1179. _ACEOF
  1180. fi
  1181. if test -n "$ac_init_help"; then
  1182. cat <<\_ACEOF
  1183. Optional Features:
  1184. --disable-option-checking ignore unrecognized --enable/--with options
  1185. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1186. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1187. --disable-ipv6 disable IPv6 support
  1188. Optional Packages:
  1189. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1190. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1191. --with-openssl=DIR Path to OpenSSL
  1192. Some influential environment variables:
  1193. CXX C++ compiler command
  1194. CXXFLAGS C++ compiler flags
  1195. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1196. nonstandard directory <lib dir>
  1197. LIBS libraries to pass to the linker, e.g. -l<library>
  1198. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1199. you have headers in a nonstandard directory <include dir>
  1200. CXXCPP C++ preprocessor
  1201. Use these variables to override the choices made by `configure' or to help
  1202. it to find libraries and programs with nonstandard names/locations.
  1203. _ACEOF
  1204. ac_status=$?
  1205. fi
  1206. if test "$ac_init_help" = "recursive"; then
  1207. # If there are subdirs, report their specific --help.
  1208. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1209. test -d "$ac_dir" ||
  1210. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1211. continue
  1212. ac_builddir=.
  1213. case "$ac_dir" in
  1214. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1215. *)
  1216. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1217. # A ".." for each directory in $ac_dir_suffix.
  1218. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1219. case $ac_top_builddir_sub in
  1220. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1221. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1222. esac ;;
  1223. esac
  1224. ac_abs_top_builddir=$ac_pwd
  1225. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1226. # for backward compatibility:
  1227. ac_top_builddir=$ac_top_build_prefix
  1228. case $srcdir in
  1229. .) # We are building in place.
  1230. ac_srcdir=.
  1231. ac_top_srcdir=$ac_top_builddir_sub
  1232. ac_abs_top_srcdir=$ac_pwd ;;
  1233. [\\/]* | ?:[\\/]* ) # Absolute name.
  1234. ac_srcdir=$srcdir$ac_dir_suffix;
  1235. ac_top_srcdir=$srcdir
  1236. ac_abs_top_srcdir=$srcdir ;;
  1237. *) # Relative name.
  1238. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1239. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1240. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1241. esac
  1242. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1243. cd "$ac_dir" || { ac_status=$?; continue; }
  1244. # Check for guested configure.
  1245. if test -f "$ac_srcdir/configure.gnu"; then
  1246. echo &&
  1247. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1248. elif test -f "$ac_srcdir/configure"; then
  1249. echo &&
  1250. $SHELL "$ac_srcdir/configure" --help=recursive
  1251. else
  1252. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1253. fi || ac_status=$?
  1254. cd "$ac_pwd" || { ac_status=$?; break; }
  1255. done
  1256. fi
  1257. test -n "$ac_init_help" && exit $ac_status
  1258. if $ac_init_version; then
  1259. cat <<\_ACEOF
  1260. configure
  1261. generated by GNU Autoconf 2.63
  1262. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1263. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1264. This configure script is free software; the Free Software Foundation
  1265. gives unlimited permission to copy, distribute and modify it.
  1266. Copyright (c) 2003 - 2009 Bryan Drewery
  1267. _ACEOF
  1268. exit
  1269. fi
  1270. cat >config.log <<_ACEOF
  1271. This file contains any messages produced by compilers while
  1272. running configure, to aid debugging if configure makes a mistake.
  1273. It was created by $as_me, which was
  1274. generated by GNU Autoconf 2.63. Invocation command line was
  1275. $ $0 $@
  1276. _ACEOF
  1277. exec 5>>config.log
  1278. {
  1279. cat <<_ASUNAME
  1280. ## --------- ##
  1281. ## Platform. ##
  1282. ## --------- ##
  1283. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1284. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1285. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1286. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1287. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1288. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1289. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1290. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1291. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1292. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1293. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1294. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1295. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1296. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1297. _ASUNAME
  1298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1299. for as_dir in $PATH
  1300. do
  1301. IFS=$as_save_IFS
  1302. test -z "$as_dir" && as_dir=.
  1303. $as_echo "PATH: $as_dir"
  1304. done
  1305. IFS=$as_save_IFS
  1306. } >&5
  1307. cat >&5 <<_ACEOF
  1308. ## ----------- ##
  1309. ## Core tests. ##
  1310. ## ----------- ##
  1311. _ACEOF
  1312. # Keep a trace of the command line.
  1313. # Strip out --no-create and --no-recursion so they do not pile up.
  1314. # Strip out --silent because we don't want to record it for future runs.
  1315. # Also quote any args containing shell meta-characters.
  1316. # Make two passes to allow for proper duplicate-argument suppression.
  1317. ac_configure_args=
  1318. ac_configure_args0=
  1319. ac_configure_args1=
  1320. ac_must_keep_next=false
  1321. for ac_pass in 1 2
  1322. do
  1323. for ac_arg
  1324. do
  1325. case $ac_arg in
  1326. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1327. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1328. | -silent | --silent | --silen | --sile | --sil)
  1329. continue ;;
  1330. *\'*)
  1331. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1332. esac
  1333. case $ac_pass in
  1334. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1335. 2)
  1336. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1337. if test $ac_must_keep_next = true; then
  1338. ac_must_keep_next=false # Got value, back to normal.
  1339. else
  1340. case $ac_arg in
  1341. *=* | --config-cache | -C | -disable-* | --disable-* \
  1342. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1343. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1344. | -with-* | --with-* | -without-* | --without-* | --x)
  1345. case "$ac_configure_args0 " in
  1346. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1347. esac
  1348. ;;
  1349. -* ) ac_must_keep_next=true ;;
  1350. esac
  1351. fi
  1352. ac_configure_args="$ac_configure_args '$ac_arg'"
  1353. ;;
  1354. esac
  1355. done
  1356. done
  1357. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1358. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1359. # When interrupted or exit'd, cleanup temporary files, and complete
  1360. # config.log. We remove comments because anyway the quotes in there
  1361. # would cause problems or look ugly.
  1362. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1363. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1364. trap 'exit_status=$?
  1365. # Save into config.log some information that might help in debugging.
  1366. {
  1367. echo
  1368. cat <<\_ASBOX
  1369. ## ---------------- ##
  1370. ## Cache variables. ##
  1371. ## ---------------- ##
  1372. _ASBOX
  1373. echo
  1374. # The following way of writing the cache mishandles newlines in values,
  1375. (
  1376. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1377. eval ac_val=\$$ac_var
  1378. case $ac_val in #(
  1379. *${as_nl}*)
  1380. case $ac_var in #(
  1381. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1382. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1383. esac
  1384. case $ac_var in #(
  1385. _ | IFS | as_nl) ;; #(
  1386. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1387. *) $as_unset $ac_var ;;
  1388. esac ;;
  1389. esac
  1390. done
  1391. (set) 2>&1 |
  1392. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1393. *${as_nl}ac_space=\ *)
  1394. sed -n \
  1395. "s/'\''/'\''\\\\'\'''\''/g;
  1396. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1397. ;; #(
  1398. *)
  1399. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1400. ;;
  1401. esac |
  1402. sort
  1403. )
  1404. echo
  1405. cat <<\_ASBOX
  1406. ## ----------------- ##
  1407. ## Output variables. ##
  1408. ## ----------------- ##
  1409. _ASBOX
  1410. echo
  1411. for ac_var in $ac_subst_vars
  1412. do
  1413. eval ac_val=\$$ac_var
  1414. case $ac_val in
  1415. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1416. esac
  1417. $as_echo "$ac_var='\''$ac_val'\''"
  1418. done | sort
  1419. echo
  1420. if test -n "$ac_subst_files"; then
  1421. cat <<\_ASBOX
  1422. ## ------------------- ##
  1423. ## File substitutions. ##
  1424. ## ------------------- ##
  1425. _ASBOX
  1426. echo
  1427. for ac_var in $ac_subst_files
  1428. do
  1429. eval ac_val=\$$ac_var
  1430. case $ac_val in
  1431. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1432. esac
  1433. $as_echo "$ac_var='\''$ac_val'\''"
  1434. done | sort
  1435. echo
  1436. fi
  1437. if test -s confdefs.h; then
  1438. cat <<\_ASBOX
  1439. ## ----------- ##
  1440. ## confdefs.h. ##
  1441. ## ----------- ##
  1442. _ASBOX
  1443. echo
  1444. cat confdefs.h
  1445. echo
  1446. fi
  1447. test "$ac_signal" != 0 &&
  1448. $as_echo "$as_me: caught signal $ac_signal"
  1449. $as_echo "$as_me: exit $exit_status"
  1450. } >&5
  1451. rm -f core *.core core.conftest.* &&
  1452. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1453. exit $exit_status
  1454. ' 0
  1455. for ac_signal in 1 2 13 15; do
  1456. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1457. done
  1458. ac_signal=0
  1459. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1460. rm -f -r conftest* confdefs.h
  1461. # Predefined preprocessor variables.
  1462. cat >>confdefs.h <<_ACEOF
  1463. #define PACKAGE_NAME "$PACKAGE_NAME"
  1464. _ACEOF
  1465. cat >>confdefs.h <<_ACEOF
  1466. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1467. _ACEOF
  1468. cat >>confdefs.h <<_ACEOF
  1469. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1470. _ACEOF
  1471. cat >>confdefs.h <<_ACEOF
  1472. #define PACKAGE_STRING "$PACKAGE_STRING"
  1473. _ACEOF
  1474. cat >>confdefs.h <<_ACEOF
  1475. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1476. _ACEOF
  1477. # Let the site file select an alternate cache file if it wants to.
  1478. # Prefer an explicitly selected file to automatically selected ones.
  1479. ac_site_file1=NONE
  1480. ac_site_file2=NONE
  1481. if test -n "$CONFIG_SITE"; then
  1482. ac_site_file1=$CONFIG_SITE
  1483. elif test "x$prefix" != xNONE; then
  1484. ac_site_file1=$prefix/share/config.site
  1485. ac_site_file2=$prefix/etc/config.site
  1486. else
  1487. ac_site_file1=$ac_default_prefix/share/config.site
  1488. ac_site_file2=$ac_default_prefix/etc/config.site
  1489. fi
  1490. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1491. do
  1492. test "x$ac_site_file" = xNONE && continue
  1493. if test -r "$ac_site_file"; then
  1494. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1495. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1496. sed 's/^/| /' "$ac_site_file" >&5
  1497. . "$ac_site_file"
  1498. fi
  1499. done
  1500. if test -r "$cache_file"; then
  1501. # Some versions of bash will fail to source /dev/null (special
  1502. # files actually), so we avoid doing that.
  1503. if test -f "$cache_file"; then
  1504. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1505. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1506. case $cache_file in
  1507. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1508. *) . "./$cache_file";;
  1509. esac
  1510. fi
  1511. else
  1512. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1513. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1514. >$cache_file
  1515. fi
  1516. ac_header_list="$ac_header_list sys/time.h"
  1517. ac_header_list="$ac_header_list unistd.h"
  1518. ac_func_list="$ac_func_list alarm"
  1519. # Check that the precious variables saved in the cache have kept the same
  1520. # value.
  1521. ac_cache_corrupted=false
  1522. for ac_var in $ac_precious_vars; do
  1523. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1524. eval ac_new_set=\$ac_env_${ac_var}_set
  1525. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1526. eval ac_new_val=\$ac_env_${ac_var}_value
  1527. case $ac_old_set,$ac_new_set in
  1528. set,)
  1529. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1530. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1531. ac_cache_corrupted=: ;;
  1532. ,set)
  1533. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1534. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1535. ac_cache_corrupted=: ;;
  1536. ,);;
  1537. *)
  1538. if test "x$ac_old_val" != "x$ac_new_val"; then
  1539. # differences in whitespace do not lead to failure.
  1540. ac_old_val_w=`echo x $ac_old_val`
  1541. ac_new_val_w=`echo x $ac_new_val`
  1542. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1543. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1544. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1545. ac_cache_corrupted=:
  1546. else
  1547. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1548. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1549. eval $ac_var=\$ac_old_val
  1550. fi
  1551. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1552. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1553. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1554. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1555. fi;;
  1556. esac
  1557. # Pass precious variables to config.status.
  1558. if test "$ac_new_set" = set; then
  1559. case $ac_new_val in
  1560. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1561. *) ac_arg=$ac_var=$ac_new_val ;;
  1562. esac
  1563. case " $ac_configure_args " in
  1564. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1565. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1566. esac
  1567. fi
  1568. done
  1569. if $ac_cache_corrupted; then
  1570. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1572. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1573. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1574. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1575. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1576. { (exit 1); exit 1; }; }
  1577. fi
  1578. ac_ext=c
  1579. ac_cpp='$CPP $CPPFLAGS'
  1580. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1581. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1582. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1583. ac_config_headers="$ac_config_headers config.h"
  1584. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1585. egg_ac_parameters=
  1586. ac_prev=
  1587. for ac_arg in $ac_configure_args; do
  1588. if test -n "$ac_prev"; then
  1589. ac_prev=
  1590. continue
  1591. fi
  1592. case $ac_arg in
  1593. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1594. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1595. ac_prev=cache_file ;;
  1596. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1597. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1598. | --c=*)
  1599. ;;
  1600. --config-cache | -C)
  1601. ;;
  1602. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1603. ac_prev=srcdir ;;
  1604. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1605. ;;
  1606. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1607. esac
  1608. done
  1609. # Setup build environment
  1610. #AC_REQUIRE_CPP
  1611. ac_ext=cpp
  1612. ac_cpp='$CXXCPP $CPPFLAGS'
  1613. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1614. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1615. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1616. ac_ext=cpp
  1617. ac_cpp='$CXXCPP $CPPFLAGS'
  1618. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1619. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1620. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1621. if test -z "$CXX"; then
  1622. if test -n "$CCC"; then
  1623. CXX=$CCC
  1624. else
  1625. if test -n "$ac_tool_prefix"; then
  1626. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1627. do
  1628. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1629. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1630. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1631. $as_echo_n "checking for $ac_word... " >&6; }
  1632. if test "${ac_cv_prog_CXX+set}" = set; then
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. if test -n "$CXX"; then
  1636. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1637. else
  1638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1639. for as_dir in $PATH
  1640. do
  1641. IFS=$as_save_IFS
  1642. test -z "$as_dir" && as_dir=.
  1643. for ac_exec_ext in '' $ac_executable_extensions; do
  1644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1645. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1646. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1647. break 2
  1648. fi
  1649. done
  1650. done
  1651. IFS=$as_save_IFS
  1652. fi
  1653. fi
  1654. CXX=$ac_cv_prog_CXX
  1655. if test -n "$CXX"; then
  1656. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  1657. $as_echo "$CXX" >&6; }
  1658. else
  1659. { $as_echo "$as_me:$LINENO: result: no" >&5
  1660. $as_echo "no" >&6; }
  1661. fi
  1662. test -n "$CXX" && break
  1663. done
  1664. fi
  1665. if test -z "$CXX"; then
  1666. ac_ct_CXX=$CXX
  1667. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1668. do
  1669. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1670. set dummy $ac_prog; ac_word=$2
  1671. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1672. $as_echo_n "checking for $ac_word... " >&6; }
  1673. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. if test -n "$ac_ct_CXX"; then
  1677. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1678. else
  1679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1680. for as_dir in $PATH
  1681. do
  1682. IFS=$as_save_IFS
  1683. test -z "$as_dir" && as_dir=.
  1684. for ac_exec_ext in '' $ac_executable_extensions; do
  1685. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1686. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1687. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1688. break 2
  1689. fi
  1690. done
  1691. done
  1692. IFS=$as_save_IFS
  1693. fi
  1694. fi
  1695. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1696. if test -n "$ac_ct_CXX"; then
  1697. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1698. $as_echo "$ac_ct_CXX" >&6; }
  1699. else
  1700. { $as_echo "$as_me:$LINENO: result: no" >&5
  1701. $as_echo "no" >&6; }
  1702. fi
  1703. test -n "$ac_ct_CXX" && break
  1704. done
  1705. if test "x$ac_ct_CXX" = x; then
  1706. CXX="g++"
  1707. else
  1708. case $cross_compiling:$ac_tool_warned in
  1709. yes:)
  1710. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1711. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1712. ac_tool_warned=yes ;;
  1713. esac
  1714. CXX=$ac_ct_CXX
  1715. fi
  1716. fi
  1717. fi
  1718. fi
  1719. # Provide some information about the compiler.
  1720. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1721. set X $ac_compile
  1722. ac_compiler=$2
  1723. { (ac_try="$ac_compiler --version >&5"
  1724. case "(($ac_try" in
  1725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1726. *) ac_try_echo=$ac_try;;
  1727. esac
  1728. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1729. $as_echo "$ac_try_echo") >&5
  1730. (eval "$ac_compiler --version >&5") 2>&5
  1731. ac_status=$?
  1732. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1733. (exit $ac_status); }
  1734. { (ac_try="$ac_compiler -v >&5"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo") >&5
  1741. (eval "$ac_compiler -v >&5") 2>&5
  1742. ac_status=$?
  1743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); }
  1745. { (ac_try="$ac_compiler -V >&5"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo") >&5
  1752. (eval "$ac_compiler -V >&5") 2>&5
  1753. ac_status=$?
  1754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1755. (exit $ac_status); }
  1756. cat >conftest.$ac_ext <<_ACEOF
  1757. /* confdefs.h. */
  1758. _ACEOF
  1759. cat confdefs.h >>conftest.$ac_ext
  1760. cat >>conftest.$ac_ext <<_ACEOF
  1761. /* end confdefs.h. */
  1762. int
  1763. main ()
  1764. {
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. ac_clean_files_save=$ac_clean_files
  1770. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1771. # Try to create an executable without -o first, disregard a.out.
  1772. # It will help us diagnose broken compilers, and finding out an intuition
  1773. # of exeext.
  1774. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1775. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  1776. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1777. # The possible output files:
  1778. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1779. ac_rmfiles=
  1780. for ac_file in $ac_files
  1781. do
  1782. case $ac_file in
  1783. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1784. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1785. esac
  1786. done
  1787. rm -f $ac_rmfiles
  1788. if { (ac_try="$ac_link_default"
  1789. case "(($ac_try" in
  1790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1791. *) ac_try_echo=$ac_try;;
  1792. esac
  1793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1794. $as_echo "$ac_try_echo") >&5
  1795. (eval "$ac_link_default") 2>&5
  1796. ac_status=$?
  1797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1798. (exit $ac_status); }; then
  1799. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1800. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1801. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1802. # so that the user can short-circuit this test for compilers unknown to
  1803. # Autoconf.
  1804. for ac_file in $ac_files ''
  1805. do
  1806. test -f "$ac_file" || continue
  1807. case $ac_file in
  1808. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1809. ;;
  1810. [ab].out )
  1811. # We found the default executable, but exeext='' is most
  1812. # certainly right.
  1813. break;;
  1814. *.* )
  1815. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1816. then :; else
  1817. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1818. fi
  1819. # We set ac_cv_exeext here because the later test for it is not
  1820. # safe: cross compilers may not add the suffix if given an `-o'
  1821. # argument, so we may need to know it at that point already.
  1822. # Even if this section looks crufty: it has the advantage of
  1823. # actually working.
  1824. break;;
  1825. * )
  1826. break;;
  1827. esac
  1828. done
  1829. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1830. else
  1831. ac_file=''
  1832. fi
  1833. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1834. $as_echo "$ac_file" >&6; }
  1835. if test -z "$ac_file"; then
  1836. $as_echo "$as_me: failed program was:" >&5
  1837. sed 's/^/| /' conftest.$ac_ext >&5
  1838. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1839. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1840. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1841. See \`config.log' for more details." >&5
  1842. $as_echo "$as_me: error: C++ compiler cannot create executables
  1843. See \`config.log' for more details." >&2;}
  1844. { (exit 77); exit 77; }; }; }
  1845. fi
  1846. ac_exeext=$ac_cv_exeext
  1847. # Check that the compiler produces executables we can run. If not, either
  1848. # the compiler is broken, or we cross compile.
  1849. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1850. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  1851. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1852. # If not cross compiling, check that we can run a simple program.
  1853. if test "$cross_compiling" != yes; then
  1854. if { ac_try='./$ac_file'
  1855. { (case "(($ac_try" in
  1856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1857. *) ac_try_echo=$ac_try;;
  1858. esac
  1859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1860. $as_echo "$ac_try_echo") >&5
  1861. (eval "$ac_try") 2>&5
  1862. ac_status=$?
  1863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. cross_compiling=no
  1866. else
  1867. if test "$cross_compiling" = maybe; then
  1868. cross_compiling=yes
  1869. else
  1870. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1871. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1872. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1873. If you meant to cross compile, use \`--host'.
  1874. See \`config.log' for more details." >&5
  1875. $as_echo "$as_me: error: cannot run C++ compiled programs.
  1876. If you meant to cross compile, use \`--host'.
  1877. See \`config.log' for more details." >&2;}
  1878. { (exit 1); exit 1; }; }; }
  1879. fi
  1880. fi
  1881. fi
  1882. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1883. $as_echo "yes" >&6; }
  1884. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1885. ac_clean_files=$ac_clean_files_save
  1886. # Check that the compiler produces executables we can run. If not, either
  1887. # the compiler is broken, or we cross compile.
  1888. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1889. $as_echo_n "checking whether we are cross compiling... " >&6; }
  1890. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1891. $as_echo "$cross_compiling" >&6; }
  1892. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1893. $as_echo_n "checking for suffix of executables... " >&6; }
  1894. if { (ac_try="$ac_link"
  1895. case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo") >&5
  1901. (eval "$ac_link") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1904. (exit $ac_status); }; then
  1905. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1906. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1907. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1908. # `rm'.
  1909. for ac_file in conftest.exe conftest conftest.*; do
  1910. test -f "$ac_file" || continue
  1911. case $ac_file in
  1912. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1913. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1914. break;;
  1915. * ) break;;
  1916. esac
  1917. done
  1918. else
  1919. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1921. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1922. See \`config.log' for more details." >&5
  1923. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1924. See \`config.log' for more details." >&2;}
  1925. { (exit 1); exit 1; }; }; }
  1926. fi
  1927. rm -f conftest$ac_cv_exeext
  1928. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1929. $as_echo "$ac_cv_exeext" >&6; }
  1930. rm -f conftest.$ac_ext
  1931. EXEEXT=$ac_cv_exeext
  1932. ac_exeext=$EXEEXT
  1933. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1934. $as_echo_n "checking for suffix of object files... " >&6; }
  1935. if test "${ac_cv_objext+set}" = set; then
  1936. $as_echo_n "(cached) " >&6
  1937. else
  1938. cat >conftest.$ac_ext <<_ACEOF
  1939. /* confdefs.h. */
  1940. _ACEOF
  1941. cat confdefs.h >>conftest.$ac_ext
  1942. cat >>conftest.$ac_ext <<_ACEOF
  1943. /* end confdefs.h. */
  1944. int
  1945. main ()
  1946. {
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. rm -f conftest.o conftest.obj
  1952. if { (ac_try="$ac_compile"
  1953. case "(($ac_try" in
  1954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1955. *) ac_try_echo=$ac_try;;
  1956. esac
  1957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1958. $as_echo "$ac_try_echo") >&5
  1959. (eval "$ac_compile") 2>&5
  1960. ac_status=$?
  1961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1962. (exit $ac_status); }; then
  1963. for ac_file in conftest.o conftest.obj conftest.*; do
  1964. test -f "$ac_file" || continue;
  1965. case $ac_file in
  1966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1967. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1968. break;;
  1969. esac
  1970. done
  1971. else
  1972. $as_echo "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1975. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1976. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1977. See \`config.log' for more details." >&5
  1978. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1979. See \`config.log' for more details." >&2;}
  1980. { (exit 1); exit 1; }; }; }
  1981. fi
  1982. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1983. fi
  1984. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1985. $as_echo "$ac_cv_objext" >&6; }
  1986. OBJEXT=$ac_cv_objext
  1987. ac_objext=$OBJEXT
  1988. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1989. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1990. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. cat >conftest.$ac_ext <<_ACEOF
  1994. /* confdefs.h. */
  1995. _ACEOF
  1996. cat confdefs.h >>conftest.$ac_ext
  1997. cat >>conftest.$ac_ext <<_ACEOF
  1998. /* end confdefs.h. */
  1999. int
  2000. main ()
  2001. {
  2002. #ifndef __GNUC__
  2003. choke me
  2004. #endif
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. rm -f conftest.$ac_objext
  2010. if { (ac_try="$ac_compile"
  2011. case "(($ac_try" in
  2012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2013. *) ac_try_echo=$ac_try;;
  2014. esac
  2015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2016. $as_echo "$ac_try_echo") >&5
  2017. (eval "$ac_compile") 2>conftest.er1
  2018. ac_status=$?
  2019. grep -v '^ *+' conftest.er1 >conftest.err
  2020. rm -f conftest.er1
  2021. cat conftest.err >&5
  2022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2023. (exit $ac_status); } && {
  2024. test -z "$ac_cxx_werror_flag" ||
  2025. test ! -s conftest.err
  2026. } && test -s conftest.$ac_objext; then
  2027. ac_compiler_gnu=yes
  2028. else
  2029. $as_echo "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_compiler_gnu=no
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2034. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2035. fi
  2036. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2037. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2038. if test $ac_compiler_gnu = yes; then
  2039. GXX=yes
  2040. else
  2041. GXX=
  2042. fi
  2043. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2044. ac_save_CXXFLAGS=$CXXFLAGS
  2045. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2046. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2047. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2048. $as_echo_n "(cached) " >&6
  2049. else
  2050. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2051. ac_cxx_werror_flag=yes
  2052. ac_cv_prog_cxx_g=no
  2053. CXXFLAGS="-g"
  2054. cat >conftest.$ac_ext <<_ACEOF
  2055. /* confdefs.h. */
  2056. _ACEOF
  2057. cat confdefs.h >>conftest.$ac_ext
  2058. cat >>conftest.$ac_ext <<_ACEOF
  2059. /* end confdefs.h. */
  2060. int
  2061. main ()
  2062. {
  2063. ;
  2064. return 0;
  2065. }
  2066. _ACEOF
  2067. rm -f conftest.$ac_objext
  2068. if { (ac_try="$ac_compile"
  2069. case "(($ac_try" in
  2070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2071. *) ac_try_echo=$ac_try;;
  2072. esac
  2073. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2074. $as_echo "$ac_try_echo") >&5
  2075. (eval "$ac_compile") 2>conftest.er1
  2076. ac_status=$?
  2077. grep -v '^ *+' conftest.er1 >conftest.err
  2078. rm -f conftest.er1
  2079. cat conftest.err >&5
  2080. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2081. (exit $ac_status); } && {
  2082. test -z "$ac_cxx_werror_flag" ||
  2083. test ! -s conftest.err
  2084. } && test -s conftest.$ac_objext; then
  2085. ac_cv_prog_cxx_g=yes
  2086. else
  2087. $as_echo "$as_me: failed program was:" >&5
  2088. sed 's/^/| /' conftest.$ac_ext >&5
  2089. CXXFLAGS=""
  2090. cat >conftest.$ac_ext <<_ACEOF
  2091. /* confdefs.h. */
  2092. _ACEOF
  2093. cat confdefs.h >>conftest.$ac_ext
  2094. cat >>conftest.$ac_ext <<_ACEOF
  2095. /* end confdefs.h. */
  2096. int
  2097. main ()
  2098. {
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. rm -f conftest.$ac_objext
  2104. if { (ac_try="$ac_compile"
  2105. case "(($ac_try" in
  2106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2107. *) ac_try_echo=$ac_try;;
  2108. esac
  2109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2110. $as_echo "$ac_try_echo") >&5
  2111. (eval "$ac_compile") 2>conftest.er1
  2112. ac_status=$?
  2113. grep -v '^ *+' conftest.er1 >conftest.err
  2114. rm -f conftest.er1
  2115. cat conftest.err >&5
  2116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2117. (exit $ac_status); } && {
  2118. test -z "$ac_cxx_werror_flag" ||
  2119. test ! -s conftest.err
  2120. } && test -s conftest.$ac_objext; then
  2121. :
  2122. else
  2123. $as_echo "$as_me: failed program was:" >&5
  2124. sed 's/^/| /' conftest.$ac_ext >&5
  2125. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2126. CXXFLAGS="-g"
  2127. cat >conftest.$ac_ext <<_ACEOF
  2128. /* confdefs.h. */
  2129. _ACEOF
  2130. cat confdefs.h >>conftest.$ac_ext
  2131. cat >>conftest.$ac_ext <<_ACEOF
  2132. /* end confdefs.h. */
  2133. int
  2134. main ()
  2135. {
  2136. ;
  2137. return 0;
  2138. }
  2139. _ACEOF
  2140. rm -f conftest.$ac_objext
  2141. if { (ac_try="$ac_compile"
  2142. case "(($ac_try" in
  2143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2144. *) ac_try_echo=$ac_try;;
  2145. esac
  2146. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2147. $as_echo "$ac_try_echo") >&5
  2148. (eval "$ac_compile") 2>conftest.er1
  2149. ac_status=$?
  2150. grep -v '^ *+' conftest.er1 >conftest.err
  2151. rm -f conftest.er1
  2152. cat conftest.err >&5
  2153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2154. (exit $ac_status); } && {
  2155. test -z "$ac_cxx_werror_flag" ||
  2156. test ! -s conftest.err
  2157. } && test -s conftest.$ac_objext; then
  2158. ac_cv_prog_cxx_g=yes
  2159. else
  2160. $as_echo "$as_me: failed program was:" >&5
  2161. sed 's/^/| /' conftest.$ac_ext >&5
  2162. fi
  2163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2164. fi
  2165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2166. fi
  2167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2168. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2169. fi
  2170. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2171. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2172. if test "$ac_test_CXXFLAGS" = set; then
  2173. CXXFLAGS=$ac_save_CXXFLAGS
  2174. elif test $ac_cv_prog_cxx_g = yes; then
  2175. if test "$GXX" = yes; then
  2176. CXXFLAGS="-g -O2"
  2177. else
  2178. CXXFLAGS="-g"
  2179. fi
  2180. else
  2181. if test "$GXX" = yes; then
  2182. CXXFLAGS="-O2"
  2183. else
  2184. CXXFLAGS=
  2185. fi
  2186. fi
  2187. ac_ext=cpp
  2188. ac_cpp='$CXXCPP $CPPFLAGS'
  2189. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2190. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2191. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2192. if test "${cross_compiling-x}" = "x"
  2193. then
  2194. cat << 'EOF' >&2
  2195. configure: error:
  2196. This system does not appear to have a working C compiler.
  2197. A working C compiler is required to compile Eggdrop.
  2198. EOF
  2199. exit 1
  2200. fi
  2201. if test -n "$GXX"; then
  2202. CXXFLAGS="$CXXFLAGS -O3"
  2203. fi
  2204. # Crazy machines
  2205. ac_ext=cpp
  2206. ac_cpp='$CXXCPP $CPPFLAGS'
  2207. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2208. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2209. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2210. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2211. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2212. if test -z "$CXXCPP"; then
  2213. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. # Double quotes because CXXCPP needs to be expanded
  2217. for CXXCPP in "$CXX -E" "/lib/cpp"
  2218. do
  2219. ac_preproc_ok=false
  2220. for ac_cxx_preproc_warn_flag in '' yes
  2221. do
  2222. # Use a header file that comes with gcc, so configuring glibc
  2223. # with a fresh cross-compiler works.
  2224. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2225. # <limits.h> exists even on freestanding compilers.
  2226. # On the NeXT, cc -E runs the code through the compiler's parser,
  2227. # not just through cpp. "Syntax error" is here to catch this case.
  2228. cat >conftest.$ac_ext <<_ACEOF
  2229. /* confdefs.h. */
  2230. _ACEOF
  2231. cat confdefs.h >>conftest.$ac_ext
  2232. cat >>conftest.$ac_ext <<_ACEOF
  2233. /* end confdefs.h. */
  2234. #ifdef __STDC__
  2235. # include <limits.h>
  2236. #else
  2237. # include <assert.h>
  2238. #endif
  2239. Syntax error
  2240. _ACEOF
  2241. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2242. case "(($ac_try" in
  2243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2244. *) ac_try_echo=$ac_try;;
  2245. esac
  2246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2247. $as_echo "$ac_try_echo") >&5
  2248. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2249. ac_status=$?
  2250. grep -v '^ *+' conftest.er1 >conftest.err
  2251. rm -f conftest.er1
  2252. cat conftest.err >&5
  2253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2254. (exit $ac_status); } >/dev/null && {
  2255. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2256. test ! -s conftest.err
  2257. }; then
  2258. :
  2259. else
  2260. $as_echo "$as_me: failed program was:" >&5
  2261. sed 's/^/| /' conftest.$ac_ext >&5
  2262. # Broken: fails on valid input.
  2263. continue
  2264. fi
  2265. rm -f conftest.err conftest.$ac_ext
  2266. # OK, works on sane cases. Now check whether nonexistent headers
  2267. # can be detected and how.
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #include <ac_nonexistent.h>
  2275. _ACEOF
  2276. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2277. case "(($ac_try" in
  2278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2279. *) ac_try_echo=$ac_try;;
  2280. esac
  2281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2282. $as_echo "$ac_try_echo") >&5
  2283. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2284. ac_status=$?
  2285. grep -v '^ *+' conftest.er1 >conftest.err
  2286. rm -f conftest.er1
  2287. cat conftest.err >&5
  2288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2289. (exit $ac_status); } >/dev/null && {
  2290. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2291. test ! -s conftest.err
  2292. }; then
  2293. # Broken: success on invalid input.
  2294. continue
  2295. else
  2296. $as_echo "$as_me: failed program was:" >&5
  2297. sed 's/^/| /' conftest.$ac_ext >&5
  2298. # Passes both tests.
  2299. ac_preproc_ok=:
  2300. break
  2301. fi
  2302. rm -f conftest.err conftest.$ac_ext
  2303. done
  2304. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2305. rm -f conftest.err conftest.$ac_ext
  2306. if $ac_preproc_ok; then
  2307. break
  2308. fi
  2309. done
  2310. ac_cv_prog_CXXCPP=$CXXCPP
  2311. fi
  2312. CXXCPP=$ac_cv_prog_CXXCPP
  2313. else
  2314. ac_cv_prog_CXXCPP=$CXXCPP
  2315. fi
  2316. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2317. $as_echo "$CXXCPP" >&6; }
  2318. ac_preproc_ok=false
  2319. for ac_cxx_preproc_warn_flag in '' yes
  2320. do
  2321. # Use a header file that comes with gcc, so configuring glibc
  2322. # with a fresh cross-compiler works.
  2323. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2324. # <limits.h> exists even on freestanding compilers.
  2325. # On the NeXT, cc -E runs the code through the compiler's parser,
  2326. # not just through cpp. "Syntax error" is here to catch this case.
  2327. cat >conftest.$ac_ext <<_ACEOF
  2328. /* confdefs.h. */
  2329. _ACEOF
  2330. cat confdefs.h >>conftest.$ac_ext
  2331. cat >>conftest.$ac_ext <<_ACEOF
  2332. /* end confdefs.h. */
  2333. #ifdef __STDC__
  2334. # include <limits.h>
  2335. #else
  2336. # include <assert.h>
  2337. #endif
  2338. Syntax error
  2339. _ACEOF
  2340. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2341. case "(($ac_try" in
  2342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2343. *) ac_try_echo=$ac_try;;
  2344. esac
  2345. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2346. $as_echo "$ac_try_echo") >&5
  2347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2348. ac_status=$?
  2349. grep -v '^ *+' conftest.er1 >conftest.err
  2350. rm -f conftest.er1
  2351. cat conftest.err >&5
  2352. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. (exit $ac_status); } >/dev/null && {
  2354. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2355. test ! -s conftest.err
  2356. }; then
  2357. :
  2358. else
  2359. $as_echo "$as_me: failed program was:" >&5
  2360. sed 's/^/| /' conftest.$ac_ext >&5
  2361. # Broken: fails on valid input.
  2362. continue
  2363. fi
  2364. rm -f conftest.err conftest.$ac_ext
  2365. # OK, works on sane cases. Now check whether nonexistent headers
  2366. # can be detected and how.
  2367. cat >conftest.$ac_ext <<_ACEOF
  2368. /* confdefs.h. */
  2369. _ACEOF
  2370. cat confdefs.h >>conftest.$ac_ext
  2371. cat >>conftest.$ac_ext <<_ACEOF
  2372. /* end confdefs.h. */
  2373. #include <ac_nonexistent.h>
  2374. _ACEOF
  2375. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2376. case "(($ac_try" in
  2377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2378. *) ac_try_echo=$ac_try;;
  2379. esac
  2380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2381. $as_echo "$ac_try_echo") >&5
  2382. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2383. ac_status=$?
  2384. grep -v '^ *+' conftest.er1 >conftest.err
  2385. rm -f conftest.er1
  2386. cat conftest.err >&5
  2387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2388. (exit $ac_status); } >/dev/null && {
  2389. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2390. test ! -s conftest.err
  2391. }; then
  2392. # Broken: success on invalid input.
  2393. continue
  2394. else
  2395. $as_echo "$as_me: failed program was:" >&5
  2396. sed 's/^/| /' conftest.$ac_ext >&5
  2397. # Passes both tests.
  2398. ac_preproc_ok=:
  2399. break
  2400. fi
  2401. rm -f conftest.err conftest.$ac_ext
  2402. done
  2403. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2404. rm -f conftest.err conftest.$ac_ext
  2405. if $ac_preproc_ok; then
  2406. :
  2407. else
  2408. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2409. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2410. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2411. See \`config.log' for more details." >&5
  2412. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2413. See \`config.log' for more details." >&2;}
  2414. { (exit 1); exit 1; }; }; }
  2415. fi
  2416. ac_ext=cpp
  2417. ac_cpp='$CXXCPP $CPPFLAGS'
  2418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2421. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2422. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2423. if test "${ac_cv_path_GREP+set}" = set; then
  2424. $as_echo_n "(cached) " >&6
  2425. else
  2426. if test -z "$GREP"; then
  2427. ac_path_GREP_found=false
  2428. # Loop through the user's path and test for each of PROGNAME-LIST
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_prog in grep ggrep; do
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2437. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2438. # Check for GNU ac_path_GREP and select it if it is found.
  2439. # Check for GNU $ac_path_GREP
  2440. case `"$ac_path_GREP" --version 2>&1` in
  2441. *GNU*)
  2442. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2443. *)
  2444. ac_count=0
  2445. $as_echo_n 0123456789 >"conftest.in"
  2446. while :
  2447. do
  2448. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2449. mv "conftest.tmp" "conftest.in"
  2450. cp "conftest.in" "conftest.nl"
  2451. $as_echo 'GREP' >> "conftest.nl"
  2452. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2453. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2454. ac_count=`expr $ac_count + 1`
  2455. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2456. # Best one so far, save it but keep looking for a better one
  2457. ac_cv_path_GREP="$ac_path_GREP"
  2458. ac_path_GREP_max=$ac_count
  2459. fi
  2460. # 10*(2^10) chars as input seems more than enough
  2461. test $ac_count -gt 10 && break
  2462. done
  2463. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2464. esac
  2465. $ac_path_GREP_found && break 3
  2466. done
  2467. done
  2468. done
  2469. IFS=$as_save_IFS
  2470. if test -z "$ac_cv_path_GREP"; then
  2471. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2472. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2473. { (exit 1); exit 1; }; }
  2474. fi
  2475. else
  2476. ac_cv_path_GREP=$GREP
  2477. fi
  2478. fi
  2479. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2480. $as_echo "$ac_cv_path_GREP" >&6; }
  2481. GREP="$ac_cv_path_GREP"
  2482. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2483. $as_echo_n "checking for egrep... " >&6; }
  2484. if test "${ac_cv_path_EGREP+set}" = set; then
  2485. $as_echo_n "(cached) " >&6
  2486. else
  2487. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2488. then ac_cv_path_EGREP="$GREP -E"
  2489. else
  2490. if test -z "$EGREP"; then
  2491. ac_path_EGREP_found=false
  2492. # Loop through the user's path and test for each of PROGNAME-LIST
  2493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2494. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2495. do
  2496. IFS=$as_save_IFS
  2497. test -z "$as_dir" && as_dir=.
  2498. for ac_prog in egrep; do
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2501. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2502. # Check for GNU ac_path_EGREP and select it if it is found.
  2503. # Check for GNU $ac_path_EGREP
  2504. case `"$ac_path_EGREP" --version 2>&1` in
  2505. *GNU*)
  2506. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2507. *)
  2508. ac_count=0
  2509. $as_echo_n 0123456789 >"conftest.in"
  2510. while :
  2511. do
  2512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2513. mv "conftest.tmp" "conftest.in"
  2514. cp "conftest.in" "conftest.nl"
  2515. $as_echo 'EGREP' >> "conftest.nl"
  2516. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2518. ac_count=`expr $ac_count + 1`
  2519. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2520. # Best one so far, save it but keep looking for a better one
  2521. ac_cv_path_EGREP="$ac_path_EGREP"
  2522. ac_path_EGREP_max=$ac_count
  2523. fi
  2524. # 10*(2^10) chars as input seems more than enough
  2525. test $ac_count -gt 10 && break
  2526. done
  2527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2528. esac
  2529. $ac_path_EGREP_found && break 3
  2530. done
  2531. done
  2532. done
  2533. IFS=$as_save_IFS
  2534. if test -z "$ac_cv_path_EGREP"; then
  2535. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2536. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2537. { (exit 1); exit 1; }; }
  2538. fi
  2539. else
  2540. ac_cv_path_EGREP=$EGREP
  2541. fi
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2545. $as_echo "$ac_cv_path_EGREP" >&6; }
  2546. EGREP="$ac_cv_path_EGREP"
  2547. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2548. $as_echo_n "checking for ANSI C header files... " >&6; }
  2549. if test "${ac_cv_header_stdc+set}" = set; then
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. cat >conftest.$ac_ext <<_ACEOF
  2553. /* confdefs.h. */
  2554. _ACEOF
  2555. cat confdefs.h >>conftest.$ac_ext
  2556. cat >>conftest.$ac_ext <<_ACEOF
  2557. /* end confdefs.h. */
  2558. #include <stdlib.h>
  2559. #include <stdarg.h>
  2560. #include <string.h>
  2561. #include <float.h>
  2562. int
  2563. main ()
  2564. {
  2565. ;
  2566. return 0;
  2567. }
  2568. _ACEOF
  2569. rm -f conftest.$ac_objext
  2570. if { (ac_try="$ac_compile"
  2571. case "(($ac_try" in
  2572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2573. *) ac_try_echo=$ac_try;;
  2574. esac
  2575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2576. $as_echo "$ac_try_echo") >&5
  2577. (eval "$ac_compile") 2>conftest.er1
  2578. ac_status=$?
  2579. grep -v '^ *+' conftest.er1 >conftest.err
  2580. rm -f conftest.er1
  2581. cat conftest.err >&5
  2582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2583. (exit $ac_status); } && {
  2584. test -z "$ac_cxx_werror_flag" ||
  2585. test ! -s conftest.err
  2586. } && test -s conftest.$ac_objext; then
  2587. ac_cv_header_stdc=yes
  2588. else
  2589. $as_echo "$as_me: failed program was:" >&5
  2590. sed 's/^/| /' conftest.$ac_ext >&5
  2591. ac_cv_header_stdc=no
  2592. fi
  2593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2594. if test $ac_cv_header_stdc = yes; then
  2595. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2596. cat >conftest.$ac_ext <<_ACEOF
  2597. /* confdefs.h. */
  2598. _ACEOF
  2599. cat confdefs.h >>conftest.$ac_ext
  2600. cat >>conftest.$ac_ext <<_ACEOF
  2601. /* end confdefs.h. */
  2602. #include <string.h>
  2603. _ACEOF
  2604. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2605. $EGREP "memchr" >/dev/null 2>&1; then
  2606. :
  2607. else
  2608. ac_cv_header_stdc=no
  2609. fi
  2610. rm -f conftest*
  2611. fi
  2612. if test $ac_cv_header_stdc = yes; then
  2613. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2614. cat >conftest.$ac_ext <<_ACEOF
  2615. /* confdefs.h. */
  2616. _ACEOF
  2617. cat confdefs.h >>conftest.$ac_ext
  2618. cat >>conftest.$ac_ext <<_ACEOF
  2619. /* end confdefs.h. */
  2620. #include <stdlib.h>
  2621. _ACEOF
  2622. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2623. $EGREP "free" >/dev/null 2>&1; then
  2624. :
  2625. else
  2626. ac_cv_header_stdc=no
  2627. fi
  2628. rm -f conftest*
  2629. fi
  2630. if test $ac_cv_header_stdc = yes; then
  2631. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2632. if test "$cross_compiling" = yes; then
  2633. :
  2634. else
  2635. cat >conftest.$ac_ext <<_ACEOF
  2636. /* confdefs.h. */
  2637. _ACEOF
  2638. cat confdefs.h >>conftest.$ac_ext
  2639. cat >>conftest.$ac_ext <<_ACEOF
  2640. /* end confdefs.h. */
  2641. #include <ctype.h>
  2642. #include <stdlib.h>
  2643. #if ((' ' & 0x0FF) == 0x020)
  2644. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2645. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2646. #else
  2647. # define ISLOWER(c) \
  2648. (('a' <= (c) && (c) <= 'i') \
  2649. || ('j' <= (c) && (c) <= 'r') \
  2650. || ('s' <= (c) && (c) <= 'z'))
  2651. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2652. #endif
  2653. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2654. int
  2655. main ()
  2656. {
  2657. int i;
  2658. for (i = 0; i < 256; i++)
  2659. if (XOR (islower (i), ISLOWER (i))
  2660. || toupper (i) != TOUPPER (i))
  2661. return 2;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. rm -f conftest$ac_exeext
  2666. if { (ac_try="$ac_link"
  2667. case "(($ac_try" in
  2668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669. *) ac_try_echo=$ac_try;;
  2670. esac
  2671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2672. $as_echo "$ac_try_echo") >&5
  2673. (eval "$ac_link") 2>&5
  2674. ac_status=$?
  2675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2677. { (case "(($ac_try" in
  2678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679. *) ac_try_echo=$ac_try;;
  2680. esac
  2681. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2682. $as_echo "$ac_try_echo") >&5
  2683. (eval "$ac_try") 2>&5
  2684. ac_status=$?
  2685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); }; }; then
  2687. :
  2688. else
  2689. $as_echo "$as_me: program exited with status $ac_status" >&5
  2690. $as_echo "$as_me: failed program was:" >&5
  2691. sed 's/^/| /' conftest.$ac_ext >&5
  2692. ( exit $ac_status )
  2693. ac_cv_header_stdc=no
  2694. fi
  2695. rm -rf conftest.dSYM
  2696. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2697. fi
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2701. $as_echo "$ac_cv_header_stdc" >&6; }
  2702. if test $ac_cv_header_stdc = yes; then
  2703. cat >>confdefs.h <<\_ACEOF
  2704. #define STDC_HEADERS 1
  2705. _ACEOF
  2706. fi
  2707. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2708. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2709. inttypes.h stdint.h unistd.h
  2710. do
  2711. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2712. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2713. $as_echo_n "checking for $ac_header... " >&6; }
  2714. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. /* confdefs.h. */
  2719. _ACEOF
  2720. cat confdefs.h >>conftest.$ac_ext
  2721. cat >>conftest.$ac_ext <<_ACEOF
  2722. /* end confdefs.h. */
  2723. $ac_includes_default
  2724. #include <$ac_header>
  2725. _ACEOF
  2726. rm -f conftest.$ac_objext
  2727. if { (ac_try="$ac_compile"
  2728. case "(($ac_try" in
  2729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2730. *) ac_try_echo=$ac_try;;
  2731. esac
  2732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2733. $as_echo "$ac_try_echo") >&5
  2734. (eval "$ac_compile") 2>conftest.er1
  2735. ac_status=$?
  2736. grep -v '^ *+' conftest.er1 >conftest.err
  2737. rm -f conftest.er1
  2738. cat conftest.err >&5
  2739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2740. (exit $ac_status); } && {
  2741. test -z "$ac_cxx_werror_flag" ||
  2742. test ! -s conftest.err
  2743. } && test -s conftest.$ac_objext; then
  2744. eval "$as_ac_Header=yes"
  2745. else
  2746. $as_echo "$as_me: failed program was:" >&5
  2747. sed 's/^/| /' conftest.$ac_ext >&5
  2748. eval "$as_ac_Header=no"
  2749. fi
  2750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2751. fi
  2752. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2753. $as_echo "$as_val"'`
  2754. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2755. $as_echo "$ac_res" >&6; }
  2756. as_val=`eval 'as_val=${'$as_ac_Header'}
  2757. $as_echo "$as_val"'`
  2758. if test "x$as_val" = x""yes; then
  2759. cat >>confdefs.h <<_ACEOF
  2760. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2761. _ACEOF
  2762. fi
  2763. done
  2764. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2765. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2766. $as_echo_n "checking for minix/config.h... " >&6; }
  2767. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2768. $as_echo_n "(cached) " >&6
  2769. fi
  2770. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2771. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2772. else
  2773. # Is the header compilable?
  2774. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2775. $as_echo_n "checking minix/config.h usability... " >&6; }
  2776. cat >conftest.$ac_ext <<_ACEOF
  2777. /* confdefs.h. */
  2778. _ACEOF
  2779. cat confdefs.h >>conftest.$ac_ext
  2780. cat >>conftest.$ac_ext <<_ACEOF
  2781. /* end confdefs.h. */
  2782. $ac_includes_default
  2783. #include <minix/config.h>
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (ac_try="$ac_compile"
  2787. case "(($ac_try" in
  2788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2789. *) ac_try_echo=$ac_try;;
  2790. esac
  2791. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2792. $as_echo "$ac_try_echo") >&5
  2793. (eval "$ac_compile") 2>conftest.er1
  2794. ac_status=$?
  2795. grep -v '^ *+' conftest.er1 >conftest.err
  2796. rm -f conftest.er1
  2797. cat conftest.err >&5
  2798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); } && {
  2800. test -z "$ac_cxx_werror_flag" ||
  2801. test ! -s conftest.err
  2802. } && test -s conftest.$ac_objext; then
  2803. ac_header_compiler=yes
  2804. else
  2805. $as_echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. ac_header_compiler=no
  2808. fi
  2809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2810. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2811. $as_echo "$ac_header_compiler" >&6; }
  2812. # Is the header present?
  2813. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2814. $as_echo_n "checking minix/config.h presence... " >&6; }
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. #include <minix/config.h>
  2822. _ACEOF
  2823. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2824. case "(($ac_try" in
  2825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2826. *) ac_try_echo=$ac_try;;
  2827. esac
  2828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2829. $as_echo "$ac_try_echo") >&5
  2830. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2831. ac_status=$?
  2832. grep -v '^ *+' conftest.er1 >conftest.err
  2833. rm -f conftest.er1
  2834. cat conftest.err >&5
  2835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. (exit $ac_status); } >/dev/null && {
  2837. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2838. test ! -s conftest.err
  2839. }; then
  2840. ac_header_preproc=yes
  2841. else
  2842. $as_echo "$as_me: failed program was:" >&5
  2843. sed 's/^/| /' conftest.$ac_ext >&5
  2844. ac_header_preproc=no
  2845. fi
  2846. rm -f conftest.err conftest.$ac_ext
  2847. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2848. $as_echo "$ac_header_preproc" >&6; }
  2849. # So? What about this header?
  2850. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2851. yes:no: )
  2852. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2853. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2854. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2855. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2856. ac_header_preproc=yes
  2857. ;;
  2858. no:yes:* )
  2859. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2860. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2861. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2862. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2863. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2864. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2865. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2866. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2867. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2868. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2869. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2870. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2871. ;;
  2872. esac
  2873. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2874. $as_echo_n "checking for minix/config.h... " >&6; }
  2875. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. ac_cv_header_minix_config_h=$ac_header_preproc
  2879. fi
  2880. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2881. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2882. fi
  2883. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  2884. MINIX=yes
  2885. else
  2886. MINIX=
  2887. fi
  2888. if test "$MINIX" = yes; then
  2889. cat >>confdefs.h <<\_ACEOF
  2890. #define _POSIX_SOURCE 1
  2891. _ACEOF
  2892. cat >>confdefs.h <<\_ACEOF
  2893. #define _POSIX_1_SOURCE 2
  2894. _ACEOF
  2895. cat >>confdefs.h <<\_ACEOF
  2896. #define _MINIX 1
  2897. _ACEOF
  2898. fi
  2899. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  2900. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  2901. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. cat >conftest.$ac_ext <<_ACEOF
  2905. /* confdefs.h. */
  2906. _ACEOF
  2907. cat confdefs.h >>conftest.$ac_ext
  2908. cat >>conftest.$ac_ext <<_ACEOF
  2909. /* end confdefs.h. */
  2910. # define __EXTENSIONS__ 1
  2911. $ac_includes_default
  2912. int
  2913. main ()
  2914. {
  2915. ;
  2916. return 0;
  2917. }
  2918. _ACEOF
  2919. rm -f conftest.$ac_objext
  2920. if { (ac_try="$ac_compile"
  2921. case "(($ac_try" in
  2922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2923. *) ac_try_echo=$ac_try;;
  2924. esac
  2925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2926. $as_echo "$ac_try_echo") >&5
  2927. (eval "$ac_compile") 2>conftest.er1
  2928. ac_status=$?
  2929. grep -v '^ *+' conftest.er1 >conftest.err
  2930. rm -f conftest.er1
  2931. cat conftest.err >&5
  2932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2933. (exit $ac_status); } && {
  2934. test -z "$ac_cxx_werror_flag" ||
  2935. test ! -s conftest.err
  2936. } && test -s conftest.$ac_objext; then
  2937. ac_cv_safe_to_define___extensions__=yes
  2938. else
  2939. $as_echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. ac_cv_safe_to_define___extensions__=no
  2942. fi
  2943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2944. fi
  2945. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  2946. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  2947. test $ac_cv_safe_to_define___extensions__ = yes &&
  2948. cat >>confdefs.h <<\_ACEOF
  2949. #define __EXTENSIONS__ 1
  2950. _ACEOF
  2951. cat >>confdefs.h <<\_ACEOF
  2952. #define _ALL_SOURCE 1
  2953. _ACEOF
  2954. cat >>confdefs.h <<\_ACEOF
  2955. #define _GNU_SOURCE 1
  2956. _ACEOF
  2957. cat >>confdefs.h <<\_ACEOF
  2958. #define _POSIX_PTHREAD_SEMANTICS 1
  2959. _ACEOF
  2960. cat >>confdefs.h <<\_ACEOF
  2961. #define _TANDEM_SOURCE 1
  2962. _ACEOF
  2963. { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2964. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  2965. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2966. $as_echo_n "(cached) " >&6
  2967. else
  2968. ac_check_lib_save_LIBS=$LIBS
  2969. LIBS="-lcposix $LIBS"
  2970. cat >conftest.$ac_ext <<_ACEOF
  2971. /* confdefs.h. */
  2972. _ACEOF
  2973. cat confdefs.h >>conftest.$ac_ext
  2974. cat >>conftest.$ac_ext <<_ACEOF
  2975. /* end confdefs.h. */
  2976. /* Override any GCC internal prototype to avoid an error.
  2977. Use char because int might match the return type of a GCC
  2978. builtin and then its argument prototype would still apply. */
  2979. #ifdef __cplusplus
  2980. extern "C"
  2981. #endif
  2982. char strerror ();
  2983. int
  2984. main ()
  2985. {
  2986. return strerror ();
  2987. ;
  2988. return 0;
  2989. }
  2990. _ACEOF
  2991. rm -f conftest.$ac_objext conftest$ac_exeext
  2992. if { (ac_try="$ac_link"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2998. $as_echo "$ac_try_echo") >&5
  2999. (eval "$ac_link") 2>conftest.er1
  3000. ac_status=$?
  3001. grep -v '^ *+' conftest.er1 >conftest.err
  3002. rm -f conftest.er1
  3003. cat conftest.err >&5
  3004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3005. (exit $ac_status); } && {
  3006. test -z "$ac_cxx_werror_flag" ||
  3007. test ! -s conftest.err
  3008. } && test -s conftest$ac_exeext && {
  3009. test "$cross_compiling" = yes ||
  3010. $as_test_x conftest$ac_exeext
  3011. }; then
  3012. ac_cv_lib_cposix_strerror=yes
  3013. else
  3014. $as_echo "$as_me: failed program was:" >&5
  3015. sed 's/^/| /' conftest.$ac_ext >&5
  3016. ac_cv_lib_cposix_strerror=no
  3017. fi
  3018. rm -rf conftest.dSYM
  3019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3020. conftest$ac_exeext conftest.$ac_ext
  3021. LIBS=$ac_check_lib_save_LIBS
  3022. fi
  3023. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3024. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3025. if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3026. LIBS="$LIBS -lcposix"
  3027. fi
  3028. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3029. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3030. $as_echo_n "checking for minix/config.h... " >&6; }
  3031. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3032. $as_echo_n "(cached) " >&6
  3033. fi
  3034. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3035. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3036. else
  3037. # Is the header compilable?
  3038. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3039. $as_echo_n "checking minix/config.h usability... " >&6; }
  3040. cat >conftest.$ac_ext <<_ACEOF
  3041. /* confdefs.h. */
  3042. _ACEOF
  3043. cat confdefs.h >>conftest.$ac_ext
  3044. cat >>conftest.$ac_ext <<_ACEOF
  3045. /* end confdefs.h. */
  3046. $ac_includes_default
  3047. #include <minix/config.h>
  3048. _ACEOF
  3049. rm -f conftest.$ac_objext
  3050. if { (ac_try="$ac_compile"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo") >&5
  3057. (eval "$ac_compile") 2>conftest.er1
  3058. ac_status=$?
  3059. grep -v '^ *+' conftest.er1 >conftest.err
  3060. rm -f conftest.er1
  3061. cat conftest.err >&5
  3062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3063. (exit $ac_status); } && {
  3064. test -z "$ac_cxx_werror_flag" ||
  3065. test ! -s conftest.err
  3066. } && test -s conftest.$ac_objext; then
  3067. ac_header_compiler=yes
  3068. else
  3069. $as_echo "$as_me: failed program was:" >&5
  3070. sed 's/^/| /' conftest.$ac_ext >&5
  3071. ac_header_compiler=no
  3072. fi
  3073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3074. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3075. $as_echo "$ac_header_compiler" >&6; }
  3076. # Is the header present?
  3077. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3078. $as_echo_n "checking minix/config.h presence... " >&6; }
  3079. cat >conftest.$ac_ext <<_ACEOF
  3080. /* confdefs.h. */
  3081. _ACEOF
  3082. cat confdefs.h >>conftest.$ac_ext
  3083. cat >>conftest.$ac_ext <<_ACEOF
  3084. /* end confdefs.h. */
  3085. #include <minix/config.h>
  3086. _ACEOF
  3087. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo") >&5
  3094. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3095. ac_status=$?
  3096. grep -v '^ *+' conftest.er1 >conftest.err
  3097. rm -f conftest.er1
  3098. cat conftest.err >&5
  3099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3100. (exit $ac_status); } >/dev/null && {
  3101. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3102. test ! -s conftest.err
  3103. }; then
  3104. ac_header_preproc=yes
  3105. else
  3106. $as_echo "$as_me: failed program was:" >&5
  3107. sed 's/^/| /' conftest.$ac_ext >&5
  3108. ac_header_preproc=no
  3109. fi
  3110. rm -f conftest.err conftest.$ac_ext
  3111. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3112. $as_echo "$ac_header_preproc" >&6; }
  3113. # So? What about this header?
  3114. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  3115. yes:no: )
  3116. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3117. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3118. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3119. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3120. ac_header_preproc=yes
  3121. ;;
  3122. no:yes:* )
  3123. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3124. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3125. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3126. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3127. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3128. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3129. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3130. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3131. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3132. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3133. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3134. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3135. ;;
  3136. esac
  3137. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3138. $as_echo_n "checking for minix/config.h... " >&6; }
  3139. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. ac_cv_header_minix_config_h=$ac_header_preproc
  3143. fi
  3144. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3145. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3146. fi
  3147. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3148. MINIX=yes
  3149. else
  3150. MINIX=
  3151. fi
  3152. if test "$MINIX" = yes; then
  3153. cat >>confdefs.h <<\_ACEOF
  3154. #define _POSIX_SOURCE 1
  3155. _ACEOF
  3156. cat >>confdefs.h <<\_ACEOF
  3157. #define _POSIX_1_SOURCE 2
  3158. _ACEOF
  3159. cat >>confdefs.h <<\_ACEOF
  3160. #define _MINIX 1
  3161. _ACEOF
  3162. fi
  3163. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3164. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3165. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. cat >conftest.$ac_ext <<_ACEOF
  3169. /* confdefs.h. */
  3170. _ACEOF
  3171. cat confdefs.h >>conftest.$ac_ext
  3172. cat >>conftest.$ac_ext <<_ACEOF
  3173. /* end confdefs.h. */
  3174. # define __EXTENSIONS__ 1
  3175. $ac_includes_default
  3176. int
  3177. main ()
  3178. {
  3179. ;
  3180. return 0;
  3181. }
  3182. _ACEOF
  3183. rm -f conftest.$ac_objext
  3184. if { (ac_try="$ac_compile"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo") >&5
  3191. (eval "$ac_compile") 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } && {
  3198. test -z "$ac_cxx_werror_flag" ||
  3199. test ! -s conftest.err
  3200. } && test -s conftest.$ac_objext; then
  3201. ac_cv_safe_to_define___extensions__=yes
  3202. else
  3203. $as_echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. ac_cv_safe_to_define___extensions__=no
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. fi
  3209. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3210. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3211. test $ac_cv_safe_to_define___extensions__ = yes &&
  3212. cat >>confdefs.h <<\_ACEOF
  3213. #define __EXTENSIONS__ 1
  3214. _ACEOF
  3215. cat >>confdefs.h <<\_ACEOF
  3216. #define _ALL_SOURCE 1
  3217. _ACEOF
  3218. cat >>confdefs.h <<\_ACEOF
  3219. #define _GNU_SOURCE 1
  3220. _ACEOF
  3221. cat >>confdefs.h <<\_ACEOF
  3222. #define _POSIX_PTHREAD_SEMANTICS 1
  3223. _ACEOF
  3224. cat >>confdefs.h <<\_ACEOF
  3225. #define _TANDEM_SOURCE 1
  3226. _ACEOF
  3227. #checkpoint
  3228. cat >confcache <<\_ACEOF
  3229. # This file is a shell script that caches the results of configure
  3230. # tests run on this system so they can be shared between configure
  3231. # scripts and configure runs, see configure's option --config-cache.
  3232. # It is not useful on other systems. If it contains results you don't
  3233. # want to keep, you may remove or edit it.
  3234. #
  3235. # config.status only pays attention to the cache file if you give it
  3236. # the --recheck option to rerun configure.
  3237. #
  3238. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3239. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3240. # following values.
  3241. _ACEOF
  3242. # The following way of writing the cache mishandles newlines in values,
  3243. # but we know of no workaround that is simple, portable, and efficient.
  3244. # So, we kill variables containing newlines.
  3245. # Ultrix sh set writes to stderr and can't be redirected directly,
  3246. # and sets the high bit in the cache file unless we assign to the vars.
  3247. (
  3248. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3249. eval ac_val=\$$ac_var
  3250. case $ac_val in #(
  3251. *${as_nl}*)
  3252. case $ac_var in #(
  3253. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3254. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3255. esac
  3256. case $ac_var in #(
  3257. _ | IFS | as_nl) ;; #(
  3258. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3259. *) $as_unset $ac_var ;;
  3260. esac ;;
  3261. esac
  3262. done
  3263. (set) 2>&1 |
  3264. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3265. *${as_nl}ac_space=\ *)
  3266. # `set' does not quote correctly, so add quotes (double-quote
  3267. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3268. sed -n \
  3269. "s/'/'\\\\''/g;
  3270. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3271. ;; #(
  3272. *)
  3273. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3274. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3275. ;;
  3276. esac |
  3277. sort
  3278. ) |
  3279. sed '
  3280. /^ac_cv_env_/b end
  3281. t clear
  3282. :clear
  3283. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3284. t end
  3285. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3286. :end' >>confcache
  3287. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3288. if test -w "$cache_file"; then
  3289. test "x$cache_file" != "x/dev/null" &&
  3290. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3291. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3292. cat confcache >$cache_file
  3293. else
  3294. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3295. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3296. fi
  3297. fi
  3298. rm -f confcache
  3299. # Speedup compile
  3300. if test -n "$GXX" && test -z "$no_wall"; then
  3301. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3302. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3303. if test "${egg_cv_var_ccwall+set}" = set; then
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. ac_old_CXXFLAGS="$CXXFLAGS"
  3307. CXXFLAGS="$CXXFLAGS -Wall"
  3308. cat >conftest.$ac_ext <<_ACEOF
  3309. int main ()
  3310. {
  3311. return(0);
  3312. }
  3313. _ACEOF
  3314. rm -f conftest.$ac_objext
  3315. if { (ac_try="$ac_compile"
  3316. case "(($ac_try" in
  3317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3318. *) ac_try_echo=$ac_try;;
  3319. esac
  3320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3321. $as_echo "$ac_try_echo") >&5
  3322. (eval "$ac_compile") 2>conftest.er1
  3323. ac_status=$?
  3324. grep -v '^ *+' conftest.er1 >conftest.err
  3325. rm -f conftest.er1
  3326. cat conftest.err >&5
  3327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); } && {
  3329. test -z "$ac_cxx_werror_flag" ||
  3330. test ! -s conftest.err
  3331. } && test -s conftest.$ac_objext; then
  3332. egg_cv_var_ccwall="yes"
  3333. else
  3334. $as_echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. egg_cv_var_ccwall="no"
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. CXXFLAGS="$ac_old_CXXFLAGS"
  3340. fi
  3341. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3342. $as_echo "$egg_cv_var_ccwall" >&6; }
  3343. if test "$egg_cv_var_ccwall" = "yes"; then
  3344. CXXFLAGS="$CXXFLAGS -Wall"
  3345. fi
  3346. fi
  3347. if test -n "$GXX" && test -z "$no_pipe"; then
  3348. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3349. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3350. if test "${egg_cv_var_ccpipe+set}" = set; then
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. ac_old_CXX="$CXX"
  3354. CXX="$CXX -pipe"
  3355. cat >conftest.$ac_ext <<_ACEOF
  3356. int main ()
  3357. {
  3358. return(0);
  3359. }
  3360. _ACEOF
  3361. rm -f conftest.$ac_objext
  3362. if { (ac_try="$ac_compile"
  3363. case "(($ac_try" in
  3364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. *) ac_try_echo=$ac_try;;
  3366. esac
  3367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3368. $as_echo "$ac_try_echo") >&5
  3369. (eval "$ac_compile") 2>conftest.er1
  3370. ac_status=$?
  3371. grep -v '^ *+' conftest.er1 >conftest.err
  3372. rm -f conftest.er1
  3373. cat conftest.err >&5
  3374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3375. (exit $ac_status); } && {
  3376. test -z "$ac_cxx_werror_flag" ||
  3377. test ! -s conftest.err
  3378. } && test -s conftest.$ac_objext; then
  3379. egg_cv_var_ccpipe="yes"
  3380. else
  3381. $as_echo "$as_me: failed program was:" >&5
  3382. sed 's/^/| /' conftest.$ac_ext >&5
  3383. egg_cv_var_ccpipe="no"
  3384. fi
  3385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3386. CXX="$ac_old_CXX"
  3387. fi
  3388. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3389. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3390. if test "$egg_cv_var_ccpipe" = "yes"; then
  3391. CXX="$CXX -pipe"
  3392. fi
  3393. fi
  3394. CCDEPMODE=gcc
  3395. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3396. if test $num -ge "3"; then
  3397. CCDEPMODE=gcc3
  3398. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3399. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3400. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3401. fi
  3402. if test $num -ge "4"; then
  3403. GCC4DEB="-fstack-protector-all"
  3404. fi
  3405. #checkpoint
  3406. cat >confcache <<\_ACEOF
  3407. # This file is a shell script that caches the results of configure
  3408. # tests run on this system so they can be shared between configure
  3409. # scripts and configure runs, see configure's option --config-cache.
  3410. # It is not useful on other systems. If it contains results you don't
  3411. # want to keep, you may remove or edit it.
  3412. #
  3413. # config.status only pays attention to the cache file if you give it
  3414. # the --recheck option to rerun configure.
  3415. #
  3416. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3417. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3418. # following values.
  3419. _ACEOF
  3420. # The following way of writing the cache mishandles newlines in values,
  3421. # but we know of no workaround that is simple, portable, and efficient.
  3422. # So, we kill variables containing newlines.
  3423. # Ultrix sh set writes to stderr and can't be redirected directly,
  3424. # and sets the high bit in the cache file unless we assign to the vars.
  3425. (
  3426. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3427. eval ac_val=\$$ac_var
  3428. case $ac_val in #(
  3429. *${as_nl}*)
  3430. case $ac_var in #(
  3431. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3432. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3433. esac
  3434. case $ac_var in #(
  3435. _ | IFS | as_nl) ;; #(
  3436. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3437. *) $as_unset $ac_var ;;
  3438. esac ;;
  3439. esac
  3440. done
  3441. (set) 2>&1 |
  3442. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3443. *${as_nl}ac_space=\ *)
  3444. # `set' does not quote correctly, so add quotes (double-quote
  3445. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3446. sed -n \
  3447. "s/'/'\\\\''/g;
  3448. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3449. ;; #(
  3450. *)
  3451. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3452. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3453. ;;
  3454. esac |
  3455. sort
  3456. ) |
  3457. sed '
  3458. /^ac_cv_env_/b end
  3459. t clear
  3460. :clear
  3461. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3462. t end
  3463. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3464. :end' >>confcache
  3465. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3466. if test -w "$cache_file"; then
  3467. test "x$cache_file" != "x/dev/null" &&
  3468. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3469. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3470. cat confcache >$cache_file
  3471. else
  3472. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3473. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3474. fi
  3475. fi
  3476. rm -f confcache
  3477. # Checks for programs
  3478. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3479. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3480. set x ${MAKE-make}
  3481. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3482. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3483. $as_echo_n "(cached) " >&6
  3484. else
  3485. cat >conftest.make <<\_ACEOF
  3486. SHELL = /bin/sh
  3487. all:
  3488. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3489. _ACEOF
  3490. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3491. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3492. *@@@%%%=?*=@@@%%%*)
  3493. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3494. *)
  3495. eval ac_cv_prog_make_${ac_make}_set=no;;
  3496. esac
  3497. rm -f conftest.make
  3498. fi
  3499. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3500. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3501. $as_echo "yes" >&6; }
  3502. SET_MAKE=
  3503. else
  3504. { $as_echo "$as_me:$LINENO: result: no" >&5
  3505. $as_echo "no" >&6; }
  3506. SET_MAKE="MAKE=${MAKE-make}"
  3507. fi
  3508. cat << 'EOF' > conftest.head
  3509. a
  3510. b
  3511. c
  3512. EOF
  3513. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3514. do
  3515. { $as_echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3516. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3517. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -n "$HEAD_1"
  3521. then
  3522. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3523. else
  3524. if test "`cat conftest.head | $ac_prog`" = "a";
  3525. then
  3526. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3527. $as_echo "yes" >&6; }
  3528. ac_cv_prog_HEAD_1=$ac_prog
  3529. else
  3530. { $as_echo "$as_me:$LINENO: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. fi
  3533. fi
  3534. fi
  3535. test -n "$ac_cv_prog_HEAD_1" && break
  3536. done
  3537. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3538. then
  3539. cat << 'EOF' >&2
  3540. configure: error:
  3541. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3542. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3543. EOF
  3544. exit 1
  3545. fi
  3546. rm -f conftest.head
  3547. HEAD_1=$ac_cv_prog_HEAD_1
  3548. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3549. for ac_prog in gawk mawk nawk awk
  3550. do
  3551. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3552. set dummy $ac_prog; ac_word=$2
  3553. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3554. $as_echo_n "checking for $ac_word... " >&6; }
  3555. if test "${ac_cv_prog_AWK+set}" = set; then
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. if test -n "$AWK"; then
  3559. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_exec_ext in '' $ac_executable_extensions; do
  3567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3568. ac_cv_prog_AWK="$ac_prog"
  3569. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3570. break 2
  3571. fi
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. fi
  3576. fi
  3577. AWK=$ac_cv_prog_AWK
  3578. if test -n "$AWK"; then
  3579. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  3580. $as_echo "$AWK" >&6; }
  3581. else
  3582. { $as_echo "$as_me:$LINENO: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. test -n "$AWK" && break
  3586. done
  3587. if test "${AWK-x}" = "x"
  3588. then
  3589. cat << 'EOF' >&2
  3590. configure: error:
  3591. This system seems to lack a working 'awk' command.
  3592. A working 'awk' command is required to compile Eggdrop.
  3593. EOF
  3594. exit 1
  3595. fi
  3596. # basename is needed for Tcl library and header checks
  3597. # Extract the first word of "basename", so it can be a program name with args.
  3598. set dummy basename; ac_word=$2
  3599. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3600. $as_echo_n "checking for $ac_word... " >&6; }
  3601. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3602. $as_echo_n "(cached) " >&6
  3603. else
  3604. if test -n "$BASENAME"; then
  3605. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3606. else
  3607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3608. for as_dir in $PATH
  3609. do
  3610. IFS=$as_save_IFS
  3611. test -z "$as_dir" && as_dir=.
  3612. for ac_exec_ext in '' $ac_executable_extensions; do
  3613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3614. ac_cv_prog_BASENAME="basename"
  3615. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3616. break 2
  3617. fi
  3618. done
  3619. done
  3620. IFS=$as_save_IFS
  3621. fi
  3622. fi
  3623. BASENAME=$ac_cv_prog_BASENAME
  3624. if test -n "$BASENAME"; then
  3625. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  3626. $as_echo "$BASENAME" >&6; }
  3627. else
  3628. { $as_echo "$as_me:$LINENO: result: no" >&5
  3629. $as_echo "no" >&6; }
  3630. fi
  3631. if test "${BASENAME-x}" = "x"
  3632. then
  3633. cat << 'EOF' >&2
  3634. configure: error:
  3635. This system seems to lack a working 'basename' command.
  3636. A working 'basename' command is required to compile Eggdrop.
  3637. EOF
  3638. exit 1
  3639. fi
  3640. # Extract the first word of "objcopy", so it can be a program name with args.
  3641. set dummy objcopy; ac_word=$2
  3642. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3643. $as_echo_n "checking for $ac_word... " >&6; }
  3644. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if test -n "$OBJCOPY"; then
  3648. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3649. else
  3650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3651. for as_dir in $PATH
  3652. do
  3653. IFS=$as_save_IFS
  3654. test -z "$as_dir" && as_dir=.
  3655. for ac_exec_ext in '' $ac_executable_extensions; do
  3656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3657. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3658. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3659. break 2
  3660. fi
  3661. done
  3662. done
  3663. IFS=$as_save_IFS
  3664. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3665. fi
  3666. fi
  3667. OBJCOPY=$ac_cv_prog_OBJCOPY
  3668. if test -n "$OBJCOPY"; then
  3669. { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3670. $as_echo "$OBJCOPY" >&6; }
  3671. else
  3672. { $as_echo "$as_me:$LINENO: result: no" >&5
  3673. $as_echo "no" >&6; }
  3674. fi
  3675. # Extract the first word of "strip", so it can be a program name with args.
  3676. set dummy strip; ac_word=$2
  3677. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3678. $as_echo_n "checking for $ac_word... " >&6; }
  3679. if test "${ac_cv_prog_STRIP+set}" = set; then
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if test -n "$STRIP"; then
  3683. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3684. else
  3685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3686. for as_dir in $PATH
  3687. do
  3688. IFS=$as_save_IFS
  3689. test -z "$as_dir" && as_dir=.
  3690. for ac_exec_ext in '' $ac_executable_extensions; do
  3691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3692. ac_cv_prog_STRIP="strip"
  3693. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3694. break 2
  3695. fi
  3696. done
  3697. done
  3698. IFS=$as_save_IFS
  3699. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3700. fi
  3701. fi
  3702. STRIP=$ac_cv_prog_STRIP
  3703. if test -n "$STRIP"; then
  3704. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3705. $as_echo "$STRIP" >&6; }
  3706. else
  3707. { $as_echo "$as_me:$LINENO: result: no" >&5
  3708. $as_echo "no" >&6; }
  3709. fi
  3710. # Extract the first word of "gdiff", so it can be a program name with args.
  3711. set dummy gdiff; ac_word=$2
  3712. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3713. $as_echo_n "checking for $ac_word... " >&6; }
  3714. if test "${ac_cv_prog_DIFF+set}" = set; then
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. if test -n "$DIFF"; then
  3718. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. test -z "$as_dir" && as_dir=.
  3725. for ac_exec_ext in '' $ac_executable_extensions; do
  3726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3727. ac_cv_prog_DIFF="gdiff"
  3728. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3729. break 2
  3730. fi
  3731. done
  3732. done
  3733. IFS=$as_save_IFS
  3734. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3735. fi
  3736. fi
  3737. DIFF=$ac_cv_prog_DIFF
  3738. if test -n "$DIFF"; then
  3739. { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
  3740. $as_echo "$DIFF" >&6; }
  3741. else
  3742. { $as_echo "$as_me:$LINENO: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. # Extract the first word of "uname", so it can be a program name with args.
  3746. set dummy uname; ac_word=$2
  3747. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3748. $as_echo_n "checking for $ac_word... " >&6; }
  3749. if test "${ac_cv_prog_UNAME+set}" = set; then
  3750. $as_echo_n "(cached) " >&6
  3751. else
  3752. if test -n "$UNAME"; then
  3753. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3754. else
  3755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3756. for as_dir in $PATH
  3757. do
  3758. IFS=$as_save_IFS
  3759. test -z "$as_dir" && as_dir=.
  3760. for ac_exec_ext in '' $ac_executable_extensions; do
  3761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3762. ac_cv_prog_UNAME="uname"
  3763. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3764. break 2
  3765. fi
  3766. done
  3767. done
  3768. IFS=$as_save_IFS
  3769. fi
  3770. fi
  3771. UNAME=$ac_cv_prog_UNAME
  3772. if test -n "$UNAME"; then
  3773. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3774. $as_echo "$UNAME" >&6; }
  3775. else
  3776. { $as_echo "$as_me:$LINENO: result: no" >&5
  3777. $as_echo "no" >&6; }
  3778. fi
  3779. # Extract the first word of "ccache", so it can be a program name with args.
  3780. set dummy ccache; ac_word=$2
  3781. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3782. $as_echo_n "checking for $ac_word... " >&6; }
  3783. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3784. $as_echo_n "(cached) " >&6
  3785. else
  3786. if test -n "$CCACHE"; then
  3787. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3788. else
  3789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3790. for as_dir in $PATH
  3791. do
  3792. IFS=$as_save_IFS
  3793. test -z "$as_dir" && as_dir=.
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3796. ac_cv_prog_CCACHE="ccache"
  3797. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3798. break 2
  3799. fi
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. fi
  3804. fi
  3805. CCACHE=$ac_cv_prog_CCACHE
  3806. if test -n "$CCACHE"; then
  3807. { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
  3808. $as_echo "$CCACHE" >&6; }
  3809. else
  3810. { $as_echo "$as_me:$LINENO: result: no" >&5
  3811. $as_echo "no" >&6; }
  3812. fi
  3813. # Extract the first word of "distcc", so it can be a program name with args.
  3814. set dummy distcc; ac_word=$2
  3815. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3816. $as_echo_n "checking for $ac_word... " >&6; }
  3817. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$DISTCC"; then
  3821. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3830. ac_cv_prog_DISTCC="distcc"
  3831. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. fi
  3838. fi
  3839. DISTCC=$ac_cv_prog_DISTCC
  3840. if test -n "$DISTCC"; then
  3841. { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
  3842. $as_echo "$DISTCC" >&6; }
  3843. else
  3844. { $as_echo "$as_me:$LINENO: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846. fi
  3847. # Test the os and set the module linking settings
  3848. EGG_CYGWIN=no
  3849. USE_STATIC=yes
  3850. { $as_echo "$as_me:$LINENO: checking system type" >&5
  3851. $as_echo_n "checking system type... " >&6; }
  3852. if test "${egg_cv_var_system_type+set}" = set; then
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. egg_cv_var_system_type=`$UNAME -s`
  3856. fi
  3857. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3858. $as_echo "$egg_cv_var_system_type" >&6; }
  3859. { $as_echo "$as_me:$LINENO: checking system release" >&5
  3860. $as_echo_n "checking system release... " >&6; }
  3861. if test "${egg_cv_var_system_release+set}" = set; then
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. egg_cv_var_system_release=`$UNAME -r`
  3865. fi
  3866. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3867. $as_echo "$egg_cv_var_system_release" >&6; }
  3868. { $as_echo "$as_me:$LINENO: checking system machine" >&5
  3869. $as_echo_n "checking system machine... " >&6; }
  3870. if test "${egg_cv_var_system_machine+set}" = set; then
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. egg_cv_var_system_machine=`$UNAME -m`
  3874. fi
  3875. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3876. $as_echo "$egg_cv_var_system_machine" >&6; }
  3877. BUILDOS="$egg_cv_var_system_type"
  3878. BUILDARCH="$egg_cv_var_system_machine"
  3879. case "$egg_cv_var_system_machine" in
  3880. i*)
  3881. CXX="$CXX -march=i486"
  3882. BUILDARCH="i486"
  3883. ;;
  3884. *)
  3885. ;;
  3886. esac
  3887. case "$egg_cv_var_system_type" in
  3888. BSD/OS)
  3889. ;;
  3890. CYGWI*)
  3891. { $as_echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3892. $as_echo_n "checking how to access the Win32 API... " >&6; }
  3893. WIN32FLAGS=
  3894. cat >conftest.$ac_ext <<_ACEOF
  3895. /* confdefs.h. */
  3896. _ACEOF
  3897. cat confdefs.h >>conftest.$ac_ext
  3898. cat >>conftest.$ac_ext <<_ACEOF
  3899. /* end confdefs.h. */
  3900. int
  3901. main ()
  3902. {
  3903. #ifndef WIN32
  3904. # ifndef _WIN32
  3905. # error WIN32 or _WIN32 not defined
  3906. # endif
  3907. #endif
  3908. ;
  3909. return 0;
  3910. }
  3911. _ACEOF
  3912. rm -f conftest.$ac_objext
  3913. if { (ac_try="$ac_compile"
  3914. case "(($ac_try" in
  3915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3916. *) ac_try_echo=$ac_try;;
  3917. esac
  3918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3919. $as_echo "$ac_try_echo") >&5
  3920. (eval "$ac_compile") 2>conftest.er1
  3921. ac_status=$?
  3922. grep -v '^ *+' conftest.er1 >conftest.err
  3923. rm -f conftest.er1
  3924. cat conftest.err >&5
  3925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3926. (exit $ac_status); } && {
  3927. test -z "$ac_cxx_werror_flag" ||
  3928. test ! -s conftest.err
  3929. } && test -s conftest.$ac_objext; then
  3930. { $as_echo "$as_me:$LINENO: result: present by default" >&5
  3931. $as_echo "present by default" >&6; }
  3932. else
  3933. $as_echo "$as_me: failed program was:" >&5
  3934. sed 's/^/| /' conftest.$ac_ext >&5
  3935. ac_compile_save="$ac_compile"
  3936. save_CXX="$CXX"
  3937. ac_compile="$ac_compile -mwin32"
  3938. CXX="$CXX -mwin32"
  3939. cat >conftest.$ac_ext <<_ACEOF
  3940. /* confdefs.h. */
  3941. _ACEOF
  3942. cat confdefs.h >>conftest.$ac_ext
  3943. cat >>conftest.$ac_ext <<_ACEOF
  3944. /* end confdefs.h. */
  3945. int
  3946. main ()
  3947. {
  3948. #ifndef WIN32
  3949. # ifndef _WIN32
  3950. # error WIN32 or _WIN32 not defined
  3951. # endif
  3952. #endif
  3953. ;
  3954. return 0;
  3955. }
  3956. _ACEOF
  3957. rm -f conftest.$ac_objext
  3958. if { (ac_try="$ac_compile"
  3959. case "(($ac_try" in
  3960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3961. *) ac_try_echo=$ac_try;;
  3962. esac
  3963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3964. $as_echo "$ac_try_echo") >&5
  3965. (eval "$ac_compile") 2>conftest.er1
  3966. ac_status=$?
  3967. grep -v '^ *+' conftest.er1 >conftest.err
  3968. rm -f conftest.er1
  3969. cat conftest.err >&5
  3970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3971. (exit $ac_status); } && {
  3972. test -z "$ac_cxx_werror_flag" ||
  3973. test ! -s conftest.err
  3974. } && test -s conftest.$ac_objext; then
  3975. { $as_echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3976. $as_echo "found via -mwin32" >&6; }
  3977. ac_compile="$ac_compile_save"
  3978. CXX="$save_CXX"
  3979. WIN32FLAGS="-mwin32"
  3980. else
  3981. $as_echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. ac_compile="$ac_compile_save"
  3984. CXX="$save_CXX"
  3985. { $as_echo "$as_me:$LINENO: result: not found" >&5
  3986. $as_echo "not found" >&6; }
  3987. fi
  3988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3989. fi
  3990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3991. CXX="$CXX $WIN32FLAGS"
  3992. EGG_CYGWIN="yes"
  3993. if test $EGG_CYGWIN = "yes"; then
  3994. { $as_echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3995. $as_echo_n "checking for /usr/lib/binmode.o... " >&6; }
  3996. if test -r /usr/lib/binmode.o; then
  3997. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3998. $as_echo "yes" >&6; }
  3999. LIBS="$LIBS /usr/lib/binmode.o"
  4000. else
  4001. { $as_echo "$as_me:$LINENO: result: no" >&5
  4002. $as_echo "no" >&6; }
  4003. { $as_echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  4004. $as_echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  4005. fi
  4006. fi
  4007. cat >>confdefs.h <<\_ACEOF
  4008. #define CYGWIN_HACKS 1
  4009. _ACEOF
  4010. cat >>confdefs.h <<\_ACEOF
  4011. #define WIN32_LEAN_AND_MEAN 1
  4012. _ACEOF
  4013. ;;
  4014. IRIX)
  4015. ;;
  4016. HP-UX)
  4017. cat >>confdefs.h <<\_ACEOF
  4018. #define MD32_XARRAY 1
  4019. _ACEOF
  4020. ;;
  4021. Ultrix)
  4022. SHELL=/bin/sh5
  4023. ;;
  4024. SINIX*)
  4025. ;;
  4026. BeOS)
  4027. ;;
  4028. Linux)
  4029. ;;
  4030. Lynx)
  4031. ;;
  4032. QNX)
  4033. ;;
  4034. OSF1)
  4035. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4036. V*)
  4037. if test "$AWK" = "gawk"
  4038. then
  4039. AWK=awk
  4040. fi
  4041. ;;
  4042. 1.0|1.1|1.2)
  4043. cat >>confdefs.h <<\_ACEOF
  4044. #define OSF1_HACKS 1
  4045. _ACEOF
  4046. ;;
  4047. 1.*)
  4048. cat >>confdefs.h <<\_ACEOF
  4049. #define OSF1_HACKS 1
  4050. _ACEOF
  4051. ;;
  4052. *)
  4053. ;;
  4054. esac
  4055. cat >>confdefs.h <<\_ACEOF
  4056. #define STOP_UAC 1
  4057. _ACEOF
  4058. cat >>confdefs.h <<\_ACEOF
  4059. #define BROKEN_SNPRINTF 1
  4060. _ACEOF
  4061. ;;
  4062. SunOS)
  4063. SUNOS="yes"
  4064. USE_STATIC="no"
  4065. ;;
  4066. Darwin)
  4067. USE_STATIC="no"
  4068. ;;
  4069. *BSD)
  4070. # FreeBSD/OpenBSD/NetBSD
  4071. ;;
  4072. *)
  4073. { $as_echo "$as_me:$LINENO: checking if system is Mach based" >&5
  4074. $as_echo_n "checking if system is Mach based... " >&6; }
  4075. if test -r /mach
  4076. then
  4077. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4078. $as_echo "yes" >&6; }
  4079. cat >>confdefs.h <<\_ACEOF
  4080. #define BORGCUBES 1
  4081. _ACEOF
  4082. else
  4083. { $as_echo "$as_me:$LINENO: result: no" >&5
  4084. $as_echo "no" >&6; }
  4085. { $as_echo "$as_me:$LINENO: checking if system is QNX" >&5
  4086. $as_echo_n "checking if system is QNX... " >&6; }
  4087. if test -r /cmds
  4088. then
  4089. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4090. $as_echo "yes" >&6; }
  4091. else
  4092. { $as_echo "$as_me:$LINENO: result: no" >&5
  4093. $as_echo "no" >&6; }
  4094. { $as_echo "$as_me:$LINENO: result: Something unknown!" >&5
  4095. $as_echo "Something unknown!" >&6; }
  4096. fi
  4097. fi
  4098. ;;
  4099. esac
  4100. # Check for IPv6 support
  4101. #EGG_IPV6_SUPPORTED
  4102. { $as_echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4103. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4104. # Check whether --enable-ipv6 was given.
  4105. if test "${enable_ipv6+set}" = set; then
  4106. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4107. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4108. $as_echo "yes" >&6; }
  4109. else
  4110. ac_cv_dipv6="no"
  4111. if test "$egg_cv_ipv6_supported" = "no"; then
  4112. ac_cv_dipv6="no"
  4113. fi
  4114. { $as_echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4115. $as_echo "$ac_cv_dipv6" >&6; }
  4116. fi
  4117. if ! test "$EGG_CYGWIN" = "yes"; then
  4118. if test "$ac_cv_dipv6" = "no"; then
  4119. cat >>confdefs.h <<\_ACEOF
  4120. #define USE_IPV6 1
  4121. _ACEOF
  4122. fi
  4123. fi
  4124. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  4125. $as_echo_n "checking for socklen_t... " >&6; }
  4126. if test "${egg_cv_socklen_t+set}" = set; then
  4127. $as_echo_n "(cached) " >&6
  4128. else
  4129. if test "$cross_compiling" = yes; then
  4130. egg_cv_socklen_t=no
  4131. else
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. #include <unistd.h>
  4139. #include <sys/types.h>
  4140. #include <sys/socket.h>
  4141. #include <netinet/in.h>
  4142. #include <arpa/inet.h>
  4143. int main()
  4144. {
  4145. socklen_t test = sizeof(int);
  4146. return 0;
  4147. }
  4148. _ACEOF
  4149. rm -f conftest$ac_exeext
  4150. if { (ac_try="$ac_link"
  4151. case "(($ac_try" in
  4152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4153. *) ac_try_echo=$ac_try;;
  4154. esac
  4155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4156. $as_echo "$ac_try_echo") >&5
  4157. (eval "$ac_link") 2>&5
  4158. ac_status=$?
  4159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4160. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4161. { (case "(($ac_try" in
  4162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4163. *) ac_try_echo=$ac_try;;
  4164. esac
  4165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4166. $as_echo "$ac_try_echo") >&5
  4167. (eval "$ac_try") 2>&5
  4168. ac_status=$?
  4169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4170. (exit $ac_status); }; }; then
  4171. egg_cv_socklen_t=yes
  4172. else
  4173. $as_echo "$as_me: program exited with status $ac_status" >&5
  4174. $as_echo "$as_me: failed program was:" >&5
  4175. sed 's/^/| /' conftest.$ac_ext >&5
  4176. ( exit $ac_status )
  4177. egg_cv_socklen_t=no
  4178. fi
  4179. rm -rf conftest.dSYM
  4180. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4181. fi
  4182. fi
  4183. if test "$egg_cv_socklen_t" = "yes"; then
  4184. cat >>confdefs.h <<\_ACEOF
  4185. #define HAVE_SOCKLEN_T 1
  4186. _ACEOF
  4187. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4188. $as_echo "yes" >&6; }
  4189. else
  4190. { $as_echo "$as_me:$LINENO: result: no" >&5
  4191. $as_echo "no" >&6; }
  4192. fi
  4193. # Check for inconsistent random() functions
  4194. { $as_echo "$as_me:$LINENO: checking for random limit" >&5
  4195. $as_echo_n "checking for random limit... " >&6; }
  4196. case "$egg_cv_var_system_type" in
  4197. SunOS) RMAX=0x7FFFFFFF
  4198. ;;
  4199. *) RMAX=RAND_MAX
  4200. ;;
  4201. esac
  4202. { $as_echo "$as_me:$LINENO: result: $RMAX" >&5
  4203. $as_echo "$RMAX" >&6; }
  4204. cat >>confdefs.h <<_ACEOF
  4205. #define RANDOM_MAX $RMAX
  4206. _ACEOF
  4207. # Create static binaries
  4208. if test "$USE_STATIC" = "yes"
  4209. then
  4210. if test -n "$GXX"
  4211. then
  4212. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4213. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4214. if test "${egg_cv_var_ccstatic+set}" = set; then
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. cat >conftest.$ac_ext <<_ACEOF
  4218. /* confdefs.h. */
  4219. _ACEOF
  4220. cat confdefs.h >>conftest.$ac_ext
  4221. cat >>conftest.$ac_ext <<_ACEOF
  4222. /* end confdefs.h. */
  4223. int
  4224. main ()
  4225. {
  4226. ;
  4227. return 0;
  4228. }
  4229. _ACEOF
  4230. rm -f conftest.$ac_objext
  4231. if { (ac_try="$ac_compile"
  4232. case "(($ac_try" in
  4233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4234. *) ac_try_echo=$ac_try;;
  4235. esac
  4236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4237. $as_echo "$ac_try_echo") >&5
  4238. (eval "$ac_compile") 2>conftest.er1
  4239. ac_status=$?
  4240. grep -v '^ *+' conftest.er1 >conftest.err
  4241. rm -f conftest.er1
  4242. cat conftest.err >&5
  4243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4244. (exit $ac_status); } && {
  4245. test -z "$ac_cxx_werror_flag" ||
  4246. test ! -s conftest.err
  4247. } && test -s conftest.$ac_objext; then
  4248. egg_cv_var_ccstatic="yes"
  4249. else
  4250. $as_echo "$as_me: failed program was:" >&5
  4251. sed 's/^/| /' conftest.$ac_ext >&5
  4252. egg_cv_var_ccstatic="no"
  4253. fi
  4254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4255. fi
  4256. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4257. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4258. if ! test "$egg_cv_var_ccstatic" = "yes"
  4259. then
  4260. cat << 'EOF' >&2
  4261. configure: error:
  4262. Your OS or C++ compiler does not support -static.
  4263. This compile flag is required for the botpack on this OS.
  4264. EOF
  4265. exit 1
  4266. fi
  4267. fi
  4268. STATIC="-static"
  4269. else
  4270. STATIC=""
  4271. fi
  4272. #checkpoint
  4273. cat >confcache <<\_ACEOF
  4274. # This file is a shell script that caches the results of configure
  4275. # tests run on this system so they can be shared between configure
  4276. # scripts and configure runs, see configure's option --config-cache.
  4277. # It is not useful on other systems. If it contains results you don't
  4278. # want to keep, you may remove or edit it.
  4279. #
  4280. # config.status only pays attention to the cache file if you give it
  4281. # the --recheck option to rerun configure.
  4282. #
  4283. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4284. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4285. # following values.
  4286. _ACEOF
  4287. # The following way of writing the cache mishandles newlines in values,
  4288. # but we know of no workaround that is simple, portable, and efficient.
  4289. # So, we kill variables containing newlines.
  4290. # Ultrix sh set writes to stderr and can't be redirected directly,
  4291. # and sets the high bit in the cache file unless we assign to the vars.
  4292. (
  4293. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4294. eval ac_val=\$$ac_var
  4295. case $ac_val in #(
  4296. *${as_nl}*)
  4297. case $ac_var in #(
  4298. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  4299. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4300. esac
  4301. case $ac_var in #(
  4302. _ | IFS | as_nl) ;; #(
  4303. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4304. *) $as_unset $ac_var ;;
  4305. esac ;;
  4306. esac
  4307. done
  4308. (set) 2>&1 |
  4309. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4310. *${as_nl}ac_space=\ *)
  4311. # `set' does not quote correctly, so add quotes (double-quote
  4312. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4313. sed -n \
  4314. "s/'/'\\\\''/g;
  4315. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4316. ;; #(
  4317. *)
  4318. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4319. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4320. ;;
  4321. esac |
  4322. sort
  4323. ) |
  4324. sed '
  4325. /^ac_cv_env_/b end
  4326. t clear
  4327. :clear
  4328. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4329. t end
  4330. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4331. :end' >>confcache
  4332. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4333. if test -w "$cache_file"; then
  4334. test "x$cache_file" != "x/dev/null" &&
  4335. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4336. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4337. cat confcache >$cache_file
  4338. else
  4339. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4340. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4341. fi
  4342. fi
  4343. rm -f confcache
  4344. # Checks for system libraries
  4345. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4346. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4347. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. ac_check_lib_save_LIBS=$LIBS
  4351. LIBS="-lsocket $LIBS"
  4352. cat >conftest.$ac_ext <<_ACEOF
  4353. /* confdefs.h. */
  4354. _ACEOF
  4355. cat confdefs.h >>conftest.$ac_ext
  4356. cat >>conftest.$ac_ext <<_ACEOF
  4357. /* end confdefs.h. */
  4358. /* Override any GCC internal prototype to avoid an error.
  4359. Use char because int might match the return type of a GCC
  4360. builtin and then its argument prototype would still apply. */
  4361. #ifdef __cplusplus
  4362. extern "C"
  4363. #endif
  4364. char socket ();
  4365. int
  4366. main ()
  4367. {
  4368. return socket ();
  4369. ;
  4370. return 0;
  4371. }
  4372. _ACEOF
  4373. rm -f conftest.$ac_objext conftest$ac_exeext
  4374. if { (ac_try="$ac_link"
  4375. case "(($ac_try" in
  4376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4377. *) ac_try_echo=$ac_try;;
  4378. esac
  4379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4380. $as_echo "$ac_try_echo") >&5
  4381. (eval "$ac_link") 2>conftest.er1
  4382. ac_status=$?
  4383. grep -v '^ *+' conftest.er1 >conftest.err
  4384. rm -f conftest.er1
  4385. cat conftest.err >&5
  4386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); } && {
  4388. test -z "$ac_cxx_werror_flag" ||
  4389. test ! -s conftest.err
  4390. } && test -s conftest$ac_exeext && {
  4391. test "$cross_compiling" = yes ||
  4392. $as_test_x conftest$ac_exeext
  4393. }; then
  4394. ac_cv_lib_socket_socket=yes
  4395. else
  4396. $as_echo "$as_me: failed program was:" >&5
  4397. sed 's/^/| /' conftest.$ac_ext >&5
  4398. ac_cv_lib_socket_socket=no
  4399. fi
  4400. rm -rf conftest.dSYM
  4401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4402. conftest$ac_exeext conftest.$ac_ext
  4403. LIBS=$ac_check_lib_save_LIBS
  4404. fi
  4405. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4406. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4407. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  4408. cat >>confdefs.h <<_ACEOF
  4409. #define HAVE_LIBSOCKET 1
  4410. _ACEOF
  4411. LIBS="-lsocket $LIBS"
  4412. fi
  4413. # AC_CHECK_LIB(nsl, connect)
  4414. # AC_CHECK_LIB(dl, dlopen)
  4415. # AC_CHECK_LIB(nsl, gethostbyname)
  4416. # AC_CHECK_LIB(dns, gethostbyname)
  4417. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4418. # This is needed for Tcl libraries compiled with thread support
  4419. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4420. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4421. # ac_cv_lib_pthread="-lpthread"], [dnl
  4422. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4423. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4424. # ac_cv_lib_pthread="-lpthread"], [dnl
  4425. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4426. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4427. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4428. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4429. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4430. # ac_cv_lib_pthread=""],
  4431. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4432. if test "$SUNOS" = "yes"; then
  4433. # For suns without yp
  4434. { $as_echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4435. $as_echo_n "checking for main in -ldl... " >&6; }
  4436. if test "${ac_cv_lib_dl_main+set}" = set; then
  4437. $as_echo_n "(cached) " >&6
  4438. else
  4439. ac_check_lib_save_LIBS=$LIBS
  4440. LIBS="-ldl $LIBS"
  4441. cat >conftest.$ac_ext <<_ACEOF
  4442. /* confdefs.h. */
  4443. _ACEOF
  4444. cat confdefs.h >>conftest.$ac_ext
  4445. cat >>conftest.$ac_ext <<_ACEOF
  4446. /* end confdefs.h. */
  4447. int
  4448. main ()
  4449. {
  4450. return main ();
  4451. ;
  4452. return 0;
  4453. }
  4454. _ACEOF
  4455. rm -f conftest.$ac_objext conftest$ac_exeext
  4456. if { (ac_try="$ac_link"
  4457. case "(($ac_try" in
  4458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4459. *) ac_try_echo=$ac_try;;
  4460. esac
  4461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4462. $as_echo "$ac_try_echo") >&5
  4463. (eval "$ac_link") 2>conftest.er1
  4464. ac_status=$?
  4465. grep -v '^ *+' conftest.er1 >conftest.err
  4466. rm -f conftest.er1
  4467. cat conftest.err >&5
  4468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4469. (exit $ac_status); } && {
  4470. test -z "$ac_cxx_werror_flag" ||
  4471. test ! -s conftest.err
  4472. } && test -s conftest$ac_exeext && {
  4473. test "$cross_compiling" = yes ||
  4474. $as_test_x conftest$ac_exeext
  4475. }; then
  4476. ac_cv_lib_dl_main=yes
  4477. else
  4478. $as_echo "$as_me: failed program was:" >&5
  4479. sed 's/^/| /' conftest.$ac_ext >&5
  4480. ac_cv_lib_dl_main=no
  4481. fi
  4482. rm -rf conftest.dSYM
  4483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4484. conftest$ac_exeext conftest.$ac_ext
  4485. LIBS=$ac_check_lib_save_LIBS
  4486. fi
  4487. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4488. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4489. if test "x$ac_cv_lib_dl_main" = x""yes; then
  4490. cat >>confdefs.h <<_ACEOF
  4491. #define HAVE_LIBDL 1
  4492. _ACEOF
  4493. LIBS="-ldl $LIBS"
  4494. fi
  4495. { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4496. $as_echo_n "checking for main in -lsocket... " >&6; }
  4497. if test "${ac_cv_lib_socket_main+set}" = set; then
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. ac_check_lib_save_LIBS=$LIBS
  4501. LIBS="-lsocket $LIBS"
  4502. cat >conftest.$ac_ext <<_ACEOF
  4503. /* confdefs.h. */
  4504. _ACEOF
  4505. cat confdefs.h >>conftest.$ac_ext
  4506. cat >>conftest.$ac_ext <<_ACEOF
  4507. /* end confdefs.h. */
  4508. int
  4509. main ()
  4510. {
  4511. return main ();
  4512. ;
  4513. return 0;
  4514. }
  4515. _ACEOF
  4516. rm -f conftest.$ac_objext conftest$ac_exeext
  4517. if { (ac_try="$ac_link"
  4518. case "(($ac_try" in
  4519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4520. *) ac_try_echo=$ac_try;;
  4521. esac
  4522. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4523. $as_echo "$ac_try_echo") >&5
  4524. (eval "$ac_link") 2>conftest.er1
  4525. ac_status=$?
  4526. grep -v '^ *+' conftest.er1 >conftest.err
  4527. rm -f conftest.er1
  4528. cat conftest.err >&5
  4529. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4530. (exit $ac_status); } && {
  4531. test -z "$ac_cxx_werror_flag" ||
  4532. test ! -s conftest.err
  4533. } && test -s conftest$ac_exeext && {
  4534. test "$cross_compiling" = yes ||
  4535. $as_test_x conftest$ac_exeext
  4536. }; then
  4537. ac_cv_lib_socket_main=yes
  4538. else
  4539. $as_echo "$as_me: failed program was:" >&5
  4540. sed 's/^/| /' conftest.$ac_ext >&5
  4541. ac_cv_lib_socket_main=no
  4542. fi
  4543. rm -rf conftest.dSYM
  4544. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4545. conftest$ac_exeext conftest.$ac_ext
  4546. LIBS=$ac_check_lib_save_LIBS
  4547. fi
  4548. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4549. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4550. if test "x$ac_cv_lib_socket_main" = x""yes; then
  4551. cat >>confdefs.h <<_ACEOF
  4552. #define HAVE_LIBSOCKET 1
  4553. _ACEOF
  4554. LIBS="-lsocket $LIBS"
  4555. fi
  4556. { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4557. $as_echo_n "checking for main in -lnsl... " >&6; }
  4558. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. ac_check_lib_save_LIBS=$LIBS
  4562. LIBS="-lnsl $LIBS"
  4563. cat >conftest.$ac_ext <<_ACEOF
  4564. /* confdefs.h. */
  4565. _ACEOF
  4566. cat confdefs.h >>conftest.$ac_ext
  4567. cat >>conftest.$ac_ext <<_ACEOF
  4568. /* end confdefs.h. */
  4569. int
  4570. main ()
  4571. {
  4572. return main ();
  4573. ;
  4574. return 0;
  4575. }
  4576. _ACEOF
  4577. rm -f conftest.$ac_objext conftest$ac_exeext
  4578. if { (ac_try="$ac_link"
  4579. case "(($ac_try" in
  4580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4581. *) ac_try_echo=$ac_try;;
  4582. esac
  4583. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4584. $as_echo "$ac_try_echo") >&5
  4585. (eval "$ac_link") 2>conftest.er1
  4586. ac_status=$?
  4587. grep -v '^ *+' conftest.er1 >conftest.err
  4588. rm -f conftest.er1
  4589. cat conftest.err >&5
  4590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4591. (exit $ac_status); } && {
  4592. test -z "$ac_cxx_werror_flag" ||
  4593. test ! -s conftest.err
  4594. } && test -s conftest$ac_exeext && {
  4595. test "$cross_compiling" = yes ||
  4596. $as_test_x conftest$ac_exeext
  4597. }; then
  4598. ac_cv_lib_nsl_main=yes
  4599. else
  4600. $as_echo "$as_me: failed program was:" >&5
  4601. sed 's/^/| /' conftest.$ac_ext >&5
  4602. ac_cv_lib_nsl_main=no
  4603. fi
  4604. rm -rf conftest.dSYM
  4605. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4606. conftest$ac_exeext conftest.$ac_ext
  4607. LIBS=$ac_check_lib_save_LIBS
  4608. fi
  4609. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4610. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4611. if test "x$ac_cv_lib_nsl_main" = x""yes; then
  4612. cat >>confdefs.h <<_ACEOF
  4613. #define HAVE_LIBNSL 1
  4614. _ACEOF
  4615. LIBS="-lnsl $LIBS"
  4616. fi
  4617. fi
  4618. # Checks for header files
  4619. ac_header_dirent=no
  4620. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4621. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4622. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4623. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4624. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4625. $as_echo_n "(cached) " >&6
  4626. else
  4627. cat >conftest.$ac_ext <<_ACEOF
  4628. /* confdefs.h. */
  4629. _ACEOF
  4630. cat confdefs.h >>conftest.$ac_ext
  4631. cat >>conftest.$ac_ext <<_ACEOF
  4632. /* end confdefs.h. */
  4633. #include <sys/types.h>
  4634. #include <$ac_hdr>
  4635. int
  4636. main ()
  4637. {
  4638. if ((DIR *) 0)
  4639. return 0;
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. rm -f conftest.$ac_objext
  4645. if { (ac_try="$ac_compile"
  4646. case "(($ac_try" in
  4647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4648. *) ac_try_echo=$ac_try;;
  4649. esac
  4650. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4651. $as_echo "$ac_try_echo") >&5
  4652. (eval "$ac_compile") 2>conftest.er1
  4653. ac_status=$?
  4654. grep -v '^ *+' conftest.er1 >conftest.err
  4655. rm -f conftest.er1
  4656. cat conftest.err >&5
  4657. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4658. (exit $ac_status); } && {
  4659. test -z "$ac_cxx_werror_flag" ||
  4660. test ! -s conftest.err
  4661. } && test -s conftest.$ac_objext; then
  4662. eval "$as_ac_Header=yes"
  4663. else
  4664. $as_echo "$as_me: failed program was:" >&5
  4665. sed 's/^/| /' conftest.$ac_ext >&5
  4666. eval "$as_ac_Header=no"
  4667. fi
  4668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4671. $as_echo "$as_val"'`
  4672. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4673. $as_echo "$ac_res" >&6; }
  4674. as_val=`eval 'as_val=${'$as_ac_Header'}
  4675. $as_echo "$as_val"'`
  4676. if test "x$as_val" = x""yes; then
  4677. cat >>confdefs.h <<_ACEOF
  4678. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4679. _ACEOF
  4680. ac_header_dirent=$ac_hdr; break
  4681. fi
  4682. done
  4683. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4684. if test $ac_header_dirent = dirent.h; then
  4685. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4686. $as_echo_n "checking for library containing opendir... " >&6; }
  4687. if test "${ac_cv_search_opendir+set}" = set; then
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. ac_func_search_save_LIBS=$LIBS
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697. /* Override any GCC internal prototype to avoid an error.
  4698. Use char because int might match the return type of a GCC
  4699. builtin and then its argument prototype would still apply. */
  4700. #ifdef __cplusplus
  4701. extern "C"
  4702. #endif
  4703. char opendir ();
  4704. int
  4705. main ()
  4706. {
  4707. return opendir ();
  4708. ;
  4709. return 0;
  4710. }
  4711. _ACEOF
  4712. for ac_lib in '' dir; do
  4713. if test -z "$ac_lib"; then
  4714. ac_res="none required"
  4715. else
  4716. ac_res=-l$ac_lib
  4717. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4718. fi
  4719. rm -f conftest.$ac_objext conftest$ac_exeext
  4720. if { (ac_try="$ac_link"
  4721. case "(($ac_try" in
  4722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4723. *) ac_try_echo=$ac_try;;
  4724. esac
  4725. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4726. $as_echo "$ac_try_echo") >&5
  4727. (eval "$ac_link") 2>conftest.er1
  4728. ac_status=$?
  4729. grep -v '^ *+' conftest.er1 >conftest.err
  4730. rm -f conftest.er1
  4731. cat conftest.err >&5
  4732. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4733. (exit $ac_status); } && {
  4734. test -z "$ac_cxx_werror_flag" ||
  4735. test ! -s conftest.err
  4736. } && test -s conftest$ac_exeext && {
  4737. test "$cross_compiling" = yes ||
  4738. $as_test_x conftest$ac_exeext
  4739. }; then
  4740. ac_cv_search_opendir=$ac_res
  4741. else
  4742. $as_echo "$as_me: failed program was:" >&5
  4743. sed 's/^/| /' conftest.$ac_ext >&5
  4744. fi
  4745. rm -rf conftest.dSYM
  4746. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4747. conftest$ac_exeext
  4748. if test "${ac_cv_search_opendir+set}" = set; then
  4749. break
  4750. fi
  4751. done
  4752. if test "${ac_cv_search_opendir+set}" = set; then
  4753. :
  4754. else
  4755. ac_cv_search_opendir=no
  4756. fi
  4757. rm conftest.$ac_ext
  4758. LIBS=$ac_func_search_save_LIBS
  4759. fi
  4760. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4761. $as_echo "$ac_cv_search_opendir" >&6; }
  4762. ac_res=$ac_cv_search_opendir
  4763. if test "$ac_res" != no; then
  4764. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4765. fi
  4766. else
  4767. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4768. $as_echo_n "checking for library containing opendir... " >&6; }
  4769. if test "${ac_cv_search_opendir+set}" = set; then
  4770. $as_echo_n "(cached) " >&6
  4771. else
  4772. ac_func_search_save_LIBS=$LIBS
  4773. cat >conftest.$ac_ext <<_ACEOF
  4774. /* confdefs.h. */
  4775. _ACEOF
  4776. cat confdefs.h >>conftest.$ac_ext
  4777. cat >>conftest.$ac_ext <<_ACEOF
  4778. /* end confdefs.h. */
  4779. /* Override any GCC internal prototype to avoid an error.
  4780. Use char because int might match the return type of a GCC
  4781. builtin and then its argument prototype would still apply. */
  4782. #ifdef __cplusplus
  4783. extern "C"
  4784. #endif
  4785. char opendir ();
  4786. int
  4787. main ()
  4788. {
  4789. return opendir ();
  4790. ;
  4791. return 0;
  4792. }
  4793. _ACEOF
  4794. for ac_lib in '' x; do
  4795. if test -z "$ac_lib"; then
  4796. ac_res="none required"
  4797. else
  4798. ac_res=-l$ac_lib
  4799. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4800. fi
  4801. rm -f conftest.$ac_objext conftest$ac_exeext
  4802. if { (ac_try="$ac_link"
  4803. case "(($ac_try" in
  4804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4805. *) ac_try_echo=$ac_try;;
  4806. esac
  4807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4808. $as_echo "$ac_try_echo") >&5
  4809. (eval "$ac_link") 2>conftest.er1
  4810. ac_status=$?
  4811. grep -v '^ *+' conftest.er1 >conftest.err
  4812. rm -f conftest.er1
  4813. cat conftest.err >&5
  4814. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4815. (exit $ac_status); } && {
  4816. test -z "$ac_cxx_werror_flag" ||
  4817. test ! -s conftest.err
  4818. } && test -s conftest$ac_exeext && {
  4819. test "$cross_compiling" = yes ||
  4820. $as_test_x conftest$ac_exeext
  4821. }; then
  4822. ac_cv_search_opendir=$ac_res
  4823. else
  4824. $as_echo "$as_me: failed program was:" >&5
  4825. sed 's/^/| /' conftest.$ac_ext >&5
  4826. fi
  4827. rm -rf conftest.dSYM
  4828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4829. conftest$ac_exeext
  4830. if test "${ac_cv_search_opendir+set}" = set; then
  4831. break
  4832. fi
  4833. done
  4834. if test "${ac_cv_search_opendir+set}" = set; then
  4835. :
  4836. else
  4837. ac_cv_search_opendir=no
  4838. fi
  4839. rm conftest.$ac_ext
  4840. LIBS=$ac_func_search_save_LIBS
  4841. fi
  4842. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4843. $as_echo "$ac_cv_search_opendir" >&6; }
  4844. ac_res=$ac_cv_search_opendir
  4845. if test "$ac_res" != no; then
  4846. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4847. fi
  4848. fi
  4849. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4850. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4851. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4852. $as_echo_n "(cached) " >&6
  4853. else
  4854. cat >conftest.$ac_ext <<_ACEOF
  4855. /* confdefs.h. */
  4856. _ACEOF
  4857. cat confdefs.h >>conftest.$ac_ext
  4858. cat >>conftest.$ac_ext <<_ACEOF
  4859. /* end confdefs.h. */
  4860. #include <sys/types.h>
  4861. #include <sys/wait.h>
  4862. #ifndef WEXITSTATUS
  4863. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4864. #endif
  4865. #ifndef WIFEXITED
  4866. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4867. #endif
  4868. int
  4869. main ()
  4870. {
  4871. int s;
  4872. wait (&s);
  4873. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4874. ;
  4875. return 0;
  4876. }
  4877. _ACEOF
  4878. rm -f conftest.$ac_objext
  4879. if { (ac_try="$ac_compile"
  4880. case "(($ac_try" in
  4881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4882. *) ac_try_echo=$ac_try;;
  4883. esac
  4884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4885. $as_echo "$ac_try_echo") >&5
  4886. (eval "$ac_compile") 2>conftest.er1
  4887. ac_status=$?
  4888. grep -v '^ *+' conftest.er1 >conftest.err
  4889. rm -f conftest.er1
  4890. cat conftest.err >&5
  4891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4892. (exit $ac_status); } && {
  4893. test -z "$ac_cxx_werror_flag" ||
  4894. test ! -s conftest.err
  4895. } && test -s conftest.$ac_objext; then
  4896. ac_cv_header_sys_wait_h=yes
  4897. else
  4898. $as_echo "$as_me: failed program was:" >&5
  4899. sed 's/^/| /' conftest.$ac_ext >&5
  4900. ac_cv_header_sys_wait_h=no
  4901. fi
  4902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4903. fi
  4904. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4905. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4906. if test $ac_cv_header_sys_wait_h = yes; then
  4907. cat >>confdefs.h <<\_ACEOF
  4908. #define HAVE_SYS_WAIT_H 1
  4909. _ACEOF
  4910. fi
  4911. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4912. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4913. if test "${ac_cv_header_time+set}" = set; then
  4914. $as_echo_n "(cached) " >&6
  4915. else
  4916. cat >conftest.$ac_ext <<_ACEOF
  4917. /* confdefs.h. */
  4918. _ACEOF
  4919. cat confdefs.h >>conftest.$ac_ext
  4920. cat >>conftest.$ac_ext <<_ACEOF
  4921. /* end confdefs.h. */
  4922. #include <sys/types.h>
  4923. #include <sys/time.h>
  4924. #include <time.h>
  4925. int
  4926. main ()
  4927. {
  4928. if ((struct tm *) 0)
  4929. return 0;
  4930. ;
  4931. return 0;
  4932. }
  4933. _ACEOF
  4934. rm -f conftest.$ac_objext
  4935. if { (ac_try="$ac_compile"
  4936. case "(($ac_try" in
  4937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4938. *) ac_try_echo=$ac_try;;
  4939. esac
  4940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4941. $as_echo "$ac_try_echo") >&5
  4942. (eval "$ac_compile") 2>conftest.er1
  4943. ac_status=$?
  4944. grep -v '^ *+' conftest.er1 >conftest.err
  4945. rm -f conftest.er1
  4946. cat conftest.err >&5
  4947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4948. (exit $ac_status); } && {
  4949. test -z "$ac_cxx_werror_flag" ||
  4950. test ! -s conftest.err
  4951. } && test -s conftest.$ac_objext; then
  4952. ac_cv_header_time=yes
  4953. else
  4954. $as_echo "$as_me: failed program was:" >&5
  4955. sed 's/^/| /' conftest.$ac_ext >&5
  4956. ac_cv_header_time=no
  4957. fi
  4958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4959. fi
  4960. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4961. $as_echo "$ac_cv_header_time" >&6; }
  4962. if test $ac_cv_header_time = yes; then
  4963. cat >>confdefs.h <<\_ACEOF
  4964. #define TIME_WITH_SYS_TIME 1
  4965. _ACEOF
  4966. fi
  4967. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4968. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4969. if test "${ac_cv_header_stat_broken+set}" = set; then
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. cat >conftest.$ac_ext <<_ACEOF
  4973. /* confdefs.h. */
  4974. _ACEOF
  4975. cat confdefs.h >>conftest.$ac_ext
  4976. cat >>conftest.$ac_ext <<_ACEOF
  4977. /* end confdefs.h. */
  4978. #include <sys/types.h>
  4979. #include <sys/stat.h>
  4980. #if defined S_ISBLK && defined S_IFDIR
  4981. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4982. #endif
  4983. #if defined S_ISBLK && defined S_IFCHR
  4984. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4985. #endif
  4986. #if defined S_ISLNK && defined S_IFREG
  4987. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4988. #endif
  4989. #if defined S_ISSOCK && defined S_IFREG
  4990. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4991. #endif
  4992. _ACEOF
  4993. rm -f conftest.$ac_objext
  4994. if { (ac_try="$ac_compile"
  4995. case "(($ac_try" in
  4996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4997. *) ac_try_echo=$ac_try;;
  4998. esac
  4999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5000. $as_echo "$ac_try_echo") >&5
  5001. (eval "$ac_compile") 2>conftest.er1
  5002. ac_status=$?
  5003. grep -v '^ *+' conftest.er1 >conftest.err
  5004. rm -f conftest.er1
  5005. cat conftest.err >&5
  5006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); } && {
  5008. test -z "$ac_cxx_werror_flag" ||
  5009. test ! -s conftest.err
  5010. } && test -s conftest.$ac_objext; then
  5011. ac_cv_header_stat_broken=no
  5012. else
  5013. $as_echo "$as_me: failed program was:" >&5
  5014. sed 's/^/| /' conftest.$ac_ext >&5
  5015. ac_cv_header_stat_broken=yes
  5016. fi
  5017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5018. fi
  5019. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5020. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5021. if test $ac_cv_header_stat_broken = yes; then
  5022. cat >>confdefs.h <<\_ACEOF
  5023. #define STAT_MACROS_BROKEN 1
  5024. _ACEOF
  5025. fi
  5026. #checkpoint
  5027. cat >confcache <<\_ACEOF
  5028. # This file is a shell script that caches the results of configure
  5029. # tests run on this system so they can be shared between configure
  5030. # scripts and configure runs, see configure's option --config-cache.
  5031. # It is not useful on other systems. If it contains results you don't
  5032. # want to keep, you may remove or edit it.
  5033. #
  5034. # config.status only pays attention to the cache file if you give it
  5035. # the --recheck option to rerun configure.
  5036. #
  5037. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5038. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5039. # following values.
  5040. _ACEOF
  5041. # The following way of writing the cache mishandles newlines in values,
  5042. # but we know of no workaround that is simple, portable, and efficient.
  5043. # So, we kill variables containing newlines.
  5044. # Ultrix sh set writes to stderr and can't be redirected directly,
  5045. # and sets the high bit in the cache file unless we assign to the vars.
  5046. (
  5047. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5048. eval ac_val=\$$ac_var
  5049. case $ac_val in #(
  5050. *${as_nl}*)
  5051. case $ac_var in #(
  5052. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5053. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5054. esac
  5055. case $ac_var in #(
  5056. _ | IFS | as_nl) ;; #(
  5057. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5058. *) $as_unset $ac_var ;;
  5059. esac ;;
  5060. esac
  5061. done
  5062. (set) 2>&1 |
  5063. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5064. *${as_nl}ac_space=\ *)
  5065. # `set' does not quote correctly, so add quotes (double-quote
  5066. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5067. sed -n \
  5068. "s/'/'\\\\''/g;
  5069. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5070. ;; #(
  5071. *)
  5072. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5073. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5074. ;;
  5075. esac |
  5076. sort
  5077. ) |
  5078. sed '
  5079. /^ac_cv_env_/b end
  5080. t clear
  5081. :clear
  5082. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5083. t end
  5084. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5085. :end' >>confcache
  5086. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5087. if test -w "$cache_file"; then
  5088. test "x$cache_file" != "x/dev/null" &&
  5089. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5090. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5091. cat confcache >$cache_file
  5092. else
  5093. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5094. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5095. fi
  5096. fi
  5097. rm -f confcache
  5098. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5099. do
  5100. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5101. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5102. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5103. $as_echo_n "checking for $ac_header... " >&6; }
  5104. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5105. $as_echo_n "(cached) " >&6
  5106. fi
  5107. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5108. $as_echo "$as_val"'`
  5109. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5110. $as_echo "$ac_res" >&6; }
  5111. else
  5112. # Is the header compilable?
  5113. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5114. $as_echo_n "checking $ac_header usability... " >&6; }
  5115. cat >conftest.$ac_ext <<_ACEOF
  5116. /* confdefs.h. */
  5117. _ACEOF
  5118. cat confdefs.h >>conftest.$ac_ext
  5119. cat >>conftest.$ac_ext <<_ACEOF
  5120. /* end confdefs.h. */
  5121. $ac_includes_default
  5122. #include <$ac_header>
  5123. _ACEOF
  5124. rm -f conftest.$ac_objext
  5125. if { (ac_try="$ac_compile"
  5126. case "(($ac_try" in
  5127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5128. *) ac_try_echo=$ac_try;;
  5129. esac
  5130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5131. $as_echo "$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. $as_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_header_compiler=yes
  5143. else
  5144. $as_echo "$as_me: failed program was:" >&5
  5145. sed 's/^/| /' conftest.$ac_ext >&5
  5146. ac_header_compiler=no
  5147. fi
  5148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5149. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5150. $as_echo "$ac_header_compiler" >&6; }
  5151. # Is the header present?
  5152. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5153. $as_echo_n "checking $ac_header presence... " >&6; }
  5154. cat >conftest.$ac_ext <<_ACEOF
  5155. /* confdefs.h. */
  5156. _ACEOF
  5157. cat confdefs.h >>conftest.$ac_ext
  5158. cat >>conftest.$ac_ext <<_ACEOF
  5159. /* end confdefs.h. */
  5160. #include <$ac_header>
  5161. _ACEOF
  5162. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5163. case "(($ac_try" in
  5164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5165. *) ac_try_echo=$ac_try;;
  5166. esac
  5167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5168. $as_echo "$ac_try_echo") >&5
  5169. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5170. ac_status=$?
  5171. grep -v '^ *+' conftest.er1 >conftest.err
  5172. rm -f conftest.er1
  5173. cat conftest.err >&5
  5174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } >/dev/null && {
  5176. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5177. test ! -s conftest.err
  5178. }; then
  5179. ac_header_preproc=yes
  5180. else
  5181. $as_echo "$as_me: failed program was:" >&5
  5182. sed 's/^/| /' conftest.$ac_ext >&5
  5183. ac_header_preproc=no
  5184. fi
  5185. rm -f conftest.err conftest.$ac_ext
  5186. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5187. $as_echo "$ac_header_preproc" >&6; }
  5188. # So? What about this header?
  5189. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5190. yes:no: )
  5191. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5192. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5193. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5194. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5195. ac_header_preproc=yes
  5196. ;;
  5197. no:yes:* )
  5198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5199. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5200. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5201. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5202. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5203. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5204. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5205. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5206. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5207. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5208. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5209. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5210. ;;
  5211. esac
  5212. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5213. $as_echo_n "checking for $ac_header... " >&6; }
  5214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. eval "$as_ac_Header=\$ac_header_preproc"
  5218. fi
  5219. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5220. $as_echo "$as_val"'`
  5221. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5222. $as_echo "$ac_res" >&6; }
  5223. fi
  5224. as_val=`eval 'as_val=${'$as_ac_Header'}
  5225. $as_echo "$as_val"'`
  5226. if test "x$as_val" = x""yes; then
  5227. cat >>confdefs.h <<_ACEOF
  5228. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5229. _ACEOF
  5230. fi
  5231. done
  5232. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5233. do
  5234. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5235. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5236. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5237. $as_echo_n "checking for $ac_header... " >&6; }
  5238. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5239. $as_echo_n "(cached) " >&6
  5240. fi
  5241. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5242. $as_echo "$as_val"'`
  5243. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5244. $as_echo "$ac_res" >&6; }
  5245. else
  5246. # Is the header compilable?
  5247. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5248. $as_echo_n "checking $ac_header usability... " >&6; }
  5249. cat >conftest.$ac_ext <<_ACEOF
  5250. /* confdefs.h. */
  5251. _ACEOF
  5252. cat confdefs.h >>conftest.$ac_ext
  5253. cat >>conftest.$ac_ext <<_ACEOF
  5254. /* end confdefs.h. */
  5255. $ac_includes_default
  5256. #include <$ac_header>
  5257. _ACEOF
  5258. rm -f conftest.$ac_objext
  5259. if { (ac_try="$ac_compile"
  5260. case "(($ac_try" in
  5261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5262. *) ac_try_echo=$ac_try;;
  5263. esac
  5264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5265. $as_echo "$ac_try_echo") >&5
  5266. (eval "$ac_compile") 2>conftest.er1
  5267. ac_status=$?
  5268. grep -v '^ *+' conftest.er1 >conftest.err
  5269. rm -f conftest.er1
  5270. cat conftest.err >&5
  5271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5272. (exit $ac_status); } && {
  5273. test -z "$ac_cxx_werror_flag" ||
  5274. test ! -s conftest.err
  5275. } && test -s conftest.$ac_objext; then
  5276. ac_header_compiler=yes
  5277. else
  5278. $as_echo "$as_me: failed program was:" >&5
  5279. sed 's/^/| /' conftest.$ac_ext >&5
  5280. ac_header_compiler=no
  5281. fi
  5282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5283. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5284. $as_echo "$ac_header_compiler" >&6; }
  5285. # Is the header present?
  5286. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5287. $as_echo_n "checking $ac_header presence... " >&6; }
  5288. cat >conftest.$ac_ext <<_ACEOF
  5289. /* confdefs.h. */
  5290. _ACEOF
  5291. cat confdefs.h >>conftest.$ac_ext
  5292. cat >>conftest.$ac_ext <<_ACEOF
  5293. /* end confdefs.h. */
  5294. #include <$ac_header>
  5295. _ACEOF
  5296. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5297. case "(($ac_try" in
  5298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5299. *) ac_try_echo=$ac_try;;
  5300. esac
  5301. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5302. $as_echo "$ac_try_echo") >&5
  5303. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5304. ac_status=$?
  5305. grep -v '^ *+' conftest.er1 >conftest.err
  5306. rm -f conftest.er1
  5307. cat conftest.err >&5
  5308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5309. (exit $ac_status); } >/dev/null && {
  5310. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5311. test ! -s conftest.err
  5312. }; then
  5313. ac_header_preproc=yes
  5314. else
  5315. $as_echo "$as_me: failed program was:" >&5
  5316. sed 's/^/| /' conftest.$ac_ext >&5
  5317. ac_header_preproc=no
  5318. fi
  5319. rm -f conftest.err conftest.$ac_ext
  5320. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5321. $as_echo "$ac_header_preproc" >&6; }
  5322. # So? What about this header?
  5323. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5324. yes:no: )
  5325. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5326. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5327. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5328. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5329. ac_header_preproc=yes
  5330. ;;
  5331. no:yes:* )
  5332. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5333. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5334. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5335. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5336. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5337. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5338. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5339. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5340. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5341. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5342. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5343. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5344. ;;
  5345. esac
  5346. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5347. $as_echo_n "checking for $ac_header... " >&6; }
  5348. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. eval "$as_ac_Header=\$ac_header_preproc"
  5352. fi
  5353. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5354. $as_echo "$as_val"'`
  5355. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5356. $as_echo "$ac_res" >&6; }
  5357. fi
  5358. as_val=`eval 'as_val=${'$as_ac_Header'}
  5359. $as_echo "$as_val"'`
  5360. if test "x$as_val" = x""yes; then
  5361. cat >>confdefs.h <<_ACEOF
  5362. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5363. _ACEOF
  5364. fi
  5365. done
  5366. #checkpoint
  5367. cat >confcache <<\_ACEOF
  5368. # This file is a shell script that caches the results of configure
  5369. # tests run on this system so they can be shared between configure
  5370. # scripts and configure runs, see configure's option --config-cache.
  5371. # It is not useful on other systems. If it contains results you don't
  5372. # want to keep, you may remove or edit it.
  5373. #
  5374. # config.status only pays attention to the cache file if you give it
  5375. # the --recheck option to rerun configure.
  5376. #
  5377. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5378. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5379. # following values.
  5380. _ACEOF
  5381. # The following way of writing the cache mishandles newlines in values,
  5382. # but we know of no workaround that is simple, portable, and efficient.
  5383. # So, we kill variables containing newlines.
  5384. # Ultrix sh set writes to stderr and can't be redirected directly,
  5385. # and sets the high bit in the cache file unless we assign to the vars.
  5386. (
  5387. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5388. eval ac_val=\$$ac_var
  5389. case $ac_val in #(
  5390. *${as_nl}*)
  5391. case $ac_var in #(
  5392. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5393. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5394. esac
  5395. case $ac_var in #(
  5396. _ | IFS | as_nl) ;; #(
  5397. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5398. *) $as_unset $ac_var ;;
  5399. esac ;;
  5400. esac
  5401. done
  5402. (set) 2>&1 |
  5403. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5404. *${as_nl}ac_space=\ *)
  5405. # `set' does not quote correctly, so add quotes (double-quote
  5406. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5407. sed -n \
  5408. "s/'/'\\\\''/g;
  5409. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5410. ;; #(
  5411. *)
  5412. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5413. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5414. ;;
  5415. esac |
  5416. sort
  5417. ) |
  5418. sed '
  5419. /^ac_cv_env_/b end
  5420. t clear
  5421. :clear
  5422. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5423. t end
  5424. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5425. :end' >>confcache
  5426. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5427. if test -w "$cache_file"; then
  5428. test "x$cache_file" != "x/dev/null" &&
  5429. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5430. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5431. cat confcache >$cache_file
  5432. else
  5433. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5434. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5435. fi
  5436. fi
  5437. rm -f confcache
  5438. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5439. #AC_CHECK_HEADERS(zlib.h)
  5440. #EGG_CHECK_ZLIB
  5441. { $as_echo "$as_me:$LINENO: checking for path to OpenSSL" >&5
  5442. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5443. # Check whether --with-openssl was given.
  5444. if test "${with_openssl+set}" = set; then
  5445. withval=$with_openssl; cf_with_openssl=$withval
  5446. else
  5447. cf_with_openssl="auto"
  5448. fi
  5449. cf_openssl_basedir=""
  5450. if test "$cf_with_openssl" != "auto"; then
  5451. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  5452. else
  5453. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5454. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  5455. cf_openssl_basedir="${dirs}"
  5456. break
  5457. fi
  5458. done
  5459. unset dirs
  5460. fi
  5461. if test ! -z "$cf_openssl_basedir"; then
  5462. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  5463. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5464. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5465. else
  5466. cf_openssl_basedir=""
  5467. fi
  5468. else
  5469. if test -f "/usr/include/openssl/opensslv.h" ; then
  5470. cf_openssl_basedir="/usr"
  5471. fi
  5472. fi
  5473. if test ! -z "$cf_openssl_basedir"; then
  5474. { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
  5475. $as_echo "$cf_openssl_basedir" >&6; }
  5476. else
  5477. { $as_echo "$as_me:$LINENO: result: not found" >&5
  5478. $as_echo "not found" >&6; }
  5479. { { $as_echo "$as_me:$LINENO: error: OpenSSL is required." >&5
  5480. $as_echo "$as_me: error: OpenSSL is required." >&2;}
  5481. { (exit 1); exit 1; }; }
  5482. fi
  5483. unset cf_openssl_basedir
  5484. save_CXX="$CXX"
  5485. CXX="$CXX $SSL_INCLUDES"
  5486. save_LIBS="$LIBS"
  5487. LIBS="$LIBS $SSL_LIBS"
  5488. { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
  5489. $as_echo_n "checking for OpenSSL version... " >&6; }
  5490. cat >conftest.$ac_ext <<_ACEOF
  5491. /* confdefs.h. */
  5492. _ACEOF
  5493. cat confdefs.h >>conftest.$ac_ext
  5494. cat >>conftest.$ac_ext <<_ACEOF
  5495. /* end confdefs.h. */
  5496. #include <openssl/opensslv.h>
  5497. int
  5498. main ()
  5499. {
  5500. #if !defined(OPENSSL_VERSION_NUMBER)
  5501. #error "Missing openssl version"
  5502. #endif
  5503. #if (OPENSSL_VERSION_NUMBER < 0x009060af) \
  5504. || ((OPENSSL_VERSION_NUMBER > 0x00907000) && (OPENSSL_VERSION_NUMBER < 0x0090702f))
  5505. #error "Insecure openssl version " OPENSSL_VERSION_TEXT
  5506. #endif
  5507. ;
  5508. return 0;
  5509. }
  5510. _ACEOF
  5511. rm -f conftest.$ac_objext
  5512. if { (ac_try="$ac_compile"
  5513. case "(($ac_try" in
  5514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5515. *) ac_try_echo=$ac_try;;
  5516. esac
  5517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5518. $as_echo "$ac_try_echo") >&5
  5519. (eval "$ac_compile") 2>conftest.er1
  5520. ac_status=$?
  5521. grep -v '^ *+' conftest.er1 >conftest.err
  5522. rm -f conftest.er1
  5523. cat conftest.err >&5
  5524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5525. (exit $ac_status); } && {
  5526. test -z "$ac_cxx_werror_flag" ||
  5527. test ! -s conftest.err
  5528. } && test -s conftest.$ac_objext; then
  5529. { $as_echo "$as_me:$LINENO: result: OK" >&5
  5530. $as_echo "OK" >&6; }
  5531. else
  5532. $as_echo "$as_me: failed program was:" >&5
  5533. sed 's/^/| /' conftest.$ac_ext >&5
  5534. { $as_echo "$as_me:$LINENO: result: too old." >&5
  5535. $as_echo "too old." >&6; }
  5536. { { $as_echo "$as_me:$LINENO: error: OpenSSL version is too old." >&5
  5537. $as_echo "$as_me: error: OpenSSL version is too old." >&2;}
  5538. { (exit 1); exit 1; }; }
  5539. fi
  5540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5541. CXX="$CXX $SSL_LIBS"
  5542. { $as_echo "$as_me:$LINENO: checking for AES_encrypt in -lcrypto" >&5
  5543. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5544. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then
  5545. $as_echo_n "(cached) " >&6
  5546. else
  5547. ac_check_lib_save_LIBS=$LIBS
  5548. LIBS="-lcrypto $LIBS"
  5549. cat >conftest.$ac_ext <<_ACEOF
  5550. /* confdefs.h. */
  5551. _ACEOF
  5552. cat confdefs.h >>conftest.$ac_ext
  5553. cat >>conftest.$ac_ext <<_ACEOF
  5554. /* end confdefs.h. */
  5555. /* Override any GCC internal prototype to avoid an error.
  5556. Use char because int might match the return type of a GCC
  5557. builtin and then its argument prototype would still apply. */
  5558. #ifdef __cplusplus
  5559. extern "C"
  5560. #endif
  5561. char AES_encrypt ();
  5562. int
  5563. main ()
  5564. {
  5565. return AES_encrypt ();
  5566. ;
  5567. return 0;
  5568. }
  5569. _ACEOF
  5570. rm -f conftest.$ac_objext conftest$ac_exeext
  5571. if { (ac_try="$ac_link"
  5572. case "(($ac_try" in
  5573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5574. *) ac_try_echo=$ac_try;;
  5575. esac
  5576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5577. $as_echo "$ac_try_echo") >&5
  5578. (eval "$ac_link") 2>conftest.er1
  5579. ac_status=$?
  5580. grep -v '^ *+' conftest.er1 >conftest.err
  5581. rm -f conftest.er1
  5582. cat conftest.err >&5
  5583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5584. (exit $ac_status); } && {
  5585. test -z "$ac_cxx_werror_flag" ||
  5586. test ! -s conftest.err
  5587. } && test -s conftest$ac_exeext && {
  5588. test "$cross_compiling" = yes ||
  5589. $as_test_x conftest$ac_exeext
  5590. }; then
  5591. ac_cv_lib_crypto_AES_encrypt=yes
  5592. else
  5593. $as_echo "$as_me: failed program was:" >&5
  5594. sed 's/^/| /' conftest.$ac_ext >&5
  5595. ac_cv_lib_crypto_AES_encrypt=no
  5596. fi
  5597. rm -rf conftest.dSYM
  5598. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5599. conftest$ac_exeext conftest.$ac_ext
  5600. LIBS=$ac_check_lib_save_LIBS
  5601. fi
  5602. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5603. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5604. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then
  5605. SSL_LIBS="$SSL_LIBS -lcrypto"
  5606. else
  5607. { $as_echo "$as_me:$LINENO: result: not found." >&5
  5608. $as_echo "not found." >&6; }
  5609. { { $as_echo "$as_me:$LINENO: error: Libcrypto/openssl is required." >&5
  5610. $as_echo "$as_me: error: Libcrypto/openssl is required." >&2;}
  5611. { (exit 1); exit 1; }; }
  5612. fi
  5613. CXX="$save_CXX"
  5614. LIBS="$save_LIBS"
  5615. #AC_SUBST(ZLIB)dnl
  5616. # Checks for typedefs, structures, and compiler characteristics
  5617. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5618. $as_echo_n "checking for pid_t... " >&6; }
  5619. if test "${ac_cv_type_pid_t+set}" = set; then
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. ac_cv_type_pid_t=no
  5623. cat >conftest.$ac_ext <<_ACEOF
  5624. /* confdefs.h. */
  5625. _ACEOF
  5626. cat confdefs.h >>conftest.$ac_ext
  5627. cat >>conftest.$ac_ext <<_ACEOF
  5628. /* end confdefs.h. */
  5629. $ac_includes_default
  5630. int
  5631. main ()
  5632. {
  5633. if (sizeof (pid_t))
  5634. return 0;
  5635. ;
  5636. return 0;
  5637. }
  5638. _ACEOF
  5639. rm -f conftest.$ac_objext
  5640. if { (ac_try="$ac_compile"
  5641. case "(($ac_try" in
  5642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5643. *) ac_try_echo=$ac_try;;
  5644. esac
  5645. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5646. $as_echo "$ac_try_echo") >&5
  5647. (eval "$ac_compile") 2>conftest.er1
  5648. ac_status=$?
  5649. grep -v '^ *+' conftest.er1 >conftest.err
  5650. rm -f conftest.er1
  5651. cat conftest.err >&5
  5652. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5653. (exit $ac_status); } && {
  5654. test -z "$ac_cxx_werror_flag" ||
  5655. test ! -s conftest.err
  5656. } && test -s conftest.$ac_objext; then
  5657. cat >conftest.$ac_ext <<_ACEOF
  5658. /* confdefs.h. */
  5659. _ACEOF
  5660. cat confdefs.h >>conftest.$ac_ext
  5661. cat >>conftest.$ac_ext <<_ACEOF
  5662. /* end confdefs.h. */
  5663. $ac_includes_default
  5664. int
  5665. main ()
  5666. {
  5667. if (sizeof ((pid_t)))
  5668. return 0;
  5669. ;
  5670. return 0;
  5671. }
  5672. _ACEOF
  5673. rm -f conftest.$ac_objext
  5674. if { (ac_try="$ac_compile"
  5675. case "(($ac_try" in
  5676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5677. *) ac_try_echo=$ac_try;;
  5678. esac
  5679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5680. $as_echo "$ac_try_echo") >&5
  5681. (eval "$ac_compile") 2>conftest.er1
  5682. ac_status=$?
  5683. grep -v '^ *+' conftest.er1 >conftest.err
  5684. rm -f conftest.er1
  5685. cat conftest.err >&5
  5686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5687. (exit $ac_status); } && {
  5688. test -z "$ac_cxx_werror_flag" ||
  5689. test ! -s conftest.err
  5690. } && test -s conftest.$ac_objext; then
  5691. :
  5692. else
  5693. $as_echo "$as_me: failed program was:" >&5
  5694. sed 's/^/| /' conftest.$ac_ext >&5
  5695. ac_cv_type_pid_t=yes
  5696. fi
  5697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5698. else
  5699. $as_echo "$as_me: failed program was:" >&5
  5700. sed 's/^/| /' conftest.$ac_ext >&5
  5701. fi
  5702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5703. fi
  5704. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5705. $as_echo "$ac_cv_type_pid_t" >&6; }
  5706. if test "x$ac_cv_type_pid_t" = x""yes; then
  5707. :
  5708. else
  5709. cat >>confdefs.h <<_ACEOF
  5710. #define pid_t int
  5711. _ACEOF
  5712. fi
  5713. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5714. $as_echo_n "checking for size_t... " >&6; }
  5715. if test "${ac_cv_type_size_t+set}" = set; then
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. ac_cv_type_size_t=no
  5719. cat >conftest.$ac_ext <<_ACEOF
  5720. /* confdefs.h. */
  5721. _ACEOF
  5722. cat confdefs.h >>conftest.$ac_ext
  5723. cat >>conftest.$ac_ext <<_ACEOF
  5724. /* end confdefs.h. */
  5725. $ac_includes_default
  5726. int
  5727. main ()
  5728. {
  5729. if (sizeof (size_t))
  5730. return 0;
  5731. ;
  5732. return 0;
  5733. }
  5734. _ACEOF
  5735. rm -f conftest.$ac_objext
  5736. if { (ac_try="$ac_compile"
  5737. case "(($ac_try" in
  5738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5739. *) ac_try_echo=$ac_try;;
  5740. esac
  5741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5742. $as_echo "$ac_try_echo") >&5
  5743. (eval "$ac_compile") 2>conftest.er1
  5744. ac_status=$?
  5745. grep -v '^ *+' conftest.er1 >conftest.err
  5746. rm -f conftest.er1
  5747. cat conftest.err >&5
  5748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. (exit $ac_status); } && {
  5750. test -z "$ac_cxx_werror_flag" ||
  5751. test ! -s conftest.err
  5752. } && test -s conftest.$ac_objext; then
  5753. cat >conftest.$ac_ext <<_ACEOF
  5754. /* confdefs.h. */
  5755. _ACEOF
  5756. cat confdefs.h >>conftest.$ac_ext
  5757. cat >>conftest.$ac_ext <<_ACEOF
  5758. /* end confdefs.h. */
  5759. $ac_includes_default
  5760. int
  5761. main ()
  5762. {
  5763. if (sizeof ((size_t)))
  5764. return 0;
  5765. ;
  5766. return 0;
  5767. }
  5768. _ACEOF
  5769. rm -f conftest.$ac_objext
  5770. if { (ac_try="$ac_compile"
  5771. case "(($ac_try" in
  5772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5773. *) ac_try_echo=$ac_try;;
  5774. esac
  5775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5776. $as_echo "$ac_try_echo") >&5
  5777. (eval "$ac_compile") 2>conftest.er1
  5778. ac_status=$?
  5779. grep -v '^ *+' conftest.er1 >conftest.err
  5780. rm -f conftest.er1
  5781. cat conftest.err >&5
  5782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783. (exit $ac_status); } && {
  5784. test -z "$ac_cxx_werror_flag" ||
  5785. test ! -s conftest.err
  5786. } && test -s conftest.$ac_objext; then
  5787. :
  5788. else
  5789. $as_echo "$as_me: failed program was:" >&5
  5790. sed 's/^/| /' conftest.$ac_ext >&5
  5791. ac_cv_type_size_t=yes
  5792. fi
  5793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5794. else
  5795. $as_echo "$as_me: failed program was:" >&5
  5796. sed 's/^/| /' conftest.$ac_ext >&5
  5797. fi
  5798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5799. fi
  5800. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5801. $as_echo "$ac_cv_type_size_t" >&6; }
  5802. if test "x$ac_cv_type_size_t" = x""yes; then
  5803. :
  5804. else
  5805. cat >>confdefs.h <<_ACEOF
  5806. #define size_t unsigned int
  5807. _ACEOF
  5808. fi
  5809. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5810. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5811. if test "${ac_cv_type_uid_t+set}" = set; then
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. cat >conftest.$ac_ext <<_ACEOF
  5815. /* confdefs.h. */
  5816. _ACEOF
  5817. cat confdefs.h >>conftest.$ac_ext
  5818. cat >>conftest.$ac_ext <<_ACEOF
  5819. /* end confdefs.h. */
  5820. #include <sys/types.h>
  5821. _ACEOF
  5822. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5823. $EGREP "uid_t" >/dev/null 2>&1; then
  5824. ac_cv_type_uid_t=yes
  5825. else
  5826. ac_cv_type_uid_t=no
  5827. fi
  5828. rm -f conftest*
  5829. fi
  5830. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5831. $as_echo "$ac_cv_type_uid_t" >&6; }
  5832. if test $ac_cv_type_uid_t = no; then
  5833. cat >>confdefs.h <<\_ACEOF
  5834. #define uid_t int
  5835. _ACEOF
  5836. cat >>confdefs.h <<\_ACEOF
  5837. #define gid_t int
  5838. _ACEOF
  5839. fi
  5840. #AC_C_CONST
  5841. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5842. $as_echo_n "checking for working volatile... " >&6; }
  5843. if test "${ac_cv_c_volatile+set}" = set; then
  5844. $as_echo_n "(cached) " >&6
  5845. else
  5846. cat >conftest.$ac_ext <<_ACEOF
  5847. /* confdefs.h. */
  5848. _ACEOF
  5849. cat confdefs.h >>conftest.$ac_ext
  5850. cat >>conftest.$ac_ext <<_ACEOF
  5851. /* end confdefs.h. */
  5852. int
  5853. main ()
  5854. {
  5855. volatile int x;
  5856. int * volatile y = (int *) 0;
  5857. return !x && !y;
  5858. ;
  5859. return 0;
  5860. }
  5861. _ACEOF
  5862. rm -f conftest.$ac_objext
  5863. if { (ac_try="$ac_compile"
  5864. case "(($ac_try" in
  5865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5866. *) ac_try_echo=$ac_try;;
  5867. esac
  5868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5869. $as_echo "$ac_try_echo") >&5
  5870. (eval "$ac_compile") 2>conftest.er1
  5871. ac_status=$?
  5872. grep -v '^ *+' conftest.er1 >conftest.err
  5873. rm -f conftest.er1
  5874. cat conftest.err >&5
  5875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5876. (exit $ac_status); } && {
  5877. test -z "$ac_cxx_werror_flag" ||
  5878. test ! -s conftest.err
  5879. } && test -s conftest.$ac_objext; then
  5880. ac_cv_c_volatile=yes
  5881. else
  5882. $as_echo "$as_me: failed program was:" >&5
  5883. sed 's/^/| /' conftest.$ac_ext >&5
  5884. ac_cv_c_volatile=no
  5885. fi
  5886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5887. fi
  5888. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5889. $as_echo "$ac_cv_c_volatile" >&6; }
  5890. if test $ac_cv_c_volatile = no; then
  5891. cat >>confdefs.h <<\_ACEOF
  5892. #define volatile /**/
  5893. _ACEOF
  5894. fi
  5895. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5896. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5897. if test "${ac_cv_c_bigendian+set}" = set; then
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. ac_cv_c_bigendian=unknown
  5901. # See if we're dealing with a universal compiler.
  5902. cat >conftest.$ac_ext <<_ACEOF
  5903. /* confdefs.h. */
  5904. _ACEOF
  5905. cat confdefs.h >>conftest.$ac_ext
  5906. cat >>conftest.$ac_ext <<_ACEOF
  5907. /* end confdefs.h. */
  5908. #ifndef __APPLE_CC__
  5909. not a universal capable compiler
  5910. #endif
  5911. typedef int dummy;
  5912. _ACEOF
  5913. rm -f conftest.$ac_objext
  5914. if { (ac_try="$ac_compile"
  5915. case "(($ac_try" in
  5916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5917. *) ac_try_echo=$ac_try;;
  5918. esac
  5919. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5920. $as_echo "$ac_try_echo") >&5
  5921. (eval "$ac_compile") 2>conftest.er1
  5922. ac_status=$?
  5923. grep -v '^ *+' conftest.er1 >conftest.err
  5924. rm -f conftest.er1
  5925. cat conftest.err >&5
  5926. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5927. (exit $ac_status); } && {
  5928. test -z "$ac_cxx_werror_flag" ||
  5929. test ! -s conftest.err
  5930. } && test -s conftest.$ac_objext; then
  5931. # Check for potential -arch flags. It is not universal unless
  5932. # there are some -arch flags. Note that *ppc* also matches
  5933. # ppc64. This check is also rather less than ideal.
  5934. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5935. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5936. esac
  5937. else
  5938. $as_echo "$as_me: failed program was:" >&5
  5939. sed 's/^/| /' conftest.$ac_ext >&5
  5940. fi
  5941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5942. if test $ac_cv_c_bigendian = unknown; then
  5943. # See if sys/param.h defines the BYTE_ORDER macro.
  5944. cat >conftest.$ac_ext <<_ACEOF
  5945. /* confdefs.h. */
  5946. _ACEOF
  5947. cat confdefs.h >>conftest.$ac_ext
  5948. cat >>conftest.$ac_ext <<_ACEOF
  5949. /* end confdefs.h. */
  5950. #include <sys/types.h>
  5951. #include <sys/param.h>
  5952. int
  5953. main ()
  5954. {
  5955. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5956. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5957. && LITTLE_ENDIAN)
  5958. bogus endian macros
  5959. #endif
  5960. ;
  5961. return 0;
  5962. }
  5963. _ACEOF
  5964. rm -f conftest.$ac_objext
  5965. if { (ac_try="$ac_compile"
  5966. case "(($ac_try" in
  5967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5968. *) ac_try_echo=$ac_try;;
  5969. esac
  5970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5971. $as_echo "$ac_try_echo") >&5
  5972. (eval "$ac_compile") 2>conftest.er1
  5973. ac_status=$?
  5974. grep -v '^ *+' conftest.er1 >conftest.err
  5975. rm -f conftest.er1
  5976. cat conftest.err >&5
  5977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5978. (exit $ac_status); } && {
  5979. test -z "$ac_cxx_werror_flag" ||
  5980. test ! -s conftest.err
  5981. } && test -s conftest.$ac_objext; then
  5982. # It does; now see whether it defined to BIG_ENDIAN or not.
  5983. cat >conftest.$ac_ext <<_ACEOF
  5984. /* confdefs.h. */
  5985. _ACEOF
  5986. cat confdefs.h >>conftest.$ac_ext
  5987. cat >>conftest.$ac_ext <<_ACEOF
  5988. /* end confdefs.h. */
  5989. #include <sys/types.h>
  5990. #include <sys/param.h>
  5991. int
  5992. main ()
  5993. {
  5994. #if BYTE_ORDER != BIG_ENDIAN
  5995. not big endian
  5996. #endif
  5997. ;
  5998. return 0;
  5999. }
  6000. _ACEOF
  6001. rm -f conftest.$ac_objext
  6002. if { (ac_try="$ac_compile"
  6003. case "(($ac_try" in
  6004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6005. *) ac_try_echo=$ac_try;;
  6006. esac
  6007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6008. $as_echo "$ac_try_echo") >&5
  6009. (eval "$ac_compile") 2>conftest.er1
  6010. ac_status=$?
  6011. grep -v '^ *+' conftest.er1 >conftest.err
  6012. rm -f conftest.er1
  6013. cat conftest.err >&5
  6014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); } && {
  6016. test -z "$ac_cxx_werror_flag" ||
  6017. test ! -s conftest.err
  6018. } && test -s conftest.$ac_objext; then
  6019. ac_cv_c_bigendian=yes
  6020. else
  6021. $as_echo "$as_me: failed program was:" >&5
  6022. sed 's/^/| /' conftest.$ac_ext >&5
  6023. ac_cv_c_bigendian=no
  6024. fi
  6025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6026. else
  6027. $as_echo "$as_me: failed program was:" >&5
  6028. sed 's/^/| /' conftest.$ac_ext >&5
  6029. fi
  6030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6031. fi
  6032. if test $ac_cv_c_bigendian = unknown; then
  6033. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6034. cat >conftest.$ac_ext <<_ACEOF
  6035. /* confdefs.h. */
  6036. _ACEOF
  6037. cat confdefs.h >>conftest.$ac_ext
  6038. cat >>conftest.$ac_ext <<_ACEOF
  6039. /* end confdefs.h. */
  6040. #include <limits.h>
  6041. int
  6042. main ()
  6043. {
  6044. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6045. bogus endian macros
  6046. #endif
  6047. ;
  6048. return 0;
  6049. }
  6050. _ACEOF
  6051. rm -f conftest.$ac_objext
  6052. if { (ac_try="$ac_compile"
  6053. case "(($ac_try" in
  6054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6055. *) ac_try_echo=$ac_try;;
  6056. esac
  6057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6058. $as_echo "$ac_try_echo") >&5
  6059. (eval "$ac_compile") 2>conftest.er1
  6060. ac_status=$?
  6061. grep -v '^ *+' conftest.er1 >conftest.err
  6062. rm -f conftest.er1
  6063. cat conftest.err >&5
  6064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6065. (exit $ac_status); } && {
  6066. test -z "$ac_cxx_werror_flag" ||
  6067. test ! -s conftest.err
  6068. } && test -s conftest.$ac_objext; then
  6069. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6070. cat >conftest.$ac_ext <<_ACEOF
  6071. /* confdefs.h. */
  6072. _ACEOF
  6073. cat confdefs.h >>conftest.$ac_ext
  6074. cat >>conftest.$ac_ext <<_ACEOF
  6075. /* end confdefs.h. */
  6076. #include <limits.h>
  6077. int
  6078. main ()
  6079. {
  6080. #ifndef _BIG_ENDIAN
  6081. not big endian
  6082. #endif
  6083. ;
  6084. return 0;
  6085. }
  6086. _ACEOF
  6087. rm -f conftest.$ac_objext
  6088. if { (ac_try="$ac_compile"
  6089. case "(($ac_try" in
  6090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6091. *) ac_try_echo=$ac_try;;
  6092. esac
  6093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6094. $as_echo "$ac_try_echo") >&5
  6095. (eval "$ac_compile") 2>conftest.er1
  6096. ac_status=$?
  6097. grep -v '^ *+' conftest.er1 >conftest.err
  6098. rm -f conftest.er1
  6099. cat conftest.err >&5
  6100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6101. (exit $ac_status); } && {
  6102. test -z "$ac_cxx_werror_flag" ||
  6103. test ! -s conftest.err
  6104. } && test -s conftest.$ac_objext; then
  6105. ac_cv_c_bigendian=yes
  6106. else
  6107. $as_echo "$as_me: failed program was:" >&5
  6108. sed 's/^/| /' conftest.$ac_ext >&5
  6109. ac_cv_c_bigendian=no
  6110. fi
  6111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6112. else
  6113. $as_echo "$as_me: failed program was:" >&5
  6114. sed 's/^/| /' conftest.$ac_ext >&5
  6115. fi
  6116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6117. fi
  6118. if test $ac_cv_c_bigendian = unknown; then
  6119. # Compile a test program.
  6120. if test "$cross_compiling" = yes; then
  6121. # Try to guess by grepping values from an object file.
  6122. cat >conftest.$ac_ext <<_ACEOF
  6123. /* confdefs.h. */
  6124. _ACEOF
  6125. cat confdefs.h >>conftest.$ac_ext
  6126. cat >>conftest.$ac_ext <<_ACEOF
  6127. /* end confdefs.h. */
  6128. short int ascii_mm[] =
  6129. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6130. short int ascii_ii[] =
  6131. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6132. int use_ascii (int i) {
  6133. return ascii_mm[i] + ascii_ii[i];
  6134. }
  6135. short int ebcdic_ii[] =
  6136. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6137. short int ebcdic_mm[] =
  6138. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6139. int use_ebcdic (int i) {
  6140. return ebcdic_mm[i] + ebcdic_ii[i];
  6141. }
  6142. extern int foo;
  6143. int
  6144. main ()
  6145. {
  6146. return use_ascii (foo) == use_ebcdic (foo);
  6147. ;
  6148. return 0;
  6149. }
  6150. _ACEOF
  6151. rm -f conftest.$ac_objext
  6152. if { (ac_try="$ac_compile"
  6153. case "(($ac_try" in
  6154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6155. *) ac_try_echo=$ac_try;;
  6156. esac
  6157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6158. $as_echo "$ac_try_echo") >&5
  6159. (eval "$ac_compile") 2>conftest.er1
  6160. ac_status=$?
  6161. grep -v '^ *+' conftest.er1 >conftest.err
  6162. rm -f conftest.er1
  6163. cat conftest.err >&5
  6164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6165. (exit $ac_status); } && {
  6166. test -z "$ac_cxx_werror_flag" ||
  6167. test ! -s conftest.err
  6168. } && test -s conftest.$ac_objext; then
  6169. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6170. ac_cv_c_bigendian=yes
  6171. fi
  6172. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6173. if test "$ac_cv_c_bigendian" = unknown; then
  6174. ac_cv_c_bigendian=no
  6175. else
  6176. # finding both strings is unlikely to happen, but who knows?
  6177. ac_cv_c_bigendian=unknown
  6178. fi
  6179. fi
  6180. else
  6181. $as_echo "$as_me: failed program was:" >&5
  6182. sed 's/^/| /' conftest.$ac_ext >&5
  6183. fi
  6184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6185. else
  6186. cat >conftest.$ac_ext <<_ACEOF
  6187. /* confdefs.h. */
  6188. _ACEOF
  6189. cat confdefs.h >>conftest.$ac_ext
  6190. cat >>conftest.$ac_ext <<_ACEOF
  6191. /* end confdefs.h. */
  6192. $ac_includes_default
  6193. int
  6194. main ()
  6195. {
  6196. /* Are we little or big endian? From Harbison&Steele. */
  6197. union
  6198. {
  6199. long int l;
  6200. char c[sizeof (long int)];
  6201. } u;
  6202. u.l = 1;
  6203. return u.c[sizeof (long int) - 1] == 1;
  6204. ;
  6205. return 0;
  6206. }
  6207. _ACEOF
  6208. rm -f conftest$ac_exeext
  6209. if { (ac_try="$ac_link"
  6210. case "(($ac_try" in
  6211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6212. *) ac_try_echo=$ac_try;;
  6213. esac
  6214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6215. $as_echo "$ac_try_echo") >&5
  6216. (eval "$ac_link") 2>&5
  6217. ac_status=$?
  6218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6219. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6220. { (case "(($ac_try" in
  6221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6222. *) ac_try_echo=$ac_try;;
  6223. esac
  6224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6225. $as_echo "$ac_try_echo") >&5
  6226. (eval "$ac_try") 2>&5
  6227. ac_status=$?
  6228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6229. (exit $ac_status); }; }; then
  6230. ac_cv_c_bigendian=no
  6231. else
  6232. $as_echo "$as_me: program exited with status $ac_status" >&5
  6233. $as_echo "$as_me: failed program was:" >&5
  6234. sed 's/^/| /' conftest.$ac_ext >&5
  6235. ( exit $ac_status )
  6236. ac_cv_c_bigendian=yes
  6237. fi
  6238. rm -rf conftest.dSYM
  6239. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6240. fi
  6241. fi
  6242. fi
  6243. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6244. $as_echo "$ac_cv_c_bigendian" >&6; }
  6245. case $ac_cv_c_bigendian in #(
  6246. yes)
  6247. cat >>confdefs.h <<\_ACEOF
  6248. #define B_ENDIAN 1
  6249. _ACEOF
  6250. ;; #(
  6251. no)
  6252. cat >>confdefs.h <<\_ACEOF
  6253. #define L_ENDIAN 1
  6254. _ACEOF
  6255. ;; #(
  6256. universal)
  6257. cat >>confdefs.h <<\_ACEOF
  6258. #define AC_APPLE_UNIVERSAL_BUILD 1
  6259. _ACEOF
  6260. ;; #(
  6261. *)
  6262. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6263. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6264. $as_echo "$as_me: error: unknown endianness
  6265. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6266. { (exit 1); exit 1; }; } ;;
  6267. esac
  6268. #AC_C_INLINE
  6269. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6270. $as_echo_n "checking whether char is unsigned... " >&6; }
  6271. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6272. $as_echo_n "(cached) " >&6
  6273. else
  6274. cat >conftest.$ac_ext <<_ACEOF
  6275. /* confdefs.h. */
  6276. _ACEOF
  6277. cat confdefs.h >>conftest.$ac_ext
  6278. cat >>conftest.$ac_ext <<_ACEOF
  6279. /* end confdefs.h. */
  6280. $ac_includes_default
  6281. int
  6282. main ()
  6283. {
  6284. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6285. test_array [0] = 0
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. rm -f conftest.$ac_objext
  6291. if { (ac_try="$ac_compile"
  6292. case "(($ac_try" in
  6293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6294. *) ac_try_echo=$ac_try;;
  6295. esac
  6296. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6297. $as_echo "$ac_try_echo") >&5
  6298. (eval "$ac_compile") 2>conftest.er1
  6299. ac_status=$?
  6300. grep -v '^ *+' conftest.er1 >conftest.err
  6301. rm -f conftest.er1
  6302. cat conftest.err >&5
  6303. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6304. (exit $ac_status); } && {
  6305. test -z "$ac_cxx_werror_flag" ||
  6306. test ! -s conftest.err
  6307. } && test -s conftest.$ac_objext; then
  6308. ac_cv_c_char_unsigned=no
  6309. else
  6310. $as_echo "$as_me: failed program was:" >&5
  6311. sed 's/^/| /' conftest.$ac_ext >&5
  6312. ac_cv_c_char_unsigned=yes
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6315. fi
  6316. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6317. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6318. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6319. cat >>confdefs.h <<\_ACEOF
  6320. #define __CHAR_UNSIGNED__ 1
  6321. _ACEOF
  6322. fi
  6323. #AC_C_STRINGIZE
  6324. #AC_C_PROTOTYPES
  6325. #checkpoint
  6326. cat >confcache <<\_ACEOF
  6327. # This file is a shell script that caches the results of configure
  6328. # tests run on this system so they can be shared between configure
  6329. # scripts and configure runs, see configure's option --config-cache.
  6330. # It is not useful on other systems. If it contains results you don't
  6331. # want to keep, you may remove or edit it.
  6332. #
  6333. # config.status only pays attention to the cache file if you give it
  6334. # the --recheck option to rerun configure.
  6335. #
  6336. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6337. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6338. # following values.
  6339. _ACEOF
  6340. # The following way of writing the cache mishandles newlines in values,
  6341. # but we know of no workaround that is simple, portable, and efficient.
  6342. # So, we kill variables containing newlines.
  6343. # Ultrix sh set writes to stderr and can't be redirected directly,
  6344. # and sets the high bit in the cache file unless we assign to the vars.
  6345. (
  6346. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6347. eval ac_val=\$$ac_var
  6348. case $ac_val in #(
  6349. *${as_nl}*)
  6350. case $ac_var in #(
  6351. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6352. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6353. esac
  6354. case $ac_var in #(
  6355. _ | IFS | as_nl) ;; #(
  6356. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6357. *) $as_unset $ac_var ;;
  6358. esac ;;
  6359. esac
  6360. done
  6361. (set) 2>&1 |
  6362. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6363. *${as_nl}ac_space=\ *)
  6364. # `set' does not quote correctly, so add quotes (double-quote
  6365. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6366. sed -n \
  6367. "s/'/'\\\\''/g;
  6368. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6369. ;; #(
  6370. *)
  6371. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6372. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6373. ;;
  6374. esac |
  6375. sort
  6376. ) |
  6377. sed '
  6378. /^ac_cv_env_/b end
  6379. t clear
  6380. :clear
  6381. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6382. t end
  6383. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6384. :end' >>confcache
  6385. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6386. if test -w "$cache_file"; then
  6387. test "x$cache_file" != "x/dev/null" &&
  6388. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6389. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6390. cat confcache >$cache_file
  6391. else
  6392. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6393. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6394. fi
  6395. fi
  6396. rm -f confcache
  6397. # The cast to long int works around a bug in the HP C Compiler
  6398. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6399. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6400. # This bug is HP SR number 8606223364.
  6401. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6402. $as_echo_n "checking size of short... " >&6; }
  6403. if test "${ac_cv_sizeof_short+set}" = set; then
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. if test "$cross_compiling" = yes; then
  6407. # Depending upon the size, compute the lo and hi bounds.
  6408. cat >conftest.$ac_ext <<_ACEOF
  6409. /* confdefs.h. */
  6410. _ACEOF
  6411. cat confdefs.h >>conftest.$ac_ext
  6412. cat >>conftest.$ac_ext <<_ACEOF
  6413. /* end confdefs.h. */
  6414. $ac_includes_default
  6415. int
  6416. main ()
  6417. {
  6418. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6419. test_array [0] = 0
  6420. ;
  6421. return 0;
  6422. }
  6423. _ACEOF
  6424. rm -f conftest.$ac_objext
  6425. if { (ac_try="$ac_compile"
  6426. case "(($ac_try" in
  6427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6428. *) ac_try_echo=$ac_try;;
  6429. esac
  6430. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6431. $as_echo "$ac_try_echo") >&5
  6432. (eval "$ac_compile") 2>conftest.er1
  6433. ac_status=$?
  6434. grep -v '^ *+' conftest.er1 >conftest.err
  6435. rm -f conftest.er1
  6436. cat conftest.err >&5
  6437. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6438. (exit $ac_status); } && {
  6439. test -z "$ac_cxx_werror_flag" ||
  6440. test ! -s conftest.err
  6441. } && test -s conftest.$ac_objext; then
  6442. ac_lo=0 ac_mid=0
  6443. while :; do
  6444. cat >conftest.$ac_ext <<_ACEOF
  6445. /* confdefs.h. */
  6446. _ACEOF
  6447. cat confdefs.h >>conftest.$ac_ext
  6448. cat >>conftest.$ac_ext <<_ACEOF
  6449. /* end confdefs.h. */
  6450. $ac_includes_default
  6451. int
  6452. main ()
  6453. {
  6454. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6455. test_array [0] = 0
  6456. ;
  6457. return 0;
  6458. }
  6459. _ACEOF
  6460. rm -f conftest.$ac_objext
  6461. if { (ac_try="$ac_compile"
  6462. case "(($ac_try" in
  6463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6464. *) ac_try_echo=$ac_try;;
  6465. esac
  6466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6467. $as_echo "$ac_try_echo") >&5
  6468. (eval "$ac_compile") 2>conftest.er1
  6469. ac_status=$?
  6470. grep -v '^ *+' conftest.er1 >conftest.err
  6471. rm -f conftest.er1
  6472. cat conftest.err >&5
  6473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6474. (exit $ac_status); } && {
  6475. test -z "$ac_cxx_werror_flag" ||
  6476. test ! -s conftest.err
  6477. } && test -s conftest.$ac_objext; then
  6478. ac_hi=$ac_mid; break
  6479. else
  6480. $as_echo "$as_me: failed program was:" >&5
  6481. sed 's/^/| /' conftest.$ac_ext >&5
  6482. ac_lo=`expr $ac_mid + 1`
  6483. if test $ac_lo -le $ac_mid; then
  6484. ac_lo= ac_hi=
  6485. break
  6486. fi
  6487. ac_mid=`expr 2 '*' $ac_mid + 1`
  6488. fi
  6489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6490. done
  6491. else
  6492. $as_echo "$as_me: failed program was:" >&5
  6493. sed 's/^/| /' conftest.$ac_ext >&5
  6494. cat >conftest.$ac_ext <<_ACEOF
  6495. /* confdefs.h. */
  6496. _ACEOF
  6497. cat confdefs.h >>conftest.$ac_ext
  6498. cat >>conftest.$ac_ext <<_ACEOF
  6499. /* end confdefs.h. */
  6500. $ac_includes_default
  6501. int
  6502. main ()
  6503. {
  6504. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6505. test_array [0] = 0
  6506. ;
  6507. return 0;
  6508. }
  6509. _ACEOF
  6510. rm -f conftest.$ac_objext
  6511. if { (ac_try="$ac_compile"
  6512. case "(($ac_try" in
  6513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6514. *) ac_try_echo=$ac_try;;
  6515. esac
  6516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6517. $as_echo "$ac_try_echo") >&5
  6518. (eval "$ac_compile") 2>conftest.er1
  6519. ac_status=$?
  6520. grep -v '^ *+' conftest.er1 >conftest.err
  6521. rm -f conftest.er1
  6522. cat conftest.err >&5
  6523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6524. (exit $ac_status); } && {
  6525. test -z "$ac_cxx_werror_flag" ||
  6526. test ! -s conftest.err
  6527. } && test -s conftest.$ac_objext; then
  6528. ac_hi=-1 ac_mid=-1
  6529. while :; do
  6530. cat >conftest.$ac_ext <<_ACEOF
  6531. /* confdefs.h. */
  6532. _ACEOF
  6533. cat confdefs.h >>conftest.$ac_ext
  6534. cat >>conftest.$ac_ext <<_ACEOF
  6535. /* end confdefs.h. */
  6536. $ac_includes_default
  6537. int
  6538. main ()
  6539. {
  6540. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6541. test_array [0] = 0
  6542. ;
  6543. return 0;
  6544. }
  6545. _ACEOF
  6546. rm -f conftest.$ac_objext
  6547. if { (ac_try="$ac_compile"
  6548. case "(($ac_try" in
  6549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6550. *) ac_try_echo=$ac_try;;
  6551. esac
  6552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6553. $as_echo "$ac_try_echo") >&5
  6554. (eval "$ac_compile") 2>conftest.er1
  6555. ac_status=$?
  6556. grep -v '^ *+' conftest.er1 >conftest.err
  6557. rm -f conftest.er1
  6558. cat conftest.err >&5
  6559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6560. (exit $ac_status); } && {
  6561. test -z "$ac_cxx_werror_flag" ||
  6562. test ! -s conftest.err
  6563. } && test -s conftest.$ac_objext; then
  6564. ac_lo=$ac_mid; break
  6565. else
  6566. $as_echo "$as_me: failed program was:" >&5
  6567. sed 's/^/| /' conftest.$ac_ext >&5
  6568. ac_hi=`expr '(' $ac_mid ')' - 1`
  6569. if test $ac_mid -le $ac_hi; then
  6570. ac_lo= ac_hi=
  6571. break
  6572. fi
  6573. ac_mid=`expr 2 '*' $ac_mid`
  6574. fi
  6575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6576. done
  6577. else
  6578. $as_echo "$as_me: failed program was:" >&5
  6579. sed 's/^/| /' conftest.$ac_ext >&5
  6580. ac_lo= ac_hi=
  6581. fi
  6582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6583. fi
  6584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6585. # Binary search between lo and hi bounds.
  6586. while test "x$ac_lo" != "x$ac_hi"; do
  6587. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6588. cat >conftest.$ac_ext <<_ACEOF
  6589. /* confdefs.h. */
  6590. _ACEOF
  6591. cat confdefs.h >>conftest.$ac_ext
  6592. cat >>conftest.$ac_ext <<_ACEOF
  6593. /* end confdefs.h. */
  6594. $ac_includes_default
  6595. int
  6596. main ()
  6597. {
  6598. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6599. test_array [0] = 0
  6600. ;
  6601. return 0;
  6602. }
  6603. _ACEOF
  6604. rm -f conftest.$ac_objext
  6605. if { (ac_try="$ac_compile"
  6606. case "(($ac_try" in
  6607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6608. *) ac_try_echo=$ac_try;;
  6609. esac
  6610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6611. $as_echo "$ac_try_echo") >&5
  6612. (eval "$ac_compile") 2>conftest.er1
  6613. ac_status=$?
  6614. grep -v '^ *+' conftest.er1 >conftest.err
  6615. rm -f conftest.er1
  6616. cat conftest.err >&5
  6617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618. (exit $ac_status); } && {
  6619. test -z "$ac_cxx_werror_flag" ||
  6620. test ! -s conftest.err
  6621. } && test -s conftest.$ac_objext; then
  6622. ac_hi=$ac_mid
  6623. else
  6624. $as_echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. ac_lo=`expr '(' $ac_mid ')' + 1`
  6627. fi
  6628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6629. done
  6630. case $ac_lo in
  6631. ?*) ac_cv_sizeof_short=$ac_lo;;
  6632. '') if test "$ac_cv_type_short" = yes; then
  6633. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6635. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6636. See \`config.log' for more details." >&5
  6637. $as_echo "$as_me: error: cannot compute sizeof (short)
  6638. See \`config.log' for more details." >&2;}
  6639. { (exit 77); exit 77; }; }; }
  6640. else
  6641. ac_cv_sizeof_short=0
  6642. fi ;;
  6643. esac
  6644. else
  6645. cat >conftest.$ac_ext <<_ACEOF
  6646. /* confdefs.h. */
  6647. _ACEOF
  6648. cat confdefs.h >>conftest.$ac_ext
  6649. cat >>conftest.$ac_ext <<_ACEOF
  6650. /* end confdefs.h. */
  6651. $ac_includes_default
  6652. static long int longval () { return (long int) (sizeof (short)); }
  6653. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6654. #include <stdio.h>
  6655. #include <stdlib.h>
  6656. int
  6657. main ()
  6658. {
  6659. FILE *f = fopen ("conftest.val", "w");
  6660. if (! f)
  6661. return 1;
  6662. if (((long int) (sizeof (short))) < 0)
  6663. {
  6664. long int i = longval ();
  6665. if (i != ((long int) (sizeof (short))))
  6666. return 1;
  6667. fprintf (f, "%ld", i);
  6668. }
  6669. else
  6670. {
  6671. unsigned long int i = ulongval ();
  6672. if (i != ((long int) (sizeof (short))))
  6673. return 1;
  6674. fprintf (f, "%lu", i);
  6675. }
  6676. /* Do not output a trailing newline, as this causes \r\n confusion
  6677. on some platforms. */
  6678. return ferror (f) || fclose (f) != 0;
  6679. ;
  6680. return 0;
  6681. }
  6682. _ACEOF
  6683. rm -f conftest$ac_exeext
  6684. if { (ac_try="$ac_link"
  6685. case "(($ac_try" in
  6686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6687. *) ac_try_echo=$ac_try;;
  6688. esac
  6689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6690. $as_echo "$ac_try_echo") >&5
  6691. (eval "$ac_link") 2>&5
  6692. ac_status=$?
  6693. $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6700. $as_echo "$ac_try_echo") >&5
  6701. (eval "$ac_try") 2>&5
  6702. ac_status=$?
  6703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6704. (exit $ac_status); }; }; then
  6705. ac_cv_sizeof_short=`cat conftest.val`
  6706. else
  6707. $as_echo "$as_me: program exited with status $ac_status" >&5
  6708. $as_echo "$as_me: failed program was:" >&5
  6709. sed 's/^/| /' conftest.$ac_ext >&5
  6710. ( exit $ac_status )
  6711. if test "$ac_cv_type_short" = yes; then
  6712. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6714. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6715. See \`config.log' for more details." >&5
  6716. $as_echo "$as_me: error: cannot compute sizeof (short)
  6717. See \`config.log' for more details." >&2;}
  6718. { (exit 77); exit 77; }; }; }
  6719. else
  6720. ac_cv_sizeof_short=0
  6721. fi
  6722. fi
  6723. rm -rf conftest.dSYM
  6724. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6725. fi
  6726. rm -f conftest.val
  6727. fi
  6728. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6729. $as_echo "$ac_cv_sizeof_short" >&6; }
  6730. cat >>confdefs.h <<_ACEOF
  6731. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6732. _ACEOF
  6733. # The cast to long int works around a bug in the HP C Compiler
  6734. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6735. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6736. # This bug is HP SR number 8606223364.
  6737. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6738. $as_echo_n "checking size of int... " >&6; }
  6739. if test "${ac_cv_sizeof_int+set}" = set; then
  6740. $as_echo_n "(cached) " >&6
  6741. else
  6742. if test "$cross_compiling" = yes; then
  6743. # Depending upon the size, compute the lo and hi bounds.
  6744. cat >conftest.$ac_ext <<_ACEOF
  6745. /* confdefs.h. */
  6746. _ACEOF
  6747. cat confdefs.h >>conftest.$ac_ext
  6748. cat >>conftest.$ac_ext <<_ACEOF
  6749. /* end confdefs.h. */
  6750. $ac_includes_default
  6751. int
  6752. main ()
  6753. {
  6754. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6755. test_array [0] = 0
  6756. ;
  6757. return 0;
  6758. }
  6759. _ACEOF
  6760. rm -f conftest.$ac_objext
  6761. if { (ac_try="$ac_compile"
  6762. case "(($ac_try" in
  6763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6764. *) ac_try_echo=$ac_try;;
  6765. esac
  6766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6767. $as_echo "$ac_try_echo") >&5
  6768. (eval "$ac_compile") 2>conftest.er1
  6769. ac_status=$?
  6770. grep -v '^ *+' conftest.er1 >conftest.err
  6771. rm -f conftest.er1
  6772. cat conftest.err >&5
  6773. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6774. (exit $ac_status); } && {
  6775. test -z "$ac_cxx_werror_flag" ||
  6776. test ! -s conftest.err
  6777. } && test -s conftest.$ac_objext; then
  6778. ac_lo=0 ac_mid=0
  6779. while :; do
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. $ac_includes_default
  6787. int
  6788. main ()
  6789. {
  6790. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6791. test_array [0] = 0
  6792. ;
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. rm -f conftest.$ac_objext
  6797. if { (ac_try="$ac_compile"
  6798. case "(($ac_try" in
  6799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6800. *) ac_try_echo=$ac_try;;
  6801. esac
  6802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6803. $as_echo "$ac_try_echo") >&5
  6804. (eval "$ac_compile") 2>conftest.er1
  6805. ac_status=$?
  6806. grep -v '^ *+' conftest.er1 >conftest.err
  6807. rm -f conftest.er1
  6808. cat conftest.err >&5
  6809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); } && {
  6811. test -z "$ac_cxx_werror_flag" ||
  6812. test ! -s conftest.err
  6813. } && test -s conftest.$ac_objext; then
  6814. ac_hi=$ac_mid; break
  6815. else
  6816. $as_echo "$as_me: failed program was:" >&5
  6817. sed 's/^/| /' conftest.$ac_ext >&5
  6818. ac_lo=`expr $ac_mid + 1`
  6819. if test $ac_lo -le $ac_mid; then
  6820. ac_lo= ac_hi=
  6821. break
  6822. fi
  6823. ac_mid=`expr 2 '*' $ac_mid + 1`
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6826. done
  6827. else
  6828. $as_echo "$as_me: failed program was:" >&5
  6829. sed 's/^/| /' conftest.$ac_ext >&5
  6830. cat >conftest.$ac_ext <<_ACEOF
  6831. /* confdefs.h. */
  6832. _ACEOF
  6833. cat confdefs.h >>conftest.$ac_ext
  6834. cat >>conftest.$ac_ext <<_ACEOF
  6835. /* end confdefs.h. */
  6836. $ac_includes_default
  6837. int
  6838. main ()
  6839. {
  6840. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6841. test_array [0] = 0
  6842. ;
  6843. return 0;
  6844. }
  6845. _ACEOF
  6846. rm -f conftest.$ac_objext
  6847. if { (ac_try="$ac_compile"
  6848. case "(($ac_try" in
  6849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6850. *) ac_try_echo=$ac_try;;
  6851. esac
  6852. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6853. $as_echo "$ac_try_echo") >&5
  6854. (eval "$ac_compile") 2>conftest.er1
  6855. ac_status=$?
  6856. grep -v '^ *+' conftest.er1 >conftest.err
  6857. rm -f conftest.er1
  6858. cat conftest.err >&5
  6859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6860. (exit $ac_status); } && {
  6861. test -z "$ac_cxx_werror_flag" ||
  6862. test ! -s conftest.err
  6863. } && test -s conftest.$ac_objext; then
  6864. ac_hi=-1 ac_mid=-1
  6865. while :; do
  6866. cat >conftest.$ac_ext <<_ACEOF
  6867. /* confdefs.h. */
  6868. _ACEOF
  6869. cat confdefs.h >>conftest.$ac_ext
  6870. cat >>conftest.$ac_ext <<_ACEOF
  6871. /* end confdefs.h. */
  6872. $ac_includes_default
  6873. int
  6874. main ()
  6875. {
  6876. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6877. test_array [0] = 0
  6878. ;
  6879. return 0;
  6880. }
  6881. _ACEOF
  6882. rm -f conftest.$ac_objext
  6883. if { (ac_try="$ac_compile"
  6884. case "(($ac_try" in
  6885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6886. *) ac_try_echo=$ac_try;;
  6887. esac
  6888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6889. $as_echo "$ac_try_echo") >&5
  6890. (eval "$ac_compile") 2>conftest.er1
  6891. ac_status=$?
  6892. grep -v '^ *+' conftest.er1 >conftest.err
  6893. rm -f conftest.er1
  6894. cat conftest.err >&5
  6895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6896. (exit $ac_status); } && {
  6897. test -z "$ac_cxx_werror_flag" ||
  6898. test ! -s conftest.err
  6899. } && test -s conftest.$ac_objext; then
  6900. ac_lo=$ac_mid; break
  6901. else
  6902. $as_echo "$as_me: failed program was:" >&5
  6903. sed 's/^/| /' conftest.$ac_ext >&5
  6904. ac_hi=`expr '(' $ac_mid ')' - 1`
  6905. if test $ac_mid -le $ac_hi; then
  6906. ac_lo= ac_hi=
  6907. break
  6908. fi
  6909. ac_mid=`expr 2 '*' $ac_mid`
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6912. done
  6913. else
  6914. $as_echo "$as_me: failed program was:" >&5
  6915. sed 's/^/| /' conftest.$ac_ext >&5
  6916. ac_lo= ac_hi=
  6917. fi
  6918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6919. fi
  6920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6921. # Binary search between lo and hi bounds.
  6922. while test "x$ac_lo" != "x$ac_hi"; do
  6923. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6924. cat >conftest.$ac_ext <<_ACEOF
  6925. /* confdefs.h. */
  6926. _ACEOF
  6927. cat confdefs.h >>conftest.$ac_ext
  6928. cat >>conftest.$ac_ext <<_ACEOF
  6929. /* end confdefs.h. */
  6930. $ac_includes_default
  6931. int
  6932. main ()
  6933. {
  6934. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6935. test_array [0] = 0
  6936. ;
  6937. return 0;
  6938. }
  6939. _ACEOF
  6940. rm -f conftest.$ac_objext
  6941. if { (ac_try="$ac_compile"
  6942. case "(($ac_try" in
  6943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6944. *) ac_try_echo=$ac_try;;
  6945. esac
  6946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6947. $as_echo "$ac_try_echo") >&5
  6948. (eval "$ac_compile") 2>conftest.er1
  6949. ac_status=$?
  6950. grep -v '^ *+' conftest.er1 >conftest.err
  6951. rm -f conftest.er1
  6952. cat conftest.err >&5
  6953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6954. (exit $ac_status); } && {
  6955. test -z "$ac_cxx_werror_flag" ||
  6956. test ! -s conftest.err
  6957. } && test -s conftest.$ac_objext; then
  6958. ac_hi=$ac_mid
  6959. else
  6960. $as_echo "$as_me: failed program was:" >&5
  6961. sed 's/^/| /' conftest.$ac_ext >&5
  6962. ac_lo=`expr '(' $ac_mid ')' + 1`
  6963. fi
  6964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6965. done
  6966. case $ac_lo in
  6967. ?*) ac_cv_sizeof_int=$ac_lo;;
  6968. '') if test "$ac_cv_type_int" = yes; then
  6969. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6970. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6971. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6972. See \`config.log' for more details." >&5
  6973. $as_echo "$as_me: error: cannot compute sizeof (int)
  6974. See \`config.log' for more details." >&2;}
  6975. { (exit 77); exit 77; }; }; }
  6976. else
  6977. ac_cv_sizeof_int=0
  6978. fi ;;
  6979. esac
  6980. else
  6981. cat >conftest.$ac_ext <<_ACEOF
  6982. /* confdefs.h. */
  6983. _ACEOF
  6984. cat confdefs.h >>conftest.$ac_ext
  6985. cat >>conftest.$ac_ext <<_ACEOF
  6986. /* end confdefs.h. */
  6987. $ac_includes_default
  6988. static long int longval () { return (long int) (sizeof (int)); }
  6989. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6990. #include <stdio.h>
  6991. #include <stdlib.h>
  6992. int
  6993. main ()
  6994. {
  6995. FILE *f = fopen ("conftest.val", "w");
  6996. if (! f)
  6997. return 1;
  6998. if (((long int) (sizeof (int))) < 0)
  6999. {
  7000. long int i = longval ();
  7001. if (i != ((long int) (sizeof (int))))
  7002. return 1;
  7003. fprintf (f, "%ld", i);
  7004. }
  7005. else
  7006. {
  7007. unsigned long int i = ulongval ();
  7008. if (i != ((long int) (sizeof (int))))
  7009. return 1;
  7010. fprintf (f, "%lu", i);
  7011. }
  7012. /* Do not output a trailing newline, as this causes \r\n confusion
  7013. on some platforms. */
  7014. return ferror (f) || fclose (f) != 0;
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. rm -f conftest$ac_exeext
  7020. if { (ac_try="$ac_link"
  7021. case "(($ac_try" in
  7022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7023. *) ac_try_echo=$ac_try;;
  7024. esac
  7025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7026. $as_echo "$ac_try_echo") >&5
  7027. (eval "$ac_link") 2>&5
  7028. ac_status=$?
  7029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7030. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7031. { (case "(($ac_try" in
  7032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7033. *) ac_try_echo=$ac_try;;
  7034. esac
  7035. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7036. $as_echo "$ac_try_echo") >&5
  7037. (eval "$ac_try") 2>&5
  7038. ac_status=$?
  7039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. (exit $ac_status); }; }; then
  7041. ac_cv_sizeof_int=`cat conftest.val`
  7042. else
  7043. $as_echo "$as_me: program exited with status $ac_status" >&5
  7044. $as_echo "$as_me: failed program was:" >&5
  7045. sed 's/^/| /' conftest.$ac_ext >&5
  7046. ( exit $ac_status )
  7047. if test "$ac_cv_type_int" = yes; then
  7048. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7050. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  7051. See \`config.log' for more details." >&5
  7052. $as_echo "$as_me: error: cannot compute sizeof (int)
  7053. See \`config.log' for more details." >&2;}
  7054. { (exit 77); exit 77; }; }; }
  7055. else
  7056. ac_cv_sizeof_int=0
  7057. fi
  7058. fi
  7059. rm -rf conftest.dSYM
  7060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7061. fi
  7062. rm -f conftest.val
  7063. fi
  7064. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7065. $as_echo "$ac_cv_sizeof_int" >&6; }
  7066. cat >>confdefs.h <<_ACEOF
  7067. #define SIZEOF_INT $ac_cv_sizeof_int
  7068. _ACEOF
  7069. # The cast to long int works around a bug in the HP C Compiler
  7070. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7071. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7072. # This bug is HP SR number 8606223364.
  7073. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  7074. $as_echo_n "checking size of long... " >&6; }
  7075. if test "${ac_cv_sizeof_long+set}" = set; then
  7076. $as_echo_n "(cached) " >&6
  7077. else
  7078. if test "$cross_compiling" = yes; then
  7079. # Depending upon the size, compute the lo and hi bounds.
  7080. cat >conftest.$ac_ext <<_ACEOF
  7081. /* confdefs.h. */
  7082. _ACEOF
  7083. cat confdefs.h >>conftest.$ac_ext
  7084. cat >>conftest.$ac_ext <<_ACEOF
  7085. /* end confdefs.h. */
  7086. $ac_includes_default
  7087. int
  7088. main ()
  7089. {
  7090. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  7091. test_array [0] = 0
  7092. ;
  7093. return 0;
  7094. }
  7095. _ACEOF
  7096. rm -f conftest.$ac_objext
  7097. if { (ac_try="$ac_compile"
  7098. case "(($ac_try" in
  7099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7100. *) ac_try_echo=$ac_try;;
  7101. esac
  7102. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7103. $as_echo "$ac_try_echo") >&5
  7104. (eval "$ac_compile") 2>conftest.er1
  7105. ac_status=$?
  7106. grep -v '^ *+' conftest.er1 >conftest.err
  7107. rm -f conftest.er1
  7108. cat conftest.err >&5
  7109. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); } && {
  7111. test -z "$ac_cxx_werror_flag" ||
  7112. test ! -s conftest.err
  7113. } && test -s conftest.$ac_objext; then
  7114. ac_lo=0 ac_mid=0
  7115. while :; do
  7116. cat >conftest.$ac_ext <<_ACEOF
  7117. /* confdefs.h. */
  7118. _ACEOF
  7119. cat confdefs.h >>conftest.$ac_ext
  7120. cat >>conftest.$ac_ext <<_ACEOF
  7121. /* end confdefs.h. */
  7122. $ac_includes_default
  7123. int
  7124. main ()
  7125. {
  7126. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7127. test_array [0] = 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7139. $as_echo "$ac_try_echo") >&5
  7140. (eval "$ac_compile") 2>conftest.er1
  7141. ac_status=$?
  7142. grep -v '^ *+' conftest.er1 >conftest.err
  7143. rm -f conftest.er1
  7144. cat conftest.err >&5
  7145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7146. (exit $ac_status); } && {
  7147. test -z "$ac_cxx_werror_flag" ||
  7148. test ! -s conftest.err
  7149. } && test -s conftest.$ac_objext; then
  7150. ac_hi=$ac_mid; break
  7151. else
  7152. $as_echo "$as_me: failed program was:" >&5
  7153. sed 's/^/| /' conftest.$ac_ext >&5
  7154. ac_lo=`expr $ac_mid + 1`
  7155. if test $ac_lo -le $ac_mid; then
  7156. ac_lo= ac_hi=
  7157. break
  7158. fi
  7159. ac_mid=`expr 2 '*' $ac_mid + 1`
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7162. done
  7163. else
  7164. $as_echo "$as_me: failed program was:" >&5
  7165. sed 's/^/| /' conftest.$ac_ext >&5
  7166. cat >conftest.$ac_ext <<_ACEOF
  7167. /* confdefs.h. */
  7168. _ACEOF
  7169. cat confdefs.h >>conftest.$ac_ext
  7170. cat >>conftest.$ac_ext <<_ACEOF
  7171. /* end confdefs.h. */
  7172. $ac_includes_default
  7173. int
  7174. main ()
  7175. {
  7176. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  7177. test_array [0] = 0
  7178. ;
  7179. return 0;
  7180. }
  7181. _ACEOF
  7182. rm -f conftest.$ac_objext
  7183. if { (ac_try="$ac_compile"
  7184. case "(($ac_try" in
  7185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7186. *) ac_try_echo=$ac_try;;
  7187. esac
  7188. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7189. $as_echo "$ac_try_echo") >&5
  7190. (eval "$ac_compile") 2>conftest.er1
  7191. ac_status=$?
  7192. grep -v '^ *+' conftest.er1 >conftest.err
  7193. rm -f conftest.er1
  7194. cat conftest.err >&5
  7195. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7196. (exit $ac_status); } && {
  7197. test -z "$ac_cxx_werror_flag" ||
  7198. test ! -s conftest.err
  7199. } && test -s conftest.$ac_objext; then
  7200. ac_hi=-1 ac_mid=-1
  7201. while :; do
  7202. cat >conftest.$ac_ext <<_ACEOF
  7203. /* confdefs.h. */
  7204. _ACEOF
  7205. cat confdefs.h >>conftest.$ac_ext
  7206. cat >>conftest.$ac_ext <<_ACEOF
  7207. /* end confdefs.h. */
  7208. $ac_includes_default
  7209. int
  7210. main ()
  7211. {
  7212. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7213. test_array [0] = 0
  7214. ;
  7215. return 0;
  7216. }
  7217. _ACEOF
  7218. rm -f conftest.$ac_objext
  7219. if { (ac_try="$ac_compile"
  7220. case "(($ac_try" in
  7221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7222. *) ac_try_echo=$ac_try;;
  7223. esac
  7224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7225. $as_echo "$ac_try_echo") >&5
  7226. (eval "$ac_compile") 2>conftest.er1
  7227. ac_status=$?
  7228. grep -v '^ *+' conftest.er1 >conftest.err
  7229. rm -f conftest.er1
  7230. cat conftest.err >&5
  7231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); } && {
  7233. test -z "$ac_cxx_werror_flag" ||
  7234. test ! -s conftest.err
  7235. } && test -s conftest.$ac_objext; then
  7236. ac_lo=$ac_mid; break
  7237. else
  7238. $as_echo "$as_me: failed program was:" >&5
  7239. sed 's/^/| /' conftest.$ac_ext >&5
  7240. ac_hi=`expr '(' $ac_mid ')' - 1`
  7241. if test $ac_mid -le $ac_hi; then
  7242. ac_lo= ac_hi=
  7243. break
  7244. fi
  7245. ac_mid=`expr 2 '*' $ac_mid`
  7246. fi
  7247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7248. done
  7249. else
  7250. $as_echo "$as_me: failed program was:" >&5
  7251. sed 's/^/| /' conftest.$ac_ext >&5
  7252. ac_lo= ac_hi=
  7253. fi
  7254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7255. fi
  7256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7257. # Binary search between lo and hi bounds.
  7258. while test "x$ac_lo" != "x$ac_hi"; do
  7259. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7260. cat >conftest.$ac_ext <<_ACEOF
  7261. /* confdefs.h. */
  7262. _ACEOF
  7263. cat confdefs.h >>conftest.$ac_ext
  7264. cat >>conftest.$ac_ext <<_ACEOF
  7265. /* end confdefs.h. */
  7266. $ac_includes_default
  7267. int
  7268. main ()
  7269. {
  7270. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7271. test_array [0] = 0
  7272. ;
  7273. return 0;
  7274. }
  7275. _ACEOF
  7276. rm -f conftest.$ac_objext
  7277. if { (ac_try="$ac_compile"
  7278. case "(($ac_try" in
  7279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7280. *) ac_try_echo=$ac_try;;
  7281. esac
  7282. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7283. $as_echo "$ac_try_echo") >&5
  7284. (eval "$ac_compile") 2>conftest.er1
  7285. ac_status=$?
  7286. grep -v '^ *+' conftest.er1 >conftest.err
  7287. rm -f conftest.er1
  7288. cat conftest.err >&5
  7289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7290. (exit $ac_status); } && {
  7291. test -z "$ac_cxx_werror_flag" ||
  7292. test ! -s conftest.err
  7293. } && test -s conftest.$ac_objext; then
  7294. ac_hi=$ac_mid
  7295. else
  7296. $as_echo "$as_me: failed program was:" >&5
  7297. sed 's/^/| /' conftest.$ac_ext >&5
  7298. ac_lo=`expr '(' $ac_mid ')' + 1`
  7299. fi
  7300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7301. done
  7302. case $ac_lo in
  7303. ?*) ac_cv_sizeof_long=$ac_lo;;
  7304. '') if test "$ac_cv_type_long" = yes; then
  7305. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7307. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7308. See \`config.log' for more details." >&5
  7309. $as_echo "$as_me: error: cannot compute sizeof (long)
  7310. See \`config.log' for more details." >&2;}
  7311. { (exit 77); exit 77; }; }; }
  7312. else
  7313. ac_cv_sizeof_long=0
  7314. fi ;;
  7315. esac
  7316. else
  7317. cat >conftest.$ac_ext <<_ACEOF
  7318. /* confdefs.h. */
  7319. _ACEOF
  7320. cat confdefs.h >>conftest.$ac_ext
  7321. cat >>conftest.$ac_ext <<_ACEOF
  7322. /* end confdefs.h. */
  7323. $ac_includes_default
  7324. static long int longval () { return (long int) (sizeof (long)); }
  7325. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7326. #include <stdio.h>
  7327. #include <stdlib.h>
  7328. int
  7329. main ()
  7330. {
  7331. FILE *f = fopen ("conftest.val", "w");
  7332. if (! f)
  7333. return 1;
  7334. if (((long int) (sizeof (long))) < 0)
  7335. {
  7336. long int i = longval ();
  7337. if (i != ((long int) (sizeof (long))))
  7338. return 1;
  7339. fprintf (f, "%ld", i);
  7340. }
  7341. else
  7342. {
  7343. unsigned long int i = ulongval ();
  7344. if (i != ((long int) (sizeof (long))))
  7345. return 1;
  7346. fprintf (f, "%lu", i);
  7347. }
  7348. /* Do not output a trailing newline, as this causes \r\n confusion
  7349. on some platforms. */
  7350. return ferror (f) || fclose (f) != 0;
  7351. ;
  7352. return 0;
  7353. }
  7354. _ACEOF
  7355. rm -f conftest$ac_exeext
  7356. if { (ac_try="$ac_link"
  7357. case "(($ac_try" in
  7358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7359. *) ac_try_echo=$ac_try;;
  7360. esac
  7361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7362. $as_echo "$ac_try_echo") >&5
  7363. (eval "$ac_link") 2>&5
  7364. ac_status=$?
  7365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7366. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7367. { (case "(($ac_try" in
  7368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7369. *) ac_try_echo=$ac_try;;
  7370. esac
  7371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7372. $as_echo "$ac_try_echo") >&5
  7373. (eval "$ac_try") 2>&5
  7374. ac_status=$?
  7375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); }; }; then
  7377. ac_cv_sizeof_long=`cat conftest.val`
  7378. else
  7379. $as_echo "$as_me: program exited with status $ac_status" >&5
  7380. $as_echo "$as_me: failed program was:" >&5
  7381. sed 's/^/| /' conftest.$ac_ext >&5
  7382. ( exit $ac_status )
  7383. if test "$ac_cv_type_long" = yes; then
  7384. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7385. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7386. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7387. See \`config.log' for more details." >&5
  7388. $as_echo "$as_me: error: cannot compute sizeof (long)
  7389. See \`config.log' for more details." >&2;}
  7390. { (exit 77); exit 77; }; }; }
  7391. else
  7392. ac_cv_sizeof_long=0
  7393. fi
  7394. fi
  7395. rm -rf conftest.dSYM
  7396. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7397. fi
  7398. rm -f conftest.val
  7399. fi
  7400. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7401. $as_echo "$ac_cv_sizeof_long" >&6; }
  7402. cat >>confdefs.h <<_ACEOF
  7403. #define SIZEOF_LONG $ac_cv_sizeof_long
  7404. _ACEOF
  7405. # The cast to long int works around a bug in the HP C Compiler
  7406. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7407. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7408. # This bug is HP SR number 8606223364.
  7409. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7410. $as_echo_n "checking size of long long... " >&6; }
  7411. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7412. $as_echo_n "(cached) " >&6
  7413. else
  7414. if test "$cross_compiling" = yes; then
  7415. # Depending upon the size, compute the lo and hi bounds.
  7416. cat >conftest.$ac_ext <<_ACEOF
  7417. /* confdefs.h. */
  7418. _ACEOF
  7419. cat confdefs.h >>conftest.$ac_ext
  7420. cat >>conftest.$ac_ext <<_ACEOF
  7421. /* end confdefs.h. */
  7422. $ac_includes_default
  7423. int
  7424. main ()
  7425. {
  7426. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7427. test_array [0] = 0
  7428. ;
  7429. return 0;
  7430. }
  7431. _ACEOF
  7432. rm -f conftest.$ac_objext
  7433. if { (ac_try="$ac_compile"
  7434. case "(($ac_try" in
  7435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7436. *) ac_try_echo=$ac_try;;
  7437. esac
  7438. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7439. $as_echo "$ac_try_echo") >&5
  7440. (eval "$ac_compile") 2>conftest.er1
  7441. ac_status=$?
  7442. grep -v '^ *+' conftest.er1 >conftest.err
  7443. rm -f conftest.er1
  7444. cat conftest.err >&5
  7445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7446. (exit $ac_status); } && {
  7447. test -z "$ac_cxx_werror_flag" ||
  7448. test ! -s conftest.err
  7449. } && test -s conftest.$ac_objext; then
  7450. ac_lo=0 ac_mid=0
  7451. while :; do
  7452. cat >conftest.$ac_ext <<_ACEOF
  7453. /* confdefs.h. */
  7454. _ACEOF
  7455. cat confdefs.h >>conftest.$ac_ext
  7456. cat >>conftest.$ac_ext <<_ACEOF
  7457. /* end confdefs.h. */
  7458. $ac_includes_default
  7459. int
  7460. main ()
  7461. {
  7462. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7463. test_array [0] = 0
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. rm -f conftest.$ac_objext
  7469. if { (ac_try="$ac_compile"
  7470. case "(($ac_try" in
  7471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7472. *) ac_try_echo=$ac_try;;
  7473. esac
  7474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7475. $as_echo "$ac_try_echo") >&5
  7476. (eval "$ac_compile") 2>conftest.er1
  7477. ac_status=$?
  7478. grep -v '^ *+' conftest.er1 >conftest.err
  7479. rm -f conftest.er1
  7480. cat conftest.err >&5
  7481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7482. (exit $ac_status); } && {
  7483. test -z "$ac_cxx_werror_flag" ||
  7484. test ! -s conftest.err
  7485. } && test -s conftest.$ac_objext; then
  7486. ac_hi=$ac_mid; break
  7487. else
  7488. $as_echo "$as_me: failed program was:" >&5
  7489. sed 's/^/| /' conftest.$ac_ext >&5
  7490. ac_lo=`expr $ac_mid + 1`
  7491. if test $ac_lo -le $ac_mid; then
  7492. ac_lo= ac_hi=
  7493. break
  7494. fi
  7495. ac_mid=`expr 2 '*' $ac_mid + 1`
  7496. fi
  7497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7498. done
  7499. else
  7500. $as_echo "$as_me: failed program was:" >&5
  7501. sed 's/^/| /' conftest.$ac_ext >&5
  7502. cat >conftest.$ac_ext <<_ACEOF
  7503. /* confdefs.h. */
  7504. _ACEOF
  7505. cat confdefs.h >>conftest.$ac_ext
  7506. cat >>conftest.$ac_ext <<_ACEOF
  7507. /* end confdefs.h. */
  7508. $ac_includes_default
  7509. int
  7510. main ()
  7511. {
  7512. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7513. test_array [0] = 0
  7514. ;
  7515. return 0;
  7516. }
  7517. _ACEOF
  7518. rm -f conftest.$ac_objext
  7519. if { (ac_try="$ac_compile"
  7520. case "(($ac_try" in
  7521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7522. *) ac_try_echo=$ac_try;;
  7523. esac
  7524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7525. $as_echo "$ac_try_echo") >&5
  7526. (eval "$ac_compile") 2>conftest.er1
  7527. ac_status=$?
  7528. grep -v '^ *+' conftest.er1 >conftest.err
  7529. rm -f conftest.er1
  7530. cat conftest.err >&5
  7531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7532. (exit $ac_status); } && {
  7533. test -z "$ac_cxx_werror_flag" ||
  7534. test ! -s conftest.err
  7535. } && test -s conftest.$ac_objext; then
  7536. ac_hi=-1 ac_mid=-1
  7537. while :; do
  7538. cat >conftest.$ac_ext <<_ACEOF
  7539. /* confdefs.h. */
  7540. _ACEOF
  7541. cat confdefs.h >>conftest.$ac_ext
  7542. cat >>conftest.$ac_ext <<_ACEOF
  7543. /* end confdefs.h. */
  7544. $ac_includes_default
  7545. int
  7546. main ()
  7547. {
  7548. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7549. test_array [0] = 0
  7550. ;
  7551. return 0;
  7552. }
  7553. _ACEOF
  7554. rm -f conftest.$ac_objext
  7555. if { (ac_try="$ac_compile"
  7556. case "(($ac_try" in
  7557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7558. *) ac_try_echo=$ac_try;;
  7559. esac
  7560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7561. $as_echo "$ac_try_echo") >&5
  7562. (eval "$ac_compile") 2>conftest.er1
  7563. ac_status=$?
  7564. grep -v '^ *+' conftest.er1 >conftest.err
  7565. rm -f conftest.er1
  7566. cat conftest.err >&5
  7567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. (exit $ac_status); } && {
  7569. test -z "$ac_cxx_werror_flag" ||
  7570. test ! -s conftest.err
  7571. } && test -s conftest.$ac_objext; then
  7572. ac_lo=$ac_mid; break
  7573. else
  7574. $as_echo "$as_me: failed program was:" >&5
  7575. sed 's/^/| /' conftest.$ac_ext >&5
  7576. ac_hi=`expr '(' $ac_mid ')' - 1`
  7577. if test $ac_mid -le $ac_hi; then
  7578. ac_lo= ac_hi=
  7579. break
  7580. fi
  7581. ac_mid=`expr 2 '*' $ac_mid`
  7582. fi
  7583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7584. done
  7585. else
  7586. $as_echo "$as_me: failed program was:" >&5
  7587. sed 's/^/| /' conftest.$ac_ext >&5
  7588. ac_lo= ac_hi=
  7589. fi
  7590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7593. # Binary search between lo and hi bounds.
  7594. while test "x$ac_lo" != "x$ac_hi"; do
  7595. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7596. cat >conftest.$ac_ext <<_ACEOF
  7597. /* confdefs.h. */
  7598. _ACEOF
  7599. cat confdefs.h >>conftest.$ac_ext
  7600. cat >>conftest.$ac_ext <<_ACEOF
  7601. /* end confdefs.h. */
  7602. $ac_includes_default
  7603. int
  7604. main ()
  7605. {
  7606. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7607. test_array [0] = 0
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. rm -f conftest.$ac_objext
  7613. if { (ac_try="$ac_compile"
  7614. case "(($ac_try" in
  7615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7616. *) ac_try_echo=$ac_try;;
  7617. esac
  7618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7619. $as_echo "$ac_try_echo") >&5
  7620. (eval "$ac_compile") 2>conftest.er1
  7621. ac_status=$?
  7622. grep -v '^ *+' conftest.er1 >conftest.err
  7623. rm -f conftest.er1
  7624. cat conftest.err >&5
  7625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626. (exit $ac_status); } && {
  7627. test -z "$ac_cxx_werror_flag" ||
  7628. test ! -s conftest.err
  7629. } && test -s conftest.$ac_objext; then
  7630. ac_hi=$ac_mid
  7631. else
  7632. $as_echo "$as_me: failed program was:" >&5
  7633. sed 's/^/| /' conftest.$ac_ext >&5
  7634. ac_lo=`expr '(' $ac_mid ')' + 1`
  7635. fi
  7636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7637. done
  7638. case $ac_lo in
  7639. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7640. '') if test "$ac_cv_type_long_long" = yes; then
  7641. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7643. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7644. See \`config.log' for more details." >&5
  7645. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7646. See \`config.log' for more details." >&2;}
  7647. { (exit 77); exit 77; }; }; }
  7648. else
  7649. ac_cv_sizeof_long_long=0
  7650. fi ;;
  7651. esac
  7652. else
  7653. cat >conftest.$ac_ext <<_ACEOF
  7654. /* confdefs.h. */
  7655. _ACEOF
  7656. cat confdefs.h >>conftest.$ac_ext
  7657. cat >>conftest.$ac_ext <<_ACEOF
  7658. /* end confdefs.h. */
  7659. $ac_includes_default
  7660. static long int longval () { return (long int) (sizeof (long long)); }
  7661. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7662. #include <stdio.h>
  7663. #include <stdlib.h>
  7664. int
  7665. main ()
  7666. {
  7667. FILE *f = fopen ("conftest.val", "w");
  7668. if (! f)
  7669. return 1;
  7670. if (((long int) (sizeof (long long))) < 0)
  7671. {
  7672. long int i = longval ();
  7673. if (i != ((long int) (sizeof (long long))))
  7674. return 1;
  7675. fprintf (f, "%ld", i);
  7676. }
  7677. else
  7678. {
  7679. unsigned long int i = ulongval ();
  7680. if (i != ((long int) (sizeof (long long))))
  7681. return 1;
  7682. fprintf (f, "%lu", i);
  7683. }
  7684. /* Do not output a trailing newline, as this causes \r\n confusion
  7685. on some platforms. */
  7686. return ferror (f) || fclose (f) != 0;
  7687. ;
  7688. return 0;
  7689. }
  7690. _ACEOF
  7691. rm -f conftest$ac_exeext
  7692. if { (ac_try="$ac_link"
  7693. case "(($ac_try" in
  7694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7695. *) ac_try_echo=$ac_try;;
  7696. esac
  7697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7698. $as_echo "$ac_try_echo") >&5
  7699. (eval "$ac_link") 2>&5
  7700. ac_status=$?
  7701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7703. { (case "(($ac_try" in
  7704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7705. *) ac_try_echo=$ac_try;;
  7706. esac
  7707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7708. $as_echo "$ac_try_echo") >&5
  7709. (eval "$ac_try") 2>&5
  7710. ac_status=$?
  7711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7712. (exit $ac_status); }; }; then
  7713. ac_cv_sizeof_long_long=`cat conftest.val`
  7714. else
  7715. $as_echo "$as_me: program exited with status $ac_status" >&5
  7716. $as_echo "$as_me: failed program was:" >&5
  7717. sed 's/^/| /' conftest.$ac_ext >&5
  7718. ( exit $ac_status )
  7719. if test "$ac_cv_type_long_long" = yes; then
  7720. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7721. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7722. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7723. See \`config.log' for more details." >&5
  7724. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7725. See \`config.log' for more details." >&2;}
  7726. { (exit 77); exit 77; }; }; }
  7727. else
  7728. ac_cv_sizeof_long_long=0
  7729. fi
  7730. fi
  7731. rm -rf conftest.dSYM
  7732. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7733. fi
  7734. rm -f conftest.val
  7735. fi
  7736. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7737. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7738. cat >>confdefs.h <<_ACEOF
  7739. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7740. _ACEOF
  7741. # The cast to long int works around a bug in the HP C Compiler
  7742. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7743. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7744. # This bug is HP SR number 8606223364.
  7745. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7746. $as_echo_n "checking size of size_t... " >&6; }
  7747. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7748. $as_echo_n "(cached) " >&6
  7749. else
  7750. if test "$cross_compiling" = yes; then
  7751. # Depending upon the size, compute the lo and hi bounds.
  7752. cat >conftest.$ac_ext <<_ACEOF
  7753. /* confdefs.h. */
  7754. _ACEOF
  7755. cat confdefs.h >>conftest.$ac_ext
  7756. cat >>conftest.$ac_ext <<_ACEOF
  7757. /* end confdefs.h. */
  7758. $ac_includes_default
  7759. int
  7760. main ()
  7761. {
  7762. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7763. test_array [0] = 0
  7764. ;
  7765. return 0;
  7766. }
  7767. _ACEOF
  7768. rm -f conftest.$ac_objext
  7769. if { (ac_try="$ac_compile"
  7770. case "(($ac_try" in
  7771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7772. *) ac_try_echo=$ac_try;;
  7773. esac
  7774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7775. $as_echo "$ac_try_echo") >&5
  7776. (eval "$ac_compile") 2>conftest.er1
  7777. ac_status=$?
  7778. grep -v '^ *+' conftest.er1 >conftest.err
  7779. rm -f conftest.er1
  7780. cat conftest.err >&5
  7781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7782. (exit $ac_status); } && {
  7783. test -z "$ac_cxx_werror_flag" ||
  7784. test ! -s conftest.err
  7785. } && test -s conftest.$ac_objext; then
  7786. ac_lo=0 ac_mid=0
  7787. while :; do
  7788. cat >conftest.$ac_ext <<_ACEOF
  7789. /* confdefs.h. */
  7790. _ACEOF
  7791. cat confdefs.h >>conftest.$ac_ext
  7792. cat >>conftest.$ac_ext <<_ACEOF
  7793. /* end confdefs.h. */
  7794. $ac_includes_default
  7795. int
  7796. main ()
  7797. {
  7798. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7799. test_array [0] = 0
  7800. ;
  7801. return 0;
  7802. }
  7803. _ACEOF
  7804. rm -f conftest.$ac_objext
  7805. if { (ac_try="$ac_compile"
  7806. case "(($ac_try" in
  7807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7808. *) ac_try_echo=$ac_try;;
  7809. esac
  7810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7811. $as_echo "$ac_try_echo") >&5
  7812. (eval "$ac_compile") 2>conftest.er1
  7813. ac_status=$?
  7814. grep -v '^ *+' conftest.er1 >conftest.err
  7815. rm -f conftest.er1
  7816. cat conftest.err >&5
  7817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. (exit $ac_status); } && {
  7819. test -z "$ac_cxx_werror_flag" ||
  7820. test ! -s conftest.err
  7821. } && test -s conftest.$ac_objext; then
  7822. ac_hi=$ac_mid; break
  7823. else
  7824. $as_echo "$as_me: failed program was:" >&5
  7825. sed 's/^/| /' conftest.$ac_ext >&5
  7826. ac_lo=`expr $ac_mid + 1`
  7827. if test $ac_lo -le $ac_mid; then
  7828. ac_lo= ac_hi=
  7829. break
  7830. fi
  7831. ac_mid=`expr 2 '*' $ac_mid + 1`
  7832. fi
  7833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7834. done
  7835. else
  7836. $as_echo "$as_me: failed program was:" >&5
  7837. sed 's/^/| /' conftest.$ac_ext >&5
  7838. cat >conftest.$ac_ext <<_ACEOF
  7839. /* confdefs.h. */
  7840. _ACEOF
  7841. cat confdefs.h >>conftest.$ac_ext
  7842. cat >>conftest.$ac_ext <<_ACEOF
  7843. /* end confdefs.h. */
  7844. $ac_includes_default
  7845. int
  7846. main ()
  7847. {
  7848. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7849. test_array [0] = 0
  7850. ;
  7851. return 0;
  7852. }
  7853. _ACEOF
  7854. rm -f conftest.$ac_objext
  7855. if { (ac_try="$ac_compile"
  7856. case "(($ac_try" in
  7857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7858. *) ac_try_echo=$ac_try;;
  7859. esac
  7860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7861. $as_echo "$ac_try_echo") >&5
  7862. (eval "$ac_compile") 2>conftest.er1
  7863. ac_status=$?
  7864. grep -v '^ *+' conftest.er1 >conftest.err
  7865. rm -f conftest.er1
  7866. cat conftest.err >&5
  7867. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7868. (exit $ac_status); } && {
  7869. test -z "$ac_cxx_werror_flag" ||
  7870. test ! -s conftest.err
  7871. } && test -s conftest.$ac_objext; then
  7872. ac_hi=-1 ac_mid=-1
  7873. while :; do
  7874. cat >conftest.$ac_ext <<_ACEOF
  7875. /* confdefs.h. */
  7876. _ACEOF
  7877. cat confdefs.h >>conftest.$ac_ext
  7878. cat >>conftest.$ac_ext <<_ACEOF
  7879. /* end confdefs.h. */
  7880. $ac_includes_default
  7881. int
  7882. main ()
  7883. {
  7884. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7885. test_array [0] = 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7897. $as_echo "$ac_try_echo") >&5
  7898. (eval "$ac_compile") 2>conftest.er1
  7899. ac_status=$?
  7900. grep -v '^ *+' conftest.er1 >conftest.err
  7901. rm -f conftest.er1
  7902. cat conftest.err >&5
  7903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7904. (exit $ac_status); } && {
  7905. test -z "$ac_cxx_werror_flag" ||
  7906. test ! -s conftest.err
  7907. } && test -s conftest.$ac_objext; then
  7908. ac_lo=$ac_mid; break
  7909. else
  7910. $as_echo "$as_me: failed program was:" >&5
  7911. sed 's/^/| /' conftest.$ac_ext >&5
  7912. ac_hi=`expr '(' $ac_mid ')' - 1`
  7913. if test $ac_mid -le $ac_hi; then
  7914. ac_lo= ac_hi=
  7915. break
  7916. fi
  7917. ac_mid=`expr 2 '*' $ac_mid`
  7918. fi
  7919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7920. done
  7921. else
  7922. $as_echo "$as_me: failed program was:" >&5
  7923. sed 's/^/| /' conftest.$ac_ext >&5
  7924. ac_lo= ac_hi=
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7927. fi
  7928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7929. # Binary search between lo and hi bounds.
  7930. while test "x$ac_lo" != "x$ac_hi"; do
  7931. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7932. cat >conftest.$ac_ext <<_ACEOF
  7933. /* confdefs.h. */
  7934. _ACEOF
  7935. cat confdefs.h >>conftest.$ac_ext
  7936. cat >>conftest.$ac_ext <<_ACEOF
  7937. /* end confdefs.h. */
  7938. $ac_includes_default
  7939. int
  7940. main ()
  7941. {
  7942. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7943. test_array [0] = 0
  7944. ;
  7945. return 0;
  7946. }
  7947. _ACEOF
  7948. rm -f conftest.$ac_objext
  7949. if { (ac_try="$ac_compile"
  7950. case "(($ac_try" in
  7951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7952. *) ac_try_echo=$ac_try;;
  7953. esac
  7954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7955. $as_echo "$ac_try_echo") >&5
  7956. (eval "$ac_compile") 2>conftest.er1
  7957. ac_status=$?
  7958. grep -v '^ *+' conftest.er1 >conftest.err
  7959. rm -f conftest.er1
  7960. cat conftest.err >&5
  7961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7962. (exit $ac_status); } && {
  7963. test -z "$ac_cxx_werror_flag" ||
  7964. test ! -s conftest.err
  7965. } && test -s conftest.$ac_objext; then
  7966. ac_hi=$ac_mid
  7967. else
  7968. $as_echo "$as_me: failed program was:" >&5
  7969. sed 's/^/| /' conftest.$ac_ext >&5
  7970. ac_lo=`expr '(' $ac_mid ')' + 1`
  7971. fi
  7972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7973. done
  7974. case $ac_lo in
  7975. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7976. '') if test "$ac_cv_type_size_t" = yes; then
  7977. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7979. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7980. See \`config.log' for more details." >&5
  7981. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7982. See \`config.log' for more details." >&2;}
  7983. { (exit 77); exit 77; }; }; }
  7984. else
  7985. ac_cv_sizeof_size_t=0
  7986. fi ;;
  7987. esac
  7988. else
  7989. cat >conftest.$ac_ext <<_ACEOF
  7990. /* confdefs.h. */
  7991. _ACEOF
  7992. cat confdefs.h >>conftest.$ac_ext
  7993. cat >>conftest.$ac_ext <<_ACEOF
  7994. /* end confdefs.h. */
  7995. $ac_includes_default
  7996. static long int longval () { return (long int) (sizeof (size_t)); }
  7997. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  7998. #include <stdio.h>
  7999. #include <stdlib.h>
  8000. int
  8001. main ()
  8002. {
  8003. FILE *f = fopen ("conftest.val", "w");
  8004. if (! f)
  8005. return 1;
  8006. if (((long int) (sizeof (size_t))) < 0)
  8007. {
  8008. long int i = longval ();
  8009. if (i != ((long int) (sizeof (size_t))))
  8010. return 1;
  8011. fprintf (f, "%ld", i);
  8012. }
  8013. else
  8014. {
  8015. unsigned long int i = ulongval ();
  8016. if (i != ((long int) (sizeof (size_t))))
  8017. return 1;
  8018. fprintf (f, "%lu", i);
  8019. }
  8020. /* Do not output a trailing newline, as this causes \r\n confusion
  8021. on some platforms. */
  8022. return ferror (f) || fclose (f) != 0;
  8023. ;
  8024. return 0;
  8025. }
  8026. _ACEOF
  8027. rm -f conftest$ac_exeext
  8028. if { (ac_try="$ac_link"
  8029. case "(($ac_try" in
  8030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8031. *) ac_try_echo=$ac_try;;
  8032. esac
  8033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8034. $as_echo "$ac_try_echo") >&5
  8035. (eval "$ac_link") 2>&5
  8036. ac_status=$?
  8037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8038. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8039. { (case "(($ac_try" in
  8040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8041. *) ac_try_echo=$ac_try;;
  8042. esac
  8043. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8044. $as_echo "$ac_try_echo") >&5
  8045. (eval "$ac_try") 2>&5
  8046. ac_status=$?
  8047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); }; }; then
  8049. ac_cv_sizeof_size_t=`cat conftest.val`
  8050. else
  8051. $as_echo "$as_me: program exited with status $ac_status" >&5
  8052. $as_echo "$as_me: failed program was:" >&5
  8053. sed 's/^/| /' conftest.$ac_ext >&5
  8054. ( exit $ac_status )
  8055. if test "$ac_cv_type_size_t" = yes; then
  8056. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8058. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  8059. See \`config.log' for more details." >&5
  8060. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  8061. See \`config.log' for more details." >&2;}
  8062. { (exit 77); exit 77; }; }; }
  8063. else
  8064. ac_cv_sizeof_size_t=0
  8065. fi
  8066. fi
  8067. rm -rf conftest.dSYM
  8068. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8069. fi
  8070. rm -f conftest.val
  8071. fi
  8072. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  8073. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  8074. cat >>confdefs.h <<_ACEOF
  8075. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  8076. _ACEOF
  8077. # The cast to long int works around a bug in the HP C Compiler
  8078. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8079. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8080. # This bug is HP SR number 8606223364.
  8081. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  8082. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  8083. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  8084. $as_echo_n "(cached) " >&6
  8085. else
  8086. if test "$cross_compiling" = yes; then
  8087. # Depending upon the size, compute the lo and hi bounds.
  8088. cat >conftest.$ac_ext <<_ACEOF
  8089. /* confdefs.h. */
  8090. _ACEOF
  8091. cat confdefs.h >>conftest.$ac_ext
  8092. cat >>conftest.$ac_ext <<_ACEOF
  8093. /* end confdefs.h. */
  8094. $ac_includes_default
  8095. int
  8096. main ()
  8097. {
  8098. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  8099. test_array [0] = 0
  8100. ;
  8101. return 0;
  8102. }
  8103. _ACEOF
  8104. rm -f conftest.$ac_objext
  8105. if { (ac_try="$ac_compile"
  8106. case "(($ac_try" in
  8107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8108. *) ac_try_echo=$ac_try;;
  8109. esac
  8110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8111. $as_echo "$ac_try_echo") >&5
  8112. (eval "$ac_compile") 2>conftest.er1
  8113. ac_status=$?
  8114. grep -v '^ *+' conftest.er1 >conftest.err
  8115. rm -f conftest.er1
  8116. cat conftest.err >&5
  8117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8118. (exit $ac_status); } && {
  8119. test -z "$ac_cxx_werror_flag" ||
  8120. test ! -s conftest.err
  8121. } && test -s conftest.$ac_objext; then
  8122. ac_lo=0 ac_mid=0
  8123. while :; do
  8124. cat >conftest.$ac_ext <<_ACEOF
  8125. /* confdefs.h. */
  8126. _ACEOF
  8127. cat confdefs.h >>conftest.$ac_ext
  8128. cat >>conftest.$ac_ext <<_ACEOF
  8129. /* end confdefs.h. */
  8130. $ac_includes_default
  8131. int
  8132. main ()
  8133. {
  8134. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8135. test_array [0] = 0
  8136. ;
  8137. return 0;
  8138. }
  8139. _ACEOF
  8140. rm -f conftest.$ac_objext
  8141. if { (ac_try="$ac_compile"
  8142. case "(($ac_try" in
  8143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8144. *) ac_try_echo=$ac_try;;
  8145. esac
  8146. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8147. $as_echo "$ac_try_echo") >&5
  8148. (eval "$ac_compile") 2>conftest.er1
  8149. ac_status=$?
  8150. grep -v '^ *+' conftest.er1 >conftest.err
  8151. rm -f conftest.er1
  8152. cat conftest.err >&5
  8153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8154. (exit $ac_status); } && {
  8155. test -z "$ac_cxx_werror_flag" ||
  8156. test ! -s conftest.err
  8157. } && test -s conftest.$ac_objext; then
  8158. ac_hi=$ac_mid; break
  8159. else
  8160. $as_echo "$as_me: failed program was:" >&5
  8161. sed 's/^/| /' conftest.$ac_ext >&5
  8162. ac_lo=`expr $ac_mid + 1`
  8163. if test $ac_lo -le $ac_mid; then
  8164. ac_lo= ac_hi=
  8165. break
  8166. fi
  8167. ac_mid=`expr 2 '*' $ac_mid + 1`
  8168. fi
  8169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8170. done
  8171. else
  8172. $as_echo "$as_me: failed program was:" >&5
  8173. sed 's/^/| /' conftest.$ac_ext >&5
  8174. cat >conftest.$ac_ext <<_ACEOF
  8175. /* confdefs.h. */
  8176. _ACEOF
  8177. cat confdefs.h >>conftest.$ac_ext
  8178. cat >>conftest.$ac_ext <<_ACEOF
  8179. /* end confdefs.h. */
  8180. $ac_includes_default
  8181. int
  8182. main ()
  8183. {
  8184. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8185. test_array [0] = 0
  8186. ;
  8187. return 0;
  8188. }
  8189. _ACEOF
  8190. rm -f conftest.$ac_objext
  8191. if { (ac_try="$ac_compile"
  8192. case "(($ac_try" in
  8193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8194. *) ac_try_echo=$ac_try;;
  8195. esac
  8196. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8197. $as_echo "$ac_try_echo") >&5
  8198. (eval "$ac_compile") 2>conftest.er1
  8199. ac_status=$?
  8200. grep -v '^ *+' conftest.er1 >conftest.err
  8201. rm -f conftest.er1
  8202. cat conftest.err >&5
  8203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8204. (exit $ac_status); } && {
  8205. test -z "$ac_cxx_werror_flag" ||
  8206. test ! -s conftest.err
  8207. } && test -s conftest.$ac_objext; then
  8208. ac_hi=-1 ac_mid=-1
  8209. while :; do
  8210. cat >conftest.$ac_ext <<_ACEOF
  8211. /* confdefs.h. */
  8212. _ACEOF
  8213. cat confdefs.h >>conftest.$ac_ext
  8214. cat >>conftest.$ac_ext <<_ACEOF
  8215. /* end confdefs.h. */
  8216. $ac_includes_default
  8217. int
  8218. main ()
  8219. {
  8220. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8221. test_array [0] = 0
  8222. ;
  8223. return 0;
  8224. }
  8225. _ACEOF
  8226. rm -f conftest.$ac_objext
  8227. if { (ac_try="$ac_compile"
  8228. case "(($ac_try" in
  8229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8230. *) ac_try_echo=$ac_try;;
  8231. esac
  8232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8233. $as_echo "$ac_try_echo") >&5
  8234. (eval "$ac_compile") 2>conftest.er1
  8235. ac_status=$?
  8236. grep -v '^ *+' conftest.er1 >conftest.err
  8237. rm -f conftest.er1
  8238. cat conftest.err >&5
  8239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8240. (exit $ac_status); } && {
  8241. test -z "$ac_cxx_werror_flag" ||
  8242. test ! -s conftest.err
  8243. } && test -s conftest.$ac_objext; then
  8244. ac_lo=$ac_mid; break
  8245. else
  8246. $as_echo "$as_me: failed program was:" >&5
  8247. sed 's/^/| /' conftest.$ac_ext >&5
  8248. ac_hi=`expr '(' $ac_mid ')' - 1`
  8249. if test $ac_mid -le $ac_hi; then
  8250. ac_lo= ac_hi=
  8251. break
  8252. fi
  8253. ac_mid=`expr 2 '*' $ac_mid`
  8254. fi
  8255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8256. done
  8257. else
  8258. $as_echo "$as_me: failed program was:" >&5
  8259. sed 's/^/| /' conftest.$ac_ext >&5
  8260. ac_lo= ac_hi=
  8261. fi
  8262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8263. fi
  8264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8265. # Binary search between lo and hi bounds.
  8266. while test "x$ac_lo" != "x$ac_hi"; do
  8267. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8268. cat >conftest.$ac_ext <<_ACEOF
  8269. /* confdefs.h. */
  8270. _ACEOF
  8271. cat confdefs.h >>conftest.$ac_ext
  8272. cat >>conftest.$ac_ext <<_ACEOF
  8273. /* end confdefs.h. */
  8274. $ac_includes_default
  8275. int
  8276. main ()
  8277. {
  8278. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8279. test_array [0] = 0
  8280. ;
  8281. return 0;
  8282. }
  8283. _ACEOF
  8284. rm -f conftest.$ac_objext
  8285. if { (ac_try="$ac_compile"
  8286. case "(($ac_try" in
  8287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8288. *) ac_try_echo=$ac_try;;
  8289. esac
  8290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8291. $as_echo "$ac_try_echo") >&5
  8292. (eval "$ac_compile") 2>conftest.er1
  8293. ac_status=$?
  8294. grep -v '^ *+' conftest.er1 >conftest.err
  8295. rm -f conftest.er1
  8296. cat conftest.err >&5
  8297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8298. (exit $ac_status); } && {
  8299. test -z "$ac_cxx_werror_flag" ||
  8300. test ! -s conftest.err
  8301. } && test -s conftest.$ac_objext; then
  8302. ac_hi=$ac_mid
  8303. else
  8304. $as_echo "$as_me: failed program was:" >&5
  8305. sed 's/^/| /' conftest.$ac_ext >&5
  8306. ac_lo=`expr '(' $ac_mid ')' + 1`
  8307. fi
  8308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8309. done
  8310. case $ac_lo in
  8311. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8312. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8313. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8315. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8316. See \`config.log' for more details." >&5
  8317. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8318. See \`config.log' for more details." >&2;}
  8319. { (exit 77); exit 77; }; }; }
  8320. else
  8321. ac_cv_sizeof_ptrdiff_t=0
  8322. fi ;;
  8323. esac
  8324. else
  8325. cat >conftest.$ac_ext <<_ACEOF
  8326. /* confdefs.h. */
  8327. _ACEOF
  8328. cat confdefs.h >>conftest.$ac_ext
  8329. cat >>conftest.$ac_ext <<_ACEOF
  8330. /* end confdefs.h. */
  8331. $ac_includes_default
  8332. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8333. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8334. #include <stdio.h>
  8335. #include <stdlib.h>
  8336. int
  8337. main ()
  8338. {
  8339. FILE *f = fopen ("conftest.val", "w");
  8340. if (! f)
  8341. return 1;
  8342. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8343. {
  8344. long int i = longval ();
  8345. if (i != ((long int) (sizeof (ptrdiff_t))))
  8346. return 1;
  8347. fprintf (f, "%ld", i);
  8348. }
  8349. else
  8350. {
  8351. unsigned long int i = ulongval ();
  8352. if (i != ((long int) (sizeof (ptrdiff_t))))
  8353. return 1;
  8354. fprintf (f, "%lu", i);
  8355. }
  8356. /* Do not output a trailing newline, as this causes \r\n confusion
  8357. on some platforms. */
  8358. return ferror (f) || fclose (f) != 0;
  8359. ;
  8360. return 0;
  8361. }
  8362. _ACEOF
  8363. rm -f conftest$ac_exeext
  8364. if { (ac_try="$ac_link"
  8365. case "(($ac_try" in
  8366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8367. *) ac_try_echo=$ac_try;;
  8368. esac
  8369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8370. $as_echo "$ac_try_echo") >&5
  8371. (eval "$ac_link") 2>&5
  8372. ac_status=$?
  8373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8375. { (case "(($ac_try" in
  8376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8377. *) ac_try_echo=$ac_try;;
  8378. esac
  8379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8380. $as_echo "$ac_try_echo") >&5
  8381. (eval "$ac_try") 2>&5
  8382. ac_status=$?
  8383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8384. (exit $ac_status); }; }; then
  8385. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8386. else
  8387. $as_echo "$as_me: program exited with status $ac_status" >&5
  8388. $as_echo "$as_me: failed program was:" >&5
  8389. sed 's/^/| /' conftest.$ac_ext >&5
  8390. ( exit $ac_status )
  8391. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8392. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8394. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8395. See \`config.log' for more details." >&5
  8396. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8397. See \`config.log' for more details." >&2;}
  8398. { (exit 77); exit 77; }; }; }
  8399. else
  8400. ac_cv_sizeof_ptrdiff_t=0
  8401. fi
  8402. fi
  8403. rm -rf conftest.dSYM
  8404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8405. fi
  8406. rm -f conftest.val
  8407. fi
  8408. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8409. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8410. cat >>confdefs.h <<_ACEOF
  8411. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8412. _ACEOF
  8413. # The cast to long int works around a bug in the HP C Compiler
  8414. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8415. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8416. # This bug is HP SR number 8606223364.
  8417. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8418. $as_echo_n "checking size of time_t... " >&6; }
  8419. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8420. $as_echo_n "(cached) " >&6
  8421. else
  8422. if test "$cross_compiling" = yes; then
  8423. # Depending upon the size, compute the lo and hi bounds.
  8424. cat >conftest.$ac_ext <<_ACEOF
  8425. /* confdefs.h. */
  8426. _ACEOF
  8427. cat confdefs.h >>conftest.$ac_ext
  8428. cat >>conftest.$ac_ext <<_ACEOF
  8429. /* end confdefs.h. */
  8430. $ac_includes_default
  8431. int
  8432. main ()
  8433. {
  8434. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8435. test_array [0] = 0
  8436. ;
  8437. return 0;
  8438. }
  8439. _ACEOF
  8440. rm -f conftest.$ac_objext
  8441. if { (ac_try="$ac_compile"
  8442. case "(($ac_try" in
  8443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8444. *) ac_try_echo=$ac_try;;
  8445. esac
  8446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8447. $as_echo "$ac_try_echo") >&5
  8448. (eval "$ac_compile") 2>conftest.er1
  8449. ac_status=$?
  8450. grep -v '^ *+' conftest.er1 >conftest.err
  8451. rm -f conftest.er1
  8452. cat conftest.err >&5
  8453. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8454. (exit $ac_status); } && {
  8455. test -z "$ac_cxx_werror_flag" ||
  8456. test ! -s conftest.err
  8457. } && test -s conftest.$ac_objext; then
  8458. ac_lo=0 ac_mid=0
  8459. while :; do
  8460. cat >conftest.$ac_ext <<_ACEOF
  8461. /* confdefs.h. */
  8462. _ACEOF
  8463. cat confdefs.h >>conftest.$ac_ext
  8464. cat >>conftest.$ac_ext <<_ACEOF
  8465. /* end confdefs.h. */
  8466. $ac_includes_default
  8467. int
  8468. main ()
  8469. {
  8470. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8471. test_array [0] = 0
  8472. ;
  8473. return 0;
  8474. }
  8475. _ACEOF
  8476. rm -f conftest.$ac_objext
  8477. if { (ac_try="$ac_compile"
  8478. case "(($ac_try" in
  8479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8480. *) ac_try_echo=$ac_try;;
  8481. esac
  8482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8483. $as_echo "$ac_try_echo") >&5
  8484. (eval "$ac_compile") 2>conftest.er1
  8485. ac_status=$?
  8486. grep -v '^ *+' conftest.er1 >conftest.err
  8487. rm -f conftest.er1
  8488. cat conftest.err >&5
  8489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8490. (exit $ac_status); } && {
  8491. test -z "$ac_cxx_werror_flag" ||
  8492. test ! -s conftest.err
  8493. } && test -s conftest.$ac_objext; then
  8494. ac_hi=$ac_mid; break
  8495. else
  8496. $as_echo "$as_me: failed program was:" >&5
  8497. sed 's/^/| /' conftest.$ac_ext >&5
  8498. ac_lo=`expr $ac_mid + 1`
  8499. if test $ac_lo -le $ac_mid; then
  8500. ac_lo= ac_hi=
  8501. break
  8502. fi
  8503. ac_mid=`expr 2 '*' $ac_mid + 1`
  8504. fi
  8505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8506. done
  8507. else
  8508. $as_echo "$as_me: failed program was:" >&5
  8509. sed 's/^/| /' conftest.$ac_ext >&5
  8510. cat >conftest.$ac_ext <<_ACEOF
  8511. /* confdefs.h. */
  8512. _ACEOF
  8513. cat confdefs.h >>conftest.$ac_ext
  8514. cat >>conftest.$ac_ext <<_ACEOF
  8515. /* end confdefs.h. */
  8516. $ac_includes_default
  8517. int
  8518. main ()
  8519. {
  8520. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8521. test_array [0] = 0
  8522. ;
  8523. return 0;
  8524. }
  8525. _ACEOF
  8526. rm -f conftest.$ac_objext
  8527. if { (ac_try="$ac_compile"
  8528. case "(($ac_try" in
  8529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8530. *) ac_try_echo=$ac_try;;
  8531. esac
  8532. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8533. $as_echo "$ac_try_echo") >&5
  8534. (eval "$ac_compile") 2>conftest.er1
  8535. ac_status=$?
  8536. grep -v '^ *+' conftest.er1 >conftest.err
  8537. rm -f conftest.er1
  8538. cat conftest.err >&5
  8539. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8540. (exit $ac_status); } && {
  8541. test -z "$ac_cxx_werror_flag" ||
  8542. test ! -s conftest.err
  8543. } && test -s conftest.$ac_objext; then
  8544. ac_hi=-1 ac_mid=-1
  8545. while :; do
  8546. cat >conftest.$ac_ext <<_ACEOF
  8547. /* confdefs.h. */
  8548. _ACEOF
  8549. cat confdefs.h >>conftest.$ac_ext
  8550. cat >>conftest.$ac_ext <<_ACEOF
  8551. /* end confdefs.h. */
  8552. $ac_includes_default
  8553. int
  8554. main ()
  8555. {
  8556. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8557. test_array [0] = 0
  8558. ;
  8559. return 0;
  8560. }
  8561. _ACEOF
  8562. rm -f conftest.$ac_objext
  8563. if { (ac_try="$ac_compile"
  8564. case "(($ac_try" in
  8565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8566. *) ac_try_echo=$ac_try;;
  8567. esac
  8568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8569. $as_echo "$ac_try_echo") >&5
  8570. (eval "$ac_compile") 2>conftest.er1
  8571. ac_status=$?
  8572. grep -v '^ *+' conftest.er1 >conftest.err
  8573. rm -f conftest.er1
  8574. cat conftest.err >&5
  8575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8576. (exit $ac_status); } && {
  8577. test -z "$ac_cxx_werror_flag" ||
  8578. test ! -s conftest.err
  8579. } && test -s conftest.$ac_objext; then
  8580. ac_lo=$ac_mid; break
  8581. else
  8582. $as_echo "$as_me: failed program was:" >&5
  8583. sed 's/^/| /' conftest.$ac_ext >&5
  8584. ac_hi=`expr '(' $ac_mid ')' - 1`
  8585. if test $ac_mid -le $ac_hi; then
  8586. ac_lo= ac_hi=
  8587. break
  8588. fi
  8589. ac_mid=`expr 2 '*' $ac_mid`
  8590. fi
  8591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8592. done
  8593. else
  8594. $as_echo "$as_me: failed program was:" >&5
  8595. sed 's/^/| /' conftest.$ac_ext >&5
  8596. ac_lo= ac_hi=
  8597. fi
  8598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8599. fi
  8600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8601. # Binary search between lo and hi bounds.
  8602. while test "x$ac_lo" != "x$ac_hi"; do
  8603. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8604. cat >conftest.$ac_ext <<_ACEOF
  8605. /* confdefs.h. */
  8606. _ACEOF
  8607. cat confdefs.h >>conftest.$ac_ext
  8608. cat >>conftest.$ac_ext <<_ACEOF
  8609. /* end confdefs.h. */
  8610. $ac_includes_default
  8611. int
  8612. main ()
  8613. {
  8614. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8615. test_array [0] = 0
  8616. ;
  8617. return 0;
  8618. }
  8619. _ACEOF
  8620. rm -f conftest.$ac_objext
  8621. if { (ac_try="$ac_compile"
  8622. case "(($ac_try" in
  8623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8624. *) ac_try_echo=$ac_try;;
  8625. esac
  8626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8627. $as_echo "$ac_try_echo") >&5
  8628. (eval "$ac_compile") 2>conftest.er1
  8629. ac_status=$?
  8630. grep -v '^ *+' conftest.er1 >conftest.err
  8631. rm -f conftest.er1
  8632. cat conftest.err >&5
  8633. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634. (exit $ac_status); } && {
  8635. test -z "$ac_cxx_werror_flag" ||
  8636. test ! -s conftest.err
  8637. } && test -s conftest.$ac_objext; then
  8638. ac_hi=$ac_mid
  8639. else
  8640. $as_echo "$as_me: failed program was:" >&5
  8641. sed 's/^/| /' conftest.$ac_ext >&5
  8642. ac_lo=`expr '(' $ac_mid ')' + 1`
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8645. done
  8646. case $ac_lo in
  8647. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8648. '') if test "$ac_cv_type_time_t" = yes; then
  8649. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8650. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8651. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8652. See \`config.log' for more details." >&5
  8653. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8654. See \`config.log' for more details." >&2;}
  8655. { (exit 77); exit 77; }; }; }
  8656. else
  8657. ac_cv_sizeof_time_t=0
  8658. fi ;;
  8659. esac
  8660. else
  8661. cat >conftest.$ac_ext <<_ACEOF
  8662. /* confdefs.h. */
  8663. _ACEOF
  8664. cat confdefs.h >>conftest.$ac_ext
  8665. cat >>conftest.$ac_ext <<_ACEOF
  8666. /* end confdefs.h. */
  8667. $ac_includes_default
  8668. static long int longval () { return (long int) (sizeof (time_t)); }
  8669. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8670. #include <stdio.h>
  8671. #include <stdlib.h>
  8672. int
  8673. main ()
  8674. {
  8675. FILE *f = fopen ("conftest.val", "w");
  8676. if (! f)
  8677. return 1;
  8678. if (((long int) (sizeof (time_t))) < 0)
  8679. {
  8680. long int i = longval ();
  8681. if (i != ((long int) (sizeof (time_t))))
  8682. return 1;
  8683. fprintf (f, "%ld", i);
  8684. }
  8685. else
  8686. {
  8687. unsigned long int i = ulongval ();
  8688. if (i != ((long int) (sizeof (time_t))))
  8689. return 1;
  8690. fprintf (f, "%lu", i);
  8691. }
  8692. /* Do not output a trailing newline, as this causes \r\n confusion
  8693. on some platforms. */
  8694. return ferror (f) || fclose (f) != 0;
  8695. ;
  8696. return 0;
  8697. }
  8698. _ACEOF
  8699. rm -f conftest$ac_exeext
  8700. if { (ac_try="$ac_link"
  8701. case "(($ac_try" in
  8702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8703. *) ac_try_echo=$ac_try;;
  8704. esac
  8705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8706. $as_echo "$ac_try_echo") >&5
  8707. (eval "$ac_link") 2>&5
  8708. ac_status=$?
  8709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8710. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8711. { (case "(($ac_try" in
  8712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8713. *) ac_try_echo=$ac_try;;
  8714. esac
  8715. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8716. $as_echo "$ac_try_echo") >&5
  8717. (eval "$ac_try") 2>&5
  8718. ac_status=$?
  8719. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8720. (exit $ac_status); }; }; then
  8721. ac_cv_sizeof_time_t=`cat conftest.val`
  8722. else
  8723. $as_echo "$as_me: program exited with status $ac_status" >&5
  8724. $as_echo "$as_me: failed program was:" >&5
  8725. sed 's/^/| /' conftest.$ac_ext >&5
  8726. ( exit $ac_status )
  8727. if test "$ac_cv_type_time_t" = yes; then
  8728. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8729. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8730. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8731. See \`config.log' for more details." >&5
  8732. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8733. See \`config.log' for more details." >&2;}
  8734. { (exit 77); exit 77; }; }; }
  8735. else
  8736. ac_cv_sizeof_time_t=0
  8737. fi
  8738. fi
  8739. rm -rf conftest.dSYM
  8740. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8741. fi
  8742. rm -f conftest.val
  8743. fi
  8744. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8745. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8746. cat >>confdefs.h <<_ACEOF
  8747. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8748. _ACEOF
  8749. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8750. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8751. if test "${ac_cv_struct_tm+set}" = set; then
  8752. $as_echo_n "(cached) " >&6
  8753. else
  8754. cat >conftest.$ac_ext <<_ACEOF
  8755. /* confdefs.h. */
  8756. _ACEOF
  8757. cat confdefs.h >>conftest.$ac_ext
  8758. cat >>conftest.$ac_ext <<_ACEOF
  8759. /* end confdefs.h. */
  8760. #include <sys/types.h>
  8761. #include <time.h>
  8762. int
  8763. main ()
  8764. {
  8765. struct tm tm;
  8766. int *p = &tm.tm_sec;
  8767. return !p;
  8768. ;
  8769. return 0;
  8770. }
  8771. _ACEOF
  8772. rm -f conftest.$ac_objext
  8773. if { (ac_try="$ac_compile"
  8774. case "(($ac_try" in
  8775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8776. *) ac_try_echo=$ac_try;;
  8777. esac
  8778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8779. $as_echo "$ac_try_echo") >&5
  8780. (eval "$ac_compile") 2>conftest.er1
  8781. ac_status=$?
  8782. grep -v '^ *+' conftest.er1 >conftest.err
  8783. rm -f conftest.er1
  8784. cat conftest.err >&5
  8785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8786. (exit $ac_status); } && {
  8787. test -z "$ac_cxx_werror_flag" ||
  8788. test ! -s conftest.err
  8789. } && test -s conftest.$ac_objext; then
  8790. ac_cv_struct_tm=time.h
  8791. else
  8792. $as_echo "$as_me: failed program was:" >&5
  8793. sed 's/^/| /' conftest.$ac_ext >&5
  8794. ac_cv_struct_tm=sys/time.h
  8795. fi
  8796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8797. fi
  8798. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8799. $as_echo "$ac_cv_struct_tm" >&6; }
  8800. if test $ac_cv_struct_tm = sys/time.h; then
  8801. cat >>confdefs.h <<\_ACEOF
  8802. #define TM_IN_SYS_TIME 1
  8803. _ACEOF
  8804. fi
  8805. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8806. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8807. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8808. $as_echo_n "(cached) " >&6
  8809. else
  8810. cat >conftest.$ac_ext <<_ACEOF
  8811. /* confdefs.h. */
  8812. _ACEOF
  8813. cat confdefs.h >>conftest.$ac_ext
  8814. cat >>conftest.$ac_ext <<_ACEOF
  8815. /* end confdefs.h. */
  8816. #include <sys/types.h>
  8817. #include <$ac_cv_struct_tm>
  8818. int
  8819. main ()
  8820. {
  8821. static struct tm ac_aggr;
  8822. if (ac_aggr.tm_zone)
  8823. return 0;
  8824. ;
  8825. return 0;
  8826. }
  8827. _ACEOF
  8828. rm -f conftest.$ac_objext
  8829. if { (ac_try="$ac_compile"
  8830. case "(($ac_try" in
  8831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8832. *) ac_try_echo=$ac_try;;
  8833. esac
  8834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8835. $as_echo "$ac_try_echo") >&5
  8836. (eval "$ac_compile") 2>conftest.er1
  8837. ac_status=$?
  8838. grep -v '^ *+' conftest.er1 >conftest.err
  8839. rm -f conftest.er1
  8840. cat conftest.err >&5
  8841. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8842. (exit $ac_status); } && {
  8843. test -z "$ac_cxx_werror_flag" ||
  8844. test ! -s conftest.err
  8845. } && test -s conftest.$ac_objext; then
  8846. ac_cv_member_struct_tm_tm_zone=yes
  8847. else
  8848. $as_echo "$as_me: failed program was:" >&5
  8849. sed 's/^/| /' conftest.$ac_ext >&5
  8850. cat >conftest.$ac_ext <<_ACEOF
  8851. /* confdefs.h. */
  8852. _ACEOF
  8853. cat confdefs.h >>conftest.$ac_ext
  8854. cat >>conftest.$ac_ext <<_ACEOF
  8855. /* end confdefs.h. */
  8856. #include <sys/types.h>
  8857. #include <$ac_cv_struct_tm>
  8858. int
  8859. main ()
  8860. {
  8861. static struct tm ac_aggr;
  8862. if (sizeof ac_aggr.tm_zone)
  8863. return 0;
  8864. ;
  8865. return 0;
  8866. }
  8867. _ACEOF
  8868. rm -f conftest.$ac_objext
  8869. if { (ac_try="$ac_compile"
  8870. case "(($ac_try" in
  8871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8872. *) ac_try_echo=$ac_try;;
  8873. esac
  8874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8875. $as_echo "$ac_try_echo") >&5
  8876. (eval "$ac_compile") 2>conftest.er1
  8877. ac_status=$?
  8878. grep -v '^ *+' conftest.er1 >conftest.err
  8879. rm -f conftest.er1
  8880. cat conftest.err >&5
  8881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8882. (exit $ac_status); } && {
  8883. test -z "$ac_cxx_werror_flag" ||
  8884. test ! -s conftest.err
  8885. } && test -s conftest.$ac_objext; then
  8886. ac_cv_member_struct_tm_tm_zone=yes
  8887. else
  8888. $as_echo "$as_me: failed program was:" >&5
  8889. sed 's/^/| /' conftest.$ac_ext >&5
  8890. ac_cv_member_struct_tm_tm_zone=no
  8891. fi
  8892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8893. fi
  8894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8895. fi
  8896. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8897. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8898. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8899. cat >>confdefs.h <<_ACEOF
  8900. #define HAVE_STRUCT_TM_TM_ZONE 1
  8901. _ACEOF
  8902. fi
  8903. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8904. cat >>confdefs.h <<\_ACEOF
  8905. #define HAVE_TM_ZONE 1
  8906. _ACEOF
  8907. else
  8908. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8909. $as_echo_n "checking whether tzname is declared... " >&6; }
  8910. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8911. $as_echo_n "(cached) " >&6
  8912. else
  8913. cat >conftest.$ac_ext <<_ACEOF
  8914. /* confdefs.h. */
  8915. _ACEOF
  8916. cat confdefs.h >>conftest.$ac_ext
  8917. cat >>conftest.$ac_ext <<_ACEOF
  8918. /* end confdefs.h. */
  8919. #include <time.h>
  8920. int
  8921. main ()
  8922. {
  8923. #ifndef tzname
  8924. (void) tzname;
  8925. #endif
  8926. ;
  8927. return 0;
  8928. }
  8929. _ACEOF
  8930. rm -f conftest.$ac_objext
  8931. if { (ac_try="$ac_compile"
  8932. case "(($ac_try" in
  8933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8934. *) ac_try_echo=$ac_try;;
  8935. esac
  8936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8937. $as_echo "$ac_try_echo") >&5
  8938. (eval "$ac_compile") 2>conftest.er1
  8939. ac_status=$?
  8940. grep -v '^ *+' conftest.er1 >conftest.err
  8941. rm -f conftest.er1
  8942. cat conftest.err >&5
  8943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8944. (exit $ac_status); } && {
  8945. test -z "$ac_cxx_werror_flag" ||
  8946. test ! -s conftest.err
  8947. } && test -s conftest.$ac_objext; then
  8948. ac_cv_have_decl_tzname=yes
  8949. else
  8950. $as_echo "$as_me: failed program was:" >&5
  8951. sed 's/^/| /' conftest.$ac_ext >&5
  8952. ac_cv_have_decl_tzname=no
  8953. fi
  8954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8955. fi
  8956. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8957. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8958. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8959. cat >>confdefs.h <<_ACEOF
  8960. #define HAVE_DECL_TZNAME 1
  8961. _ACEOF
  8962. else
  8963. cat >>confdefs.h <<_ACEOF
  8964. #define HAVE_DECL_TZNAME 0
  8965. _ACEOF
  8966. fi
  8967. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8968. $as_echo_n "checking for tzname... " >&6; }
  8969. if test "${ac_cv_var_tzname+set}" = set; then
  8970. $as_echo_n "(cached) " >&6
  8971. else
  8972. cat >conftest.$ac_ext <<_ACEOF
  8973. /* confdefs.h. */
  8974. _ACEOF
  8975. cat confdefs.h >>conftest.$ac_ext
  8976. cat >>conftest.$ac_ext <<_ACEOF
  8977. /* end confdefs.h. */
  8978. #include <time.h>
  8979. #if !HAVE_DECL_TZNAME
  8980. extern char *tzname[];
  8981. #endif
  8982. int
  8983. main ()
  8984. {
  8985. return tzname[0][0];
  8986. ;
  8987. return 0;
  8988. }
  8989. _ACEOF
  8990. rm -f conftest.$ac_objext conftest$ac_exeext
  8991. if { (ac_try="$ac_link"
  8992. case "(($ac_try" in
  8993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8994. *) ac_try_echo=$ac_try;;
  8995. esac
  8996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8997. $as_echo "$ac_try_echo") >&5
  8998. (eval "$ac_link") 2>conftest.er1
  8999. ac_status=$?
  9000. grep -v '^ *+' conftest.er1 >conftest.err
  9001. rm -f conftest.er1
  9002. cat conftest.err >&5
  9003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9004. (exit $ac_status); } && {
  9005. test -z "$ac_cxx_werror_flag" ||
  9006. test ! -s conftest.err
  9007. } && test -s conftest$ac_exeext && {
  9008. test "$cross_compiling" = yes ||
  9009. $as_test_x conftest$ac_exeext
  9010. }; then
  9011. ac_cv_var_tzname=yes
  9012. else
  9013. $as_echo "$as_me: failed program was:" >&5
  9014. sed 's/^/| /' conftest.$ac_ext >&5
  9015. ac_cv_var_tzname=no
  9016. fi
  9017. rm -rf conftest.dSYM
  9018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9019. conftest$ac_exeext conftest.$ac_ext
  9020. fi
  9021. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  9022. $as_echo "$ac_cv_var_tzname" >&6; }
  9023. if test $ac_cv_var_tzname = yes; then
  9024. cat >>confdefs.h <<\_ACEOF
  9025. #define HAVE_TZNAME 1
  9026. _ACEOF
  9027. fi
  9028. fi
  9029. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9030. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9031. if test "${ac_cv_struct_tm+set}" = set; then
  9032. $as_echo_n "(cached) " >&6
  9033. else
  9034. cat >conftest.$ac_ext <<_ACEOF
  9035. /* confdefs.h. */
  9036. _ACEOF
  9037. cat confdefs.h >>conftest.$ac_ext
  9038. cat >>conftest.$ac_ext <<_ACEOF
  9039. /* end confdefs.h. */
  9040. #include <sys/types.h>
  9041. #include <time.h>
  9042. int
  9043. main ()
  9044. {
  9045. struct tm tm;
  9046. int *p = &tm.tm_sec;
  9047. return !p;
  9048. ;
  9049. return 0;
  9050. }
  9051. _ACEOF
  9052. rm -f conftest.$ac_objext
  9053. if { (ac_try="$ac_compile"
  9054. case "(($ac_try" in
  9055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9056. *) ac_try_echo=$ac_try;;
  9057. esac
  9058. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9059. $as_echo "$ac_try_echo") >&5
  9060. (eval "$ac_compile") 2>conftest.er1
  9061. ac_status=$?
  9062. grep -v '^ *+' conftest.er1 >conftest.err
  9063. rm -f conftest.er1
  9064. cat conftest.err >&5
  9065. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9066. (exit $ac_status); } && {
  9067. test -z "$ac_cxx_werror_flag" ||
  9068. test ! -s conftest.err
  9069. } && test -s conftest.$ac_objext; then
  9070. ac_cv_struct_tm=time.h
  9071. else
  9072. $as_echo "$as_me: failed program was:" >&5
  9073. sed 's/^/| /' conftest.$ac_ext >&5
  9074. ac_cv_struct_tm=sys/time.h
  9075. fi
  9076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9077. fi
  9078. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9079. $as_echo "$ac_cv_struct_tm" >&6; }
  9080. if test $ac_cv_struct_tm = sys/time.h; then
  9081. cat >>confdefs.h <<\_ACEOF
  9082. #define TM_IN_SYS_TIME 1
  9083. _ACEOF
  9084. fi
  9085. # Checks for library functions
  9086. for ac_header in vfork.h
  9087. do
  9088. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9089. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9090. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9091. $as_echo_n "checking for $ac_header... " >&6; }
  9092. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9093. $as_echo_n "(cached) " >&6
  9094. fi
  9095. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9096. $as_echo "$as_val"'`
  9097. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9098. $as_echo "$ac_res" >&6; }
  9099. else
  9100. # Is the header compilable?
  9101. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9102. $as_echo_n "checking $ac_header usability... " >&6; }
  9103. cat >conftest.$ac_ext <<_ACEOF
  9104. /* confdefs.h. */
  9105. _ACEOF
  9106. cat confdefs.h >>conftest.$ac_ext
  9107. cat >>conftest.$ac_ext <<_ACEOF
  9108. /* end confdefs.h. */
  9109. $ac_includes_default
  9110. #include <$ac_header>
  9111. _ACEOF
  9112. rm -f conftest.$ac_objext
  9113. if { (ac_try="$ac_compile"
  9114. case "(($ac_try" in
  9115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9116. *) ac_try_echo=$ac_try;;
  9117. esac
  9118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9119. $as_echo "$ac_try_echo") >&5
  9120. (eval "$ac_compile") 2>conftest.er1
  9121. ac_status=$?
  9122. grep -v '^ *+' conftest.er1 >conftest.err
  9123. rm -f conftest.er1
  9124. cat conftest.err >&5
  9125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126. (exit $ac_status); } && {
  9127. test -z "$ac_cxx_werror_flag" ||
  9128. test ! -s conftest.err
  9129. } && test -s conftest.$ac_objext; then
  9130. ac_header_compiler=yes
  9131. else
  9132. $as_echo "$as_me: failed program was:" >&5
  9133. sed 's/^/| /' conftest.$ac_ext >&5
  9134. ac_header_compiler=no
  9135. fi
  9136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9137. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9138. $as_echo "$ac_header_compiler" >&6; }
  9139. # Is the header present?
  9140. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9141. $as_echo_n "checking $ac_header presence... " >&6; }
  9142. cat >conftest.$ac_ext <<_ACEOF
  9143. /* confdefs.h. */
  9144. _ACEOF
  9145. cat confdefs.h >>conftest.$ac_ext
  9146. cat >>conftest.$ac_ext <<_ACEOF
  9147. /* end confdefs.h. */
  9148. #include <$ac_header>
  9149. _ACEOF
  9150. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9151. case "(($ac_try" in
  9152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9153. *) ac_try_echo=$ac_try;;
  9154. esac
  9155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9156. $as_echo "$ac_try_echo") >&5
  9157. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9158. ac_status=$?
  9159. grep -v '^ *+' conftest.er1 >conftest.err
  9160. rm -f conftest.er1
  9161. cat conftest.err >&5
  9162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9163. (exit $ac_status); } >/dev/null && {
  9164. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9165. test ! -s conftest.err
  9166. }; then
  9167. ac_header_preproc=yes
  9168. else
  9169. $as_echo "$as_me: failed program was:" >&5
  9170. sed 's/^/| /' conftest.$ac_ext >&5
  9171. ac_header_preproc=no
  9172. fi
  9173. rm -f conftest.err conftest.$ac_ext
  9174. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9175. $as_echo "$ac_header_preproc" >&6; }
  9176. # So? What about this header?
  9177. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9178. yes:no: )
  9179. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9180. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9181. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9182. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9183. ac_header_preproc=yes
  9184. ;;
  9185. no:yes:* )
  9186. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9187. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9188. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9189. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9190. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9191. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9192. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9193. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9194. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9195. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9196. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9197. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9198. ;;
  9199. esac
  9200. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9201. $as_echo_n "checking for $ac_header... " >&6; }
  9202. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9203. $as_echo_n "(cached) " >&6
  9204. else
  9205. eval "$as_ac_Header=\$ac_header_preproc"
  9206. fi
  9207. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9208. $as_echo "$as_val"'`
  9209. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9210. $as_echo "$ac_res" >&6; }
  9211. fi
  9212. as_val=`eval 'as_val=${'$as_ac_Header'}
  9213. $as_echo "$as_val"'`
  9214. if test "x$as_val" = x""yes; then
  9215. cat >>confdefs.h <<_ACEOF
  9216. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9217. _ACEOF
  9218. fi
  9219. done
  9220. for ac_func in fork vfork
  9221. do
  9222. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9223. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9224. $as_echo_n "checking for $ac_func... " >&6; }
  9225. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9226. $as_echo_n "(cached) " >&6
  9227. else
  9228. cat >conftest.$ac_ext <<_ACEOF
  9229. /* confdefs.h. */
  9230. _ACEOF
  9231. cat confdefs.h >>conftest.$ac_ext
  9232. cat >>conftest.$ac_ext <<_ACEOF
  9233. /* end confdefs.h. */
  9234. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9235. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9236. #define $ac_func innocuous_$ac_func
  9237. /* System header to define __stub macros and hopefully few prototypes,
  9238. which can conflict with char $ac_func (); below.
  9239. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9240. <limits.h> exists even on freestanding compilers. */
  9241. #ifdef __STDC__
  9242. # include <limits.h>
  9243. #else
  9244. # include <assert.h>
  9245. #endif
  9246. #undef $ac_func
  9247. /* Override any GCC internal prototype to avoid an error.
  9248. Use char because int might match the return type of a GCC
  9249. builtin and then its argument prototype would still apply. */
  9250. #ifdef __cplusplus
  9251. extern "C"
  9252. #endif
  9253. char $ac_func ();
  9254. /* The GNU C library defines this for functions which it implements
  9255. to always fail with ENOSYS. Some functions are actually named
  9256. something starting with __ and the normal name is an alias. */
  9257. #if defined __stub_$ac_func || defined __stub___$ac_func
  9258. choke me
  9259. #endif
  9260. int
  9261. main ()
  9262. {
  9263. return $ac_func ();
  9264. ;
  9265. return 0;
  9266. }
  9267. _ACEOF
  9268. rm -f conftest.$ac_objext conftest$ac_exeext
  9269. if { (ac_try="$ac_link"
  9270. case "(($ac_try" in
  9271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9272. *) ac_try_echo=$ac_try;;
  9273. esac
  9274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9275. $as_echo "$ac_try_echo") >&5
  9276. (eval "$ac_link") 2>conftest.er1
  9277. ac_status=$?
  9278. grep -v '^ *+' conftest.er1 >conftest.err
  9279. rm -f conftest.er1
  9280. cat conftest.err >&5
  9281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); } && {
  9283. test -z "$ac_cxx_werror_flag" ||
  9284. test ! -s conftest.err
  9285. } && test -s conftest$ac_exeext && {
  9286. test "$cross_compiling" = yes ||
  9287. $as_test_x conftest$ac_exeext
  9288. }; then
  9289. eval "$as_ac_var=yes"
  9290. else
  9291. $as_echo "$as_me: failed program was:" >&5
  9292. sed 's/^/| /' conftest.$ac_ext >&5
  9293. eval "$as_ac_var=no"
  9294. fi
  9295. rm -rf conftest.dSYM
  9296. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9297. conftest$ac_exeext conftest.$ac_ext
  9298. fi
  9299. ac_res=`eval 'as_val=${'$as_ac_var'}
  9300. $as_echo "$as_val"'`
  9301. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9302. $as_echo "$ac_res" >&6; }
  9303. as_val=`eval 'as_val=${'$as_ac_var'}
  9304. $as_echo "$as_val"'`
  9305. if test "x$as_val" = x""yes; then
  9306. cat >>confdefs.h <<_ACEOF
  9307. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9308. _ACEOF
  9309. fi
  9310. done
  9311. if test "x$ac_cv_func_fork" = xyes; then
  9312. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9313. $as_echo_n "checking for working fork... " >&6; }
  9314. if test "${ac_cv_func_fork_works+set}" = set; then
  9315. $as_echo_n "(cached) " >&6
  9316. else
  9317. if test "$cross_compiling" = yes; then
  9318. ac_cv_func_fork_works=cross
  9319. else
  9320. cat >conftest.$ac_ext <<_ACEOF
  9321. /* confdefs.h. */
  9322. _ACEOF
  9323. cat confdefs.h >>conftest.$ac_ext
  9324. cat >>conftest.$ac_ext <<_ACEOF
  9325. /* end confdefs.h. */
  9326. $ac_includes_default
  9327. int
  9328. main ()
  9329. {
  9330. /* By Ruediger Kuhlmann. */
  9331. return fork () < 0;
  9332. ;
  9333. return 0;
  9334. }
  9335. _ACEOF
  9336. rm -f conftest$ac_exeext
  9337. if { (ac_try="$ac_link"
  9338. case "(($ac_try" in
  9339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9340. *) ac_try_echo=$ac_try;;
  9341. esac
  9342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9343. $as_echo "$ac_try_echo") >&5
  9344. (eval "$ac_link") 2>&5
  9345. ac_status=$?
  9346. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9347. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9348. { (case "(($ac_try" in
  9349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9350. *) ac_try_echo=$ac_try;;
  9351. esac
  9352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9353. $as_echo "$ac_try_echo") >&5
  9354. (eval "$ac_try") 2>&5
  9355. ac_status=$?
  9356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9357. (exit $ac_status); }; }; then
  9358. ac_cv_func_fork_works=yes
  9359. else
  9360. $as_echo "$as_me: program exited with status $ac_status" >&5
  9361. $as_echo "$as_me: failed program was:" >&5
  9362. sed 's/^/| /' conftest.$ac_ext >&5
  9363. ( exit $ac_status )
  9364. ac_cv_func_fork_works=no
  9365. fi
  9366. rm -rf conftest.dSYM
  9367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9368. fi
  9369. fi
  9370. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9371. $as_echo "$ac_cv_func_fork_works" >&6; }
  9372. else
  9373. ac_cv_func_fork_works=$ac_cv_func_fork
  9374. fi
  9375. if test "x$ac_cv_func_fork_works" = xcross; then
  9376. case $host in
  9377. *-*-amigaos* | *-*-msdosdjgpp*)
  9378. # Override, as these systems have only a dummy fork() stub
  9379. ac_cv_func_fork_works=no
  9380. ;;
  9381. *)
  9382. ac_cv_func_fork_works=yes
  9383. ;;
  9384. esac
  9385. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9386. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9387. fi
  9388. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9389. if test "x$ac_cv_func_vfork" = xyes; then
  9390. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9391. $as_echo_n "checking for working vfork... " >&6; }
  9392. if test "${ac_cv_func_vfork_works+set}" = set; then
  9393. $as_echo_n "(cached) " >&6
  9394. else
  9395. if test "$cross_compiling" = yes; then
  9396. ac_cv_func_vfork_works=cross
  9397. else
  9398. cat >conftest.$ac_ext <<_ACEOF
  9399. /* confdefs.h. */
  9400. _ACEOF
  9401. cat confdefs.h >>conftest.$ac_ext
  9402. cat >>conftest.$ac_ext <<_ACEOF
  9403. /* end confdefs.h. */
  9404. /* Thanks to Paul Eggert for this test. */
  9405. $ac_includes_default
  9406. #include <sys/wait.h>
  9407. #ifdef HAVE_VFORK_H
  9408. # include <vfork.h>
  9409. #endif
  9410. /* On some sparc systems, changes by the child to local and incoming
  9411. argument registers are propagated back to the parent. The compiler
  9412. is told about this with #include <vfork.h>, but some compilers
  9413. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9414. static variable whose address is put into a register that is
  9415. clobbered by the vfork. */
  9416. static void
  9417. #ifdef __cplusplus
  9418. sparc_address_test (int arg)
  9419. # else
  9420. sparc_address_test (arg) int arg;
  9421. #endif
  9422. {
  9423. static pid_t child;
  9424. if (!child) {
  9425. child = vfork ();
  9426. if (child < 0) {
  9427. perror ("vfork");
  9428. _exit(2);
  9429. }
  9430. if (!child) {
  9431. arg = getpid();
  9432. write(-1, "", 0);
  9433. _exit (arg);
  9434. }
  9435. }
  9436. }
  9437. int
  9438. main ()
  9439. {
  9440. pid_t parent = getpid ();
  9441. pid_t child;
  9442. sparc_address_test (0);
  9443. child = vfork ();
  9444. if (child == 0) {
  9445. /* Here is another test for sparc vfork register problems. This
  9446. test uses lots of local variables, at least as many local
  9447. variables as main has allocated so far including compiler
  9448. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9449. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9450. reuse the register of parent for one of the local variables,
  9451. since it will think that parent can't possibly be used any more
  9452. in this routine. Assigning to the local variable will thus
  9453. munge parent in the parent process. */
  9454. pid_t
  9455. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9456. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9457. /* Convince the compiler that p..p7 are live; otherwise, it might
  9458. use the same hardware register for all 8 local variables. */
  9459. if (p != p1 || p != p2 || p != p3 || p != p4
  9460. || p != p5 || p != p6 || p != p7)
  9461. _exit(1);
  9462. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9463. from child file descriptors. If the child closes a descriptor
  9464. before it execs or exits, this munges the parent's descriptor
  9465. as well. Test for this by closing stdout in the child. */
  9466. _exit(close(fileno(stdout)) != 0);
  9467. } else {
  9468. int status;
  9469. struct stat st;
  9470. while (wait(&status) != child)
  9471. ;
  9472. return (
  9473. /* Was there some problem with vforking? */
  9474. child < 0
  9475. /* Did the child fail? (This shouldn't happen.) */
  9476. || status
  9477. /* Did the vfork/compiler bug occur? */
  9478. || parent != getpid()
  9479. /* Did the file descriptor bug occur? */
  9480. || fstat(fileno(stdout), &st) != 0
  9481. );
  9482. }
  9483. }
  9484. _ACEOF
  9485. rm -f conftest$ac_exeext
  9486. if { (ac_try="$ac_link"
  9487. case "(($ac_try" in
  9488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9489. *) ac_try_echo=$ac_try;;
  9490. esac
  9491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9492. $as_echo "$ac_try_echo") >&5
  9493. (eval "$ac_link") 2>&5
  9494. ac_status=$?
  9495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9496. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9497. { (case "(($ac_try" in
  9498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9499. *) ac_try_echo=$ac_try;;
  9500. esac
  9501. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9502. $as_echo "$ac_try_echo") >&5
  9503. (eval "$ac_try") 2>&5
  9504. ac_status=$?
  9505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9506. (exit $ac_status); }; }; then
  9507. ac_cv_func_vfork_works=yes
  9508. else
  9509. $as_echo "$as_me: program exited with status $ac_status" >&5
  9510. $as_echo "$as_me: failed program was:" >&5
  9511. sed 's/^/| /' conftest.$ac_ext >&5
  9512. ( exit $ac_status )
  9513. ac_cv_func_vfork_works=no
  9514. fi
  9515. rm -rf conftest.dSYM
  9516. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9517. fi
  9518. fi
  9519. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9520. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9521. fi;
  9522. if test "x$ac_cv_func_fork_works" = xcross; then
  9523. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9524. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9525. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9526. fi
  9527. if test "x$ac_cv_func_vfork_works" = xyes; then
  9528. cat >>confdefs.h <<\_ACEOF
  9529. #define HAVE_WORKING_VFORK 1
  9530. _ACEOF
  9531. else
  9532. cat >>confdefs.h <<\_ACEOF
  9533. #define vfork fork
  9534. _ACEOF
  9535. fi
  9536. if test "x$ac_cv_func_fork_works" = xyes; then
  9537. cat >>confdefs.h <<\_ACEOF
  9538. #define HAVE_WORKING_FORK 1
  9539. _ACEOF
  9540. fi
  9541. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9542. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9543. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. rm -f conftest.sym conftest.file
  9547. echo >conftest.file
  9548. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9549. if test "$cross_compiling" = yes; then
  9550. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9551. else
  9552. cat >conftest.$ac_ext <<_ACEOF
  9553. /* confdefs.h. */
  9554. _ACEOF
  9555. cat confdefs.h >>conftest.$ac_ext
  9556. cat >>conftest.$ac_ext <<_ACEOF
  9557. /* end confdefs.h. */
  9558. $ac_includes_default
  9559. int
  9560. main ()
  9561. {
  9562. struct stat sbuf;
  9563. /* Linux will dereference the symlink and fail.
  9564. That is better in the sense that it means we will not
  9565. have to compile and use the lstat wrapper. */
  9566. return lstat ("conftest.sym/", &sbuf) == 0;
  9567. ;
  9568. return 0;
  9569. }
  9570. _ACEOF
  9571. rm -f conftest$ac_exeext
  9572. if { (ac_try="$ac_link"
  9573. case "(($ac_try" in
  9574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9575. *) ac_try_echo=$ac_try;;
  9576. esac
  9577. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9578. $as_echo "$ac_try_echo") >&5
  9579. (eval "$ac_link") 2>&5
  9580. ac_status=$?
  9581. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9582. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9583. { (case "(($ac_try" in
  9584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9585. *) ac_try_echo=$ac_try;;
  9586. esac
  9587. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9588. $as_echo "$ac_try_echo") >&5
  9589. (eval "$ac_try") 2>&5
  9590. ac_status=$?
  9591. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9592. (exit $ac_status); }; }; then
  9593. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9594. else
  9595. $as_echo "$as_me: program exited with status $ac_status" >&5
  9596. $as_echo "$as_me: failed program was:" >&5
  9597. sed 's/^/| /' conftest.$ac_ext >&5
  9598. ( exit $ac_status )
  9599. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9600. fi
  9601. rm -rf conftest.dSYM
  9602. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9603. fi
  9604. else
  9605. # If the `ln -s' command failed, then we probably don't even
  9606. # have an lstat function.
  9607. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9608. fi
  9609. rm -f conftest.sym conftest.file
  9610. fi
  9611. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9612. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9613. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9614. cat >>confdefs.h <<_ACEOF
  9615. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9616. _ACEOF
  9617. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9618. case " $LIBOBJS " in
  9619. *" lstat.$ac_objext "* ) ;;
  9620. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9621. ;;
  9622. esac
  9623. fi
  9624. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9625. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9626. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9627. $as_echo_n "(cached) " >&6
  9628. else
  9629. if test "$cross_compiling" = yes; then
  9630. ac_cv_func_lstat_empty_string_bug=yes
  9631. else
  9632. cat >conftest.$ac_ext <<_ACEOF
  9633. /* confdefs.h. */
  9634. _ACEOF
  9635. cat confdefs.h >>conftest.$ac_ext
  9636. cat >>conftest.$ac_ext <<_ACEOF
  9637. /* end confdefs.h. */
  9638. $ac_includes_default
  9639. int
  9640. main ()
  9641. {
  9642. struct stat sbuf;
  9643. return lstat ("", &sbuf) == 0;
  9644. ;
  9645. return 0;
  9646. }
  9647. _ACEOF
  9648. rm -f conftest$ac_exeext
  9649. if { (ac_try="$ac_link"
  9650. case "(($ac_try" in
  9651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9652. *) ac_try_echo=$ac_try;;
  9653. esac
  9654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9655. $as_echo "$ac_try_echo") >&5
  9656. (eval "$ac_link") 2>&5
  9657. ac_status=$?
  9658. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9659. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9660. { (case "(($ac_try" in
  9661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9662. *) ac_try_echo=$ac_try;;
  9663. esac
  9664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9665. $as_echo "$ac_try_echo") >&5
  9666. (eval "$ac_try") 2>&5
  9667. ac_status=$?
  9668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9669. (exit $ac_status); }; }; then
  9670. ac_cv_func_lstat_empty_string_bug=no
  9671. else
  9672. $as_echo "$as_me: program exited with status $ac_status" >&5
  9673. $as_echo "$as_me: failed program was:" >&5
  9674. sed 's/^/| /' conftest.$ac_ext >&5
  9675. ( exit $ac_status )
  9676. ac_cv_func_lstat_empty_string_bug=yes
  9677. fi
  9678. rm -rf conftest.dSYM
  9679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9680. fi
  9681. fi
  9682. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9683. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9684. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9685. case " $LIBOBJS " in
  9686. *" lstat.$ac_objext "* ) ;;
  9687. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9688. ;;
  9689. esac
  9690. cat >>confdefs.h <<_ACEOF
  9691. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9692. _ACEOF
  9693. fi
  9694. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9695. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9696. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9697. $as_echo_n "(cached) " >&6
  9698. else
  9699. rm -f conftest.sym conftest.file
  9700. echo >conftest.file
  9701. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9702. if test "$cross_compiling" = yes; then
  9703. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9704. else
  9705. cat >conftest.$ac_ext <<_ACEOF
  9706. /* confdefs.h. */
  9707. _ACEOF
  9708. cat confdefs.h >>conftest.$ac_ext
  9709. cat >>conftest.$ac_ext <<_ACEOF
  9710. /* end confdefs.h. */
  9711. $ac_includes_default
  9712. int
  9713. main ()
  9714. {
  9715. struct stat sbuf;
  9716. /* Linux will dereference the symlink and fail.
  9717. That is better in the sense that it means we will not
  9718. have to compile and use the lstat wrapper. */
  9719. return lstat ("conftest.sym/", &sbuf) == 0;
  9720. ;
  9721. return 0;
  9722. }
  9723. _ACEOF
  9724. rm -f conftest$ac_exeext
  9725. if { (ac_try="$ac_link"
  9726. case "(($ac_try" in
  9727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9728. *) ac_try_echo=$ac_try;;
  9729. esac
  9730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9731. $as_echo "$ac_try_echo") >&5
  9732. (eval "$ac_link") 2>&5
  9733. ac_status=$?
  9734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9735. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9736. { (case "(($ac_try" in
  9737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9738. *) ac_try_echo=$ac_try;;
  9739. esac
  9740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9741. $as_echo "$ac_try_echo") >&5
  9742. (eval "$ac_try") 2>&5
  9743. ac_status=$?
  9744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9745. (exit $ac_status); }; }; then
  9746. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9747. else
  9748. $as_echo "$as_me: program exited with status $ac_status" >&5
  9749. $as_echo "$as_me: failed program was:" >&5
  9750. sed 's/^/| /' conftest.$ac_ext >&5
  9751. ( exit $ac_status )
  9752. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9753. fi
  9754. rm -rf conftest.dSYM
  9755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9756. fi
  9757. else
  9758. # If the `ln -s' command failed, then we probably don't even
  9759. # have an lstat function.
  9760. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9761. fi
  9762. rm -f conftest.sym conftest.file
  9763. fi
  9764. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9765. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9766. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9767. cat >>confdefs.h <<_ACEOF
  9768. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9769. _ACEOF
  9770. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9771. case " $LIBOBJS " in
  9772. *" lstat.$ac_objext "* ) ;;
  9773. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9774. ;;
  9775. esac
  9776. fi
  9777. for ac_header in stdlib.h
  9778. do
  9779. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9780. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9781. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9782. $as_echo_n "checking for $ac_header... " >&6; }
  9783. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9784. $as_echo_n "(cached) " >&6
  9785. fi
  9786. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9787. $as_echo "$as_val"'`
  9788. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9789. $as_echo "$ac_res" >&6; }
  9790. else
  9791. # Is the header compilable?
  9792. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9793. $as_echo_n "checking $ac_header usability... " >&6; }
  9794. cat >conftest.$ac_ext <<_ACEOF
  9795. /* confdefs.h. */
  9796. _ACEOF
  9797. cat confdefs.h >>conftest.$ac_ext
  9798. cat >>conftest.$ac_ext <<_ACEOF
  9799. /* end confdefs.h. */
  9800. $ac_includes_default
  9801. #include <$ac_header>
  9802. _ACEOF
  9803. rm -f conftest.$ac_objext
  9804. if { (ac_try="$ac_compile"
  9805. case "(($ac_try" in
  9806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9807. *) ac_try_echo=$ac_try;;
  9808. esac
  9809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9810. $as_echo "$ac_try_echo") >&5
  9811. (eval "$ac_compile") 2>conftest.er1
  9812. ac_status=$?
  9813. grep -v '^ *+' conftest.er1 >conftest.err
  9814. rm -f conftest.er1
  9815. cat conftest.err >&5
  9816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9817. (exit $ac_status); } && {
  9818. test -z "$ac_cxx_werror_flag" ||
  9819. test ! -s conftest.err
  9820. } && test -s conftest.$ac_objext; then
  9821. ac_header_compiler=yes
  9822. else
  9823. $as_echo "$as_me: failed program was:" >&5
  9824. sed 's/^/| /' conftest.$ac_ext >&5
  9825. ac_header_compiler=no
  9826. fi
  9827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9828. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9829. $as_echo "$ac_header_compiler" >&6; }
  9830. # Is the header present?
  9831. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9832. $as_echo_n "checking $ac_header presence... " >&6; }
  9833. cat >conftest.$ac_ext <<_ACEOF
  9834. /* confdefs.h. */
  9835. _ACEOF
  9836. cat confdefs.h >>conftest.$ac_ext
  9837. cat >>conftest.$ac_ext <<_ACEOF
  9838. /* end confdefs.h. */
  9839. #include <$ac_header>
  9840. _ACEOF
  9841. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9842. case "(($ac_try" in
  9843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9844. *) ac_try_echo=$ac_try;;
  9845. esac
  9846. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9847. $as_echo "$ac_try_echo") >&5
  9848. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9849. ac_status=$?
  9850. grep -v '^ *+' conftest.er1 >conftest.err
  9851. rm -f conftest.er1
  9852. cat conftest.err >&5
  9853. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9854. (exit $ac_status); } >/dev/null && {
  9855. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9856. test ! -s conftest.err
  9857. }; then
  9858. ac_header_preproc=yes
  9859. else
  9860. $as_echo "$as_me: failed program was:" >&5
  9861. sed 's/^/| /' conftest.$ac_ext >&5
  9862. ac_header_preproc=no
  9863. fi
  9864. rm -f conftest.err conftest.$ac_ext
  9865. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9866. $as_echo "$ac_header_preproc" >&6; }
  9867. # So? What about this header?
  9868. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9869. yes:no: )
  9870. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9871. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9872. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9873. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9874. ac_header_preproc=yes
  9875. ;;
  9876. no:yes:* )
  9877. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9878. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9879. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9880. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9881. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9882. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9883. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9884. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9885. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9886. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9887. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9888. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9889. ;;
  9890. esac
  9891. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9892. $as_echo_n "checking for $ac_header... " >&6; }
  9893. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9894. $as_echo_n "(cached) " >&6
  9895. else
  9896. eval "$as_ac_Header=\$ac_header_preproc"
  9897. fi
  9898. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9899. $as_echo "$as_val"'`
  9900. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9901. $as_echo "$ac_res" >&6; }
  9902. fi
  9903. as_val=`eval 'as_val=${'$as_ac_Header'}
  9904. $as_echo "$as_val"'`
  9905. if test "x$as_val" = x""yes; then
  9906. cat >>confdefs.h <<_ACEOF
  9907. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9908. _ACEOF
  9909. fi
  9910. done
  9911. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9912. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9913. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9914. $as_echo_n "(cached) " >&6
  9915. else
  9916. if test "$cross_compiling" = yes; then
  9917. ac_cv_func_malloc_0_nonnull=no
  9918. else
  9919. cat >conftest.$ac_ext <<_ACEOF
  9920. /* confdefs.h. */
  9921. _ACEOF
  9922. cat confdefs.h >>conftest.$ac_ext
  9923. cat >>conftest.$ac_ext <<_ACEOF
  9924. /* end confdefs.h. */
  9925. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9926. # include <stdlib.h>
  9927. #else
  9928. char *malloc ();
  9929. #endif
  9930. int
  9931. main ()
  9932. {
  9933. return ! malloc (0);
  9934. ;
  9935. return 0;
  9936. }
  9937. _ACEOF
  9938. rm -f conftest$ac_exeext
  9939. if { (ac_try="$ac_link"
  9940. case "(($ac_try" in
  9941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9942. *) ac_try_echo=$ac_try;;
  9943. esac
  9944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9945. $as_echo "$ac_try_echo") >&5
  9946. (eval "$ac_link") 2>&5
  9947. ac_status=$?
  9948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9949. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9950. { (case "(($ac_try" in
  9951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9952. *) ac_try_echo=$ac_try;;
  9953. esac
  9954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9955. $as_echo "$ac_try_echo") >&5
  9956. (eval "$ac_try") 2>&5
  9957. ac_status=$?
  9958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9959. (exit $ac_status); }; }; then
  9960. ac_cv_func_malloc_0_nonnull=yes
  9961. else
  9962. $as_echo "$as_me: program exited with status $ac_status" >&5
  9963. $as_echo "$as_me: failed program was:" >&5
  9964. sed 's/^/| /' conftest.$ac_ext >&5
  9965. ( exit $ac_status )
  9966. ac_cv_func_malloc_0_nonnull=no
  9967. fi
  9968. rm -rf conftest.dSYM
  9969. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9970. fi
  9971. fi
  9972. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9973. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9974. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9975. cat >>confdefs.h <<\_ACEOF
  9976. #define HAVE_MALLOC 1
  9977. _ACEOF
  9978. else
  9979. cat >>confdefs.h <<\_ACEOF
  9980. #define HAVE_MALLOC 0
  9981. _ACEOF
  9982. case " $LIBOBJS " in
  9983. *" malloc.$ac_objext "* ) ;;
  9984. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9985. ;;
  9986. esac
  9987. cat >>confdefs.h <<\_ACEOF
  9988. #define malloc rpl_malloc
  9989. _ACEOF
  9990. fi
  9991. for ac_header in $ac_header_list
  9992. do
  9993. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9994. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9995. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9996. $as_echo_n "checking for $ac_header... " >&6; }
  9997. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9998. $as_echo_n "(cached) " >&6
  9999. fi
  10000. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10001. $as_echo "$as_val"'`
  10002. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10003. $as_echo "$ac_res" >&6; }
  10004. else
  10005. # Is the header compilable?
  10006. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10007. $as_echo_n "checking $ac_header usability... " >&6; }
  10008. cat >conftest.$ac_ext <<_ACEOF
  10009. /* confdefs.h. */
  10010. _ACEOF
  10011. cat confdefs.h >>conftest.$ac_ext
  10012. cat >>conftest.$ac_ext <<_ACEOF
  10013. /* end confdefs.h. */
  10014. $ac_includes_default
  10015. #include <$ac_header>
  10016. _ACEOF
  10017. rm -f conftest.$ac_objext
  10018. if { (ac_try="$ac_compile"
  10019. case "(($ac_try" in
  10020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10021. *) ac_try_echo=$ac_try;;
  10022. esac
  10023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10024. $as_echo "$ac_try_echo") >&5
  10025. (eval "$ac_compile") 2>conftest.er1
  10026. ac_status=$?
  10027. grep -v '^ *+' conftest.er1 >conftest.err
  10028. rm -f conftest.er1
  10029. cat conftest.err >&5
  10030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10031. (exit $ac_status); } && {
  10032. test -z "$ac_cxx_werror_flag" ||
  10033. test ! -s conftest.err
  10034. } && test -s conftest.$ac_objext; then
  10035. ac_header_compiler=yes
  10036. else
  10037. $as_echo "$as_me: failed program was:" >&5
  10038. sed 's/^/| /' conftest.$ac_ext >&5
  10039. ac_header_compiler=no
  10040. fi
  10041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10042. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10043. $as_echo "$ac_header_compiler" >&6; }
  10044. # Is the header present?
  10045. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10046. $as_echo_n "checking $ac_header presence... " >&6; }
  10047. cat >conftest.$ac_ext <<_ACEOF
  10048. /* confdefs.h. */
  10049. _ACEOF
  10050. cat confdefs.h >>conftest.$ac_ext
  10051. cat >>conftest.$ac_ext <<_ACEOF
  10052. /* end confdefs.h. */
  10053. #include <$ac_header>
  10054. _ACEOF
  10055. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10056. case "(($ac_try" in
  10057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10058. *) ac_try_echo=$ac_try;;
  10059. esac
  10060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10061. $as_echo "$ac_try_echo") >&5
  10062. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10063. ac_status=$?
  10064. grep -v '^ *+' conftest.er1 >conftest.err
  10065. rm -f conftest.er1
  10066. cat conftest.err >&5
  10067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10068. (exit $ac_status); } >/dev/null && {
  10069. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10070. test ! -s conftest.err
  10071. }; then
  10072. ac_header_preproc=yes
  10073. else
  10074. $as_echo "$as_me: failed program was:" >&5
  10075. sed 's/^/| /' conftest.$ac_ext >&5
  10076. ac_header_preproc=no
  10077. fi
  10078. rm -f conftest.err conftest.$ac_ext
  10079. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10080. $as_echo "$ac_header_preproc" >&6; }
  10081. # So? What about this header?
  10082. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10083. yes:no: )
  10084. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10085. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10086. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10087. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10088. ac_header_preproc=yes
  10089. ;;
  10090. no:yes:* )
  10091. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10092. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10093. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10094. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10095. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10096. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10097. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10098. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10099. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10100. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10101. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10102. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10103. ;;
  10104. esac
  10105. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10106. $as_echo_n "checking for $ac_header... " >&6; }
  10107. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. eval "$as_ac_Header=\$ac_header_preproc"
  10111. fi
  10112. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10113. $as_echo "$as_val"'`
  10114. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10115. $as_echo "$ac_res" >&6; }
  10116. fi
  10117. as_val=`eval 'as_val=${'$as_ac_Header'}
  10118. $as_echo "$as_val"'`
  10119. if test "x$as_val" = x""yes; then
  10120. cat >>confdefs.h <<_ACEOF
  10121. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10122. _ACEOF
  10123. fi
  10124. done
  10125. for ac_func in $ac_func_list
  10126. do
  10127. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10128. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10129. $as_echo_n "checking for $ac_func... " >&6; }
  10130. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10131. $as_echo_n "(cached) " >&6
  10132. else
  10133. cat >conftest.$ac_ext <<_ACEOF
  10134. /* confdefs.h. */
  10135. _ACEOF
  10136. cat confdefs.h >>conftest.$ac_ext
  10137. cat >>conftest.$ac_ext <<_ACEOF
  10138. /* end confdefs.h. */
  10139. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10140. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10141. #define $ac_func innocuous_$ac_func
  10142. /* System header to define __stub macros and hopefully few prototypes,
  10143. which can conflict with char $ac_func (); below.
  10144. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10145. <limits.h> exists even on freestanding compilers. */
  10146. #ifdef __STDC__
  10147. # include <limits.h>
  10148. #else
  10149. # include <assert.h>
  10150. #endif
  10151. #undef $ac_func
  10152. /* Override any GCC internal prototype to avoid an error.
  10153. Use char because int might match the return type of a GCC
  10154. builtin and then its argument prototype would still apply. */
  10155. #ifdef __cplusplus
  10156. extern "C"
  10157. #endif
  10158. char $ac_func ();
  10159. /* The GNU C library defines this for functions which it implements
  10160. to always fail with ENOSYS. Some functions are actually named
  10161. something starting with __ and the normal name is an alias. */
  10162. #if defined __stub_$ac_func || defined __stub___$ac_func
  10163. choke me
  10164. #endif
  10165. int
  10166. main ()
  10167. {
  10168. return $ac_func ();
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. rm -f conftest.$ac_objext conftest$ac_exeext
  10174. if { (ac_try="$ac_link"
  10175. case "(($ac_try" in
  10176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10177. *) ac_try_echo=$ac_try;;
  10178. esac
  10179. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10180. $as_echo "$ac_try_echo") >&5
  10181. (eval "$ac_link") 2>conftest.er1
  10182. ac_status=$?
  10183. grep -v '^ *+' conftest.er1 >conftest.err
  10184. rm -f conftest.er1
  10185. cat conftest.err >&5
  10186. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10187. (exit $ac_status); } && {
  10188. test -z "$ac_cxx_werror_flag" ||
  10189. test ! -s conftest.err
  10190. } && test -s conftest$ac_exeext && {
  10191. test "$cross_compiling" = yes ||
  10192. $as_test_x conftest$ac_exeext
  10193. }; then
  10194. eval "$as_ac_var=yes"
  10195. else
  10196. $as_echo "$as_me: failed program was:" >&5
  10197. sed 's/^/| /' conftest.$ac_ext >&5
  10198. eval "$as_ac_var=no"
  10199. fi
  10200. rm -rf conftest.dSYM
  10201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10202. conftest$ac_exeext conftest.$ac_ext
  10203. fi
  10204. ac_res=`eval 'as_val=${'$as_ac_var'}
  10205. $as_echo "$as_val"'`
  10206. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10207. $as_echo "$ac_res" >&6; }
  10208. as_val=`eval 'as_val=${'$as_ac_var'}
  10209. $as_echo "$as_val"'`
  10210. if test "x$as_val" = x""yes; then
  10211. cat >>confdefs.h <<_ACEOF
  10212. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10213. _ACEOF
  10214. fi
  10215. done
  10216. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10217. $as_echo_n "checking for working mktime... " >&6; }
  10218. if test "${ac_cv_func_working_mktime+set}" = set; then
  10219. $as_echo_n "(cached) " >&6
  10220. else
  10221. if test "$cross_compiling" = yes; then
  10222. ac_cv_func_working_mktime=no
  10223. else
  10224. cat >conftest.$ac_ext <<_ACEOF
  10225. /* confdefs.h. */
  10226. _ACEOF
  10227. cat confdefs.h >>conftest.$ac_ext
  10228. cat >>conftest.$ac_ext <<_ACEOF
  10229. /* end confdefs.h. */
  10230. /* Test program from Paul Eggert and Tony Leneis. */
  10231. #ifdef TIME_WITH_SYS_TIME
  10232. # include <sys/time.h>
  10233. # include <time.h>
  10234. #else
  10235. # ifdef HAVE_SYS_TIME_H
  10236. # include <sys/time.h>
  10237. # else
  10238. # include <time.h>
  10239. # endif
  10240. #endif
  10241. #include <limits.h>
  10242. #include <stdlib.h>
  10243. #ifdef HAVE_UNISTD_H
  10244. # include <unistd.h>
  10245. #endif
  10246. #ifndef HAVE_ALARM
  10247. # define alarm(X) /* empty */
  10248. #endif
  10249. /* Work around redefinition to rpl_putenv by other config tests. */
  10250. #undef putenv
  10251. static time_t time_t_max;
  10252. static time_t time_t_min;
  10253. /* Values we'll use to set the TZ environment variable. */
  10254. static char *tz_strings[] = {
  10255. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10256. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10257. };
  10258. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10259. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10260. Based on a problem report from Andreas Jaeger. */
  10261. static int
  10262. spring_forward_gap ()
  10263. {
  10264. /* glibc (up to about 1998-10-07) failed this test. */
  10265. struct tm tm;
  10266. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10267. instead of "TZ=America/Vancouver" in order to detect the bug even
  10268. on systems that don't support the Olson extension, or don't have the
  10269. full zoneinfo tables installed. */
  10270. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10271. tm.tm_year = 98;
  10272. tm.tm_mon = 3;
  10273. tm.tm_mday = 5;
  10274. tm.tm_hour = 2;
  10275. tm.tm_min = 0;
  10276. tm.tm_sec = 0;
  10277. tm.tm_isdst = -1;
  10278. return mktime (&tm) != (time_t) -1;
  10279. }
  10280. static int
  10281. mktime_test1 (now)
  10282. time_t now;
  10283. {
  10284. struct tm *lt;
  10285. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10286. }
  10287. static int
  10288. mktime_test (now)
  10289. time_t now;
  10290. {
  10291. return (mktime_test1 (now)
  10292. && mktime_test1 ((time_t) (time_t_max - now))
  10293. && mktime_test1 ((time_t) (time_t_min + now)));
  10294. }
  10295. static int
  10296. irix_6_4_bug ()
  10297. {
  10298. /* Based on code from Ariel Faigon. */
  10299. struct tm tm;
  10300. tm.tm_year = 96;
  10301. tm.tm_mon = 3;
  10302. tm.tm_mday = 0;
  10303. tm.tm_hour = 0;
  10304. tm.tm_min = 0;
  10305. tm.tm_sec = 0;
  10306. tm.tm_isdst = -1;
  10307. mktime (&tm);
  10308. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10309. }
  10310. static int
  10311. bigtime_test (j)
  10312. int j;
  10313. {
  10314. struct tm tm;
  10315. time_t now;
  10316. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10317. now = mktime (&tm);
  10318. if (now != (time_t) -1)
  10319. {
  10320. struct tm *lt = localtime (&now);
  10321. if (! (lt
  10322. && lt->tm_year == tm.tm_year
  10323. && lt->tm_mon == tm.tm_mon
  10324. && lt->tm_mday == tm.tm_mday
  10325. && lt->tm_hour == tm.tm_hour
  10326. && lt->tm_min == tm.tm_min
  10327. && lt->tm_sec == tm.tm_sec
  10328. && lt->tm_yday == tm.tm_yday
  10329. && lt->tm_wday == tm.tm_wday
  10330. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10331. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10332. return 0;
  10333. }
  10334. return 1;
  10335. }
  10336. static int
  10337. year_2050_test ()
  10338. {
  10339. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10340. ignoring leap seconds. */
  10341. unsigned long int answer = 2527315200UL;
  10342. struct tm tm;
  10343. time_t t;
  10344. tm.tm_year = 2050 - 1900;
  10345. tm.tm_mon = 2 - 1;
  10346. tm.tm_mday = 1;
  10347. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10348. tm.tm_isdst = -1;
  10349. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10350. instead of "TZ=America/Vancouver" in order to detect the bug even
  10351. on systems that don't support the Olson extension, or don't have the
  10352. full zoneinfo tables installed. */
  10353. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10354. t = mktime (&tm);
  10355. /* Check that the result is either a failure, or close enough
  10356. to the correct answer that we can assume the discrepancy is
  10357. due to leap seconds. */
  10358. return (t == (time_t) -1
  10359. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10360. }
  10361. int
  10362. main ()
  10363. {
  10364. time_t t, delta;
  10365. int i, j;
  10366. /* This test makes some buggy mktime implementations loop.
  10367. Give up after 60 seconds; a mktime slower than that
  10368. isn't worth using anyway. */
  10369. alarm (60);
  10370. for (;;)
  10371. {
  10372. t = (time_t_max << 1) + 1;
  10373. if (t <= time_t_max)
  10374. break;
  10375. time_t_max = t;
  10376. }
  10377. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10378. delta = time_t_max / 997; /* a suitable prime number */
  10379. for (i = 0; i < N_STRINGS; i++)
  10380. {
  10381. if (tz_strings[i])
  10382. putenv (tz_strings[i]);
  10383. for (t = 0; t <= time_t_max - delta; t += delta)
  10384. if (! mktime_test (t))
  10385. return 1;
  10386. if (! (mktime_test ((time_t) 1)
  10387. && mktime_test ((time_t) (60 * 60))
  10388. && mktime_test ((time_t) (60 * 60 * 24))))
  10389. return 1;
  10390. for (j = 1; ; j <<= 1)
  10391. if (! bigtime_test (j))
  10392. return 1;
  10393. else if (INT_MAX / 2 < j)
  10394. break;
  10395. if (! bigtime_test (INT_MAX))
  10396. return 1;
  10397. }
  10398. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10399. }
  10400. _ACEOF
  10401. rm -f conftest$ac_exeext
  10402. if { (ac_try="$ac_link"
  10403. case "(($ac_try" in
  10404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10405. *) ac_try_echo=$ac_try;;
  10406. esac
  10407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10408. $as_echo "$ac_try_echo") >&5
  10409. (eval "$ac_link") 2>&5
  10410. ac_status=$?
  10411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10412. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10413. { (case "(($ac_try" in
  10414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10415. *) ac_try_echo=$ac_try;;
  10416. esac
  10417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10418. $as_echo "$ac_try_echo") >&5
  10419. (eval "$ac_try") 2>&5
  10420. ac_status=$?
  10421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10422. (exit $ac_status); }; }; then
  10423. ac_cv_func_working_mktime=yes
  10424. else
  10425. $as_echo "$as_me: program exited with status $ac_status" >&5
  10426. $as_echo "$as_me: failed program was:" >&5
  10427. sed 's/^/| /' conftest.$ac_ext >&5
  10428. ( exit $ac_status )
  10429. ac_cv_func_working_mktime=no
  10430. fi
  10431. rm -rf conftest.dSYM
  10432. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10433. fi
  10434. fi
  10435. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10436. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10437. if test $ac_cv_func_working_mktime = no; then
  10438. case " $LIBOBJS " in
  10439. *" mktime.$ac_objext "* ) ;;
  10440. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10441. ;;
  10442. esac
  10443. fi
  10444. for ac_header in stdlib.h unistd.h
  10445. do
  10446. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10447. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10448. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10449. $as_echo_n "checking for $ac_header... " >&6; }
  10450. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10451. $as_echo_n "(cached) " >&6
  10452. fi
  10453. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10454. $as_echo "$as_val"'`
  10455. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10456. $as_echo "$ac_res" >&6; }
  10457. else
  10458. # Is the header compilable?
  10459. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10460. $as_echo_n "checking $ac_header usability... " >&6; }
  10461. cat >conftest.$ac_ext <<_ACEOF
  10462. /* confdefs.h. */
  10463. _ACEOF
  10464. cat confdefs.h >>conftest.$ac_ext
  10465. cat >>conftest.$ac_ext <<_ACEOF
  10466. /* end confdefs.h. */
  10467. $ac_includes_default
  10468. #include <$ac_header>
  10469. _ACEOF
  10470. rm -f conftest.$ac_objext
  10471. if { (ac_try="$ac_compile"
  10472. case "(($ac_try" in
  10473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10474. *) ac_try_echo=$ac_try;;
  10475. esac
  10476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10477. $as_echo "$ac_try_echo") >&5
  10478. (eval "$ac_compile") 2>conftest.er1
  10479. ac_status=$?
  10480. grep -v '^ *+' conftest.er1 >conftest.err
  10481. rm -f conftest.er1
  10482. cat conftest.err >&5
  10483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10484. (exit $ac_status); } && {
  10485. test -z "$ac_cxx_werror_flag" ||
  10486. test ! -s conftest.err
  10487. } && test -s conftest.$ac_objext; then
  10488. ac_header_compiler=yes
  10489. else
  10490. $as_echo "$as_me: failed program was:" >&5
  10491. sed 's/^/| /' conftest.$ac_ext >&5
  10492. ac_header_compiler=no
  10493. fi
  10494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10495. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10496. $as_echo "$ac_header_compiler" >&6; }
  10497. # Is the header present?
  10498. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10499. $as_echo_n "checking $ac_header presence... " >&6; }
  10500. cat >conftest.$ac_ext <<_ACEOF
  10501. /* confdefs.h. */
  10502. _ACEOF
  10503. cat confdefs.h >>conftest.$ac_ext
  10504. cat >>conftest.$ac_ext <<_ACEOF
  10505. /* end confdefs.h. */
  10506. #include <$ac_header>
  10507. _ACEOF
  10508. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10509. case "(($ac_try" in
  10510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10511. *) ac_try_echo=$ac_try;;
  10512. esac
  10513. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10514. $as_echo "$ac_try_echo") >&5
  10515. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10516. ac_status=$?
  10517. grep -v '^ *+' conftest.er1 >conftest.err
  10518. rm -f conftest.er1
  10519. cat conftest.err >&5
  10520. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10521. (exit $ac_status); } >/dev/null && {
  10522. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10523. test ! -s conftest.err
  10524. }; then
  10525. ac_header_preproc=yes
  10526. else
  10527. $as_echo "$as_me: failed program was:" >&5
  10528. sed 's/^/| /' conftest.$ac_ext >&5
  10529. ac_header_preproc=no
  10530. fi
  10531. rm -f conftest.err conftest.$ac_ext
  10532. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10533. $as_echo "$ac_header_preproc" >&6; }
  10534. # So? What about this header?
  10535. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10536. yes:no: )
  10537. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10538. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10539. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10540. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10541. ac_header_preproc=yes
  10542. ;;
  10543. no:yes:* )
  10544. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10545. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10546. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10547. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10548. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10549. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10550. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10551. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10552. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10553. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10554. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10555. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10556. ;;
  10557. esac
  10558. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10559. $as_echo_n "checking for $ac_header... " >&6; }
  10560. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10561. $as_echo_n "(cached) " >&6
  10562. else
  10563. eval "$as_ac_Header=\$ac_header_preproc"
  10564. fi
  10565. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10566. $as_echo "$as_val"'`
  10567. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10568. $as_echo "$ac_res" >&6; }
  10569. fi
  10570. as_val=`eval 'as_val=${'$as_ac_Header'}
  10571. $as_echo "$as_val"'`
  10572. if test "x$as_val" = x""yes; then
  10573. cat >>confdefs.h <<_ACEOF
  10574. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10575. _ACEOF
  10576. fi
  10577. done
  10578. for ac_func in getpagesize
  10579. do
  10580. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10581. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10582. $as_echo_n "checking for $ac_func... " >&6; }
  10583. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10584. $as_echo_n "(cached) " >&6
  10585. else
  10586. cat >conftest.$ac_ext <<_ACEOF
  10587. /* confdefs.h. */
  10588. _ACEOF
  10589. cat confdefs.h >>conftest.$ac_ext
  10590. cat >>conftest.$ac_ext <<_ACEOF
  10591. /* end confdefs.h. */
  10592. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10593. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10594. #define $ac_func innocuous_$ac_func
  10595. /* System header to define __stub macros and hopefully few prototypes,
  10596. which can conflict with char $ac_func (); below.
  10597. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10598. <limits.h> exists even on freestanding compilers. */
  10599. #ifdef __STDC__
  10600. # include <limits.h>
  10601. #else
  10602. # include <assert.h>
  10603. #endif
  10604. #undef $ac_func
  10605. /* Override any GCC internal prototype to avoid an error.
  10606. Use char because int might match the return type of a GCC
  10607. builtin and then its argument prototype would still apply. */
  10608. #ifdef __cplusplus
  10609. extern "C"
  10610. #endif
  10611. char $ac_func ();
  10612. /* The GNU C library defines this for functions which it implements
  10613. to always fail with ENOSYS. Some functions are actually named
  10614. something starting with __ and the normal name is an alias. */
  10615. #if defined __stub_$ac_func || defined __stub___$ac_func
  10616. choke me
  10617. #endif
  10618. int
  10619. main ()
  10620. {
  10621. return $ac_func ();
  10622. ;
  10623. return 0;
  10624. }
  10625. _ACEOF
  10626. rm -f conftest.$ac_objext conftest$ac_exeext
  10627. if { (ac_try="$ac_link"
  10628. case "(($ac_try" in
  10629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10630. *) ac_try_echo=$ac_try;;
  10631. esac
  10632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10633. $as_echo "$ac_try_echo") >&5
  10634. (eval "$ac_link") 2>conftest.er1
  10635. ac_status=$?
  10636. grep -v '^ *+' conftest.er1 >conftest.err
  10637. rm -f conftest.er1
  10638. cat conftest.err >&5
  10639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10640. (exit $ac_status); } && {
  10641. test -z "$ac_cxx_werror_flag" ||
  10642. test ! -s conftest.err
  10643. } && test -s conftest$ac_exeext && {
  10644. test "$cross_compiling" = yes ||
  10645. $as_test_x conftest$ac_exeext
  10646. }; then
  10647. eval "$as_ac_var=yes"
  10648. else
  10649. $as_echo "$as_me: failed program was:" >&5
  10650. sed 's/^/| /' conftest.$ac_ext >&5
  10651. eval "$as_ac_var=no"
  10652. fi
  10653. rm -rf conftest.dSYM
  10654. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10655. conftest$ac_exeext conftest.$ac_ext
  10656. fi
  10657. ac_res=`eval 'as_val=${'$as_ac_var'}
  10658. $as_echo "$as_val"'`
  10659. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10660. $as_echo "$ac_res" >&6; }
  10661. as_val=`eval 'as_val=${'$as_ac_var'}
  10662. $as_echo "$as_val"'`
  10663. if test "x$as_val" = x""yes; then
  10664. cat >>confdefs.h <<_ACEOF
  10665. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10666. _ACEOF
  10667. fi
  10668. done
  10669. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10670. $as_echo_n "checking for working mmap... " >&6; }
  10671. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10672. $as_echo_n "(cached) " >&6
  10673. else
  10674. if test "$cross_compiling" = yes; then
  10675. ac_cv_func_mmap_fixed_mapped=no
  10676. else
  10677. cat >conftest.$ac_ext <<_ACEOF
  10678. /* confdefs.h. */
  10679. _ACEOF
  10680. cat confdefs.h >>conftest.$ac_ext
  10681. cat >>conftest.$ac_ext <<_ACEOF
  10682. /* end confdefs.h. */
  10683. $ac_includes_default
  10684. /* malloc might have been renamed as rpl_malloc. */
  10685. #undef malloc
  10686. /* Thanks to Mike Haertel and Jim Avera for this test.
  10687. Here is a matrix of mmap possibilities:
  10688. mmap private not fixed
  10689. mmap private fixed at somewhere currently unmapped
  10690. mmap private fixed at somewhere already mapped
  10691. mmap shared not fixed
  10692. mmap shared fixed at somewhere currently unmapped
  10693. mmap shared fixed at somewhere already mapped
  10694. For private mappings, we should verify that changes cannot be read()
  10695. back from the file, nor mmap's back from the file at a different
  10696. address. (There have been systems where private was not correctly
  10697. implemented like the infamous i386 svr4.0, and systems where the
  10698. VM page cache was not coherent with the file system buffer cache
  10699. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10700. For shared mappings, we should conversely verify that changes get
  10701. propagated back to all the places they're supposed to be.
  10702. Grep wants private fixed already mapped.
  10703. The main things grep needs to know about mmap are:
  10704. * does it exist and is it safe to write into the mmap'd area
  10705. * how to use it (BSD variants) */
  10706. #include <fcntl.h>
  10707. #include <sys/mman.h>
  10708. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10709. char *malloc ();
  10710. #endif
  10711. /* This mess was copied from the GNU getpagesize.h. */
  10712. #ifndef HAVE_GETPAGESIZE
  10713. /* Assume that all systems that can run configure have sys/param.h. */
  10714. # ifndef HAVE_SYS_PARAM_H
  10715. # define HAVE_SYS_PARAM_H 1
  10716. # endif
  10717. # ifdef _SC_PAGESIZE
  10718. # define getpagesize() sysconf(_SC_PAGESIZE)
  10719. # else /* no _SC_PAGESIZE */
  10720. # ifdef HAVE_SYS_PARAM_H
  10721. # include <sys/param.h>
  10722. # ifdef EXEC_PAGESIZE
  10723. # define getpagesize() EXEC_PAGESIZE
  10724. # else /* no EXEC_PAGESIZE */
  10725. # ifdef NBPG
  10726. # define getpagesize() NBPG * CLSIZE
  10727. # ifndef CLSIZE
  10728. # define CLSIZE 1
  10729. # endif /* no CLSIZE */
  10730. # else /* no NBPG */
  10731. # ifdef NBPC
  10732. # define getpagesize() NBPC
  10733. # else /* no NBPC */
  10734. # ifdef PAGESIZE
  10735. # define getpagesize() PAGESIZE
  10736. # endif /* PAGESIZE */
  10737. # endif /* no NBPC */
  10738. # endif /* no NBPG */
  10739. # endif /* no EXEC_PAGESIZE */
  10740. # else /* no HAVE_SYS_PARAM_H */
  10741. # define getpagesize() 8192 /* punt totally */
  10742. # endif /* no HAVE_SYS_PARAM_H */
  10743. # endif /* no _SC_PAGESIZE */
  10744. #endif /* no HAVE_GETPAGESIZE */
  10745. int
  10746. main ()
  10747. {
  10748. char *data, *data2, *data3;
  10749. int i, pagesize;
  10750. int fd;
  10751. pagesize = getpagesize ();
  10752. /* First, make a file with some known garbage in it. */
  10753. data = (char *) malloc (pagesize);
  10754. if (!data)
  10755. return 1;
  10756. for (i = 0; i < pagesize; ++i)
  10757. *(data + i) = rand ();
  10758. umask (0);
  10759. fd = creat ("conftest.mmap", 0600);
  10760. if (fd < 0)
  10761. return 1;
  10762. if (write (fd, data, pagesize) != pagesize)
  10763. return 1;
  10764. close (fd);
  10765. /* Next, try to mmap the file at a fixed address which already has
  10766. something else allocated at it. If we can, also make sure that
  10767. we see the same garbage. */
  10768. fd = open ("conftest.mmap", O_RDWR);
  10769. if (fd < 0)
  10770. return 1;
  10771. data2 = (char *) malloc (2 * pagesize);
  10772. if (!data2)
  10773. return 1;
  10774. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10775. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10776. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10777. return 1;
  10778. for (i = 0; i < pagesize; ++i)
  10779. if (*(data + i) != *(data2 + i))
  10780. return 1;
  10781. /* Finally, make sure that changes to the mapped area do not
  10782. percolate back to the file as seen by read(). (This is a bug on
  10783. some variants of i386 svr4.0.) */
  10784. for (i = 0; i < pagesize; ++i)
  10785. *(data2 + i) = *(data2 + i) + 1;
  10786. data3 = (char *) malloc (pagesize);
  10787. if (!data3)
  10788. return 1;
  10789. if (read (fd, data3, pagesize) != pagesize)
  10790. return 1;
  10791. for (i = 0; i < pagesize; ++i)
  10792. if (*(data + i) != *(data3 + i))
  10793. return 1;
  10794. close (fd);
  10795. return 0;
  10796. }
  10797. _ACEOF
  10798. rm -f conftest$ac_exeext
  10799. if { (ac_try="$ac_link"
  10800. case "(($ac_try" in
  10801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10802. *) ac_try_echo=$ac_try;;
  10803. esac
  10804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10805. $as_echo "$ac_try_echo") >&5
  10806. (eval "$ac_link") 2>&5
  10807. ac_status=$?
  10808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10809. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10810. { (case "(($ac_try" in
  10811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10812. *) ac_try_echo=$ac_try;;
  10813. esac
  10814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10815. $as_echo "$ac_try_echo") >&5
  10816. (eval "$ac_try") 2>&5
  10817. ac_status=$?
  10818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10819. (exit $ac_status); }; }; then
  10820. ac_cv_func_mmap_fixed_mapped=yes
  10821. else
  10822. $as_echo "$as_me: program exited with status $ac_status" >&5
  10823. $as_echo "$as_me: failed program was:" >&5
  10824. sed 's/^/| /' conftest.$ac_ext >&5
  10825. ( exit $ac_status )
  10826. ac_cv_func_mmap_fixed_mapped=no
  10827. fi
  10828. rm -rf conftest.dSYM
  10829. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10830. fi
  10831. fi
  10832. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10833. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10834. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10835. cat >>confdefs.h <<\_ACEOF
  10836. #define HAVE_MMAP 1
  10837. _ACEOF
  10838. fi
  10839. rm -f conftest.mmap
  10840. for ac_header in stdlib.h
  10841. do
  10842. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10843. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10844. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10845. $as_echo_n "checking for $ac_header... " >&6; }
  10846. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10847. $as_echo_n "(cached) " >&6
  10848. fi
  10849. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10850. $as_echo "$as_val"'`
  10851. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10852. $as_echo "$ac_res" >&6; }
  10853. else
  10854. # Is the header compilable?
  10855. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10856. $as_echo_n "checking $ac_header usability... " >&6; }
  10857. cat >conftest.$ac_ext <<_ACEOF
  10858. /* confdefs.h. */
  10859. _ACEOF
  10860. cat confdefs.h >>conftest.$ac_ext
  10861. cat >>conftest.$ac_ext <<_ACEOF
  10862. /* end confdefs.h. */
  10863. $ac_includes_default
  10864. #include <$ac_header>
  10865. _ACEOF
  10866. rm -f conftest.$ac_objext
  10867. if { (ac_try="$ac_compile"
  10868. case "(($ac_try" in
  10869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10870. *) ac_try_echo=$ac_try;;
  10871. esac
  10872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10873. $as_echo "$ac_try_echo") >&5
  10874. (eval "$ac_compile") 2>conftest.er1
  10875. ac_status=$?
  10876. grep -v '^ *+' conftest.er1 >conftest.err
  10877. rm -f conftest.er1
  10878. cat conftest.err >&5
  10879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10880. (exit $ac_status); } && {
  10881. test -z "$ac_cxx_werror_flag" ||
  10882. test ! -s conftest.err
  10883. } && test -s conftest.$ac_objext; then
  10884. ac_header_compiler=yes
  10885. else
  10886. $as_echo "$as_me: failed program was:" >&5
  10887. sed 's/^/| /' conftest.$ac_ext >&5
  10888. ac_header_compiler=no
  10889. fi
  10890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10891. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10892. $as_echo "$ac_header_compiler" >&6; }
  10893. # Is the header present?
  10894. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10895. $as_echo_n "checking $ac_header presence... " >&6; }
  10896. cat >conftest.$ac_ext <<_ACEOF
  10897. /* confdefs.h. */
  10898. _ACEOF
  10899. cat confdefs.h >>conftest.$ac_ext
  10900. cat >>conftest.$ac_ext <<_ACEOF
  10901. /* end confdefs.h. */
  10902. #include <$ac_header>
  10903. _ACEOF
  10904. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10905. case "(($ac_try" in
  10906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10907. *) ac_try_echo=$ac_try;;
  10908. esac
  10909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10910. $as_echo "$ac_try_echo") >&5
  10911. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10912. ac_status=$?
  10913. grep -v '^ *+' conftest.er1 >conftest.err
  10914. rm -f conftest.er1
  10915. cat conftest.err >&5
  10916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10917. (exit $ac_status); } >/dev/null && {
  10918. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10919. test ! -s conftest.err
  10920. }; then
  10921. ac_header_preproc=yes
  10922. else
  10923. $as_echo "$as_me: failed program was:" >&5
  10924. sed 's/^/| /' conftest.$ac_ext >&5
  10925. ac_header_preproc=no
  10926. fi
  10927. rm -f conftest.err conftest.$ac_ext
  10928. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10929. $as_echo "$ac_header_preproc" >&6; }
  10930. # So? What about this header?
  10931. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10932. yes:no: )
  10933. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10934. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10935. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10936. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10937. ac_header_preproc=yes
  10938. ;;
  10939. no:yes:* )
  10940. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10941. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10942. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10943. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10944. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10945. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10946. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10947. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10948. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10949. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10950. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10951. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10952. ;;
  10953. esac
  10954. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10955. $as_echo_n "checking for $ac_header... " >&6; }
  10956. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10957. $as_echo_n "(cached) " >&6
  10958. else
  10959. eval "$as_ac_Header=\$ac_header_preproc"
  10960. fi
  10961. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10962. $as_echo "$as_val"'`
  10963. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10964. $as_echo "$ac_res" >&6; }
  10965. fi
  10966. as_val=`eval 'as_val=${'$as_ac_Header'}
  10967. $as_echo "$as_val"'`
  10968. if test "x$as_val" = x""yes; then
  10969. cat >>confdefs.h <<_ACEOF
  10970. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10971. _ACEOF
  10972. fi
  10973. done
  10974. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10975. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10976. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10977. $as_echo_n "(cached) " >&6
  10978. else
  10979. if test "$cross_compiling" = yes; then
  10980. ac_cv_func_realloc_0_nonnull=no
  10981. else
  10982. cat >conftest.$ac_ext <<_ACEOF
  10983. /* confdefs.h. */
  10984. _ACEOF
  10985. cat confdefs.h >>conftest.$ac_ext
  10986. cat >>conftest.$ac_ext <<_ACEOF
  10987. /* end confdefs.h. */
  10988. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10989. # include <stdlib.h>
  10990. #else
  10991. char *realloc ();
  10992. #endif
  10993. int
  10994. main ()
  10995. {
  10996. return ! realloc (0, 0);
  10997. ;
  10998. return 0;
  10999. }
  11000. _ACEOF
  11001. rm -f conftest$ac_exeext
  11002. if { (ac_try="$ac_link"
  11003. case "(($ac_try" in
  11004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11005. *) ac_try_echo=$ac_try;;
  11006. esac
  11007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11008. $as_echo "$ac_try_echo") >&5
  11009. (eval "$ac_link") 2>&5
  11010. ac_status=$?
  11011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11012. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11013. { (case "(($ac_try" in
  11014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11015. *) ac_try_echo=$ac_try;;
  11016. esac
  11017. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11018. $as_echo "$ac_try_echo") >&5
  11019. (eval "$ac_try") 2>&5
  11020. ac_status=$?
  11021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11022. (exit $ac_status); }; }; then
  11023. ac_cv_func_realloc_0_nonnull=yes
  11024. else
  11025. $as_echo "$as_me: program exited with status $ac_status" >&5
  11026. $as_echo "$as_me: failed program was:" >&5
  11027. sed 's/^/| /' conftest.$ac_ext >&5
  11028. ( exit $ac_status )
  11029. ac_cv_func_realloc_0_nonnull=no
  11030. fi
  11031. rm -rf conftest.dSYM
  11032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11033. fi
  11034. fi
  11035. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  11036. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  11037. if test $ac_cv_func_realloc_0_nonnull = yes; then
  11038. cat >>confdefs.h <<\_ACEOF
  11039. #define HAVE_REALLOC 1
  11040. _ACEOF
  11041. else
  11042. cat >>confdefs.h <<\_ACEOF
  11043. #define HAVE_REALLOC 0
  11044. _ACEOF
  11045. case " $LIBOBJS " in
  11046. *" realloc.$ac_objext "* ) ;;
  11047. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  11048. ;;
  11049. esac
  11050. cat >>confdefs.h <<\_ACEOF
  11051. #define realloc rpl_realloc
  11052. _ACEOF
  11053. fi
  11054. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11055. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11056. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11057. $as_echo_n "(cached) " >&6
  11058. else
  11059. if test "$cross_compiling" = yes; then
  11060. ac_cv_func_stat_empty_string_bug=yes
  11061. else
  11062. cat >conftest.$ac_ext <<_ACEOF
  11063. /* confdefs.h. */
  11064. _ACEOF
  11065. cat confdefs.h >>conftest.$ac_ext
  11066. cat >>conftest.$ac_ext <<_ACEOF
  11067. /* end confdefs.h. */
  11068. $ac_includes_default
  11069. int
  11070. main ()
  11071. {
  11072. struct stat sbuf;
  11073. return stat ("", &sbuf) == 0;
  11074. ;
  11075. return 0;
  11076. }
  11077. _ACEOF
  11078. rm -f conftest$ac_exeext
  11079. if { (ac_try="$ac_link"
  11080. case "(($ac_try" in
  11081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11082. *) ac_try_echo=$ac_try;;
  11083. esac
  11084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11085. $as_echo "$ac_try_echo") >&5
  11086. (eval "$ac_link") 2>&5
  11087. ac_status=$?
  11088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11089. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11090. { (case "(($ac_try" in
  11091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11092. *) ac_try_echo=$ac_try;;
  11093. esac
  11094. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11095. $as_echo "$ac_try_echo") >&5
  11096. (eval "$ac_try") 2>&5
  11097. ac_status=$?
  11098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11099. (exit $ac_status); }; }; then
  11100. ac_cv_func_stat_empty_string_bug=no
  11101. else
  11102. $as_echo "$as_me: program exited with status $ac_status" >&5
  11103. $as_echo "$as_me: failed program was:" >&5
  11104. sed 's/^/| /' conftest.$ac_ext >&5
  11105. ( exit $ac_status )
  11106. ac_cv_func_stat_empty_string_bug=yes
  11107. fi
  11108. rm -rf conftest.dSYM
  11109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11110. fi
  11111. fi
  11112. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11113. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11114. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11115. case " $LIBOBJS " in
  11116. *" stat.$ac_objext "* ) ;;
  11117. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11118. ;;
  11119. esac
  11120. cat >>confdefs.h <<_ACEOF
  11121. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11122. _ACEOF
  11123. fi
  11124. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  11125. $as_echo_n "checking for struct timespec... " >&6; }
  11126. if test "${ac_cv_type_struct_timespec+set}" = set; then
  11127. $as_echo_n "(cached) " >&6
  11128. else
  11129. ac_cv_type_struct_timespec=no
  11130. cat >conftest.$ac_ext <<_ACEOF
  11131. /* confdefs.h. */
  11132. _ACEOF
  11133. cat confdefs.h >>conftest.$ac_ext
  11134. cat >>conftest.$ac_ext <<_ACEOF
  11135. /* end confdefs.h. */
  11136. #include <sys/types.h>
  11137. #include <sys/time.h>
  11138. #include <time.h>
  11139. int
  11140. main ()
  11141. {
  11142. if (sizeof (struct timespec))
  11143. return 0;
  11144. ;
  11145. return 0;
  11146. }
  11147. _ACEOF
  11148. rm -f conftest.$ac_objext
  11149. if { (ac_try="$ac_compile"
  11150. case "(($ac_try" in
  11151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11152. *) ac_try_echo=$ac_try;;
  11153. esac
  11154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11155. $as_echo "$ac_try_echo") >&5
  11156. (eval "$ac_compile") 2>conftest.er1
  11157. ac_status=$?
  11158. grep -v '^ *+' conftest.er1 >conftest.err
  11159. rm -f conftest.er1
  11160. cat conftest.err >&5
  11161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11162. (exit $ac_status); } && {
  11163. test -z "$ac_cxx_werror_flag" ||
  11164. test ! -s conftest.err
  11165. } && test -s conftest.$ac_objext; then
  11166. cat >conftest.$ac_ext <<_ACEOF
  11167. /* confdefs.h. */
  11168. _ACEOF
  11169. cat confdefs.h >>conftest.$ac_ext
  11170. cat >>conftest.$ac_ext <<_ACEOF
  11171. /* end confdefs.h. */
  11172. #include <sys/types.h>
  11173. #include <sys/time.h>
  11174. #include <time.h>
  11175. int
  11176. main ()
  11177. {
  11178. if (sizeof ((struct timespec)))
  11179. return 0;
  11180. ;
  11181. return 0;
  11182. }
  11183. _ACEOF
  11184. rm -f conftest.$ac_objext
  11185. if { (ac_try="$ac_compile"
  11186. case "(($ac_try" in
  11187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11188. *) ac_try_echo=$ac_try;;
  11189. esac
  11190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11191. $as_echo "$ac_try_echo") >&5
  11192. (eval "$ac_compile") 2>conftest.er1
  11193. ac_status=$?
  11194. grep -v '^ *+' conftest.er1 >conftest.err
  11195. rm -f conftest.er1
  11196. cat conftest.err >&5
  11197. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11198. (exit $ac_status); } && {
  11199. test -z "$ac_cxx_werror_flag" ||
  11200. test ! -s conftest.err
  11201. } && test -s conftest.$ac_objext; then
  11202. :
  11203. else
  11204. $as_echo "$as_me: failed program was:" >&5
  11205. sed 's/^/| /' conftest.$ac_ext >&5
  11206. ac_cv_type_struct_timespec=yes
  11207. fi
  11208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11209. else
  11210. $as_echo "$as_me: failed program was:" >&5
  11211. sed 's/^/| /' conftest.$ac_ext >&5
  11212. fi
  11213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11214. fi
  11215. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11216. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11217. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11218. cat >>confdefs.h <<\_ACEOF
  11219. #define HAVE_TIMESPEC 1
  11220. _ACEOF
  11221. fi
  11222. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11223. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11224. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11225. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11226. $as_echo_n "(cached) " >&6
  11227. else
  11228. cat >conftest.$ac_ext <<_ACEOF
  11229. /* confdefs.h. */
  11230. _ACEOF
  11231. cat confdefs.h >>conftest.$ac_ext
  11232. cat >>conftest.$ac_ext <<_ACEOF
  11233. /* end confdefs.h. */
  11234. $ac_includes_default
  11235. int
  11236. main ()
  11237. {
  11238. static struct stat ac_aggr;
  11239. if (ac_aggr.st_mtim)
  11240. return 0;
  11241. ;
  11242. return 0;
  11243. }
  11244. _ACEOF
  11245. rm -f conftest.$ac_objext
  11246. if { (ac_try="$ac_compile"
  11247. case "(($ac_try" in
  11248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11249. *) ac_try_echo=$ac_try;;
  11250. esac
  11251. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11252. $as_echo "$ac_try_echo") >&5
  11253. (eval "$ac_compile") 2>conftest.er1
  11254. ac_status=$?
  11255. grep -v '^ *+' conftest.er1 >conftest.err
  11256. rm -f conftest.er1
  11257. cat conftest.err >&5
  11258. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11259. (exit $ac_status); } && {
  11260. test -z "$ac_cxx_werror_flag" ||
  11261. test ! -s conftest.err
  11262. } && test -s conftest.$ac_objext; then
  11263. ac_cv_member_struct_stat_st_mtim=yes
  11264. else
  11265. $as_echo "$as_me: failed program was:" >&5
  11266. sed 's/^/| /' conftest.$ac_ext >&5
  11267. cat >conftest.$ac_ext <<_ACEOF
  11268. /* confdefs.h. */
  11269. _ACEOF
  11270. cat confdefs.h >>conftest.$ac_ext
  11271. cat >>conftest.$ac_ext <<_ACEOF
  11272. /* end confdefs.h. */
  11273. $ac_includes_default
  11274. int
  11275. main ()
  11276. {
  11277. static struct stat ac_aggr;
  11278. if (sizeof ac_aggr.st_mtim)
  11279. return 0;
  11280. ;
  11281. return 0;
  11282. }
  11283. _ACEOF
  11284. rm -f conftest.$ac_objext
  11285. if { (ac_try="$ac_compile"
  11286. case "(($ac_try" in
  11287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11288. *) ac_try_echo=$ac_try;;
  11289. esac
  11290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11291. $as_echo "$ac_try_echo") >&5
  11292. (eval "$ac_compile") 2>conftest.er1
  11293. ac_status=$?
  11294. grep -v '^ *+' conftest.er1 >conftest.err
  11295. rm -f conftest.er1
  11296. cat conftest.err >&5
  11297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11298. (exit $ac_status); } && {
  11299. test -z "$ac_cxx_werror_flag" ||
  11300. test ! -s conftest.err
  11301. } && test -s conftest.$ac_objext; then
  11302. ac_cv_member_struct_stat_st_mtim=yes
  11303. else
  11304. $as_echo "$as_me: failed program was:" >&5
  11305. sed 's/^/| /' conftest.$ac_ext >&5
  11306. ac_cv_member_struct_stat_st_mtim=no
  11307. fi
  11308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11309. fi
  11310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11311. fi
  11312. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11313. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11314. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11315. cat >>confdefs.h <<\_ACEOF
  11316. #define HAVE_ST_MTIM 1
  11317. _ACEOF
  11318. else
  11319. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11320. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11321. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11322. $as_echo_n "(cached) " >&6
  11323. else
  11324. cat >conftest.$ac_ext <<_ACEOF
  11325. /* confdefs.h. */
  11326. _ACEOF
  11327. cat confdefs.h >>conftest.$ac_ext
  11328. cat >>conftest.$ac_ext <<_ACEOF
  11329. /* end confdefs.h. */
  11330. $ac_includes_default
  11331. int
  11332. main ()
  11333. {
  11334. static struct stat ac_aggr;
  11335. if (ac_aggr.st_mtimespec)
  11336. return 0;
  11337. ;
  11338. return 0;
  11339. }
  11340. _ACEOF
  11341. rm -f conftest.$ac_objext
  11342. if { (ac_try="$ac_compile"
  11343. case "(($ac_try" in
  11344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11345. *) ac_try_echo=$ac_try;;
  11346. esac
  11347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11348. $as_echo "$ac_try_echo") >&5
  11349. (eval "$ac_compile") 2>conftest.er1
  11350. ac_status=$?
  11351. grep -v '^ *+' conftest.er1 >conftest.err
  11352. rm -f conftest.er1
  11353. cat conftest.err >&5
  11354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11355. (exit $ac_status); } && {
  11356. test -z "$ac_cxx_werror_flag" ||
  11357. test ! -s conftest.err
  11358. } && test -s conftest.$ac_objext; then
  11359. ac_cv_member_struct_stat_st_mtimespec=yes
  11360. else
  11361. $as_echo "$as_me: failed program was:" >&5
  11362. sed 's/^/| /' conftest.$ac_ext >&5
  11363. cat >conftest.$ac_ext <<_ACEOF
  11364. /* confdefs.h. */
  11365. _ACEOF
  11366. cat confdefs.h >>conftest.$ac_ext
  11367. cat >>conftest.$ac_ext <<_ACEOF
  11368. /* end confdefs.h. */
  11369. $ac_includes_default
  11370. int
  11371. main ()
  11372. {
  11373. static struct stat ac_aggr;
  11374. if (sizeof ac_aggr.st_mtimespec)
  11375. return 0;
  11376. ;
  11377. return 0;
  11378. }
  11379. _ACEOF
  11380. rm -f conftest.$ac_objext
  11381. if { (ac_try="$ac_compile"
  11382. case "(($ac_try" in
  11383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11384. *) ac_try_echo=$ac_try;;
  11385. esac
  11386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11387. $as_echo "$ac_try_echo") >&5
  11388. (eval "$ac_compile") 2>conftest.er1
  11389. ac_status=$?
  11390. grep -v '^ *+' conftest.er1 >conftest.err
  11391. rm -f conftest.er1
  11392. cat conftest.err >&5
  11393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11394. (exit $ac_status); } && {
  11395. test -z "$ac_cxx_werror_flag" ||
  11396. test ! -s conftest.err
  11397. } && test -s conftest.$ac_objext; then
  11398. ac_cv_member_struct_stat_st_mtimespec=yes
  11399. else
  11400. $as_echo "$as_me: failed program was:" >&5
  11401. sed 's/^/| /' conftest.$ac_ext >&5
  11402. ac_cv_member_struct_stat_st_mtimespec=no
  11403. fi
  11404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11405. fi
  11406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11407. fi
  11408. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11409. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11410. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11411. cat >>confdefs.h <<\_ACEOF
  11412. #define HAVE_ST_MTIMESPEC 1
  11413. _ACEOF
  11414. fi
  11415. fi
  11416. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11417. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11418. cat >conftest.$ac_ext <<_ACEOF
  11419. /* confdefs.h. */
  11420. _ACEOF
  11421. cat confdefs.h >>conftest.$ac_ext
  11422. cat >>conftest.$ac_ext <<_ACEOF
  11423. /* end confdefs.h. */
  11424. #include <sys/types.h>
  11425. #include <sys/time.h>
  11426. int
  11427. main ()
  11428. {
  11429. struct timespec ts1, ts2;
  11430. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11431. #ifndef timespecsub
  11432. #error missing timespecsub
  11433. #endif
  11434. timespecsub(&ts1, &ts2);
  11435. ;
  11436. return 0;
  11437. }
  11438. _ACEOF
  11439. rm -f conftest.$ac_objext
  11440. if { (ac_try="$ac_compile"
  11441. case "(($ac_try" in
  11442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11443. *) ac_try_echo=$ac_try;;
  11444. esac
  11445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11446. $as_echo "$ac_try_echo") >&5
  11447. (eval "$ac_compile") 2>conftest.er1
  11448. ac_status=$?
  11449. grep -v '^ *+' conftest.er1 >conftest.err
  11450. rm -f conftest.er1
  11451. cat conftest.err >&5
  11452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11453. (exit $ac_status); } && {
  11454. test -z "$ac_cxx_werror_flag" ||
  11455. test ! -s conftest.err
  11456. } && test -s conftest.$ac_objext; then
  11457. cat >>confdefs.h <<\_ACEOF
  11458. #define HAVE_TIMESPECSUB2 1
  11459. _ACEOF
  11460. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11461. $as_echo "yes" >&6; }
  11462. else
  11463. $as_echo "$as_me: failed program was:" >&5
  11464. sed 's/^/| /' conftest.$ac_ext >&5
  11465. { $as_echo "$as_me:$LINENO: result: no" >&5
  11466. $as_echo "no" >&6; }
  11467. fi
  11468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11469. fi
  11470. for ac_func in strftime
  11471. do
  11472. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11473. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11474. $as_echo_n "checking for $ac_func... " >&6; }
  11475. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11476. $as_echo_n "(cached) " >&6
  11477. else
  11478. cat >conftest.$ac_ext <<_ACEOF
  11479. /* confdefs.h. */
  11480. _ACEOF
  11481. cat confdefs.h >>conftest.$ac_ext
  11482. cat >>conftest.$ac_ext <<_ACEOF
  11483. /* end confdefs.h. */
  11484. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11486. #define $ac_func innocuous_$ac_func
  11487. /* System header to define __stub macros and hopefully few prototypes,
  11488. which can conflict with char $ac_func (); below.
  11489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11490. <limits.h> exists even on freestanding compilers. */
  11491. #ifdef __STDC__
  11492. # include <limits.h>
  11493. #else
  11494. # include <assert.h>
  11495. #endif
  11496. #undef $ac_func
  11497. /* Override any GCC internal prototype to avoid an error.
  11498. Use char because int might match the return type of a GCC
  11499. builtin and then its argument prototype would still apply. */
  11500. #ifdef __cplusplus
  11501. extern "C"
  11502. #endif
  11503. char $ac_func ();
  11504. /* The GNU C library defines this for functions which it implements
  11505. to always fail with ENOSYS. Some functions are actually named
  11506. something starting with __ and the normal name is an alias. */
  11507. #if defined __stub_$ac_func || defined __stub___$ac_func
  11508. choke me
  11509. #endif
  11510. int
  11511. main ()
  11512. {
  11513. return $ac_func ();
  11514. ;
  11515. return 0;
  11516. }
  11517. _ACEOF
  11518. rm -f conftest.$ac_objext conftest$ac_exeext
  11519. if { (ac_try="$ac_link"
  11520. case "(($ac_try" in
  11521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11522. *) ac_try_echo=$ac_try;;
  11523. esac
  11524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11525. $as_echo "$ac_try_echo") >&5
  11526. (eval "$ac_link") 2>conftest.er1
  11527. ac_status=$?
  11528. grep -v '^ *+' conftest.er1 >conftest.err
  11529. rm -f conftest.er1
  11530. cat conftest.err >&5
  11531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11532. (exit $ac_status); } && {
  11533. test -z "$ac_cxx_werror_flag" ||
  11534. test ! -s conftest.err
  11535. } && test -s conftest$ac_exeext && {
  11536. test "$cross_compiling" = yes ||
  11537. $as_test_x conftest$ac_exeext
  11538. }; then
  11539. eval "$as_ac_var=yes"
  11540. else
  11541. $as_echo "$as_me: failed program was:" >&5
  11542. sed 's/^/| /' conftest.$ac_ext >&5
  11543. eval "$as_ac_var=no"
  11544. fi
  11545. rm -rf conftest.dSYM
  11546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11547. conftest$ac_exeext conftest.$ac_ext
  11548. fi
  11549. ac_res=`eval 'as_val=${'$as_ac_var'}
  11550. $as_echo "$as_val"'`
  11551. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11552. $as_echo "$ac_res" >&6; }
  11553. as_val=`eval 'as_val=${'$as_ac_var'}
  11554. $as_echo "$as_val"'`
  11555. if test "x$as_val" = x""yes; then
  11556. cat >>confdefs.h <<_ACEOF
  11557. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11558. _ACEOF
  11559. else
  11560. # strftime is in -lintl on SCO UNIX.
  11561. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11562. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11563. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11564. $as_echo_n "(cached) " >&6
  11565. else
  11566. ac_check_lib_save_LIBS=$LIBS
  11567. LIBS="-lintl $LIBS"
  11568. cat >conftest.$ac_ext <<_ACEOF
  11569. /* confdefs.h. */
  11570. _ACEOF
  11571. cat confdefs.h >>conftest.$ac_ext
  11572. cat >>conftest.$ac_ext <<_ACEOF
  11573. /* end confdefs.h. */
  11574. /* Override any GCC internal prototype to avoid an error.
  11575. Use char because int might match the return type of a GCC
  11576. builtin and then its argument prototype would still apply. */
  11577. #ifdef __cplusplus
  11578. extern "C"
  11579. #endif
  11580. char strftime ();
  11581. int
  11582. main ()
  11583. {
  11584. return strftime ();
  11585. ;
  11586. return 0;
  11587. }
  11588. _ACEOF
  11589. rm -f conftest.$ac_objext conftest$ac_exeext
  11590. if { (ac_try="$ac_link"
  11591. case "(($ac_try" in
  11592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11593. *) ac_try_echo=$ac_try;;
  11594. esac
  11595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11596. $as_echo "$ac_try_echo") >&5
  11597. (eval "$ac_link") 2>conftest.er1
  11598. ac_status=$?
  11599. grep -v '^ *+' conftest.er1 >conftest.err
  11600. rm -f conftest.er1
  11601. cat conftest.err >&5
  11602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11603. (exit $ac_status); } && {
  11604. test -z "$ac_cxx_werror_flag" ||
  11605. test ! -s conftest.err
  11606. } && test -s conftest$ac_exeext && {
  11607. test "$cross_compiling" = yes ||
  11608. $as_test_x conftest$ac_exeext
  11609. }; then
  11610. ac_cv_lib_intl_strftime=yes
  11611. else
  11612. $as_echo "$as_me: failed program was:" >&5
  11613. sed 's/^/| /' conftest.$ac_ext >&5
  11614. ac_cv_lib_intl_strftime=no
  11615. fi
  11616. rm -rf conftest.dSYM
  11617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11618. conftest$ac_exeext conftest.$ac_ext
  11619. LIBS=$ac_check_lib_save_LIBS
  11620. fi
  11621. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11622. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11623. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11624. cat >>confdefs.h <<\_ACEOF
  11625. #define HAVE_STRFTIME 1
  11626. _ACEOF
  11627. LIBS="-lintl $LIBS"
  11628. fi
  11629. fi
  11630. done
  11631. #checkpoint
  11632. cat >confcache <<\_ACEOF
  11633. # This file is a shell script that caches the results of configure
  11634. # tests run on this system so they can be shared between configure
  11635. # scripts and configure runs, see configure's option --config-cache.
  11636. # It is not useful on other systems. If it contains results you don't
  11637. # want to keep, you may remove or edit it.
  11638. #
  11639. # config.status only pays attention to the cache file if you give it
  11640. # the --recheck option to rerun configure.
  11641. #
  11642. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11643. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11644. # following values.
  11645. _ACEOF
  11646. # The following way of writing the cache mishandles newlines in values,
  11647. # but we know of no workaround that is simple, portable, and efficient.
  11648. # So, we kill variables containing newlines.
  11649. # Ultrix sh set writes to stderr and can't be redirected directly,
  11650. # and sets the high bit in the cache file unless we assign to the vars.
  11651. (
  11652. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11653. eval ac_val=\$$ac_var
  11654. case $ac_val in #(
  11655. *${as_nl}*)
  11656. case $ac_var in #(
  11657. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11658. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11659. esac
  11660. case $ac_var in #(
  11661. _ | IFS | as_nl) ;; #(
  11662. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11663. *) $as_unset $ac_var ;;
  11664. esac ;;
  11665. esac
  11666. done
  11667. (set) 2>&1 |
  11668. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11669. *${as_nl}ac_space=\ *)
  11670. # `set' does not quote correctly, so add quotes (double-quote
  11671. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11672. sed -n \
  11673. "s/'/'\\\\''/g;
  11674. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11675. ;; #(
  11676. *)
  11677. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11678. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11679. ;;
  11680. esac |
  11681. sort
  11682. ) |
  11683. sed '
  11684. /^ac_cv_env_/b end
  11685. t clear
  11686. :clear
  11687. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11688. t end
  11689. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11690. :end' >>confcache
  11691. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11692. if test -w "$cache_file"; then
  11693. test "x$cache_file" != "x/dev/null" &&
  11694. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11695. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11696. cat confcache >$cache_file
  11697. else
  11698. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11699. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11700. fi
  11701. fi
  11702. rm -f confcache
  11703. for ac_func in clock fsync getrusage isascii getpassphrase
  11704. do
  11705. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11706. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11707. $as_echo_n "checking for $ac_func... " >&6; }
  11708. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11709. $as_echo_n "(cached) " >&6
  11710. else
  11711. cat >conftest.$ac_ext <<_ACEOF
  11712. /* confdefs.h. */
  11713. _ACEOF
  11714. cat confdefs.h >>conftest.$ac_ext
  11715. cat >>conftest.$ac_ext <<_ACEOF
  11716. /* end confdefs.h. */
  11717. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11718. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11719. #define $ac_func innocuous_$ac_func
  11720. /* System header to define __stub macros and hopefully few prototypes,
  11721. which can conflict with char $ac_func (); below.
  11722. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11723. <limits.h> exists even on freestanding compilers. */
  11724. #ifdef __STDC__
  11725. # include <limits.h>
  11726. #else
  11727. # include <assert.h>
  11728. #endif
  11729. #undef $ac_func
  11730. /* Override any GCC internal prototype to avoid an error.
  11731. Use char because int might match the return type of a GCC
  11732. builtin and then its argument prototype would still apply. */
  11733. #ifdef __cplusplus
  11734. extern "C"
  11735. #endif
  11736. char $ac_func ();
  11737. /* The GNU C library defines this for functions which it implements
  11738. to always fail with ENOSYS. Some functions are actually named
  11739. something starting with __ and the normal name is an alias. */
  11740. #if defined __stub_$ac_func || defined __stub___$ac_func
  11741. choke me
  11742. #endif
  11743. int
  11744. main ()
  11745. {
  11746. return $ac_func ();
  11747. ;
  11748. return 0;
  11749. }
  11750. _ACEOF
  11751. rm -f conftest.$ac_objext conftest$ac_exeext
  11752. if { (ac_try="$ac_link"
  11753. case "(($ac_try" in
  11754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11755. *) ac_try_echo=$ac_try;;
  11756. esac
  11757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11758. $as_echo "$ac_try_echo") >&5
  11759. (eval "$ac_link") 2>conftest.er1
  11760. ac_status=$?
  11761. grep -v '^ *+' conftest.er1 >conftest.err
  11762. rm -f conftest.er1
  11763. cat conftest.err >&5
  11764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11765. (exit $ac_status); } && {
  11766. test -z "$ac_cxx_werror_flag" ||
  11767. test ! -s conftest.err
  11768. } && test -s conftest$ac_exeext && {
  11769. test "$cross_compiling" = yes ||
  11770. $as_test_x conftest$ac_exeext
  11771. }; then
  11772. eval "$as_ac_var=yes"
  11773. else
  11774. $as_echo "$as_me: failed program was:" >&5
  11775. sed 's/^/| /' conftest.$ac_ext >&5
  11776. eval "$as_ac_var=no"
  11777. fi
  11778. rm -rf conftest.dSYM
  11779. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11780. conftest$ac_exeext conftest.$ac_ext
  11781. fi
  11782. ac_res=`eval 'as_val=${'$as_ac_var'}
  11783. $as_echo "$as_val"'`
  11784. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11785. $as_echo "$ac_res" >&6; }
  11786. as_val=`eval 'as_val=${'$as_ac_var'}
  11787. $as_echo "$as_val"'`
  11788. if test "x$as_val" = x""yes; then
  11789. cat >>confdefs.h <<_ACEOF
  11790. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11791. _ACEOF
  11792. fi
  11793. done
  11794. for ac_func in memcpy memset random rename snprintf srandom gettime
  11795. do
  11796. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11797. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11798. $as_echo_n "checking for $ac_func... " >&6; }
  11799. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11800. $as_echo_n "(cached) " >&6
  11801. else
  11802. cat >conftest.$ac_ext <<_ACEOF
  11803. /* confdefs.h. */
  11804. _ACEOF
  11805. cat confdefs.h >>conftest.$ac_ext
  11806. cat >>conftest.$ac_ext <<_ACEOF
  11807. /* end confdefs.h. */
  11808. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11809. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11810. #define $ac_func innocuous_$ac_func
  11811. /* System header to define __stub macros and hopefully few prototypes,
  11812. which can conflict with char $ac_func (); below.
  11813. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11814. <limits.h> exists even on freestanding compilers. */
  11815. #ifdef __STDC__
  11816. # include <limits.h>
  11817. #else
  11818. # include <assert.h>
  11819. #endif
  11820. #undef $ac_func
  11821. /* Override any GCC internal prototype to avoid an error.
  11822. Use char because int might match the return type of a GCC
  11823. builtin and then its argument prototype would still apply. */
  11824. #ifdef __cplusplus
  11825. extern "C"
  11826. #endif
  11827. char $ac_func ();
  11828. /* The GNU C library defines this for functions which it implements
  11829. to always fail with ENOSYS. Some functions are actually named
  11830. something starting with __ and the normal name is an alias. */
  11831. #if defined __stub_$ac_func || defined __stub___$ac_func
  11832. choke me
  11833. #endif
  11834. int
  11835. main ()
  11836. {
  11837. return $ac_func ();
  11838. ;
  11839. return 0;
  11840. }
  11841. _ACEOF
  11842. rm -f conftest.$ac_objext conftest$ac_exeext
  11843. if { (ac_try="$ac_link"
  11844. case "(($ac_try" in
  11845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11846. *) ac_try_echo=$ac_try;;
  11847. esac
  11848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11849. $as_echo "$ac_try_echo") >&5
  11850. (eval "$ac_link") 2>conftest.er1
  11851. ac_status=$?
  11852. grep -v '^ *+' conftest.er1 >conftest.err
  11853. rm -f conftest.er1
  11854. cat conftest.err >&5
  11855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11856. (exit $ac_status); } && {
  11857. test -z "$ac_cxx_werror_flag" ||
  11858. test ! -s conftest.err
  11859. } && test -s conftest$ac_exeext && {
  11860. test "$cross_compiling" = yes ||
  11861. $as_test_x conftest$ac_exeext
  11862. }; then
  11863. eval "$as_ac_var=yes"
  11864. else
  11865. $as_echo "$as_me: failed program was:" >&5
  11866. sed 's/^/| /' conftest.$ac_ext >&5
  11867. eval "$as_ac_var=no"
  11868. fi
  11869. rm -rf conftest.dSYM
  11870. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11871. conftest$ac_exeext conftest.$ac_ext
  11872. fi
  11873. ac_res=`eval 'as_val=${'$as_ac_var'}
  11874. $as_echo "$as_val"'`
  11875. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11876. $as_echo "$ac_res" >&6; }
  11877. as_val=`eval 'as_val=${'$as_ac_var'}
  11878. $as_echo "$as_val"'`
  11879. if test "x$as_val" = x""yes; then
  11880. cat >>confdefs.h <<_ACEOF
  11881. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11882. _ACEOF
  11883. fi
  11884. done
  11885. #checkpoint
  11886. cat >confcache <<\_ACEOF
  11887. # This file is a shell script that caches the results of configure
  11888. # tests run on this system so they can be shared between configure
  11889. # scripts and configure runs, see configure's option --config-cache.
  11890. # It is not useful on other systems. If it contains results you don't
  11891. # want to keep, you may remove or edit it.
  11892. #
  11893. # config.status only pays attention to the cache file if you give it
  11894. # the --recheck option to rerun configure.
  11895. #
  11896. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11897. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11898. # following values.
  11899. _ACEOF
  11900. # The following way of writing the cache mishandles newlines in values,
  11901. # but we know of no workaround that is simple, portable, and efficient.
  11902. # So, we kill variables containing newlines.
  11903. # Ultrix sh set writes to stderr and can't be redirected directly,
  11904. # and sets the high bit in the cache file unless we assign to the vars.
  11905. (
  11906. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11907. eval ac_val=\$$ac_var
  11908. case $ac_val in #(
  11909. *${as_nl}*)
  11910. case $ac_var in #(
  11911. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11912. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11913. esac
  11914. case $ac_var in #(
  11915. _ | IFS | as_nl) ;; #(
  11916. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11917. *) $as_unset $ac_var ;;
  11918. esac ;;
  11919. esac
  11920. done
  11921. (set) 2>&1 |
  11922. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11923. *${as_nl}ac_space=\ *)
  11924. # `set' does not quote correctly, so add quotes (double-quote
  11925. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11926. sed -n \
  11927. "s/'/'\\\\''/g;
  11928. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11929. ;; #(
  11930. *)
  11931. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11932. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11933. ;;
  11934. esac |
  11935. sort
  11936. ) |
  11937. sed '
  11938. /^ac_cv_env_/b end
  11939. t clear
  11940. :clear
  11941. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11942. t end
  11943. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11944. :end' >>confcache
  11945. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11946. if test -w "$cache_file"; then
  11947. test "x$cache_file" != "x/dev/null" &&
  11948. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11949. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11950. cat confcache >$cache_file
  11951. else
  11952. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11953. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11954. fi
  11955. fi
  11956. rm -f confcache
  11957. for ac_func in strcasecmp strncasecmp vsnprintf
  11958. do
  11959. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11960. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11961. $as_echo_n "checking for $ac_func... " >&6; }
  11962. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11963. $as_echo_n "(cached) " >&6
  11964. else
  11965. cat >conftest.$ac_ext <<_ACEOF
  11966. /* confdefs.h. */
  11967. _ACEOF
  11968. cat confdefs.h >>conftest.$ac_ext
  11969. cat >>conftest.$ac_ext <<_ACEOF
  11970. /* end confdefs.h. */
  11971. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11972. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11973. #define $ac_func innocuous_$ac_func
  11974. /* System header to define __stub macros and hopefully few prototypes,
  11975. which can conflict with char $ac_func (); below.
  11976. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11977. <limits.h> exists even on freestanding compilers. */
  11978. #ifdef __STDC__
  11979. # include <limits.h>
  11980. #else
  11981. # include <assert.h>
  11982. #endif
  11983. #undef $ac_func
  11984. /* Override any GCC internal prototype to avoid an error.
  11985. Use char because int might match the return type of a GCC
  11986. builtin and then its argument prototype would still apply. */
  11987. #ifdef __cplusplus
  11988. extern "C"
  11989. #endif
  11990. char $ac_func ();
  11991. /* The GNU C library defines this for functions which it implements
  11992. to always fail with ENOSYS. Some functions are actually named
  11993. something starting with __ and the normal name is an alias. */
  11994. #if defined __stub_$ac_func || defined __stub___$ac_func
  11995. choke me
  11996. #endif
  11997. int
  11998. main ()
  11999. {
  12000. return $ac_func ();
  12001. ;
  12002. return 0;
  12003. }
  12004. _ACEOF
  12005. rm -f conftest.$ac_objext conftest$ac_exeext
  12006. if { (ac_try="$ac_link"
  12007. case "(($ac_try" in
  12008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12009. *) ac_try_echo=$ac_try;;
  12010. esac
  12011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12012. $as_echo "$ac_try_echo") >&5
  12013. (eval "$ac_link") 2>conftest.er1
  12014. ac_status=$?
  12015. grep -v '^ *+' conftest.er1 >conftest.err
  12016. rm -f conftest.er1
  12017. cat conftest.err >&5
  12018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12019. (exit $ac_status); } && {
  12020. test -z "$ac_cxx_werror_flag" ||
  12021. test ! -s conftest.err
  12022. } && test -s conftest$ac_exeext && {
  12023. test "$cross_compiling" = yes ||
  12024. $as_test_x conftest$ac_exeext
  12025. }; then
  12026. eval "$as_ac_var=yes"
  12027. else
  12028. $as_echo "$as_me: failed program was:" >&5
  12029. sed 's/^/| /' conftest.$ac_ext >&5
  12030. eval "$as_ac_var=no"
  12031. fi
  12032. rm -rf conftest.dSYM
  12033. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12034. conftest$ac_exeext conftest.$ac_ext
  12035. fi
  12036. ac_res=`eval 'as_val=${'$as_ac_var'}
  12037. $as_echo "$as_val"'`
  12038. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12039. $as_echo "$ac_res" >&6; }
  12040. as_val=`eval 'as_val=${'$as_ac_var'}
  12041. $as_echo "$as_val"'`
  12042. if test "x$as_val" = x""yes; then
  12043. cat >>confdefs.h <<_ACEOF
  12044. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12045. _ACEOF
  12046. fi
  12047. done
  12048. #autoscan suggested this....
  12049. #These are recommended by autoscan, but no code supports it currently
  12050. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  12051. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  12052. for ac_func in vsprintf
  12053. do
  12054. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12055. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12056. $as_echo_n "checking for $ac_func... " >&6; }
  12057. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12058. $as_echo_n "(cached) " >&6
  12059. else
  12060. cat >conftest.$ac_ext <<_ACEOF
  12061. /* confdefs.h. */
  12062. _ACEOF
  12063. cat confdefs.h >>conftest.$ac_ext
  12064. cat >>conftest.$ac_ext <<_ACEOF
  12065. /* end confdefs.h. */
  12066. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12067. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12068. #define $ac_func innocuous_$ac_func
  12069. /* System header to define __stub macros and hopefully few prototypes,
  12070. which can conflict with char $ac_func (); below.
  12071. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12072. <limits.h> exists even on freestanding compilers. */
  12073. #ifdef __STDC__
  12074. # include <limits.h>
  12075. #else
  12076. # include <assert.h>
  12077. #endif
  12078. #undef $ac_func
  12079. /* Override any GCC internal prototype to avoid an error.
  12080. Use char because int might match the return type of a GCC
  12081. builtin and then its argument prototype would still apply. */
  12082. #ifdef __cplusplus
  12083. extern "C"
  12084. #endif
  12085. char $ac_func ();
  12086. /* The GNU C library defines this for functions which it implements
  12087. to always fail with ENOSYS. Some functions are actually named
  12088. something starting with __ and the normal name is an alias. */
  12089. #if defined __stub_$ac_func || defined __stub___$ac_func
  12090. choke me
  12091. #endif
  12092. int
  12093. main ()
  12094. {
  12095. return $ac_func ();
  12096. ;
  12097. return 0;
  12098. }
  12099. _ACEOF
  12100. rm -f conftest.$ac_objext conftest$ac_exeext
  12101. if { (ac_try="$ac_link"
  12102. case "(($ac_try" in
  12103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12104. *) ac_try_echo=$ac_try;;
  12105. esac
  12106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12107. $as_echo "$ac_try_echo") >&5
  12108. (eval "$ac_link") 2>conftest.er1
  12109. ac_status=$?
  12110. grep -v '^ *+' conftest.er1 >conftest.err
  12111. rm -f conftest.er1
  12112. cat conftest.err >&5
  12113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12114. (exit $ac_status); } && {
  12115. test -z "$ac_cxx_werror_flag" ||
  12116. test ! -s conftest.err
  12117. } && test -s conftest$ac_exeext && {
  12118. test "$cross_compiling" = yes ||
  12119. $as_test_x conftest$ac_exeext
  12120. }; then
  12121. eval "$as_ac_var=yes"
  12122. else
  12123. $as_echo "$as_me: failed program was:" >&5
  12124. sed 's/^/| /' conftest.$ac_ext >&5
  12125. eval "$as_ac_var=no"
  12126. fi
  12127. rm -rf conftest.dSYM
  12128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12129. conftest$ac_exeext conftest.$ac_ext
  12130. fi
  12131. ac_res=`eval 'as_val=${'$as_ac_var'}
  12132. $as_echo "$as_val"'`
  12133. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12134. $as_echo "$ac_res" >&6; }
  12135. as_val=`eval 'as_val=${'$as_ac_var'}
  12136. $as_echo "$as_val"'`
  12137. if test "x$as_val" = x""yes; then
  12138. cat >>confdefs.h <<_ACEOF
  12139. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12140. _ACEOF
  12141. fi
  12142. done
  12143. if test "$ac_cv_func_vsprintf" = "no"
  12144. then
  12145. cat << 'EOF' >&2
  12146. configure: error:
  12147. Your system does not have the sprintf/vsprintf libraries.
  12148. These are required to compile almost anything. Sorry.
  12149. EOF
  12150. exit 1
  12151. fi
  12152. for ac_func in uname
  12153. do
  12154. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12155. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12156. $as_echo_n "checking for $ac_func... " >&6; }
  12157. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12158. $as_echo_n "(cached) " >&6
  12159. else
  12160. cat >conftest.$ac_ext <<_ACEOF
  12161. /* confdefs.h. */
  12162. _ACEOF
  12163. cat confdefs.h >>conftest.$ac_ext
  12164. cat >>conftest.$ac_ext <<_ACEOF
  12165. /* end confdefs.h. */
  12166. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12168. #define $ac_func innocuous_$ac_func
  12169. /* System header to define __stub macros and hopefully few prototypes,
  12170. which can conflict with char $ac_func (); below.
  12171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12172. <limits.h> exists even on freestanding compilers. */
  12173. #ifdef __STDC__
  12174. # include <limits.h>
  12175. #else
  12176. # include <assert.h>
  12177. #endif
  12178. #undef $ac_func
  12179. /* Override any GCC internal prototype to avoid an error.
  12180. Use char because int might match the return type of a GCC
  12181. builtin and then its argument prototype would still apply. */
  12182. #ifdef __cplusplus
  12183. extern "C"
  12184. #endif
  12185. char $ac_func ();
  12186. /* The GNU C library defines this for functions which it implements
  12187. to always fail with ENOSYS. Some functions are actually named
  12188. something starting with __ and the normal name is an alias. */
  12189. #if defined __stub_$ac_func || defined __stub___$ac_func
  12190. choke me
  12191. #endif
  12192. int
  12193. main ()
  12194. {
  12195. return $ac_func ();
  12196. ;
  12197. return 0;
  12198. }
  12199. _ACEOF
  12200. rm -f conftest.$ac_objext conftest$ac_exeext
  12201. if { (ac_try="$ac_link"
  12202. case "(($ac_try" in
  12203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12204. *) ac_try_echo=$ac_try;;
  12205. esac
  12206. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12207. $as_echo "$ac_try_echo") >&5
  12208. (eval "$ac_link") 2>conftest.er1
  12209. ac_status=$?
  12210. grep -v '^ *+' conftest.er1 >conftest.err
  12211. rm -f conftest.er1
  12212. cat conftest.err >&5
  12213. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12214. (exit $ac_status); } && {
  12215. test -z "$ac_cxx_werror_flag" ||
  12216. test ! -s conftest.err
  12217. } && test -s conftest$ac_exeext && {
  12218. test "$cross_compiling" = yes ||
  12219. $as_test_x conftest$ac_exeext
  12220. }; then
  12221. eval "$as_ac_var=yes"
  12222. else
  12223. $as_echo "$as_me: failed program was:" >&5
  12224. sed 's/^/| /' conftest.$ac_ext >&5
  12225. eval "$as_ac_var=no"
  12226. fi
  12227. rm -rf conftest.dSYM
  12228. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12229. conftest$ac_exeext conftest.$ac_ext
  12230. fi
  12231. ac_res=`eval 'as_val=${'$as_ac_var'}
  12232. $as_echo "$as_val"'`
  12233. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12234. $as_echo "$ac_res" >&6; }
  12235. as_val=`eval 'as_val=${'$as_ac_var'}
  12236. $as_echo "$as_val"'`
  12237. if test "x$as_val" = x""yes; then
  12238. cat >>confdefs.h <<_ACEOF
  12239. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12240. _ACEOF
  12241. fi
  12242. done
  12243. if test "$ac_cv_func_uname" = "no"
  12244. then
  12245. cat << 'EOF' >&2
  12246. configure: error:
  12247. Your system does not have the uname() function.
  12248. This is required for the botpack.
  12249. EOF
  12250. exit 1
  12251. fi
  12252. # Make sure we have stdc headers, since we can't compile without them
  12253. if test "$ac_cv_header_stdc" = "no"
  12254. then
  12255. cat << 'EOF' >&2
  12256. configure: error:
  12257. Your system must support ANSI C Header files.
  12258. These are required for the language support. Sorry.
  12259. EOF
  12260. exit 1
  12261. fi
  12262. #checkpoint
  12263. cat >confcache <<\_ACEOF
  12264. # This file is a shell script that caches the results of configure
  12265. # tests run on this system so they can be shared between configure
  12266. # scripts and configure runs, see configure's option --config-cache.
  12267. # It is not useful on other systems. If it contains results you don't
  12268. # want to keep, you may remove or edit it.
  12269. #
  12270. # config.status only pays attention to the cache file if you give it
  12271. # the --recheck option to rerun configure.
  12272. #
  12273. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12274. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12275. # following values.
  12276. _ACEOF
  12277. # The following way of writing the cache mishandles newlines in values,
  12278. # but we know of no workaround that is simple, portable, and efficient.
  12279. # So, we kill variables containing newlines.
  12280. # Ultrix sh set writes to stderr and can't be redirected directly,
  12281. # and sets the high bit in the cache file unless we assign to the vars.
  12282. (
  12283. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12284. eval ac_val=\$$ac_var
  12285. case $ac_val in #(
  12286. *${as_nl}*)
  12287. case $ac_var in #(
  12288. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12289. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12290. esac
  12291. case $ac_var in #(
  12292. _ | IFS | as_nl) ;; #(
  12293. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12294. *) $as_unset $ac_var ;;
  12295. esac ;;
  12296. esac
  12297. done
  12298. (set) 2>&1 |
  12299. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12300. *${as_nl}ac_space=\ *)
  12301. # `set' does not quote correctly, so add quotes (double-quote
  12302. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12303. sed -n \
  12304. "s/'/'\\\\''/g;
  12305. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12306. ;; #(
  12307. *)
  12308. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12309. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12310. ;;
  12311. esac |
  12312. sort
  12313. ) |
  12314. sed '
  12315. /^ac_cv_env_/b end
  12316. t clear
  12317. :clear
  12318. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12319. t end
  12320. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12321. :end' >>confcache
  12322. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12323. if test -w "$cache_file"; then
  12324. test "x$cache_file" != "x/dev/null" &&
  12325. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12326. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12327. cat confcache >$cache_file
  12328. else
  12329. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12330. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12331. fi
  12332. fi
  12333. rm -f confcache
  12334. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12335. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12336. cat >>confdefs.h <<_ACEOF
  12337. #define EGG_VERSION $version_num
  12338. _ACEOF
  12339. #FIND_WRAPS
  12340. case "$srcdir" in
  12341. [\\/]* | ?:[\\/]*)
  12342. MOD_UPDIR=""
  12343. ;;
  12344. *)
  12345. MOD_UPDIR="../"
  12346. ;;
  12347. esac
  12348. 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"
  12349. for mf in $files; do
  12350. # Strip MF so we end up with the name of the file.
  12351. # echo "MF: $mf"
  12352. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12353. dirpart=`$as_dirname -- "$mf" ||
  12354. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12355. X"$mf" : 'X\(//\)[^/]' \| \
  12356. X"$mf" : 'X\(//\)$' \| \
  12357. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12358. $as_echo X"$mf" |
  12359. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12360. s//\1/
  12361. q
  12362. }
  12363. /^X\(\/\/\)[^/].*/{
  12364. s//\1/
  12365. q
  12366. }
  12367. /^X\(\/\/\)$/{
  12368. s//\1/
  12369. q
  12370. }
  12371. /^X\(\/\).*/{
  12372. s//\1/
  12373. q
  12374. }
  12375. s/.*/./; q'`
  12376. # echo "dirpart: $dirpart mf: $mf"
  12377. # rm -rf "$dirpart/.deps/"
  12378. rm -f "$dirpart/.deps/includes"
  12379. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12380. for file in `sed -n -e '
  12381. /^OBJS = .*\\\\$/ {
  12382. s/^OBJS = //
  12383. :loop
  12384. s/\\\\$//
  12385. p
  12386. n
  12387. /\\\\$/ b loop
  12388. p
  12389. }
  12390. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12391. do
  12392. base=`basename $file .o`
  12393. test -f "$dirpart/$base.c" || continue
  12394. if ! test -f "$dirpart/.deps/$base.Po"; then
  12395. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12396. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12397. if test -f "$dirpart/$base.o"; then
  12398. rm -f "$dirpart/$base.o"
  12399. fi
  12400. fi
  12401. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12402. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12403. done
  12404. done
  12405. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12406. cat >confcache <<\_ACEOF
  12407. # This file is a shell script that caches the results of configure
  12408. # tests run on this system so they can be shared between configure
  12409. # scripts and configure runs, see configure's option --config-cache.
  12410. # It is not useful on other systems. If it contains results you don't
  12411. # want to keep, you may remove or edit it.
  12412. #
  12413. # config.status only pays attention to the cache file if you give it
  12414. # the --recheck option to rerun configure.
  12415. #
  12416. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12417. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12418. # following values.
  12419. _ACEOF
  12420. # The following way of writing the cache mishandles newlines in values,
  12421. # but we know of no workaround that is simple, portable, and efficient.
  12422. # So, we kill variables containing newlines.
  12423. # Ultrix sh set writes to stderr and can't be redirected directly,
  12424. # and sets the high bit in the cache file unless we assign to the vars.
  12425. (
  12426. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12427. eval ac_val=\$$ac_var
  12428. case $ac_val in #(
  12429. *${as_nl}*)
  12430. case $ac_var in #(
  12431. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12432. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12433. esac
  12434. case $ac_var in #(
  12435. _ | IFS | as_nl) ;; #(
  12436. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12437. *) $as_unset $ac_var ;;
  12438. esac ;;
  12439. esac
  12440. done
  12441. (set) 2>&1 |
  12442. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12443. *${as_nl}ac_space=\ *)
  12444. # `set' does not quote correctly, so add quotes (double-quote
  12445. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12446. sed -n \
  12447. "s/'/'\\\\''/g;
  12448. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12449. ;; #(
  12450. *)
  12451. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12452. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12453. ;;
  12454. esac |
  12455. sort
  12456. ) |
  12457. sed '
  12458. /^ac_cv_env_/b end
  12459. t clear
  12460. :clear
  12461. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12462. t end
  12463. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12464. :end' >>confcache
  12465. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12466. if test -w "$cache_file"; then
  12467. test "x$cache_file" != "x/dev/null" &&
  12468. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12469. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12470. cat confcache >$cache_file
  12471. else
  12472. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12473. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12474. fi
  12475. fi
  12476. rm -f confcache
  12477. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12478. # Let make expand exec_prefix.
  12479. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12480. DEFS=-DHAVE_CONFIG_H
  12481. ac_libobjs=
  12482. ac_ltlibobjs=
  12483. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12484. # 1. Remove the extension, and $U if already installed.
  12485. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12486. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12487. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12488. # will be set to the directory where LIBOBJS objects are built.
  12489. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12490. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12491. done
  12492. LIBOBJS=$ac_libobjs
  12493. LTLIBOBJS=$ac_ltlibobjs
  12494. : ${CONFIG_STATUS=./config.status}
  12495. ac_write_fail=0
  12496. ac_clean_files_save=$ac_clean_files
  12497. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12498. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12499. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12500. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12501. #! $SHELL
  12502. # Generated by $as_me.
  12503. # Run this file to recreate the current configuration.
  12504. # Compiler output produced by configure, useful for debugging
  12505. # configure, is in config.log if it exists.
  12506. debug=false
  12507. ac_cs_recheck=false
  12508. ac_cs_silent=false
  12509. SHELL=\${CONFIG_SHELL-$SHELL}
  12510. _ACEOF
  12511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12512. ## --------------------- ##
  12513. ## M4sh Initialization. ##
  12514. ## --------------------- ##
  12515. # Be more Bourne compatible
  12516. DUALCASE=1; export DUALCASE # for MKS sh
  12517. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12518. emulate sh
  12519. NULLCMD=:
  12520. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12521. # is contrary to our usage. Disable this feature.
  12522. alias -g '${1+"$@"}'='"$@"'
  12523. setopt NO_GLOB_SUBST
  12524. else
  12525. case `(set -o) 2>/dev/null` in
  12526. *posix*) set -o posix ;;
  12527. esac
  12528. fi
  12529. # PATH needs CR
  12530. # Avoid depending upon Character Ranges.
  12531. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12532. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12533. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12534. as_cr_digits='0123456789'
  12535. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12536. as_nl='
  12537. '
  12538. export as_nl
  12539. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12540. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12541. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12542. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12543. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12544. as_echo='printf %s\n'
  12545. as_echo_n='printf %s'
  12546. else
  12547. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12548. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12549. as_echo_n='/usr/ucb/echo -n'
  12550. else
  12551. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12552. as_echo_n_body='eval
  12553. arg=$1;
  12554. case $arg in
  12555. *"$as_nl"*)
  12556. expr "X$arg" : "X\\(.*\\)$as_nl";
  12557. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12558. esac;
  12559. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12560. '
  12561. export as_echo_n_body
  12562. as_echo_n='sh -c $as_echo_n_body as_echo'
  12563. fi
  12564. export as_echo_body
  12565. as_echo='sh -c $as_echo_body as_echo'
  12566. fi
  12567. # The user is always right.
  12568. if test "${PATH_SEPARATOR+set}" != set; then
  12569. PATH_SEPARATOR=:
  12570. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12571. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12572. PATH_SEPARATOR=';'
  12573. }
  12574. fi
  12575. # Support unset when possible.
  12576. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12577. as_unset=unset
  12578. else
  12579. as_unset=false
  12580. fi
  12581. # IFS
  12582. # We need space, tab and new line, in precisely that order. Quoting is
  12583. # there to prevent editors from complaining about space-tab.
  12584. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12585. # splitting by setting IFS to empty value.)
  12586. IFS=" "" $as_nl"
  12587. # Find who we are. Look in the path if we contain no directory separator.
  12588. case $0 in
  12589. *[\\/]* ) as_myself=$0 ;;
  12590. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12591. for as_dir in $PATH
  12592. do
  12593. IFS=$as_save_IFS
  12594. test -z "$as_dir" && as_dir=.
  12595. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12596. done
  12597. IFS=$as_save_IFS
  12598. ;;
  12599. esac
  12600. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12601. # in which case we are not to be found in the path.
  12602. if test "x$as_myself" = x; then
  12603. as_myself=$0
  12604. fi
  12605. if test ! -f "$as_myself"; then
  12606. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12607. { (exit 1); exit 1; }
  12608. fi
  12609. # Work around bugs in pre-3.0 UWIN ksh.
  12610. for as_var in ENV MAIL MAILPATH
  12611. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12612. done
  12613. PS1='$ '
  12614. PS2='> '
  12615. PS4='+ '
  12616. # NLS nuisances.
  12617. LC_ALL=C
  12618. export LC_ALL
  12619. LANGUAGE=C
  12620. export LANGUAGE
  12621. # Required to use basename.
  12622. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12623. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12624. as_expr=expr
  12625. else
  12626. as_expr=false
  12627. fi
  12628. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12629. as_basename=basename
  12630. else
  12631. as_basename=false
  12632. fi
  12633. # Name of the executable.
  12634. as_me=`$as_basename -- "$0" ||
  12635. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12636. X"$0" : 'X\(//\)$' \| \
  12637. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12638. $as_echo X/"$0" |
  12639. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12640. s//\1/
  12641. q
  12642. }
  12643. /^X\/\(\/\/\)$/{
  12644. s//\1/
  12645. q
  12646. }
  12647. /^X\/\(\/\).*/{
  12648. s//\1/
  12649. q
  12650. }
  12651. s/.*/./; q'`
  12652. # CDPATH.
  12653. $as_unset CDPATH
  12654. as_lineno_1=$LINENO
  12655. as_lineno_2=$LINENO
  12656. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12657. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12658. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12659. # uniformly replaced by the line number. The first 'sed' inserts a
  12660. # line-number line after each line using $LINENO; the second 'sed'
  12661. # does the real work. The second script uses 'N' to pair each
  12662. # line-number line with the line containing $LINENO, and appends
  12663. # trailing '-' during substitution so that $LINENO is not a special
  12664. # case at line end.
  12665. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12666. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12667. # E. McMahon (1931-1989) for sed's syntax. :-)
  12668. sed -n '
  12669. p
  12670. /[$]LINENO/=
  12671. ' <$as_myself |
  12672. sed '
  12673. s/[$]LINENO.*/&-/
  12674. t lineno
  12675. b
  12676. :lineno
  12677. N
  12678. :loop
  12679. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12680. t loop
  12681. s/-\n.*//
  12682. ' >$as_me.lineno &&
  12683. chmod +x "$as_me.lineno" ||
  12684. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12685. { (exit 1); exit 1; }; }
  12686. # Don't try to exec as it changes $[0], causing all sort of problems
  12687. # (the dirname of $[0] is not the place where we might find the
  12688. # original and so on. Autoconf is especially sensitive to this).
  12689. . "./$as_me.lineno"
  12690. # Exit status is that of the last command.
  12691. exit
  12692. }
  12693. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12694. as_dirname=dirname
  12695. else
  12696. as_dirname=false
  12697. fi
  12698. ECHO_C= ECHO_N= ECHO_T=
  12699. case `echo -n x` in
  12700. -n*)
  12701. case `echo 'x\c'` in
  12702. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12703. *) ECHO_C='\c';;
  12704. esac;;
  12705. *)
  12706. ECHO_N='-n';;
  12707. esac
  12708. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12709. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12710. as_expr=expr
  12711. else
  12712. as_expr=false
  12713. fi
  12714. rm -f conf$$ conf$$.exe conf$$.file
  12715. if test -d conf$$.dir; then
  12716. rm -f conf$$.dir/conf$$.file
  12717. else
  12718. rm -f conf$$.dir
  12719. mkdir conf$$.dir 2>/dev/null
  12720. fi
  12721. if (echo >conf$$.file) 2>/dev/null; then
  12722. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12723. as_ln_s='ln -s'
  12724. # ... but there are two gotchas:
  12725. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12726. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12727. # In both cases, we have to default to `cp -p'.
  12728. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12729. as_ln_s='cp -p'
  12730. elif ln conf$$.file conf$$ 2>/dev/null; then
  12731. as_ln_s=ln
  12732. else
  12733. as_ln_s='cp -p'
  12734. fi
  12735. else
  12736. as_ln_s='cp -p'
  12737. fi
  12738. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12739. rmdir conf$$.dir 2>/dev/null
  12740. if mkdir -p . 2>/dev/null; then
  12741. as_mkdir_p=:
  12742. else
  12743. test -d ./-p && rmdir ./-p
  12744. as_mkdir_p=false
  12745. fi
  12746. if test -x / >/dev/null 2>&1; then
  12747. as_test_x='test -x'
  12748. else
  12749. if ls -dL / >/dev/null 2>&1; then
  12750. as_ls_L_option=L
  12751. else
  12752. as_ls_L_option=
  12753. fi
  12754. as_test_x='
  12755. eval sh -c '\''
  12756. if test -d "$1"; then
  12757. test -d "$1/.";
  12758. else
  12759. case $1 in
  12760. -*)set "./$1";;
  12761. esac;
  12762. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12763. ???[sx]*):;;*)false;;esac;fi
  12764. '\'' sh
  12765. '
  12766. fi
  12767. as_executable_p=$as_test_x
  12768. # Sed expression to map a string onto a valid CPP name.
  12769. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12770. # Sed expression to map a string onto a valid variable name.
  12771. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12772. exec 6>&1
  12773. # Save the log message, to keep $[0] and so on meaningful, and to
  12774. # report actual input values of CONFIG_FILES etc. instead of their
  12775. # values after options handling.
  12776. ac_log="
  12777. This file was extended by $as_me, which was
  12778. generated by GNU Autoconf 2.63. Invocation command line was
  12779. CONFIG_FILES = $CONFIG_FILES
  12780. CONFIG_HEADERS = $CONFIG_HEADERS
  12781. CONFIG_LINKS = $CONFIG_LINKS
  12782. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12783. $ $0 $@
  12784. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12785. "
  12786. _ACEOF
  12787. case $ac_config_files in *"
  12788. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12789. esac
  12790. case $ac_config_headers in *"
  12791. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12792. esac
  12793. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12794. # Files that config.status was made for.
  12795. config_files="$ac_config_files"
  12796. config_headers="$ac_config_headers"
  12797. _ACEOF
  12798. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12799. ac_cs_usage="\
  12800. \`$as_me' instantiates files from templates according to the
  12801. current configuration.
  12802. Usage: $0 [OPTION]... [FILE]...
  12803. -h, --help print this help, then exit
  12804. -V, --version print version number and configuration settings, then exit
  12805. -q, --quiet, --silent
  12806. do not print progress messages
  12807. -d, --debug don't remove temporary files
  12808. --recheck update $as_me by reconfiguring in the same conditions
  12809. --file=FILE[:TEMPLATE]
  12810. instantiate the configuration file FILE
  12811. --header=FILE[:TEMPLATE]
  12812. instantiate the configuration header FILE
  12813. Configuration files:
  12814. $config_files
  12815. Configuration headers:
  12816. $config_headers
  12817. Report bugs to <bug-autoconf@gnu.org>."
  12818. _ACEOF
  12819. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12820. ac_cs_version="\\
  12821. config.status
  12822. configured by $0, generated by GNU Autoconf 2.63,
  12823. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12824. Copyright (C) 2008 Free Software Foundation, Inc.
  12825. This config.status script is free software; the Free Software Foundation
  12826. gives unlimited permission to copy, distribute and modify it."
  12827. ac_pwd='$ac_pwd'
  12828. srcdir='$srcdir'
  12829. AWK='$AWK'
  12830. test -n "\$AWK" || AWK=awk
  12831. _ACEOF
  12832. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12833. # The default lists apply if the user does not specify any file.
  12834. ac_need_defaults=:
  12835. while test $# != 0
  12836. do
  12837. case $1 in
  12838. --*=*)
  12839. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12840. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12841. ac_shift=:
  12842. ;;
  12843. *)
  12844. ac_option=$1
  12845. ac_optarg=$2
  12846. ac_shift=shift
  12847. ;;
  12848. esac
  12849. case $ac_option in
  12850. # Handling of the options.
  12851. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12852. ac_cs_recheck=: ;;
  12853. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12854. $as_echo "$ac_cs_version"; exit ;;
  12855. --debug | --debu | --deb | --de | --d | -d )
  12856. debug=: ;;
  12857. --file | --fil | --fi | --f )
  12858. $ac_shift
  12859. case $ac_optarg in
  12860. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12861. esac
  12862. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12863. ac_need_defaults=false;;
  12864. --header | --heade | --head | --hea )
  12865. $ac_shift
  12866. case $ac_optarg in
  12867. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12868. esac
  12869. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12870. ac_need_defaults=false;;
  12871. --he | --h)
  12872. # Conflict between --help and --header
  12873. { $as_echo "$as_me: error: ambiguous option: $1
  12874. Try \`$0 --help' for more information." >&2
  12875. { (exit 1); exit 1; }; };;
  12876. --help | --hel | -h )
  12877. $as_echo "$ac_cs_usage"; exit ;;
  12878. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12879. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12880. ac_cs_silent=: ;;
  12881. # This is an error.
  12882. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12883. Try \`$0 --help' for more information." >&2
  12884. { (exit 1); exit 1; }; } ;;
  12885. *) ac_config_targets="$ac_config_targets $1"
  12886. ac_need_defaults=false ;;
  12887. esac
  12888. shift
  12889. done
  12890. ac_configure_extra_args=
  12891. if $ac_cs_silent; then
  12892. exec 6>/dev/null
  12893. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12894. fi
  12895. _ACEOF
  12896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12897. if \$ac_cs_recheck; then
  12898. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12899. shift
  12900. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12901. CONFIG_SHELL='$SHELL'
  12902. export CONFIG_SHELL
  12903. exec "\$@"
  12904. fi
  12905. _ACEOF
  12906. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12907. exec 5>>config.log
  12908. {
  12909. echo
  12910. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12911. ## Running $as_me. ##
  12912. _ASBOX
  12913. $as_echo "$ac_log"
  12914. } >&5
  12915. _ACEOF
  12916. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12917. _ACEOF
  12918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12919. # Handling of arguments.
  12920. for ac_config_target in $ac_config_targets
  12921. do
  12922. case $ac_config_target in
  12923. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12924. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12925. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12926. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12927. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12928. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12929. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12930. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12931. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12932. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12933. { (exit 1); exit 1; }; };;
  12934. esac
  12935. done
  12936. # If the user did not use the arguments to specify the items to instantiate,
  12937. # then the envvar interface is used. Set only those that are not.
  12938. # We use the long form for the default assignment because of an extremely
  12939. # bizarre bug on SunOS 4.1.3.
  12940. if $ac_need_defaults; then
  12941. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12942. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12943. fi
  12944. # Have a temporary directory for convenience. Make it in the build tree
  12945. # simply because there is no reason against having it here, and in addition,
  12946. # creating and moving files from /tmp can sometimes cause problems.
  12947. # Hook for its removal unless debugging.
  12948. # Note that there is a small window in which the directory will not be cleaned:
  12949. # after its creation but before its name has been assigned to `$tmp'.
  12950. $debug ||
  12951. {
  12952. tmp=
  12953. trap 'exit_status=$?
  12954. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12955. ' 0
  12956. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12957. }
  12958. # Create a (secure) tmp directory for tmp files.
  12959. {
  12960. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12961. test -n "$tmp" && test -d "$tmp"
  12962. } ||
  12963. {
  12964. tmp=./conf$$-$RANDOM
  12965. (umask 077 && mkdir "$tmp")
  12966. } ||
  12967. {
  12968. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12969. { (exit 1); exit 1; }
  12970. }
  12971. # Set up the scripts for CONFIG_FILES section.
  12972. # No need to generate them if there are no CONFIG_FILES.
  12973. # This happens for instance with `./config.status config.h'.
  12974. if test -n "$CONFIG_FILES"; then
  12975. ac_cr=' '
  12976. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12977. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12978. ac_cs_awk_cr='\\r'
  12979. else
  12980. ac_cs_awk_cr=$ac_cr
  12981. fi
  12982. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12983. _ACEOF
  12984. {
  12985. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12986. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12987. echo "_ACEOF"
  12988. } >conf$$subs.sh ||
  12989. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12990. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12991. { (exit 1); exit 1; }; }
  12992. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12993. ac_delim='%!_!# '
  12994. for ac_last_try in false false false false false :; do
  12995. . ./conf$$subs.sh ||
  12996. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12997. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12998. { (exit 1); exit 1; }; }
  12999. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13000. if test $ac_delim_n = $ac_delim_num; then
  13001. break
  13002. elif $ac_last_try; then
  13003. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13004. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13005. { (exit 1); exit 1; }; }
  13006. else
  13007. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13008. fi
  13009. done
  13010. rm -f conf$$subs.sh
  13011. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13012. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13013. _ACEOF
  13014. sed -n '
  13015. h
  13016. s/^/S["/; s/!.*/"]=/
  13017. p
  13018. g
  13019. s/^[^!]*!//
  13020. :repl
  13021. t repl
  13022. s/'"$ac_delim"'$//
  13023. t delim
  13024. :nl
  13025. h
  13026. s/\(.\{148\}\).*/\1/
  13027. t more1
  13028. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13029. p
  13030. n
  13031. b repl
  13032. :more1
  13033. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13034. p
  13035. g
  13036. s/.\{148\}//
  13037. t nl
  13038. :delim
  13039. h
  13040. s/\(.\{148\}\).*/\1/
  13041. t more2
  13042. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13043. p
  13044. b
  13045. :more2
  13046. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13047. p
  13048. g
  13049. s/.\{148\}//
  13050. t delim
  13051. ' <conf$$subs.awk | sed '
  13052. /^[^""]/{
  13053. N
  13054. s/\n//
  13055. }
  13056. ' >>$CONFIG_STATUS || ac_write_fail=1
  13057. rm -f conf$$subs.awk
  13058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13059. _ACAWK
  13060. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13061. for (key in S) S_is_set[key] = 1
  13062. FS = ""
  13063. }
  13064. {
  13065. line = $ 0
  13066. nfields = split(line, field, "@")
  13067. substed = 0
  13068. len = length(field[1])
  13069. for (i = 2; i < nfields; i++) {
  13070. key = field[i]
  13071. keylen = length(key)
  13072. if (S_is_set[key]) {
  13073. value = S[key]
  13074. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13075. len += length(value) + length(field[++i])
  13076. substed = 1
  13077. } else
  13078. len += 1 + keylen
  13079. }
  13080. print line
  13081. }
  13082. _ACAWK
  13083. _ACEOF
  13084. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13085. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13086. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13087. else
  13088. cat
  13089. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13090. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  13091. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  13092. { (exit 1); exit 1; }; }
  13093. _ACEOF
  13094. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13095. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13096. # trailing colons and then remove the whole line if VPATH becomes empty
  13097. # (actually we leave an empty line to preserve line numbers).
  13098. if test "x$srcdir" = x.; then
  13099. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13100. s/:*\$(srcdir):*/:/
  13101. s/:*\${srcdir}:*/:/
  13102. s/:*@srcdir@:*/:/
  13103. s/^\([^=]*=[ ]*\):*/\1/
  13104. s/:*$//
  13105. s/^[^=]*=[ ]*$//
  13106. }'
  13107. fi
  13108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13109. fi # test -n "$CONFIG_FILES"
  13110. # Set up the scripts for CONFIG_HEADERS section.
  13111. # No need to generate them if there are no CONFIG_HEADERS.
  13112. # This happens for instance with `./config.status Makefile'.
  13113. if test -n "$CONFIG_HEADERS"; then
  13114. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13115. BEGIN {
  13116. _ACEOF
  13117. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13118. # here-document in config.status, that substitutes the proper values into
  13119. # config.h.in to produce config.h.
  13120. # Create a delimiter string that does not exist in confdefs.h, to ease
  13121. # handling of long lines.
  13122. ac_delim='%!_!# '
  13123. for ac_last_try in false false :; do
  13124. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13125. if test -z "$ac_t"; then
  13126. break
  13127. elif $ac_last_try; then
  13128. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13129. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13130. { (exit 1); exit 1; }; }
  13131. else
  13132. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13133. fi
  13134. done
  13135. # For the awk script, D is an array of macro values keyed by name,
  13136. # likewise P contains macro parameters if any. Preserve backslash
  13137. # newline sequences.
  13138. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13139. sed -n '
  13140. s/.\{148\}/&'"$ac_delim"'/g
  13141. t rset
  13142. :rset
  13143. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13144. t def
  13145. d
  13146. :def
  13147. s/\\$//
  13148. t bsnl
  13149. s/["\\]/\\&/g
  13150. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13151. D["\1"]=" \3"/p
  13152. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13153. d
  13154. :bsnl
  13155. s/["\\]/\\&/g
  13156. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13157. D["\1"]=" \3\\\\\\n"\\/p
  13158. t cont
  13159. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13160. t cont
  13161. d
  13162. :cont
  13163. n
  13164. s/.\{148\}/&'"$ac_delim"'/g
  13165. t clear
  13166. :clear
  13167. s/\\$//
  13168. t bsnlc
  13169. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13170. d
  13171. :bsnlc
  13172. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13173. b cont
  13174. ' <confdefs.h | sed '
  13175. s/'"$ac_delim"'/"\\\
  13176. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13177. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13178. for (key in D) D_is_set[key] = 1
  13179. FS = ""
  13180. }
  13181. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13182. line = \$ 0
  13183. split(line, arg, " ")
  13184. if (arg[1] == "#") {
  13185. defundef = arg[2]
  13186. mac1 = arg[3]
  13187. } else {
  13188. defundef = substr(arg[1], 2)
  13189. mac1 = arg[2]
  13190. }
  13191. split(mac1, mac2, "(") #)
  13192. macro = mac2[1]
  13193. prefix = substr(line, 1, index(line, defundef) - 1)
  13194. if (D_is_set[macro]) {
  13195. # Preserve the white space surrounding the "#".
  13196. print prefix "define", macro P[macro] D[macro]
  13197. next
  13198. } else {
  13199. # Replace #undef with comments. This is necessary, for example,
  13200. # in the case of _POSIX_SOURCE, which is predefined and required
  13201. # on some systems where configure will not decide to define it.
  13202. if (defundef == "undef") {
  13203. print "/*", prefix defundef, macro, "*/"
  13204. next
  13205. }
  13206. }
  13207. }
  13208. { print }
  13209. _ACAWK
  13210. _ACEOF
  13211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13212. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13213. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13214. { (exit 1); exit 1; }; }
  13215. fi # test -n "$CONFIG_HEADERS"
  13216. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13217. shift
  13218. for ac_tag
  13219. do
  13220. case $ac_tag in
  13221. :[FHLC]) ac_mode=$ac_tag; continue;;
  13222. esac
  13223. case $ac_mode$ac_tag in
  13224. :[FHL]*:*);;
  13225. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13226. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13227. { (exit 1); exit 1; }; };;
  13228. :[FH]-) ac_tag=-:-;;
  13229. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13230. esac
  13231. ac_save_IFS=$IFS
  13232. IFS=:
  13233. set x $ac_tag
  13234. IFS=$ac_save_IFS
  13235. shift
  13236. ac_file=$1
  13237. shift
  13238. case $ac_mode in
  13239. :L) ac_source=$1;;
  13240. :[FH])
  13241. ac_file_inputs=
  13242. for ac_f
  13243. do
  13244. case $ac_f in
  13245. -) ac_f="$tmp/stdin";;
  13246. *) # Look for the file first in the build tree, then in the source tree
  13247. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13248. # because $ac_f cannot contain `:'.
  13249. test -f "$ac_f" ||
  13250. case $ac_f in
  13251. [\\/$]*) false;;
  13252. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13253. esac ||
  13254. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13255. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13256. { (exit 1); exit 1; }; };;
  13257. esac
  13258. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13259. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13260. done
  13261. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13262. # use $as_me), people would be surprised to read:
  13263. # /* config.h. Generated by config.status. */
  13264. configure_input='Generated from '`
  13265. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13266. `' by configure.'
  13267. if test x"$ac_file" != x-; then
  13268. configure_input="$ac_file. $configure_input"
  13269. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13270. $as_echo "$as_me: creating $ac_file" >&6;}
  13271. fi
  13272. # Neutralize special characters interpreted by sed in replacement strings.
  13273. case $configure_input in #(
  13274. *\&* | *\|* | *\\* )
  13275. ac_sed_conf_input=`$as_echo "$configure_input" |
  13276. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13277. *) ac_sed_conf_input=$configure_input;;
  13278. esac
  13279. case $ac_tag in
  13280. *:-:* | *:-) cat >"$tmp/stdin" \
  13281. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13282. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13283. { (exit 1); exit 1; }; } ;;
  13284. esac
  13285. ;;
  13286. esac
  13287. ac_dir=`$as_dirname -- "$ac_file" ||
  13288. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13289. X"$ac_file" : 'X\(//\)[^/]' \| \
  13290. X"$ac_file" : 'X\(//\)$' \| \
  13291. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13292. $as_echo X"$ac_file" |
  13293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13294. s//\1/
  13295. q
  13296. }
  13297. /^X\(\/\/\)[^/].*/{
  13298. s//\1/
  13299. q
  13300. }
  13301. /^X\(\/\/\)$/{
  13302. s//\1/
  13303. q
  13304. }
  13305. /^X\(\/\).*/{
  13306. s//\1/
  13307. q
  13308. }
  13309. s/.*/./; q'`
  13310. { as_dir="$ac_dir"
  13311. case $as_dir in #(
  13312. -*) as_dir=./$as_dir;;
  13313. esac
  13314. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13315. as_dirs=
  13316. while :; do
  13317. case $as_dir in #(
  13318. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13319. *) as_qdir=$as_dir;;
  13320. esac
  13321. as_dirs="'$as_qdir' $as_dirs"
  13322. as_dir=`$as_dirname -- "$as_dir" ||
  13323. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13324. X"$as_dir" : 'X\(//\)[^/]' \| \
  13325. X"$as_dir" : 'X\(//\)$' \| \
  13326. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13327. $as_echo X"$as_dir" |
  13328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13329. s//\1/
  13330. q
  13331. }
  13332. /^X\(\/\/\)[^/].*/{
  13333. s//\1/
  13334. q
  13335. }
  13336. /^X\(\/\/\)$/{
  13337. s//\1/
  13338. q
  13339. }
  13340. /^X\(\/\).*/{
  13341. s//\1/
  13342. q
  13343. }
  13344. s/.*/./; q'`
  13345. test -d "$as_dir" && break
  13346. done
  13347. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13348. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13349. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13350. { (exit 1); exit 1; }; }; }
  13351. ac_builddir=.
  13352. case "$ac_dir" in
  13353. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13354. *)
  13355. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13356. # A ".." for each directory in $ac_dir_suffix.
  13357. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13358. case $ac_top_builddir_sub in
  13359. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13360. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13361. esac ;;
  13362. esac
  13363. ac_abs_top_builddir=$ac_pwd
  13364. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13365. # for backward compatibility:
  13366. ac_top_builddir=$ac_top_build_prefix
  13367. case $srcdir in
  13368. .) # We are building in place.
  13369. ac_srcdir=.
  13370. ac_top_srcdir=$ac_top_builddir_sub
  13371. ac_abs_top_srcdir=$ac_pwd ;;
  13372. [\\/]* | ?:[\\/]* ) # Absolute name.
  13373. ac_srcdir=$srcdir$ac_dir_suffix;
  13374. ac_top_srcdir=$srcdir
  13375. ac_abs_top_srcdir=$srcdir ;;
  13376. *) # Relative name.
  13377. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13378. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13379. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13380. esac
  13381. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13382. case $ac_mode in
  13383. :F)
  13384. #
  13385. # CONFIG_FILE
  13386. #
  13387. _ACEOF
  13388. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13389. # If the template does not know about datarootdir, expand it.
  13390. # FIXME: This hack should be removed a few years after 2.60.
  13391. ac_datarootdir_hack=; ac_datarootdir_seen=
  13392. ac_sed_dataroot='
  13393. /datarootdir/ {
  13394. p
  13395. q
  13396. }
  13397. /@datadir@/p
  13398. /@docdir@/p
  13399. /@infodir@/p
  13400. /@localedir@/p
  13401. /@mandir@/p
  13402. '
  13403. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13404. *datarootdir*) ac_datarootdir_seen=yes;;
  13405. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13406. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13407. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13408. _ACEOF
  13409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13410. ac_datarootdir_hack='
  13411. s&@datadir@&$datadir&g
  13412. s&@docdir@&$docdir&g
  13413. s&@infodir@&$infodir&g
  13414. s&@localedir@&$localedir&g
  13415. s&@mandir@&$mandir&g
  13416. s&\\\${datarootdir}&$datarootdir&g' ;;
  13417. esac
  13418. _ACEOF
  13419. # Neutralize VPATH when `$srcdir' = `.'.
  13420. # Shell code in configure.ac might set extrasub.
  13421. # FIXME: do we really want to maintain this feature?
  13422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13423. ac_sed_extra="$ac_vpsub
  13424. $extrasub
  13425. _ACEOF
  13426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13427. :t
  13428. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13429. s|@configure_input@|$ac_sed_conf_input|;t t
  13430. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13431. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13432. s&@srcdir@&$ac_srcdir&;t t
  13433. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13434. s&@top_srcdir@&$ac_top_srcdir&;t t
  13435. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13436. s&@builddir@&$ac_builddir&;t t
  13437. s&@abs_builddir@&$ac_abs_builddir&;t t
  13438. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13439. $ac_datarootdir_hack
  13440. "
  13441. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13442. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13443. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13444. { (exit 1); exit 1; }; }
  13445. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13446. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13447. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13448. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13449. which seems to be undefined. Please make sure it is defined." >&5
  13450. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13451. which seems to be undefined. Please make sure it is defined." >&2;}
  13452. rm -f "$tmp/stdin"
  13453. case $ac_file in
  13454. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13455. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13456. esac \
  13457. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13458. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13459. { (exit 1); exit 1; }; }
  13460. ;;
  13461. :H)
  13462. #
  13463. # CONFIG_HEADER
  13464. #
  13465. if test x"$ac_file" != x-; then
  13466. {
  13467. $as_echo "/* $configure_input */" \
  13468. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13469. } >"$tmp/config.h" \
  13470. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13471. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13472. { (exit 1); exit 1; }; }
  13473. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13474. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13475. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13476. else
  13477. rm -f "$ac_file"
  13478. mv "$tmp/config.h" "$ac_file" \
  13479. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13480. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13481. { (exit 1); exit 1; }; }
  13482. fi
  13483. else
  13484. $as_echo "/* $configure_input */" \
  13485. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13486. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13487. $as_echo "$as_me: error: could not create -" >&2;}
  13488. { (exit 1); exit 1; }; }
  13489. fi
  13490. ;;
  13491. esac
  13492. done # for ac_tag
  13493. { (exit 0); exit 0; }
  13494. _ACEOF
  13495. chmod +x $CONFIG_STATUS
  13496. ac_clean_files=$ac_clean_files_save
  13497. test $ac_write_fail = 0 ||
  13498. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13499. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13500. { (exit 1); exit 1; }; }
  13501. # configure is writing to config.log, and then calls config.status.
  13502. # config.status does its own redirection, appending to config.log.
  13503. # Unfortunately, on DOS this fails, as config.log is still kept open
  13504. # by configure, so config.status won't be able to write to it; its
  13505. # output is simply discarded. So we exec the FD to /dev/null,
  13506. # effectively closing config.log, so it can be properly (re)opened and
  13507. # appended to by config.status. When coming back to configure, we
  13508. # need to make the FD available again.
  13509. if test "$no_create" != yes; then
  13510. ac_cs_success=:
  13511. ac_config_status_args=
  13512. test "$silent" = yes &&
  13513. ac_config_status_args="$ac_config_status_args --quiet"
  13514. exec 5>/dev/null
  13515. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13516. exec 5>>config.log
  13517. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13518. # would make configure fail if this is the last instruction.
  13519. $ac_cs_success || { (exit 1); exit 1; }
  13520. fi
  13521. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13522. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13523. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13524. fi
  13525. echo ""
  13526. echo ""
  13527. echo "------------ Configuring BDLIB ------------"
  13528. if test -d .git; then
  13529. git submodule init
  13530. git submodule update
  13531. fi
  13532. test -f lib/bdlib/configure && cd lib/bdlib && ./configure