configure 178 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME=
  235. PACKAGE_TARNAME=
  236. PACKAGE_VERSION=
  237. PACKAGE_STRING=
  238. PACKAGE_BUGREPORT=
  239. ac_unique_file="c/prescheme.h"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CPP_set=${CPP+set}
  676. ac_env_CPP_value=$CPP
  677. ac_cv_env_CPP_set=${CPP+set}
  678. ac_cv_env_CPP_value=$CPP
  679. #
  680. # Report the --help message.
  681. #
  682. if test "$ac_init_help" = "long"; then
  683. # Omit some internal or obsolete options to make the list less imposing.
  684. # This message is too long to be a string in the A/UX 3.1 sh.
  685. cat <<_ACEOF
  686. \`configure' configures this package to adapt to many kinds of systems.
  687. Usage: $0 [OPTION]... [VAR=VALUE]...
  688. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  689. VAR=VALUE. See below for descriptions of some of the useful variables.
  690. Defaults for the options are specified in brackets.
  691. Configuration:
  692. -h, --help display this help and exit
  693. --help=short display options specific to this package
  694. --help=recursive display the short help of all the included packages
  695. -V, --version display version information and exit
  696. -q, --quiet, --silent do not print \`checking...' messages
  697. --cache-file=FILE cache test results in FILE [disabled]
  698. -C, --config-cache alias for \`--cache-file=config.cache'
  699. -n, --no-create do not create output files
  700. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  701. _ACEOF
  702. cat <<_ACEOF
  703. Installation directories:
  704. --prefix=PREFIX install architecture-independent files in PREFIX
  705. [$ac_default_prefix]
  706. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  707. [PREFIX]
  708. By default, \`make install' will install all the files in
  709. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  710. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  711. for instance \`--prefix=\$HOME'.
  712. For better control, use the options below.
  713. Fine tuning of the installation directories:
  714. --bindir=DIR user executables [EPREFIX/bin]
  715. --sbindir=DIR system admin executables [EPREFIX/sbin]
  716. --libexecdir=DIR program executables [EPREFIX/libexec]
  717. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  718. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  719. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  720. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  721. --libdir=DIR object code libraries [EPREFIX/lib]
  722. --includedir=DIR C header files [PREFIX/include]
  723. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  724. --infodir=DIR info documentation [PREFIX/info]
  725. --mandir=DIR man documentation [PREFIX/man]
  726. _ACEOF
  727. cat <<\_ACEOF
  728. _ACEOF
  729. fi
  730. if test -n "$ac_init_help"; then
  731. cat <<\_ACEOF
  732. Some influential environment variables:
  733. CC C compiler command
  734. CFLAGS C compiler flags
  735. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  736. nonstandard directory <lib dir>
  737. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  738. headers in a nonstandard directory <include dir>
  739. CPP C preprocessor
  740. Use these variables to override the choices made by `configure' or to help
  741. it to find libraries and programs with nonstandard names/locations.
  742. _ACEOF
  743. fi
  744. if test "$ac_init_help" = "recursive"; then
  745. # If there are subdirs, report their specific --help.
  746. ac_popdir=`pwd`
  747. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  748. test -d $ac_dir || continue
  749. ac_builddir=.
  750. if test "$ac_dir" != .; then
  751. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  752. # A "../" for each directory in $ac_dir_suffix.
  753. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  754. else
  755. ac_dir_suffix= ac_top_builddir=
  756. fi
  757. case $srcdir in
  758. .) # No --srcdir option. We are building in place.
  759. ac_srcdir=.
  760. if test -z "$ac_top_builddir"; then
  761. ac_top_srcdir=.
  762. else
  763. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  764. fi ;;
  765. [\\/]* | ?:[\\/]* ) # Absolute path.
  766. ac_srcdir=$srcdir$ac_dir_suffix;
  767. ac_top_srcdir=$srcdir ;;
  768. *) # Relative path.
  769. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  770. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  771. esac
  772. # Do not use `cd foo && pwd` to compute absolute paths, because
  773. # the directories may not exist.
  774. case `pwd` in
  775. .) ac_abs_builddir="$ac_dir";;
  776. *)
  777. case "$ac_dir" in
  778. .) ac_abs_builddir=`pwd`;;
  779. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  780. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  781. esac;;
  782. esac
  783. case $ac_abs_builddir in
  784. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  785. *)
  786. case ${ac_top_builddir}. in
  787. .) ac_abs_top_builddir=$ac_abs_builddir;;
  788. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  789. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  790. esac;;
  791. esac
  792. case $ac_abs_builddir in
  793. .) ac_abs_srcdir=$ac_srcdir;;
  794. *)
  795. case $ac_srcdir in
  796. .) ac_abs_srcdir=$ac_abs_builddir;;
  797. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  798. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  799. esac;;
  800. esac
  801. case $ac_abs_builddir in
  802. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  803. *)
  804. case $ac_top_srcdir in
  805. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  806. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  807. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  808. esac;;
  809. esac
  810. cd $ac_dir
  811. # Check for guested configure; otherwise get Cygnus style configure.
  812. if test -f $ac_srcdir/configure.gnu; then
  813. echo
  814. $SHELL $ac_srcdir/configure.gnu --help=recursive
  815. elif test -f $ac_srcdir/configure; then
  816. echo
  817. $SHELL $ac_srcdir/configure --help=recursive
  818. elif test -f $ac_srcdir/configure.ac ||
  819. test -f $ac_srcdir/configure.in; then
  820. echo
  821. $ac_configure --help
  822. else
  823. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  824. fi
  825. cd $ac_popdir
  826. done
  827. fi
  828. test -n "$ac_init_help" && exit 0
  829. if $ac_init_version; then
  830. cat <<\_ACEOF
  831. Copyright (C) 2003 Free Software Foundation, Inc.
  832. This configure script is free software; the Free Software Foundation
  833. gives unlimited permission to copy, distribute and modify it.
  834. _ACEOF
  835. exit 0
  836. fi
  837. exec 5>config.log
  838. cat >&5 <<_ACEOF
  839. This file contains any messages produced by compilers while
  840. running configure, to aid debugging if configure makes a mistake.
  841. It was created by $as_me, which was
  842. generated by GNU Autoconf 2.59. Invocation command line was
  843. $ $0 $@
  844. _ACEOF
  845. {
  846. cat <<_ASUNAME
  847. ## --------- ##
  848. ## Platform. ##
  849. ## --------- ##
  850. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  851. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  852. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  853. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  854. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  855. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  856. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  857. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  858. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  859. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  860. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  861. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  862. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  863. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  864. _ASUNAME
  865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  866. for as_dir in $PATH
  867. do
  868. IFS=$as_save_IFS
  869. test -z "$as_dir" && as_dir=.
  870. echo "PATH: $as_dir"
  871. done
  872. } >&5
  873. cat >&5 <<_ACEOF
  874. ## ----------- ##
  875. ## Core tests. ##
  876. ## ----------- ##
  877. _ACEOF
  878. # Keep a trace of the command line.
  879. # Strip out --no-create and --no-recursion so they do not pile up.
  880. # Strip out --silent because we don't want to record it for future runs.
  881. # Also quote any args containing shell meta-characters.
  882. # Make two passes to allow for proper duplicate-argument suppression.
  883. ac_configure_args=
  884. ac_configure_args0=
  885. ac_configure_args1=
  886. ac_sep=
  887. ac_must_keep_next=false
  888. for ac_pass in 1 2
  889. do
  890. for ac_arg
  891. do
  892. case $ac_arg in
  893. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  894. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  895. | -silent | --silent | --silen | --sile | --sil)
  896. continue ;;
  897. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  898. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  899. esac
  900. case $ac_pass in
  901. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  902. 2)
  903. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  904. if test $ac_must_keep_next = true; then
  905. ac_must_keep_next=false # Got value, back to normal.
  906. else
  907. case $ac_arg in
  908. *=* | --config-cache | -C | -disable-* | --disable-* \
  909. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  910. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  911. | -with-* | --with-* | -without-* | --without-* | --x)
  912. case "$ac_configure_args0 " in
  913. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  914. esac
  915. ;;
  916. -* ) ac_must_keep_next=true ;;
  917. esac
  918. fi
  919. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  920. # Get rid of the leading space.
  921. ac_sep=" "
  922. ;;
  923. esac
  924. done
  925. done
  926. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  927. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  928. # When interrupted or exit'd, cleanup temporary files, and complete
  929. # config.log. We remove comments because anyway the quotes in there
  930. # would cause problems or look ugly.
  931. # WARNING: Be sure not to use single quotes in there, as some shells,
  932. # such as our DU 5.0 friend, will then `close' the trap.
  933. trap 'exit_status=$?
  934. # Save into config.log some information that might help in debugging.
  935. {
  936. echo
  937. cat <<\_ASBOX
  938. ## ---------------- ##
  939. ## Cache variables. ##
  940. ## ---------------- ##
  941. _ASBOX
  942. echo
  943. # The following way of writing the cache mishandles newlines in values,
  944. {
  945. (set) 2>&1 |
  946. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  947. *ac_space=\ *)
  948. sed -n \
  949. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  950. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  951. ;;
  952. *)
  953. sed -n \
  954. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  955. ;;
  956. esac;
  957. }
  958. echo
  959. cat <<\_ASBOX
  960. ## ----------------- ##
  961. ## Output variables. ##
  962. ## ----------------- ##
  963. _ASBOX
  964. echo
  965. for ac_var in $ac_subst_vars
  966. do
  967. eval ac_val=$`echo $ac_var`
  968. echo "$ac_var='"'"'$ac_val'"'"'"
  969. done | sort
  970. echo
  971. if test -n "$ac_subst_files"; then
  972. cat <<\_ASBOX
  973. ## ------------- ##
  974. ## Output files. ##
  975. ## ------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_files
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. fi
  985. if test -s confdefs.h; then
  986. cat <<\_ASBOX
  987. ## ----------- ##
  988. ## confdefs.h. ##
  989. ## ----------- ##
  990. _ASBOX
  991. echo
  992. sed "/^$/d" confdefs.h | sort
  993. echo
  994. fi
  995. test "$ac_signal" != 0 &&
  996. echo "$as_me: caught signal $ac_signal"
  997. echo "$as_me: exit $exit_status"
  998. } >&5
  999. rm -f core *.core &&
  1000. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1001. exit $exit_status
  1002. ' 0
  1003. for ac_signal in 1 2 13 15; do
  1004. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1005. done
  1006. ac_signal=0
  1007. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1008. rm -rf conftest* confdefs.h
  1009. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1010. echo >confdefs.h
  1011. # Predefined preprocessor variables.
  1012. cat >>confdefs.h <<_ACEOF
  1013. #define PACKAGE_NAME "$PACKAGE_NAME"
  1014. _ACEOF
  1015. cat >>confdefs.h <<_ACEOF
  1016. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1017. _ACEOF
  1018. cat >>confdefs.h <<_ACEOF
  1019. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1020. _ACEOF
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_STRING "$PACKAGE_STRING"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1026. _ACEOF
  1027. # Let the site file select an alternate cache file if it wants to.
  1028. # Prefer explicitly selected file to automatically selected ones.
  1029. if test -z "$CONFIG_SITE"; then
  1030. if test "x$prefix" != xNONE; then
  1031. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1032. else
  1033. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1034. fi
  1035. fi
  1036. for ac_site_file in $CONFIG_SITE; do
  1037. if test -r "$ac_site_file"; then
  1038. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1039. echo "$as_me: loading site script $ac_site_file" >&6;}
  1040. sed 's/^/| /' "$ac_site_file" >&5
  1041. . "$ac_site_file"
  1042. fi
  1043. done
  1044. if test -r "$cache_file"; then
  1045. # Some versions of bash will fail to source /dev/null (special
  1046. # files actually), so we avoid doing that.
  1047. if test -f "$cache_file"; then
  1048. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1049. echo "$as_me: loading cache $cache_file" >&6;}
  1050. case $cache_file in
  1051. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1052. *) . ./$cache_file;;
  1053. esac
  1054. fi
  1055. else
  1056. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1057. echo "$as_me: creating cache $cache_file" >&6;}
  1058. >$cache_file
  1059. fi
  1060. # Check that the precious variables saved in the cache have kept the same
  1061. # value.
  1062. ac_cache_corrupted=false
  1063. for ac_var in `(set) 2>&1 |
  1064. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1065. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1066. eval ac_new_set=\$ac_env_${ac_var}_set
  1067. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1068. eval ac_new_val="\$ac_env_${ac_var}_value"
  1069. case $ac_old_set,$ac_new_set in
  1070. set,)
  1071. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1072. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1073. ac_cache_corrupted=: ;;
  1074. ,set)
  1075. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1076. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1077. ac_cache_corrupted=: ;;
  1078. ,);;
  1079. *)
  1080. if test "x$ac_old_val" != "x$ac_new_val"; then
  1081. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1082. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1083. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1084. echo "$as_me: former value: $ac_old_val" >&2;}
  1085. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1086. echo "$as_me: current value: $ac_new_val" >&2;}
  1087. ac_cache_corrupted=:
  1088. fi;;
  1089. esac
  1090. # Pass precious variables to config.status.
  1091. if test "$ac_new_set" = set; then
  1092. case $ac_new_val in
  1093. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1094. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1095. *) ac_arg=$ac_var=$ac_new_val ;;
  1096. esac
  1097. case " $ac_configure_args " in
  1098. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1099. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1100. esac
  1101. fi
  1102. done
  1103. if $ac_cache_corrupted; then
  1104. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1105. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1106. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1107. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1108. { (exit 1); exit 1; }; }
  1109. fi
  1110. ac_ext=c
  1111. ac_cpp='$CPP $CPPFLAGS'
  1112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1115. ac_config_headers="$ac_config_headers c/sysdep.h"
  1116. mkdir -p c/unix
  1117. mkdir -p c/posix
  1118. mkdir -p c/fake
  1119. oldCFLAGS="$CFLAGS"
  1120. ac_ext=c
  1121. ac_cpp='$CPP $CPPFLAGS'
  1122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1125. if test -n "$ac_tool_prefix"; then
  1126. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1127. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1128. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1129. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1130. if test "${ac_cv_prog_CC+set}" = set; then
  1131. echo $ECHO_N "(cached) $ECHO_C" >&6
  1132. else
  1133. if test -n "$CC"; then
  1134. ac_cv_prog_CC="$CC" # Let the user override the test.
  1135. else
  1136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1137. for as_dir in $PATH
  1138. do
  1139. IFS=$as_save_IFS
  1140. test -z "$as_dir" && as_dir=.
  1141. for ac_exec_ext in '' $ac_executable_extensions; do
  1142. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1143. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1144. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1145. break 2
  1146. fi
  1147. done
  1148. done
  1149. fi
  1150. fi
  1151. CC=$ac_cv_prog_CC
  1152. if test -n "$CC"; then
  1153. echo "$as_me:$LINENO: result: $CC" >&5
  1154. echo "${ECHO_T}$CC" >&6
  1155. else
  1156. echo "$as_me:$LINENO: result: no" >&5
  1157. echo "${ECHO_T}no" >&6
  1158. fi
  1159. fi
  1160. if test -z "$ac_cv_prog_CC"; then
  1161. ac_ct_CC=$CC
  1162. # Extract the first word of "gcc", so it can be a program name with args.
  1163. set dummy gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$ac_ct_CC"; then
  1170. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_ac_ct_CC="gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1188. if test -n "$ac_ct_CC"; then
  1189. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1190. echo "${ECHO_T}$ac_ct_CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. CC=$ac_ct_CC
  1196. else
  1197. CC="$ac_cv_prog_CC"
  1198. fi
  1199. if test -z "$CC"; then
  1200. if test -n "$ac_tool_prefix"; then
  1201. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1202. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1203. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1204. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1205. if test "${ac_cv_prog_CC+set}" = set; then
  1206. echo $ECHO_N "(cached) $ECHO_C" >&6
  1207. else
  1208. if test -n "$CC"; then
  1209. ac_cv_prog_CC="$CC" # Let the user override the test.
  1210. else
  1211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1212. for as_dir in $PATH
  1213. do
  1214. IFS=$as_save_IFS
  1215. test -z "$as_dir" && as_dir=.
  1216. for ac_exec_ext in '' $ac_executable_extensions; do
  1217. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1218. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1219. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1220. break 2
  1221. fi
  1222. done
  1223. done
  1224. fi
  1225. fi
  1226. CC=$ac_cv_prog_CC
  1227. if test -n "$CC"; then
  1228. echo "$as_me:$LINENO: result: $CC" >&5
  1229. echo "${ECHO_T}$CC" >&6
  1230. else
  1231. echo "$as_me:$LINENO: result: no" >&5
  1232. echo "${ECHO_T}no" >&6
  1233. fi
  1234. fi
  1235. if test -z "$ac_cv_prog_CC"; then
  1236. ac_ct_CC=$CC
  1237. # Extract the first word of "cc", so it can be a program name with args.
  1238. set dummy cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$ac_ct_CC"; then
  1245. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_ac_ct_CC="cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1263. if test -n "$ac_ct_CC"; then
  1264. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1265. echo "${ECHO_T}$ac_ct_CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. CC=$ac_ct_CC
  1271. else
  1272. CC="$ac_cv_prog_CC"
  1273. fi
  1274. fi
  1275. if test -z "$CC"; then
  1276. # Extract the first word of "cc", so it can be a program name with args.
  1277. set dummy cc; ac_word=$2
  1278. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1279. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1280. if test "${ac_cv_prog_CC+set}" = set; then
  1281. echo $ECHO_N "(cached) $ECHO_C" >&6
  1282. else
  1283. if test -n "$CC"; then
  1284. ac_cv_prog_CC="$CC" # Let the user override the test.
  1285. else
  1286. ac_prog_rejected=no
  1287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1288. for as_dir in $PATH
  1289. do
  1290. IFS=$as_save_IFS
  1291. test -z "$as_dir" && as_dir=.
  1292. for ac_exec_ext in '' $ac_executable_extensions; do
  1293. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1294. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1295. ac_prog_rejected=yes
  1296. continue
  1297. fi
  1298. ac_cv_prog_CC="cc"
  1299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1300. break 2
  1301. fi
  1302. done
  1303. done
  1304. if test $ac_prog_rejected = yes; then
  1305. # We found a bogon in the path, so make sure we never use it.
  1306. set dummy $ac_cv_prog_CC
  1307. shift
  1308. if test $# != 0; then
  1309. # We chose a different compiler from the bogus one.
  1310. # However, it has the same basename, so the bogon will be chosen
  1311. # first if we set CC to just the basename; use the full file name.
  1312. shift
  1313. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1314. fi
  1315. fi
  1316. fi
  1317. fi
  1318. CC=$ac_cv_prog_CC
  1319. if test -n "$CC"; then
  1320. echo "$as_me:$LINENO: result: $CC" >&5
  1321. echo "${ECHO_T}$CC" >&6
  1322. else
  1323. echo "$as_me:$LINENO: result: no" >&5
  1324. echo "${ECHO_T}no" >&6
  1325. fi
  1326. fi
  1327. if test -z "$CC"; then
  1328. if test -n "$ac_tool_prefix"; then
  1329. for ac_prog in cl
  1330. do
  1331. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1332. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1333. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1335. if test "${ac_cv_prog_CC+set}" = set; then
  1336. echo $ECHO_N "(cached) $ECHO_C" >&6
  1337. else
  1338. if test -n "$CC"; then
  1339. ac_cv_prog_CC="$CC" # Let the user override the test.
  1340. else
  1341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1342. for as_dir in $PATH
  1343. do
  1344. IFS=$as_save_IFS
  1345. test -z "$as_dir" && as_dir=.
  1346. for ac_exec_ext in '' $ac_executable_extensions; do
  1347. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1348. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1349. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1350. break 2
  1351. fi
  1352. done
  1353. done
  1354. fi
  1355. fi
  1356. CC=$ac_cv_prog_CC
  1357. if test -n "$CC"; then
  1358. echo "$as_me:$LINENO: result: $CC" >&5
  1359. echo "${ECHO_T}$CC" >&6
  1360. else
  1361. echo "$as_me:$LINENO: result: no" >&5
  1362. echo "${ECHO_T}no" >&6
  1363. fi
  1364. test -n "$CC" && break
  1365. done
  1366. fi
  1367. if test -z "$CC"; then
  1368. ac_ct_CC=$CC
  1369. for ac_prog in cl
  1370. do
  1371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1372. set dummy $ac_prog; ac_word=$2
  1373. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1374. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1375. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1376. echo $ECHO_N "(cached) $ECHO_C" >&6
  1377. else
  1378. if test -n "$ac_ct_CC"; then
  1379. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1380. else
  1381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1382. for as_dir in $PATH
  1383. do
  1384. IFS=$as_save_IFS
  1385. test -z "$as_dir" && as_dir=.
  1386. for ac_exec_ext in '' $ac_executable_extensions; do
  1387. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1388. ac_cv_prog_ac_ct_CC="$ac_prog"
  1389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1390. break 2
  1391. fi
  1392. done
  1393. done
  1394. fi
  1395. fi
  1396. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1397. if test -n "$ac_ct_CC"; then
  1398. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1399. echo "${ECHO_T}$ac_ct_CC" >&6
  1400. else
  1401. echo "$as_me:$LINENO: result: no" >&5
  1402. echo "${ECHO_T}no" >&6
  1403. fi
  1404. test -n "$ac_ct_CC" && break
  1405. done
  1406. CC=$ac_ct_CC
  1407. fi
  1408. fi
  1409. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1410. See \`config.log' for more details." >&5
  1411. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1412. See \`config.log' for more details." >&2;}
  1413. { (exit 1); exit 1; }; }
  1414. # Provide some information about the compiler.
  1415. echo "$as_me:$LINENO:" \
  1416. "checking for C compiler version" >&5
  1417. ac_compiler=`set X $ac_compile; echo $2`
  1418. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1419. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1420. ac_status=$?
  1421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1422. (exit $ac_status); }
  1423. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1424. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1425. ac_status=$?
  1426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1427. (exit $ac_status); }
  1428. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1429. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1430. ac_status=$?
  1431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1432. (exit $ac_status); }
  1433. cat >conftest.$ac_ext <<_ACEOF
  1434. /* confdefs.h. */
  1435. _ACEOF
  1436. cat confdefs.h >>conftest.$ac_ext
  1437. cat >>conftest.$ac_ext <<_ACEOF
  1438. /* end confdefs.h. */
  1439. int
  1440. main ()
  1441. {
  1442. ;
  1443. return 0;
  1444. }
  1445. _ACEOF
  1446. ac_clean_files_save=$ac_clean_files
  1447. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1448. # Try to create an executable without -o first, disregard a.out.
  1449. # It will help us diagnose broken compilers, and finding out an intuition
  1450. # of exeext.
  1451. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1452. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1453. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1454. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1455. (eval $ac_link_default) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }; then
  1459. # Find the output, starting from the most likely. This scheme is
  1460. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1461. # resort.
  1462. # Be careful to initialize this variable, since it used to be cached.
  1463. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1464. ac_cv_exeext=
  1465. # b.out is created by i960 compilers.
  1466. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1467. do
  1468. test -f "$ac_file" || continue
  1469. case $ac_file in
  1470. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1471. ;;
  1472. conftest.$ac_ext )
  1473. # This is the source file.
  1474. ;;
  1475. [ab].out )
  1476. # We found the default executable, but exeext='' is most
  1477. # certainly right.
  1478. break;;
  1479. *.* )
  1480. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1481. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1482. # but it would be cool to find out if it's true. Does anybody
  1483. # maintain Libtool? --akim.
  1484. export ac_cv_exeext
  1485. break;;
  1486. * )
  1487. break;;
  1488. esac
  1489. done
  1490. else
  1491. echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1494. See \`config.log' for more details." >&5
  1495. echo "$as_me: error: C compiler cannot create executables
  1496. See \`config.log' for more details." >&2;}
  1497. { (exit 77); exit 77; }; }
  1498. fi
  1499. ac_exeext=$ac_cv_exeext
  1500. echo "$as_me:$LINENO: result: $ac_file" >&5
  1501. echo "${ECHO_T}$ac_file" >&6
  1502. # Check the compiler produces executables we can run. If not, either
  1503. # the compiler is broken, or we cross compile.
  1504. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1505. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1506. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1507. # If not cross compiling, check that we can run a simple program.
  1508. if test "$cross_compiling" != yes; then
  1509. if { ac_try='./$ac_file'
  1510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1511. (eval $ac_try) 2>&5
  1512. ac_status=$?
  1513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1514. (exit $ac_status); }; }; then
  1515. cross_compiling=no
  1516. else
  1517. if test "$cross_compiling" = maybe; then
  1518. cross_compiling=yes
  1519. else
  1520. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1521. If you meant to cross compile, use \`--host'.
  1522. See \`config.log' for more details." >&5
  1523. echo "$as_me: error: cannot run C compiled programs.
  1524. If you meant to cross compile, use \`--host'.
  1525. See \`config.log' for more details." >&2;}
  1526. { (exit 1); exit 1; }; }
  1527. fi
  1528. fi
  1529. fi
  1530. echo "$as_me:$LINENO: result: yes" >&5
  1531. echo "${ECHO_T}yes" >&6
  1532. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1533. ac_clean_files=$ac_clean_files_save
  1534. # Check the compiler produces executables we can run. If not, either
  1535. # the compiler is broken, or we cross compile.
  1536. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1537. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1538. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1539. echo "${ECHO_T}$cross_compiling" >&6
  1540. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1541. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1543. (eval $ac_link) 2>&5
  1544. ac_status=$?
  1545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1546. (exit $ac_status); }; then
  1547. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1548. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1549. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1550. # `rm'.
  1551. for ac_file in conftest.exe conftest conftest.*; do
  1552. test -f "$ac_file" || continue
  1553. case $ac_file in
  1554. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1555. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1556. export ac_cv_exeext
  1557. break;;
  1558. * ) break;;
  1559. esac
  1560. done
  1561. else
  1562. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1565. See \`config.log' for more details." >&2;}
  1566. { (exit 1); exit 1; }; }
  1567. fi
  1568. rm -f conftest$ac_cv_exeext
  1569. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1570. echo "${ECHO_T}$ac_cv_exeext" >&6
  1571. rm -f conftest.$ac_ext
  1572. EXEEXT=$ac_cv_exeext
  1573. ac_exeext=$EXEEXT
  1574. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1575. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1576. if test "${ac_cv_objext+set}" = set; then
  1577. echo $ECHO_N "(cached) $ECHO_C" >&6
  1578. else
  1579. cat >conftest.$ac_ext <<_ACEOF
  1580. /* confdefs.h. */
  1581. _ACEOF
  1582. cat confdefs.h >>conftest.$ac_ext
  1583. cat >>conftest.$ac_ext <<_ACEOF
  1584. /* end confdefs.h. */
  1585. int
  1586. main ()
  1587. {
  1588. ;
  1589. return 0;
  1590. }
  1591. _ACEOF
  1592. rm -f conftest.o conftest.obj
  1593. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1594. (eval $ac_compile) 2>&5
  1595. ac_status=$?
  1596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1597. (exit $ac_status); }; then
  1598. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1599. case $ac_file in
  1600. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1601. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1602. break;;
  1603. esac
  1604. done
  1605. else
  1606. echo "$as_me: failed program was:" >&5
  1607. sed 's/^/| /' conftest.$ac_ext >&5
  1608. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1609. See \`config.log' for more details." >&5
  1610. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1611. See \`config.log' for more details." >&2;}
  1612. { (exit 1); exit 1; }; }
  1613. fi
  1614. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1615. fi
  1616. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1617. echo "${ECHO_T}$ac_cv_objext" >&6
  1618. OBJEXT=$ac_cv_objext
  1619. ac_objext=$OBJEXT
  1620. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1621. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1622. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1623. echo $ECHO_N "(cached) $ECHO_C" >&6
  1624. else
  1625. cat >conftest.$ac_ext <<_ACEOF
  1626. /* confdefs.h. */
  1627. _ACEOF
  1628. cat confdefs.h >>conftest.$ac_ext
  1629. cat >>conftest.$ac_ext <<_ACEOF
  1630. /* end confdefs.h. */
  1631. int
  1632. main ()
  1633. {
  1634. #ifndef __GNUC__
  1635. choke me
  1636. #endif
  1637. ;
  1638. return 0;
  1639. }
  1640. _ACEOF
  1641. rm -f conftest.$ac_objext
  1642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1643. (eval $ac_compile) 2>conftest.er1
  1644. ac_status=$?
  1645. grep -v '^ *+' conftest.er1 >conftest.err
  1646. rm -f conftest.er1
  1647. cat conftest.err >&5
  1648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1649. (exit $ac_status); } &&
  1650. { ac_try='test -z "$ac_c_werror_flag"
  1651. || test ! -s conftest.err'
  1652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1653. (eval $ac_try) 2>&5
  1654. ac_status=$?
  1655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1656. (exit $ac_status); }; } &&
  1657. { ac_try='test -s conftest.$ac_objext'
  1658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1659. (eval $ac_try) 2>&5
  1660. ac_status=$?
  1661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1662. (exit $ac_status); }; }; then
  1663. ac_compiler_gnu=yes
  1664. else
  1665. echo "$as_me: failed program was:" >&5
  1666. sed 's/^/| /' conftest.$ac_ext >&5
  1667. ac_compiler_gnu=no
  1668. fi
  1669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1671. fi
  1672. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1673. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1674. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1675. ac_test_CFLAGS=${CFLAGS+set}
  1676. ac_save_CFLAGS=$CFLAGS
  1677. CFLAGS="-g"
  1678. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1679. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1680. if test "${ac_cv_prog_cc_g+set}" = set; then
  1681. echo $ECHO_N "(cached) $ECHO_C" >&6
  1682. else
  1683. cat >conftest.$ac_ext <<_ACEOF
  1684. /* confdefs.h. */
  1685. _ACEOF
  1686. cat confdefs.h >>conftest.$ac_ext
  1687. cat >>conftest.$ac_ext <<_ACEOF
  1688. /* end confdefs.h. */
  1689. int
  1690. main ()
  1691. {
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. rm -f conftest.$ac_objext
  1697. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1698. (eval $ac_compile) 2>conftest.er1
  1699. ac_status=$?
  1700. grep -v '^ *+' conftest.er1 >conftest.err
  1701. rm -f conftest.er1
  1702. cat conftest.err >&5
  1703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1704. (exit $ac_status); } &&
  1705. { ac_try='test -z "$ac_c_werror_flag"
  1706. || test ! -s conftest.err'
  1707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1708. (eval $ac_try) 2>&5
  1709. ac_status=$?
  1710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1711. (exit $ac_status); }; } &&
  1712. { ac_try='test -s conftest.$ac_objext'
  1713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1714. (eval $ac_try) 2>&5
  1715. ac_status=$?
  1716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1717. (exit $ac_status); }; }; then
  1718. ac_cv_prog_cc_g=yes
  1719. else
  1720. echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_cv_prog_cc_g=no
  1723. fi
  1724. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1725. fi
  1726. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1727. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1728. if test "$ac_test_CFLAGS" = set; then
  1729. CFLAGS=$ac_save_CFLAGS
  1730. elif test $ac_cv_prog_cc_g = yes; then
  1731. if test "$GCC" = yes; then
  1732. CFLAGS="-g -O2"
  1733. else
  1734. CFLAGS="-g"
  1735. fi
  1736. else
  1737. if test "$GCC" = yes; then
  1738. CFLAGS="-O2"
  1739. else
  1740. CFLAGS=
  1741. fi
  1742. fi
  1743. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1744. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1745. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1746. echo $ECHO_N "(cached) $ECHO_C" >&6
  1747. else
  1748. ac_cv_prog_cc_stdc=no
  1749. ac_save_CC=$CC
  1750. cat >conftest.$ac_ext <<_ACEOF
  1751. /* confdefs.h. */
  1752. _ACEOF
  1753. cat confdefs.h >>conftest.$ac_ext
  1754. cat >>conftest.$ac_ext <<_ACEOF
  1755. /* end confdefs.h. */
  1756. #include <stdarg.h>
  1757. #include <stdio.h>
  1758. #include <sys/types.h>
  1759. #include <sys/stat.h>
  1760. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1761. struct buf { int x; };
  1762. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1763. static char *e (p, i)
  1764. char **p;
  1765. int i;
  1766. {
  1767. return p[i];
  1768. }
  1769. static char *f (char * (*g) (char **, int), char **p, ...)
  1770. {
  1771. char *s;
  1772. va_list v;
  1773. va_start (v,p);
  1774. s = g (p, va_arg (v,int));
  1775. va_end (v);
  1776. return s;
  1777. }
  1778. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1779. function prototypes and stuff, but not '\xHH' hex character constants.
  1780. These don't provoke an error unfortunately, instead are silently treated
  1781. as 'x'. The following induces an error, until -std1 is added to get
  1782. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1783. array size at least. It's necessary to write '\x00'==0 to get something
  1784. that's true only with -std1. */
  1785. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1786. int test (int i, double x);
  1787. struct s1 {int (*f) (int a);};
  1788. struct s2 {int (*f) (double a);};
  1789. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1790. int argc;
  1791. char **argv;
  1792. int
  1793. main ()
  1794. {
  1795. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1796. ;
  1797. return 0;
  1798. }
  1799. _ACEOF
  1800. # Don't try gcc -ansi; that turns off useful extensions and
  1801. # breaks some systems' header files.
  1802. # AIX -qlanglvl=ansi
  1803. # Ultrix and OSF/1 -std1
  1804. # HP-UX 10.20 and later -Ae
  1805. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1806. # SVR4 -Xc -D__EXTENSIONS__
  1807. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1808. do
  1809. CC="$ac_save_CC $ac_arg"
  1810. rm -f conftest.$ac_objext
  1811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1812. (eval $ac_compile) 2>conftest.er1
  1813. ac_status=$?
  1814. grep -v '^ *+' conftest.er1 >conftest.err
  1815. rm -f conftest.er1
  1816. cat conftest.err >&5
  1817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1818. (exit $ac_status); } &&
  1819. { ac_try='test -z "$ac_c_werror_flag"
  1820. || test ! -s conftest.err'
  1821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1822. (eval $ac_try) 2>&5
  1823. ac_status=$?
  1824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1825. (exit $ac_status); }; } &&
  1826. { ac_try='test -s conftest.$ac_objext'
  1827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1828. (eval $ac_try) 2>&5
  1829. ac_status=$?
  1830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1831. (exit $ac_status); }; }; then
  1832. ac_cv_prog_cc_stdc=$ac_arg
  1833. break
  1834. else
  1835. echo "$as_me: failed program was:" >&5
  1836. sed 's/^/| /' conftest.$ac_ext >&5
  1837. fi
  1838. rm -f conftest.err conftest.$ac_objext
  1839. done
  1840. rm -f conftest.$ac_ext conftest.$ac_objext
  1841. CC=$ac_save_CC
  1842. fi
  1843. case "x$ac_cv_prog_cc_stdc" in
  1844. x|xno)
  1845. echo "$as_me:$LINENO: result: none needed" >&5
  1846. echo "${ECHO_T}none needed" >&6 ;;
  1847. *)
  1848. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1849. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1850. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1851. esac
  1852. # Some people use a C++ compiler to compile C. Since we use `exit',
  1853. # in C++ we need to declare it. In case someone uses the same compiler
  1854. # for both compiling C and C++ we need to have the C++ compiler decide
  1855. # the declaration of exit, since it's the most demanding environment.
  1856. cat >conftest.$ac_ext <<_ACEOF
  1857. #ifndef __cplusplus
  1858. choke me
  1859. #endif
  1860. _ACEOF
  1861. rm -f conftest.$ac_objext
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1863. (eval $ac_compile) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } &&
  1870. { ac_try='test -z "$ac_c_werror_flag"
  1871. || test ! -s conftest.err'
  1872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1873. (eval $ac_try) 2>&5
  1874. ac_status=$?
  1875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1876. (exit $ac_status); }; } &&
  1877. { ac_try='test -s conftest.$ac_objext'
  1878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1879. (eval $ac_try) 2>&5
  1880. ac_status=$?
  1881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1882. (exit $ac_status); }; }; then
  1883. for ac_declaration in \
  1884. '' \
  1885. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1886. 'extern "C" void std::exit (int); using std::exit;' \
  1887. 'extern "C" void exit (int) throw ();' \
  1888. 'extern "C" void exit (int);' \
  1889. 'void exit (int);'
  1890. do
  1891. cat >conftest.$ac_ext <<_ACEOF
  1892. /* confdefs.h. */
  1893. _ACEOF
  1894. cat confdefs.h >>conftest.$ac_ext
  1895. cat >>conftest.$ac_ext <<_ACEOF
  1896. /* end confdefs.h. */
  1897. $ac_declaration
  1898. #include <stdlib.h>
  1899. int
  1900. main ()
  1901. {
  1902. exit (42);
  1903. ;
  1904. return 0;
  1905. }
  1906. _ACEOF
  1907. rm -f conftest.$ac_objext
  1908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1909. (eval $ac_compile) 2>conftest.er1
  1910. ac_status=$?
  1911. grep -v '^ *+' conftest.er1 >conftest.err
  1912. rm -f conftest.er1
  1913. cat conftest.err >&5
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); } &&
  1916. { ac_try='test -z "$ac_c_werror_flag"
  1917. || test ! -s conftest.err'
  1918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1919. (eval $ac_try) 2>&5
  1920. ac_status=$?
  1921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1922. (exit $ac_status); }; } &&
  1923. { ac_try='test -s conftest.$ac_objext'
  1924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1925. (eval $ac_try) 2>&5
  1926. ac_status=$?
  1927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1928. (exit $ac_status); }; }; then
  1929. :
  1930. else
  1931. echo "$as_me: failed program was:" >&5
  1932. sed 's/^/| /' conftest.$ac_ext >&5
  1933. continue
  1934. fi
  1935. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. cat >conftest.$ac_ext <<_ACEOF
  1937. /* confdefs.h. */
  1938. _ACEOF
  1939. cat confdefs.h >>conftest.$ac_ext
  1940. cat >>conftest.$ac_ext <<_ACEOF
  1941. /* end confdefs.h. */
  1942. $ac_declaration
  1943. int
  1944. main ()
  1945. {
  1946. exit (42);
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. rm -f conftest.$ac_objext
  1952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1953. (eval $ac_compile) 2>conftest.er1
  1954. ac_status=$?
  1955. grep -v '^ *+' conftest.er1 >conftest.err
  1956. rm -f conftest.er1
  1957. cat conftest.err >&5
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); } &&
  1960. { ac_try='test -z "$ac_c_werror_flag"
  1961. || test ! -s conftest.err'
  1962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1963. (eval $ac_try) 2>&5
  1964. ac_status=$?
  1965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1966. (exit $ac_status); }; } &&
  1967. { ac_try='test -s conftest.$ac_objext'
  1968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1969. (eval $ac_try) 2>&5
  1970. ac_status=$?
  1971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1972. (exit $ac_status); }; }; then
  1973. break
  1974. else
  1975. echo "$as_me: failed program was:" >&5
  1976. sed 's/^/| /' conftest.$ac_ext >&5
  1977. fi
  1978. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1979. done
  1980. rm -f conftest*
  1981. if test -n "$ac_declaration"; then
  1982. echo '#ifdef __cplusplus' >>confdefs.h
  1983. echo $ac_declaration >>confdefs.h
  1984. echo '#endif' >>confdefs.h
  1985. fi
  1986. else
  1987. echo "$as_me: failed program was:" >&5
  1988. sed 's/^/| /' conftest.$ac_ext >&5
  1989. fi
  1990. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1991. ac_ext=c
  1992. ac_cpp='$CPP $CPPFLAGS'
  1993. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1994. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1995. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1996. if test "z$oldCFLAGS" = z; then
  1997. if test "z$GCC" = z; then
  1998. CFLAGS='-O'
  1999. else
  2000. CFLAGS='-O2'
  2001. fi
  2002. fi
  2003. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2004. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2005. if test "${ac_cv_search_strerror+set}" = set; then
  2006. echo $ECHO_N "(cached) $ECHO_C" >&6
  2007. else
  2008. ac_func_search_save_LIBS=$LIBS
  2009. ac_cv_search_strerror=no
  2010. cat >conftest.$ac_ext <<_ACEOF
  2011. /* confdefs.h. */
  2012. _ACEOF
  2013. cat confdefs.h >>conftest.$ac_ext
  2014. cat >>conftest.$ac_ext <<_ACEOF
  2015. /* end confdefs.h. */
  2016. /* Override any gcc2 internal prototype to avoid an error. */
  2017. #ifdef __cplusplus
  2018. extern "C"
  2019. #endif
  2020. /* We use char because int might match the return type of a gcc2
  2021. builtin and then its argument prototype would still apply. */
  2022. char strerror ();
  2023. int
  2024. main ()
  2025. {
  2026. strerror ();
  2027. ;
  2028. return 0;
  2029. }
  2030. _ACEOF
  2031. rm -f conftest.$ac_objext conftest$ac_exeext
  2032. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2033. (eval $ac_link) 2>conftest.er1
  2034. ac_status=$?
  2035. grep -v '^ *+' conftest.er1 >conftest.err
  2036. rm -f conftest.er1
  2037. cat conftest.err >&5
  2038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2039. (exit $ac_status); } &&
  2040. { ac_try='test -z "$ac_c_werror_flag"
  2041. || test ! -s conftest.err'
  2042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2043. (eval $ac_try) 2>&5
  2044. ac_status=$?
  2045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2046. (exit $ac_status); }; } &&
  2047. { ac_try='test -s conftest$ac_exeext'
  2048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2049. (eval $ac_try) 2>&5
  2050. ac_status=$?
  2051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2052. (exit $ac_status); }; }; then
  2053. ac_cv_search_strerror="none required"
  2054. else
  2055. echo "$as_me: failed program was:" >&5
  2056. sed 's/^/| /' conftest.$ac_ext >&5
  2057. fi
  2058. rm -f conftest.err conftest.$ac_objext \
  2059. conftest$ac_exeext conftest.$ac_ext
  2060. if test "$ac_cv_search_strerror" = no; then
  2061. for ac_lib in cposix; do
  2062. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. /* Override any gcc2 internal prototype to avoid an error. */
  2070. #ifdef __cplusplus
  2071. extern "C"
  2072. #endif
  2073. /* We use char because int might match the return type of a gcc2
  2074. builtin and then its argument prototype would still apply. */
  2075. char strerror ();
  2076. int
  2077. main ()
  2078. {
  2079. strerror ();
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.$ac_objext conftest$ac_exeext
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2086. (eval $ac_link) 2>conftest.er1
  2087. ac_status=$?
  2088. grep -v '^ *+' conftest.er1 >conftest.err
  2089. rm -f conftest.er1
  2090. cat conftest.err >&5
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); } &&
  2093. { ac_try='test -z "$ac_c_werror_flag"
  2094. || test ! -s conftest.err'
  2095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2096. (eval $ac_try) 2>&5
  2097. ac_status=$?
  2098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2099. (exit $ac_status); }; } &&
  2100. { ac_try='test -s conftest$ac_exeext'
  2101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2102. (eval $ac_try) 2>&5
  2103. ac_status=$?
  2104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2105. (exit $ac_status); }; }; then
  2106. ac_cv_search_strerror="-l$ac_lib"
  2107. break
  2108. else
  2109. echo "$as_me: failed program was:" >&5
  2110. sed 's/^/| /' conftest.$ac_ext >&5
  2111. fi
  2112. rm -f conftest.err conftest.$ac_objext \
  2113. conftest$ac_exeext conftest.$ac_ext
  2114. done
  2115. fi
  2116. LIBS=$ac_func_search_save_LIBS
  2117. fi
  2118. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2119. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2120. if test "$ac_cv_search_strerror" != no; then
  2121. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2122. fi
  2123. if test "$cross_compiling" = yes; then
  2124. true
  2125. else
  2126. cat >conftest.$ac_ext <<_ACEOF
  2127. /* confdefs.h. */
  2128. _ACEOF
  2129. cat confdefs.h >>conftest.$ac_ext
  2130. cat >>conftest.$ac_ext <<_ACEOF
  2131. /* end confdefs.h. */
  2132. int main() { return 0;}
  2133. _ACEOF
  2134. rm -f conftest$ac_exeext
  2135. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2136. (eval $ac_link) 2>&5
  2137. ac_status=$?
  2138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2139. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2141. (eval $ac_try) 2>&5
  2142. ac_status=$?
  2143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2144. (exit $ac_status); }; }; then
  2145. :
  2146. else
  2147. echo "$as_me: program exited with status $ac_status" >&5
  2148. echo "$as_me: failed program was:" >&5
  2149. sed 's/^/| /' conftest.$ac_ext >&5
  2150. fi
  2151. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2152. fi
  2153. ac_aux_dir=
  2154. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2155. if test -f $ac_dir/install-sh; then
  2156. ac_aux_dir=$ac_dir
  2157. ac_install_sh="$ac_aux_dir/install-sh -c"
  2158. break
  2159. elif test -f $ac_dir/install.sh; then
  2160. ac_aux_dir=$ac_dir
  2161. ac_install_sh="$ac_aux_dir/install.sh -c"
  2162. break
  2163. elif test -f $ac_dir/shtool; then
  2164. ac_aux_dir=$ac_dir
  2165. ac_install_sh="$ac_aux_dir/shtool install -c"
  2166. break
  2167. fi
  2168. done
  2169. if test -z "$ac_aux_dir"; then
  2170. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  2171. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  2172. { (exit 1); exit 1; }; }
  2173. fi
  2174. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  2175. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  2176. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  2177. # Find a good install program. We prefer a C program (faster),
  2178. # so one script is as good as another. But avoid the broken or
  2179. # incompatible versions:
  2180. # SysV /etc/install, /usr/sbin/install
  2181. # SunOS /usr/etc/install
  2182. # IRIX /sbin/install
  2183. # AIX /bin/install
  2184. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2185. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2186. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2187. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2188. # OS/2's system install, which has a completely different semantic
  2189. # ./install, which can be erroneously created by make from ./install.sh.
  2190. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2191. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2192. if test -z "$INSTALL"; then
  2193. if test "${ac_cv_path_install+set}" = set; then
  2194. echo $ECHO_N "(cached) $ECHO_C" >&6
  2195. else
  2196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2197. for as_dir in $PATH
  2198. do
  2199. IFS=$as_save_IFS
  2200. test -z "$as_dir" && as_dir=.
  2201. # Account for people who put trailing slashes in PATH elements.
  2202. case $as_dir/ in
  2203. ./ | .// | /cC/* | \
  2204. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2205. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2206. /usr/ucb/* ) ;;
  2207. *)
  2208. # OSF1 and SCO ODT 3.0 have their own names for install.
  2209. # Don't use installbsd from OSF since it installs stuff as root
  2210. # by default.
  2211. for ac_prog in ginstall scoinst install; do
  2212. for ac_exec_ext in '' $ac_executable_extensions; do
  2213. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2214. if test $ac_prog = install &&
  2215. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2216. # AIX install. It has an incompatible calling convention.
  2217. :
  2218. elif test $ac_prog = install &&
  2219. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2220. # program-specific install script used by HP pwplus--don't use.
  2221. :
  2222. else
  2223. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2224. break 3
  2225. fi
  2226. fi
  2227. done
  2228. done
  2229. ;;
  2230. esac
  2231. done
  2232. fi
  2233. if test "${ac_cv_path_install+set}" = set; then
  2234. INSTALL=$ac_cv_path_install
  2235. else
  2236. # As a last resort, use the slow shell script. We don't cache a
  2237. # path for INSTALL within a source directory, because that will
  2238. # break other packages using the cache if that directory is
  2239. # removed, or if the path is relative.
  2240. INSTALL=$ac_install_sh
  2241. fi
  2242. fi
  2243. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2244. echo "${ECHO_T}$INSTALL" >&6
  2245. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2246. # It thinks the first close brace ends the variable substitution.
  2247. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2248. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2249. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2250. echo "$as_me:$LINENO: checking for main in -lm" >&5
  2251. echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
  2252. if test "${ac_cv_lib_m_main+set}" = set; then
  2253. echo $ECHO_N "(cached) $ECHO_C" >&6
  2254. else
  2255. ac_check_lib_save_LIBS=$LIBS
  2256. LIBS="-lm $LIBS"
  2257. cat >conftest.$ac_ext <<_ACEOF
  2258. /* confdefs.h. */
  2259. _ACEOF
  2260. cat confdefs.h >>conftest.$ac_ext
  2261. cat >>conftest.$ac_ext <<_ACEOF
  2262. /* end confdefs.h. */
  2263. int
  2264. main ()
  2265. {
  2266. main ();
  2267. ;
  2268. return 0;
  2269. }
  2270. _ACEOF
  2271. rm -f conftest.$ac_objext conftest$ac_exeext
  2272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2273. (eval $ac_link) 2>conftest.er1
  2274. ac_status=$?
  2275. grep -v '^ *+' conftest.er1 >conftest.err
  2276. rm -f conftest.er1
  2277. cat conftest.err >&5
  2278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2279. (exit $ac_status); } &&
  2280. { ac_try='test -z "$ac_c_werror_flag"
  2281. || test ! -s conftest.err'
  2282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2283. (eval $ac_try) 2>&5
  2284. ac_status=$?
  2285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2286. (exit $ac_status); }; } &&
  2287. { ac_try='test -s conftest$ac_exeext'
  2288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2289. (eval $ac_try) 2>&5
  2290. ac_status=$?
  2291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2292. (exit $ac_status); }; }; then
  2293. ac_cv_lib_m_main=yes
  2294. else
  2295. echo "$as_me: failed program was:" >&5
  2296. sed 's/^/| /' conftest.$ac_ext >&5
  2297. ac_cv_lib_m_main=no
  2298. fi
  2299. rm -f conftest.err conftest.$ac_objext \
  2300. conftest$ac_exeext conftest.$ac_ext
  2301. LIBS=$ac_check_lib_save_LIBS
  2302. fi
  2303. echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
  2304. echo "${ECHO_T}$ac_cv_lib_m_main" >&6
  2305. if test $ac_cv_lib_m_main = yes; then
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define HAVE_LIBM 1
  2308. _ACEOF
  2309. LIBS="-lm $LIBS"
  2310. fi
  2311. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  2312. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  2313. if test "${ac_cv_lib_dl_main+set}" = set; then
  2314. echo $ECHO_N "(cached) $ECHO_C" >&6
  2315. else
  2316. ac_check_lib_save_LIBS=$LIBS
  2317. LIBS="-ldl $LIBS"
  2318. cat >conftest.$ac_ext <<_ACEOF
  2319. /* confdefs.h. */
  2320. _ACEOF
  2321. cat confdefs.h >>conftest.$ac_ext
  2322. cat >>conftest.$ac_ext <<_ACEOF
  2323. /* end confdefs.h. */
  2324. int
  2325. main ()
  2326. {
  2327. main ();
  2328. ;
  2329. return 0;
  2330. }
  2331. _ACEOF
  2332. rm -f conftest.$ac_objext conftest$ac_exeext
  2333. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2334. (eval $ac_link) 2>conftest.er1
  2335. ac_status=$?
  2336. grep -v '^ *+' conftest.er1 >conftest.err
  2337. rm -f conftest.er1
  2338. cat conftest.err >&5
  2339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2340. (exit $ac_status); } &&
  2341. { ac_try='test -z "$ac_c_werror_flag"
  2342. || test ! -s conftest.err'
  2343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2344. (eval $ac_try) 2>&5
  2345. ac_status=$?
  2346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2347. (exit $ac_status); }; } &&
  2348. { ac_try='test -s conftest$ac_exeext'
  2349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2350. (eval $ac_try) 2>&5
  2351. ac_status=$?
  2352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. (exit $ac_status); }; }; then
  2354. ac_cv_lib_dl_main=yes
  2355. else
  2356. echo "$as_me: failed program was:" >&5
  2357. sed 's/^/| /' conftest.$ac_ext >&5
  2358. ac_cv_lib_dl_main=no
  2359. fi
  2360. rm -f conftest.err conftest.$ac_objext \
  2361. conftest$ac_exeext conftest.$ac_ext
  2362. LIBS=$ac_check_lib_save_LIBS
  2363. fi
  2364. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  2365. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  2366. if test $ac_cv_lib_dl_main = yes; then
  2367. cat >>confdefs.h <<_ACEOF
  2368. #define HAVE_LIBDL 1
  2369. _ACEOF
  2370. LIBS="-ldl $LIBS"
  2371. fi
  2372. echo "$as_me:$LINENO: checking for main in -lmld" >&5
  2373. echo $ECHO_N "checking for main in -lmld... $ECHO_C" >&6
  2374. if test "${ac_cv_lib_mld_main+set}" = set; then
  2375. echo $ECHO_N "(cached) $ECHO_C" >&6
  2376. else
  2377. ac_check_lib_save_LIBS=$LIBS
  2378. LIBS="-lmld $LIBS"
  2379. cat >conftest.$ac_ext <<_ACEOF
  2380. /* confdefs.h. */
  2381. _ACEOF
  2382. cat confdefs.h >>conftest.$ac_ext
  2383. cat >>conftest.$ac_ext <<_ACEOF
  2384. /* end confdefs.h. */
  2385. int
  2386. main ()
  2387. {
  2388. main ();
  2389. ;
  2390. return 0;
  2391. }
  2392. _ACEOF
  2393. rm -f conftest.$ac_objext conftest$ac_exeext
  2394. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2395. (eval $ac_link) 2>conftest.er1
  2396. ac_status=$?
  2397. grep -v '^ *+' conftest.er1 >conftest.err
  2398. rm -f conftest.er1
  2399. cat conftest.err >&5
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); } &&
  2402. { ac_try='test -z "$ac_c_werror_flag"
  2403. || test ! -s conftest.err'
  2404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2405. (eval $ac_try) 2>&5
  2406. ac_status=$?
  2407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2408. (exit $ac_status); }; } &&
  2409. { ac_try='test -s conftest$ac_exeext'
  2410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2411. (eval $ac_try) 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }; }; then
  2415. ac_cv_lib_mld_main=yes
  2416. else
  2417. echo "$as_me: failed program was:" >&5
  2418. sed 's/^/| /' conftest.$ac_ext >&5
  2419. ac_cv_lib_mld_main=no
  2420. fi
  2421. rm -f conftest.err conftest.$ac_objext \
  2422. conftest$ac_exeext conftest.$ac_ext
  2423. LIBS=$ac_check_lib_save_LIBS
  2424. fi
  2425. echo "$as_me:$LINENO: result: $ac_cv_lib_mld_main" >&5
  2426. echo "${ECHO_T}$ac_cv_lib_mld_main" >&6
  2427. if test $ac_cv_lib_mld_main = yes; then
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define HAVE_LIBMLD 1
  2430. _ACEOF
  2431. LIBS="-lmld $LIBS"
  2432. fi
  2433. echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  2434. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
  2435. if test "${ac_cv_lib_nsl_main+set}" = set; then
  2436. echo $ECHO_N "(cached) $ECHO_C" >&6
  2437. else
  2438. ac_check_lib_save_LIBS=$LIBS
  2439. LIBS="-lnsl $LIBS"
  2440. cat >conftest.$ac_ext <<_ACEOF
  2441. /* confdefs.h. */
  2442. _ACEOF
  2443. cat confdefs.h >>conftest.$ac_ext
  2444. cat >>conftest.$ac_ext <<_ACEOF
  2445. /* end confdefs.h. */
  2446. int
  2447. main ()
  2448. {
  2449. main ();
  2450. ;
  2451. return 0;
  2452. }
  2453. _ACEOF
  2454. rm -f conftest.$ac_objext conftest$ac_exeext
  2455. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2456. (eval $ac_link) 2>conftest.er1
  2457. ac_status=$?
  2458. grep -v '^ *+' conftest.er1 >conftest.err
  2459. rm -f conftest.er1
  2460. cat conftest.err >&5
  2461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2462. (exit $ac_status); } &&
  2463. { ac_try='test -z "$ac_c_werror_flag"
  2464. || test ! -s conftest.err'
  2465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2466. (eval $ac_try) 2>&5
  2467. ac_status=$?
  2468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2469. (exit $ac_status); }; } &&
  2470. { ac_try='test -s conftest$ac_exeext'
  2471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2472. (eval $ac_try) 2>&5
  2473. ac_status=$?
  2474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2475. (exit $ac_status); }; }; then
  2476. ac_cv_lib_nsl_main=yes
  2477. else
  2478. echo "$as_me: failed program was:" >&5
  2479. sed 's/^/| /' conftest.$ac_ext >&5
  2480. ac_cv_lib_nsl_main=no
  2481. fi
  2482. rm -f conftest.err conftest.$ac_objext \
  2483. conftest$ac_exeext conftest.$ac_ext
  2484. LIBS=$ac_check_lib_save_LIBS
  2485. fi
  2486. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  2487. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
  2488. if test $ac_cv_lib_nsl_main = yes; then
  2489. cat >>confdefs.h <<_ACEOF
  2490. #define HAVE_LIBNSL 1
  2491. _ACEOF
  2492. LIBS="-lnsl $LIBS"
  2493. fi
  2494. echo "$as_me:$LINENO: checking for main in -lgen" >&5
  2495. echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
  2496. if test "${ac_cv_lib_gen_main+set}" = set; then
  2497. echo $ECHO_N "(cached) $ECHO_C" >&6
  2498. else
  2499. ac_check_lib_save_LIBS=$LIBS
  2500. LIBS="-lgen $LIBS"
  2501. cat >conftest.$ac_ext <<_ACEOF
  2502. /* confdefs.h. */
  2503. _ACEOF
  2504. cat confdefs.h >>conftest.$ac_ext
  2505. cat >>conftest.$ac_ext <<_ACEOF
  2506. /* end confdefs.h. */
  2507. int
  2508. main ()
  2509. {
  2510. main ();
  2511. ;
  2512. return 0;
  2513. }
  2514. _ACEOF
  2515. rm -f conftest.$ac_objext conftest$ac_exeext
  2516. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2517. (eval $ac_link) 2>conftest.er1
  2518. ac_status=$?
  2519. grep -v '^ *+' conftest.er1 >conftest.err
  2520. rm -f conftest.er1
  2521. cat conftest.err >&5
  2522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2523. (exit $ac_status); } &&
  2524. { ac_try='test -z "$ac_c_werror_flag"
  2525. || test ! -s conftest.err'
  2526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2527. (eval $ac_try) 2>&5
  2528. ac_status=$?
  2529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2530. (exit $ac_status); }; } &&
  2531. { ac_try='test -s conftest$ac_exeext'
  2532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2533. (eval $ac_try) 2>&5
  2534. ac_status=$?
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); }; }; then
  2537. ac_cv_lib_gen_main=yes
  2538. else
  2539. echo "$as_me: failed program was:" >&5
  2540. sed 's/^/| /' conftest.$ac_ext >&5
  2541. ac_cv_lib_gen_main=no
  2542. fi
  2543. rm -f conftest.err conftest.$ac_objext \
  2544. conftest$ac_exeext conftest.$ac_ext
  2545. LIBS=$ac_check_lib_save_LIBS
  2546. fi
  2547. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
  2548. echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
  2549. if test $ac_cv_lib_gen_main = yes; then
  2550. cat >>confdefs.h <<_ACEOF
  2551. #define HAVE_LIBGEN 1
  2552. _ACEOF
  2553. LIBS="-lgen $LIBS"
  2554. fi
  2555. echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  2556. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
  2557. if test "${ac_cv_lib_socket_main+set}" = set; then
  2558. echo $ECHO_N "(cached) $ECHO_C" >&6
  2559. else
  2560. ac_check_lib_save_LIBS=$LIBS
  2561. LIBS="-lsocket $LIBS"
  2562. cat >conftest.$ac_ext <<_ACEOF
  2563. /* confdefs.h. */
  2564. _ACEOF
  2565. cat confdefs.h >>conftest.$ac_ext
  2566. cat >>conftest.$ac_ext <<_ACEOF
  2567. /* end confdefs.h. */
  2568. int
  2569. main ()
  2570. {
  2571. main ();
  2572. ;
  2573. return 0;
  2574. }
  2575. _ACEOF
  2576. rm -f conftest.$ac_objext conftest$ac_exeext
  2577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2578. (eval $ac_link) 2>conftest.er1
  2579. ac_status=$?
  2580. grep -v '^ *+' conftest.er1 >conftest.err
  2581. rm -f conftest.er1
  2582. cat conftest.err >&5
  2583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); } &&
  2585. { ac_try='test -z "$ac_c_werror_flag"
  2586. || test ! -s conftest.err'
  2587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2588. (eval $ac_try) 2>&5
  2589. ac_status=$?
  2590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2591. (exit $ac_status); }; } &&
  2592. { ac_try='test -s conftest$ac_exeext'
  2593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2594. (eval $ac_try) 2>&5
  2595. ac_status=$?
  2596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2597. (exit $ac_status); }; }; then
  2598. ac_cv_lib_socket_main=yes
  2599. else
  2600. echo "$as_me: failed program was:" >&5
  2601. sed 's/^/| /' conftest.$ac_ext >&5
  2602. ac_cv_lib_socket_main=no
  2603. fi
  2604. rm -f conftest.err conftest.$ac_objext \
  2605. conftest$ac_exeext conftest.$ac_ext
  2606. LIBS=$ac_check_lib_save_LIBS
  2607. fi
  2608. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  2609. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
  2610. if test $ac_cv_lib_socket_main = yes; then
  2611. cat >>confdefs.h <<_ACEOF
  2612. #define HAVE_LIBSOCKET 1
  2613. _ACEOF
  2614. LIBS="-lsocket $LIBS"
  2615. fi
  2616. echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
  2617. echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
  2618. if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
  2619. echo $ECHO_N "(cached) $ECHO_C" >&6
  2620. else
  2621. ac_check_lib_save_LIBS=$LIBS
  2622. LIBS="-lsun $LIBS"
  2623. cat >conftest.$ac_ext <<_ACEOF
  2624. /* confdefs.h. */
  2625. _ACEOF
  2626. cat confdefs.h >>conftest.$ac_ext
  2627. cat >>conftest.$ac_ext <<_ACEOF
  2628. /* end confdefs.h. */
  2629. /* Override any gcc2 internal prototype to avoid an error. */
  2630. #ifdef __cplusplus
  2631. extern "C"
  2632. #endif
  2633. /* We use char because int might match the return type of a gcc2
  2634. builtin and then its argument prototype would still apply. */
  2635. char getpwnam ();
  2636. int
  2637. main ()
  2638. {
  2639. getpwnam ();
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. rm -f conftest.$ac_objext conftest$ac_exeext
  2645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2646. (eval $ac_link) 2>conftest.er1
  2647. ac_status=$?
  2648. grep -v '^ *+' conftest.er1 >conftest.err
  2649. rm -f conftest.er1
  2650. cat conftest.err >&5
  2651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2652. (exit $ac_status); } &&
  2653. { ac_try='test -z "$ac_c_werror_flag"
  2654. || test ! -s conftest.err'
  2655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2656. (eval $ac_try) 2>&5
  2657. ac_status=$?
  2658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2659. (exit $ac_status); }; } &&
  2660. { ac_try='test -s conftest$ac_exeext'
  2661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2662. (eval $ac_try) 2>&5
  2663. ac_status=$?
  2664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2665. (exit $ac_status); }; }; then
  2666. ac_cv_lib_sun_getpwnam=yes
  2667. else
  2668. echo "$as_me: failed program was:" >&5
  2669. sed 's/^/| /' conftest.$ac_ext >&5
  2670. ac_cv_lib_sun_getpwnam=no
  2671. fi
  2672. rm -f conftest.err conftest.$ac_objext \
  2673. conftest$ac_exeext conftest.$ac_ext
  2674. LIBS=$ac_check_lib_save_LIBS
  2675. fi
  2676. echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
  2677. echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
  2678. if test $ac_cv_lib_sun_getpwnam = yes; then
  2679. cat >>confdefs.h <<_ACEOF
  2680. #define HAVE_LIBSUN 1
  2681. _ACEOF
  2682. LIBS="-lsun $LIBS"
  2683. fi
  2684. echo "$as_me:$LINENO: checking for main in -lelf" >&5
  2685. echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
  2686. if test "${ac_cv_lib_elf_main+set}" = set; then
  2687. echo $ECHO_N "(cached) $ECHO_C" >&6
  2688. else
  2689. ac_check_lib_save_LIBS=$LIBS
  2690. LIBS="-lelf $LIBS"
  2691. cat >conftest.$ac_ext <<_ACEOF
  2692. /* confdefs.h. */
  2693. _ACEOF
  2694. cat confdefs.h >>conftest.$ac_ext
  2695. cat >>conftest.$ac_ext <<_ACEOF
  2696. /* end confdefs.h. */
  2697. int
  2698. main ()
  2699. {
  2700. main ();
  2701. ;
  2702. return 0;
  2703. }
  2704. _ACEOF
  2705. rm -f conftest.$ac_objext conftest$ac_exeext
  2706. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2707. (eval $ac_link) 2>conftest.er1
  2708. ac_status=$?
  2709. grep -v '^ *+' conftest.er1 >conftest.err
  2710. rm -f conftest.er1
  2711. cat conftest.err >&5
  2712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713. (exit $ac_status); } &&
  2714. { ac_try='test -z "$ac_c_werror_flag"
  2715. || test ! -s conftest.err'
  2716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2717. (eval $ac_try) 2>&5
  2718. ac_status=$?
  2719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2720. (exit $ac_status); }; } &&
  2721. { ac_try='test -s conftest$ac_exeext'
  2722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2723. (eval $ac_try) 2>&5
  2724. ac_status=$?
  2725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2726. (exit $ac_status); }; }; then
  2727. ac_cv_lib_elf_main=yes
  2728. else
  2729. echo "$as_me: failed program was:" >&5
  2730. sed 's/^/| /' conftest.$ac_ext >&5
  2731. ac_cv_lib_elf_main=no
  2732. fi
  2733. rm -f conftest.err conftest.$ac_objext \
  2734. conftest$ac_exeext conftest.$ac_ext
  2735. LIBS=$ac_check_lib_save_LIBS
  2736. fi
  2737. echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
  2738. echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
  2739. if test $ac_cv_lib_elf_main = yes; then
  2740. cat >>confdefs.h <<_ACEOF
  2741. #define HAVE_LIBELF 1
  2742. _ACEOF
  2743. LIBS="-lelf $LIBS"
  2744. fi
  2745. echo checking for RISC/OS POSIX library lossage
  2746. if test -f /usr/posix/usr/lib/libc.a; then
  2747. LIBS="${LIBS} /usr/posix/usr/lib/libc.a"
  2748. fi
  2749. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  2750. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  2751. if test "${ac_cv_c_const+set}" = set; then
  2752. echo $ECHO_N "(cached) $ECHO_C" >&6
  2753. else
  2754. cat >conftest.$ac_ext <<_ACEOF
  2755. /* confdefs.h. */
  2756. _ACEOF
  2757. cat confdefs.h >>conftest.$ac_ext
  2758. cat >>conftest.$ac_ext <<_ACEOF
  2759. /* end confdefs.h. */
  2760. int
  2761. main ()
  2762. {
  2763. /* FIXME: Include the comments suggested by Paul. */
  2764. #ifndef __cplusplus
  2765. /* Ultrix mips cc rejects this. */
  2766. typedef int charset[2];
  2767. const charset x;
  2768. /* SunOS 4.1.1 cc rejects this. */
  2769. char const *const *ccp;
  2770. char **p;
  2771. /* NEC SVR4.0.2 mips cc rejects this. */
  2772. struct point {int x, y;};
  2773. static struct point const zero = {0,0};
  2774. /* AIX XL C 1.02.0.0 rejects this.
  2775. It does not let you subtract one const X* pointer from another in
  2776. an arm of an if-expression whose if-part is not a constant
  2777. expression */
  2778. const char *g = "string";
  2779. ccp = &g + (g ? g-g : 0);
  2780. /* HPUX 7.0 cc rejects these. */
  2781. ++ccp;
  2782. p = (char**) ccp;
  2783. ccp = (char const *const *) p;
  2784. { /* SCO 3.2v4 cc rejects this. */
  2785. char *t;
  2786. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2787. *t++ = 0;
  2788. }
  2789. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2790. int x[] = {25, 17};
  2791. const int *foo = &x[0];
  2792. ++foo;
  2793. }
  2794. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2795. typedef const int *iptr;
  2796. iptr p = 0;
  2797. ++p;
  2798. }
  2799. { /* AIX XL C 1.02.0.0 rejects this saying
  2800. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2801. struct s { int j; const int *ap[3]; };
  2802. struct s *b; b->j = 5;
  2803. }
  2804. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2805. const int foo = 10;
  2806. }
  2807. #endif
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. rm -f conftest.$ac_objext
  2813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2814. (eval $ac_compile) 2>conftest.er1
  2815. ac_status=$?
  2816. grep -v '^ *+' conftest.er1 >conftest.err
  2817. rm -f conftest.er1
  2818. cat conftest.err >&5
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); } &&
  2821. { ac_try='test -z "$ac_c_werror_flag"
  2822. || test ! -s conftest.err'
  2823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2824. (eval $ac_try) 2>&5
  2825. ac_status=$?
  2826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2827. (exit $ac_status); }; } &&
  2828. { ac_try='test -s conftest.$ac_objext'
  2829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2830. (eval $ac_try) 2>&5
  2831. ac_status=$?
  2832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2833. (exit $ac_status); }; }; then
  2834. ac_cv_c_const=yes
  2835. else
  2836. echo "$as_me: failed program was:" >&5
  2837. sed 's/^/| /' conftest.$ac_ext >&5
  2838. ac_cv_c_const=no
  2839. fi
  2840. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2841. fi
  2842. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  2843. echo "${ECHO_T}$ac_cv_c_const" >&6
  2844. if test $ac_cv_c_const = no; then
  2845. cat >>confdefs.h <<\_ACEOF
  2846. #define const
  2847. _ACEOF
  2848. fi
  2849. echo "$as_me:$LINENO: checking for socklen_t" >&5
  2850. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  2851. cat >conftest.$ac_ext <<_ACEOF
  2852. /* confdefs.h. */
  2853. _ACEOF
  2854. cat confdefs.h >>conftest.$ac_ext
  2855. cat >>conftest.$ac_ext <<_ACEOF
  2856. /* end confdefs.h. */
  2857. #include <sys/types.h>
  2858. #include <sys/socket.h>
  2859. socklen_t x;
  2860. int
  2861. main ()
  2862. {
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. rm -f conftest.$ac_objext
  2868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2869. (eval $ac_compile) 2>conftest.er1
  2870. ac_status=$?
  2871. grep -v '^ *+' conftest.er1 >conftest.err
  2872. rm -f conftest.er1
  2873. cat conftest.err >&5
  2874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); } &&
  2876. { ac_try='test -z "$ac_c_werror_flag"
  2877. || test ! -s conftest.err'
  2878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2879. (eval $ac_try) 2>&5
  2880. ac_status=$?
  2881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2882. (exit $ac_status); }; } &&
  2883. { ac_try='test -s conftest.$ac_objext'
  2884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2885. (eval $ac_try) 2>&5
  2886. ac_status=$?
  2887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); }; }; then
  2889. echo "$as_me:$LINENO: result: yes" >&5
  2890. echo "${ECHO_T}yes" >&6
  2891. else
  2892. echo "$as_me: failed program was:" >&5
  2893. sed 's/^/| /' conftest.$ac_ext >&5
  2894. cat >conftest.$ac_ext <<_ACEOF
  2895. /* confdefs.h. */
  2896. _ACEOF
  2897. cat confdefs.h >>conftest.$ac_ext
  2898. cat >>conftest.$ac_ext <<_ACEOF
  2899. /* end confdefs.h. */
  2900. #include <sys/types.h>
  2901. #include <sys/socket.h>
  2902. int accept (int,
  2903. struct sockaddr *,
  2904. size_t *);
  2905. int
  2906. main ()
  2907. {
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. rm -f conftest.$ac_objext
  2913. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2914. (eval $ac_compile) 2>conftest.er1
  2915. ac_status=$?
  2916. grep -v '^ *+' conftest.er1 >conftest.err
  2917. rm -f conftest.er1
  2918. cat conftest.err >&5
  2919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2920. (exit $ac_status); } &&
  2921. { ac_try='test -z "$ac_c_werror_flag"
  2922. || test ! -s conftest.err'
  2923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2924. (eval $ac_try) 2>&5
  2925. ac_status=$?
  2926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927. (exit $ac_status); }; } &&
  2928. { ac_try='test -s conftest.$ac_objext'
  2929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2930. (eval $ac_try) 2>&5
  2931. ac_status=$?
  2932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2933. (exit $ac_status); }; }; then
  2934. echo "$as_me:$LINENO: result: size_t" >&5
  2935. echo "${ECHO_T}size_t" >&6
  2936. cat >>confdefs.h <<\_ACEOF
  2937. #define socklen_t size_t
  2938. _ACEOF
  2939. else
  2940. echo "$as_me: failed program was:" >&5
  2941. sed 's/^/| /' conftest.$ac_ext >&5
  2942. echo "$as_me:$LINENO: result: int" >&5
  2943. echo "${ECHO_T}int" >&6
  2944. cat >>confdefs.h <<\_ACEOF
  2945. #define socklen_t int
  2946. _ACEOF
  2947. fi
  2948. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. fi
  2950. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  2952. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  2953. if test "${ac_cv_type_signal+set}" = set; then
  2954. echo $ECHO_N "(cached) $ECHO_C" >&6
  2955. else
  2956. cat >conftest.$ac_ext <<_ACEOF
  2957. /* confdefs.h. */
  2958. _ACEOF
  2959. cat confdefs.h >>conftest.$ac_ext
  2960. cat >>conftest.$ac_ext <<_ACEOF
  2961. /* end confdefs.h. */
  2962. #include <sys/types.h>
  2963. #include <signal.h>
  2964. #ifdef signal
  2965. # undef signal
  2966. #endif
  2967. #ifdef __cplusplus
  2968. extern "C" void (*signal (int, void (*)(int)))(int);
  2969. #else
  2970. void (*signal ()) ();
  2971. #endif
  2972. int
  2973. main ()
  2974. {
  2975. int i;
  2976. ;
  2977. return 0;
  2978. }
  2979. _ACEOF
  2980. rm -f conftest.$ac_objext
  2981. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2982. (eval $ac_compile) 2>conftest.er1
  2983. ac_status=$?
  2984. grep -v '^ *+' conftest.er1 >conftest.err
  2985. rm -f conftest.er1
  2986. cat conftest.err >&5
  2987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2988. (exit $ac_status); } &&
  2989. { ac_try='test -z "$ac_c_werror_flag"
  2990. || test ! -s conftest.err'
  2991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2992. (eval $ac_try) 2>&5
  2993. ac_status=$?
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); }; } &&
  2996. { ac_try='test -s conftest.$ac_objext'
  2997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2998. (eval $ac_try) 2>&5
  2999. ac_status=$?
  3000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3001. (exit $ac_status); }; }; then
  3002. ac_cv_type_signal=void
  3003. else
  3004. echo "$as_me: failed program was:" >&5
  3005. sed 's/^/| /' conftest.$ac_ext >&5
  3006. ac_cv_type_signal=int
  3007. fi
  3008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3009. fi
  3010. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  3011. echo "${ECHO_T}$ac_cv_type_signal" >&6
  3012. cat >>confdefs.h <<_ACEOF
  3013. #define RETSIGTYPE $ac_cv_type_signal
  3014. _ACEOF
  3015. ac_ext=c
  3016. ac_cpp='$CPP $CPPFLAGS'
  3017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3020. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3021. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3022. # On Suns, sometimes $CPP names a directory.
  3023. if test -n "$CPP" && test -d "$CPP"; then
  3024. CPP=
  3025. fi
  3026. if test -z "$CPP"; then
  3027. if test "${ac_cv_prog_CPP+set}" = set; then
  3028. echo $ECHO_N "(cached) $ECHO_C" >&6
  3029. else
  3030. # Double quotes because CPP needs to be expanded
  3031. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3032. do
  3033. ac_preproc_ok=false
  3034. for ac_c_preproc_warn_flag in '' yes
  3035. do
  3036. # Use a header file that comes with gcc, so configuring glibc
  3037. # with a fresh cross-compiler works.
  3038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3039. # <limits.h> exists even on freestanding compilers.
  3040. # On the NeXT, cc -E runs the code through the compiler's parser,
  3041. # not just through cpp. "Syntax error" is here to catch this case.
  3042. cat >conftest.$ac_ext <<_ACEOF
  3043. /* confdefs.h. */
  3044. _ACEOF
  3045. cat confdefs.h >>conftest.$ac_ext
  3046. cat >>conftest.$ac_ext <<_ACEOF
  3047. /* end confdefs.h. */
  3048. #ifdef __STDC__
  3049. # include <limits.h>
  3050. #else
  3051. # include <assert.h>
  3052. #endif
  3053. Syntax error
  3054. _ACEOF
  3055. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3056. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3057. ac_status=$?
  3058. grep -v '^ *+' conftest.er1 >conftest.err
  3059. rm -f conftest.er1
  3060. cat conftest.err >&5
  3061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062. (exit $ac_status); } >/dev/null; then
  3063. if test -s conftest.err; then
  3064. ac_cpp_err=$ac_c_preproc_warn_flag
  3065. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3066. else
  3067. ac_cpp_err=
  3068. fi
  3069. else
  3070. ac_cpp_err=yes
  3071. fi
  3072. if test -z "$ac_cpp_err"; then
  3073. :
  3074. else
  3075. echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. # Broken: fails on valid input.
  3078. continue
  3079. fi
  3080. rm -f conftest.err conftest.$ac_ext
  3081. # OK, works on sane cases. Now check whether non-existent headers
  3082. # can be detected and how.
  3083. cat >conftest.$ac_ext <<_ACEOF
  3084. /* confdefs.h. */
  3085. _ACEOF
  3086. cat confdefs.h >>conftest.$ac_ext
  3087. cat >>conftest.$ac_ext <<_ACEOF
  3088. /* end confdefs.h. */
  3089. #include <ac_nonexistent.h>
  3090. _ACEOF
  3091. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3092. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3093. ac_status=$?
  3094. grep -v '^ *+' conftest.er1 >conftest.err
  3095. rm -f conftest.er1
  3096. cat conftest.err >&5
  3097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3098. (exit $ac_status); } >/dev/null; then
  3099. if test -s conftest.err; then
  3100. ac_cpp_err=$ac_c_preproc_warn_flag
  3101. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3102. else
  3103. ac_cpp_err=
  3104. fi
  3105. else
  3106. ac_cpp_err=yes
  3107. fi
  3108. if test -z "$ac_cpp_err"; then
  3109. # Broken: success on invalid input.
  3110. continue
  3111. else
  3112. echo "$as_me: failed program was:" >&5
  3113. sed 's/^/| /' conftest.$ac_ext >&5
  3114. # Passes both tests.
  3115. ac_preproc_ok=:
  3116. break
  3117. fi
  3118. rm -f conftest.err conftest.$ac_ext
  3119. done
  3120. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3121. rm -f conftest.err conftest.$ac_ext
  3122. if $ac_preproc_ok; then
  3123. break
  3124. fi
  3125. done
  3126. ac_cv_prog_CPP=$CPP
  3127. fi
  3128. CPP=$ac_cv_prog_CPP
  3129. else
  3130. ac_cv_prog_CPP=$CPP
  3131. fi
  3132. echo "$as_me:$LINENO: result: $CPP" >&5
  3133. echo "${ECHO_T}$CPP" >&6
  3134. ac_preproc_ok=false
  3135. for ac_c_preproc_warn_flag in '' yes
  3136. do
  3137. # Use a header file that comes with gcc, so configuring glibc
  3138. # with a fresh cross-compiler works.
  3139. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3140. # <limits.h> exists even on freestanding compilers.
  3141. # On the NeXT, cc -E runs the code through the compiler's parser,
  3142. # not just through cpp. "Syntax error" is here to catch this case.
  3143. cat >conftest.$ac_ext <<_ACEOF
  3144. /* confdefs.h. */
  3145. _ACEOF
  3146. cat confdefs.h >>conftest.$ac_ext
  3147. cat >>conftest.$ac_ext <<_ACEOF
  3148. /* end confdefs.h. */
  3149. #ifdef __STDC__
  3150. # include <limits.h>
  3151. #else
  3152. # include <assert.h>
  3153. #endif
  3154. Syntax error
  3155. _ACEOF
  3156. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3157. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3158. ac_status=$?
  3159. grep -v '^ *+' conftest.er1 >conftest.err
  3160. rm -f conftest.er1
  3161. cat conftest.err >&5
  3162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163. (exit $ac_status); } >/dev/null; then
  3164. if test -s conftest.err; then
  3165. ac_cpp_err=$ac_c_preproc_warn_flag
  3166. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3167. else
  3168. ac_cpp_err=
  3169. fi
  3170. else
  3171. ac_cpp_err=yes
  3172. fi
  3173. if test -z "$ac_cpp_err"; then
  3174. :
  3175. else
  3176. echo "$as_me: failed program was:" >&5
  3177. sed 's/^/| /' conftest.$ac_ext >&5
  3178. # Broken: fails on valid input.
  3179. continue
  3180. fi
  3181. rm -f conftest.err conftest.$ac_ext
  3182. # OK, works on sane cases. Now check whether non-existent headers
  3183. # can be detected and how.
  3184. cat >conftest.$ac_ext <<_ACEOF
  3185. /* confdefs.h. */
  3186. _ACEOF
  3187. cat confdefs.h >>conftest.$ac_ext
  3188. cat >>conftest.$ac_ext <<_ACEOF
  3189. /* end confdefs.h. */
  3190. #include <ac_nonexistent.h>
  3191. _ACEOF
  3192. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3193. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3194. ac_status=$?
  3195. grep -v '^ *+' conftest.er1 >conftest.err
  3196. rm -f conftest.er1
  3197. cat conftest.err >&5
  3198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); } >/dev/null; then
  3200. if test -s conftest.err; then
  3201. ac_cpp_err=$ac_c_preproc_warn_flag
  3202. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3203. else
  3204. ac_cpp_err=
  3205. fi
  3206. else
  3207. ac_cpp_err=yes
  3208. fi
  3209. if test -z "$ac_cpp_err"; then
  3210. # Broken: success on invalid input.
  3211. continue
  3212. else
  3213. echo "$as_me: failed program was:" >&5
  3214. sed 's/^/| /' conftest.$ac_ext >&5
  3215. # Passes both tests.
  3216. ac_preproc_ok=:
  3217. break
  3218. fi
  3219. rm -f conftest.err conftest.$ac_ext
  3220. done
  3221. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3222. rm -f conftest.err conftest.$ac_ext
  3223. if $ac_preproc_ok; then
  3224. :
  3225. else
  3226. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3227. See \`config.log' for more details." >&5
  3228. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3229. See \`config.log' for more details." >&2;}
  3230. { (exit 1); exit 1; }; }
  3231. fi
  3232. ac_ext=c
  3233. ac_cpp='$CPP $CPPFLAGS'
  3234. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3235. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3236. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3237. echo "$as_me:$LINENO: checking for egrep" >&5
  3238. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3239. if test "${ac_cv_prog_egrep+set}" = set; then
  3240. echo $ECHO_N "(cached) $ECHO_C" >&6
  3241. else
  3242. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3243. then ac_cv_prog_egrep='grep -E'
  3244. else ac_cv_prog_egrep='egrep'
  3245. fi
  3246. fi
  3247. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3248. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3249. EGREP=$ac_cv_prog_egrep
  3250. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3251. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3252. if test "${ac_cv_header_stdc+set}" = set; then
  3253. echo $ECHO_N "(cached) $ECHO_C" >&6
  3254. else
  3255. cat >conftest.$ac_ext <<_ACEOF
  3256. /* confdefs.h. */
  3257. _ACEOF
  3258. cat confdefs.h >>conftest.$ac_ext
  3259. cat >>conftest.$ac_ext <<_ACEOF
  3260. /* end confdefs.h. */
  3261. #include <stdlib.h>
  3262. #include <stdarg.h>
  3263. #include <string.h>
  3264. #include <float.h>
  3265. int
  3266. main ()
  3267. {
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. rm -f conftest.$ac_objext
  3273. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3274. (eval $ac_compile) 2>conftest.er1
  3275. ac_status=$?
  3276. grep -v '^ *+' conftest.er1 >conftest.err
  3277. rm -f conftest.er1
  3278. cat conftest.err >&5
  3279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3280. (exit $ac_status); } &&
  3281. { ac_try='test -z "$ac_c_werror_flag"
  3282. || test ! -s conftest.err'
  3283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3284. (eval $ac_try) 2>&5
  3285. ac_status=$?
  3286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3287. (exit $ac_status); }; } &&
  3288. { ac_try='test -s conftest.$ac_objext'
  3289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3290. (eval $ac_try) 2>&5
  3291. ac_status=$?
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); }; }; then
  3294. ac_cv_header_stdc=yes
  3295. else
  3296. echo "$as_me: failed program was:" >&5
  3297. sed 's/^/| /' conftest.$ac_ext >&5
  3298. ac_cv_header_stdc=no
  3299. fi
  3300. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. if test $ac_cv_header_stdc = yes; then
  3302. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3303. cat >conftest.$ac_ext <<_ACEOF
  3304. /* confdefs.h. */
  3305. _ACEOF
  3306. cat confdefs.h >>conftest.$ac_ext
  3307. cat >>conftest.$ac_ext <<_ACEOF
  3308. /* end confdefs.h. */
  3309. #include <string.h>
  3310. _ACEOF
  3311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3312. $EGREP "memchr" >/dev/null 2>&1; then
  3313. :
  3314. else
  3315. ac_cv_header_stdc=no
  3316. fi
  3317. rm -f conftest*
  3318. fi
  3319. if test $ac_cv_header_stdc = yes; then
  3320. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3321. cat >conftest.$ac_ext <<_ACEOF
  3322. /* confdefs.h. */
  3323. _ACEOF
  3324. cat confdefs.h >>conftest.$ac_ext
  3325. cat >>conftest.$ac_ext <<_ACEOF
  3326. /* end confdefs.h. */
  3327. #include <stdlib.h>
  3328. _ACEOF
  3329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3330. $EGREP "free" >/dev/null 2>&1; then
  3331. :
  3332. else
  3333. ac_cv_header_stdc=no
  3334. fi
  3335. rm -f conftest*
  3336. fi
  3337. if test $ac_cv_header_stdc = yes; then
  3338. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3339. if test "$cross_compiling" = yes; then
  3340. :
  3341. else
  3342. cat >conftest.$ac_ext <<_ACEOF
  3343. /* confdefs.h. */
  3344. _ACEOF
  3345. cat confdefs.h >>conftest.$ac_ext
  3346. cat >>conftest.$ac_ext <<_ACEOF
  3347. /* end confdefs.h. */
  3348. #include <ctype.h>
  3349. #if ((' ' & 0x0FF) == 0x020)
  3350. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3351. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3352. #else
  3353. # define ISLOWER(c) \
  3354. (('a' <= (c) && (c) <= 'i') \
  3355. || ('j' <= (c) && (c) <= 'r') \
  3356. || ('s' <= (c) && (c) <= 'z'))
  3357. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3358. #endif
  3359. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3360. int
  3361. main ()
  3362. {
  3363. int i;
  3364. for (i = 0; i < 256; i++)
  3365. if (XOR (islower (i), ISLOWER (i))
  3366. || toupper (i) != TOUPPER (i))
  3367. exit(2);
  3368. exit (0);
  3369. }
  3370. _ACEOF
  3371. rm -f conftest$ac_exeext
  3372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3373. (eval $ac_link) 2>&5
  3374. ac_status=$?
  3375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3378. (eval $ac_try) 2>&5
  3379. ac_status=$?
  3380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3381. (exit $ac_status); }; }; then
  3382. :
  3383. else
  3384. echo "$as_me: program exited with status $ac_status" >&5
  3385. echo "$as_me: failed program was:" >&5
  3386. sed 's/^/| /' conftest.$ac_ext >&5
  3387. ( exit $ac_status )
  3388. ac_cv_header_stdc=no
  3389. fi
  3390. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3391. fi
  3392. fi
  3393. fi
  3394. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3395. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3396. if test $ac_cv_header_stdc = yes; then
  3397. cat >>confdefs.h <<\_ACEOF
  3398. #define STDC_HEADERS 1
  3399. _ACEOF
  3400. fi
  3401. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3402. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3403. inttypes.h stdint.h unistd.h
  3404. do
  3405. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3406. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3407. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3408. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3409. echo $ECHO_N "(cached) $ECHO_C" >&6
  3410. else
  3411. cat >conftest.$ac_ext <<_ACEOF
  3412. /* confdefs.h. */
  3413. _ACEOF
  3414. cat confdefs.h >>conftest.$ac_ext
  3415. cat >>conftest.$ac_ext <<_ACEOF
  3416. /* end confdefs.h. */
  3417. $ac_includes_default
  3418. #include <$ac_header>
  3419. _ACEOF
  3420. rm -f conftest.$ac_objext
  3421. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3422. (eval $ac_compile) 2>conftest.er1
  3423. ac_status=$?
  3424. grep -v '^ *+' conftest.er1 >conftest.err
  3425. rm -f conftest.er1
  3426. cat conftest.err >&5
  3427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3428. (exit $ac_status); } &&
  3429. { ac_try='test -z "$ac_c_werror_flag"
  3430. || test ! -s conftest.err'
  3431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3432. (eval $ac_try) 2>&5
  3433. ac_status=$?
  3434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3435. (exit $ac_status); }; } &&
  3436. { ac_try='test -s conftest.$ac_objext'
  3437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3438. (eval $ac_try) 2>&5
  3439. ac_status=$?
  3440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3441. (exit $ac_status); }; }; then
  3442. eval "$as_ac_Header=yes"
  3443. else
  3444. echo "$as_me: failed program was:" >&5
  3445. sed 's/^/| /' conftest.$ac_ext >&5
  3446. eval "$as_ac_Header=no"
  3447. fi
  3448. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3449. fi
  3450. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3451. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3452. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3453. cat >>confdefs.h <<_ACEOF
  3454. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3455. _ACEOF
  3456. fi
  3457. done
  3458. for ac_header in libgen.h sys/timeb.h posix/time.h
  3459. do
  3460. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3461. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3462. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3463. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3464. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3465. echo $ECHO_N "(cached) $ECHO_C" >&6
  3466. fi
  3467. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3468. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3469. else
  3470. # Is the header compilable?
  3471. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3472. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3473. cat >conftest.$ac_ext <<_ACEOF
  3474. /* confdefs.h. */
  3475. _ACEOF
  3476. cat confdefs.h >>conftest.$ac_ext
  3477. cat >>conftest.$ac_ext <<_ACEOF
  3478. /* end confdefs.h. */
  3479. $ac_includes_default
  3480. #include <$ac_header>
  3481. _ACEOF
  3482. rm -f conftest.$ac_objext
  3483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3484. (eval $ac_compile) 2>conftest.er1
  3485. ac_status=$?
  3486. grep -v '^ *+' conftest.er1 >conftest.err
  3487. rm -f conftest.er1
  3488. cat conftest.err >&5
  3489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3490. (exit $ac_status); } &&
  3491. { ac_try='test -z "$ac_c_werror_flag"
  3492. || test ! -s conftest.err'
  3493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3494. (eval $ac_try) 2>&5
  3495. ac_status=$?
  3496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3497. (exit $ac_status); }; } &&
  3498. { ac_try='test -s conftest.$ac_objext'
  3499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3500. (eval $ac_try) 2>&5
  3501. ac_status=$?
  3502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3503. (exit $ac_status); }; }; then
  3504. ac_header_compiler=yes
  3505. else
  3506. echo "$as_me: failed program was:" >&5
  3507. sed 's/^/| /' conftest.$ac_ext >&5
  3508. ac_header_compiler=no
  3509. fi
  3510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3511. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3512. echo "${ECHO_T}$ac_header_compiler" >&6
  3513. # Is the header present?
  3514. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3515. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3516. cat >conftest.$ac_ext <<_ACEOF
  3517. /* confdefs.h. */
  3518. _ACEOF
  3519. cat confdefs.h >>conftest.$ac_ext
  3520. cat >>conftest.$ac_ext <<_ACEOF
  3521. /* end confdefs.h. */
  3522. #include <$ac_header>
  3523. _ACEOF
  3524. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3525. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3526. ac_status=$?
  3527. grep -v '^ *+' conftest.er1 >conftest.err
  3528. rm -f conftest.er1
  3529. cat conftest.err >&5
  3530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3531. (exit $ac_status); } >/dev/null; then
  3532. if test -s conftest.err; then
  3533. ac_cpp_err=$ac_c_preproc_warn_flag
  3534. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3535. else
  3536. ac_cpp_err=
  3537. fi
  3538. else
  3539. ac_cpp_err=yes
  3540. fi
  3541. if test -z "$ac_cpp_err"; then
  3542. ac_header_preproc=yes
  3543. else
  3544. echo "$as_me: failed program was:" >&5
  3545. sed 's/^/| /' conftest.$ac_ext >&5
  3546. ac_header_preproc=no
  3547. fi
  3548. rm -f conftest.err conftest.$ac_ext
  3549. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3550. echo "${ECHO_T}$ac_header_preproc" >&6
  3551. # So? What about this header?
  3552. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3553. yes:no: )
  3554. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3555. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3556. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3557. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3558. ac_header_preproc=yes
  3559. ;;
  3560. no:yes:* )
  3561. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3562. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3563. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3564. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3565. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3566. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3567. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3568. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3569. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3570. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3571. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3572. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3573. (
  3574. cat <<\_ASBOX
  3575. ## ------------------------------------------ ##
  3576. ## Report this to the AC_PACKAGE_NAME lists. ##
  3577. ## ------------------------------------------ ##
  3578. _ASBOX
  3579. ) |
  3580. sed "s/^/$as_me: WARNING: /" >&2
  3581. ;;
  3582. esac
  3583. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3584. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3585. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3586. echo $ECHO_N "(cached) $ECHO_C" >&6
  3587. else
  3588. eval "$as_ac_Header=\$ac_header_preproc"
  3589. fi
  3590. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3591. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3592. fi
  3593. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3594. cat >>confdefs.h <<_ACEOF
  3595. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3596. _ACEOF
  3597. fi
  3598. done
  3599. for ac_header in sys/select.h
  3600. do
  3601. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3602. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3603. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3604. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3605. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3606. echo $ECHO_N "(cached) $ECHO_C" >&6
  3607. fi
  3608. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3609. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3610. else
  3611. # Is the header compilable?
  3612. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3613. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3614. cat >conftest.$ac_ext <<_ACEOF
  3615. /* confdefs.h. */
  3616. _ACEOF
  3617. cat confdefs.h >>conftest.$ac_ext
  3618. cat >>conftest.$ac_ext <<_ACEOF
  3619. /* end confdefs.h. */
  3620. $ac_includes_default
  3621. #include <$ac_header>
  3622. _ACEOF
  3623. rm -f conftest.$ac_objext
  3624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3625. (eval $ac_compile) 2>conftest.er1
  3626. ac_status=$?
  3627. grep -v '^ *+' conftest.er1 >conftest.err
  3628. rm -f conftest.er1
  3629. cat conftest.err >&5
  3630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. (exit $ac_status); } &&
  3632. { ac_try='test -z "$ac_c_werror_flag"
  3633. || test ! -s conftest.err'
  3634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3635. (eval $ac_try) 2>&5
  3636. ac_status=$?
  3637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3638. (exit $ac_status); }; } &&
  3639. { ac_try='test -s conftest.$ac_objext'
  3640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3641. (eval $ac_try) 2>&5
  3642. ac_status=$?
  3643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3644. (exit $ac_status); }; }; then
  3645. ac_header_compiler=yes
  3646. else
  3647. echo "$as_me: failed program was:" >&5
  3648. sed 's/^/| /' conftest.$ac_ext >&5
  3649. ac_header_compiler=no
  3650. fi
  3651. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3652. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3653. echo "${ECHO_T}$ac_header_compiler" >&6
  3654. # Is the header present?
  3655. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3656. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3657. cat >conftest.$ac_ext <<_ACEOF
  3658. /* confdefs.h. */
  3659. _ACEOF
  3660. cat confdefs.h >>conftest.$ac_ext
  3661. cat >>conftest.$ac_ext <<_ACEOF
  3662. /* end confdefs.h. */
  3663. #include <$ac_header>
  3664. _ACEOF
  3665. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3666. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3667. ac_status=$?
  3668. grep -v '^ *+' conftest.er1 >conftest.err
  3669. rm -f conftest.er1
  3670. cat conftest.err >&5
  3671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3672. (exit $ac_status); } >/dev/null; then
  3673. if test -s conftest.err; then
  3674. ac_cpp_err=$ac_c_preproc_warn_flag
  3675. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3676. else
  3677. ac_cpp_err=
  3678. fi
  3679. else
  3680. ac_cpp_err=yes
  3681. fi
  3682. if test -z "$ac_cpp_err"; then
  3683. ac_header_preproc=yes
  3684. else
  3685. echo "$as_me: failed program was:" >&5
  3686. sed 's/^/| /' conftest.$ac_ext >&5
  3687. ac_header_preproc=no
  3688. fi
  3689. rm -f conftest.err conftest.$ac_ext
  3690. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3691. echo "${ECHO_T}$ac_header_preproc" >&6
  3692. # So? What about this header?
  3693. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3694. yes:no: )
  3695. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3696. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3697. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3698. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3699. ac_header_preproc=yes
  3700. ;;
  3701. no:yes:* )
  3702. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3703. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3704. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3705. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3706. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3707. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3708. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3709. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3710. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3711. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3712. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3713. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3714. (
  3715. cat <<\_ASBOX
  3716. ## ------------------------------------------ ##
  3717. ## Report this to the AC_PACKAGE_NAME lists. ##
  3718. ## ------------------------------------------ ##
  3719. _ASBOX
  3720. ) |
  3721. sed "s/^/$as_me: WARNING: /" >&2
  3722. ;;
  3723. esac
  3724. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3725. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3726. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3727. echo $ECHO_N "(cached) $ECHO_C" >&6
  3728. else
  3729. eval "$as_ac_Header=\$ac_header_preproc"
  3730. fi
  3731. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3732. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3733. fi
  3734. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3735. cat >>confdefs.h <<_ACEOF
  3736. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3737. _ACEOF
  3738. fi
  3739. done
  3740. for ac_header in sysexits.h
  3741. do
  3742. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3743. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3744. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3745. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3746. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3747. echo $ECHO_N "(cached) $ECHO_C" >&6
  3748. fi
  3749. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3750. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3751. else
  3752. # Is the header compilable?
  3753. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3754. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3755. cat >conftest.$ac_ext <<_ACEOF
  3756. /* confdefs.h. */
  3757. _ACEOF
  3758. cat confdefs.h >>conftest.$ac_ext
  3759. cat >>conftest.$ac_ext <<_ACEOF
  3760. /* end confdefs.h. */
  3761. $ac_includes_default
  3762. #include <$ac_header>
  3763. _ACEOF
  3764. rm -f conftest.$ac_objext
  3765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3766. (eval $ac_compile) 2>conftest.er1
  3767. ac_status=$?
  3768. grep -v '^ *+' conftest.er1 >conftest.err
  3769. rm -f conftest.er1
  3770. cat conftest.err >&5
  3771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3772. (exit $ac_status); } &&
  3773. { ac_try='test -z "$ac_c_werror_flag"
  3774. || test ! -s conftest.err'
  3775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3776. (eval $ac_try) 2>&5
  3777. ac_status=$?
  3778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3779. (exit $ac_status); }; } &&
  3780. { ac_try='test -s conftest.$ac_objext'
  3781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3782. (eval $ac_try) 2>&5
  3783. ac_status=$?
  3784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3785. (exit $ac_status); }; }; then
  3786. ac_header_compiler=yes
  3787. else
  3788. echo "$as_me: failed program was:" >&5
  3789. sed 's/^/| /' conftest.$ac_ext >&5
  3790. ac_header_compiler=no
  3791. fi
  3792. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3794. echo "${ECHO_T}$ac_header_compiler" >&6
  3795. # Is the header present?
  3796. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3797. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3798. cat >conftest.$ac_ext <<_ACEOF
  3799. /* confdefs.h. */
  3800. _ACEOF
  3801. cat confdefs.h >>conftest.$ac_ext
  3802. cat >>conftest.$ac_ext <<_ACEOF
  3803. /* end confdefs.h. */
  3804. #include <$ac_header>
  3805. _ACEOF
  3806. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3807. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3808. ac_status=$?
  3809. grep -v '^ *+' conftest.er1 >conftest.err
  3810. rm -f conftest.er1
  3811. cat conftest.err >&5
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); } >/dev/null; then
  3814. if test -s conftest.err; then
  3815. ac_cpp_err=$ac_c_preproc_warn_flag
  3816. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3817. else
  3818. ac_cpp_err=
  3819. fi
  3820. else
  3821. ac_cpp_err=yes
  3822. fi
  3823. if test -z "$ac_cpp_err"; then
  3824. ac_header_preproc=yes
  3825. else
  3826. echo "$as_me: failed program was:" >&5
  3827. sed 's/^/| /' conftest.$ac_ext >&5
  3828. ac_header_preproc=no
  3829. fi
  3830. rm -f conftest.err conftest.$ac_ext
  3831. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3832. echo "${ECHO_T}$ac_header_preproc" >&6
  3833. # So? What about this header?
  3834. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3835. yes:no: )
  3836. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3837. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3838. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3839. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3840. ac_header_preproc=yes
  3841. ;;
  3842. no:yes:* )
  3843. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3844. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3845. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3846. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3847. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3848. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3849. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3850. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3851. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3852. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3853. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3854. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3855. (
  3856. cat <<\_ASBOX
  3857. ## ------------------------------------------ ##
  3858. ## Report this to the AC_PACKAGE_NAME lists. ##
  3859. ## ------------------------------------------ ##
  3860. _ASBOX
  3861. ) |
  3862. sed "s/^/$as_me: WARNING: /" >&2
  3863. ;;
  3864. esac
  3865. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3866. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3867. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3868. echo $ECHO_N "(cached) $ECHO_C" >&6
  3869. else
  3870. eval "$as_ac_Header=\$ac_header_preproc"
  3871. fi
  3872. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3873. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3874. fi
  3875. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3876. cat >>confdefs.h <<_ACEOF
  3877. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3878. _ACEOF
  3879. fi
  3880. done
  3881. for ac_func in gettimeofday ftime nlist select setitimer sigaction
  3882. do
  3883. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3884. echo "$as_me:$LINENO: checking for $ac_func" >&5
  3885. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3886. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3887. echo $ECHO_N "(cached) $ECHO_C" >&6
  3888. else
  3889. cat >conftest.$ac_ext <<_ACEOF
  3890. /* confdefs.h. */
  3891. _ACEOF
  3892. cat confdefs.h >>conftest.$ac_ext
  3893. cat >>conftest.$ac_ext <<_ACEOF
  3894. /* end confdefs.h. */
  3895. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  3896. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3897. #define $ac_func innocuous_$ac_func
  3898. /* System header to define __stub macros and hopefully few prototypes,
  3899. which can conflict with char $ac_func (); below.
  3900. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3901. <limits.h> exists even on freestanding compilers. */
  3902. #ifdef __STDC__
  3903. # include <limits.h>
  3904. #else
  3905. # include <assert.h>
  3906. #endif
  3907. #undef $ac_func
  3908. /* Override any gcc2 internal prototype to avoid an error. */
  3909. #ifdef __cplusplus
  3910. extern "C"
  3911. {
  3912. #endif
  3913. /* We use char because int might match the return type of a gcc2
  3914. builtin and then its argument prototype would still apply. */
  3915. char $ac_func ();
  3916. /* The GNU C library defines this for functions which it implements
  3917. to always fail with ENOSYS. Some functions are actually named
  3918. something starting with __ and the normal name is an alias. */
  3919. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3920. choke me
  3921. #else
  3922. char (*f) () = $ac_func;
  3923. #endif
  3924. #ifdef __cplusplus
  3925. }
  3926. #endif
  3927. int
  3928. main ()
  3929. {
  3930. return f != $ac_func;
  3931. ;
  3932. return 0;
  3933. }
  3934. _ACEOF
  3935. rm -f conftest.$ac_objext conftest$ac_exeext
  3936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3937. (eval $ac_link) 2>conftest.er1
  3938. ac_status=$?
  3939. grep -v '^ *+' conftest.er1 >conftest.err
  3940. rm -f conftest.er1
  3941. cat conftest.err >&5
  3942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3943. (exit $ac_status); } &&
  3944. { ac_try='test -z "$ac_c_werror_flag"
  3945. || test ! -s conftest.err'
  3946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3947. (eval $ac_try) 2>&5
  3948. ac_status=$?
  3949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3950. (exit $ac_status); }; } &&
  3951. { ac_try='test -s conftest$ac_exeext'
  3952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3953. (eval $ac_try) 2>&5
  3954. ac_status=$?
  3955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3956. (exit $ac_status); }; }; then
  3957. eval "$as_ac_var=yes"
  3958. else
  3959. echo "$as_me: failed program was:" >&5
  3960. sed 's/^/| /' conftest.$ac_ext >&5
  3961. eval "$as_ac_var=no"
  3962. fi
  3963. rm -f conftest.err conftest.$ac_objext \
  3964. conftest$ac_exeext conftest.$ac_ext
  3965. fi
  3966. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  3967. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3968. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3969. cat >>confdefs.h <<_ACEOF
  3970. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3971. _ACEOF
  3972. fi
  3973. done
  3974. echo "$as_me:$LINENO: checking for dlopen" >&5
  3975. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  3976. if test "${ac_cv_func_dlopen+set}" = set; then
  3977. echo $ECHO_N "(cached) $ECHO_C" >&6
  3978. else
  3979. cat >conftest.$ac_ext <<_ACEOF
  3980. /* confdefs.h. */
  3981. _ACEOF
  3982. cat confdefs.h >>conftest.$ac_ext
  3983. cat >>conftest.$ac_ext <<_ACEOF
  3984. /* end confdefs.h. */
  3985. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  3986. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3987. #define dlopen innocuous_dlopen
  3988. /* System header to define __stub macros and hopefully few prototypes,
  3989. which can conflict with char dlopen (); below.
  3990. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3991. <limits.h> exists even on freestanding compilers. */
  3992. #ifdef __STDC__
  3993. # include <limits.h>
  3994. #else
  3995. # include <assert.h>
  3996. #endif
  3997. #undef dlopen
  3998. /* Override any gcc2 internal prototype to avoid an error. */
  3999. #ifdef __cplusplus
  4000. extern "C"
  4001. {
  4002. #endif
  4003. /* We use char because int might match the return type of a gcc2
  4004. builtin and then its argument prototype would still apply. */
  4005. char dlopen ();
  4006. /* The GNU C library defines this for functions which it implements
  4007. to always fail with ENOSYS. Some functions are actually named
  4008. something starting with __ and the normal name is an alias. */
  4009. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  4010. choke me
  4011. #else
  4012. char (*f) () = dlopen;
  4013. #endif
  4014. #ifdef __cplusplus
  4015. }
  4016. #endif
  4017. int
  4018. main ()
  4019. {
  4020. return f != dlopen;
  4021. ;
  4022. return 0;
  4023. }
  4024. _ACEOF
  4025. rm -f conftest.$ac_objext conftest$ac_exeext
  4026. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4027. (eval $ac_link) 2>conftest.er1
  4028. ac_status=$?
  4029. grep -v '^ *+' conftest.er1 >conftest.err
  4030. rm -f conftest.er1
  4031. cat conftest.err >&5
  4032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4033. (exit $ac_status); } &&
  4034. { ac_try='test -z "$ac_c_werror_flag"
  4035. || test ! -s conftest.err'
  4036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4037. (eval $ac_try) 2>&5
  4038. ac_status=$?
  4039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. (exit $ac_status); }; } &&
  4041. { ac_try='test -s conftest$ac_exeext'
  4042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4043. (eval $ac_try) 2>&5
  4044. ac_status=$?
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); }; }; then
  4047. ac_cv_func_dlopen=yes
  4048. else
  4049. echo "$as_me: failed program was:" >&5
  4050. sed 's/^/| /' conftest.$ac_ext >&5
  4051. ac_cv_func_dlopen=no
  4052. fi
  4053. rm -f conftest.err conftest.$ac_objext \
  4054. conftest$ac_exeext conftest.$ac_ext
  4055. fi
  4056. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  4057. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  4058. if test $ac_cv_func_dlopen = yes; then
  4059. cat >>confdefs.h <<\_ACEOF
  4060. #define HAVE_DLOPEN 1
  4061. _ACEOF
  4062. else
  4063. echo "$as_me:$LINENO: checking for nlist" >&5
  4064. echo $ECHO_N "checking for nlist... $ECHO_C" >&6
  4065. if test "${ac_cv_func_nlist+set}" = set; then
  4066. echo $ECHO_N "(cached) $ECHO_C" >&6
  4067. else
  4068. cat >conftest.$ac_ext <<_ACEOF
  4069. /* confdefs.h. */
  4070. _ACEOF
  4071. cat confdefs.h >>conftest.$ac_ext
  4072. cat >>conftest.$ac_ext <<_ACEOF
  4073. /* end confdefs.h. */
  4074. /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
  4075. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4076. #define nlist innocuous_nlist
  4077. /* System header to define __stub macros and hopefully few prototypes,
  4078. which can conflict with char nlist (); below.
  4079. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4080. <limits.h> exists even on freestanding compilers. */
  4081. #ifdef __STDC__
  4082. # include <limits.h>
  4083. #else
  4084. # include <assert.h>
  4085. #endif
  4086. #undef nlist
  4087. /* Override any gcc2 internal prototype to avoid an error. */
  4088. #ifdef __cplusplus
  4089. extern "C"
  4090. {
  4091. #endif
  4092. /* We use char because int might match the return type of a gcc2
  4093. builtin and then its argument prototype would still apply. */
  4094. char nlist ();
  4095. /* The GNU C library defines this for functions which it implements
  4096. to always fail with ENOSYS. Some functions are actually named
  4097. something starting with __ and the normal name is an alias. */
  4098. #if defined (__stub_nlist) || defined (__stub___nlist)
  4099. choke me
  4100. #else
  4101. char (*f) () = nlist;
  4102. #endif
  4103. #ifdef __cplusplus
  4104. }
  4105. #endif
  4106. int
  4107. main ()
  4108. {
  4109. return f != nlist;
  4110. ;
  4111. return 0;
  4112. }
  4113. _ACEOF
  4114. rm -f conftest.$ac_objext conftest$ac_exeext
  4115. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4116. (eval $ac_link) 2>conftest.er1
  4117. ac_status=$?
  4118. grep -v '^ *+' conftest.er1 >conftest.err
  4119. rm -f conftest.er1
  4120. cat conftest.err >&5
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); } &&
  4123. { ac_try='test -z "$ac_c_werror_flag"
  4124. || test ! -s conftest.err'
  4125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4126. (eval $ac_try) 2>&5
  4127. ac_status=$?
  4128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4129. (exit $ac_status); }; } &&
  4130. { ac_try='test -s conftest$ac_exeext'
  4131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4132. (eval $ac_try) 2>&5
  4133. ac_status=$?
  4134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4135. (exit $ac_status); }; }; then
  4136. ac_cv_func_nlist=yes
  4137. else
  4138. echo "$as_me: failed program was:" >&5
  4139. sed 's/^/| /' conftest.$ac_ext >&5
  4140. ac_cv_func_nlist=no
  4141. fi
  4142. rm -f conftest.err conftest.$ac_objext \
  4143. conftest$ac_exeext conftest.$ac_ext
  4144. fi
  4145. echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
  4146. echo "${ECHO_T}$ac_cv_func_nlist" >&6
  4147. if test $ac_cv_func_nlist = yes; then
  4148. case $LIBOBJS in
  4149. "c/fake/libdl1.$ac_objext" | \
  4150. *" c/fake/libdl1.$ac_objext" | \
  4151. "c/fake/libdl1.$ac_objext "* | \
  4152. *" c/fake/libdl1.$ac_objext "* ) ;;
  4153. *) LIBOBJS="$LIBOBJS c/fake/libdl1.$ac_objext" ;;
  4154. esac
  4155. else
  4156. case $LIBOBJS in
  4157. "c/fake/libdl2.$ac_objext" | \
  4158. *" c/fake/libdl2.$ac_objext" | \
  4159. "c/fake/libdl2.$ac_objext "* | \
  4160. *" c/fake/libdl2.$ac_objext "* ) ;;
  4161. *) LIBOBJS="$LIBOBJS c/fake/libdl2.$ac_objext" ;;
  4162. esac
  4163. fi
  4164. fi
  4165. for ac_func in socket chroot
  4166. do
  4167. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4168. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4169. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4170. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4171. echo $ECHO_N "(cached) $ECHO_C" >&6
  4172. else
  4173. cat >conftest.$ac_ext <<_ACEOF
  4174. /* confdefs.h. */
  4175. _ACEOF
  4176. cat confdefs.h >>conftest.$ac_ext
  4177. cat >>conftest.$ac_ext <<_ACEOF
  4178. /* end confdefs.h. */
  4179. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4180. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4181. #define $ac_func innocuous_$ac_func
  4182. /* System header to define __stub macros and hopefully few prototypes,
  4183. which can conflict with char $ac_func (); below.
  4184. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4185. <limits.h> exists even on freestanding compilers. */
  4186. #ifdef __STDC__
  4187. # include <limits.h>
  4188. #else
  4189. # include <assert.h>
  4190. #endif
  4191. #undef $ac_func
  4192. /* Override any gcc2 internal prototype to avoid an error. */
  4193. #ifdef __cplusplus
  4194. extern "C"
  4195. {
  4196. #endif
  4197. /* We use char because int might match the return type of a gcc2
  4198. builtin and then its argument prototype would still apply. */
  4199. char $ac_func ();
  4200. /* The GNU C library defines this for functions which it implements
  4201. to always fail with ENOSYS. Some functions are actually named
  4202. something starting with __ and the normal name is an alias. */
  4203. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4204. choke me
  4205. #else
  4206. char (*f) () = $ac_func;
  4207. #endif
  4208. #ifdef __cplusplus
  4209. }
  4210. #endif
  4211. int
  4212. main ()
  4213. {
  4214. return f != $ac_func;
  4215. ;
  4216. return 0;
  4217. }
  4218. _ACEOF
  4219. rm -f conftest.$ac_objext conftest$ac_exeext
  4220. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4221. (eval $ac_link) 2>conftest.er1
  4222. ac_status=$?
  4223. grep -v '^ *+' conftest.er1 >conftest.err
  4224. rm -f conftest.er1
  4225. cat conftest.err >&5
  4226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4227. (exit $ac_status); } &&
  4228. { ac_try='test -z "$ac_c_werror_flag"
  4229. || test ! -s conftest.err'
  4230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4231. (eval $ac_try) 2>&5
  4232. ac_status=$?
  4233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4234. (exit $ac_status); }; } &&
  4235. { ac_try='test -s conftest$ac_exeext'
  4236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4237. (eval $ac_try) 2>&5
  4238. ac_status=$?
  4239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4240. (exit $ac_status); }; }; then
  4241. eval "$as_ac_var=yes"
  4242. else
  4243. echo "$as_me: failed program was:" >&5
  4244. sed 's/^/| /' conftest.$ac_ext >&5
  4245. eval "$as_ac_var=no"
  4246. fi
  4247. rm -f conftest.err conftest.$ac_objext \
  4248. conftest$ac_exeext conftest.$ac_ext
  4249. fi
  4250. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4251. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4252. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4253. cat >>confdefs.h <<_ACEOF
  4254. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4255. _ACEOF
  4256. fi
  4257. done
  4258. echo "$as_me:$LINENO: checking for strerror" >&5
  4259. echo $ECHO_N "checking for strerror... $ECHO_C" >&6
  4260. if test "${ac_cv_func_strerror+set}" = set; then
  4261. echo $ECHO_N "(cached) $ECHO_C" >&6
  4262. else
  4263. cat >conftest.$ac_ext <<_ACEOF
  4264. /* confdefs.h. */
  4265. _ACEOF
  4266. cat confdefs.h >>conftest.$ac_ext
  4267. cat >>conftest.$ac_ext <<_ACEOF
  4268. /* end confdefs.h. */
  4269. /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
  4270. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4271. #define strerror innocuous_strerror
  4272. /* System header to define __stub macros and hopefully few prototypes,
  4273. which can conflict with char strerror (); below.
  4274. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4275. <limits.h> exists even on freestanding compilers. */
  4276. #ifdef __STDC__
  4277. # include <limits.h>
  4278. #else
  4279. # include <assert.h>
  4280. #endif
  4281. #undef strerror
  4282. /* Override any gcc2 internal prototype to avoid an error. */
  4283. #ifdef __cplusplus
  4284. extern "C"
  4285. {
  4286. #endif
  4287. /* We use char because int might match the return type of a gcc2
  4288. builtin and then its argument prototype would still apply. */
  4289. char strerror ();
  4290. /* The GNU C library defines this for functions which it implements
  4291. to always fail with ENOSYS. Some functions are actually named
  4292. something starting with __ and the normal name is an alias. */
  4293. #if defined (__stub_strerror) || defined (__stub___strerror)
  4294. choke me
  4295. #else
  4296. char (*f) () = strerror;
  4297. #endif
  4298. #ifdef __cplusplus
  4299. }
  4300. #endif
  4301. int
  4302. main ()
  4303. {
  4304. return f != strerror;
  4305. ;
  4306. return 0;
  4307. }
  4308. _ACEOF
  4309. rm -f conftest.$ac_objext conftest$ac_exeext
  4310. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4311. (eval $ac_link) 2>conftest.er1
  4312. ac_status=$?
  4313. grep -v '^ *+' conftest.er1 >conftest.err
  4314. rm -f conftest.er1
  4315. cat conftest.err >&5
  4316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4317. (exit $ac_status); } &&
  4318. { ac_try='test -z "$ac_c_werror_flag"
  4319. || test ! -s conftest.err'
  4320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4321. (eval $ac_try) 2>&5
  4322. ac_status=$?
  4323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4324. (exit $ac_status); }; } &&
  4325. { ac_try='test -s conftest$ac_exeext'
  4326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4327. (eval $ac_try) 2>&5
  4328. ac_status=$?
  4329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4330. (exit $ac_status); }; }; then
  4331. ac_cv_func_strerror=yes
  4332. else
  4333. echo "$as_me: failed program was:" >&5
  4334. sed 's/^/| /' conftest.$ac_ext >&5
  4335. ac_cv_func_strerror=no
  4336. fi
  4337. rm -f conftest.err conftest.$ac_objext \
  4338. conftest$ac_exeext conftest.$ac_ext
  4339. fi
  4340. echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
  4341. echo "${ECHO_T}$ac_cv_func_strerror" >&6
  4342. if test $ac_cv_func_strerror = yes; then
  4343. cat >>confdefs.h <<\_ACEOF
  4344. #define HAVE_STRERROR 1
  4345. _ACEOF
  4346. else
  4347. case $LIBOBJS in
  4348. "c/fake/strerror.o.$ac_objext" | \
  4349. *" c/fake/strerror.o.$ac_objext" | \
  4350. "c/fake/strerror.o.$ac_objext "* | \
  4351. *" c/fake/strerror.o.$ac_objext "* ) ;;
  4352. *) LIBOBJS="$LIBOBJS c/fake/strerror.o.$ac_objext" ;;
  4353. esac
  4354. fi
  4355. echo "$as_me:$LINENO: checking environ" >&5
  4356. echo $ECHO_N "checking environ... $ECHO_C" >&6
  4357. cat >conftest.$ac_ext <<_ACEOF
  4358. /* confdefs.h. */
  4359. _ACEOF
  4360. cat confdefs.h >>conftest.$ac_ext
  4361. cat >>conftest.$ac_ext <<_ACEOF
  4362. /* end confdefs.h. */
  4363. int
  4364. main ()
  4365. {
  4366. extern char **environ;
  4367. if (environ)
  4368. return 0;
  4369. else
  4370. return 1;
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. rm -f conftest.$ac_objext conftest$ac_exeext
  4376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4377. (eval $ac_link) 2>conftest.er1
  4378. ac_status=$?
  4379. grep -v '^ *+' conftest.er1 >conftest.err
  4380. rm -f conftest.er1
  4381. cat conftest.err >&5
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); } &&
  4384. { ac_try='test -z "$ac_c_werror_flag"
  4385. || test ! -s conftest.err'
  4386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4387. (eval $ac_try) 2>&5
  4388. ac_status=$?
  4389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4390. (exit $ac_status); }; } &&
  4391. { ac_try='test -s conftest$ac_exeext'
  4392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4393. (eval $ac_try) 2>&5
  4394. ac_status=$?
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); }; }; then
  4397. cat >>confdefs.h <<\_ACEOF
  4398. #define ENVIRON_NAME environ
  4399. _ACEOF
  4400. echo "$as_me:$LINENO: result: using environ" >&5
  4401. echo "${ECHO_T}using environ" >&6
  4402. else
  4403. echo "$as_me: failed program was:" >&5
  4404. sed 's/^/| /' conftest.$ac_ext >&5
  4405. cat >conftest.$ac_ext <<_ACEOF
  4406. /* confdefs.h. */
  4407. _ACEOF
  4408. cat confdefs.h >>conftest.$ac_ext
  4409. cat >>conftest.$ac_ext <<_ACEOF
  4410. /* end confdefs.h. */
  4411. int
  4412. main ()
  4413. {
  4414. extern char **__environ;
  4415. if (__environ)
  4416. return 0;
  4417. else
  4418. return 1;
  4419. ;
  4420. return 0;
  4421. }
  4422. _ACEOF
  4423. rm -f conftest.$ac_objext conftest$ac_exeext
  4424. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4425. (eval $ac_link) 2>conftest.er1
  4426. ac_status=$?
  4427. grep -v '^ *+' conftest.er1 >conftest.err
  4428. rm -f conftest.er1
  4429. cat conftest.err >&5
  4430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4431. (exit $ac_status); } &&
  4432. { ac_try='test -z "$ac_c_werror_flag"
  4433. || test ! -s conftest.err'
  4434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4435. (eval $ac_try) 2>&5
  4436. ac_status=$?
  4437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4438. (exit $ac_status); }; } &&
  4439. { ac_try='test -s conftest$ac_exeext'
  4440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4441. (eval $ac_try) 2>&5
  4442. ac_status=$?
  4443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4444. (exit $ac_status); }; }; then
  4445. cat >>confdefs.h <<\_ACEOF
  4446. #define ENVIRON_NAME __environ
  4447. _ACEOF
  4448. echo "$as_me:$LINENO: result: using __environ" >&5
  4449. echo "${ECHO_T}using __environ" >&6
  4450. else
  4451. echo "$as_me: failed program was:" >&5
  4452. sed 's/^/| /' conftest.$ac_ext >&5
  4453. { echo "$as_me:$LINENO: WARNING: no environ variable found" >&5
  4454. echo "$as_me: WARNING: no environ variable found" >&2;}
  4455. case $LIBOBJS in
  4456. "c/fake/environ.o.$ac_objext" | \
  4457. *" c/fake/environ.o.$ac_objext" | \
  4458. "c/fake/environ.o.$ac_objext "* | \
  4459. *" c/fake/environ.o.$ac_objext "* ) ;;
  4460. *) LIBOBJS="$LIBOBJS c/fake/environ.o.$ac_objext" ;;
  4461. esac
  4462. fi
  4463. rm -f conftest.err conftest.$ac_objext \
  4464. conftest$ac_exeext conftest.$ac_ext
  4465. fi
  4466. rm -f conftest.err conftest.$ac_objext \
  4467. conftest$ac_exeext conftest.$ac_ext
  4468. echo "$as_me:$LINENO: checking n_name" >&5
  4469. echo $ECHO_N "checking n_name... $ECHO_C" >&6
  4470. cat >conftest.$ac_ext <<_ACEOF
  4471. /* confdefs.h. */
  4472. _ACEOF
  4473. cat confdefs.h >>conftest.$ac_ext
  4474. cat >>conftest.$ac_ext <<_ACEOF
  4475. /* end confdefs.h. */
  4476. #include <nlist.h>
  4477. int
  4478. main ()
  4479. {
  4480. struct nlist name_list;
  4481. name_list.n_name = "foo";
  4482. ;
  4483. return 0;
  4484. }
  4485. _ACEOF
  4486. rm -f conftest.$ac_objext conftest$ac_exeext
  4487. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4488. (eval $ac_link) 2>conftest.er1
  4489. ac_status=$?
  4490. grep -v '^ *+' conftest.er1 >conftest.err
  4491. rm -f conftest.er1
  4492. cat conftest.err >&5
  4493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4494. (exit $ac_status); } &&
  4495. { ac_try='test -z "$ac_c_werror_flag"
  4496. || test ! -s conftest.err'
  4497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4498. (eval $ac_try) 2>&5
  4499. ac_status=$?
  4500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4501. (exit $ac_status); }; } &&
  4502. { ac_try='test -s conftest$ac_exeext'
  4503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4504. (eval $ac_try) 2>&5
  4505. ac_status=$?
  4506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4507. (exit $ac_status); }; }; then
  4508. cat >>confdefs.h <<\_ACEOF
  4509. #define NLIST_HAS_N_NAME 1
  4510. _ACEOF
  4511. echo "$as_me:$LINENO: result: yes" >&5
  4512. echo "${ECHO_T}yes" >&6
  4513. else
  4514. echo "$as_me: failed program was:" >&5
  4515. sed 's/^/| /' conftest.$ac_ext >&5
  4516. echo "$as_me:$LINENO: result: no" >&5
  4517. echo "${ECHO_T}no" >&6
  4518. fi
  4519. rm -f conftest.err conftest.$ac_objext \
  4520. conftest$ac_exeext conftest.$ac_ext
  4521. echo "$as_me:$LINENO: checking __NEXT__" >&5
  4522. echo $ECHO_N "checking __NEXT__... $ECHO_C" >&6
  4523. cat >conftest.$ac_ext <<_ACEOF
  4524. /* confdefs.h. */
  4525. _ACEOF
  4526. cat confdefs.h >>conftest.$ac_ext
  4527. cat >>conftest.$ac_ext <<_ACEOF
  4528. /* end confdefs.h. */
  4529. int
  4530. main ()
  4531. {
  4532. #ifdef __NeXT__
  4533. return 0;
  4534. #else
  4535. fail
  4536. #endif
  4537. ;
  4538. return 0;
  4539. }
  4540. _ACEOF
  4541. rm -f conftest.$ac_objext conftest$ac_exeext
  4542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4543. (eval $ac_link) 2>conftest.er1
  4544. ac_status=$?
  4545. grep -v '^ *+' conftest.er1 >conftest.err
  4546. rm -f conftest.er1
  4547. cat conftest.err >&5
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); } &&
  4550. { ac_try='test -z "$ac_c_werror_flag"
  4551. || test ! -s conftest.err'
  4552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4553. (eval $ac_try) 2>&5
  4554. ac_status=$?
  4555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4556. (exit $ac_status); }; } &&
  4557. { ac_try='test -s conftest$ac_exeext'
  4558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4559. (eval $ac_try) 2>&5
  4560. ac_status=$?
  4561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562. (exit $ac_status); }; }; then
  4563. CC="$CC -posix"
  4564. cat >>confdefs.h <<\_ACEOF
  4565. #define HAVE_SIGACTION 1
  4566. _ACEOF
  4567. echo "$as_me:$LINENO: result: yes" >&5
  4568. echo "${ECHO_T}yes" >&6
  4569. else
  4570. echo "$as_me: failed program was:" >&5
  4571. sed 's/^/| /' conftest.$ac_ext >&5
  4572. echo "$as_me:$LINENO: result: no" >&5
  4573. echo "${ECHO_T}no" >&6
  4574. fi
  4575. rm -f conftest.err conftest.$ac_objext \
  4576. conftest$ac_exeext conftest.$ac_ext
  4577. echo "$as_me:$LINENO: checking underscore before symbols" >&5
  4578. echo $ECHO_N "checking underscore before symbols... $ECHO_C" >&6
  4579. echo 'main() { return 0; } fnord() {}' >conftest.c
  4580. if ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c ${LIBS} &&
  4581. nm a.out | grep _fnord >/dev/null; then
  4582. echo "$as_me:$LINENO: result: yes" >&5
  4583. echo "${ECHO_T}yes" >&6
  4584. cat >>confdefs.h <<\_ACEOF
  4585. #define USCORE 1
  4586. _ACEOF
  4587. else
  4588. echo "$as_me:$LINENO: result: no" >&5
  4589. echo "${ECHO_T}no" >&6
  4590. fi
  4591. rm -f conftest.c a.out
  4592. echo "$as_me:$LINENO: checking link with -rdynamic" >&5
  4593. echo $ECHO_N "checking link with -rdynamic... $ECHO_C" >&6
  4594. cat >conftest.$ac_ext <<_ACEOF
  4595. /* confdefs.h. */
  4596. _ACEOF
  4597. cat confdefs.h >>conftest.$ac_ext
  4598. cat >>conftest.$ac_ext <<_ACEOF
  4599. /* end confdefs.h. */
  4600. int
  4601. main ()
  4602. {
  4603. #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
  4604. this must not compile
  4605. #endif
  4606. ;
  4607. return 0;
  4608. }
  4609. _ACEOF
  4610. rm -f conftest.$ac_objext
  4611. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4612. (eval $ac_compile) 2>conftest.er1
  4613. ac_status=$?
  4614. grep -v '^ *+' conftest.er1 >conftest.err
  4615. rm -f conftest.er1
  4616. cat conftest.err >&5
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); } &&
  4619. { ac_try='test -z "$ac_c_werror_flag"
  4620. || test ! -s conftest.err'
  4621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4622. (eval $ac_try) 2>&5
  4623. ac_status=$?
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); }; } &&
  4626. { ac_try='test -s conftest.$ac_objext'
  4627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4628. (eval $ac_try) 2>&5
  4629. ac_status=$?
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); }; }; then
  4632. echo "$as_me:$LINENO: result: no" >&5
  4633. echo "${ECHO_T}no" >&6
  4634. else
  4635. echo "$as_me: failed program was:" >&5
  4636. sed 's/^/| /' conftest.$ac_ext >&5
  4637. echo "$as_me:$LINENO: result: yes" >&5
  4638. echo "${ECHO_T}yes" >&6
  4639. LDFLAGS="$LDFLAGS -rdynamic"
  4640. fi
  4641. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4642. echo "$as_me:$LINENO: checking IEEE floating-point endianness" >&5
  4643. echo $ECHO_N "checking IEEE floating-point endianness... $ECHO_C" >&6
  4644. if test "$cross_compiling" = yes; then
  4645. ieee_endianness="least first"
  4646. else
  4647. cat >conftest.$ac_ext <<_ACEOF
  4648. /* confdefs.h. */
  4649. _ACEOF
  4650. cat confdefs.h >>conftest.$ac_ext
  4651. cat >>conftest.$ac_ext <<_ACEOF
  4652. /* end confdefs.h. */
  4653. #include <stdio.h>
  4654. typedef unsigned long word32_t;
  4655. typedef union { double d; word32_t word[2]; } double_overlay;
  4656. #define DOUBLE_WORD0(x) ((double_overlay*)&(x))->word[0]
  4657. #define DOUBLE_WORD1(x) ((double_overlay*)&(x))->word[1]
  4658. int
  4659. main(void)
  4660. {
  4661. double n = 0.3;
  4662. /* least significant byte first */
  4663. if ((DOUBLE_WORD0(n) == 0x33333333) && (DOUBLE_WORD1(n) == 0x3fd33333))
  4664. return 0;
  4665. /* most significant byte first */
  4666. else if ((DOUBLE_WORD1(n) == 0x33333333) && (DOUBLE_WORD0(n) == 0x3fd33333))
  4667. return 1;
  4668. else {
  4669. fprintf(stderr, "WARNING: unknown IEEE format; assuming IEEE with least significant byte first\n");
  4670. return 0;
  4671. }
  4672. }
  4673. _ACEOF
  4674. rm -f conftest$ac_exeext
  4675. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4676. (eval $ac_link) 2>&5
  4677. ac_status=$?
  4678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4679. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; }; then
  4685. ieee_endianness="least first"
  4686. else
  4687. echo "$as_me: program exited with status $ac_status" >&5
  4688. echo "$as_me: failed program was:" >&5
  4689. sed 's/^/| /' conftest.$ac_ext >&5
  4690. ( exit $ac_status )
  4691. ieee_endianness="most first"
  4692. fi
  4693. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4694. fi
  4695. echo "$as_me:$LINENO: result: $ieee_endianness" >&5
  4696. echo "${ECHO_T}$ieee_endianness" >&6
  4697. if test "$ieee_endianness" = "most first"; then
  4698. cat >>confdefs.h <<\_ACEOF
  4699. #define IEEE_MOST_FIRST 1
  4700. _ACEOF
  4701. fi
  4702. ac_config_files="$ac_config_files Makefile"
  4703. cat >confcache <<\_ACEOF
  4704. # This file is a shell script that caches the results of configure
  4705. # tests run on this system so they can be shared between configure
  4706. # scripts and configure runs, see configure's option --config-cache.
  4707. # It is not useful on other systems. If it contains results you don't
  4708. # want to keep, you may remove or edit it.
  4709. #
  4710. # config.status only pays attention to the cache file if you give it
  4711. # the --recheck option to rerun configure.
  4712. #
  4713. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4714. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4715. # following values.
  4716. _ACEOF
  4717. # The following way of writing the cache mishandles newlines in values,
  4718. # but we know of no workaround that is simple, portable, and efficient.
  4719. # So, don't put newlines in cache variables' values.
  4720. # Ultrix sh set writes to stderr and can't be redirected directly,
  4721. # and sets the high bit in the cache file unless we assign to the vars.
  4722. {
  4723. (set) 2>&1 |
  4724. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4725. *ac_space=\ *)
  4726. # `set' does not quote correctly, so add quotes (double-quote
  4727. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4728. sed -n \
  4729. "s/'/'\\\\''/g;
  4730. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4731. ;;
  4732. *)
  4733. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4734. sed -n \
  4735. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4736. ;;
  4737. esac;
  4738. } |
  4739. sed '
  4740. t clear
  4741. : clear
  4742. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4743. t end
  4744. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4745. : end' >>confcache
  4746. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4747. if test -w $cache_file; then
  4748. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4749. cat confcache >$cache_file
  4750. else
  4751. echo "not updating unwritable cache $cache_file"
  4752. fi
  4753. fi
  4754. rm -f confcache
  4755. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4756. # Let make expand exec_prefix.
  4757. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4758. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4759. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4760. # trailing colons and then remove the whole line if VPATH becomes empty
  4761. # (actually we leave an empty line to preserve line numbers).
  4762. if test "x$srcdir" = x.; then
  4763. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4764. s/:*\$(srcdir):*/:/;
  4765. s/:*\${srcdir}:*/:/;
  4766. s/:*@srcdir@:*/:/;
  4767. s/^\([^=]*=[ ]*\):*/\1/;
  4768. s/:*$//;
  4769. s/^[^=]*=[ ]*$//;
  4770. }'
  4771. fi
  4772. DEFS=-DHAVE_CONFIG_H
  4773. ac_libobjs=
  4774. ac_ltlibobjs=
  4775. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4776. # 1. Remove the extension, and $U if already installed.
  4777. ac_i=`echo "$ac_i" |
  4778. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  4779. # 2. Add them.
  4780. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  4781. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  4782. done
  4783. LIBOBJS=$ac_libobjs
  4784. LTLIBOBJS=$ac_ltlibobjs
  4785. : ${CONFIG_STATUS=./config.status}
  4786. ac_clean_files_save=$ac_clean_files
  4787. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4788. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4789. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4790. cat >$CONFIG_STATUS <<_ACEOF
  4791. #! $SHELL
  4792. # Generated by $as_me.
  4793. # Run this file to recreate the current configuration.
  4794. # Compiler output produced by configure, useful for debugging
  4795. # configure, is in config.log if it exists.
  4796. debug=false
  4797. ac_cs_recheck=false
  4798. ac_cs_silent=false
  4799. SHELL=\${CONFIG_SHELL-$SHELL}
  4800. _ACEOF
  4801. cat >>$CONFIG_STATUS <<\_ACEOF
  4802. ## --------------------- ##
  4803. ## M4sh Initialization. ##
  4804. ## --------------------- ##
  4805. # Be Bourne compatible
  4806. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4807. emulate sh
  4808. NULLCMD=:
  4809. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4810. # is contrary to our usage. Disable this feature.
  4811. alias -g '${1+"$@"}'='"$@"'
  4812. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4813. set -o posix
  4814. fi
  4815. DUALCASE=1; export DUALCASE # for MKS sh
  4816. # Support unset when possible.
  4817. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4818. as_unset=unset
  4819. else
  4820. as_unset=false
  4821. fi
  4822. # Work around bugs in pre-3.0 UWIN ksh.
  4823. $as_unset ENV MAIL MAILPATH
  4824. PS1='$ '
  4825. PS2='> '
  4826. PS4='+ '
  4827. # NLS nuisances.
  4828. for as_var in \
  4829. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4830. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4831. LC_TELEPHONE LC_TIME
  4832. do
  4833. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4834. eval $as_var=C; export $as_var
  4835. else
  4836. $as_unset $as_var
  4837. fi
  4838. done
  4839. # Required to use basename.
  4840. if expr a : '\(a\)' >/dev/null 2>&1; then
  4841. as_expr=expr
  4842. else
  4843. as_expr=false
  4844. fi
  4845. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  4846. as_basename=basename
  4847. else
  4848. as_basename=false
  4849. fi
  4850. # Name of the executable.
  4851. as_me=`$as_basename "$0" ||
  4852. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4853. X"$0" : 'X\(//\)$' \| \
  4854. X"$0" : 'X\(/\)$' \| \
  4855. . : '\(.\)' 2>/dev/null ||
  4856. echo X/"$0" |
  4857. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  4858. /^X\/\(\/\/\)$/{ s//\1/; q; }
  4859. /^X\/\(\/\).*/{ s//\1/; q; }
  4860. s/.*/./; q'`
  4861. # PATH needs CR, and LINENO needs CR and PATH.
  4862. # Avoid depending upon Character Ranges.
  4863. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4864. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4865. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4866. as_cr_digits='0123456789'
  4867. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4868. # The user is always right.
  4869. if test "${PATH_SEPARATOR+set}" != set; then
  4870. echo "#! /bin/sh" >conf$$.sh
  4871. echo "exit 0" >>conf$$.sh
  4872. chmod +x conf$$.sh
  4873. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4874. PATH_SEPARATOR=';'
  4875. else
  4876. PATH_SEPARATOR=:
  4877. fi
  4878. rm -f conf$$.sh
  4879. fi
  4880. as_lineno_1=$LINENO
  4881. as_lineno_2=$LINENO
  4882. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4883. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4884. test "x$as_lineno_3" = "x$as_lineno_2" || {
  4885. # Find who we are. Look in the path if we contain no path at all
  4886. # relative or not.
  4887. case $0 in
  4888. *[\\/]* ) as_myself=$0 ;;
  4889. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4895. done
  4896. ;;
  4897. esac
  4898. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4899. # in which case we are not to be found in the path.
  4900. if test "x$as_myself" = x; then
  4901. as_myself=$0
  4902. fi
  4903. if test ! -f "$as_myself"; then
  4904. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  4905. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  4906. { (exit 1); exit 1; }; }
  4907. fi
  4908. case $CONFIG_SHELL in
  4909. '')
  4910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4911. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4912. do
  4913. IFS=$as_save_IFS
  4914. test -z "$as_dir" && as_dir=.
  4915. for as_base in sh bash ksh sh5; do
  4916. case $as_dir in
  4917. /*)
  4918. if ("$as_dir/$as_base" -c '
  4919. as_lineno_1=$LINENO
  4920. as_lineno_2=$LINENO
  4921. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4922. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4923. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  4924. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  4925. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  4926. CONFIG_SHELL=$as_dir/$as_base
  4927. export CONFIG_SHELL
  4928. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  4929. fi;;
  4930. esac
  4931. done
  4932. done
  4933. ;;
  4934. esac
  4935. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4936. # uniformly replaced by the line number. The first 'sed' inserts a
  4937. # line-number line before each line; the second 'sed' does the real
  4938. # work. The second script uses 'N' to pair each line-number line
  4939. # with the numbered line, and appends trailing '-' during
  4940. # substitution so that $LINENO is not a special case at line end.
  4941. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4942. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  4943. sed '=' <$as_myself |
  4944. sed '
  4945. N
  4946. s,$,-,
  4947. : loop
  4948. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  4949. t loop
  4950. s,-$,,
  4951. s,^['$as_cr_digits']*\n,,
  4952. ' >$as_me.lineno &&
  4953. chmod +x $as_me.lineno ||
  4954. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  4955. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  4956. { (exit 1); exit 1; }; }
  4957. # Don't try to exec as it changes $[0], causing all sort of problems
  4958. # (the dirname of $[0] is not the place where we might find the
  4959. # original and so on. Autoconf is especially sensible to this).
  4960. . ./$as_me.lineno
  4961. # Exit status is that of the last command.
  4962. exit
  4963. }
  4964. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  4965. *c*,-n*) ECHO_N= ECHO_C='
  4966. ' ECHO_T=' ' ;;
  4967. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4968. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4969. esac
  4970. if expr a : '\(a\)' >/dev/null 2>&1; then
  4971. as_expr=expr
  4972. else
  4973. as_expr=false
  4974. fi
  4975. rm -f conf$$ conf$$.exe conf$$.file
  4976. echo >conf$$.file
  4977. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4978. # We could just check for DJGPP; but this test a) works b) is more generic
  4979. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4980. if test -f conf$$.exe; then
  4981. # Don't use ln at all; we don't have any links
  4982. as_ln_s='cp -p'
  4983. else
  4984. as_ln_s='ln -s'
  4985. fi
  4986. elif ln conf$$.file conf$$ 2>/dev/null; then
  4987. as_ln_s=ln
  4988. else
  4989. as_ln_s='cp -p'
  4990. fi
  4991. rm -f conf$$ conf$$.exe conf$$.file
  4992. if mkdir -p . 2>/dev/null; then
  4993. as_mkdir_p=:
  4994. else
  4995. test -d ./-p && rmdir ./-p
  4996. as_mkdir_p=false
  4997. fi
  4998. as_executable_p="test -f"
  4999. # Sed expression to map a string onto a valid CPP name.
  5000. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5001. # Sed expression to map a string onto a valid variable name.
  5002. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5003. # IFS
  5004. # We need space, tab and new line, in precisely that order.
  5005. as_nl='
  5006. '
  5007. IFS=" $as_nl"
  5008. # CDPATH.
  5009. $as_unset CDPATH
  5010. exec 6>&1
  5011. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  5012. # report actual input values of CONFIG_FILES etc. instead of their
  5013. # values after options handling. Logging --version etc. is OK.
  5014. exec 5>>config.log
  5015. {
  5016. echo
  5017. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5018. ## Running $as_me. ##
  5019. _ASBOX
  5020. } >&5
  5021. cat >&5 <<_CSEOF
  5022. This file was extended by $as_me, which was
  5023. generated by GNU Autoconf 2.59. Invocation command line was
  5024. CONFIG_FILES = $CONFIG_FILES
  5025. CONFIG_HEADERS = $CONFIG_HEADERS
  5026. CONFIG_LINKS = $CONFIG_LINKS
  5027. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5028. $ $0 $@
  5029. _CSEOF
  5030. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  5031. echo >&5
  5032. _ACEOF
  5033. # Files that config.status was made for.
  5034. if test -n "$ac_config_files"; then
  5035. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  5036. fi
  5037. if test -n "$ac_config_headers"; then
  5038. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  5039. fi
  5040. if test -n "$ac_config_links"; then
  5041. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  5042. fi
  5043. if test -n "$ac_config_commands"; then
  5044. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  5045. fi
  5046. cat >>$CONFIG_STATUS <<\_ACEOF
  5047. ac_cs_usage="\
  5048. \`$as_me' instantiates files from templates according to the
  5049. current configuration.
  5050. Usage: $0 [OPTIONS] [FILE]...
  5051. -h, --help print this help, then exit
  5052. -V, --version print version number, then exit
  5053. -q, --quiet do not print progress messages
  5054. -d, --debug don't remove temporary files
  5055. --recheck update $as_me by reconfiguring in the same conditions
  5056. --file=FILE[:TEMPLATE]
  5057. instantiate the configuration file FILE
  5058. --header=FILE[:TEMPLATE]
  5059. instantiate the configuration header FILE
  5060. Configuration files:
  5061. $config_files
  5062. Configuration headers:
  5063. $config_headers
  5064. Report bugs to <bug-autoconf@gnu.org>."
  5065. _ACEOF
  5066. cat >>$CONFIG_STATUS <<_ACEOF
  5067. ac_cs_version="\\
  5068. config.status
  5069. configured by $0, generated by GNU Autoconf 2.59,
  5070. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  5071. Copyright (C) 2003 Free Software Foundation, Inc.
  5072. This config.status script is free software; the Free Software Foundation
  5073. gives unlimited permission to copy, distribute and modify it."
  5074. srcdir=$srcdir
  5075. INSTALL="$INSTALL"
  5076. _ACEOF
  5077. cat >>$CONFIG_STATUS <<\_ACEOF
  5078. # If no file are specified by the user, then we need to provide default
  5079. # value. By we need to know if files were specified by the user.
  5080. ac_need_defaults=:
  5081. while test $# != 0
  5082. do
  5083. case $1 in
  5084. --*=*)
  5085. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  5086. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  5087. ac_shift=:
  5088. ;;
  5089. -*)
  5090. ac_option=$1
  5091. ac_optarg=$2
  5092. ac_shift=shift
  5093. ;;
  5094. *) # This is not an option, so the user has probably given explicit
  5095. # arguments.
  5096. ac_option=$1
  5097. ac_need_defaults=false;;
  5098. esac
  5099. case $ac_option in
  5100. # Handling of the options.
  5101. _ACEOF
  5102. cat >>$CONFIG_STATUS <<\_ACEOF
  5103. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5104. ac_cs_recheck=: ;;
  5105. --version | --vers* | -V )
  5106. echo "$ac_cs_version"; exit 0 ;;
  5107. --he | --h)
  5108. # Conflict between --help and --header
  5109. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  5110. Try \`$0 --help' for more information." >&5
  5111. echo "$as_me: error: ambiguous option: $1
  5112. Try \`$0 --help' for more information." >&2;}
  5113. { (exit 1); exit 1; }; };;
  5114. --help | --hel | -h )
  5115. echo "$ac_cs_usage"; exit 0 ;;
  5116. --debug | --d* | -d )
  5117. debug=: ;;
  5118. --file | --fil | --fi | --f )
  5119. $ac_shift
  5120. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5121. ac_need_defaults=false;;
  5122. --header | --heade | --head | --hea )
  5123. $ac_shift
  5124. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5125. ac_need_defaults=false;;
  5126. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5127. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5128. ac_cs_silent=: ;;
  5129. # This is an error.
  5130. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  5131. Try \`$0 --help' for more information." >&5
  5132. echo "$as_me: error: unrecognized option: $1
  5133. Try \`$0 --help' for more information." >&2;}
  5134. { (exit 1); exit 1; }; } ;;
  5135. *) ac_config_targets="$ac_config_targets $1" ;;
  5136. esac
  5137. shift
  5138. done
  5139. ac_configure_extra_args=
  5140. if $ac_cs_silent; then
  5141. exec 6>/dev/null
  5142. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5143. fi
  5144. _ACEOF
  5145. cat >>$CONFIG_STATUS <<_ACEOF
  5146. if \$ac_cs_recheck; then
  5147. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5148. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5149. fi
  5150. _ACEOF
  5151. cat >>$CONFIG_STATUS <<\_ACEOF
  5152. for ac_config_target in $ac_config_targets
  5153. do
  5154. case "$ac_config_target" in
  5155. # Handling of arguments.
  5156. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5157. "c/sysdep.h" ) CONFIG_HEADERS="$CONFIG_HEADERS c/sysdep.h" ;;
  5158. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5159. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5160. { (exit 1); exit 1; }; };;
  5161. esac
  5162. done
  5163. # If the user did not use the arguments to specify the items to instantiate,
  5164. # then the envvar interface is used. Set only those that are not.
  5165. # We use the long form for the default assignment because of an extremely
  5166. # bizarre bug on SunOS 4.1.3.
  5167. if $ac_need_defaults; then
  5168. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5169. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5170. fi
  5171. # Have a temporary directory for convenience. Make it in the build tree
  5172. # simply because there is no reason to put it here, and in addition,
  5173. # creating and moving files from /tmp can sometimes cause problems.
  5174. # Create a temporary directory, and hook for its removal unless debugging.
  5175. $debug ||
  5176. {
  5177. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5178. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5179. }
  5180. # Create a (secure) tmp directory for tmp files.
  5181. {
  5182. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  5183. test -n "$tmp" && test -d "$tmp"
  5184. } ||
  5185. {
  5186. tmp=./confstat$$-$RANDOM
  5187. (umask 077 && mkdir $tmp)
  5188. } ||
  5189. {
  5190. echo "$me: cannot create a temporary directory in ." >&2
  5191. { (exit 1); exit 1; }
  5192. }
  5193. _ACEOF
  5194. cat >>$CONFIG_STATUS <<_ACEOF
  5195. #
  5196. # CONFIG_FILES section.
  5197. #
  5198. # No need to generate the scripts if there are no CONFIG_FILES.
  5199. # This happens for instance when ./config.status config.h
  5200. if test -n "\$CONFIG_FILES"; then
  5201. # Protect against being on the right side of a sed subst in config.status.
  5202. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5203. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5204. s,@SHELL@,$SHELL,;t t
  5205. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5206. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5207. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5208. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5209. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5210. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5211. s,@exec_prefix@,$exec_prefix,;t t
  5212. s,@prefix@,$prefix,;t t
  5213. s,@program_transform_name@,$program_transform_name,;t t
  5214. s,@bindir@,$bindir,;t t
  5215. s,@sbindir@,$sbindir,;t t
  5216. s,@libexecdir@,$libexecdir,;t t
  5217. s,@datadir@,$datadir,;t t
  5218. s,@sysconfdir@,$sysconfdir,;t t
  5219. s,@sharedstatedir@,$sharedstatedir,;t t
  5220. s,@localstatedir@,$localstatedir,;t t
  5221. s,@libdir@,$libdir,;t t
  5222. s,@includedir@,$includedir,;t t
  5223. s,@oldincludedir@,$oldincludedir,;t t
  5224. s,@infodir@,$infodir,;t t
  5225. s,@mandir@,$mandir,;t t
  5226. s,@build_alias@,$build_alias,;t t
  5227. s,@host_alias@,$host_alias,;t t
  5228. s,@target_alias@,$target_alias,;t t
  5229. s,@DEFS@,$DEFS,;t t
  5230. s,@ECHO_C@,$ECHO_C,;t t
  5231. s,@ECHO_N@,$ECHO_N,;t t
  5232. s,@ECHO_T@,$ECHO_T,;t t
  5233. s,@LIBS@,$LIBS,;t t
  5234. s,@CC@,$CC,;t t
  5235. s,@CFLAGS@,$CFLAGS,;t t
  5236. s,@LDFLAGS@,$LDFLAGS,;t t
  5237. s,@CPPFLAGS@,$CPPFLAGS,;t t
  5238. s,@ac_ct_CC@,$ac_ct_CC,;t t
  5239. s,@EXEEXT@,$EXEEXT,;t t
  5240. s,@OBJEXT@,$OBJEXT,;t t
  5241. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  5242. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  5243. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  5244. s,@CPP@,$CPP,;t t
  5245. s,@EGREP@,$EGREP,;t t
  5246. s,@LIBOBJS@,$LIBOBJS,;t t
  5247. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  5248. CEOF
  5249. _ACEOF
  5250. cat >>$CONFIG_STATUS <<\_ACEOF
  5251. # Split the substitutions into bite-sized pieces for seds with
  5252. # small command number limits, like on Digital OSF/1 and HP-UX.
  5253. ac_max_sed_lines=48
  5254. ac_sed_frag=1 # Number of current file.
  5255. ac_beg=1 # First line for current file.
  5256. ac_end=$ac_max_sed_lines # Line after last line for current file.
  5257. ac_more_lines=:
  5258. ac_sed_cmds=
  5259. while $ac_more_lines; do
  5260. if test $ac_beg -gt 1; then
  5261. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5262. else
  5263. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5264. fi
  5265. if test ! -s $tmp/subs.frag; then
  5266. ac_more_lines=false
  5267. else
  5268. # The purpose of the label and of the branching condition is to
  5269. # speed up the sed processing (if there are no `@' at all, there
  5270. # is no need to browse any of the substitutions).
  5271. # These are the two extra sed commands mentioned above.
  5272. (echo ':t
  5273. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  5274. if test -z "$ac_sed_cmds"; then
  5275. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  5276. else
  5277. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5278. fi
  5279. ac_sed_frag=`expr $ac_sed_frag + 1`
  5280. ac_beg=$ac_end
  5281. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5282. fi
  5283. done
  5284. if test -z "$ac_sed_cmds"; then
  5285. ac_sed_cmds=cat
  5286. fi
  5287. fi # test -n "$CONFIG_FILES"
  5288. _ACEOF
  5289. cat >>$CONFIG_STATUS <<\_ACEOF
  5290. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5291. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5292. case $ac_file in
  5293. - | *:- | *:-:* ) # input from stdin
  5294. cat >$tmp/stdin
  5295. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5296. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5297. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5298. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5299. * ) ac_file_in=$ac_file.in ;;
  5300. esac
  5301. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5302. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5303. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5304. X"$ac_file" : 'X\(//\)[^/]' \| \
  5305. X"$ac_file" : 'X\(//\)$' \| \
  5306. X"$ac_file" : 'X\(/\)' \| \
  5307. . : '\(.\)' 2>/dev/null ||
  5308. echo X"$ac_file" |
  5309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5310. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5311. /^X\(\/\/\)$/{ s//\1/; q; }
  5312. /^X\(\/\).*/{ s//\1/; q; }
  5313. s/.*/./; q'`
  5314. { if $as_mkdir_p; then
  5315. mkdir -p "$ac_dir"
  5316. else
  5317. as_dir="$ac_dir"
  5318. as_dirs=
  5319. while test ! -d "$as_dir"; do
  5320. as_dirs="$as_dir $as_dirs"
  5321. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5323. X"$as_dir" : 'X\(//\)[^/]' \| \
  5324. X"$as_dir" : 'X\(//\)$' \| \
  5325. X"$as_dir" : 'X\(/\)' \| \
  5326. . : '\(.\)' 2>/dev/null ||
  5327. echo X"$as_dir" |
  5328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5329. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5330. /^X\(\/\/\)$/{ s//\1/; q; }
  5331. /^X\(\/\).*/{ s//\1/; q; }
  5332. s/.*/./; q'`
  5333. done
  5334. test ! -n "$as_dirs" || mkdir $as_dirs
  5335. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5336. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5337. { (exit 1); exit 1; }; }; }
  5338. ac_builddir=.
  5339. if test "$ac_dir" != .; then
  5340. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5341. # A "../" for each directory in $ac_dir_suffix.
  5342. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5343. else
  5344. ac_dir_suffix= ac_top_builddir=
  5345. fi
  5346. case $srcdir in
  5347. .) # No --srcdir option. We are building in place.
  5348. ac_srcdir=.
  5349. if test -z "$ac_top_builddir"; then
  5350. ac_top_srcdir=.
  5351. else
  5352. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5353. fi ;;
  5354. [\\/]* | ?:[\\/]* ) # Absolute path.
  5355. ac_srcdir=$srcdir$ac_dir_suffix;
  5356. ac_top_srcdir=$srcdir ;;
  5357. *) # Relative path.
  5358. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5359. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5360. esac
  5361. # Do not use `cd foo && pwd` to compute absolute paths, because
  5362. # the directories may not exist.
  5363. case `pwd` in
  5364. .) ac_abs_builddir="$ac_dir";;
  5365. *)
  5366. case "$ac_dir" in
  5367. .) ac_abs_builddir=`pwd`;;
  5368. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  5369. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  5370. esac;;
  5371. esac
  5372. case $ac_abs_builddir in
  5373. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  5374. *)
  5375. case ${ac_top_builddir}. in
  5376. .) ac_abs_top_builddir=$ac_abs_builddir;;
  5377. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  5378. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  5379. esac;;
  5380. esac
  5381. case $ac_abs_builddir in
  5382. .) ac_abs_srcdir=$ac_srcdir;;
  5383. *)
  5384. case $ac_srcdir in
  5385. .) ac_abs_srcdir=$ac_abs_builddir;;
  5386. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  5387. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  5388. esac;;
  5389. esac
  5390. case $ac_abs_builddir in
  5391. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  5392. *)
  5393. case $ac_top_srcdir in
  5394. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  5395. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  5396. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  5397. esac;;
  5398. esac
  5399. case $INSTALL in
  5400. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5401. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  5402. esac
  5403. if test x"$ac_file" != x-; then
  5404. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5405. echo "$as_me: creating $ac_file" >&6;}
  5406. rm -f "$ac_file"
  5407. fi
  5408. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5409. # use $as_me), people would be surprised to read:
  5410. # /* config.h. Generated by config.status. */
  5411. if test x"$ac_file" = x-; then
  5412. configure_input=
  5413. else
  5414. configure_input="$ac_file. "
  5415. fi
  5416. configure_input=$configure_input"Generated from `echo $ac_file_in |
  5417. sed 's,.*/,,'` by configure."
  5418. # First look for the input files in the build tree, otherwise in the
  5419. # src tree.
  5420. ac_file_inputs=`IFS=:
  5421. for f in $ac_file_in; do
  5422. case $f in
  5423. -) echo $tmp/stdin ;;
  5424. [\\/$]*)
  5425. # Absolute (can't be DOS-style, as IFS=:)
  5426. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5427. echo "$as_me: error: cannot find input file: $f" >&2;}
  5428. { (exit 1); exit 1; }; }
  5429. echo "$f";;
  5430. *) # Relative
  5431. if test -f "$f"; then
  5432. # Build tree
  5433. echo "$f"
  5434. elif test -f "$srcdir/$f"; then
  5435. # Source tree
  5436. echo "$srcdir/$f"
  5437. else
  5438. # /dev/null tree
  5439. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5440. echo "$as_me: error: cannot find input file: $f" >&2;}
  5441. { (exit 1); exit 1; }; }
  5442. fi;;
  5443. esac
  5444. done` || { (exit 1); exit 1; }
  5445. _ACEOF
  5446. cat >>$CONFIG_STATUS <<_ACEOF
  5447. sed "$ac_vpsub
  5448. $extrasub
  5449. _ACEOF
  5450. cat >>$CONFIG_STATUS <<\_ACEOF
  5451. :t
  5452. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5453. s,@configure_input@,$configure_input,;t t
  5454. s,@srcdir@,$ac_srcdir,;t t
  5455. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  5456. s,@top_srcdir@,$ac_top_srcdir,;t t
  5457. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  5458. s,@builddir@,$ac_builddir,;t t
  5459. s,@abs_builddir@,$ac_abs_builddir,;t t
  5460. s,@top_builddir@,$ac_top_builddir,;t t
  5461. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  5462. s,@INSTALL@,$ac_INSTALL,;t t
  5463. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5464. rm -f $tmp/stdin
  5465. if test x"$ac_file" != x-; then
  5466. mv $tmp/out $ac_file
  5467. else
  5468. cat $tmp/out
  5469. rm -f $tmp/out
  5470. fi
  5471. done
  5472. _ACEOF
  5473. cat >>$CONFIG_STATUS <<\_ACEOF
  5474. #
  5475. # CONFIG_HEADER section.
  5476. #
  5477. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5478. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5479. #
  5480. # ac_d sets the value in "#define NAME VALUE" lines.
  5481. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  5482. ac_dB='[ ].*$,\1#\2'
  5483. ac_dC=' '
  5484. ac_dD=',;t'
  5485. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5486. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  5487. ac_uB='$,\1#\2define\3'
  5488. ac_uC=' '
  5489. ac_uD=',;t'
  5490. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  5491. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5492. case $ac_file in
  5493. - | *:- | *:-:* ) # input from stdin
  5494. cat >$tmp/stdin
  5495. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5496. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5497. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5498. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5499. * ) ac_file_in=$ac_file.in ;;
  5500. esac
  5501. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  5502. echo "$as_me: creating $ac_file" >&6;}
  5503. # First look for the input files in the build tree, otherwise in the
  5504. # src tree.
  5505. ac_file_inputs=`IFS=:
  5506. for f in $ac_file_in; do
  5507. case $f in
  5508. -) echo $tmp/stdin ;;
  5509. [\\/$]*)
  5510. # Absolute (can't be DOS-style, as IFS=:)
  5511. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5512. echo "$as_me: error: cannot find input file: $f" >&2;}
  5513. { (exit 1); exit 1; }; }
  5514. # Do quote $f, to prevent DOS paths from being IFS'd.
  5515. echo "$f";;
  5516. *) # Relative
  5517. if test -f "$f"; then
  5518. # Build tree
  5519. echo "$f"
  5520. elif test -f "$srcdir/$f"; then
  5521. # Source tree
  5522. echo "$srcdir/$f"
  5523. else
  5524. # /dev/null tree
  5525. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5526. echo "$as_me: error: cannot find input file: $f" >&2;}
  5527. { (exit 1); exit 1; }; }
  5528. fi;;
  5529. esac
  5530. done` || { (exit 1); exit 1; }
  5531. # Remove the trailing spaces.
  5532. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  5533. _ACEOF
  5534. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  5535. # `conftest.undefs', that substitutes the proper values into
  5536. # config.h.in to produce config.h. The first handles `#define'
  5537. # templates, and the second `#undef' templates.
  5538. # And first: Protect against being on the right side of a sed subst in
  5539. # config.status. Protect against being in an unquoted here document
  5540. # in config.status.
  5541. rm -f conftest.defines conftest.undefs
  5542. # Using a here document instead of a string reduces the quoting nightmare.
  5543. # Putting comments in sed scripts is not portable.
  5544. #
  5545. # `end' is used to avoid that the second main sed command (meant for
  5546. # 0-ary CPP macros) applies to n-ary macro definitions.
  5547. # See the Autoconf documentation for `clear'.
  5548. cat >confdef2sed.sed <<\_ACEOF
  5549. s/[\\&,]/\\&/g
  5550. s,[\\$`],\\&,g
  5551. t clear
  5552. : clear
  5553. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  5554. t end
  5555. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  5556. : end
  5557. _ACEOF
  5558. # If some macros were called several times there might be several times
  5559. # the same #defines, which is useless. Nevertheless, we may not want to
  5560. # sort them, since we want the *last* AC-DEFINE to be honored.
  5561. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  5562. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  5563. rm -f confdef2sed.sed
  5564. # This sed command replaces #undef with comments. This is necessary, for
  5565. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5566. # on some systems where configure will not decide to define it.
  5567. cat >>conftest.undefs <<\_ACEOF
  5568. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  5569. _ACEOF
  5570. # Break up conftest.defines because some shells have a limit on the size
  5571. # of here documents, and old seds have small limits too (100 cmds).
  5572. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  5573. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  5574. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  5575. echo ' :' >>$CONFIG_STATUS
  5576. rm -f conftest.tail
  5577. while grep . conftest.defines >/dev/null
  5578. do
  5579. # Write a limited-size here document to $tmp/defines.sed.
  5580. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  5581. # Speed up: don't consider the non `#define' lines.
  5582. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  5583. # Work around the forget-to-reset-the-flag bug.
  5584. echo 't clr' >>$CONFIG_STATUS
  5585. echo ': clr' >>$CONFIG_STATUS
  5586. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  5587. echo 'CEOF
  5588. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  5589. rm -f $tmp/in
  5590. mv $tmp/out $tmp/in
  5591. ' >>$CONFIG_STATUS
  5592. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  5593. rm -f conftest.defines
  5594. mv conftest.tail conftest.defines
  5595. done
  5596. rm -f conftest.defines
  5597. echo ' fi # grep' >>$CONFIG_STATUS
  5598. echo >>$CONFIG_STATUS
  5599. # Break up conftest.undefs because some shells have a limit on the size
  5600. # of here documents, and old seds have small limits too (100 cmds).
  5601. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  5602. rm -f conftest.tail
  5603. while grep . conftest.undefs >/dev/null
  5604. do
  5605. # Write a limited-size here document to $tmp/undefs.sed.
  5606. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  5607. # Speed up: don't consider the non `#undef'
  5608. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  5609. # Work around the forget-to-reset-the-flag bug.
  5610. echo 't clr' >>$CONFIG_STATUS
  5611. echo ': clr' >>$CONFIG_STATUS
  5612. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  5613. echo 'CEOF
  5614. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  5615. rm -f $tmp/in
  5616. mv $tmp/out $tmp/in
  5617. ' >>$CONFIG_STATUS
  5618. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  5619. rm -f conftest.undefs
  5620. mv conftest.tail conftest.undefs
  5621. done
  5622. rm -f conftest.undefs
  5623. cat >>$CONFIG_STATUS <<\_ACEOF
  5624. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5625. # use $as_me), people would be surprised to read:
  5626. # /* config.h. Generated by config.status. */
  5627. if test x"$ac_file" = x-; then
  5628. echo "/* Generated by configure. */" >$tmp/config.h
  5629. else
  5630. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  5631. fi
  5632. cat $tmp/in >>$tmp/config.h
  5633. rm -f $tmp/in
  5634. if test x"$ac_file" != x-; then
  5635. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  5636. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  5637. echo "$as_me: $ac_file is unchanged" >&6;}
  5638. else
  5639. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5640. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5641. X"$ac_file" : 'X\(//\)[^/]' \| \
  5642. X"$ac_file" : 'X\(//\)$' \| \
  5643. X"$ac_file" : 'X\(/\)' \| \
  5644. . : '\(.\)' 2>/dev/null ||
  5645. echo X"$ac_file" |
  5646. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5647. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5648. /^X\(\/\/\)$/{ s//\1/; q; }
  5649. /^X\(\/\).*/{ s//\1/; q; }
  5650. s/.*/./; q'`
  5651. { if $as_mkdir_p; then
  5652. mkdir -p "$ac_dir"
  5653. else
  5654. as_dir="$ac_dir"
  5655. as_dirs=
  5656. while test ! -d "$as_dir"; do
  5657. as_dirs="$as_dir $as_dirs"
  5658. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5659. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5660. X"$as_dir" : 'X\(//\)[^/]' \| \
  5661. X"$as_dir" : 'X\(//\)$' \| \
  5662. X"$as_dir" : 'X\(/\)' \| \
  5663. . : '\(.\)' 2>/dev/null ||
  5664. echo X"$as_dir" |
  5665. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5666. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5667. /^X\(\/\/\)$/{ s//\1/; q; }
  5668. /^X\(\/\).*/{ s//\1/; q; }
  5669. s/.*/./; q'`
  5670. done
  5671. test ! -n "$as_dirs" || mkdir $as_dirs
  5672. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5673. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5674. { (exit 1); exit 1; }; }; }
  5675. rm -f $ac_file
  5676. mv $tmp/config.h $ac_file
  5677. fi
  5678. else
  5679. cat $tmp/config.h
  5680. rm -f $tmp/config.h
  5681. fi
  5682. done
  5683. _ACEOF
  5684. cat >>$CONFIG_STATUS <<\_ACEOF
  5685. { (exit 0); exit 0; }
  5686. _ACEOF
  5687. chmod +x $CONFIG_STATUS
  5688. ac_clean_files=$ac_clean_files_save
  5689. # configure is writing to config.log, and then calls config.status.
  5690. # config.status does its own redirection, appending to config.log.
  5691. # Unfortunately, on DOS this fails, as config.log is still kept open
  5692. # by configure, so config.status won't be able to write to it; its
  5693. # output is simply discarded. So we exec the FD to /dev/null,
  5694. # effectively closing config.log, so it can be properly (re)opened and
  5695. # appended to by config.status. When coming back to configure, we
  5696. # need to make the FD available again.
  5697. if test "$no_create" != yes; then
  5698. ac_cs_success=:
  5699. ac_config_status_args=
  5700. test "$silent" = yes &&
  5701. ac_config_status_args="$ac_config_status_args --quiet"
  5702. exec 5>/dev/null
  5703. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5704. exec 5>>config.log
  5705. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5706. # would make configure fail if this is the last instruction.
  5707. $ac_cs_success || { (exit 1); exit 1; }
  5708. fi