configure 308 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. exec 7<&0 </dev/null 6>&1
  496. # Name of the host.
  497. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  498. # so uname gets run too.
  499. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  500. #
  501. # Initializations.
  502. #
  503. ac_default_prefix=/usr/local
  504. ac_clean_files=
  505. ac_config_libobj_dir=.
  506. LIBOBJS=
  507. cross_compiling=no
  508. subdirs=
  509. MFLAGS=
  510. MAKEFLAGS=
  511. SHELL=${CONFIG_SHELL-/bin/sh}
  512. # Identity of this package.
  513. PACKAGE_NAME=
  514. PACKAGE_TARNAME=
  515. PACKAGE_VERSION=
  516. PACKAGE_STRING=
  517. PACKAGE_BUGREPORT=
  518. ac_unique_file="src"
  519. # Factoring default headers for most tests.
  520. ac_includes_default="\
  521. #include <stdio.h>
  522. #ifdef HAVE_SYS_TYPES_H
  523. # include <sys/types.h>
  524. #endif
  525. #ifdef HAVE_SYS_STAT_H
  526. # include <sys/stat.h>
  527. #endif
  528. #ifdef STDC_HEADERS
  529. # include <stdlib.h>
  530. # include <stddef.h>
  531. #else
  532. # ifdef HAVE_STDLIB_H
  533. # include <stdlib.h>
  534. # endif
  535. #endif
  536. #ifdef HAVE_STRING_H
  537. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  538. # include <memory.h>
  539. # endif
  540. # include <string.h>
  541. #endif
  542. #ifdef HAVE_STRINGS_H
  543. # include <strings.h>
  544. #endif
  545. #ifdef HAVE_INTTYPES_H
  546. # include <inttypes.h>
  547. #endif
  548. #ifdef HAVE_STDINT_H
  549. # include <stdint.h>
  550. #endif
  551. #ifdef HAVE_UNISTD_H
  552. # include <unistd.h>
  553. #endif"
  554. ac_subst_vars='am__EXEEXT_FALSE
  555. am__EXEEXT_TRUE
  556. LTLIBOBJS
  557. LIBOBJS
  558. ALLOCA
  559. thread_CFLAGS
  560. RANLIB
  561. threadlib
  562. specbuild
  563. def_id
  564. cachedir
  565. distribution
  566. packagerelease
  567. fullversion
  568. EGREP
  569. GREP
  570. CPP
  571. am__fastdepCC_FALSE
  572. am__fastdepCC_TRUE
  573. CCDEPMODE
  574. AMDEPBACKSLASH
  575. AMDEP_FALSE
  576. AMDEP_TRUE
  577. am__quote
  578. am__include
  579. DEPDIR
  580. OBJEXT
  581. EXEEXT
  582. ac_ct_CC
  583. CPPFLAGS
  584. LDFLAGS
  585. CFLAGS
  586. CC
  587. am__untar
  588. am__tar
  589. AMTAR
  590. am__leading_dot
  591. SET_MAKE
  592. AWK
  593. mkdir_p
  594. MKDIR_P
  595. INSTALL_STRIP_PROGRAM
  596. STRIP
  597. install_sh
  598. MAKEINFO
  599. AUTOHEADER
  600. AUTOMAKE
  601. AUTOCONF
  602. ACLOCAL
  603. VERSION
  604. PACKAGE
  605. CYGPATH_W
  606. am__isrc
  607. INSTALL_DATA
  608. INSTALL_SCRIPT
  609. INSTALL_PROGRAM
  610. target_alias
  611. host_alias
  612. build_alias
  613. LIBS
  614. ECHO_T
  615. ECHO_N
  616. ECHO_C
  617. DEFS
  618. mandir
  619. localedir
  620. libdir
  621. psdir
  622. pdfdir
  623. dvidir
  624. htmldir
  625. infodir
  626. docdir
  627. oldincludedir
  628. includedir
  629. localstatedir
  630. sharedstatedir
  631. sysconfdir
  632. datadir
  633. datarootdir
  634. libexecdir
  635. sbindir
  636. bindir
  637. program_transform_name
  638. prefix
  639. exec_prefix
  640. PACKAGE_BUGREPORT
  641. PACKAGE_STRING
  642. PACKAGE_VERSION
  643. PACKAGE_TARNAME
  644. PACKAGE_NAME
  645. PATH_SEPARATOR
  646. SHELL'
  647. ac_subst_files=''
  648. ac_user_opts='
  649. enable_option_checking
  650. enable_dependency_tracking
  651. with_distribution
  652. with_target
  653. with_cachedir
  654. enable_isdn
  655. enable_ipv4
  656. enable_ipv6
  657. enable_ipv4_startup
  658. enable_ipv6_startup
  659. enable_udp_queries
  660. enable_tcp_queries
  661. with_query_method
  662. enable_tcp_server
  663. enable_src_addr_disc
  664. enable_socket_locking
  665. enable_poll
  666. enable_new_rrs
  667. enable_strict_rfc2181
  668. with_random_device
  669. enable_underscores
  670. with_default_id
  671. with_debug
  672. with_verbosity
  673. with_hash_buckets
  674. enable_hash_debug
  675. enable_rcsids
  676. with_tcp_qtimeout
  677. enable_tcp_subseq
  678. with_par_queries
  679. with_max_nameserver_ips
  680. enable_specbuild
  681. with_thread_lib
  682. '
  683. ac_precious_vars='build_alias
  684. host_alias
  685. target_alias
  686. CC
  687. CFLAGS
  688. LDFLAGS
  689. LIBS
  690. CPPFLAGS
  691. CPP'
  692. # Initialize some variables set by options.
  693. ac_init_help=
  694. ac_init_version=false
  695. ac_unrecognized_opts=
  696. ac_unrecognized_sep=
  697. # The variables have the same names as the options, with
  698. # dashes changed to underlines.
  699. cache_file=/dev/null
  700. exec_prefix=NONE
  701. no_create=
  702. no_recursion=
  703. prefix=NONE
  704. program_prefix=NONE
  705. program_suffix=NONE
  706. program_transform_name=s,x,x,
  707. silent=
  708. site=
  709. srcdir=
  710. verbose=
  711. x_includes=NONE
  712. x_libraries=NONE
  713. # Installation directory options.
  714. # These are left unexpanded so users can "make install exec_prefix=/foo"
  715. # and all the variables that are supposed to be based on exec_prefix
  716. # by default will actually change.
  717. # Use braces instead of parens because sh, perl, etc. also accept them.
  718. # (The list follows the same order as the GNU Coding Standards.)
  719. bindir='${exec_prefix}/bin'
  720. sbindir='${exec_prefix}/sbin'
  721. libexecdir='${exec_prefix}/libexec'
  722. datarootdir='${prefix}/share'
  723. datadir='${datarootdir}'
  724. sysconfdir='${prefix}/etc'
  725. sharedstatedir='${prefix}/com'
  726. localstatedir='${prefix}/var'
  727. includedir='${prefix}/include'
  728. oldincludedir='/usr/include'
  729. docdir='${datarootdir}/doc/${PACKAGE}'
  730. infodir='${datarootdir}/info'
  731. htmldir='${docdir}'
  732. dvidir='${docdir}'
  733. pdfdir='${docdir}'
  734. psdir='${docdir}'
  735. libdir='${exec_prefix}/lib'
  736. localedir='${datarootdir}/locale'
  737. mandir='${datarootdir}/man'
  738. ac_prev=
  739. ac_dashdash=
  740. for ac_option
  741. do
  742. # If the previous option needs an argument, assign it.
  743. if test -n "$ac_prev"; then
  744. eval $ac_prev=\$ac_option
  745. ac_prev=
  746. continue
  747. fi
  748. case $ac_option in
  749. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  750. *) ac_optarg=yes ;;
  751. esac
  752. # Accept the important Cygnus configure options, so we can diagnose typos.
  753. case $ac_dashdash$ac_option in
  754. --)
  755. ac_dashdash=yes ;;
  756. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  757. ac_prev=bindir ;;
  758. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  759. bindir=$ac_optarg ;;
  760. -build | --build | --buil | --bui | --bu)
  761. ac_prev=build_alias ;;
  762. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  763. build_alias=$ac_optarg ;;
  764. -cache-file | --cache-file | --cache-fil | --cache-fi \
  765. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  766. ac_prev=cache_file ;;
  767. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  768. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  769. cache_file=$ac_optarg ;;
  770. --config-cache | -C)
  771. cache_file=config.cache ;;
  772. -datadir | --datadir | --datadi | --datad)
  773. ac_prev=datadir ;;
  774. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  775. datadir=$ac_optarg ;;
  776. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  777. | --dataroo | --dataro | --datar)
  778. ac_prev=datarootdir ;;
  779. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  780. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  781. datarootdir=$ac_optarg ;;
  782. -disable-* | --disable-*)
  783. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  784. # Reject names that are not valid shell variable names.
  785. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  786. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  787. { (exit 1); exit 1; }; }
  788. ac_useropt_orig=$ac_useropt
  789. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  790. case $ac_user_opts in
  791. *"
  792. "enable_$ac_useropt"
  793. "*) ;;
  794. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  795. ac_unrecognized_sep=', ';;
  796. esac
  797. eval enable_$ac_useropt=no ;;
  798. -docdir | --docdir | --docdi | --doc | --do)
  799. ac_prev=docdir ;;
  800. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  801. docdir=$ac_optarg ;;
  802. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  803. ac_prev=dvidir ;;
  804. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  805. dvidir=$ac_optarg ;;
  806. -enable-* | --enable-*)
  807. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  808. # Reject names that are not valid shell variable names.
  809. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  810. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  811. { (exit 1); exit 1; }; }
  812. ac_useropt_orig=$ac_useropt
  813. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  814. case $ac_user_opts in
  815. *"
  816. "enable_$ac_useropt"
  817. "*) ;;
  818. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  819. ac_unrecognized_sep=', ';;
  820. esac
  821. eval enable_$ac_useropt=\$ac_optarg ;;
  822. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  823. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  824. | --exec | --exe | --ex)
  825. ac_prev=exec_prefix ;;
  826. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  827. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  828. | --exec=* | --exe=* | --ex=*)
  829. exec_prefix=$ac_optarg ;;
  830. -gas | --gas | --ga | --g)
  831. # Obsolete; use --with-gas.
  832. with_gas=yes ;;
  833. -help | --help | --hel | --he | -h)
  834. ac_init_help=long ;;
  835. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  836. ac_init_help=recursive ;;
  837. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  838. ac_init_help=short ;;
  839. -host | --host | --hos | --ho)
  840. ac_prev=host_alias ;;
  841. -host=* | --host=* | --hos=* | --ho=*)
  842. host_alias=$ac_optarg ;;
  843. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  844. ac_prev=htmldir ;;
  845. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  846. | --ht=*)
  847. htmldir=$ac_optarg ;;
  848. -includedir | --includedir | --includedi | --included | --include \
  849. | --includ | --inclu | --incl | --inc)
  850. ac_prev=includedir ;;
  851. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  852. | --includ=* | --inclu=* | --incl=* | --inc=*)
  853. includedir=$ac_optarg ;;
  854. -infodir | --infodir | --infodi | --infod | --info | --inf)
  855. ac_prev=infodir ;;
  856. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  857. infodir=$ac_optarg ;;
  858. -libdir | --libdir | --libdi | --libd)
  859. ac_prev=libdir ;;
  860. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  861. libdir=$ac_optarg ;;
  862. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  863. | --libexe | --libex | --libe)
  864. ac_prev=libexecdir ;;
  865. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  866. | --libexe=* | --libex=* | --libe=*)
  867. libexecdir=$ac_optarg ;;
  868. -localedir | --localedir | --localedi | --localed | --locale)
  869. ac_prev=localedir ;;
  870. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  871. localedir=$ac_optarg ;;
  872. -localstatedir | --localstatedir | --localstatedi | --localstated \
  873. | --localstate | --localstat | --localsta | --localst | --locals)
  874. ac_prev=localstatedir ;;
  875. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  876. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  877. localstatedir=$ac_optarg ;;
  878. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  879. ac_prev=mandir ;;
  880. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  881. mandir=$ac_optarg ;;
  882. -nfp | --nfp | --nf)
  883. # Obsolete; use --without-fp.
  884. with_fp=no ;;
  885. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  886. | --no-cr | --no-c | -n)
  887. no_create=yes ;;
  888. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  889. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  890. no_recursion=yes ;;
  891. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  892. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  893. | --oldin | --oldi | --old | --ol | --o)
  894. ac_prev=oldincludedir ;;
  895. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  896. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  897. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  898. oldincludedir=$ac_optarg ;;
  899. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  900. ac_prev=prefix ;;
  901. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  902. prefix=$ac_optarg ;;
  903. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  904. | --program-pre | --program-pr | --program-p)
  905. ac_prev=program_prefix ;;
  906. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  907. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  908. program_prefix=$ac_optarg ;;
  909. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  910. | --program-suf | --program-su | --program-s)
  911. ac_prev=program_suffix ;;
  912. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  913. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  914. program_suffix=$ac_optarg ;;
  915. -program-transform-name | --program-transform-name \
  916. | --program-transform-nam | --program-transform-na \
  917. | --program-transform-n | --program-transform- \
  918. | --program-transform | --program-transfor \
  919. | --program-transfo | --program-transf \
  920. | --program-trans | --program-tran \
  921. | --progr-tra | --program-tr | --program-t)
  922. ac_prev=program_transform_name ;;
  923. -program-transform-name=* | --program-transform-name=* \
  924. | --program-transform-nam=* | --program-transform-na=* \
  925. | --program-transform-n=* | --program-transform-=* \
  926. | --program-transform=* | --program-transfor=* \
  927. | --program-transfo=* | --program-transf=* \
  928. | --program-trans=* | --program-tran=* \
  929. | --progr-tra=* | --program-tr=* | --program-t=*)
  930. program_transform_name=$ac_optarg ;;
  931. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  932. ac_prev=pdfdir ;;
  933. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  934. pdfdir=$ac_optarg ;;
  935. -psdir | --psdir | --psdi | --psd | --ps)
  936. ac_prev=psdir ;;
  937. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  938. psdir=$ac_optarg ;;
  939. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  940. | -silent | --silent | --silen | --sile | --sil)
  941. silent=yes ;;
  942. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  943. ac_prev=sbindir ;;
  944. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  945. | --sbi=* | --sb=*)
  946. sbindir=$ac_optarg ;;
  947. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  948. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  949. | --sharedst | --shareds | --shared | --share | --shar \
  950. | --sha | --sh)
  951. ac_prev=sharedstatedir ;;
  952. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  953. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  954. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  955. | --sha=* | --sh=*)
  956. sharedstatedir=$ac_optarg ;;
  957. -site | --site | --sit)
  958. ac_prev=site ;;
  959. -site=* | --site=* | --sit=*)
  960. site=$ac_optarg ;;
  961. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  962. ac_prev=srcdir ;;
  963. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  964. srcdir=$ac_optarg ;;
  965. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  966. | --syscon | --sysco | --sysc | --sys | --sy)
  967. ac_prev=sysconfdir ;;
  968. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  969. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  970. sysconfdir=$ac_optarg ;;
  971. -target | --target | --targe | --targ | --tar | --ta | --t)
  972. ac_prev=target_alias ;;
  973. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  974. target_alias=$ac_optarg ;;
  975. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  976. verbose=yes ;;
  977. -version | --version | --versio | --versi | --vers | -V)
  978. ac_init_version=: ;;
  979. -with-* | --with-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  984. { (exit 1); exit 1; }; }
  985. ac_useropt_orig=$ac_useropt
  986. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  987. case $ac_user_opts in
  988. *"
  989. "with_$ac_useropt"
  990. "*) ;;
  991. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  992. ac_unrecognized_sep=', ';;
  993. esac
  994. eval with_$ac_useropt=\$ac_optarg ;;
  995. -without-* | --without-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1000. { (exit 1); exit 1; }; }
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=no ;;
  1011. --x)
  1012. # Obsolete; use --with-x.
  1013. with_x=yes ;;
  1014. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1015. | --x-incl | --x-inc | --x-in | --x-i)
  1016. ac_prev=x_includes ;;
  1017. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1018. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1019. x_includes=$ac_optarg ;;
  1020. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1021. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1022. ac_prev=x_libraries ;;
  1023. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1024. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1025. x_libraries=$ac_optarg ;;
  1026. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1027. Try \`$0 --help' for more information." >&2
  1028. { (exit 1); exit 1; }; }
  1029. ;;
  1030. *=*)
  1031. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1034. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1035. { (exit 1); exit 1; }; }
  1036. eval $ac_envvar=\$ac_optarg
  1037. export $ac_envvar ;;
  1038. *)
  1039. # FIXME: should be removed in autoconf 3.0.
  1040. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1041. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1042. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1043. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1044. ;;
  1045. esac
  1046. done
  1047. if test -n "$ac_prev"; then
  1048. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1049. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1050. { (exit 1); exit 1; }; }
  1051. fi
  1052. if test -n "$ac_unrecognized_opts"; then
  1053. case $enable_option_checking in
  1054. no) ;;
  1055. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1056. { (exit 1); exit 1; }; } ;;
  1057. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1058. esac
  1059. fi
  1060. # Check all directory arguments for consistency.
  1061. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1062. datadir sysconfdir sharedstatedir localstatedir includedir \
  1063. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1064. libdir localedir mandir
  1065. do
  1066. eval ac_val=\$$ac_var
  1067. # Remove trailing slashes.
  1068. case $ac_val in
  1069. */ )
  1070. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1071. eval $ac_var=\$ac_val;;
  1072. esac
  1073. # Be sure to have absolute directory names.
  1074. case $ac_val in
  1075. [\\/$]* | ?:[\\/]* ) continue;;
  1076. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1077. esac
  1078. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1079. { (exit 1); exit 1; }; }
  1080. done
  1081. # There might be people who depend on the old broken behavior: `$host'
  1082. # used to hold the argument of --host etc.
  1083. # FIXME: To remove some day.
  1084. build=$build_alias
  1085. host=$host_alias
  1086. target=$target_alias
  1087. # FIXME: To remove some day.
  1088. if test "x$host_alias" != x; then
  1089. if test "x$build_alias" = x; then
  1090. cross_compiling=maybe
  1091. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1092. If a cross compiler is detected then cross compile mode will be used." >&2
  1093. elif test "x$build_alias" != "x$host_alias"; then
  1094. cross_compiling=yes
  1095. fi
  1096. fi
  1097. ac_tool_prefix=
  1098. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1099. test "$silent" = yes && exec 6>/dev/null
  1100. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1101. ac_ls_di=`ls -di .` &&
  1102. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1103. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1104. { (exit 1); exit 1; }; }
  1105. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1106. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1107. { (exit 1); exit 1; }; }
  1108. # Find the source files, if location was not specified.
  1109. if test -z "$srcdir"; then
  1110. ac_srcdir_defaulted=yes
  1111. # Try the directory containing this script, then the parent directory.
  1112. ac_confdir=`$as_dirname -- "$as_myself" ||
  1113. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1114. X"$as_myself" : 'X\(//\)[^/]' \| \
  1115. X"$as_myself" : 'X\(//\)$' \| \
  1116. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1117. $as_echo X"$as_myself" |
  1118. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1119. s//\1/
  1120. q
  1121. }
  1122. /^X\(\/\/\)[^/].*/{
  1123. s//\1/
  1124. q
  1125. }
  1126. /^X\(\/\/\)$/{
  1127. s//\1/
  1128. q
  1129. }
  1130. /^X\(\/\).*/{
  1131. s//\1/
  1132. q
  1133. }
  1134. s/.*/./; q'`
  1135. srcdir=$ac_confdir
  1136. if test ! -r "$srcdir/$ac_unique_file"; then
  1137. srcdir=..
  1138. fi
  1139. else
  1140. ac_srcdir_defaulted=no
  1141. fi
  1142. if test ! -r "$srcdir/$ac_unique_file"; then
  1143. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1144. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1145. { (exit 1); exit 1; }; }
  1146. fi
  1147. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1148. ac_abs_confdir=`(
  1149. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1150. { (exit 1); exit 1; }; }
  1151. pwd)`
  1152. # When building in place, set srcdir=.
  1153. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1154. srcdir=.
  1155. fi
  1156. # Remove unnecessary trailing slashes from srcdir.
  1157. # Double slashes in file names in object file debugging info
  1158. # mess up M-x gdb in Emacs.
  1159. case $srcdir in
  1160. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1161. esac
  1162. for ac_var in $ac_precious_vars; do
  1163. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1164. eval ac_env_${ac_var}_value=\$${ac_var}
  1165. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1167. done
  1168. #
  1169. # Report the --help message.
  1170. #
  1171. if test "$ac_init_help" = "long"; then
  1172. # Omit some internal or obsolete options to make the list less imposing.
  1173. # This message is too long to be a string in the A/UX 3.1 sh.
  1174. cat <<_ACEOF
  1175. \`configure' configures this package to adapt to many kinds of systems.
  1176. Usage: $0 [OPTION]... [VAR=VALUE]...
  1177. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1178. VAR=VALUE. See below for descriptions of some of the useful variables.
  1179. Defaults for the options are specified in brackets.
  1180. Configuration:
  1181. -h, --help display this help and exit
  1182. --help=short display options specific to this package
  1183. --help=recursive display the short help of all the included packages
  1184. -V, --version display version information and exit
  1185. -q, --quiet, --silent do not print \`checking...' messages
  1186. --cache-file=FILE cache test results in FILE [disabled]
  1187. -C, --config-cache alias for \`--cache-file=config.cache'
  1188. -n, --no-create do not create output files
  1189. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1190. Installation directories:
  1191. --prefix=PREFIX install architecture-independent files in PREFIX
  1192. [$ac_default_prefix]
  1193. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1194. [PREFIX]
  1195. By default, \`make install' will install all the files in
  1196. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1197. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1198. for instance \`--prefix=\$HOME'.
  1199. For better control, use the options below.
  1200. Fine tuning of the installation directories:
  1201. --bindir=DIR user executables [EPREFIX/bin]
  1202. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1203. --libexecdir=DIR program executables [EPREFIX/libexec]
  1204. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1205. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1206. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1207. --libdir=DIR object code libraries [EPREFIX/lib]
  1208. --includedir=DIR C header files [PREFIX/include]
  1209. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1210. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1211. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1212. --infodir=DIR info documentation [DATAROOTDIR/info]
  1213. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1214. --mandir=DIR man documentation [DATAROOTDIR/man]
  1215. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1216. --htmldir=DIR html documentation [DOCDIR]
  1217. --dvidir=DIR dvi documentation [DOCDIR]
  1218. --pdfdir=DIR pdf documentation [DOCDIR]
  1219. --psdir=DIR ps documentation [DOCDIR]
  1220. _ACEOF
  1221. cat <<\_ACEOF
  1222. Program names:
  1223. --program-prefix=PREFIX prepend PREFIX to installed program names
  1224. --program-suffix=SUFFIX append SUFFIX to installed program names
  1225. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1226. _ACEOF
  1227. fi
  1228. if test -n "$ac_init_help"; then
  1229. cat <<\_ACEOF
  1230. Optional Features:
  1231. --disable-option-checking ignore unrecognized --enable/--with options
  1232. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1233. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1234. --disable-dependency-tracking speeds up one-time build
  1235. --enable-dependency-tracking do not reject slow dependency extractors
  1236. --enable-isdn Enable ISDN support (may cause problems on
  1237. some systems; only for Linux)
  1238. --disable-ipv4 Disable IPv4 networking support
  1239. (default=enabled)
  1240. --enable-ipv6 Enable IPv6 networking support
  1241. --disable-ipv4-startup Disable IPv4 on pdnsd startup by default
  1242. (default=enabled)
  1243. --enable-ipv6-startup Enable IPV6 on pdnsd startup by default
  1244. (default=IPv4)
  1245. --disable-udp-queries Disable udp as query method.
  1246. --disable-tcp-queries Disable tcp as query method.
  1247. --disable-tcp-server Disable the TCP serving ability of pdnsd
  1248. --disable-src-addr-disc Disable the UDP source address discovery
  1249. --enable-socket-locking Enable the UDP socket locking
  1250. --disable-poll Disable poll(2) and use select(2)
  1251. (default=enabled)
  1252. --disable-new-rrs Disable new DNS RR types (obsolete, currently ignored)
  1253. --enable-strict-rfc2181 Enforce strict RFC 2181 compliance
  1254. --enable-underscores Allow _ in domain names (obsolete, currently ignored)
  1255. --enable-hash-debug Debug hash tables (warning: massive output)
  1256. --enable-rcsids Enable RCS IDs in executables (obsolete, currently ignored)
  1257. --enable-tcp-subseq Enable multiple dns querys using one
  1258. tcp connection
  1259. --enable-specbuild Only used when building pdnsd from spec files
  1260. Optional Packages:
  1261. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1262. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1263. --with-distribution=distro Specify target distribution (default=Generic;
  1264. others: RedHat, SuSE, Debian, ArchLinux)
  1265. --with-target=platform Change compilation target platform (default:
  1266. autodetect; others: Linux, BSD, Cygwin)
  1267. --with-cachedir=dir Default directory for pdnsd cache
  1268. (default=/var/cache/pdnsd)
  1269. --with-query-method=qm Specify the query method (default=udponly;
  1270. others: tcponly, tcpudp, udptcp)
  1271. --with-random-device=device Specify random device other than
  1272. /dev/random; default: C Library random() PRNG;
  1273. special value arc4random for BSD C Library
  1274. arc4random function (default on FreeBSD)
  1275. --with-default-id=id Specify default uid/gid for pdnsd
  1276. (default=nobody)
  1277. --with-debug=level Specify debugging level (0 means no debug support)
  1278. --with-verbosity=level Specify default message verbosity
  1279. --with-hash-buckets=num Number of hash buckets to use (default=1024).
  1280. The number actually used is the smallest power of two
  1281. greater or equal to the number specified here.
  1282. --with-tcp-qtimeout=secs Specify default tcp query timeout (default=30)
  1283. --with-par-queries=num Specify default parallel query number (default=2)
  1284. --with-max-nameserver-ips=num Specify maximum number of IP addresses used per nameserver obtained from NS records (default=3)
  1285. --with-thread-lib=lib Specify thread library, overriding automatic detection (for Linux only).
  1286. Possible values: LinuxThreads,
  1287. LinuxThreads2 (implements a fix for newer glibcs)
  1288. or NPTL (Native POSIX Thread Library)
  1289. Some influential environment variables:
  1290. CC C compiler command
  1291. CFLAGS C compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CPP C preprocessor
  1298. Use these variables to override the choices made by `configure' or to help
  1299. it to find libraries and programs with nonstandard names/locations.
  1300. _ACEOF
  1301. ac_status=$?
  1302. fi
  1303. if test "$ac_init_help" = "recursive"; then
  1304. # If there are subdirs, report their specific --help.
  1305. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1306. test -d "$ac_dir" ||
  1307. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1308. continue
  1309. ac_builddir=.
  1310. case "$ac_dir" in
  1311. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1312. *)
  1313. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1314. # A ".." for each directory in $ac_dir_suffix.
  1315. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1316. case $ac_top_builddir_sub in
  1317. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1318. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1319. esac ;;
  1320. esac
  1321. ac_abs_top_builddir=$ac_pwd
  1322. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1323. # for backward compatibility:
  1324. ac_top_builddir=$ac_top_build_prefix
  1325. case $srcdir in
  1326. .) # We are building in place.
  1327. ac_srcdir=.
  1328. ac_top_srcdir=$ac_top_builddir_sub
  1329. ac_abs_top_srcdir=$ac_pwd ;;
  1330. [\\/]* | ?:[\\/]* ) # Absolute name.
  1331. ac_srcdir=$srcdir$ac_dir_suffix;
  1332. ac_top_srcdir=$srcdir
  1333. ac_abs_top_srcdir=$srcdir ;;
  1334. *) # Relative name.
  1335. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1336. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1337. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1338. esac
  1339. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1340. cd "$ac_dir" || { ac_status=$?; continue; }
  1341. # Check for guested configure.
  1342. if test -f "$ac_srcdir/configure.gnu"; then
  1343. echo &&
  1344. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1345. elif test -f "$ac_srcdir/configure"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure" --help=recursive
  1348. else
  1349. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1350. fi || ac_status=$?
  1351. cd "$ac_pwd" || { ac_status=$?; break; }
  1352. done
  1353. fi
  1354. test -n "$ac_init_help" && exit $ac_status
  1355. if $ac_init_version; then
  1356. cat <<\_ACEOF
  1357. configure
  1358. generated by GNU Autoconf 2.63
  1359. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1360. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1361. This configure script is free software; the Free Software Foundation
  1362. gives unlimited permission to copy, distribute and modify it.
  1363. _ACEOF
  1364. exit
  1365. fi
  1366. cat >config.log <<_ACEOF
  1367. This file contains any messages produced by compilers while
  1368. running configure, to aid debugging if configure makes a mistake.
  1369. It was created by $as_me, which was
  1370. generated by GNU Autoconf 2.63. Invocation command line was
  1371. $ $0 $@
  1372. _ACEOF
  1373. exec 5>>config.log
  1374. {
  1375. cat <<_ASUNAME
  1376. ## --------- ##
  1377. ## Platform. ##
  1378. ## --------- ##
  1379. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1380. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1381. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1382. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1383. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1384. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1385. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1386. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1387. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1388. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1389. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1390. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1391. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1392. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1393. _ASUNAME
  1394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1395. for as_dir in $PATH
  1396. do
  1397. IFS=$as_save_IFS
  1398. test -z "$as_dir" && as_dir=.
  1399. $as_echo "PATH: $as_dir"
  1400. done
  1401. IFS=$as_save_IFS
  1402. } >&5
  1403. cat >&5 <<_ACEOF
  1404. ## ----------- ##
  1405. ## Core tests. ##
  1406. ## ----------- ##
  1407. _ACEOF
  1408. # Keep a trace of the command line.
  1409. # Strip out --no-create and --no-recursion so they do not pile up.
  1410. # Strip out --silent because we don't want to record it for future runs.
  1411. # Also quote any args containing shell meta-characters.
  1412. # Make two passes to allow for proper duplicate-argument suppression.
  1413. ac_configure_args=
  1414. ac_configure_args0=
  1415. ac_configure_args1=
  1416. ac_must_keep_next=false
  1417. for ac_pass in 1 2
  1418. do
  1419. for ac_arg
  1420. do
  1421. case $ac_arg in
  1422. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1423. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1424. | -silent | --silent | --silen | --sile | --sil)
  1425. continue ;;
  1426. *\'*)
  1427. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1428. esac
  1429. case $ac_pass in
  1430. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1431. 2)
  1432. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1433. if test $ac_must_keep_next = true; then
  1434. ac_must_keep_next=false # Got value, back to normal.
  1435. else
  1436. case $ac_arg in
  1437. *=* | --config-cache | -C | -disable-* | --disable-* \
  1438. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1439. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1440. | -with-* | --with-* | -without-* | --without-* | --x)
  1441. case "$ac_configure_args0 " in
  1442. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1443. esac
  1444. ;;
  1445. -* ) ac_must_keep_next=true ;;
  1446. esac
  1447. fi
  1448. ac_configure_args="$ac_configure_args '$ac_arg'"
  1449. ;;
  1450. esac
  1451. done
  1452. done
  1453. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1454. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1455. # When interrupted or exit'd, cleanup temporary files, and complete
  1456. # config.log. We remove comments because anyway the quotes in there
  1457. # would cause problems or look ugly.
  1458. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1459. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1460. trap 'exit_status=$?
  1461. # Save into config.log some information that might help in debugging.
  1462. {
  1463. echo
  1464. cat <<\_ASBOX
  1465. ## ---------------- ##
  1466. ## Cache variables. ##
  1467. ## ---------------- ##
  1468. _ASBOX
  1469. echo
  1470. # The following way of writing the cache mishandles newlines in values,
  1471. (
  1472. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1473. eval ac_val=\$$ac_var
  1474. case $ac_val in #(
  1475. *${as_nl}*)
  1476. case $ac_var in #(
  1477. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1478. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1479. esac
  1480. case $ac_var in #(
  1481. _ | IFS | as_nl) ;; #(
  1482. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1483. *) $as_unset $ac_var ;;
  1484. esac ;;
  1485. esac
  1486. done
  1487. (set) 2>&1 |
  1488. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1489. *${as_nl}ac_space=\ *)
  1490. sed -n \
  1491. "s/'\''/'\''\\\\'\'''\''/g;
  1492. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1493. ;; #(
  1494. *)
  1495. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1496. ;;
  1497. esac |
  1498. sort
  1499. )
  1500. echo
  1501. cat <<\_ASBOX
  1502. ## ----------------- ##
  1503. ## Output variables. ##
  1504. ## ----------------- ##
  1505. _ASBOX
  1506. echo
  1507. for ac_var in $ac_subst_vars
  1508. do
  1509. eval ac_val=\$$ac_var
  1510. case $ac_val in
  1511. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1512. esac
  1513. $as_echo "$ac_var='\''$ac_val'\''"
  1514. done | sort
  1515. echo
  1516. if test -n "$ac_subst_files"; then
  1517. cat <<\_ASBOX
  1518. ## ------------------- ##
  1519. ## File substitutions. ##
  1520. ## ------------------- ##
  1521. _ASBOX
  1522. echo
  1523. for ac_var in $ac_subst_files
  1524. do
  1525. eval ac_val=\$$ac_var
  1526. case $ac_val in
  1527. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1528. esac
  1529. $as_echo "$ac_var='\''$ac_val'\''"
  1530. done | sort
  1531. echo
  1532. fi
  1533. if test -s confdefs.h; then
  1534. cat <<\_ASBOX
  1535. ## ----------- ##
  1536. ## confdefs.h. ##
  1537. ## ----------- ##
  1538. _ASBOX
  1539. echo
  1540. cat confdefs.h
  1541. echo
  1542. fi
  1543. test "$ac_signal" != 0 &&
  1544. $as_echo "$as_me: caught signal $ac_signal"
  1545. $as_echo "$as_me: exit $exit_status"
  1546. } >&5
  1547. rm -f core *.core core.conftest.* &&
  1548. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1549. exit $exit_status
  1550. ' 0
  1551. for ac_signal in 1 2 13 15; do
  1552. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1553. done
  1554. ac_signal=0
  1555. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1556. rm -f -r conftest* confdefs.h
  1557. # Predefined preprocessor variables.
  1558. cat >>confdefs.h <<_ACEOF
  1559. #define PACKAGE_NAME "$PACKAGE_NAME"
  1560. _ACEOF
  1561. cat >>confdefs.h <<_ACEOF
  1562. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1563. _ACEOF
  1564. cat >>confdefs.h <<_ACEOF
  1565. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1566. _ACEOF
  1567. cat >>confdefs.h <<_ACEOF
  1568. #define PACKAGE_STRING "$PACKAGE_STRING"
  1569. _ACEOF
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1572. _ACEOF
  1573. # Let the site file select an alternate cache file if it wants to.
  1574. # Prefer an explicitly selected file to automatically selected ones.
  1575. ac_site_file1=NONE
  1576. ac_site_file2=NONE
  1577. if test -n "$CONFIG_SITE"; then
  1578. ac_site_file1=$CONFIG_SITE
  1579. elif test "x$prefix" != xNONE; then
  1580. ac_site_file1=$prefix/share/config.site
  1581. ac_site_file2=$prefix/etc/config.site
  1582. else
  1583. ac_site_file1=$ac_default_prefix/share/config.site
  1584. ac_site_file2=$ac_default_prefix/etc/config.site
  1585. fi
  1586. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1587. do
  1588. test "x$ac_site_file" = xNONE && continue
  1589. if test -r "$ac_site_file"; then
  1590. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1591. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1592. sed 's/^/| /' "$ac_site_file" >&5
  1593. . "$ac_site_file"
  1594. fi
  1595. done
  1596. if test -r "$cache_file"; then
  1597. # Some versions of bash will fail to source /dev/null (special
  1598. # files actually), so we avoid doing that.
  1599. if test -f "$cache_file"; then
  1600. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1601. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1602. case $cache_file in
  1603. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1604. *) . "./$cache_file";;
  1605. esac
  1606. fi
  1607. else
  1608. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1609. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1610. >$cache_file
  1611. fi
  1612. # Check that the precious variables saved in the cache have kept the same
  1613. # value.
  1614. ac_cache_corrupted=false
  1615. for ac_var in $ac_precious_vars; do
  1616. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1617. eval ac_new_set=\$ac_env_${ac_var}_set
  1618. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1619. eval ac_new_val=\$ac_env_${ac_var}_value
  1620. case $ac_old_set,$ac_new_set in
  1621. set,)
  1622. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1623. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1624. ac_cache_corrupted=: ;;
  1625. ,set)
  1626. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1627. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1628. ac_cache_corrupted=: ;;
  1629. ,);;
  1630. *)
  1631. if test "x$ac_old_val" != "x$ac_new_val"; then
  1632. # differences in whitespace do not lead to failure.
  1633. ac_old_val_w=`echo x $ac_old_val`
  1634. ac_new_val_w=`echo x $ac_new_val`
  1635. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1636. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1637. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1638. ac_cache_corrupted=:
  1639. else
  1640. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1641. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1642. eval $ac_var=\$ac_old_val
  1643. fi
  1644. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1645. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1646. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1647. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1648. fi;;
  1649. esac
  1650. # Pass precious variables to config.status.
  1651. if test "$ac_new_set" = set; then
  1652. case $ac_new_val in
  1653. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1654. *) ac_arg=$ac_var=$ac_new_val ;;
  1655. esac
  1656. case " $ac_configure_args " in
  1657. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1658. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1659. esac
  1660. fi
  1661. done
  1662. if $ac_cache_corrupted; then
  1663. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1664. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1665. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1666. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1667. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1668. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1669. { (exit 1); exit 1; }; }
  1670. fi
  1671. ac_ext=c
  1672. ac_cpp='$CPP $CPPFLAGS'
  1673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1676. package="pdnsd"
  1677. version=`cut -d - -f 1 "$srcdir"/version`
  1678. fullversion=`cat "$srcdir"/version`
  1679. packagerelease=`cut -d - -f 2- "$srcdir"/version`
  1680. distribution="Generic"
  1681. target="autodetect"
  1682. cachedir="/var/cache/$package"
  1683. ipv4_default=1
  1684. have_ipv4="yes"
  1685. #newrrs="yes"
  1686. query_m="udponly"
  1687. have_tcp_server="yes"
  1688. adisc="default"
  1689. slock="no";
  1690. def_id="nobody"
  1691. #have_rcsids="no"
  1692. udp_queries="yes"
  1693. tcp_queries="yes"
  1694. tempdir="/tmp"
  1695. randomdev=default
  1696. freebsd_pthread="4"
  1697. specbuild=no
  1698. threadlib=default
  1699. am__api_version='1.11'
  1700. ac_aux_dir=
  1701. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1702. if test -f "$ac_dir/install-sh"; then
  1703. ac_aux_dir=$ac_dir
  1704. ac_install_sh="$ac_aux_dir/install-sh -c"
  1705. break
  1706. elif test -f "$ac_dir/install.sh"; then
  1707. ac_aux_dir=$ac_dir
  1708. ac_install_sh="$ac_aux_dir/install.sh -c"
  1709. break
  1710. elif test -f "$ac_dir/shtool"; then
  1711. ac_aux_dir=$ac_dir
  1712. ac_install_sh="$ac_aux_dir/shtool install -c"
  1713. break
  1714. fi
  1715. done
  1716. if test -z "$ac_aux_dir"; then
  1717. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1718. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1719. { (exit 1); exit 1; }; }
  1720. fi
  1721. # These three variables are undocumented and unsupported,
  1722. # and are intended to be withdrawn in a future Autoconf release.
  1723. # They can cause serious problems if a builder's source tree is in a directory
  1724. # whose full name contains unusual characters.
  1725. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1726. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1727. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1728. # Find a good install program. We prefer a C program (faster),
  1729. # so one script is as good as another. But avoid the broken or
  1730. # incompatible versions:
  1731. # SysV /etc/install, /usr/sbin/install
  1732. # SunOS /usr/etc/install
  1733. # IRIX /sbin/install
  1734. # AIX /bin/install
  1735. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1736. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1737. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1738. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1739. # OS/2's system install, which has a completely different semantic
  1740. # ./install, which can be erroneously created by make from ./install.sh.
  1741. # Reject install programs that cannot install multiple files.
  1742. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1743. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1744. if test -z "$INSTALL"; then
  1745. if test "${ac_cv_path_install+set}" = set; then
  1746. $as_echo_n "(cached) " >&6
  1747. else
  1748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1749. for as_dir in $PATH
  1750. do
  1751. IFS=$as_save_IFS
  1752. test -z "$as_dir" && as_dir=.
  1753. # Account for people who put trailing slashes in PATH elements.
  1754. case $as_dir/ in
  1755. ./ | .// | /cC/* | \
  1756. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1757. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1758. /usr/ucb/* ) ;;
  1759. *)
  1760. # OSF1 and SCO ODT 3.0 have their own names for install.
  1761. # Don't use installbsd from OSF since it installs stuff as root
  1762. # by default.
  1763. for ac_prog in ginstall scoinst install; do
  1764. for ac_exec_ext in '' $ac_executable_extensions; do
  1765. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1766. if test $ac_prog = install &&
  1767. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1768. # AIX install. It has an incompatible calling convention.
  1769. :
  1770. elif test $ac_prog = install &&
  1771. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1772. # program-specific install script used by HP pwplus--don't use.
  1773. :
  1774. else
  1775. rm -rf conftest.one conftest.two conftest.dir
  1776. echo one > conftest.one
  1777. echo two > conftest.two
  1778. mkdir conftest.dir
  1779. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1780. test -s conftest.one && test -s conftest.two &&
  1781. test -s conftest.dir/conftest.one &&
  1782. test -s conftest.dir/conftest.two
  1783. then
  1784. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1785. break 3
  1786. fi
  1787. fi
  1788. fi
  1789. done
  1790. done
  1791. ;;
  1792. esac
  1793. done
  1794. IFS=$as_save_IFS
  1795. rm -rf conftest.one conftest.two conftest.dir
  1796. fi
  1797. if test "${ac_cv_path_install+set}" = set; then
  1798. INSTALL=$ac_cv_path_install
  1799. else
  1800. # As a last resort, use the slow shell script. Don't cache a
  1801. # value for INSTALL within a source directory, because that will
  1802. # break other packages using the cache if that directory is
  1803. # removed, or if the value is a relative name.
  1804. INSTALL=$ac_install_sh
  1805. fi
  1806. fi
  1807. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1808. $as_echo "$INSTALL" >&6; }
  1809. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1810. # It thinks the first close brace ends the variable substitution.
  1811. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1812. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1813. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1814. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1815. $as_echo_n "checking whether build environment is sane... " >&6; }
  1816. # Just in case
  1817. sleep 1
  1818. echo timestamp > conftest.file
  1819. # Reject unsafe characters in $srcdir or the absolute working directory
  1820. # name. Accept space and tab only in the latter.
  1821. am_lf='
  1822. '
  1823. case `pwd` in
  1824. *[\\\"\#\$\&\'\`$am_lf]*)
  1825. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  1826. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  1827. { (exit 1); exit 1; }; };;
  1828. esac
  1829. case $srcdir in
  1830. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  1831. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  1832. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  1833. { (exit 1); exit 1; }; };;
  1834. esac
  1835. # Do `set' in a subshell so we don't clobber the current shell's
  1836. # arguments. Must try -L first in case configure is actually a
  1837. # symlink; some systems play weird games with the mod time of symlinks
  1838. # (eg FreeBSD returns the mod time of the symlink's containing
  1839. # directory).
  1840. if (
  1841. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1842. if test "$*" = "X"; then
  1843. # -L didn't work.
  1844. set X `ls -t "$srcdir/configure" conftest.file`
  1845. fi
  1846. rm -f conftest.file
  1847. if test "$*" != "X $srcdir/configure conftest.file" \
  1848. && test "$*" != "X conftest.file $srcdir/configure"; then
  1849. # If neither matched, then we have a broken ls. This can happen
  1850. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1851. # broken ls alias from the environment. This has actually
  1852. # happened. Such a system could not be considered "sane".
  1853. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1854. alias in your environment" >&5
  1855. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1856. alias in your environment" >&2;}
  1857. { (exit 1); exit 1; }; }
  1858. fi
  1859. test "$2" = conftest.file
  1860. )
  1861. then
  1862. # Ok.
  1863. :
  1864. else
  1865. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1866. Check your system clock" >&5
  1867. $as_echo "$as_me: error: newly created file is older than distributed files!
  1868. Check your system clock" >&2;}
  1869. { (exit 1); exit 1; }; }
  1870. fi
  1871. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1872. $as_echo "yes" >&6; }
  1873. test "$program_prefix" != NONE &&
  1874. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1875. # Use a double $ so make ignores it.
  1876. test "$program_suffix" != NONE &&
  1877. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1878. # Double any \ or $.
  1879. # By default was `s,x,x', remove it if useless.
  1880. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1881. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1882. # expand $ac_aux_dir to an absolute path
  1883. am_aux_dir=`cd $ac_aux_dir && pwd`
  1884. if test x"${MISSING+set}" != xset; then
  1885. case $am_aux_dir in
  1886. *\ * | *\ *)
  1887. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1888. *)
  1889. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1890. esac
  1891. fi
  1892. # Use eval to expand $SHELL
  1893. if eval "$MISSING --run true"; then
  1894. am_missing_run="$MISSING --run "
  1895. else
  1896. am_missing_run=
  1897. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1898. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1899. fi
  1900. if test x"${install_sh}" != xset; then
  1901. case $am_aux_dir in
  1902. *\ * | *\ *)
  1903. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1904. *)
  1905. install_sh="\${SHELL} $am_aux_dir/install-sh"
  1906. esac
  1907. fi
  1908. # Installed binaries are usually stripped using `strip' when the user
  1909. # run `make install-strip'. However `strip' might not be the right
  1910. # tool to use in cross-compilation environments, therefore Automake
  1911. # will honor the `STRIP' environment variable to overrule this program.
  1912. if test "$cross_compiling" != no; then
  1913. if test -n "$ac_tool_prefix"; then
  1914. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1915. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1916. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1917. $as_echo_n "checking for $ac_word... " >&6; }
  1918. if test "${ac_cv_prog_STRIP+set}" = set; then
  1919. $as_echo_n "(cached) " >&6
  1920. else
  1921. if test -n "$STRIP"; then
  1922. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1923. else
  1924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1925. for as_dir in $PATH
  1926. do
  1927. IFS=$as_save_IFS
  1928. test -z "$as_dir" && as_dir=.
  1929. for ac_exec_ext in '' $ac_executable_extensions; do
  1930. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1931. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1932. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1933. break 2
  1934. fi
  1935. done
  1936. done
  1937. IFS=$as_save_IFS
  1938. fi
  1939. fi
  1940. STRIP=$ac_cv_prog_STRIP
  1941. if test -n "$STRIP"; then
  1942. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  1943. $as_echo "$STRIP" >&6; }
  1944. else
  1945. { $as_echo "$as_me:$LINENO: result: no" >&5
  1946. $as_echo "no" >&6; }
  1947. fi
  1948. fi
  1949. if test -z "$ac_cv_prog_STRIP"; then
  1950. ac_ct_STRIP=$STRIP
  1951. # Extract the first word of "strip", so it can be a program name with args.
  1952. set dummy strip; ac_word=$2
  1953. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1954. $as_echo_n "checking for $ac_word... " >&6; }
  1955. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1956. $as_echo_n "(cached) " >&6
  1957. else
  1958. if test -n "$ac_ct_STRIP"; then
  1959. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1960. else
  1961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1962. for as_dir in $PATH
  1963. do
  1964. IFS=$as_save_IFS
  1965. test -z "$as_dir" && as_dir=.
  1966. for ac_exec_ext in '' $ac_executable_extensions; do
  1967. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1968. ac_cv_prog_ac_ct_STRIP="strip"
  1969. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1970. break 2
  1971. fi
  1972. done
  1973. done
  1974. IFS=$as_save_IFS
  1975. fi
  1976. fi
  1977. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1978. if test -n "$ac_ct_STRIP"; then
  1979. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1980. $as_echo "$ac_ct_STRIP" >&6; }
  1981. else
  1982. { $as_echo "$as_me:$LINENO: result: no" >&5
  1983. $as_echo "no" >&6; }
  1984. fi
  1985. if test "x$ac_ct_STRIP" = x; then
  1986. STRIP=":"
  1987. else
  1988. case $cross_compiling:$ac_tool_warned in
  1989. yes:)
  1990. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1992. ac_tool_warned=yes ;;
  1993. esac
  1994. STRIP=$ac_ct_STRIP
  1995. fi
  1996. else
  1997. STRIP="$ac_cv_prog_STRIP"
  1998. fi
  1999. fi
  2000. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2001. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2002. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2003. if test -z "$MKDIR_P"; then
  2004. if test "${ac_cv_path_mkdir+set}" = set; then
  2005. $as_echo_n "(cached) " >&6
  2006. else
  2007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2008. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2009. do
  2010. IFS=$as_save_IFS
  2011. test -z "$as_dir" && as_dir=.
  2012. for ac_prog in mkdir gmkdir; do
  2013. for ac_exec_ext in '' $ac_executable_extensions; do
  2014. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2015. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2016. 'mkdir (GNU coreutils) '* | \
  2017. 'mkdir (coreutils) '* | \
  2018. 'mkdir (fileutils) '4.1*)
  2019. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2020. break 3;;
  2021. esac
  2022. done
  2023. done
  2024. done
  2025. IFS=$as_save_IFS
  2026. fi
  2027. if test "${ac_cv_path_mkdir+set}" = set; then
  2028. MKDIR_P="$ac_cv_path_mkdir -p"
  2029. else
  2030. # As a last resort, use the slow shell script. Don't cache a
  2031. # value for MKDIR_P within a source directory, because that will
  2032. # break other packages using the cache if that directory is
  2033. # removed, or if the value is a relative name.
  2034. test -d ./--version && rmdir ./--version
  2035. MKDIR_P="$ac_install_sh -d"
  2036. fi
  2037. fi
  2038. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2039. $as_echo "$MKDIR_P" >&6; }
  2040. mkdir_p="$MKDIR_P"
  2041. case $mkdir_p in
  2042. [\\/$]* | ?:[\\/]*) ;;
  2043. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2044. esac
  2045. for ac_prog in gawk mawk nawk awk
  2046. do
  2047. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2048. set dummy $ac_prog; ac_word=$2
  2049. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2050. $as_echo_n "checking for $ac_word... " >&6; }
  2051. if test "${ac_cv_prog_AWK+set}" = set; then
  2052. $as_echo_n "(cached) " >&6
  2053. else
  2054. if test -n "$AWK"; then
  2055. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2056. else
  2057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2058. for as_dir in $PATH
  2059. do
  2060. IFS=$as_save_IFS
  2061. test -z "$as_dir" && as_dir=.
  2062. for ac_exec_ext in '' $ac_executable_extensions; do
  2063. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2064. ac_cv_prog_AWK="$ac_prog"
  2065. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2066. break 2
  2067. fi
  2068. done
  2069. done
  2070. IFS=$as_save_IFS
  2071. fi
  2072. fi
  2073. AWK=$ac_cv_prog_AWK
  2074. if test -n "$AWK"; then
  2075. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2076. $as_echo "$AWK" >&6; }
  2077. else
  2078. { $as_echo "$as_me:$LINENO: result: no" >&5
  2079. $as_echo "no" >&6; }
  2080. fi
  2081. test -n "$AWK" && break
  2082. done
  2083. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2084. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2085. set x ${MAKE-make}
  2086. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2087. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2088. $as_echo_n "(cached) " >&6
  2089. else
  2090. cat >conftest.make <<\_ACEOF
  2091. SHELL = /bin/sh
  2092. all:
  2093. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2094. _ACEOF
  2095. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2096. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2097. *@@@%%%=?*=@@@%%%*)
  2098. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2099. *)
  2100. eval ac_cv_prog_make_${ac_make}_set=no;;
  2101. esac
  2102. rm -f conftest.make
  2103. fi
  2104. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2105. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2106. $as_echo "yes" >&6; }
  2107. SET_MAKE=
  2108. else
  2109. { $as_echo "$as_me:$LINENO: result: no" >&5
  2110. $as_echo "no" >&6; }
  2111. SET_MAKE="MAKE=${MAKE-make}"
  2112. fi
  2113. rm -rf .tst 2>/dev/null
  2114. mkdir .tst 2>/dev/null
  2115. if test -d .tst; then
  2116. am__leading_dot=.
  2117. else
  2118. am__leading_dot=_
  2119. fi
  2120. rmdir .tst 2>/dev/null
  2121. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2122. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2123. # is not polluted with repeated "-I."
  2124. am__isrc=' -I$(srcdir)'
  2125. # test to see if srcdir already configured
  2126. if test -f $srcdir/config.status; then
  2127. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2128. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2129. { (exit 1); exit 1; }; }
  2130. fi
  2131. fi
  2132. # test whether we have cygpath
  2133. if test -z "$CYGPATH_W"; then
  2134. if (cygpath --version) >/dev/null 2>/dev/null; then
  2135. CYGPATH_W='cygpath -w'
  2136. else
  2137. CYGPATH_W=echo
  2138. fi
  2139. fi
  2140. # Define the identity of the package.
  2141. PACKAGE=$package
  2142. VERSION=$version
  2143. # Some tools Automake needs.
  2144. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2145. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2146. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2147. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2148. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2149. # We need awk for the "check" target. The system "awk" is bad on
  2150. # some platforms.
  2151. # Always define AMTAR for backward compatibility.
  2152. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2153. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2154. ac_config_headers="$ac_config_headers config.h"
  2155. DEPDIR="${am__leading_dot}deps"
  2156. ac_config_commands="$ac_config_commands depfiles"
  2157. am_make=${MAKE-make}
  2158. cat > confinc << 'END'
  2159. am__doit:
  2160. @echo this is the am__doit target
  2161. .PHONY: am__doit
  2162. END
  2163. # If we don't find an include directive, just comment out the code.
  2164. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2165. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2166. am__include="#"
  2167. am__quote=
  2168. _am_result=none
  2169. # First try GNU make style include.
  2170. echo "include confinc" > confmf
  2171. # Ignore all kinds of additional output from `make'.
  2172. case `$am_make -s -f confmf 2> /dev/null` in #(
  2173. *the\ am__doit\ target*)
  2174. am__include=include
  2175. am__quote=
  2176. _am_result=GNU
  2177. ;;
  2178. esac
  2179. # Now try BSD make style include.
  2180. if test "$am__include" = "#"; then
  2181. echo '.include "confinc"' > confmf
  2182. case `$am_make -s -f confmf 2> /dev/null` in #(
  2183. *the\ am__doit\ target*)
  2184. am__include=.include
  2185. am__quote="\""
  2186. _am_result=BSD
  2187. ;;
  2188. esac
  2189. fi
  2190. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2191. $as_echo "$_am_result" >&6; }
  2192. rm -f confinc confmf
  2193. # Check whether --enable-dependency-tracking was given.
  2194. if test "${enable_dependency_tracking+set}" = set; then
  2195. enableval=$enable_dependency_tracking;
  2196. fi
  2197. if test "x$enable_dependency_tracking" != xno; then
  2198. am_depcomp="$ac_aux_dir/depcomp"
  2199. AMDEPBACKSLASH='\'
  2200. fi
  2201. if test "x$enable_dependency_tracking" != xno; then
  2202. AMDEP_TRUE=
  2203. AMDEP_FALSE='#'
  2204. else
  2205. AMDEP_TRUE='#'
  2206. AMDEP_FALSE=
  2207. fi
  2208. ac_ext=c
  2209. ac_cpp='$CPP $CPPFLAGS'
  2210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2213. if test -n "$ac_tool_prefix"; then
  2214. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2215. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2216. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2217. $as_echo_n "checking for $ac_word... " >&6; }
  2218. if test "${ac_cv_prog_CC+set}" = set; then
  2219. $as_echo_n "(cached) " >&6
  2220. else
  2221. if test -n "$CC"; then
  2222. ac_cv_prog_CC="$CC" # Let the user override the test.
  2223. else
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2231. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2232. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2233. break 2
  2234. fi
  2235. done
  2236. done
  2237. IFS=$as_save_IFS
  2238. fi
  2239. fi
  2240. CC=$ac_cv_prog_CC
  2241. if test -n "$CC"; then
  2242. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2243. $as_echo "$CC" >&6; }
  2244. else
  2245. { $as_echo "$as_me:$LINENO: result: no" >&5
  2246. $as_echo "no" >&6; }
  2247. fi
  2248. fi
  2249. if test -z "$ac_cv_prog_CC"; then
  2250. ac_ct_CC=$CC
  2251. # Extract the first word of "gcc", so it can be a program name with args.
  2252. set dummy gcc; ac_word=$2
  2253. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2254. $as_echo_n "checking for $ac_word... " >&6; }
  2255. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2256. $as_echo_n "(cached) " >&6
  2257. else
  2258. if test -n "$ac_ct_CC"; then
  2259. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2260. else
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_prog_ac_ct_CC="gcc"
  2269. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. fi
  2276. fi
  2277. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2278. if test -n "$ac_ct_CC"; then
  2279. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2280. $as_echo "$ac_ct_CC" >&6; }
  2281. else
  2282. { $as_echo "$as_me:$LINENO: result: no" >&5
  2283. $as_echo "no" >&6; }
  2284. fi
  2285. if test "x$ac_ct_CC" = x; then
  2286. CC=""
  2287. else
  2288. case $cross_compiling:$ac_tool_warned in
  2289. yes:)
  2290. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2292. ac_tool_warned=yes ;;
  2293. esac
  2294. CC=$ac_ct_CC
  2295. fi
  2296. else
  2297. CC="$ac_cv_prog_CC"
  2298. fi
  2299. if test -z "$CC"; then
  2300. if test -n "$ac_tool_prefix"; then
  2301. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2302. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2303. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2304. $as_echo_n "checking for $ac_word... " >&6; }
  2305. if test "${ac_cv_prog_CC+set}" = set; then
  2306. $as_echo_n "(cached) " >&6
  2307. else
  2308. if test -n "$CC"; then
  2309. ac_cv_prog_CC="$CC" # Let the user override the test.
  2310. else
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. for ac_exec_ext in '' $ac_executable_extensions; do
  2317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2318. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2319. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2320. break 2
  2321. fi
  2322. done
  2323. done
  2324. IFS=$as_save_IFS
  2325. fi
  2326. fi
  2327. CC=$ac_cv_prog_CC
  2328. if test -n "$CC"; then
  2329. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2330. $as_echo "$CC" >&6; }
  2331. else
  2332. { $as_echo "$as_me:$LINENO: result: no" >&5
  2333. $as_echo "no" >&6; }
  2334. fi
  2335. fi
  2336. fi
  2337. if test -z "$CC"; then
  2338. # Extract the first word of "cc", so it can be a program name with args.
  2339. set dummy cc; ac_word=$2
  2340. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2341. $as_echo_n "checking for $ac_word... " >&6; }
  2342. if test "${ac_cv_prog_CC+set}" = set; then
  2343. $as_echo_n "(cached) " >&6
  2344. else
  2345. if test -n "$CC"; then
  2346. ac_cv_prog_CC="$CC" # Let the user override the test.
  2347. else
  2348. ac_prog_rejected=no
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_exec_ext in '' $ac_executable_extensions; do
  2355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2356. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2357. ac_prog_rejected=yes
  2358. continue
  2359. fi
  2360. ac_cv_prog_CC="cc"
  2361. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2362. break 2
  2363. fi
  2364. done
  2365. done
  2366. IFS=$as_save_IFS
  2367. if test $ac_prog_rejected = yes; then
  2368. # We found a bogon in the path, so make sure we never use it.
  2369. set dummy $ac_cv_prog_CC
  2370. shift
  2371. if test $# != 0; then
  2372. # We chose a different compiler from the bogus one.
  2373. # However, it has the same basename, so the bogon will be chosen
  2374. # first if we set CC to just the basename; use the full file name.
  2375. shift
  2376. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2377. fi
  2378. fi
  2379. fi
  2380. fi
  2381. CC=$ac_cv_prog_CC
  2382. if test -n "$CC"; then
  2383. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2384. $as_echo "$CC" >&6; }
  2385. else
  2386. { $as_echo "$as_me:$LINENO: result: no" >&5
  2387. $as_echo "no" >&6; }
  2388. fi
  2389. fi
  2390. if test -z "$CC"; then
  2391. if test -n "$ac_tool_prefix"; then
  2392. for ac_prog in cl.exe
  2393. do
  2394. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2395. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2396. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2397. $as_echo_n "checking for $ac_word... " >&6; }
  2398. if test "${ac_cv_prog_CC+set}" = set; then
  2399. $as_echo_n "(cached) " >&6
  2400. else
  2401. if test -n "$CC"; then
  2402. ac_cv_prog_CC="$CC" # Let the user override the test.
  2403. else
  2404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2405. for as_dir in $PATH
  2406. do
  2407. IFS=$as_save_IFS
  2408. test -z "$as_dir" && as_dir=.
  2409. for ac_exec_ext in '' $ac_executable_extensions; do
  2410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2411. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2412. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2413. break 2
  2414. fi
  2415. done
  2416. done
  2417. IFS=$as_save_IFS
  2418. fi
  2419. fi
  2420. CC=$ac_cv_prog_CC
  2421. if test -n "$CC"; then
  2422. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2423. $as_echo "$CC" >&6; }
  2424. else
  2425. { $as_echo "$as_me:$LINENO: result: no" >&5
  2426. $as_echo "no" >&6; }
  2427. fi
  2428. test -n "$CC" && break
  2429. done
  2430. fi
  2431. if test -z "$CC"; then
  2432. ac_ct_CC=$CC
  2433. for ac_prog in cl.exe
  2434. do
  2435. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2436. set dummy $ac_prog; ac_word=$2
  2437. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2438. $as_echo_n "checking for $ac_word... " >&6; }
  2439. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2440. $as_echo_n "(cached) " >&6
  2441. else
  2442. if test -n "$ac_ct_CC"; then
  2443. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2444. else
  2445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446. for as_dir in $PATH
  2447. do
  2448. IFS=$as_save_IFS
  2449. test -z "$as_dir" && as_dir=.
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452. ac_cv_prog_ac_ct_CC="$ac_prog"
  2453. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454. break 2
  2455. fi
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. fi
  2461. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2462. if test -n "$ac_ct_CC"; then
  2463. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2464. $as_echo "$ac_ct_CC" >&6; }
  2465. else
  2466. { $as_echo "$as_me:$LINENO: result: no" >&5
  2467. $as_echo "no" >&6; }
  2468. fi
  2469. test -n "$ac_ct_CC" && break
  2470. done
  2471. if test "x$ac_ct_CC" = x; then
  2472. CC=""
  2473. else
  2474. case $cross_compiling:$ac_tool_warned in
  2475. yes:)
  2476. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2478. ac_tool_warned=yes ;;
  2479. esac
  2480. CC=$ac_ct_CC
  2481. fi
  2482. fi
  2483. fi
  2484. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2486. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2487. See \`config.log' for more details." >&5
  2488. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2489. See \`config.log' for more details." >&2;}
  2490. { (exit 1); exit 1; }; }; }
  2491. # Provide some information about the compiler.
  2492. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2493. set X $ac_compile
  2494. ac_compiler=$2
  2495. { (ac_try="$ac_compiler --version >&5"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2501. $as_echo "$ac_try_echo") >&5
  2502. (eval "$ac_compiler --version >&5") 2>&5
  2503. ac_status=$?
  2504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. { (ac_try="$ac_compiler -v >&5"
  2507. case "(($ac_try" in
  2508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2509. *) ac_try_echo=$ac_try;;
  2510. esac
  2511. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2512. $as_echo "$ac_try_echo") >&5
  2513. (eval "$ac_compiler -v >&5") 2>&5
  2514. ac_status=$?
  2515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2516. (exit $ac_status); }
  2517. { (ac_try="$ac_compiler -V >&5"
  2518. case "(($ac_try" in
  2519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2520. *) ac_try_echo=$ac_try;;
  2521. esac
  2522. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2523. $as_echo "$ac_try_echo") >&5
  2524. (eval "$ac_compiler -V >&5") 2>&5
  2525. ac_status=$?
  2526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527. (exit $ac_status); }
  2528. cat >conftest.$ac_ext <<_ACEOF
  2529. /* confdefs.h. */
  2530. _ACEOF
  2531. cat confdefs.h >>conftest.$ac_ext
  2532. cat >>conftest.$ac_ext <<_ACEOF
  2533. /* end confdefs.h. */
  2534. int
  2535. main ()
  2536. {
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. ac_clean_files_save=$ac_clean_files
  2542. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2543. # Try to create an executable without -o first, disregard a.out.
  2544. # It will help us diagnose broken compilers, and finding out an intuition
  2545. # of exeext.
  2546. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2547. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2548. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2549. # The possible output files:
  2550. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2551. ac_rmfiles=
  2552. for ac_file in $ac_files
  2553. do
  2554. case $ac_file in
  2555. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2556. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2557. esac
  2558. done
  2559. rm -f $ac_rmfiles
  2560. if { (ac_try="$ac_link_default"
  2561. case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2566. $as_echo "$ac_try_echo") >&5
  2567. (eval "$ac_link_default") 2>&5
  2568. ac_status=$?
  2569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2570. (exit $ac_status); }; then
  2571. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2572. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2573. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2574. # so that the user can short-circuit this test for compilers unknown to
  2575. # Autoconf.
  2576. for ac_file in $ac_files ''
  2577. do
  2578. test -f "$ac_file" || continue
  2579. case $ac_file in
  2580. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2581. ;;
  2582. [ab].out )
  2583. # We found the default executable, but exeext='' is most
  2584. # certainly right.
  2585. break;;
  2586. *.* )
  2587. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2588. then :; else
  2589. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2590. fi
  2591. # We set ac_cv_exeext here because the later test for it is not
  2592. # safe: cross compilers may not add the suffix if given an `-o'
  2593. # argument, so we may need to know it at that point already.
  2594. # Even if this section looks crufty: it has the advantage of
  2595. # actually working.
  2596. break;;
  2597. * )
  2598. break;;
  2599. esac
  2600. done
  2601. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2602. else
  2603. ac_file=''
  2604. fi
  2605. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2606. $as_echo "$ac_file" >&6; }
  2607. if test -z "$ac_file"; then
  2608. $as_echo "$as_me: failed program was:" >&5
  2609. sed 's/^/| /' conftest.$ac_ext >&5
  2610. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2611. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2612. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2613. See \`config.log' for more details." >&5
  2614. $as_echo "$as_me: error: C compiler cannot create executables
  2615. See \`config.log' for more details." >&2;}
  2616. { (exit 77); exit 77; }; }; }
  2617. fi
  2618. ac_exeext=$ac_cv_exeext
  2619. # Check that the compiler produces executables we can run. If not, either
  2620. # the compiler is broken, or we cross compile.
  2621. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2622. $as_echo_n "checking whether the C compiler works... " >&6; }
  2623. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2624. # If not cross compiling, check that we can run a simple program.
  2625. if test "$cross_compiling" != yes; then
  2626. if { ac_try='./$ac_file'
  2627. { (case "(($ac_try" in
  2628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2629. *) ac_try_echo=$ac_try;;
  2630. esac
  2631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2632. $as_echo "$ac_try_echo") >&5
  2633. (eval "$ac_try") 2>&5
  2634. ac_status=$?
  2635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2636. (exit $ac_status); }; }; then
  2637. cross_compiling=no
  2638. else
  2639. if test "$cross_compiling" = maybe; then
  2640. cross_compiling=yes
  2641. else
  2642. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2644. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2645. If you meant to cross compile, use \`--host'.
  2646. See \`config.log' for more details." >&5
  2647. $as_echo "$as_me: error: cannot run C compiled programs.
  2648. If you meant to cross compile, use \`--host'.
  2649. See \`config.log' for more details." >&2;}
  2650. { (exit 1); exit 1; }; }; }
  2651. fi
  2652. fi
  2653. fi
  2654. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2655. $as_echo "yes" >&6; }
  2656. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2657. ac_clean_files=$ac_clean_files_save
  2658. # Check that the compiler produces executables we can run. If not, either
  2659. # the compiler is broken, or we cross compile.
  2660. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2661. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2662. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2663. $as_echo "$cross_compiling" >&6; }
  2664. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2665. $as_echo_n "checking for suffix of executables... " >&6; }
  2666. if { (ac_try="$ac_link"
  2667. case "(($ac_try" in
  2668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669. *) ac_try_echo=$ac_try;;
  2670. esac
  2671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2672. $as_echo "$ac_try_echo") >&5
  2673. (eval "$ac_link") 2>&5
  2674. ac_status=$?
  2675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676. (exit $ac_status); }; then
  2677. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2678. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2679. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2680. # `rm'.
  2681. for ac_file in conftest.exe conftest conftest.*; do
  2682. test -f "$ac_file" || continue
  2683. case $ac_file in
  2684. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2685. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2686. break;;
  2687. * ) break;;
  2688. esac
  2689. done
  2690. else
  2691. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2693. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2694. See \`config.log' for more details." >&5
  2695. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2696. See \`config.log' for more details." >&2;}
  2697. { (exit 1); exit 1; }; }; }
  2698. fi
  2699. rm -f conftest$ac_cv_exeext
  2700. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2701. $as_echo "$ac_cv_exeext" >&6; }
  2702. rm -f conftest.$ac_ext
  2703. EXEEXT=$ac_cv_exeext
  2704. ac_exeext=$EXEEXT
  2705. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2706. $as_echo_n "checking for suffix of object files... " >&6; }
  2707. if test "${ac_cv_objext+set}" = set; then
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. cat >conftest.$ac_ext <<_ACEOF
  2711. /* confdefs.h. */
  2712. _ACEOF
  2713. cat confdefs.h >>conftest.$ac_ext
  2714. cat >>conftest.$ac_ext <<_ACEOF
  2715. /* end confdefs.h. */
  2716. int
  2717. main ()
  2718. {
  2719. ;
  2720. return 0;
  2721. }
  2722. _ACEOF
  2723. rm -f conftest.o conftest.obj
  2724. if { (ac_try="$ac_compile"
  2725. case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2730. $as_echo "$ac_try_echo") >&5
  2731. (eval "$ac_compile") 2>&5
  2732. ac_status=$?
  2733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2734. (exit $ac_status); }; then
  2735. for ac_file in conftest.o conftest.obj conftest.*; do
  2736. test -f "$ac_file" || continue;
  2737. case $ac_file in
  2738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2739. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2740. break;;
  2741. esac
  2742. done
  2743. else
  2744. $as_echo "$as_me: failed program was:" >&5
  2745. sed 's/^/| /' conftest.$ac_ext >&5
  2746. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2747. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2748. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2749. See \`config.log' for more details." >&5
  2750. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2751. See \`config.log' for more details." >&2;}
  2752. { (exit 1); exit 1; }; }; }
  2753. fi
  2754. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2755. fi
  2756. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2757. $as_echo "$ac_cv_objext" >&6; }
  2758. OBJEXT=$ac_cv_objext
  2759. ac_objext=$OBJEXT
  2760. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2761. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2762. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. cat >conftest.$ac_ext <<_ACEOF
  2766. /* confdefs.h. */
  2767. _ACEOF
  2768. cat confdefs.h >>conftest.$ac_ext
  2769. cat >>conftest.$ac_ext <<_ACEOF
  2770. /* end confdefs.h. */
  2771. int
  2772. main ()
  2773. {
  2774. #ifndef __GNUC__
  2775. choke me
  2776. #endif
  2777. ;
  2778. return 0;
  2779. }
  2780. _ACEOF
  2781. rm -f conftest.$ac_objext
  2782. if { (ac_try="$ac_compile"
  2783. case "(($ac_try" in
  2784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2785. *) ac_try_echo=$ac_try;;
  2786. esac
  2787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2788. $as_echo "$ac_try_echo") >&5
  2789. (eval "$ac_compile") 2>conftest.er1
  2790. ac_status=$?
  2791. grep -v '^ *+' conftest.er1 >conftest.err
  2792. rm -f conftest.er1
  2793. cat conftest.err >&5
  2794. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. (exit $ac_status); } && {
  2796. test -z "$ac_c_werror_flag" ||
  2797. test ! -s conftest.err
  2798. } && test -s conftest.$ac_objext; then
  2799. ac_compiler_gnu=yes
  2800. else
  2801. $as_echo "$as_me: failed program was:" >&5
  2802. sed 's/^/| /' conftest.$ac_ext >&5
  2803. ac_compiler_gnu=no
  2804. fi
  2805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2806. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2807. fi
  2808. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2809. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2810. if test $ac_compiler_gnu = yes; then
  2811. GCC=yes
  2812. else
  2813. GCC=
  2814. fi
  2815. ac_test_CFLAGS=${CFLAGS+set}
  2816. ac_save_CFLAGS=$CFLAGS
  2817. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2818. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2819. if test "${ac_cv_prog_cc_g+set}" = set; then
  2820. $as_echo_n "(cached) " >&6
  2821. else
  2822. ac_save_c_werror_flag=$ac_c_werror_flag
  2823. ac_c_werror_flag=yes
  2824. ac_cv_prog_cc_g=no
  2825. CFLAGS="-g"
  2826. cat >conftest.$ac_ext <<_ACEOF
  2827. /* confdefs.h. */
  2828. _ACEOF
  2829. cat confdefs.h >>conftest.$ac_ext
  2830. cat >>conftest.$ac_ext <<_ACEOF
  2831. /* end confdefs.h. */
  2832. int
  2833. main ()
  2834. {
  2835. ;
  2836. return 0;
  2837. }
  2838. _ACEOF
  2839. rm -f conftest.$ac_objext
  2840. if { (ac_try="$ac_compile"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2846. $as_echo "$ac_try_echo") >&5
  2847. (eval "$ac_compile") 2>conftest.er1
  2848. ac_status=$?
  2849. grep -v '^ *+' conftest.er1 >conftest.err
  2850. rm -f conftest.er1
  2851. cat conftest.err >&5
  2852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); } && {
  2854. test -z "$ac_c_werror_flag" ||
  2855. test ! -s conftest.err
  2856. } && test -s conftest.$ac_objext; then
  2857. ac_cv_prog_cc_g=yes
  2858. else
  2859. $as_echo "$as_me: failed program was:" >&5
  2860. sed 's/^/| /' conftest.$ac_ext >&5
  2861. CFLAGS=""
  2862. cat >conftest.$ac_ext <<_ACEOF
  2863. /* confdefs.h. */
  2864. _ACEOF
  2865. cat confdefs.h >>conftest.$ac_ext
  2866. cat >>conftest.$ac_ext <<_ACEOF
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. rm -f conftest.$ac_objext
  2876. if { (ac_try="$ac_compile"
  2877. case "(($ac_try" in
  2878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2879. *) ac_try_echo=$ac_try;;
  2880. esac
  2881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2882. $as_echo "$ac_try_echo") >&5
  2883. (eval "$ac_compile") 2>conftest.er1
  2884. ac_status=$?
  2885. grep -v '^ *+' conftest.er1 >conftest.err
  2886. rm -f conftest.er1
  2887. cat conftest.err >&5
  2888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2889. (exit $ac_status); } && {
  2890. test -z "$ac_c_werror_flag" ||
  2891. test ! -s conftest.err
  2892. } && test -s conftest.$ac_objext; then
  2893. :
  2894. else
  2895. $as_echo "$as_me: failed program was:" >&5
  2896. sed 's/^/| /' conftest.$ac_ext >&5
  2897. ac_c_werror_flag=$ac_save_c_werror_flag
  2898. CFLAGS="-g"
  2899. cat >conftest.$ac_ext <<_ACEOF
  2900. /* confdefs.h. */
  2901. _ACEOF
  2902. cat confdefs.h >>conftest.$ac_ext
  2903. cat >>conftest.$ac_ext <<_ACEOF
  2904. /* end confdefs.h. */
  2905. int
  2906. main ()
  2907. {
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. rm -f conftest.$ac_objext
  2913. if { (ac_try="$ac_compile"
  2914. case "(($ac_try" in
  2915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2916. *) ac_try_echo=$ac_try;;
  2917. esac
  2918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2919. $as_echo "$ac_try_echo") >&5
  2920. (eval "$ac_compile") 2>conftest.er1
  2921. ac_status=$?
  2922. grep -v '^ *+' conftest.er1 >conftest.err
  2923. rm -f conftest.er1
  2924. cat conftest.err >&5
  2925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2926. (exit $ac_status); } && {
  2927. test -z "$ac_c_werror_flag" ||
  2928. test ! -s conftest.err
  2929. } && test -s conftest.$ac_objext; then
  2930. ac_cv_prog_cc_g=yes
  2931. else
  2932. $as_echo "$as_me: failed program was:" >&5
  2933. sed 's/^/| /' conftest.$ac_ext >&5
  2934. fi
  2935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2936. fi
  2937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2938. fi
  2939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2940. ac_c_werror_flag=$ac_save_c_werror_flag
  2941. fi
  2942. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2943. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2944. if test "$ac_test_CFLAGS" = set; then
  2945. CFLAGS=$ac_save_CFLAGS
  2946. elif test $ac_cv_prog_cc_g = yes; then
  2947. if test "$GCC" = yes; then
  2948. CFLAGS="-g -O2"
  2949. else
  2950. CFLAGS="-g"
  2951. fi
  2952. else
  2953. if test "$GCC" = yes; then
  2954. CFLAGS="-O2"
  2955. else
  2956. CFLAGS=
  2957. fi
  2958. fi
  2959. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2960. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2961. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. ac_cv_prog_cc_c89=no
  2965. ac_save_CC=$CC
  2966. cat >conftest.$ac_ext <<_ACEOF
  2967. /* confdefs.h. */
  2968. _ACEOF
  2969. cat confdefs.h >>conftest.$ac_ext
  2970. cat >>conftest.$ac_ext <<_ACEOF
  2971. /* end confdefs.h. */
  2972. #include <stdarg.h>
  2973. #include <stdio.h>
  2974. #include <sys/types.h>
  2975. #include <sys/stat.h>
  2976. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2977. struct buf { int x; };
  2978. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2979. static char *e (p, i)
  2980. char **p;
  2981. int i;
  2982. {
  2983. return p[i];
  2984. }
  2985. static char *f (char * (*g) (char **, int), char **p, ...)
  2986. {
  2987. char *s;
  2988. va_list v;
  2989. va_start (v,p);
  2990. s = g (p, va_arg (v,int));
  2991. va_end (v);
  2992. return s;
  2993. }
  2994. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2995. function prototypes and stuff, but not '\xHH' hex character constants.
  2996. These don't provoke an error unfortunately, instead are silently treated
  2997. as 'x'. The following induces an error, until -std is added to get
  2998. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2999. array size at least. It's necessary to write '\x00'==0 to get something
  3000. that's true only with -std. */
  3001. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3002. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3003. inside strings and character constants. */
  3004. #define FOO(x) 'x'
  3005. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3006. int test (int i, double x);
  3007. struct s1 {int (*f) (int a);};
  3008. struct s2 {int (*f) (double a);};
  3009. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3010. int argc;
  3011. char **argv;
  3012. int
  3013. main ()
  3014. {
  3015. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3016. ;
  3017. return 0;
  3018. }
  3019. _ACEOF
  3020. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3021. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3022. do
  3023. CC="$ac_save_CC $ac_arg"
  3024. rm -f conftest.$ac_objext
  3025. if { (ac_try="$ac_compile"
  3026. case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3031. $as_echo "$ac_try_echo") >&5
  3032. (eval "$ac_compile") 2>conftest.er1
  3033. ac_status=$?
  3034. grep -v '^ *+' conftest.er1 >conftest.err
  3035. rm -f conftest.er1
  3036. cat conftest.err >&5
  3037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3038. (exit $ac_status); } && {
  3039. test -z "$ac_c_werror_flag" ||
  3040. test ! -s conftest.err
  3041. } && test -s conftest.$ac_objext; then
  3042. ac_cv_prog_cc_c89=$ac_arg
  3043. else
  3044. $as_echo "$as_me: failed program was:" >&5
  3045. sed 's/^/| /' conftest.$ac_ext >&5
  3046. fi
  3047. rm -f core conftest.err conftest.$ac_objext
  3048. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3049. done
  3050. rm -f conftest.$ac_ext
  3051. CC=$ac_save_CC
  3052. fi
  3053. # AC_CACHE_VAL
  3054. case "x$ac_cv_prog_cc_c89" in
  3055. x)
  3056. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3057. $as_echo "none needed" >&6; } ;;
  3058. xno)
  3059. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3060. $as_echo "unsupported" >&6; } ;;
  3061. *)
  3062. CC="$CC $ac_cv_prog_cc_c89"
  3063. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3064. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3065. esac
  3066. ac_ext=c
  3067. ac_cpp='$CPP $CPPFLAGS'
  3068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3071. depcc="$CC" am_compiler_list=
  3072. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3073. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3074. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3078. # We make a subdir and do the tests there. Otherwise we can end up
  3079. # making bogus files that we don't know about and never remove. For
  3080. # instance it was reported that on HP-UX the gcc test will end up
  3081. # making a dummy file named `D' -- because `-MD' means `put the output
  3082. # in D'.
  3083. mkdir conftest.dir
  3084. # Copy depcomp to subdir because otherwise we won't find it if we're
  3085. # using a relative directory.
  3086. cp "$am_depcomp" conftest.dir
  3087. cd conftest.dir
  3088. # We will build objects and dependencies in a subdirectory because
  3089. # it helps to detect inapplicable dependency modes. For instance
  3090. # both Tru64's cc and ICC support -MD to output dependencies as a
  3091. # side effect of compilation, but ICC will put the dependencies in
  3092. # the current directory while Tru64 will put them in the object
  3093. # directory.
  3094. mkdir sub
  3095. am_cv_CC_dependencies_compiler_type=none
  3096. if test "$am_compiler_list" = ""; then
  3097. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3098. fi
  3099. am__universal=false
  3100. case " $depcc " in #(
  3101. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3102. esac
  3103. for depmode in $am_compiler_list; do
  3104. # Setup a source with many dependencies, because some compilers
  3105. # like to wrap large dependency lists on column 80 (with \), and
  3106. # we should not choose a depcomp mode which is confused by this.
  3107. #
  3108. # We need to recreate these files for each test, as the compiler may
  3109. # overwrite some of them when testing with obscure command lines.
  3110. # This happens at least with the AIX C compiler.
  3111. : > sub/conftest.c
  3112. for i in 1 2 3 4 5 6; do
  3113. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3114. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3115. # Solaris 8's {/usr,}/bin/sh.
  3116. touch sub/conftst$i.h
  3117. done
  3118. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3119. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3120. # mode. It turns out that the SunPro C++ compiler does not properly
  3121. # handle `-M -o', and we need to detect this. Also, some Intel
  3122. # versions had trouble with output in subdirs
  3123. am__obj=sub/conftest.${OBJEXT-o}
  3124. am__minus_obj="-o $am__obj"
  3125. case $depmode in
  3126. gcc)
  3127. # This depmode causes a compiler race in universal mode.
  3128. test "$am__universal" = false || continue
  3129. ;;
  3130. nosideeffect)
  3131. # after this tag, mechanisms are not by side-effect, so they'll
  3132. # only be used when explicitly requested
  3133. if test "x$enable_dependency_tracking" = xyes; then
  3134. continue
  3135. else
  3136. break
  3137. fi
  3138. ;;
  3139. msvisualcpp | msvcmsys)
  3140. # This compiler won't grok `-c -o', but also, the minuso test has
  3141. # not run yet. These depmodes are late enough in the game, and
  3142. # so weak that their functioning should not be impacted.
  3143. am__obj=conftest.${OBJEXT-o}
  3144. am__minus_obj=
  3145. ;;
  3146. none) break ;;
  3147. esac
  3148. if depmode=$depmode \
  3149. source=sub/conftest.c object=$am__obj \
  3150. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3151. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3152. >/dev/null 2>conftest.err &&
  3153. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3154. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3155. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3156. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3157. # icc doesn't choke on unknown options, it will just issue warnings
  3158. # or remarks (even with -Werror). So we grep stderr for any message
  3159. # that says an option was ignored or not supported.
  3160. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3161. # icc: Command line warning: ignoring option '-M'; no argument required
  3162. # The diagnosis changed in icc 8.0:
  3163. # icc: Command line remark: option '-MP' not supported
  3164. if (grep 'ignoring option' conftest.err ||
  3165. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3166. am_cv_CC_dependencies_compiler_type=$depmode
  3167. break
  3168. fi
  3169. fi
  3170. done
  3171. cd ..
  3172. rm -rf conftest.dir
  3173. else
  3174. am_cv_CC_dependencies_compiler_type=none
  3175. fi
  3176. fi
  3177. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3178. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3179. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3180. if
  3181. test "x$enable_dependency_tracking" != xno \
  3182. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3183. am__fastdepCC_TRUE=
  3184. am__fastdepCC_FALSE='#'
  3185. else
  3186. am__fastdepCC_TRUE='#'
  3187. am__fastdepCC_FALSE=
  3188. fi
  3189. ac_ext=c
  3190. ac_cpp='$CPP $CPPFLAGS'
  3191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3194. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3195. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3196. # On Suns, sometimes $CPP names a directory.
  3197. if test -n "$CPP" && test -d "$CPP"; then
  3198. CPP=
  3199. fi
  3200. if test -z "$CPP"; then
  3201. if test "${ac_cv_prog_CPP+set}" = set; then
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. # Double quotes because CPP needs to be expanded
  3205. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3206. do
  3207. ac_preproc_ok=false
  3208. for ac_c_preproc_warn_flag in '' yes
  3209. do
  3210. # Use a header file that comes with gcc, so configuring glibc
  3211. # with a fresh cross-compiler works.
  3212. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3213. # <limits.h> exists even on freestanding compilers.
  3214. # On the NeXT, cc -E runs the code through the compiler's parser,
  3215. # not just through cpp. "Syntax error" is here to catch this case.
  3216. cat >conftest.$ac_ext <<_ACEOF
  3217. /* confdefs.h. */
  3218. _ACEOF
  3219. cat confdefs.h >>conftest.$ac_ext
  3220. cat >>conftest.$ac_ext <<_ACEOF
  3221. /* end confdefs.h. */
  3222. #ifdef __STDC__
  3223. # include <limits.h>
  3224. #else
  3225. # include <assert.h>
  3226. #endif
  3227. Syntax error
  3228. _ACEOF
  3229. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3230. case "(($ac_try" in
  3231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3232. *) ac_try_echo=$ac_try;;
  3233. esac
  3234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3235. $as_echo "$ac_try_echo") >&5
  3236. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3237. ac_status=$?
  3238. grep -v '^ *+' conftest.er1 >conftest.err
  3239. rm -f conftest.er1
  3240. cat conftest.err >&5
  3241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); } >/dev/null && {
  3243. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3244. test ! -s conftest.err
  3245. }; then
  3246. :
  3247. else
  3248. $as_echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250. # Broken: fails on valid input.
  3251. continue
  3252. fi
  3253. rm -f conftest.err conftest.$ac_ext
  3254. # OK, works on sane cases. Now check whether nonexistent headers
  3255. # can be detected and how.
  3256. cat >conftest.$ac_ext <<_ACEOF
  3257. /* confdefs.h. */
  3258. _ACEOF
  3259. cat confdefs.h >>conftest.$ac_ext
  3260. cat >>conftest.$ac_ext <<_ACEOF
  3261. /* end confdefs.h. */
  3262. #include <ac_nonexistent.h>
  3263. _ACEOF
  3264. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3265. case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo") >&5
  3271. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3272. ac_status=$?
  3273. grep -v '^ *+' conftest.er1 >conftest.err
  3274. rm -f conftest.er1
  3275. cat conftest.err >&5
  3276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3277. (exit $ac_status); } >/dev/null && {
  3278. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3279. test ! -s conftest.err
  3280. }; then
  3281. # Broken: success on invalid input.
  3282. continue
  3283. else
  3284. $as_echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. # Passes both tests.
  3287. ac_preproc_ok=:
  3288. break
  3289. fi
  3290. rm -f conftest.err conftest.$ac_ext
  3291. done
  3292. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3293. rm -f conftest.err conftest.$ac_ext
  3294. if $ac_preproc_ok; then
  3295. break
  3296. fi
  3297. done
  3298. ac_cv_prog_CPP=$CPP
  3299. fi
  3300. CPP=$ac_cv_prog_CPP
  3301. else
  3302. ac_cv_prog_CPP=$CPP
  3303. fi
  3304. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3305. $as_echo "$CPP" >&6; }
  3306. ac_preproc_ok=false
  3307. for ac_c_preproc_warn_flag in '' yes
  3308. do
  3309. # Use a header file that comes with gcc, so configuring glibc
  3310. # with a fresh cross-compiler works.
  3311. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3312. # <limits.h> exists even on freestanding compilers.
  3313. # On the NeXT, cc -E runs the code through the compiler's parser,
  3314. # not just through cpp. "Syntax error" is here to catch this case.
  3315. cat >conftest.$ac_ext <<_ACEOF
  3316. /* confdefs.h. */
  3317. _ACEOF
  3318. cat confdefs.h >>conftest.$ac_ext
  3319. cat >>conftest.$ac_ext <<_ACEOF
  3320. /* end confdefs.h. */
  3321. #ifdef __STDC__
  3322. # include <limits.h>
  3323. #else
  3324. # include <assert.h>
  3325. #endif
  3326. Syntax error
  3327. _ACEOF
  3328. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3329. case "(($ac_try" in
  3330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3331. *) ac_try_echo=$ac_try;;
  3332. esac
  3333. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3334. $as_echo "$ac_try_echo") >&5
  3335. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3336. ac_status=$?
  3337. grep -v '^ *+' conftest.er1 >conftest.err
  3338. rm -f conftest.er1
  3339. cat conftest.err >&5
  3340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3341. (exit $ac_status); } >/dev/null && {
  3342. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3343. test ! -s conftest.err
  3344. }; then
  3345. :
  3346. else
  3347. $as_echo "$as_me: failed program was:" >&5
  3348. sed 's/^/| /' conftest.$ac_ext >&5
  3349. # Broken: fails on valid input.
  3350. continue
  3351. fi
  3352. rm -f conftest.err conftest.$ac_ext
  3353. # OK, works on sane cases. Now check whether nonexistent headers
  3354. # can be detected and how.
  3355. cat >conftest.$ac_ext <<_ACEOF
  3356. /* confdefs.h. */
  3357. _ACEOF
  3358. cat confdefs.h >>conftest.$ac_ext
  3359. cat >>conftest.$ac_ext <<_ACEOF
  3360. /* end confdefs.h. */
  3361. #include <ac_nonexistent.h>
  3362. _ACEOF
  3363. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3364. case "(($ac_try" in
  3365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3366. *) ac_try_echo=$ac_try;;
  3367. esac
  3368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3369. $as_echo "$ac_try_echo") >&5
  3370. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3371. ac_status=$?
  3372. grep -v '^ *+' conftest.er1 >conftest.err
  3373. rm -f conftest.er1
  3374. cat conftest.err >&5
  3375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); } >/dev/null && {
  3377. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3378. test ! -s conftest.err
  3379. }; then
  3380. # Broken: success on invalid input.
  3381. continue
  3382. else
  3383. $as_echo "$as_me: failed program was:" >&5
  3384. sed 's/^/| /' conftest.$ac_ext >&5
  3385. # Passes both tests.
  3386. ac_preproc_ok=:
  3387. break
  3388. fi
  3389. rm -f conftest.err conftest.$ac_ext
  3390. done
  3391. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3392. rm -f conftest.err conftest.$ac_ext
  3393. if $ac_preproc_ok; then
  3394. :
  3395. else
  3396. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3398. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3399. See \`config.log' for more details." >&5
  3400. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3401. See \`config.log' for more details." >&2;}
  3402. { (exit 1); exit 1; }; }; }
  3403. fi
  3404. ac_ext=c
  3405. ac_cpp='$CPP $CPPFLAGS'
  3406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3409. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3410. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3411. if test "${ac_cv_path_GREP+set}" = set; then
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. if test -z "$GREP"; then
  3415. ac_path_GREP_found=false
  3416. # Loop through the user's path and test for each of PROGNAME-LIST
  3417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3418. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3419. do
  3420. IFS=$as_save_IFS
  3421. test -z "$as_dir" && as_dir=.
  3422. for ac_prog in grep ggrep; do
  3423. for ac_exec_ext in '' $ac_executable_extensions; do
  3424. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3425. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3426. # Check for GNU ac_path_GREP and select it if it is found.
  3427. # Check for GNU $ac_path_GREP
  3428. case `"$ac_path_GREP" --version 2>&1` in
  3429. *GNU*)
  3430. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3431. *)
  3432. ac_count=0
  3433. $as_echo_n 0123456789 >"conftest.in"
  3434. while :
  3435. do
  3436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3437. mv "conftest.tmp" "conftest.in"
  3438. cp "conftest.in" "conftest.nl"
  3439. $as_echo 'GREP' >> "conftest.nl"
  3440. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3442. ac_count=`expr $ac_count + 1`
  3443. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3444. # Best one so far, save it but keep looking for a better one
  3445. ac_cv_path_GREP="$ac_path_GREP"
  3446. ac_path_GREP_max=$ac_count
  3447. fi
  3448. # 10*(2^10) chars as input seems more than enough
  3449. test $ac_count -gt 10 && break
  3450. done
  3451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3452. esac
  3453. $ac_path_GREP_found && break 3
  3454. done
  3455. done
  3456. done
  3457. IFS=$as_save_IFS
  3458. if test -z "$ac_cv_path_GREP"; then
  3459. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3460. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3461. { (exit 1); exit 1; }; }
  3462. fi
  3463. else
  3464. ac_cv_path_GREP=$GREP
  3465. fi
  3466. fi
  3467. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3468. $as_echo "$ac_cv_path_GREP" >&6; }
  3469. GREP="$ac_cv_path_GREP"
  3470. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3471. $as_echo_n "checking for egrep... " >&6; }
  3472. if test "${ac_cv_path_EGREP+set}" = set; then
  3473. $as_echo_n "(cached) " >&6
  3474. else
  3475. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3476. then ac_cv_path_EGREP="$GREP -E"
  3477. else
  3478. if test -z "$EGREP"; then
  3479. ac_path_EGREP_found=false
  3480. # Loop through the user's path and test for each of PROGNAME-LIST
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_prog in egrep; do
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3489. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3490. # Check for GNU ac_path_EGREP and select it if it is found.
  3491. # Check for GNU $ac_path_EGREP
  3492. case `"$ac_path_EGREP" --version 2>&1` in
  3493. *GNU*)
  3494. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3495. *)
  3496. ac_count=0
  3497. $as_echo_n 0123456789 >"conftest.in"
  3498. while :
  3499. do
  3500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3501. mv "conftest.tmp" "conftest.in"
  3502. cp "conftest.in" "conftest.nl"
  3503. $as_echo 'EGREP' >> "conftest.nl"
  3504. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3506. ac_count=`expr $ac_count + 1`
  3507. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3508. # Best one so far, save it but keep looking for a better one
  3509. ac_cv_path_EGREP="$ac_path_EGREP"
  3510. ac_path_EGREP_max=$ac_count
  3511. fi
  3512. # 10*(2^10) chars as input seems more than enough
  3513. test $ac_count -gt 10 && break
  3514. done
  3515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3516. esac
  3517. $ac_path_EGREP_found && break 3
  3518. done
  3519. done
  3520. done
  3521. IFS=$as_save_IFS
  3522. if test -z "$ac_cv_path_EGREP"; then
  3523. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3524. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3525. { (exit 1); exit 1; }; }
  3526. fi
  3527. else
  3528. ac_cv_path_EGREP=$EGREP
  3529. fi
  3530. fi
  3531. fi
  3532. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3533. $as_echo "$ac_cv_path_EGREP" >&6; }
  3534. EGREP="$ac_cv_path_EGREP"
  3535. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3536. $as_echo_n "checking for ANSI C header files... " >&6; }
  3537. if test "${ac_cv_header_stdc+set}" = set; then
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. cat >conftest.$ac_ext <<_ACEOF
  3541. /* confdefs.h. */
  3542. _ACEOF
  3543. cat confdefs.h >>conftest.$ac_ext
  3544. cat >>conftest.$ac_ext <<_ACEOF
  3545. /* end confdefs.h. */
  3546. #include <stdlib.h>
  3547. #include <stdarg.h>
  3548. #include <string.h>
  3549. #include <float.h>
  3550. int
  3551. main ()
  3552. {
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. rm -f conftest.$ac_objext
  3558. if { (ac_try="$ac_compile"
  3559. case "(($ac_try" in
  3560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3561. *) ac_try_echo=$ac_try;;
  3562. esac
  3563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3564. $as_echo "$ac_try_echo") >&5
  3565. (eval "$ac_compile") 2>conftest.er1
  3566. ac_status=$?
  3567. grep -v '^ *+' conftest.er1 >conftest.err
  3568. rm -f conftest.er1
  3569. cat conftest.err >&5
  3570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3571. (exit $ac_status); } && {
  3572. test -z "$ac_c_werror_flag" ||
  3573. test ! -s conftest.err
  3574. } && test -s conftest.$ac_objext; then
  3575. ac_cv_header_stdc=yes
  3576. else
  3577. $as_echo "$as_me: failed program was:" >&5
  3578. sed 's/^/| /' conftest.$ac_ext >&5
  3579. ac_cv_header_stdc=no
  3580. fi
  3581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3582. if test $ac_cv_header_stdc = yes; then
  3583. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3584. cat >conftest.$ac_ext <<_ACEOF
  3585. /* confdefs.h. */
  3586. _ACEOF
  3587. cat confdefs.h >>conftest.$ac_ext
  3588. cat >>conftest.$ac_ext <<_ACEOF
  3589. /* end confdefs.h. */
  3590. #include <string.h>
  3591. _ACEOF
  3592. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3593. $EGREP "memchr" >/dev/null 2>&1; then
  3594. :
  3595. else
  3596. ac_cv_header_stdc=no
  3597. fi
  3598. rm -f conftest*
  3599. fi
  3600. if test $ac_cv_header_stdc = yes; then
  3601. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3602. cat >conftest.$ac_ext <<_ACEOF
  3603. /* confdefs.h. */
  3604. _ACEOF
  3605. cat confdefs.h >>conftest.$ac_ext
  3606. cat >>conftest.$ac_ext <<_ACEOF
  3607. /* end confdefs.h. */
  3608. #include <stdlib.h>
  3609. _ACEOF
  3610. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3611. $EGREP "free" >/dev/null 2>&1; then
  3612. :
  3613. else
  3614. ac_cv_header_stdc=no
  3615. fi
  3616. rm -f conftest*
  3617. fi
  3618. if test $ac_cv_header_stdc = yes; then
  3619. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3620. if test "$cross_compiling" = yes; then
  3621. :
  3622. else
  3623. cat >conftest.$ac_ext <<_ACEOF
  3624. /* confdefs.h. */
  3625. _ACEOF
  3626. cat confdefs.h >>conftest.$ac_ext
  3627. cat >>conftest.$ac_ext <<_ACEOF
  3628. /* end confdefs.h. */
  3629. #include <ctype.h>
  3630. #include <stdlib.h>
  3631. #if ((' ' & 0x0FF) == 0x020)
  3632. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3633. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3634. #else
  3635. # define ISLOWER(c) \
  3636. (('a' <= (c) && (c) <= 'i') \
  3637. || ('j' <= (c) && (c) <= 'r') \
  3638. || ('s' <= (c) && (c) <= 'z'))
  3639. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3640. #endif
  3641. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3642. int
  3643. main ()
  3644. {
  3645. int i;
  3646. for (i = 0; i < 256; i++)
  3647. if (XOR (islower (i), ISLOWER (i))
  3648. || toupper (i) != TOUPPER (i))
  3649. return 2;
  3650. return 0;
  3651. }
  3652. _ACEOF
  3653. rm -f conftest$ac_exeext
  3654. if { (ac_try="$ac_link"
  3655. case "(($ac_try" in
  3656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3657. *) ac_try_echo=$ac_try;;
  3658. esac
  3659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3660. $as_echo "$ac_try_echo") >&5
  3661. (eval "$ac_link") 2>&5
  3662. ac_status=$?
  3663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3664. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3665. { (case "(($ac_try" in
  3666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3667. *) ac_try_echo=$ac_try;;
  3668. esac
  3669. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3670. $as_echo "$ac_try_echo") >&5
  3671. (eval "$ac_try") 2>&5
  3672. ac_status=$?
  3673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3674. (exit $ac_status); }; }; then
  3675. :
  3676. else
  3677. $as_echo "$as_me: program exited with status $ac_status" >&5
  3678. $as_echo "$as_me: failed program was:" >&5
  3679. sed 's/^/| /' conftest.$ac_ext >&5
  3680. ( exit $ac_status )
  3681. ac_cv_header_stdc=no
  3682. fi
  3683. rm -rf conftest.dSYM
  3684. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3685. fi
  3686. fi
  3687. fi
  3688. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3689. $as_echo "$ac_cv_header_stdc" >&6; }
  3690. if test $ac_cv_header_stdc = yes; then
  3691. cat >>confdefs.h <<\_ACEOF
  3692. #define STDC_HEADERS 1
  3693. _ACEOF
  3694. fi
  3695. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3696. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3697. inttypes.h stdint.h unistd.h
  3698. do
  3699. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3700. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3701. $as_echo_n "checking for $ac_header... " >&6; }
  3702. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. cat >conftest.$ac_ext <<_ACEOF
  3706. /* confdefs.h. */
  3707. _ACEOF
  3708. cat confdefs.h >>conftest.$ac_ext
  3709. cat >>conftest.$ac_ext <<_ACEOF
  3710. /* end confdefs.h. */
  3711. $ac_includes_default
  3712. #include <$ac_header>
  3713. _ACEOF
  3714. rm -f conftest.$ac_objext
  3715. if { (ac_try="$ac_compile"
  3716. case "(($ac_try" in
  3717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3718. *) ac_try_echo=$ac_try;;
  3719. esac
  3720. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3721. $as_echo "$ac_try_echo") >&5
  3722. (eval "$ac_compile") 2>conftest.er1
  3723. ac_status=$?
  3724. grep -v '^ *+' conftest.er1 >conftest.err
  3725. rm -f conftest.er1
  3726. cat conftest.err >&5
  3727. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728. (exit $ac_status); } && {
  3729. test -z "$ac_c_werror_flag" ||
  3730. test ! -s conftest.err
  3731. } && test -s conftest.$ac_objext; then
  3732. eval "$as_ac_Header=yes"
  3733. else
  3734. $as_echo "$as_me: failed program was:" >&5
  3735. sed 's/^/| /' conftest.$ac_ext >&5
  3736. eval "$as_ac_Header=no"
  3737. fi
  3738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3739. fi
  3740. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3741. $as_echo "$as_val"'`
  3742. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3743. $as_echo "$ac_res" >&6; }
  3744. as_val=`eval 'as_val=${'$as_ac_Header'}
  3745. $as_echo "$as_val"'`
  3746. if test "x$as_val" = x""yes; then
  3747. cat >>confdefs.h <<_ACEOF
  3748. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3749. _ACEOF
  3750. fi
  3751. done
  3752. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3753. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3754. $as_echo_n "checking for minix/config.h... " >&6; }
  3755. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3756. $as_echo_n "(cached) " >&6
  3757. fi
  3758. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3759. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3760. else
  3761. # Is the header compilable?
  3762. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3763. $as_echo_n "checking minix/config.h usability... " >&6; }
  3764. cat >conftest.$ac_ext <<_ACEOF
  3765. /* confdefs.h. */
  3766. _ACEOF
  3767. cat confdefs.h >>conftest.$ac_ext
  3768. cat >>conftest.$ac_ext <<_ACEOF
  3769. /* end confdefs.h. */
  3770. $ac_includes_default
  3771. #include <minix/config.h>
  3772. _ACEOF
  3773. rm -f conftest.$ac_objext
  3774. if { (ac_try="$ac_compile"
  3775. case "(($ac_try" in
  3776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3777. *) ac_try_echo=$ac_try;;
  3778. esac
  3779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3780. $as_echo "$ac_try_echo") >&5
  3781. (eval "$ac_compile") 2>conftest.er1
  3782. ac_status=$?
  3783. grep -v '^ *+' conftest.er1 >conftest.err
  3784. rm -f conftest.er1
  3785. cat conftest.err >&5
  3786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3787. (exit $ac_status); } && {
  3788. test -z "$ac_c_werror_flag" ||
  3789. test ! -s conftest.err
  3790. } && test -s conftest.$ac_objext; then
  3791. ac_header_compiler=yes
  3792. else
  3793. $as_echo "$as_me: failed program was:" >&5
  3794. sed 's/^/| /' conftest.$ac_ext >&5
  3795. ac_header_compiler=no
  3796. fi
  3797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3798. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3799. $as_echo "$ac_header_compiler" >&6; }
  3800. # Is the header present?
  3801. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3802. $as_echo_n "checking minix/config.h presence... " >&6; }
  3803. cat >conftest.$ac_ext <<_ACEOF
  3804. /* confdefs.h. */
  3805. _ACEOF
  3806. cat confdefs.h >>conftest.$ac_ext
  3807. cat >>conftest.$ac_ext <<_ACEOF
  3808. /* end confdefs.h. */
  3809. #include <minix/config.h>
  3810. _ACEOF
  3811. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3812. case "(($ac_try" in
  3813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3814. *) ac_try_echo=$ac_try;;
  3815. esac
  3816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3817. $as_echo "$ac_try_echo") >&5
  3818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3819. ac_status=$?
  3820. grep -v '^ *+' conftest.er1 >conftest.err
  3821. rm -f conftest.er1
  3822. cat conftest.err >&5
  3823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); } >/dev/null && {
  3825. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3826. test ! -s conftest.err
  3827. }; then
  3828. ac_header_preproc=yes
  3829. else
  3830. $as_echo "$as_me: failed program was:" >&5
  3831. sed 's/^/| /' conftest.$ac_ext >&5
  3832. ac_header_preproc=no
  3833. fi
  3834. rm -f conftest.err conftest.$ac_ext
  3835. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3836. $as_echo "$ac_header_preproc" >&6; }
  3837. # So? What about this header?
  3838. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3839. yes:no: )
  3840. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3841. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3842. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3843. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3844. ac_header_preproc=yes
  3845. ;;
  3846. no:yes:* )
  3847. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3848. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3849. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3850. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3851. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3852. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3853. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3854. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3855. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3856. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3857. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3858. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3859. ;;
  3860. esac
  3861. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3862. $as_echo_n "checking for minix/config.h... " >&6; }
  3863. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. ac_cv_header_minix_config_h=$ac_header_preproc
  3867. fi
  3868. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3869. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3870. fi
  3871. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3872. MINIX=yes
  3873. else
  3874. MINIX=
  3875. fi
  3876. if test "$MINIX" = yes; then
  3877. cat >>confdefs.h <<\_ACEOF
  3878. #define _POSIX_SOURCE 1
  3879. _ACEOF
  3880. cat >>confdefs.h <<\_ACEOF
  3881. #define _POSIX_1_SOURCE 2
  3882. _ACEOF
  3883. cat >>confdefs.h <<\_ACEOF
  3884. #define _MINIX 1
  3885. _ACEOF
  3886. fi
  3887. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3888. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3889. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. cat >conftest.$ac_ext <<_ACEOF
  3893. /* confdefs.h. */
  3894. _ACEOF
  3895. cat confdefs.h >>conftest.$ac_ext
  3896. cat >>conftest.$ac_ext <<_ACEOF
  3897. /* end confdefs.h. */
  3898. # define __EXTENSIONS__ 1
  3899. $ac_includes_default
  3900. int
  3901. main ()
  3902. {
  3903. ;
  3904. return 0;
  3905. }
  3906. _ACEOF
  3907. rm -f conftest.$ac_objext
  3908. if { (ac_try="$ac_compile"
  3909. case "(($ac_try" in
  3910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3911. *) ac_try_echo=$ac_try;;
  3912. esac
  3913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3914. $as_echo "$ac_try_echo") >&5
  3915. (eval "$ac_compile") 2>conftest.er1
  3916. ac_status=$?
  3917. grep -v '^ *+' conftest.er1 >conftest.err
  3918. rm -f conftest.er1
  3919. cat conftest.err >&5
  3920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3921. (exit $ac_status); } && {
  3922. test -z "$ac_c_werror_flag" ||
  3923. test ! -s conftest.err
  3924. } && test -s conftest.$ac_objext; then
  3925. ac_cv_safe_to_define___extensions__=yes
  3926. else
  3927. $as_echo "$as_me: failed program was:" >&5
  3928. sed 's/^/| /' conftest.$ac_ext >&5
  3929. ac_cv_safe_to_define___extensions__=no
  3930. fi
  3931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3932. fi
  3933. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3934. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3935. test $ac_cv_safe_to_define___extensions__ = yes &&
  3936. cat >>confdefs.h <<\_ACEOF
  3937. #define __EXTENSIONS__ 1
  3938. _ACEOF
  3939. cat >>confdefs.h <<\_ACEOF
  3940. #define _ALL_SOURCE 1
  3941. _ACEOF
  3942. cat >>confdefs.h <<\_ACEOF
  3943. #define _GNU_SOURCE 1
  3944. _ACEOF
  3945. cat >>confdefs.h <<\_ACEOF
  3946. #define _POSIX_PTHREAD_SEMANTICS 1
  3947. _ACEOF
  3948. cat >>confdefs.h <<\_ACEOF
  3949. #define _TANDEM_SOURCE 1
  3950. _ACEOF
  3951. cat >>confdefs.h <<_ACEOF
  3952. #define VERSION "$fullversion"
  3953. _ACEOF
  3954. # Check whether --with-distribution was given.
  3955. if test "${with_distribution+set}" = set; then
  3956. withval=$with_distribution; distribution=$withval
  3957. fi
  3958. # Check whether --with-target was given.
  3959. if test "${with_target+set}" = set; then
  3960. withval=$with_target; target=$withval
  3961. fi
  3962. case $target in
  3963. Linux|linux)
  3964. cat >>confdefs.h <<\_ACEOF
  3965. #define TARGET TARGET_LINUX
  3966. _ACEOF
  3967. target="Linux"
  3968. ;;
  3969. BSD| bsd)
  3970. cat >>confdefs.h <<\_ACEOF
  3971. #define TARGET TARGET_BSD
  3972. _ACEOF
  3973. target="BSD"
  3974. ;;
  3975. Cygwin|CYGWIN|cygwin)
  3976. cat >>confdefs.h <<\_ACEOF
  3977. #define TARGET TARGET_CYGWIN
  3978. _ACEOF
  3979. target="cygwin"
  3980. ;;
  3981. autodetect)
  3982. ;;
  3983. *)
  3984. { { $as_echo "$as_me:$LINENO: error: --with-target must have Linux, BSD or Cygwin as parameter." >&5
  3985. $as_echo "$as_me: error: --with-target must have Linux, BSD or Cygwin as parameter." >&2;}
  3986. { (exit 1); exit 1; }; }
  3987. ;;
  3988. esac
  3989. # Check whether --with-cachedir was given.
  3990. if test "${with_cachedir+set}" = set; then
  3991. withval=$with_cachedir; cachedir=$withval
  3992. fi
  3993. cat >>confdefs.h <<_ACEOF
  3994. #define CACHEDIR "$cachedir"
  3995. _ACEOF
  3996. # Check whether --enable-isdn was given.
  3997. if test "${enable_isdn+set}" = set; then
  3998. enableval=$enable_isdn; test $enableval = "yes" && cat >>confdefs.h <<\_ACEOF
  3999. #define ISDN_SUPPORT 1
  4000. _ACEOF
  4001. fi
  4002. # Check whether --enable-ipv4 was given.
  4003. if test "${enable_ipv4+set}" = set; then
  4004. enableval=$enable_ipv4; have_ipv4=$enableval
  4005. fi
  4006. test $have_ipv4 = "yes" && cat >>confdefs.h <<\_ACEOF
  4007. #define ENABLE_IPV4 1
  4008. _ACEOF
  4009. # Check whether --enable-ipv6 was given.
  4010. if test "${enable_ipv6+set}" = set; then
  4011. enableval=$enable_ipv6; if test $enableval = "yes" ; then
  4012. cat >>confdefs.h <<\_ACEOF
  4013. #define ENABLE_IPV6 1
  4014. _ACEOF
  4015. if test $have_ipv4 != "yes" ; then
  4016. ipv4_default=0
  4017. fi
  4018. fi
  4019. fi
  4020. # Check whether --enable-ipv4-startup was given.
  4021. if test "${enable_ipv4_startup+set}" = set; then
  4022. enableval=$enable_ipv4_startup; if test $enableval = "yes" ; then
  4023. ipv4_default=1
  4024. else
  4025. ipv4_default=0
  4026. fi
  4027. fi
  4028. # Check whether --enable-ipv6-startup was given.
  4029. if test "${enable_ipv6_startup+set}" = set; then
  4030. enableval=$enable_ipv6_startup; if test $enableval = "yes" ; then
  4031. ipv4_default=0
  4032. else
  4033. ipv4_default=1
  4034. fi
  4035. fi
  4036. cat >>confdefs.h <<_ACEOF
  4037. #define DEFAULT_IPV4 $ipv4_default
  4038. _ACEOF
  4039. # Check whether --enable-udp-queries was given.
  4040. if test "${enable_udp_queries+set}" = set; then
  4041. enableval=$enable_udp_queries; udp_queries=$enableval
  4042. fi
  4043. # Check whether --enable-tcp-queries was given.
  4044. if test "${enable_tcp_queries+set}" = set; then
  4045. enableval=$enable_tcp_queries; tcp_queries=$enableval
  4046. fi
  4047. # Check whether --with-query-method was given.
  4048. if test "${with_query_method+set}" = set; then
  4049. withval=$with_query_method; query_m=$withval
  4050. fi
  4051. case $query_m in
  4052. udponly|UDPonly)
  4053. cat >>confdefs.h <<\_ACEOF
  4054. #define M_PRESET UDP_ONLY
  4055. _ACEOF
  4056. udp_queries=yes;
  4057. ;;
  4058. tcponly|TCPonly)
  4059. cat >>confdefs.h <<\_ACEOF
  4060. #define M_PRESET TCP_ONLY
  4061. _ACEOF
  4062. tcp_queries=yes;
  4063. ;;
  4064. tcpudp|TCPUDP)
  4065. cat >>confdefs.h <<\_ACEOF
  4066. #define M_PRESET TCP_UDP
  4067. _ACEOF
  4068. udp_queries=yes;
  4069. tcp_queries=yes;
  4070. ;;
  4071. udptcp|UDPTCP)
  4072. cat >>confdefs.h <<\_ACEOF
  4073. #define M_PRESET UDP_TCP
  4074. _ACEOF
  4075. udp_queries=yes;
  4076. tcp_queries=yes;
  4077. ;;
  4078. *)
  4079. { { $as_echo "$as_me:$LINENO: error: --with-query-method must have udponly, tcponly, tcpudp or udptcp as parameter." >&5
  4080. $as_echo "$as_me: error: --with-query-method must have udponly, tcponly, tcpudp or udptcp as parameter." >&2;}
  4081. { (exit 1); exit 1; }; }
  4082. ;;
  4083. esac
  4084. test $udp_queries != "yes" && cat >>confdefs.h <<\_ACEOF
  4085. #define NO_UDP_QUERIES 1
  4086. _ACEOF
  4087. test $tcp_queries != "yes" && cat >>confdefs.h <<\_ACEOF
  4088. #define NO_TCP_QUERIES 1
  4089. _ACEOF
  4090. # Check whether --enable-tcp-server was given.
  4091. if test "${enable_tcp_server+set}" = set; then
  4092. enableval=$enable_tcp_server; have_tcp_server=$enableval
  4093. fi
  4094. test $have_tcp_server != "yes" && cat >>confdefs.h <<\_ACEOF
  4095. #define NO_TCP_SERVER 1
  4096. _ACEOF
  4097. # Check whether --enable-src-addr-disc was given.
  4098. if test "${enable_src_addr_disc+set}" = set; then
  4099. enableval=$enable_src_addr_disc; adisc=$enableval
  4100. fi
  4101. # Check whether --enable-socket-locking was given.
  4102. if test "${enable_socket_locking+set}" = set; then
  4103. enableval=$enable_socket_locking; slock=$enableval
  4104. fi
  4105. test $slock = "yes" && cat >>confdefs.h <<\_ACEOF
  4106. #define SOCKET_LOCKING 1
  4107. _ACEOF
  4108. # Check whether --enable-poll was given.
  4109. if test "${enable_poll+set}" = set; then
  4110. enableval=$enable_poll; test $enableval != "yes" && cat >>confdefs.h <<\_ACEOF
  4111. #define NO_POLL 1
  4112. _ACEOF
  4113. fi
  4114. # Check whether --enable-new-rrs was given.
  4115. if test "${enable_new_rrs+set}" = set; then
  4116. enableval=$enable_new_rrs; newrrs=$enableval
  4117. fi
  4118. # Check whether --enable-strict-rfc2181 was given.
  4119. if test "${enable_strict_rfc2181+set}" = set; then
  4120. enableval=$enable_strict_rfc2181; test $enableval = "yes" && cat >>confdefs.h <<\_ACEOF
  4121. #define RFC2181_ME_HARDER 1
  4122. _ACEOF
  4123. fi
  4124. # Check whether --with-random-device was given.
  4125. if test "${with_random_device+set}" = set; then
  4126. withval=$with_random_device; randomdev=$withval
  4127. fi
  4128. if test "$randomdev" = arc4random ; then
  4129. cat >>confdefs.h <<\_ACEOF
  4130. #define R_ARC4RANDOM 1
  4131. _ACEOF
  4132. elif test "$randomdev" = random ; then
  4133. cat >>confdefs.h <<\_ACEOF
  4134. #define R_RANDOM 1
  4135. _ACEOF
  4136. elif test "$randomdev" = default ; then
  4137. cat >>confdefs.h <<\_ACEOF
  4138. #define R_DEFAULT 1
  4139. _ACEOF
  4140. else
  4141. cat >>confdefs.h <<_ACEOF
  4142. #define RANDOM_DEVICE "$randomdev"
  4143. _ACEOF
  4144. fi
  4145. # Check whether --enable-underscores was given.
  4146. if test "${enable_underscores+set}" = set; then
  4147. enableval=$enable_underscores; underscores=$enableval
  4148. fi
  4149. # Check whether --with-default-id was given.
  4150. if test "${with_default_id+set}" = set; then
  4151. withval=$with_default_id; def_id=$withval
  4152. fi
  4153. # Check whether --with-debug was given.
  4154. if test "${with_debug+set}" = set; then
  4155. withval=$with_debug; cat >>confdefs.h <<_ACEOF
  4156. #define DEBUG $withval
  4157. _ACEOF
  4158. fi
  4159. # Check whether --with-verbosity was given.
  4160. if test "${with_verbosity+set}" = set; then
  4161. withval=$with_verbosity; cat >>confdefs.h <<_ACEOF
  4162. #define VERBOSITY $withval
  4163. _ACEOF
  4164. fi
  4165. # Check whether --with-hash-buckets was given.
  4166. if test "${with_hash_buckets+set}" = set; then
  4167. withval=$with_hash_buckets; powof2=1
  4168. hashsz=0
  4169. while test $powof2 -lt "$withval"
  4170. do
  4171. powof2=`expr 2 '*' $powof2`
  4172. hashsz=`expr $hashsz '+' 1`
  4173. done
  4174. cat >>confdefs.h <<_ACEOF
  4175. #define HASH_SZ $hashsz
  4176. _ACEOF
  4177. fi
  4178. # Check whether --enable-hash-debug was given.
  4179. if test "${enable_hash_debug+set}" = set; then
  4180. enableval=$enable_hash_debug; test $enableval = "yes" && cat >>confdefs.h <<\_ACEOF
  4181. #define DEBUG_HASH 1
  4182. _ACEOF
  4183. fi
  4184. # Check whether --enable-rcsids was given.
  4185. if test "${enable_rcsids+set}" = set; then
  4186. enableval=$enable_rcsids; have_rcsids=$enableval
  4187. fi
  4188. # Check whether --with-tcp-qtimeout was given.
  4189. if test "${with_tcp_qtimeout+set}" = set; then
  4190. withval=$with_tcp_qtimeout; cat >>confdefs.h <<_ACEOF
  4191. #define TCP_TIMEOUT $withval
  4192. _ACEOF
  4193. fi
  4194. # Check whether --enable-tcp-subseq was given.
  4195. if test "${enable_tcp_subseq+set}" = set; then
  4196. enableval=$enable_tcp_subseq; test $enableval = "yes" && cat >>confdefs.h <<\_ACEOF
  4197. #define TCP_SUBSEQ 1
  4198. _ACEOF
  4199. fi
  4200. # Check whether --with-par-queries was given.
  4201. if test "${with_par_queries+set}" = set; then
  4202. withval=$with_par_queries; cat >>confdefs.h <<_ACEOF
  4203. #define PAR_QUERIES $withval
  4204. _ACEOF
  4205. fi
  4206. # Check whether --with-max-nameserver-ips was given.
  4207. if test "${with_max_nameserver_ips+set}" = set; then
  4208. withval=$with_max_nameserver_ips; cat >>confdefs.h <<_ACEOF
  4209. #define MAXNAMESERVIPS $withval
  4210. _ACEOF
  4211. fi
  4212. # Check whether --enable-specbuild was given.
  4213. if test "${enable_specbuild+set}" = set; then
  4214. enableval=$enable_specbuild; specbuild=$enableval
  4215. fi
  4216. # Check whether --with-thread-lib was given.
  4217. if test "${with_thread_lib+set}" = set; then
  4218. withval=$with_thread_lib; threadlib=$withval
  4219. fi
  4220. ac_ext=c
  4221. ac_cpp='$CPP $CPPFLAGS'
  4222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4225. if test -n "$ac_tool_prefix"; then
  4226. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4227. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4228. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4229. $as_echo_n "checking for $ac_word... " >&6; }
  4230. if test "${ac_cv_prog_CC+set}" = set; then
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. if test -n "$CC"; then
  4234. ac_cv_prog_CC="$CC" # Let the user override the test.
  4235. else
  4236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4237. for as_dir in $PATH
  4238. do
  4239. IFS=$as_save_IFS
  4240. test -z "$as_dir" && as_dir=.
  4241. for ac_exec_ext in '' $ac_executable_extensions; do
  4242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4243. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4244. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4245. break 2
  4246. fi
  4247. done
  4248. done
  4249. IFS=$as_save_IFS
  4250. fi
  4251. fi
  4252. CC=$ac_cv_prog_CC
  4253. if test -n "$CC"; then
  4254. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4255. $as_echo "$CC" >&6; }
  4256. else
  4257. { $as_echo "$as_me:$LINENO: result: no" >&5
  4258. $as_echo "no" >&6; }
  4259. fi
  4260. fi
  4261. if test -z "$ac_cv_prog_CC"; then
  4262. ac_ct_CC=$CC
  4263. # Extract the first word of "gcc", so it can be a program name with args.
  4264. set dummy gcc; ac_word=$2
  4265. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4266. $as_echo_n "checking for $ac_word... " >&6; }
  4267. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. if test -n "$ac_ct_CC"; then
  4271. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4272. else
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. test -z "$as_dir" && as_dir=.
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4280. ac_cv_prog_ac_ct_CC="gcc"
  4281. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4282. break 2
  4283. fi
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. fi
  4288. fi
  4289. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4290. if test -n "$ac_ct_CC"; then
  4291. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4292. $as_echo "$ac_ct_CC" >&6; }
  4293. else
  4294. { $as_echo "$as_me:$LINENO: result: no" >&5
  4295. $as_echo "no" >&6; }
  4296. fi
  4297. if test "x$ac_ct_CC" = x; then
  4298. CC=""
  4299. else
  4300. case $cross_compiling:$ac_tool_warned in
  4301. yes:)
  4302. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4303. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4304. ac_tool_warned=yes ;;
  4305. esac
  4306. CC=$ac_ct_CC
  4307. fi
  4308. else
  4309. CC="$ac_cv_prog_CC"
  4310. fi
  4311. if test -z "$CC"; then
  4312. if test -n "$ac_tool_prefix"; then
  4313. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4314. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4315. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4316. $as_echo_n "checking for $ac_word... " >&6; }
  4317. if test "${ac_cv_prog_CC+set}" = set; then
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. if test -n "$CC"; then
  4321. ac_cv_prog_CC="$CC" # Let the user override the test.
  4322. else
  4323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4324. for as_dir in $PATH
  4325. do
  4326. IFS=$as_save_IFS
  4327. test -z "$as_dir" && as_dir=.
  4328. for ac_exec_ext in '' $ac_executable_extensions; do
  4329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4330. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4331. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4332. break 2
  4333. fi
  4334. done
  4335. done
  4336. IFS=$as_save_IFS
  4337. fi
  4338. fi
  4339. CC=$ac_cv_prog_CC
  4340. if test -n "$CC"; then
  4341. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4342. $as_echo "$CC" >&6; }
  4343. else
  4344. { $as_echo "$as_me:$LINENO: result: no" >&5
  4345. $as_echo "no" >&6; }
  4346. fi
  4347. fi
  4348. fi
  4349. if test -z "$CC"; then
  4350. # Extract the first word of "cc", so it can be a program name with args.
  4351. set dummy cc; ac_word=$2
  4352. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4353. $as_echo_n "checking for $ac_word... " >&6; }
  4354. if test "${ac_cv_prog_CC+set}" = set; then
  4355. $as_echo_n "(cached) " >&6
  4356. else
  4357. if test -n "$CC"; then
  4358. ac_cv_prog_CC="$CC" # Let the user override the test.
  4359. else
  4360. ac_prog_rejected=no
  4361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4362. for as_dir in $PATH
  4363. do
  4364. IFS=$as_save_IFS
  4365. test -z "$as_dir" && as_dir=.
  4366. for ac_exec_ext in '' $ac_executable_extensions; do
  4367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4368. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4369. ac_prog_rejected=yes
  4370. continue
  4371. fi
  4372. ac_cv_prog_CC="cc"
  4373. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4374. break 2
  4375. fi
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. if test $ac_prog_rejected = yes; then
  4380. # We found a bogon in the path, so make sure we never use it.
  4381. set dummy $ac_cv_prog_CC
  4382. shift
  4383. if test $# != 0; then
  4384. # We chose a different compiler from the bogus one.
  4385. # However, it has the same basename, so the bogon will be chosen
  4386. # first if we set CC to just the basename; use the full file name.
  4387. shift
  4388. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4389. fi
  4390. fi
  4391. fi
  4392. fi
  4393. CC=$ac_cv_prog_CC
  4394. if test -n "$CC"; then
  4395. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4396. $as_echo "$CC" >&6; }
  4397. else
  4398. { $as_echo "$as_me:$LINENO: result: no" >&5
  4399. $as_echo "no" >&6; }
  4400. fi
  4401. fi
  4402. if test -z "$CC"; then
  4403. if test -n "$ac_tool_prefix"; then
  4404. for ac_prog in cl.exe
  4405. do
  4406. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4407. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4408. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4409. $as_echo_n "checking for $ac_word... " >&6; }
  4410. if test "${ac_cv_prog_CC+set}" = set; then
  4411. $as_echo_n "(cached) " >&6
  4412. else
  4413. if test -n "$CC"; then
  4414. ac_cv_prog_CC="$CC" # Let the user override the test.
  4415. else
  4416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4417. for as_dir in $PATH
  4418. do
  4419. IFS=$as_save_IFS
  4420. test -z "$as_dir" && as_dir=.
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4423. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4424. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4425. break 2
  4426. fi
  4427. done
  4428. done
  4429. IFS=$as_save_IFS
  4430. fi
  4431. fi
  4432. CC=$ac_cv_prog_CC
  4433. if test -n "$CC"; then
  4434. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4435. $as_echo "$CC" >&6; }
  4436. else
  4437. { $as_echo "$as_me:$LINENO: result: no" >&5
  4438. $as_echo "no" >&6; }
  4439. fi
  4440. test -n "$CC" && break
  4441. done
  4442. fi
  4443. if test -z "$CC"; then
  4444. ac_ct_CC=$CC
  4445. for ac_prog in cl.exe
  4446. do
  4447. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4448. set dummy $ac_prog; ac_word=$2
  4449. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4450. $as_echo_n "checking for $ac_word... " >&6; }
  4451. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. if test -n "$ac_ct_CC"; then
  4455. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4456. else
  4457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4458. for as_dir in $PATH
  4459. do
  4460. IFS=$as_save_IFS
  4461. test -z "$as_dir" && as_dir=.
  4462. for ac_exec_ext in '' $ac_executable_extensions; do
  4463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4464. ac_cv_prog_ac_ct_CC="$ac_prog"
  4465. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4466. break 2
  4467. fi
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. fi
  4472. fi
  4473. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4474. if test -n "$ac_ct_CC"; then
  4475. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4476. $as_echo "$ac_ct_CC" >&6; }
  4477. else
  4478. { $as_echo "$as_me:$LINENO: result: no" >&5
  4479. $as_echo "no" >&6; }
  4480. fi
  4481. test -n "$ac_ct_CC" && break
  4482. done
  4483. if test "x$ac_ct_CC" = x; then
  4484. CC=""
  4485. else
  4486. case $cross_compiling:$ac_tool_warned in
  4487. yes:)
  4488. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4489. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4490. ac_tool_warned=yes ;;
  4491. esac
  4492. CC=$ac_ct_CC
  4493. fi
  4494. fi
  4495. fi
  4496. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4497. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4498. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4499. See \`config.log' for more details." >&5
  4500. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4501. See \`config.log' for more details." >&2;}
  4502. { (exit 1); exit 1; }; }; }
  4503. # Provide some information about the compiler.
  4504. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4505. set X $ac_compile
  4506. ac_compiler=$2
  4507. { (ac_try="$ac_compiler --version >&5"
  4508. case "(($ac_try" in
  4509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4510. *) ac_try_echo=$ac_try;;
  4511. esac
  4512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4513. $as_echo "$ac_try_echo") >&5
  4514. (eval "$ac_compiler --version >&5") 2>&5
  4515. ac_status=$?
  4516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); }
  4518. { (ac_try="$ac_compiler -v >&5"
  4519. case "(($ac_try" in
  4520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4521. *) ac_try_echo=$ac_try;;
  4522. esac
  4523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4524. $as_echo "$ac_try_echo") >&5
  4525. (eval "$ac_compiler -v >&5") 2>&5
  4526. ac_status=$?
  4527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4528. (exit $ac_status); }
  4529. { (ac_try="$ac_compiler -V >&5"
  4530. case "(($ac_try" in
  4531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4532. *) ac_try_echo=$ac_try;;
  4533. esac
  4534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4535. $as_echo "$ac_try_echo") >&5
  4536. (eval "$ac_compiler -V >&5") 2>&5
  4537. ac_status=$?
  4538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4539. (exit $ac_status); }
  4540. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4541. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4542. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. cat >conftest.$ac_ext <<_ACEOF
  4546. /* confdefs.h. */
  4547. _ACEOF
  4548. cat confdefs.h >>conftest.$ac_ext
  4549. cat >>conftest.$ac_ext <<_ACEOF
  4550. /* end confdefs.h. */
  4551. int
  4552. main ()
  4553. {
  4554. #ifndef __GNUC__
  4555. choke me
  4556. #endif
  4557. ;
  4558. return 0;
  4559. }
  4560. _ACEOF
  4561. rm -f conftest.$ac_objext
  4562. if { (ac_try="$ac_compile"
  4563. case "(($ac_try" in
  4564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4565. *) ac_try_echo=$ac_try;;
  4566. esac
  4567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4568. $as_echo "$ac_try_echo") >&5
  4569. (eval "$ac_compile") 2>conftest.er1
  4570. ac_status=$?
  4571. grep -v '^ *+' conftest.er1 >conftest.err
  4572. rm -f conftest.er1
  4573. cat conftest.err >&5
  4574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4575. (exit $ac_status); } && {
  4576. test -z "$ac_c_werror_flag" ||
  4577. test ! -s conftest.err
  4578. } && test -s conftest.$ac_objext; then
  4579. ac_compiler_gnu=yes
  4580. else
  4581. $as_echo "$as_me: failed program was:" >&5
  4582. sed 's/^/| /' conftest.$ac_ext >&5
  4583. ac_compiler_gnu=no
  4584. fi
  4585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4586. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4587. fi
  4588. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4589. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4590. if test $ac_compiler_gnu = yes; then
  4591. GCC=yes
  4592. else
  4593. GCC=
  4594. fi
  4595. ac_test_CFLAGS=${CFLAGS+set}
  4596. ac_save_CFLAGS=$CFLAGS
  4597. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4598. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4599. if test "${ac_cv_prog_cc_g+set}" = set; then
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. ac_save_c_werror_flag=$ac_c_werror_flag
  4603. ac_c_werror_flag=yes
  4604. ac_cv_prog_cc_g=no
  4605. CFLAGS="-g"
  4606. cat >conftest.$ac_ext <<_ACEOF
  4607. /* confdefs.h. */
  4608. _ACEOF
  4609. cat confdefs.h >>conftest.$ac_ext
  4610. cat >>conftest.$ac_ext <<_ACEOF
  4611. /* end confdefs.h. */
  4612. int
  4613. main ()
  4614. {
  4615. ;
  4616. return 0;
  4617. }
  4618. _ACEOF
  4619. rm -f conftest.$ac_objext
  4620. if { (ac_try="$ac_compile"
  4621. case "(($ac_try" in
  4622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4623. *) ac_try_echo=$ac_try;;
  4624. esac
  4625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4626. $as_echo "$ac_try_echo") >&5
  4627. (eval "$ac_compile") 2>conftest.er1
  4628. ac_status=$?
  4629. grep -v '^ *+' conftest.er1 >conftest.err
  4630. rm -f conftest.er1
  4631. cat conftest.err >&5
  4632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4633. (exit $ac_status); } && {
  4634. test -z "$ac_c_werror_flag" ||
  4635. test ! -s conftest.err
  4636. } && test -s conftest.$ac_objext; then
  4637. ac_cv_prog_cc_g=yes
  4638. else
  4639. $as_echo "$as_me: failed program was:" >&5
  4640. sed 's/^/| /' conftest.$ac_ext >&5
  4641. CFLAGS=""
  4642. cat >conftest.$ac_ext <<_ACEOF
  4643. /* confdefs.h. */
  4644. _ACEOF
  4645. cat confdefs.h >>conftest.$ac_ext
  4646. cat >>conftest.$ac_ext <<_ACEOF
  4647. /* end confdefs.h. */
  4648. int
  4649. main ()
  4650. {
  4651. ;
  4652. return 0;
  4653. }
  4654. _ACEOF
  4655. rm -f conftest.$ac_objext
  4656. if { (ac_try="$ac_compile"
  4657. case "(($ac_try" in
  4658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4659. *) ac_try_echo=$ac_try;;
  4660. esac
  4661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4662. $as_echo "$ac_try_echo") >&5
  4663. (eval "$ac_compile") 2>conftest.er1
  4664. ac_status=$?
  4665. grep -v '^ *+' conftest.er1 >conftest.err
  4666. rm -f conftest.er1
  4667. cat conftest.err >&5
  4668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4669. (exit $ac_status); } && {
  4670. test -z "$ac_c_werror_flag" ||
  4671. test ! -s conftest.err
  4672. } && test -s conftest.$ac_objext; then
  4673. :
  4674. else
  4675. $as_echo "$as_me: failed program was:" >&5
  4676. sed 's/^/| /' conftest.$ac_ext >&5
  4677. ac_c_werror_flag=$ac_save_c_werror_flag
  4678. CFLAGS="-g"
  4679. cat >conftest.$ac_ext <<_ACEOF
  4680. /* confdefs.h. */
  4681. _ACEOF
  4682. cat confdefs.h >>conftest.$ac_ext
  4683. cat >>conftest.$ac_ext <<_ACEOF
  4684. /* end confdefs.h. */
  4685. int
  4686. main ()
  4687. {
  4688. ;
  4689. return 0;
  4690. }
  4691. _ACEOF
  4692. rm -f conftest.$ac_objext
  4693. if { (ac_try="$ac_compile"
  4694. case "(($ac_try" in
  4695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4696. *) ac_try_echo=$ac_try;;
  4697. esac
  4698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4699. $as_echo "$ac_try_echo") >&5
  4700. (eval "$ac_compile") 2>conftest.er1
  4701. ac_status=$?
  4702. grep -v '^ *+' conftest.er1 >conftest.err
  4703. rm -f conftest.er1
  4704. cat conftest.err >&5
  4705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4706. (exit $ac_status); } && {
  4707. test -z "$ac_c_werror_flag" ||
  4708. test ! -s conftest.err
  4709. } && test -s conftest.$ac_objext; then
  4710. ac_cv_prog_cc_g=yes
  4711. else
  4712. $as_echo "$as_me: failed program was:" >&5
  4713. sed 's/^/| /' conftest.$ac_ext >&5
  4714. fi
  4715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4716. fi
  4717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4718. fi
  4719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4720. ac_c_werror_flag=$ac_save_c_werror_flag
  4721. fi
  4722. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4723. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4724. if test "$ac_test_CFLAGS" = set; then
  4725. CFLAGS=$ac_save_CFLAGS
  4726. elif test $ac_cv_prog_cc_g = yes; then
  4727. if test "$GCC" = yes; then
  4728. CFLAGS="-g -O2"
  4729. else
  4730. CFLAGS="-g"
  4731. fi
  4732. else
  4733. if test "$GCC" = yes; then
  4734. CFLAGS="-O2"
  4735. else
  4736. CFLAGS=
  4737. fi
  4738. fi
  4739. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4740. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4741. if test "${ac_cv_prog_cc_c89+set}" = set; then
  4742. $as_echo_n "(cached) " >&6
  4743. else
  4744. ac_cv_prog_cc_c89=no
  4745. ac_save_CC=$CC
  4746. cat >conftest.$ac_ext <<_ACEOF
  4747. /* confdefs.h. */
  4748. _ACEOF
  4749. cat confdefs.h >>conftest.$ac_ext
  4750. cat >>conftest.$ac_ext <<_ACEOF
  4751. /* end confdefs.h. */
  4752. #include <stdarg.h>
  4753. #include <stdio.h>
  4754. #include <sys/types.h>
  4755. #include <sys/stat.h>
  4756. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4757. struct buf { int x; };
  4758. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4759. static char *e (p, i)
  4760. char **p;
  4761. int i;
  4762. {
  4763. return p[i];
  4764. }
  4765. static char *f (char * (*g) (char **, int), char **p, ...)
  4766. {
  4767. char *s;
  4768. va_list v;
  4769. va_start (v,p);
  4770. s = g (p, va_arg (v,int));
  4771. va_end (v);
  4772. return s;
  4773. }
  4774. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4775. function prototypes and stuff, but not '\xHH' hex character constants.
  4776. These don't provoke an error unfortunately, instead are silently treated
  4777. as 'x'. The following induces an error, until -std is added to get
  4778. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4779. array size at least. It's necessary to write '\x00'==0 to get something
  4780. that's true only with -std. */
  4781. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4782. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4783. inside strings and character constants. */
  4784. #define FOO(x) 'x'
  4785. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4786. int test (int i, double x);
  4787. struct s1 {int (*f) (int a);};
  4788. struct s2 {int (*f) (double a);};
  4789. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4790. int argc;
  4791. char **argv;
  4792. int
  4793. main ()
  4794. {
  4795. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4796. ;
  4797. return 0;
  4798. }
  4799. _ACEOF
  4800. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4801. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4802. do
  4803. CC="$ac_save_CC $ac_arg"
  4804. rm -f conftest.$ac_objext
  4805. if { (ac_try="$ac_compile"
  4806. case "(($ac_try" in
  4807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4808. *) ac_try_echo=$ac_try;;
  4809. esac
  4810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4811. $as_echo "$ac_try_echo") >&5
  4812. (eval "$ac_compile") 2>conftest.er1
  4813. ac_status=$?
  4814. grep -v '^ *+' conftest.er1 >conftest.err
  4815. rm -f conftest.er1
  4816. cat conftest.err >&5
  4817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4818. (exit $ac_status); } && {
  4819. test -z "$ac_c_werror_flag" ||
  4820. test ! -s conftest.err
  4821. } && test -s conftest.$ac_objext; then
  4822. ac_cv_prog_cc_c89=$ac_arg
  4823. else
  4824. $as_echo "$as_me: failed program was:" >&5
  4825. sed 's/^/| /' conftest.$ac_ext >&5
  4826. fi
  4827. rm -f core conftest.err conftest.$ac_objext
  4828. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4829. done
  4830. rm -f conftest.$ac_ext
  4831. CC=$ac_save_CC
  4832. fi
  4833. # AC_CACHE_VAL
  4834. case "x$ac_cv_prog_cc_c89" in
  4835. x)
  4836. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4837. $as_echo "none needed" >&6; } ;;
  4838. xno)
  4839. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4840. $as_echo "unsupported" >&6; } ;;
  4841. *)
  4842. CC="$CC $ac_cv_prog_cc_c89"
  4843. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4844. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4845. esac
  4846. ac_ext=c
  4847. ac_cpp='$CPP $CPPFLAGS'
  4848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4851. depcc="$CC" am_compiler_list=
  4852. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4853. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4854. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4858. # We make a subdir and do the tests there. Otherwise we can end up
  4859. # making bogus files that we don't know about and never remove. For
  4860. # instance it was reported that on HP-UX the gcc test will end up
  4861. # making a dummy file named `D' -- because `-MD' means `put the output
  4862. # in D'.
  4863. mkdir conftest.dir
  4864. # Copy depcomp to subdir because otherwise we won't find it if we're
  4865. # using a relative directory.
  4866. cp "$am_depcomp" conftest.dir
  4867. cd conftest.dir
  4868. # We will build objects and dependencies in a subdirectory because
  4869. # it helps to detect inapplicable dependency modes. For instance
  4870. # both Tru64's cc and ICC support -MD to output dependencies as a
  4871. # side effect of compilation, but ICC will put the dependencies in
  4872. # the current directory while Tru64 will put them in the object
  4873. # directory.
  4874. mkdir sub
  4875. am_cv_CC_dependencies_compiler_type=none
  4876. if test "$am_compiler_list" = ""; then
  4877. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4878. fi
  4879. am__universal=false
  4880. case " $depcc " in #(
  4881. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4882. esac
  4883. for depmode in $am_compiler_list; do
  4884. # Setup a source with many dependencies, because some compilers
  4885. # like to wrap large dependency lists on column 80 (with \), and
  4886. # we should not choose a depcomp mode which is confused by this.
  4887. #
  4888. # We need to recreate these files for each test, as the compiler may
  4889. # overwrite some of them when testing with obscure command lines.
  4890. # This happens at least with the AIX C compiler.
  4891. : > sub/conftest.c
  4892. for i in 1 2 3 4 5 6; do
  4893. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4894. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4895. # Solaris 8's {/usr,}/bin/sh.
  4896. touch sub/conftst$i.h
  4897. done
  4898. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4899. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4900. # mode. It turns out that the SunPro C++ compiler does not properly
  4901. # handle `-M -o', and we need to detect this. Also, some Intel
  4902. # versions had trouble with output in subdirs
  4903. am__obj=sub/conftest.${OBJEXT-o}
  4904. am__minus_obj="-o $am__obj"
  4905. case $depmode in
  4906. gcc)
  4907. # This depmode causes a compiler race in universal mode.
  4908. test "$am__universal" = false || continue
  4909. ;;
  4910. nosideeffect)
  4911. # after this tag, mechanisms are not by side-effect, so they'll
  4912. # only be used when explicitly requested
  4913. if test "x$enable_dependency_tracking" = xyes; then
  4914. continue
  4915. else
  4916. break
  4917. fi
  4918. ;;
  4919. msvisualcpp | msvcmsys)
  4920. # This compiler won't grok `-c -o', but also, the minuso test has
  4921. # not run yet. These depmodes are late enough in the game, and
  4922. # so weak that their functioning should not be impacted.
  4923. am__obj=conftest.${OBJEXT-o}
  4924. am__minus_obj=
  4925. ;;
  4926. none) break ;;
  4927. esac
  4928. if depmode=$depmode \
  4929. source=sub/conftest.c object=$am__obj \
  4930. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4931. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4932. >/dev/null 2>conftest.err &&
  4933. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4934. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4935. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4936. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4937. # icc doesn't choke on unknown options, it will just issue warnings
  4938. # or remarks (even with -Werror). So we grep stderr for any message
  4939. # that says an option was ignored or not supported.
  4940. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4941. # icc: Command line warning: ignoring option '-M'; no argument required
  4942. # The diagnosis changed in icc 8.0:
  4943. # icc: Command line remark: option '-MP' not supported
  4944. if (grep 'ignoring option' conftest.err ||
  4945. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4946. am_cv_CC_dependencies_compiler_type=$depmode
  4947. break
  4948. fi
  4949. fi
  4950. done
  4951. cd ..
  4952. rm -rf conftest.dir
  4953. else
  4954. am_cv_CC_dependencies_compiler_type=none
  4955. fi
  4956. fi
  4957. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4958. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4959. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4960. if
  4961. test "x$enable_dependency_tracking" != xno \
  4962. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4963. am__fastdepCC_TRUE=
  4964. am__fastdepCC_FALSE='#'
  4965. else
  4966. am__fastdepCC_TRUE='#'
  4967. am__fastdepCC_FALSE=
  4968. fi
  4969. ac_ext=c
  4970. ac_cpp='$CPP $CPPFLAGS'
  4971. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4972. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4973. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4974. if test -n "$ac_tool_prefix"; then
  4975. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4976. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4977. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4978. $as_echo_n "checking for $ac_word... " >&6; }
  4979. if test "${ac_cv_prog_CC+set}" = set; then
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -n "$CC"; then
  4983. ac_cv_prog_CC="$CC" # Let the user override the test.
  4984. else
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_exec_ext in '' $ac_executable_extensions; do
  4991. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4992. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4993. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4994. break 2
  4995. fi
  4996. done
  4997. done
  4998. IFS=$as_save_IFS
  4999. fi
  5000. fi
  5001. CC=$ac_cv_prog_CC
  5002. if test -n "$CC"; then
  5003. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5004. $as_echo "$CC" >&6; }
  5005. else
  5006. { $as_echo "$as_me:$LINENO: result: no" >&5
  5007. $as_echo "no" >&6; }
  5008. fi
  5009. fi
  5010. if test -z "$ac_cv_prog_CC"; then
  5011. ac_ct_CC=$CC
  5012. # Extract the first word of "gcc", so it can be a program name with args.
  5013. set dummy gcc; ac_word=$2
  5014. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5015. $as_echo_n "checking for $ac_word... " >&6; }
  5016. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. if test -n "$ac_ct_CC"; then
  5020. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5021. else
  5022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5023. for as_dir in $PATH
  5024. do
  5025. IFS=$as_save_IFS
  5026. test -z "$as_dir" && as_dir=.
  5027. for ac_exec_ext in '' $ac_executable_extensions; do
  5028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5029. ac_cv_prog_ac_ct_CC="gcc"
  5030. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5031. break 2
  5032. fi
  5033. done
  5034. done
  5035. IFS=$as_save_IFS
  5036. fi
  5037. fi
  5038. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5039. if test -n "$ac_ct_CC"; then
  5040. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5041. $as_echo "$ac_ct_CC" >&6; }
  5042. else
  5043. { $as_echo "$as_me:$LINENO: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. fi
  5046. if test "x$ac_ct_CC" = x; then
  5047. CC=""
  5048. else
  5049. case $cross_compiling:$ac_tool_warned in
  5050. yes:)
  5051. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5053. ac_tool_warned=yes ;;
  5054. esac
  5055. CC=$ac_ct_CC
  5056. fi
  5057. else
  5058. CC="$ac_cv_prog_CC"
  5059. fi
  5060. if test -z "$CC"; then
  5061. if test -n "$ac_tool_prefix"; then
  5062. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5063. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5064. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5065. $as_echo_n "checking for $ac_word... " >&6; }
  5066. if test "${ac_cv_prog_CC+set}" = set; then
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. if test -n "$CC"; then
  5070. ac_cv_prog_CC="$CC" # Let the user override the test.
  5071. else
  5072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5073. for as_dir in $PATH
  5074. do
  5075. IFS=$as_save_IFS
  5076. test -z "$as_dir" && as_dir=.
  5077. for ac_exec_ext in '' $ac_executable_extensions; do
  5078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5079. ac_cv_prog_CC="${ac_tool_prefix}cc"
  5080. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5081. break 2
  5082. fi
  5083. done
  5084. done
  5085. IFS=$as_save_IFS
  5086. fi
  5087. fi
  5088. CC=$ac_cv_prog_CC
  5089. if test -n "$CC"; then
  5090. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5091. $as_echo "$CC" >&6; }
  5092. else
  5093. { $as_echo "$as_me:$LINENO: result: no" >&5
  5094. $as_echo "no" >&6; }
  5095. fi
  5096. fi
  5097. fi
  5098. if test -z "$CC"; then
  5099. # Extract the first word of "cc", so it can be a program name with args.
  5100. set dummy cc; ac_word=$2
  5101. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5102. $as_echo_n "checking for $ac_word... " >&6; }
  5103. if test "${ac_cv_prog_CC+set}" = set; then
  5104. $as_echo_n "(cached) " >&6
  5105. else
  5106. if test -n "$CC"; then
  5107. ac_cv_prog_CC="$CC" # Let the user override the test.
  5108. else
  5109. ac_prog_rejected=no
  5110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5111. for as_dir in $PATH
  5112. do
  5113. IFS=$as_save_IFS
  5114. test -z "$as_dir" && as_dir=.
  5115. for ac_exec_ext in '' $ac_executable_extensions; do
  5116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5117. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5118. ac_prog_rejected=yes
  5119. continue
  5120. fi
  5121. ac_cv_prog_CC="cc"
  5122. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5123. break 2
  5124. fi
  5125. done
  5126. done
  5127. IFS=$as_save_IFS
  5128. if test $ac_prog_rejected = yes; then
  5129. # We found a bogon in the path, so make sure we never use it.
  5130. set dummy $ac_cv_prog_CC
  5131. shift
  5132. if test $# != 0; then
  5133. # We chose a different compiler from the bogus one.
  5134. # However, it has the same basename, so the bogon will be chosen
  5135. # first if we set CC to just the basename; use the full file name.
  5136. shift
  5137. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5138. fi
  5139. fi
  5140. fi
  5141. fi
  5142. CC=$ac_cv_prog_CC
  5143. if test -n "$CC"; then
  5144. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5145. $as_echo "$CC" >&6; }
  5146. else
  5147. { $as_echo "$as_me:$LINENO: result: no" >&5
  5148. $as_echo "no" >&6; }
  5149. fi
  5150. fi
  5151. if test -z "$CC"; then
  5152. if test -n "$ac_tool_prefix"; then
  5153. for ac_prog in cl.exe
  5154. do
  5155. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5156. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5157. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5158. $as_echo_n "checking for $ac_word... " >&6; }
  5159. if test "${ac_cv_prog_CC+set}" = set; then
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. if test -n "$CC"; then
  5163. ac_cv_prog_CC="$CC" # Let the user override the test.
  5164. else
  5165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. for ac_exec_ext in '' $ac_executable_extensions; do
  5171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5172. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5173. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5174. break 2
  5175. fi
  5176. done
  5177. done
  5178. IFS=$as_save_IFS
  5179. fi
  5180. fi
  5181. CC=$ac_cv_prog_CC
  5182. if test -n "$CC"; then
  5183. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5184. $as_echo "$CC" >&6; }
  5185. else
  5186. { $as_echo "$as_me:$LINENO: result: no" >&5
  5187. $as_echo "no" >&6; }
  5188. fi
  5189. test -n "$CC" && break
  5190. done
  5191. fi
  5192. if test -z "$CC"; then
  5193. ac_ct_CC=$CC
  5194. for ac_prog in cl.exe
  5195. do
  5196. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5197. set dummy $ac_prog; ac_word=$2
  5198. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5199. $as_echo_n "checking for $ac_word... " >&6; }
  5200. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5201. $as_echo_n "(cached) " >&6
  5202. else
  5203. if test -n "$ac_ct_CC"; then
  5204. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5205. else
  5206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5207. for as_dir in $PATH
  5208. do
  5209. IFS=$as_save_IFS
  5210. test -z "$as_dir" && as_dir=.
  5211. for ac_exec_ext in '' $ac_executable_extensions; do
  5212. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5213. ac_cv_prog_ac_ct_CC="$ac_prog"
  5214. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5215. break 2
  5216. fi
  5217. done
  5218. done
  5219. IFS=$as_save_IFS
  5220. fi
  5221. fi
  5222. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5223. if test -n "$ac_ct_CC"; then
  5224. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5225. $as_echo "$ac_ct_CC" >&6; }
  5226. else
  5227. { $as_echo "$as_me:$LINENO: result: no" >&5
  5228. $as_echo "no" >&6; }
  5229. fi
  5230. test -n "$ac_ct_CC" && break
  5231. done
  5232. if test "x$ac_ct_CC" = x; then
  5233. CC=""
  5234. else
  5235. case $cross_compiling:$ac_tool_warned in
  5236. yes:)
  5237. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5239. ac_tool_warned=yes ;;
  5240. esac
  5241. CC=$ac_ct_CC
  5242. fi
  5243. fi
  5244. fi
  5245. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5247. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5248. See \`config.log' for more details." >&5
  5249. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  5250. See \`config.log' for more details." >&2;}
  5251. { (exit 1); exit 1; }; }; }
  5252. # Provide some information about the compiler.
  5253. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  5254. set X $ac_compile
  5255. ac_compiler=$2
  5256. { (ac_try="$ac_compiler --version >&5"
  5257. case "(($ac_try" in
  5258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5259. *) ac_try_echo=$ac_try;;
  5260. esac
  5261. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5262. $as_echo "$ac_try_echo") >&5
  5263. (eval "$ac_compiler --version >&5") 2>&5
  5264. ac_status=$?
  5265. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5266. (exit $ac_status); }
  5267. { (ac_try="$ac_compiler -v >&5"
  5268. case "(($ac_try" in
  5269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5270. *) ac_try_echo=$ac_try;;
  5271. esac
  5272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5273. $as_echo "$ac_try_echo") >&5
  5274. (eval "$ac_compiler -v >&5") 2>&5
  5275. ac_status=$?
  5276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); }
  5278. { (ac_try="$ac_compiler -V >&5"
  5279. case "(($ac_try" in
  5280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5281. *) ac_try_echo=$ac_try;;
  5282. esac
  5283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5284. $as_echo "$ac_try_echo") >&5
  5285. (eval "$ac_compiler -V >&5") 2>&5
  5286. ac_status=$?
  5287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5288. (exit $ac_status); }
  5289. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5290. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5291. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. cat >conftest.$ac_ext <<_ACEOF
  5295. /* confdefs.h. */
  5296. _ACEOF
  5297. cat confdefs.h >>conftest.$ac_ext
  5298. cat >>conftest.$ac_ext <<_ACEOF
  5299. /* end confdefs.h. */
  5300. int
  5301. main ()
  5302. {
  5303. #ifndef __GNUC__
  5304. choke me
  5305. #endif
  5306. ;
  5307. return 0;
  5308. }
  5309. _ACEOF
  5310. rm -f conftest.$ac_objext
  5311. if { (ac_try="$ac_compile"
  5312. case "(($ac_try" in
  5313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5314. *) ac_try_echo=$ac_try;;
  5315. esac
  5316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5317. $as_echo "$ac_try_echo") >&5
  5318. (eval "$ac_compile") 2>conftest.er1
  5319. ac_status=$?
  5320. grep -v '^ *+' conftest.er1 >conftest.err
  5321. rm -f conftest.er1
  5322. cat conftest.err >&5
  5323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5324. (exit $ac_status); } && {
  5325. test -z "$ac_c_werror_flag" ||
  5326. test ! -s conftest.err
  5327. } && test -s conftest.$ac_objext; then
  5328. ac_compiler_gnu=yes
  5329. else
  5330. $as_echo "$as_me: failed program was:" >&5
  5331. sed 's/^/| /' conftest.$ac_ext >&5
  5332. ac_compiler_gnu=no
  5333. fi
  5334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5335. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5336. fi
  5337. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5338. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5339. if test $ac_compiler_gnu = yes; then
  5340. GCC=yes
  5341. else
  5342. GCC=
  5343. fi
  5344. ac_test_CFLAGS=${CFLAGS+set}
  5345. ac_save_CFLAGS=$CFLAGS
  5346. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5347. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5348. if test "${ac_cv_prog_cc_g+set}" = set; then
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. ac_save_c_werror_flag=$ac_c_werror_flag
  5352. ac_c_werror_flag=yes
  5353. ac_cv_prog_cc_g=no
  5354. CFLAGS="-g"
  5355. cat >conftest.$ac_ext <<_ACEOF
  5356. /* confdefs.h. */
  5357. _ACEOF
  5358. cat confdefs.h >>conftest.$ac_ext
  5359. cat >>conftest.$ac_ext <<_ACEOF
  5360. /* end confdefs.h. */
  5361. int
  5362. main ()
  5363. {
  5364. ;
  5365. return 0;
  5366. }
  5367. _ACEOF
  5368. rm -f conftest.$ac_objext
  5369. if { (ac_try="$ac_compile"
  5370. case "(($ac_try" in
  5371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5372. *) ac_try_echo=$ac_try;;
  5373. esac
  5374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5375. $as_echo "$ac_try_echo") >&5
  5376. (eval "$ac_compile") 2>conftest.er1
  5377. ac_status=$?
  5378. grep -v '^ *+' conftest.er1 >conftest.err
  5379. rm -f conftest.er1
  5380. cat conftest.err >&5
  5381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5382. (exit $ac_status); } && {
  5383. test -z "$ac_c_werror_flag" ||
  5384. test ! -s conftest.err
  5385. } && test -s conftest.$ac_objext; then
  5386. ac_cv_prog_cc_g=yes
  5387. else
  5388. $as_echo "$as_me: failed program was:" >&5
  5389. sed 's/^/| /' conftest.$ac_ext >&5
  5390. CFLAGS=""
  5391. cat >conftest.$ac_ext <<_ACEOF
  5392. /* confdefs.h. */
  5393. _ACEOF
  5394. cat confdefs.h >>conftest.$ac_ext
  5395. cat >>conftest.$ac_ext <<_ACEOF
  5396. /* end confdefs.h. */
  5397. int
  5398. main ()
  5399. {
  5400. ;
  5401. return 0;
  5402. }
  5403. _ACEOF
  5404. rm -f conftest.$ac_objext
  5405. if { (ac_try="$ac_compile"
  5406. case "(($ac_try" in
  5407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5408. *) ac_try_echo=$ac_try;;
  5409. esac
  5410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5411. $as_echo "$ac_try_echo") >&5
  5412. (eval "$ac_compile") 2>conftest.er1
  5413. ac_status=$?
  5414. grep -v '^ *+' conftest.er1 >conftest.err
  5415. rm -f conftest.er1
  5416. cat conftest.err >&5
  5417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5418. (exit $ac_status); } && {
  5419. test -z "$ac_c_werror_flag" ||
  5420. test ! -s conftest.err
  5421. } && test -s conftest.$ac_objext; then
  5422. :
  5423. else
  5424. $as_echo "$as_me: failed program was:" >&5
  5425. sed 's/^/| /' conftest.$ac_ext >&5
  5426. ac_c_werror_flag=$ac_save_c_werror_flag
  5427. CFLAGS="-g"
  5428. cat >conftest.$ac_ext <<_ACEOF
  5429. /* confdefs.h. */
  5430. _ACEOF
  5431. cat confdefs.h >>conftest.$ac_ext
  5432. cat >>conftest.$ac_ext <<_ACEOF
  5433. /* end confdefs.h. */
  5434. int
  5435. main ()
  5436. {
  5437. ;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. rm -f conftest.$ac_objext
  5442. if { (ac_try="$ac_compile"
  5443. case "(($ac_try" in
  5444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5445. *) ac_try_echo=$ac_try;;
  5446. esac
  5447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5448. $as_echo "$ac_try_echo") >&5
  5449. (eval "$ac_compile") 2>conftest.er1
  5450. ac_status=$?
  5451. grep -v '^ *+' conftest.er1 >conftest.err
  5452. rm -f conftest.er1
  5453. cat conftest.err >&5
  5454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5455. (exit $ac_status); } && {
  5456. test -z "$ac_c_werror_flag" ||
  5457. test ! -s conftest.err
  5458. } && test -s conftest.$ac_objext; then
  5459. ac_cv_prog_cc_g=yes
  5460. else
  5461. $as_echo "$as_me: failed program was:" >&5
  5462. sed 's/^/| /' conftest.$ac_ext >&5
  5463. fi
  5464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5465. fi
  5466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5467. fi
  5468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5469. ac_c_werror_flag=$ac_save_c_werror_flag
  5470. fi
  5471. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5472. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5473. if test "$ac_test_CFLAGS" = set; then
  5474. CFLAGS=$ac_save_CFLAGS
  5475. elif test $ac_cv_prog_cc_g = yes; then
  5476. if test "$GCC" = yes; then
  5477. CFLAGS="-g -O2"
  5478. else
  5479. CFLAGS="-g"
  5480. fi
  5481. else
  5482. if test "$GCC" = yes; then
  5483. CFLAGS="-O2"
  5484. else
  5485. CFLAGS=
  5486. fi
  5487. fi
  5488. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5489. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5490. if test "${ac_cv_prog_cc_c89+set}" = set; then
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. ac_cv_prog_cc_c89=no
  5494. ac_save_CC=$CC
  5495. cat >conftest.$ac_ext <<_ACEOF
  5496. /* confdefs.h. */
  5497. _ACEOF
  5498. cat confdefs.h >>conftest.$ac_ext
  5499. cat >>conftest.$ac_ext <<_ACEOF
  5500. /* end confdefs.h. */
  5501. #include <stdarg.h>
  5502. #include <stdio.h>
  5503. #include <sys/types.h>
  5504. #include <sys/stat.h>
  5505. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5506. struct buf { int x; };
  5507. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5508. static char *e (p, i)
  5509. char **p;
  5510. int i;
  5511. {
  5512. return p[i];
  5513. }
  5514. static char *f (char * (*g) (char **, int), char **p, ...)
  5515. {
  5516. char *s;
  5517. va_list v;
  5518. va_start (v,p);
  5519. s = g (p, va_arg (v,int));
  5520. va_end (v);
  5521. return s;
  5522. }
  5523. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5524. function prototypes and stuff, but not '\xHH' hex character constants.
  5525. These don't provoke an error unfortunately, instead are silently treated
  5526. as 'x'. The following induces an error, until -std is added to get
  5527. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5528. array size at least. It's necessary to write '\x00'==0 to get something
  5529. that's true only with -std. */
  5530. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5531. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5532. inside strings and character constants. */
  5533. #define FOO(x) 'x'
  5534. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5535. int test (int i, double x);
  5536. struct s1 {int (*f) (int a);};
  5537. struct s2 {int (*f) (double a);};
  5538. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5539. int argc;
  5540. char **argv;
  5541. int
  5542. main ()
  5543. {
  5544. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5545. ;
  5546. return 0;
  5547. }
  5548. _ACEOF
  5549. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5550. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5551. do
  5552. CC="$ac_save_CC $ac_arg"
  5553. rm -f conftest.$ac_objext
  5554. if { (ac_try="$ac_compile"
  5555. case "(($ac_try" in
  5556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5557. *) ac_try_echo=$ac_try;;
  5558. esac
  5559. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5560. $as_echo "$ac_try_echo") >&5
  5561. (eval "$ac_compile") 2>conftest.er1
  5562. ac_status=$?
  5563. grep -v '^ *+' conftest.er1 >conftest.err
  5564. rm -f conftest.er1
  5565. cat conftest.err >&5
  5566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); } && {
  5568. test -z "$ac_c_werror_flag" ||
  5569. test ! -s conftest.err
  5570. } && test -s conftest.$ac_objext; then
  5571. ac_cv_prog_cc_c89=$ac_arg
  5572. else
  5573. $as_echo "$as_me: failed program was:" >&5
  5574. sed 's/^/| /' conftest.$ac_ext >&5
  5575. fi
  5576. rm -f core conftest.err conftest.$ac_objext
  5577. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5578. done
  5579. rm -f conftest.$ac_ext
  5580. CC=$ac_save_CC
  5581. fi
  5582. # AC_CACHE_VAL
  5583. case "x$ac_cv_prog_cc_c89" in
  5584. x)
  5585. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5586. $as_echo "none needed" >&6; } ;;
  5587. xno)
  5588. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5589. $as_echo "unsupported" >&6; } ;;
  5590. *)
  5591. CC="$CC $ac_cv_prog_cc_c89"
  5592. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5593. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5594. esac
  5595. ac_ext=c
  5596. ac_cpp='$CPP $CPPFLAGS'
  5597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5600. depcc="$CC" am_compiler_list=
  5601. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5602. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5603. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5607. # We make a subdir and do the tests there. Otherwise we can end up
  5608. # making bogus files that we don't know about and never remove. For
  5609. # instance it was reported that on HP-UX the gcc test will end up
  5610. # making a dummy file named `D' -- because `-MD' means `put the output
  5611. # in D'.
  5612. mkdir conftest.dir
  5613. # Copy depcomp to subdir because otherwise we won't find it if we're
  5614. # using a relative directory.
  5615. cp "$am_depcomp" conftest.dir
  5616. cd conftest.dir
  5617. # We will build objects and dependencies in a subdirectory because
  5618. # it helps to detect inapplicable dependency modes. For instance
  5619. # both Tru64's cc and ICC support -MD to output dependencies as a
  5620. # side effect of compilation, but ICC will put the dependencies in
  5621. # the current directory while Tru64 will put them in the object
  5622. # directory.
  5623. mkdir sub
  5624. am_cv_CC_dependencies_compiler_type=none
  5625. if test "$am_compiler_list" = ""; then
  5626. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5627. fi
  5628. am__universal=false
  5629. case " $depcc " in #(
  5630. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5631. esac
  5632. for depmode in $am_compiler_list; do
  5633. # Setup a source with many dependencies, because some compilers
  5634. # like to wrap large dependency lists on column 80 (with \), and
  5635. # we should not choose a depcomp mode which is confused by this.
  5636. #
  5637. # We need to recreate these files for each test, as the compiler may
  5638. # overwrite some of them when testing with obscure command lines.
  5639. # This happens at least with the AIX C compiler.
  5640. : > sub/conftest.c
  5641. for i in 1 2 3 4 5 6; do
  5642. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5643. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5644. # Solaris 8's {/usr,}/bin/sh.
  5645. touch sub/conftst$i.h
  5646. done
  5647. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5648. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5649. # mode. It turns out that the SunPro C++ compiler does not properly
  5650. # handle `-M -o', and we need to detect this. Also, some Intel
  5651. # versions had trouble with output in subdirs
  5652. am__obj=sub/conftest.${OBJEXT-o}
  5653. am__minus_obj="-o $am__obj"
  5654. case $depmode in
  5655. gcc)
  5656. # This depmode causes a compiler race in universal mode.
  5657. test "$am__universal" = false || continue
  5658. ;;
  5659. nosideeffect)
  5660. # after this tag, mechanisms are not by side-effect, so they'll
  5661. # only be used when explicitly requested
  5662. if test "x$enable_dependency_tracking" = xyes; then
  5663. continue
  5664. else
  5665. break
  5666. fi
  5667. ;;
  5668. msvisualcpp | msvcmsys)
  5669. # This compiler won't grok `-c -o', but also, the minuso test has
  5670. # not run yet. These depmodes are late enough in the game, and
  5671. # so weak that their functioning should not be impacted.
  5672. am__obj=conftest.${OBJEXT-o}
  5673. am__minus_obj=
  5674. ;;
  5675. none) break ;;
  5676. esac
  5677. if depmode=$depmode \
  5678. source=sub/conftest.c object=$am__obj \
  5679. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5680. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5681. >/dev/null 2>conftest.err &&
  5682. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5683. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5684. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5685. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5686. # icc doesn't choke on unknown options, it will just issue warnings
  5687. # or remarks (even with -Werror). So we grep stderr for any message
  5688. # that says an option was ignored or not supported.
  5689. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5690. # icc: Command line warning: ignoring option '-M'; no argument required
  5691. # The diagnosis changed in icc 8.0:
  5692. # icc: Command line remark: option '-MP' not supported
  5693. if (grep 'ignoring option' conftest.err ||
  5694. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5695. am_cv_CC_dependencies_compiler_type=$depmode
  5696. break
  5697. fi
  5698. fi
  5699. done
  5700. cd ..
  5701. rm -rf conftest.dir
  5702. else
  5703. am_cv_CC_dependencies_compiler_type=none
  5704. fi
  5705. fi
  5706. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5707. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5708. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5709. if
  5710. test "x$enable_dependency_tracking" != xno \
  5711. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5712. am__fastdepCC_TRUE=
  5713. am__fastdepCC_FALSE='#'
  5714. else
  5715. am__fastdepCC_TRUE='#'
  5716. am__fastdepCC_FALSE=
  5717. fi
  5718. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5719. if test "x$CC" != xcc; then
  5720. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  5721. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5722. else
  5723. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  5724. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5725. fi
  5726. set dummy $CC; ac_cc=`$as_echo "$2" |
  5727. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5728. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. cat >conftest.$ac_ext <<_ACEOF
  5732. /* confdefs.h. */
  5733. _ACEOF
  5734. cat confdefs.h >>conftest.$ac_ext
  5735. cat >>conftest.$ac_ext <<_ACEOF
  5736. /* end confdefs.h. */
  5737. int
  5738. main ()
  5739. {
  5740. ;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. # Make sure it works both with $CC and with simple cc.
  5745. # We do the test twice because some compilers refuse to overwrite an
  5746. # existing .o file with -o, though they will create one.
  5747. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5748. rm -f conftest2.*
  5749. if { (case "(($ac_try" in
  5750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5751. *) ac_try_echo=$ac_try;;
  5752. esac
  5753. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5754. $as_echo "$ac_try_echo") >&5
  5755. (eval "$ac_try") 2>&5
  5756. ac_status=$?
  5757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); } &&
  5759. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  5760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5761. *) ac_try_echo=$ac_try;;
  5762. esac
  5763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5764. $as_echo "$ac_try_echo") >&5
  5765. (eval "$ac_try") 2>&5
  5766. ac_status=$?
  5767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5768. (exit $ac_status); };
  5769. then
  5770. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5771. if test "x$CC" != xcc; then
  5772. # Test first that cc exists at all.
  5773. if { ac_try='cc -c conftest.$ac_ext >&5'
  5774. { (case "(($ac_try" in
  5775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5776. *) ac_try_echo=$ac_try;;
  5777. esac
  5778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5779. $as_echo "$ac_try_echo") >&5
  5780. (eval "$ac_try") 2>&5
  5781. ac_status=$?
  5782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783. (exit $ac_status); }; }; then
  5784. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5785. rm -f conftest2.*
  5786. if { (case "(($ac_try" in
  5787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5788. *) ac_try_echo=$ac_try;;
  5789. esac
  5790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5791. $as_echo "$ac_try_echo") >&5
  5792. (eval "$ac_try") 2>&5
  5793. ac_status=$?
  5794. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); } &&
  5796. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  5797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5798. *) ac_try_echo=$ac_try;;
  5799. esac
  5800. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5801. $as_echo "$ac_try_echo") >&5
  5802. (eval "$ac_try") 2>&5
  5803. ac_status=$?
  5804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5805. (exit $ac_status); };
  5806. then
  5807. # cc works too.
  5808. :
  5809. else
  5810. # cc exists but doesn't like -o.
  5811. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5812. fi
  5813. fi
  5814. fi
  5815. else
  5816. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5817. fi
  5818. rm -f core conftest*
  5819. fi
  5820. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5821. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5822. $as_echo "yes" >&6; }
  5823. else
  5824. { $as_echo "$as_me:$LINENO: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. cat >>confdefs.h <<\_ACEOF
  5827. #define NO_MINUS_C_MINUS_O 1
  5828. _ACEOF
  5829. fi
  5830. # FIXME: we rely on the cache variable name because
  5831. # there is no other way.
  5832. set dummy $CC
  5833. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5834. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5835. if test "$am_t" != yes; then
  5836. # Losing compiler, so override with the script.
  5837. # FIXME: It is wrong to rewrite CC.
  5838. # But if we don't then we get into trouble of one sort or another.
  5839. # A longer-term fix would be to have automake use am__CC in this case,
  5840. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5841. CC="$am_aux_dir/compile $CC"
  5842. fi
  5843. # Find a good install program. We prefer a C program (faster),
  5844. # so one script is as good as another. But avoid the broken or
  5845. # incompatible versions:
  5846. # SysV /etc/install, /usr/sbin/install
  5847. # SunOS /usr/etc/install
  5848. # IRIX /sbin/install
  5849. # AIX /bin/install
  5850. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5851. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5852. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5853. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5854. # OS/2's system install, which has a completely different semantic
  5855. # ./install, which can be erroneously created by make from ./install.sh.
  5856. # Reject install programs that cannot install multiple files.
  5857. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  5858. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5859. if test -z "$INSTALL"; then
  5860. if test "${ac_cv_path_install+set}" = set; then
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5864. for as_dir in $PATH
  5865. do
  5866. IFS=$as_save_IFS
  5867. test -z "$as_dir" && as_dir=.
  5868. # Account for people who put trailing slashes in PATH elements.
  5869. case $as_dir/ in
  5870. ./ | .// | /cC/* | \
  5871. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5872. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  5873. /usr/ucb/* ) ;;
  5874. *)
  5875. # OSF1 and SCO ODT 3.0 have their own names for install.
  5876. # Don't use installbsd from OSF since it installs stuff as root
  5877. # by default.
  5878. for ac_prog in ginstall scoinst install; do
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  5881. if test $ac_prog = install &&
  5882. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5883. # AIX install. It has an incompatible calling convention.
  5884. :
  5885. elif test $ac_prog = install &&
  5886. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5887. # program-specific install script used by HP pwplus--don't use.
  5888. :
  5889. else
  5890. rm -rf conftest.one conftest.two conftest.dir
  5891. echo one > conftest.one
  5892. echo two > conftest.two
  5893. mkdir conftest.dir
  5894. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5895. test -s conftest.one && test -s conftest.two &&
  5896. test -s conftest.dir/conftest.one &&
  5897. test -s conftest.dir/conftest.two
  5898. then
  5899. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5900. break 3
  5901. fi
  5902. fi
  5903. fi
  5904. done
  5905. done
  5906. ;;
  5907. esac
  5908. done
  5909. IFS=$as_save_IFS
  5910. rm -rf conftest.one conftest.two conftest.dir
  5911. fi
  5912. if test "${ac_cv_path_install+set}" = set; then
  5913. INSTALL=$ac_cv_path_install
  5914. else
  5915. # As a last resort, use the slow shell script. Don't cache a
  5916. # value for INSTALL within a source directory, because that will
  5917. # break other packages using the cache if that directory is
  5918. # removed, or if the value is a relative name.
  5919. INSTALL=$ac_install_sh
  5920. fi
  5921. fi
  5922. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  5923. $as_echo "$INSTALL" >&6; }
  5924. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5925. # It thinks the first close brace ends the variable substitution.
  5926. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5927. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5928. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5929. if test -n "$ac_tool_prefix"; then
  5930. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5931. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5932. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5933. $as_echo_n "checking for $ac_word... " >&6; }
  5934. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5935. $as_echo_n "(cached) " >&6
  5936. else
  5937. if test -n "$RANLIB"; then
  5938. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5939. else
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5947. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5948. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. IFS=$as_save_IFS
  5954. fi
  5955. fi
  5956. RANLIB=$ac_cv_prog_RANLIB
  5957. if test -n "$RANLIB"; then
  5958. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5959. $as_echo "$RANLIB" >&6; }
  5960. else
  5961. { $as_echo "$as_me:$LINENO: result: no" >&5
  5962. $as_echo "no" >&6; }
  5963. fi
  5964. fi
  5965. if test -z "$ac_cv_prog_RANLIB"; then
  5966. ac_ct_RANLIB=$RANLIB
  5967. # Extract the first word of "ranlib", so it can be a program name with args.
  5968. set dummy ranlib; ac_word=$2
  5969. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5970. $as_echo_n "checking for $ac_word... " >&6; }
  5971. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. if test -n "$ac_ct_RANLIB"; then
  5975. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5976. else
  5977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5978. for as_dir in $PATH
  5979. do
  5980. IFS=$as_save_IFS
  5981. test -z "$as_dir" && as_dir=.
  5982. for ac_exec_ext in '' $ac_executable_extensions; do
  5983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5984. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5985. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5986. break 2
  5987. fi
  5988. done
  5989. done
  5990. IFS=$as_save_IFS
  5991. fi
  5992. fi
  5993. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5994. if test -n "$ac_ct_RANLIB"; then
  5995. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5996. $as_echo "$ac_ct_RANLIB" >&6; }
  5997. else
  5998. { $as_echo "$as_me:$LINENO: result: no" >&5
  5999. $as_echo "no" >&6; }
  6000. fi
  6001. if test "x$ac_ct_RANLIB" = x; then
  6002. RANLIB=":"
  6003. else
  6004. case $cross_compiling:$ac_tool_warned in
  6005. yes:)
  6006. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6007. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6008. ac_tool_warned=yes ;;
  6009. esac
  6010. RANLIB=$ac_ct_RANLIB
  6011. fi
  6012. else
  6013. RANLIB="$ac_cv_prog_RANLIB"
  6014. fi
  6015. if test "$target" = "autodetect" ; then
  6016. { $as_echo "$as_me:$LINENO: checking for autodetect build target" >&5
  6017. $as_echo_n "checking for autodetect build target... " >&6; }
  6018. uname_sys=`uname`
  6019. if test $? -ne 0 ; then
  6020. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6021. $as_echo "failed" >&6; }
  6022. { { $as_echo "$as_me:$LINENO: error: uname failed or was not found in path" >&5
  6023. $as_echo "$as_me: error: uname failed or was not found in path" >&2;}
  6024. { (exit 1); exit 1; }; }
  6025. else
  6026. case "${uname_sys}" in
  6027. Linux)
  6028. { $as_echo "$as_me:$LINENO: result: Linux" >&5
  6029. $as_echo "Linux" >&6; }
  6030. cat >>confdefs.h <<\_ACEOF
  6031. #define TARGET TARGET_LINUX
  6032. _ACEOF
  6033. target="Linux"
  6034. ;;
  6035. FreeBSD|NetBSD|OpenBSD|Darwin)
  6036. { $as_echo "$as_me:$LINENO: result: \"${uname_sys}\"" >&5
  6037. $as_echo "\"${uname_sys}\"" >&6; }
  6038. cat >>confdefs.h <<\_ACEOF
  6039. #define TARGET TARGET_BSD
  6040. _ACEOF
  6041. target="BSD"
  6042. ;;
  6043. CYGWIN*)
  6044. { $as_echo "$as_me:$LINENO: result: \"${uname_sys}\"" >&5
  6045. $as_echo "\"${uname_sys}\"" >&6; }
  6046. cat >>confdefs.h <<\_ACEOF
  6047. #define TARGET TARGET_CYGWIN
  6048. _ACEOF
  6049. target="cygwin"
  6050. ;;
  6051. *)
  6052. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6053. $as_echo "failed" >&6; }
  6054. { { $as_echo "$as_me:$LINENO: error: Your system type could not be identified. Try setting it manually using
  6055. --with-target" >&5
  6056. $as_echo "$as_me: error: Your system type could not be identified. Try setting it manually using
  6057. --with-target" >&2;}
  6058. { (exit 1); exit 1; }; }
  6059. ;;
  6060. esac
  6061. fi
  6062. fi
  6063. #if test "$target" = BSD ; then
  6064. # uname_sys=`uname`
  6065. # if test "$uname_sys" = FreeBSD ; then
  6066. # AC_MSG_CHECKING([for FreeBSD version])
  6067. # osrel=`sysctl -n kern.osreldate`
  6068. # if test $osrel -ge 500016 ; then
  6069. # AC_MSG_RESULT([5.0 (>= 500016)])
  6070. # freebsd_pthread="5"
  6071. # else
  6072. # AC_MSG_RESULT([<=5.0 (< 500016)])
  6073. # freebsd_pthread="4"
  6074. # fi
  6075. # fi
  6076. #fi
  6077. if test "$adisc" = "default"; then
  6078. if test "$target" = "cygwin" ; then
  6079. # Don't do UDP source address discovery on Cygwin platform by default.
  6080. adisc="no"
  6081. else
  6082. adisc="yes"
  6083. fi
  6084. fi
  6085. test "$adisc" = "yes" && cat >>confdefs.h <<\_ACEOF
  6086. #define SRC_ADDR_DISC 1
  6087. _ACEOF
  6088. if test "$target" = "Linux"; then
  6089. { $as_echo "$as_me:$LINENO: checking if we can compile and link with -pthread" >&5
  6090. $as_echo_n "checking if we can compile and link with -pthread... " >&6; }
  6091. old_CFLAGS="$CFLAGS"
  6092. CFLAGS="$CFLAGS -pthread"
  6093. cat >conftest.$ac_ext <<_ACEOF
  6094. #include <pthread.h>
  6095. void *thread_func(void *data)
  6096. {
  6097. *((int *)data)=1;
  6098. return data;
  6099. }
  6100. int main()
  6101. {
  6102. pthread_t thread;
  6103. void *retval;
  6104. int val;
  6105. if(pthread_create(&thread, NULL, thread_func, &val))
  6106. return 1;
  6107. if(pthread_join(thread,&retval))
  6108. return 1;
  6109. return (*((int *)retval)!=1);
  6110. }
  6111. _ACEOF
  6112. rm -f conftest.$ac_objext conftest$ac_exeext
  6113. if { (ac_try="$ac_link"
  6114. case "(($ac_try" in
  6115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6116. *) ac_try_echo=$ac_try;;
  6117. esac
  6118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6119. $as_echo "$ac_try_echo") >&5
  6120. (eval "$ac_link") 2>conftest.er1
  6121. ac_status=$?
  6122. grep -v '^ *+' conftest.er1 >conftest.err
  6123. rm -f conftest.er1
  6124. cat conftest.err >&5
  6125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); } && {
  6127. test -z "$ac_c_werror_flag" ||
  6128. test ! -s conftest.err
  6129. } && test -s conftest$ac_exeext && {
  6130. test "$cross_compiling" = yes ||
  6131. $as_test_x conftest$ac_exeext
  6132. }; then
  6133. gcc_pthread_flag="yes"
  6134. else
  6135. $as_echo "$as_me: failed program was:" >&5
  6136. sed 's/^/| /' conftest.$ac_ext >&5
  6137. gcc_pthread_flag="no"
  6138. fi
  6139. rm -rf conftest.dSYM
  6140. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6141. conftest$ac_exeext conftest.$ac_ext
  6142. CFLAGS="$old_CFLAGS"
  6143. { $as_echo "$as_me:$LINENO: result: $gcc_pthread_flag" >&5
  6144. $as_echo "$gcc_pthread_flag" >&6; }
  6145. if test "$gcc_pthread_flag" = yes ; then
  6146. thread_CFLAGS="-pthread"
  6147. else
  6148. { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  6149. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  6150. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  6151. $as_echo_n "(cached) " >&6
  6152. else
  6153. ac_check_lib_save_LIBS=$LIBS
  6154. LIBS="-lpthread $LIBS"
  6155. cat >conftest.$ac_ext <<_ACEOF
  6156. /* confdefs.h. */
  6157. _ACEOF
  6158. cat confdefs.h >>conftest.$ac_ext
  6159. cat >>conftest.$ac_ext <<_ACEOF
  6160. /* end confdefs.h. */
  6161. /* Override any GCC internal prototype to avoid an error.
  6162. Use char because int might match the return type of a GCC
  6163. builtin and then its argument prototype would still apply. */
  6164. #ifdef __cplusplus
  6165. extern "C"
  6166. #endif
  6167. char pthread_create ();
  6168. int
  6169. main ()
  6170. {
  6171. return pthread_create ();
  6172. ;
  6173. return 0;
  6174. }
  6175. _ACEOF
  6176. rm -f conftest.$ac_objext conftest$ac_exeext
  6177. if { (ac_try="$ac_link"
  6178. case "(($ac_try" in
  6179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6180. *) ac_try_echo=$ac_try;;
  6181. esac
  6182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6183. $as_echo "$ac_try_echo") >&5
  6184. (eval "$ac_link") 2>conftest.er1
  6185. ac_status=$?
  6186. grep -v '^ *+' conftest.er1 >conftest.err
  6187. rm -f conftest.er1
  6188. cat conftest.err >&5
  6189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); } && {
  6191. test -z "$ac_c_werror_flag" ||
  6192. test ! -s conftest.err
  6193. } && test -s conftest$ac_exeext && {
  6194. test "$cross_compiling" = yes ||
  6195. $as_test_x conftest$ac_exeext
  6196. }; then
  6197. ac_cv_lib_pthread_pthread_create=yes
  6198. else
  6199. $as_echo "$as_me: failed program was:" >&5
  6200. sed 's/^/| /' conftest.$ac_ext >&5
  6201. ac_cv_lib_pthread_pthread_create=no
  6202. fi
  6203. rm -rf conftest.dSYM
  6204. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6205. conftest$ac_exeext conftest.$ac_ext
  6206. LIBS=$ac_check_lib_save_LIBS
  6207. fi
  6208. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  6209. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  6210. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
  6211. cat >>confdefs.h <<_ACEOF
  6212. #define HAVE_LIBPTHREAD 1
  6213. _ACEOF
  6214. LIBS="-lpthread $LIBS"
  6215. fi
  6216. fi
  6217. fi
  6218. if test "$target" = "BSD" -a `uname` != Darwin ; then
  6219. # if test $freebsd_pthread = 4 ; then
  6220. thread_CFLAGS="-pthread"
  6221. # else
  6222. # AC_CHECK_LIB(c_r, pthread_create, ,
  6223. # AC_MSG_ERROR([You must have libc_r installed to build/run pdnsd!]))
  6224. # fi;
  6225. fi
  6226. if test "$target" = "Linux" -a "$threadlib" = default; then
  6227. { $as_echo "$as_me:$LINENO: checking if this is an NPTL-based system" >&5
  6228. $as_echo_n "checking if this is an NPTL-based system... " >&6; }
  6229. old_CFLAGS="$CFLAGS"
  6230. CFLAGS="$CFLAGS $thread_CFLAGS"
  6231. if test "$cross_compiling" = yes; then
  6232. { $as_echo "$as_me:$LINENO: result: couldn't run test program" >&5
  6233. $as_echo "couldn't run test program" >&6; }
  6234. threadlib=linuxthreads
  6235. else
  6236. cat >conftest.$ac_ext <<_ACEOF
  6237. #include <stdio.h>
  6238. #include <errno.h>
  6239. #include <string.h>
  6240. #include <sys/types.h>
  6241. #include <unistd.h>
  6242. #include <pthread.h>
  6243. /* All this function does is return its PID (in a roundabout way). */
  6244. void *thread_func(void *data)
  6245. {
  6246. *((int *)data)=getpid();
  6247. return data;
  6248. }
  6249. int main()
  6250. {
  6251. pthread_t thread;
  6252. void *retval;
  6253. int err,mainpid,thrdpid;
  6254. err=pthread_create(&thread, NULL, thread_func, &thrdpid);
  6255. if(err) {
  6256. fprintf(stderr,"pthread_create failed: %s\n",strerror(err));
  6257. return 1;
  6258. }
  6259. err=pthread_join(thread,&retval);
  6260. if(err) {
  6261. fprintf(stderr,"pthread_join failed: %s\n",strerror(err));
  6262. return 1;
  6263. }
  6264. mainpid=getpid();
  6265. /* In LinuxThreads implementations, the pids of the threads will usually differ
  6266. in a non Posix-compliant way. */
  6267. fprintf(stderr,"main pid=%d, thread pid=%d\n",mainpid,*((int *)retval));
  6268. return (*((int *)retval)!=mainpid);
  6269. }
  6270. _ACEOF
  6271. rm -f conftest$ac_exeext
  6272. if { (ac_try="$ac_link"
  6273. case "(($ac_try" in
  6274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6275. *) ac_try_echo=$ac_try;;
  6276. esac
  6277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6278. $as_echo "$ac_try_echo") >&5
  6279. (eval "$ac_link") 2>&5
  6280. ac_status=$?
  6281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6283. { (case "(($ac_try" in
  6284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6285. *) ac_try_echo=$ac_try;;
  6286. esac
  6287. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6288. $as_echo "$ac_try_echo") >&5
  6289. (eval "$ac_try") 2>&5
  6290. ac_status=$?
  6291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); }; }; then
  6293. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6294. $as_echo "yes" >&6; }
  6295. threadlib=nptl
  6296. else
  6297. $as_echo "$as_me: program exited with status $ac_status" >&5
  6298. $as_echo "$as_me: failed program was:" >&5
  6299. sed 's/^/| /' conftest.$ac_ext >&5
  6300. ( exit $ac_status )
  6301. { $as_echo "$as_me:$LINENO: result: no" >&5
  6302. $as_echo "no" >&6; }
  6303. threadlib=linuxthreads
  6304. fi
  6305. rm -rf conftest.dSYM
  6306. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6307. fi
  6308. CFLAGS="$old_CFLAGS"
  6309. fi
  6310. if test "$threadlib" = nptl -o "$threadlib" = NPTL; then
  6311. cat >>confdefs.h <<\_ACEOF
  6312. #define THREADLIB_NPTL 1
  6313. _ACEOF
  6314. elif test "$threadlib" = linuxthreads2 -o "$threadlib" = LinuxThreads2 -o "$threadlib" = lt2; then
  6315. cat >>confdefs.h <<\_ACEOF
  6316. #define THREADLIB_LINUXTHREADS2 1
  6317. _ACEOF
  6318. fi
  6319. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6320. $as_echo_n "checking for ANSI C header files... " >&6; }
  6321. if test "${ac_cv_header_stdc+set}" = set; then
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. cat >conftest.$ac_ext <<_ACEOF
  6325. /* confdefs.h. */
  6326. _ACEOF
  6327. cat confdefs.h >>conftest.$ac_ext
  6328. cat >>conftest.$ac_ext <<_ACEOF
  6329. /* end confdefs.h. */
  6330. #include <stdlib.h>
  6331. #include <stdarg.h>
  6332. #include <string.h>
  6333. #include <float.h>
  6334. int
  6335. main ()
  6336. {
  6337. ;
  6338. return 0;
  6339. }
  6340. _ACEOF
  6341. rm -f conftest.$ac_objext
  6342. if { (ac_try="$ac_compile"
  6343. case "(($ac_try" in
  6344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6345. *) ac_try_echo=$ac_try;;
  6346. esac
  6347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6348. $as_echo "$ac_try_echo") >&5
  6349. (eval "$ac_compile") 2>conftest.er1
  6350. ac_status=$?
  6351. grep -v '^ *+' conftest.er1 >conftest.err
  6352. rm -f conftest.er1
  6353. cat conftest.err >&5
  6354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6355. (exit $ac_status); } && {
  6356. test -z "$ac_c_werror_flag" ||
  6357. test ! -s conftest.err
  6358. } && test -s conftest.$ac_objext; then
  6359. ac_cv_header_stdc=yes
  6360. else
  6361. $as_echo "$as_me: failed program was:" >&5
  6362. sed 's/^/| /' conftest.$ac_ext >&5
  6363. ac_cv_header_stdc=no
  6364. fi
  6365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6366. if test $ac_cv_header_stdc = yes; then
  6367. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6368. cat >conftest.$ac_ext <<_ACEOF
  6369. /* confdefs.h. */
  6370. _ACEOF
  6371. cat confdefs.h >>conftest.$ac_ext
  6372. cat >>conftest.$ac_ext <<_ACEOF
  6373. /* end confdefs.h. */
  6374. #include <string.h>
  6375. _ACEOF
  6376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6377. $EGREP "memchr" >/dev/null 2>&1; then
  6378. :
  6379. else
  6380. ac_cv_header_stdc=no
  6381. fi
  6382. rm -f conftest*
  6383. fi
  6384. if test $ac_cv_header_stdc = yes; then
  6385. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6386. cat >conftest.$ac_ext <<_ACEOF
  6387. /* confdefs.h. */
  6388. _ACEOF
  6389. cat confdefs.h >>conftest.$ac_ext
  6390. cat >>conftest.$ac_ext <<_ACEOF
  6391. /* end confdefs.h. */
  6392. #include <stdlib.h>
  6393. _ACEOF
  6394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6395. $EGREP "free" >/dev/null 2>&1; then
  6396. :
  6397. else
  6398. ac_cv_header_stdc=no
  6399. fi
  6400. rm -f conftest*
  6401. fi
  6402. if test $ac_cv_header_stdc = yes; then
  6403. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6404. if test "$cross_compiling" = yes; then
  6405. :
  6406. else
  6407. cat >conftest.$ac_ext <<_ACEOF
  6408. /* confdefs.h. */
  6409. _ACEOF
  6410. cat confdefs.h >>conftest.$ac_ext
  6411. cat >>conftest.$ac_ext <<_ACEOF
  6412. /* end confdefs.h. */
  6413. #include <ctype.h>
  6414. #include <stdlib.h>
  6415. #if ((' ' & 0x0FF) == 0x020)
  6416. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6417. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6418. #else
  6419. # define ISLOWER(c) \
  6420. (('a' <= (c) && (c) <= 'i') \
  6421. || ('j' <= (c) && (c) <= 'r') \
  6422. || ('s' <= (c) && (c) <= 'z'))
  6423. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6424. #endif
  6425. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6426. int
  6427. main ()
  6428. {
  6429. int i;
  6430. for (i = 0; i < 256; i++)
  6431. if (XOR (islower (i), ISLOWER (i))
  6432. || toupper (i) != TOUPPER (i))
  6433. return 2;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. rm -f conftest$ac_exeext
  6438. if { (ac_try="$ac_link"
  6439. case "(($ac_try" in
  6440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6441. *) ac_try_echo=$ac_try;;
  6442. esac
  6443. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6444. $as_echo "$ac_try_echo") >&5
  6445. (eval "$ac_link") 2>&5
  6446. ac_status=$?
  6447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6448. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6449. { (case "(($ac_try" in
  6450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6451. *) ac_try_echo=$ac_try;;
  6452. esac
  6453. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6454. $as_echo "$ac_try_echo") >&5
  6455. (eval "$ac_try") 2>&5
  6456. ac_status=$?
  6457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6458. (exit $ac_status); }; }; then
  6459. :
  6460. else
  6461. $as_echo "$as_me: program exited with status $ac_status" >&5
  6462. $as_echo "$as_me: failed program was:" >&5
  6463. sed 's/^/| /' conftest.$ac_ext >&5
  6464. ( exit $ac_status )
  6465. ac_cv_header_stdc=no
  6466. fi
  6467. rm -rf conftest.dSYM
  6468. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6469. fi
  6470. fi
  6471. fi
  6472. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6473. $as_echo "$ac_cv_header_stdc" >&6; }
  6474. if test $ac_cv_header_stdc = yes; then
  6475. cat >>confdefs.h <<\_ACEOF
  6476. #define STDC_HEADERS 1
  6477. _ACEOF
  6478. fi
  6479. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  6480. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  6481. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. cat >conftest.$ac_ext <<_ACEOF
  6485. /* confdefs.h. */
  6486. _ACEOF
  6487. cat confdefs.h >>conftest.$ac_ext
  6488. cat >>conftest.$ac_ext <<_ACEOF
  6489. /* end confdefs.h. */
  6490. #include <sys/types.h>
  6491. #include <sys/wait.h>
  6492. #ifndef WEXITSTATUS
  6493. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  6494. #endif
  6495. #ifndef WIFEXITED
  6496. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  6497. #endif
  6498. int
  6499. main ()
  6500. {
  6501. int s;
  6502. wait (&s);
  6503. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  6504. ;
  6505. return 0;
  6506. }
  6507. _ACEOF
  6508. rm -f conftest.$ac_objext
  6509. if { (ac_try="$ac_compile"
  6510. case "(($ac_try" in
  6511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6512. *) ac_try_echo=$ac_try;;
  6513. esac
  6514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6515. $as_echo "$ac_try_echo") >&5
  6516. (eval "$ac_compile") 2>conftest.er1
  6517. ac_status=$?
  6518. grep -v '^ *+' conftest.er1 >conftest.err
  6519. rm -f conftest.er1
  6520. cat conftest.err >&5
  6521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6522. (exit $ac_status); } && {
  6523. test -z "$ac_c_werror_flag" ||
  6524. test ! -s conftest.err
  6525. } && test -s conftest.$ac_objext; then
  6526. ac_cv_header_sys_wait_h=yes
  6527. else
  6528. $as_echo "$as_me: failed program was:" >&5
  6529. sed 's/^/| /' conftest.$ac_ext >&5
  6530. ac_cv_header_sys_wait_h=no
  6531. fi
  6532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6533. fi
  6534. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  6535. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  6536. if test $ac_cv_header_sys_wait_h = yes; then
  6537. cat >>confdefs.h <<\_ACEOF
  6538. #define HAVE_SYS_WAIT_H 1
  6539. _ACEOF
  6540. fi
  6541. for ac_header in fcntl.h malloc.h sys/ioctl.h sys/time.h syslog.h unistd.h
  6542. do
  6543. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6544. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6545. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6546. $as_echo_n "checking for $ac_header... " >&6; }
  6547. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6548. $as_echo_n "(cached) " >&6
  6549. fi
  6550. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6551. $as_echo "$as_val"'`
  6552. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6553. $as_echo "$ac_res" >&6; }
  6554. else
  6555. # Is the header compilable?
  6556. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6557. $as_echo_n "checking $ac_header usability... " >&6; }
  6558. cat >conftest.$ac_ext <<_ACEOF
  6559. /* confdefs.h. */
  6560. _ACEOF
  6561. cat confdefs.h >>conftest.$ac_ext
  6562. cat >>conftest.$ac_ext <<_ACEOF
  6563. /* end confdefs.h. */
  6564. $ac_includes_default
  6565. #include <$ac_header>
  6566. _ACEOF
  6567. rm -f conftest.$ac_objext
  6568. if { (ac_try="$ac_compile"
  6569. case "(($ac_try" in
  6570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6571. *) ac_try_echo=$ac_try;;
  6572. esac
  6573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6574. $as_echo "$ac_try_echo") >&5
  6575. (eval "$ac_compile") 2>conftest.er1
  6576. ac_status=$?
  6577. grep -v '^ *+' conftest.er1 >conftest.err
  6578. rm -f conftest.er1
  6579. cat conftest.err >&5
  6580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6581. (exit $ac_status); } && {
  6582. test -z "$ac_c_werror_flag" ||
  6583. test ! -s conftest.err
  6584. } && test -s conftest.$ac_objext; then
  6585. ac_header_compiler=yes
  6586. else
  6587. $as_echo "$as_me: failed program was:" >&5
  6588. sed 's/^/| /' conftest.$ac_ext >&5
  6589. ac_header_compiler=no
  6590. fi
  6591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6592. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6593. $as_echo "$ac_header_compiler" >&6; }
  6594. # Is the header present?
  6595. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6596. $as_echo_n "checking $ac_header presence... " >&6; }
  6597. cat >conftest.$ac_ext <<_ACEOF
  6598. /* confdefs.h. */
  6599. _ACEOF
  6600. cat confdefs.h >>conftest.$ac_ext
  6601. cat >>conftest.$ac_ext <<_ACEOF
  6602. /* end confdefs.h. */
  6603. #include <$ac_header>
  6604. _ACEOF
  6605. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6606. case "(($ac_try" in
  6607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6608. *) ac_try_echo=$ac_try;;
  6609. esac
  6610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6611. $as_echo "$ac_try_echo") >&5
  6612. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6613. ac_status=$?
  6614. grep -v '^ *+' conftest.er1 >conftest.err
  6615. rm -f conftest.er1
  6616. cat conftest.err >&5
  6617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618. (exit $ac_status); } >/dev/null && {
  6619. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6620. test ! -s conftest.err
  6621. }; then
  6622. ac_header_preproc=yes
  6623. else
  6624. $as_echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. ac_header_preproc=no
  6627. fi
  6628. rm -f conftest.err conftest.$ac_ext
  6629. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6630. $as_echo "$ac_header_preproc" >&6; }
  6631. # So? What about this header?
  6632. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6633. yes:no: )
  6634. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6635. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6636. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6637. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6638. ac_header_preproc=yes
  6639. ;;
  6640. no:yes:* )
  6641. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6642. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6643. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6644. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6645. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6646. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6647. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6648. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6649. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6650. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6651. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6652. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6653. ;;
  6654. esac
  6655. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6656. $as_echo_n "checking for $ac_header... " >&6; }
  6657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. eval "$as_ac_Header=\$ac_header_preproc"
  6661. fi
  6662. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6663. $as_echo "$as_val"'`
  6664. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6665. $as_echo "$ac_res" >&6; }
  6666. fi
  6667. as_val=`eval 'as_val=${'$as_ac_Header'}
  6668. $as_echo "$as_val"'`
  6669. if test "x$as_val" = x""yes; then
  6670. cat >>confdefs.h <<_ACEOF
  6671. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6672. _ACEOF
  6673. fi
  6674. done
  6675. for ac_header in sys/types.h sys/socket.h net/if.h netinet/in.h sys/poll.h
  6676. do
  6677. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6678. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6679. $as_echo_n "checking for $ac_header... " >&6; }
  6680. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6681. $as_echo_n "(cached) " >&6
  6682. else
  6683. cat >conftest.$ac_ext <<_ACEOF
  6684. /* confdefs.h. */
  6685. _ACEOF
  6686. cat confdefs.h >>conftest.$ac_ext
  6687. cat >>conftest.$ac_ext <<_ACEOF
  6688. /* end confdefs.h. */
  6689. #include <stdio.h>
  6690. #if STDC_HEADERS
  6691. # include <stdlib.h>
  6692. # include <stddef.h>
  6693. #else
  6694. # if HAVE_STDLIB_H
  6695. # include <stdlib.h>
  6696. # endif
  6697. #endif
  6698. #if HAVE_SYS_SOCKET_H
  6699. # include <sys/socket.h>
  6700. #endif
  6701. #include <$ac_header>
  6702. _ACEOF
  6703. rm -f conftest.$ac_objext
  6704. if { (ac_try="$ac_compile"
  6705. case "(($ac_try" in
  6706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6707. *) ac_try_echo=$ac_try;;
  6708. esac
  6709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6710. $as_echo "$ac_try_echo") >&5
  6711. (eval "$ac_compile") 2>conftest.er1
  6712. ac_status=$?
  6713. grep -v '^ *+' conftest.er1 >conftest.err
  6714. rm -f conftest.er1
  6715. cat conftest.err >&5
  6716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); } && {
  6718. test -z "$ac_c_werror_flag" ||
  6719. test ! -s conftest.err
  6720. } && test -s conftest.$ac_objext; then
  6721. eval "$as_ac_Header=yes"
  6722. else
  6723. $as_echo "$as_me: failed program was:" >&5
  6724. sed 's/^/| /' conftest.$ac_ext >&5
  6725. eval "$as_ac_Header=no"
  6726. fi
  6727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6728. fi
  6729. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6730. $as_echo "$as_val"'`
  6731. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6732. $as_echo "$ac_res" >&6; }
  6733. as_val=`eval 'as_val=${'$as_ac_Header'}
  6734. $as_echo "$as_val"'`
  6735. if test "x$as_val" = x""yes; then
  6736. cat >>confdefs.h <<_ACEOF
  6737. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6738. _ACEOF
  6739. fi
  6740. done
  6741. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6742. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6743. if test "${ac_cv_c_const+set}" = set; then
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. cat >conftest.$ac_ext <<_ACEOF
  6747. /* confdefs.h. */
  6748. _ACEOF
  6749. cat confdefs.h >>conftest.$ac_ext
  6750. cat >>conftest.$ac_ext <<_ACEOF
  6751. /* end confdefs.h. */
  6752. int
  6753. main ()
  6754. {
  6755. /* FIXME: Include the comments suggested by Paul. */
  6756. #ifndef __cplusplus
  6757. /* Ultrix mips cc rejects this. */
  6758. typedef int charset[2];
  6759. const charset cs;
  6760. /* SunOS 4.1.1 cc rejects this. */
  6761. char const *const *pcpcc;
  6762. char **ppc;
  6763. /* NEC SVR4.0.2 mips cc rejects this. */
  6764. struct point {int x, y;};
  6765. static struct point const zero = {0,0};
  6766. /* AIX XL C 1.02.0.0 rejects this.
  6767. It does not let you subtract one const X* pointer from another in
  6768. an arm of an if-expression whose if-part is not a constant
  6769. expression */
  6770. const char *g = "string";
  6771. pcpcc = &g + (g ? g-g : 0);
  6772. /* HPUX 7.0 cc rejects these. */
  6773. ++pcpcc;
  6774. ppc = (char**) pcpcc;
  6775. pcpcc = (char const *const *) ppc;
  6776. { /* SCO 3.2v4 cc rejects this. */
  6777. char *t;
  6778. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6779. *t++ = 0;
  6780. if (s) return 0;
  6781. }
  6782. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6783. int x[] = {25, 17};
  6784. const int *foo = &x[0];
  6785. ++foo;
  6786. }
  6787. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6788. typedef const int *iptr;
  6789. iptr p = 0;
  6790. ++p;
  6791. }
  6792. { /* AIX XL C 1.02.0.0 rejects this saying
  6793. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6794. struct s { int j; const int *ap[3]; };
  6795. struct s *b; b->j = 5;
  6796. }
  6797. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6798. const int foo = 10;
  6799. if (!foo) return 0;
  6800. }
  6801. return !cs[0] && !zero.x;
  6802. #endif
  6803. ;
  6804. return 0;
  6805. }
  6806. _ACEOF
  6807. rm -f conftest.$ac_objext
  6808. if { (ac_try="$ac_compile"
  6809. case "(($ac_try" in
  6810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6811. *) ac_try_echo=$ac_try;;
  6812. esac
  6813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6814. $as_echo "$ac_try_echo") >&5
  6815. (eval "$ac_compile") 2>conftest.er1
  6816. ac_status=$?
  6817. grep -v '^ *+' conftest.er1 >conftest.err
  6818. rm -f conftest.er1
  6819. cat conftest.err >&5
  6820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6821. (exit $ac_status); } && {
  6822. test -z "$ac_c_werror_flag" ||
  6823. test ! -s conftest.err
  6824. } && test -s conftest.$ac_objext; then
  6825. ac_cv_c_const=yes
  6826. else
  6827. $as_echo "$as_me: failed program was:" >&5
  6828. sed 's/^/| /' conftest.$ac_ext >&5
  6829. ac_cv_c_const=no
  6830. fi
  6831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6832. fi
  6833. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6834. $as_echo "$ac_cv_c_const" >&6; }
  6835. if test $ac_cv_c_const = no; then
  6836. cat >>confdefs.h <<\_ACEOF
  6837. #define const /**/
  6838. _ACEOF
  6839. fi
  6840. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  6841. $as_echo_n "checking for pid_t... " >&6; }
  6842. if test "${ac_cv_type_pid_t+set}" = set; then
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. ac_cv_type_pid_t=no
  6846. cat >conftest.$ac_ext <<_ACEOF
  6847. /* confdefs.h. */
  6848. _ACEOF
  6849. cat confdefs.h >>conftest.$ac_ext
  6850. cat >>conftest.$ac_ext <<_ACEOF
  6851. /* end confdefs.h. */
  6852. $ac_includes_default
  6853. int
  6854. main ()
  6855. {
  6856. if (sizeof (pid_t))
  6857. return 0;
  6858. ;
  6859. return 0;
  6860. }
  6861. _ACEOF
  6862. rm -f conftest.$ac_objext
  6863. if { (ac_try="$ac_compile"
  6864. case "(($ac_try" in
  6865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6866. *) ac_try_echo=$ac_try;;
  6867. esac
  6868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6869. $as_echo "$ac_try_echo") >&5
  6870. (eval "$ac_compile") 2>conftest.er1
  6871. ac_status=$?
  6872. grep -v '^ *+' conftest.er1 >conftest.err
  6873. rm -f conftest.er1
  6874. cat conftest.err >&5
  6875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6876. (exit $ac_status); } && {
  6877. test -z "$ac_c_werror_flag" ||
  6878. test ! -s conftest.err
  6879. } && test -s conftest.$ac_objext; then
  6880. cat >conftest.$ac_ext <<_ACEOF
  6881. /* confdefs.h. */
  6882. _ACEOF
  6883. cat confdefs.h >>conftest.$ac_ext
  6884. cat >>conftest.$ac_ext <<_ACEOF
  6885. /* end confdefs.h. */
  6886. $ac_includes_default
  6887. int
  6888. main ()
  6889. {
  6890. if (sizeof ((pid_t)))
  6891. return 0;
  6892. ;
  6893. return 0;
  6894. }
  6895. _ACEOF
  6896. rm -f conftest.$ac_objext
  6897. if { (ac_try="$ac_compile"
  6898. case "(($ac_try" in
  6899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6900. *) ac_try_echo=$ac_try;;
  6901. esac
  6902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6903. $as_echo "$ac_try_echo") >&5
  6904. (eval "$ac_compile") 2>conftest.er1
  6905. ac_status=$?
  6906. grep -v '^ *+' conftest.er1 >conftest.err
  6907. rm -f conftest.er1
  6908. cat conftest.err >&5
  6909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6910. (exit $ac_status); } && {
  6911. test -z "$ac_c_werror_flag" ||
  6912. test ! -s conftest.err
  6913. } && test -s conftest.$ac_objext; then
  6914. :
  6915. else
  6916. $as_echo "$as_me: failed program was:" >&5
  6917. sed 's/^/| /' conftest.$ac_ext >&5
  6918. ac_cv_type_pid_t=yes
  6919. fi
  6920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6921. else
  6922. $as_echo "$as_me: failed program was:" >&5
  6923. sed 's/^/| /' conftest.$ac_ext >&5
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6928. $as_echo "$ac_cv_type_pid_t" >&6; }
  6929. if test "x$ac_cv_type_pid_t" = x""yes; then
  6930. :
  6931. else
  6932. cat >>confdefs.h <<_ACEOF
  6933. #define pid_t int
  6934. _ACEOF
  6935. fi
  6936. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  6937. $as_echo_n "checking for size_t... " >&6; }
  6938. if test "${ac_cv_type_size_t+set}" = set; then
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. ac_cv_type_size_t=no
  6942. cat >conftest.$ac_ext <<_ACEOF
  6943. /* confdefs.h. */
  6944. _ACEOF
  6945. cat confdefs.h >>conftest.$ac_ext
  6946. cat >>conftest.$ac_ext <<_ACEOF
  6947. /* end confdefs.h. */
  6948. $ac_includes_default
  6949. int
  6950. main ()
  6951. {
  6952. if (sizeof (size_t))
  6953. return 0;
  6954. ;
  6955. return 0;
  6956. }
  6957. _ACEOF
  6958. rm -f conftest.$ac_objext
  6959. if { (ac_try="$ac_compile"
  6960. case "(($ac_try" in
  6961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6962. *) ac_try_echo=$ac_try;;
  6963. esac
  6964. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6965. $as_echo "$ac_try_echo") >&5
  6966. (eval "$ac_compile") 2>conftest.er1
  6967. ac_status=$?
  6968. grep -v '^ *+' conftest.er1 >conftest.err
  6969. rm -f conftest.er1
  6970. cat conftest.err >&5
  6971. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6972. (exit $ac_status); } && {
  6973. test -z "$ac_c_werror_flag" ||
  6974. test ! -s conftest.err
  6975. } && test -s conftest.$ac_objext; then
  6976. cat >conftest.$ac_ext <<_ACEOF
  6977. /* confdefs.h. */
  6978. _ACEOF
  6979. cat confdefs.h >>conftest.$ac_ext
  6980. cat >>conftest.$ac_ext <<_ACEOF
  6981. /* end confdefs.h. */
  6982. $ac_includes_default
  6983. int
  6984. main ()
  6985. {
  6986. if (sizeof ((size_t)))
  6987. return 0;
  6988. ;
  6989. return 0;
  6990. }
  6991. _ACEOF
  6992. rm -f conftest.$ac_objext
  6993. if { (ac_try="$ac_compile"
  6994. case "(($ac_try" in
  6995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6996. *) ac_try_echo=$ac_try;;
  6997. esac
  6998. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6999. $as_echo "$ac_try_echo") >&5
  7000. (eval "$ac_compile") 2>conftest.er1
  7001. ac_status=$?
  7002. grep -v '^ *+' conftest.er1 >conftest.err
  7003. rm -f conftest.er1
  7004. cat conftest.err >&5
  7005. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7006. (exit $ac_status); } && {
  7007. test -z "$ac_c_werror_flag" ||
  7008. test ! -s conftest.err
  7009. } && test -s conftest.$ac_objext; then
  7010. :
  7011. else
  7012. $as_echo "$as_me: failed program was:" >&5
  7013. sed 's/^/| /' conftest.$ac_ext >&5
  7014. ac_cv_type_size_t=yes
  7015. fi
  7016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7017. else
  7018. $as_echo "$as_me: failed program was:" >&5
  7019. sed 's/^/| /' conftest.$ac_ext >&5
  7020. fi
  7021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7022. fi
  7023. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7024. $as_echo "$ac_cv_type_size_t" >&6; }
  7025. if test "x$ac_cv_type_size_t" = x""yes; then
  7026. :
  7027. else
  7028. cat >>confdefs.h <<_ACEOF
  7029. #define size_t unsigned int
  7030. _ACEOF
  7031. fi
  7032. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7033. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7034. if test "${ac_cv_header_time+set}" = set; then
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. cat >conftest.$ac_ext <<_ACEOF
  7038. /* confdefs.h. */
  7039. _ACEOF
  7040. cat confdefs.h >>conftest.$ac_ext
  7041. cat >>conftest.$ac_ext <<_ACEOF
  7042. /* end confdefs.h. */
  7043. #include <sys/types.h>
  7044. #include <sys/time.h>
  7045. #include <time.h>
  7046. int
  7047. main ()
  7048. {
  7049. if ((struct tm *) 0)
  7050. return 0;
  7051. ;
  7052. return 0;
  7053. }
  7054. _ACEOF
  7055. rm -f conftest.$ac_objext
  7056. if { (ac_try="$ac_compile"
  7057. case "(($ac_try" in
  7058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7059. *) ac_try_echo=$ac_try;;
  7060. esac
  7061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7062. $as_echo "$ac_try_echo") >&5
  7063. (eval "$ac_compile") 2>conftest.er1
  7064. ac_status=$?
  7065. grep -v '^ *+' conftest.er1 >conftest.err
  7066. rm -f conftest.er1
  7067. cat conftest.err >&5
  7068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7069. (exit $ac_status); } && {
  7070. test -z "$ac_c_werror_flag" ||
  7071. test ! -s conftest.err
  7072. } && test -s conftest.$ac_objext; then
  7073. ac_cv_header_time=yes
  7074. else
  7075. $as_echo "$as_me: failed program was:" >&5
  7076. sed 's/^/| /' conftest.$ac_ext >&5
  7077. ac_cv_header_time=no
  7078. fi
  7079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7080. fi
  7081. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7082. $as_echo "$ac_cv_header_time" >&6; }
  7083. if test $ac_cv_header_time = yes; then
  7084. cat >>confdefs.h <<\_ACEOF
  7085. #define TIME_WITH_SYS_TIME 1
  7086. _ACEOF
  7087. fi
  7088. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7089. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7090. if test "${ac_cv_struct_tm+set}" = set; then
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. cat >conftest.$ac_ext <<_ACEOF
  7094. /* confdefs.h. */
  7095. _ACEOF
  7096. cat confdefs.h >>conftest.$ac_ext
  7097. cat >>conftest.$ac_ext <<_ACEOF
  7098. /* end confdefs.h. */
  7099. #include <sys/types.h>
  7100. #include <time.h>
  7101. int
  7102. main ()
  7103. {
  7104. struct tm tm;
  7105. int *p = &tm.tm_sec;
  7106. return !p;
  7107. ;
  7108. return 0;
  7109. }
  7110. _ACEOF
  7111. rm -f conftest.$ac_objext
  7112. if { (ac_try="$ac_compile"
  7113. case "(($ac_try" in
  7114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7115. *) ac_try_echo=$ac_try;;
  7116. esac
  7117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7118. $as_echo "$ac_try_echo") >&5
  7119. (eval "$ac_compile") 2>conftest.er1
  7120. ac_status=$?
  7121. grep -v '^ *+' conftest.er1 >conftest.err
  7122. rm -f conftest.er1
  7123. cat conftest.err >&5
  7124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7125. (exit $ac_status); } && {
  7126. test -z "$ac_c_werror_flag" ||
  7127. test ! -s conftest.err
  7128. } && test -s conftest.$ac_objext; then
  7129. ac_cv_struct_tm=time.h
  7130. else
  7131. $as_echo "$as_me: failed program was:" >&5
  7132. sed 's/^/| /' conftest.$ac_ext >&5
  7133. ac_cv_struct_tm=sys/time.h
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7136. fi
  7137. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7138. $as_echo "$ac_cv_struct_tm" >&6; }
  7139. if test $ac_cv_struct_tm = sys/time.h; then
  7140. cat >>confdefs.h <<\_ACEOF
  7141. #define TM_IN_SYS_TIME 1
  7142. _ACEOF
  7143. fi
  7144. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  7145. $as_echo_n "checking for socklen_t... " >&6; }
  7146. if test "${ac_cv_type_socklen_t+set}" = set; then
  7147. $as_echo_n "(cached) " >&6
  7148. else
  7149. ac_cv_type_socklen_t=no
  7150. cat >conftest.$ac_ext <<_ACEOF
  7151. /* confdefs.h. */
  7152. _ACEOF
  7153. cat confdefs.h >>conftest.$ac_ext
  7154. cat >>conftest.$ac_ext <<_ACEOF
  7155. /* end confdefs.h. */
  7156. #include <sys/types.h>
  7157. #include <sys/socket.h>
  7158. #include <net/if.h>
  7159. #include <netinet/in.h>
  7160. int
  7161. main ()
  7162. {
  7163. if (sizeof (socklen_t))
  7164. return 0;
  7165. ;
  7166. return 0;
  7167. }
  7168. _ACEOF
  7169. rm -f conftest.$ac_objext
  7170. if { (ac_try="$ac_compile"
  7171. case "(($ac_try" in
  7172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7173. *) ac_try_echo=$ac_try;;
  7174. esac
  7175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7176. $as_echo "$ac_try_echo") >&5
  7177. (eval "$ac_compile") 2>conftest.er1
  7178. ac_status=$?
  7179. grep -v '^ *+' conftest.er1 >conftest.err
  7180. rm -f conftest.er1
  7181. cat conftest.err >&5
  7182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7183. (exit $ac_status); } && {
  7184. test -z "$ac_c_werror_flag" ||
  7185. test ! -s conftest.err
  7186. } && test -s conftest.$ac_objext; then
  7187. cat >conftest.$ac_ext <<_ACEOF
  7188. /* confdefs.h. */
  7189. _ACEOF
  7190. cat confdefs.h >>conftest.$ac_ext
  7191. cat >>conftest.$ac_ext <<_ACEOF
  7192. /* end confdefs.h. */
  7193. #include <sys/types.h>
  7194. #include <sys/socket.h>
  7195. #include <net/if.h>
  7196. #include <netinet/in.h>
  7197. int
  7198. main ()
  7199. {
  7200. if (sizeof ((socklen_t)))
  7201. return 0;
  7202. ;
  7203. return 0;
  7204. }
  7205. _ACEOF
  7206. rm -f conftest.$ac_objext
  7207. if { (ac_try="$ac_compile"
  7208. case "(($ac_try" in
  7209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7210. *) ac_try_echo=$ac_try;;
  7211. esac
  7212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7213. $as_echo "$ac_try_echo") >&5
  7214. (eval "$ac_compile") 2>conftest.er1
  7215. ac_status=$?
  7216. grep -v '^ *+' conftest.er1 >conftest.err
  7217. rm -f conftest.er1
  7218. cat conftest.err >&5
  7219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. (exit $ac_status); } && {
  7221. test -z "$ac_c_werror_flag" ||
  7222. test ! -s conftest.err
  7223. } && test -s conftest.$ac_objext; then
  7224. :
  7225. else
  7226. $as_echo "$as_me: failed program was:" >&5
  7227. sed 's/^/| /' conftest.$ac_ext >&5
  7228. ac_cv_type_socklen_t=yes
  7229. fi
  7230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7231. else
  7232. $as_echo "$as_me: failed program was:" >&5
  7233. sed 's/^/| /' conftest.$ac_ext >&5
  7234. fi
  7235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7236. fi
  7237. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  7238. $as_echo "$ac_cv_type_socklen_t" >&6; }
  7239. if test "x$ac_cv_type_socklen_t" = x""yes; then
  7240. cat >>confdefs.h <<_ACEOF
  7241. #define HAVE_SOCKLEN_T 1
  7242. _ACEOF
  7243. else
  7244. cat >>confdefs.h <<\_ACEOF
  7245. #define socklen_t int
  7246. _ACEOF
  7247. fi
  7248. { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
  7249. $as_echo_n "checking for struct in6_addr... " >&6; }
  7250. if test "${ac_cv_type_struct_in6_addr+set}" = set; then
  7251. $as_echo_n "(cached) " >&6
  7252. else
  7253. ac_cv_type_struct_in6_addr=no
  7254. cat >conftest.$ac_ext <<_ACEOF
  7255. /* confdefs.h. */
  7256. _ACEOF
  7257. cat confdefs.h >>conftest.$ac_ext
  7258. cat >>conftest.$ac_ext <<_ACEOF
  7259. /* end confdefs.h. */
  7260. #include <sys/types.h>
  7261. #include <sys/socket.h>
  7262. #include <net/if.h>
  7263. #include <netinet/in.h>
  7264. int
  7265. main ()
  7266. {
  7267. if (sizeof (struct in6_addr))
  7268. return 0;
  7269. ;
  7270. return 0;
  7271. }
  7272. _ACEOF
  7273. rm -f conftest.$ac_objext
  7274. if { (ac_try="$ac_compile"
  7275. case "(($ac_try" in
  7276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7277. *) ac_try_echo=$ac_try;;
  7278. esac
  7279. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7280. $as_echo "$ac_try_echo") >&5
  7281. (eval "$ac_compile") 2>conftest.er1
  7282. ac_status=$?
  7283. grep -v '^ *+' conftest.er1 >conftest.err
  7284. rm -f conftest.er1
  7285. cat conftest.err >&5
  7286. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7287. (exit $ac_status); } && {
  7288. test -z "$ac_c_werror_flag" ||
  7289. test ! -s conftest.err
  7290. } && test -s conftest.$ac_objext; then
  7291. cat >conftest.$ac_ext <<_ACEOF
  7292. /* confdefs.h. */
  7293. _ACEOF
  7294. cat confdefs.h >>conftest.$ac_ext
  7295. cat >>conftest.$ac_ext <<_ACEOF
  7296. /* end confdefs.h. */
  7297. #include <sys/types.h>
  7298. #include <sys/socket.h>
  7299. #include <net/if.h>
  7300. #include <netinet/in.h>
  7301. int
  7302. main ()
  7303. {
  7304. if (sizeof ((struct in6_addr)))
  7305. return 0;
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. rm -f conftest.$ac_objext
  7311. if { (ac_try="$ac_compile"
  7312. case "(($ac_try" in
  7313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7314. *) ac_try_echo=$ac_try;;
  7315. esac
  7316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7317. $as_echo "$ac_try_echo") >&5
  7318. (eval "$ac_compile") 2>conftest.er1
  7319. ac_status=$?
  7320. grep -v '^ *+' conftest.er1 >conftest.err
  7321. rm -f conftest.er1
  7322. cat conftest.err >&5
  7323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324. (exit $ac_status); } && {
  7325. test -z "$ac_c_werror_flag" ||
  7326. test ! -s conftest.err
  7327. } && test -s conftest.$ac_objext; then
  7328. :
  7329. else
  7330. $as_echo "$as_me: failed program was:" >&5
  7331. sed 's/^/| /' conftest.$ac_ext >&5
  7332. ac_cv_type_struct_in6_addr=yes
  7333. fi
  7334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7335. else
  7336. $as_echo "$as_me: failed program was:" >&5
  7337. sed 's/^/| /' conftest.$ac_ext >&5
  7338. fi
  7339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7340. fi
  7341. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
  7342. $as_echo "$ac_cv_type_struct_in6_addr" >&6; }
  7343. if test "x$ac_cv_type_struct_in6_addr" = x""yes; then
  7344. cat >>confdefs.h <<_ACEOF
  7345. #define HAVE_STRUCT_IN6_ADDR 1
  7346. _ACEOF
  7347. fi
  7348. { $as_echo "$as_me:$LINENO: checking for struct in_pktinfo" >&5
  7349. $as_echo_n "checking for struct in_pktinfo... " >&6; }
  7350. if test "${ac_cv_type_struct_in_pktinfo+set}" = set; then
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. ac_cv_type_struct_in_pktinfo=no
  7354. cat >conftest.$ac_ext <<_ACEOF
  7355. /* confdefs.h. */
  7356. _ACEOF
  7357. cat confdefs.h >>conftest.$ac_ext
  7358. cat >>conftest.$ac_ext <<_ACEOF
  7359. /* end confdefs.h. */
  7360. #include <sys/types.h>
  7361. #include <sys/socket.h>
  7362. #include <net/if.h>
  7363. #include <netinet/in.h>
  7364. int
  7365. main ()
  7366. {
  7367. if (sizeof (struct in_pktinfo))
  7368. return 0;
  7369. ;
  7370. return 0;
  7371. }
  7372. _ACEOF
  7373. rm -f conftest.$ac_objext
  7374. if { (ac_try="$ac_compile"
  7375. case "(($ac_try" in
  7376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7377. *) ac_try_echo=$ac_try;;
  7378. esac
  7379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7380. $as_echo "$ac_try_echo") >&5
  7381. (eval "$ac_compile") 2>conftest.er1
  7382. ac_status=$?
  7383. grep -v '^ *+' conftest.er1 >conftest.err
  7384. rm -f conftest.er1
  7385. cat conftest.err >&5
  7386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7387. (exit $ac_status); } && {
  7388. test -z "$ac_c_werror_flag" ||
  7389. test ! -s conftest.err
  7390. } && test -s conftest.$ac_objext; then
  7391. cat >conftest.$ac_ext <<_ACEOF
  7392. /* confdefs.h. */
  7393. _ACEOF
  7394. cat confdefs.h >>conftest.$ac_ext
  7395. cat >>conftest.$ac_ext <<_ACEOF
  7396. /* end confdefs.h. */
  7397. #include <sys/types.h>
  7398. #include <sys/socket.h>
  7399. #include <net/if.h>
  7400. #include <netinet/in.h>
  7401. int
  7402. main ()
  7403. {
  7404. if (sizeof ((struct in_pktinfo)))
  7405. return 0;
  7406. ;
  7407. return 0;
  7408. }
  7409. _ACEOF
  7410. rm -f conftest.$ac_objext
  7411. if { (ac_try="$ac_compile"
  7412. case "(($ac_try" in
  7413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7414. *) ac_try_echo=$ac_try;;
  7415. esac
  7416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7417. $as_echo "$ac_try_echo") >&5
  7418. (eval "$ac_compile") 2>conftest.er1
  7419. ac_status=$?
  7420. grep -v '^ *+' conftest.er1 >conftest.err
  7421. rm -f conftest.er1
  7422. cat conftest.err >&5
  7423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7424. (exit $ac_status); } && {
  7425. test -z "$ac_c_werror_flag" ||
  7426. test ! -s conftest.err
  7427. } && test -s conftest.$ac_objext; then
  7428. :
  7429. else
  7430. $as_echo "$as_me: failed program was:" >&5
  7431. sed 's/^/| /' conftest.$ac_ext >&5
  7432. ac_cv_type_struct_in_pktinfo=yes
  7433. fi
  7434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7435. else
  7436. $as_echo "$as_me: failed program was:" >&5
  7437. sed 's/^/| /' conftest.$ac_ext >&5
  7438. fi
  7439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7440. fi
  7441. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in_pktinfo" >&5
  7442. $as_echo "$ac_cv_type_struct_in_pktinfo" >&6; }
  7443. if test "x$ac_cv_type_struct_in_pktinfo" = x""yes; then
  7444. cat >>confdefs.h <<_ACEOF
  7445. #define HAVE_STRUCT_IN_PKTINFO 1
  7446. _ACEOF
  7447. fi
  7448. { $as_echo "$as_me:$LINENO: checking for struct ifreq" >&5
  7449. $as_echo_n "checking for struct ifreq... " >&6; }
  7450. if test "${ac_cv_type_struct_ifreq+set}" = set; then
  7451. $as_echo_n "(cached) " >&6
  7452. else
  7453. ac_cv_type_struct_ifreq=no
  7454. cat >conftest.$ac_ext <<_ACEOF
  7455. /* confdefs.h. */
  7456. _ACEOF
  7457. cat confdefs.h >>conftest.$ac_ext
  7458. cat >>conftest.$ac_ext <<_ACEOF
  7459. /* end confdefs.h. */
  7460. #include <sys/types.h>
  7461. #include <sys/socket.h>
  7462. #include <net/if.h>
  7463. #include <netinet/in.h>
  7464. int
  7465. main ()
  7466. {
  7467. if (sizeof (struct ifreq))
  7468. return 0;
  7469. ;
  7470. return 0;
  7471. }
  7472. _ACEOF
  7473. rm -f conftest.$ac_objext
  7474. if { (ac_try="$ac_compile"
  7475. case "(($ac_try" in
  7476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7477. *) ac_try_echo=$ac_try;;
  7478. esac
  7479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7480. $as_echo "$ac_try_echo") >&5
  7481. (eval "$ac_compile") 2>conftest.er1
  7482. ac_status=$?
  7483. grep -v '^ *+' conftest.er1 >conftest.err
  7484. rm -f conftest.er1
  7485. cat conftest.err >&5
  7486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7487. (exit $ac_status); } && {
  7488. test -z "$ac_c_werror_flag" ||
  7489. test ! -s conftest.err
  7490. } && test -s conftest.$ac_objext; then
  7491. cat >conftest.$ac_ext <<_ACEOF
  7492. /* confdefs.h. */
  7493. _ACEOF
  7494. cat confdefs.h >>conftest.$ac_ext
  7495. cat >>conftest.$ac_ext <<_ACEOF
  7496. /* end confdefs.h. */
  7497. #include <sys/types.h>
  7498. #include <sys/socket.h>
  7499. #include <net/if.h>
  7500. #include <netinet/in.h>
  7501. int
  7502. main ()
  7503. {
  7504. if (sizeof ((struct ifreq)))
  7505. return 0;
  7506. ;
  7507. return 0;
  7508. }
  7509. _ACEOF
  7510. rm -f conftest.$ac_objext
  7511. if { (ac_try="$ac_compile"
  7512. case "(($ac_try" in
  7513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7514. *) ac_try_echo=$ac_try;;
  7515. esac
  7516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7517. $as_echo "$ac_try_echo") >&5
  7518. (eval "$ac_compile") 2>conftest.er1
  7519. ac_status=$?
  7520. grep -v '^ *+' conftest.er1 >conftest.err
  7521. rm -f conftest.er1
  7522. cat conftest.err >&5
  7523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. (exit $ac_status); } && {
  7525. test -z "$ac_c_werror_flag" ||
  7526. test ! -s conftest.err
  7527. } && test -s conftest.$ac_objext; then
  7528. :
  7529. else
  7530. $as_echo "$as_me: failed program was:" >&5
  7531. sed 's/^/| /' conftest.$ac_ext >&5
  7532. ac_cv_type_struct_ifreq=yes
  7533. fi
  7534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7535. else
  7536. $as_echo "$as_me: failed program was:" >&5
  7537. sed 's/^/| /' conftest.$ac_ext >&5
  7538. fi
  7539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7540. fi
  7541. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifreq" >&5
  7542. $as_echo "$ac_cv_type_struct_ifreq" >&6; }
  7543. if test "x$ac_cv_type_struct_ifreq" = x""yes; then
  7544. cat >>confdefs.h <<_ACEOF
  7545. #define HAVE_STRUCT_IFREQ 1
  7546. _ACEOF
  7547. fi
  7548. { $as_echo "$as_me:$LINENO: checking for CPP C99 Variadic macro support" >&5
  7549. $as_echo_n "checking for CPP C99 Variadic macro support... " >&6; }
  7550. cat >conftest.$ac_ext <<_ACEOF
  7551. #define a(...) junk(0,__VA_ARGS__)
  7552. extern void junk(int i,...);
  7553. int main()
  7554. {
  7555. a(0);
  7556. a("a");
  7557. a(0, "a", 1);
  7558. return 0;
  7559. }
  7560. _ACEOF
  7561. rm -f conftest.$ac_objext
  7562. if { (ac_try="$ac_compile"
  7563. case "(($ac_try" in
  7564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7565. *) ac_try_echo=$ac_try;;
  7566. esac
  7567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7568. $as_echo "$ac_try_echo") >&5
  7569. (eval "$ac_compile") 2>conftest.er1
  7570. ac_status=$?
  7571. grep -v '^ *+' conftest.er1 >conftest.err
  7572. rm -f conftest.er1
  7573. cat conftest.err >&5
  7574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7575. (exit $ac_status); } && {
  7576. test -z "$ac_c_werror_flag" ||
  7577. test ! -s conftest.err
  7578. } && test -s conftest.$ac_objext; then
  7579. cpp_c99_variadic="yes"
  7580. else
  7581. $as_echo "$as_me: failed program was:" >&5
  7582. sed 's/^/| /' conftest.$ac_ext >&5
  7583. cpp_c99_variadic="no"
  7584. fi
  7585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. { $as_echo "$as_me:$LINENO: result: $cpp_c99_variadic" >&5
  7587. $as_echo "$cpp_c99_variadic" >&6; }
  7588. if test $cpp_c99_variadic = yes; then
  7589. cat >>confdefs.h <<\_ACEOF
  7590. #define CPP_C99_VARIADIC_MACROS 1
  7591. _ACEOF
  7592. else
  7593. if test "$GCC" != yes; then
  7594. { { $as_echo "$as_me:$LINENO: error: Compiler must support C99 or gcc variadic macros" >&5
  7595. $as_echo "$as_me: error: Compiler must support C99 or gcc variadic macros" >&2;}
  7596. { (exit 1); exit 1; }; }
  7597. fi;
  7598. fi
  7599. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  7600. # for constant arguments. Useless!
  7601. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  7602. $as_echo_n "checking for working alloca.h... " >&6; }
  7603. if test "${ac_cv_working_alloca_h+set}" = set; then
  7604. $as_echo_n "(cached) " >&6
  7605. else
  7606. cat >conftest.$ac_ext <<_ACEOF
  7607. /* confdefs.h. */
  7608. _ACEOF
  7609. cat confdefs.h >>conftest.$ac_ext
  7610. cat >>conftest.$ac_ext <<_ACEOF
  7611. /* end confdefs.h. */
  7612. #include <alloca.h>
  7613. int
  7614. main ()
  7615. {
  7616. char *p = (char *) alloca (2 * sizeof (int));
  7617. if (p) return 0;
  7618. ;
  7619. return 0;
  7620. }
  7621. _ACEOF
  7622. rm -f conftest.$ac_objext conftest$ac_exeext
  7623. if { (ac_try="$ac_link"
  7624. case "(($ac_try" in
  7625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7626. *) ac_try_echo=$ac_try;;
  7627. esac
  7628. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7629. $as_echo "$ac_try_echo") >&5
  7630. (eval "$ac_link") 2>conftest.er1
  7631. ac_status=$?
  7632. grep -v '^ *+' conftest.er1 >conftest.err
  7633. rm -f conftest.er1
  7634. cat conftest.err >&5
  7635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. (exit $ac_status); } && {
  7637. test -z "$ac_c_werror_flag" ||
  7638. test ! -s conftest.err
  7639. } && test -s conftest$ac_exeext && {
  7640. test "$cross_compiling" = yes ||
  7641. $as_test_x conftest$ac_exeext
  7642. }; then
  7643. ac_cv_working_alloca_h=yes
  7644. else
  7645. $as_echo "$as_me: failed program was:" >&5
  7646. sed 's/^/| /' conftest.$ac_ext >&5
  7647. ac_cv_working_alloca_h=no
  7648. fi
  7649. rm -rf conftest.dSYM
  7650. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7651. conftest$ac_exeext conftest.$ac_ext
  7652. fi
  7653. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  7654. $as_echo "$ac_cv_working_alloca_h" >&6; }
  7655. if test $ac_cv_working_alloca_h = yes; then
  7656. cat >>confdefs.h <<\_ACEOF
  7657. #define HAVE_ALLOCA_H 1
  7658. _ACEOF
  7659. fi
  7660. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  7661. $as_echo_n "checking for alloca... " >&6; }
  7662. if test "${ac_cv_func_alloca_works+set}" = set; then
  7663. $as_echo_n "(cached) " >&6
  7664. else
  7665. cat >conftest.$ac_ext <<_ACEOF
  7666. /* confdefs.h. */
  7667. _ACEOF
  7668. cat confdefs.h >>conftest.$ac_ext
  7669. cat >>conftest.$ac_ext <<_ACEOF
  7670. /* end confdefs.h. */
  7671. #ifdef __GNUC__
  7672. # define alloca __builtin_alloca
  7673. #else
  7674. # ifdef _MSC_VER
  7675. # include <malloc.h>
  7676. # define alloca _alloca
  7677. # else
  7678. # ifdef HAVE_ALLOCA_H
  7679. # include <alloca.h>
  7680. # else
  7681. # ifdef _AIX
  7682. #pragma alloca
  7683. # else
  7684. # ifndef alloca /* predefined by HP cc +Olibcalls */
  7685. char *alloca ();
  7686. # endif
  7687. # endif
  7688. # endif
  7689. # endif
  7690. #endif
  7691. int
  7692. main ()
  7693. {
  7694. char *p = (char *) alloca (1);
  7695. if (p) return 0;
  7696. ;
  7697. return 0;
  7698. }
  7699. _ACEOF
  7700. rm -f conftest.$ac_objext conftest$ac_exeext
  7701. if { (ac_try="$ac_link"
  7702. case "(($ac_try" in
  7703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7704. *) ac_try_echo=$ac_try;;
  7705. esac
  7706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7707. $as_echo "$ac_try_echo") >&5
  7708. (eval "$ac_link") 2>conftest.er1
  7709. ac_status=$?
  7710. grep -v '^ *+' conftest.er1 >conftest.err
  7711. rm -f conftest.er1
  7712. cat conftest.err >&5
  7713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7714. (exit $ac_status); } && {
  7715. test -z "$ac_c_werror_flag" ||
  7716. test ! -s conftest.err
  7717. } && test -s conftest$ac_exeext && {
  7718. test "$cross_compiling" = yes ||
  7719. $as_test_x conftest$ac_exeext
  7720. }; then
  7721. ac_cv_func_alloca_works=yes
  7722. else
  7723. $as_echo "$as_me: failed program was:" >&5
  7724. sed 's/^/| /' conftest.$ac_ext >&5
  7725. ac_cv_func_alloca_works=no
  7726. fi
  7727. rm -rf conftest.dSYM
  7728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7729. conftest$ac_exeext conftest.$ac_ext
  7730. fi
  7731. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7732. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7733. if test $ac_cv_func_alloca_works = yes; then
  7734. cat >>confdefs.h <<\_ACEOF
  7735. #define HAVE_ALLOCA 1
  7736. _ACEOF
  7737. else
  7738. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7739. # that cause trouble. Some versions do not even contain alloca or
  7740. # contain a buggy version. If you still want to use their alloca,
  7741. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7742. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7743. cat >>confdefs.h <<\_ACEOF
  7744. #define C_ALLOCA 1
  7745. _ACEOF
  7746. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7747. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7748. if test "${ac_cv_os_cray+set}" = set; then
  7749. $as_echo_n "(cached) " >&6
  7750. else
  7751. cat >conftest.$ac_ext <<_ACEOF
  7752. /* confdefs.h. */
  7753. _ACEOF
  7754. cat confdefs.h >>conftest.$ac_ext
  7755. cat >>conftest.$ac_ext <<_ACEOF
  7756. /* end confdefs.h. */
  7757. #if defined CRAY && ! defined CRAY2
  7758. webecray
  7759. #else
  7760. wenotbecray
  7761. #endif
  7762. _ACEOF
  7763. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7764. $EGREP "webecray" >/dev/null 2>&1; then
  7765. ac_cv_os_cray=yes
  7766. else
  7767. ac_cv_os_cray=no
  7768. fi
  7769. rm -f conftest*
  7770. fi
  7771. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7772. $as_echo "$ac_cv_os_cray" >&6; }
  7773. if test $ac_cv_os_cray = yes; then
  7774. for ac_func in _getb67 GETB67 getb67; do
  7775. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7776. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7777. $as_echo_n "checking for $ac_func... " >&6; }
  7778. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7779. $as_echo_n "(cached) " >&6
  7780. else
  7781. cat >conftest.$ac_ext <<_ACEOF
  7782. /* confdefs.h. */
  7783. _ACEOF
  7784. cat confdefs.h >>conftest.$ac_ext
  7785. cat >>conftest.$ac_ext <<_ACEOF
  7786. /* end confdefs.h. */
  7787. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7788. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7789. #define $ac_func innocuous_$ac_func
  7790. /* System header to define __stub macros and hopefully few prototypes,
  7791. which can conflict with char $ac_func (); below.
  7792. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7793. <limits.h> exists even on freestanding compilers. */
  7794. #ifdef __STDC__
  7795. # include <limits.h>
  7796. #else
  7797. # include <assert.h>
  7798. #endif
  7799. #undef $ac_func
  7800. /* Override any GCC internal prototype to avoid an error.
  7801. Use char because int might match the return type of a GCC
  7802. builtin and then its argument prototype would still apply. */
  7803. #ifdef __cplusplus
  7804. extern "C"
  7805. #endif
  7806. char $ac_func ();
  7807. /* The GNU C library defines this for functions which it implements
  7808. to always fail with ENOSYS. Some functions are actually named
  7809. something starting with __ and the normal name is an alias. */
  7810. #if defined __stub_$ac_func || defined __stub___$ac_func
  7811. choke me
  7812. #endif
  7813. int
  7814. main ()
  7815. {
  7816. return $ac_func ();
  7817. ;
  7818. return 0;
  7819. }
  7820. _ACEOF
  7821. rm -f conftest.$ac_objext conftest$ac_exeext
  7822. if { (ac_try="$ac_link"
  7823. case "(($ac_try" in
  7824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7825. *) ac_try_echo=$ac_try;;
  7826. esac
  7827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7828. $as_echo "$ac_try_echo") >&5
  7829. (eval "$ac_link") 2>conftest.er1
  7830. ac_status=$?
  7831. grep -v '^ *+' conftest.er1 >conftest.err
  7832. rm -f conftest.er1
  7833. cat conftest.err >&5
  7834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. (exit $ac_status); } && {
  7836. test -z "$ac_c_werror_flag" ||
  7837. test ! -s conftest.err
  7838. } && test -s conftest$ac_exeext && {
  7839. test "$cross_compiling" = yes ||
  7840. $as_test_x conftest$ac_exeext
  7841. }; then
  7842. eval "$as_ac_var=yes"
  7843. else
  7844. $as_echo "$as_me: failed program was:" >&5
  7845. sed 's/^/| /' conftest.$ac_ext >&5
  7846. eval "$as_ac_var=no"
  7847. fi
  7848. rm -rf conftest.dSYM
  7849. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7850. conftest$ac_exeext conftest.$ac_ext
  7851. fi
  7852. ac_res=`eval 'as_val=${'$as_ac_var'}
  7853. $as_echo "$as_val"'`
  7854. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7855. $as_echo "$ac_res" >&6; }
  7856. as_val=`eval 'as_val=${'$as_ac_var'}
  7857. $as_echo "$as_val"'`
  7858. if test "x$as_val" = x""yes; then
  7859. cat >>confdefs.h <<_ACEOF
  7860. #define CRAY_STACKSEG_END $ac_func
  7861. _ACEOF
  7862. break
  7863. fi
  7864. done
  7865. fi
  7866. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7867. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7868. if test "${ac_cv_c_stack_direction+set}" = set; then
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. if test "$cross_compiling" = yes; then
  7872. ac_cv_c_stack_direction=0
  7873. else
  7874. cat >conftest.$ac_ext <<_ACEOF
  7875. /* confdefs.h. */
  7876. _ACEOF
  7877. cat confdefs.h >>conftest.$ac_ext
  7878. cat >>conftest.$ac_ext <<_ACEOF
  7879. /* end confdefs.h. */
  7880. $ac_includes_default
  7881. int
  7882. find_stack_direction ()
  7883. {
  7884. static char *addr = 0;
  7885. auto char dummy;
  7886. if (addr == 0)
  7887. {
  7888. addr = &dummy;
  7889. return find_stack_direction ();
  7890. }
  7891. else
  7892. return (&dummy > addr) ? 1 : -1;
  7893. }
  7894. int
  7895. main ()
  7896. {
  7897. return find_stack_direction () < 0;
  7898. }
  7899. _ACEOF
  7900. rm -f conftest$ac_exeext
  7901. if { (ac_try="$ac_link"
  7902. case "(($ac_try" in
  7903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7904. *) ac_try_echo=$ac_try;;
  7905. esac
  7906. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7907. $as_echo "$ac_try_echo") >&5
  7908. (eval "$ac_link") 2>&5
  7909. ac_status=$?
  7910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7912. { (case "(($ac_try" in
  7913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7914. *) ac_try_echo=$ac_try;;
  7915. esac
  7916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7917. $as_echo "$ac_try_echo") >&5
  7918. (eval "$ac_try") 2>&5
  7919. ac_status=$?
  7920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7921. (exit $ac_status); }; }; then
  7922. ac_cv_c_stack_direction=1
  7923. else
  7924. $as_echo "$as_me: program exited with status $ac_status" >&5
  7925. $as_echo "$as_me: failed program was:" >&5
  7926. sed 's/^/| /' conftest.$ac_ext >&5
  7927. ( exit $ac_status )
  7928. ac_cv_c_stack_direction=-1
  7929. fi
  7930. rm -rf conftest.dSYM
  7931. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7932. fi
  7933. fi
  7934. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7935. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7936. cat >>confdefs.h <<_ACEOF
  7937. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7938. _ACEOF
  7939. fi
  7940. if test $ac_cv_c_compiler_gnu = yes; then
  7941. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7942. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  7943. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7944. $as_echo_n "(cached) " >&6
  7945. else
  7946. ac_pattern="Autoconf.*'x'"
  7947. cat >conftest.$ac_ext <<_ACEOF
  7948. /* confdefs.h. */
  7949. _ACEOF
  7950. cat confdefs.h >>conftest.$ac_ext
  7951. cat >>conftest.$ac_ext <<_ACEOF
  7952. /* end confdefs.h. */
  7953. #include <sgtty.h>
  7954. Autoconf TIOCGETP
  7955. _ACEOF
  7956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7957. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7958. ac_cv_prog_gcc_traditional=yes
  7959. else
  7960. ac_cv_prog_gcc_traditional=no
  7961. fi
  7962. rm -f conftest*
  7963. if test $ac_cv_prog_gcc_traditional = no; then
  7964. cat >conftest.$ac_ext <<_ACEOF
  7965. /* confdefs.h. */
  7966. _ACEOF
  7967. cat confdefs.h >>conftest.$ac_ext
  7968. cat >>conftest.$ac_ext <<_ACEOF
  7969. /* end confdefs.h. */
  7970. #include <termio.h>
  7971. Autoconf TCGETA
  7972. _ACEOF
  7973. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7974. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7975. ac_cv_prog_gcc_traditional=yes
  7976. fi
  7977. rm -f conftest*
  7978. fi
  7979. fi
  7980. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7981. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  7982. if test $ac_cv_prog_gcc_traditional = yes; then
  7983. CC="$CC -traditional"
  7984. fi
  7985. fi
  7986. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  7987. $as_echo_n "checking for working memcmp... " >&6; }
  7988. if test "${ac_cv_func_memcmp_working+set}" = set; then
  7989. $as_echo_n "(cached) " >&6
  7990. else
  7991. if test "$cross_compiling" = yes; then
  7992. ac_cv_func_memcmp_working=no
  7993. else
  7994. cat >conftest.$ac_ext <<_ACEOF
  7995. /* confdefs.h. */
  7996. _ACEOF
  7997. cat confdefs.h >>conftest.$ac_ext
  7998. cat >>conftest.$ac_ext <<_ACEOF
  7999. /* end confdefs.h. */
  8000. $ac_includes_default
  8001. int
  8002. main ()
  8003. {
  8004. /* Some versions of memcmp are not 8-bit clean. */
  8005. char c0 = '\100', c1 = '\200', c2 = '\201';
  8006. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  8007. return 1;
  8008. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  8009. or more and with at least one buffer not starting on a 4-byte boundary.
  8010. William Lewis provided this test program. */
  8011. {
  8012. char foo[21];
  8013. char bar[21];
  8014. int i;
  8015. for (i = 0; i < 4; i++)
  8016. {
  8017. char *a = foo + i;
  8018. char *b = bar + i;
  8019. strcpy (a, "--------01111111");
  8020. strcpy (b, "--------10000000");
  8021. if (memcmp (a, b, 16) >= 0)
  8022. return 1;
  8023. }
  8024. return 0;
  8025. }
  8026. ;
  8027. return 0;
  8028. }
  8029. _ACEOF
  8030. rm -f conftest$ac_exeext
  8031. if { (ac_try="$ac_link"
  8032. case "(($ac_try" in
  8033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8034. *) ac_try_echo=$ac_try;;
  8035. esac
  8036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8037. $as_echo "$ac_try_echo") >&5
  8038. (eval "$ac_link") 2>&5
  8039. ac_status=$?
  8040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8041. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8042. { (case "(($ac_try" in
  8043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8044. *) ac_try_echo=$ac_try;;
  8045. esac
  8046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8047. $as_echo "$ac_try_echo") >&5
  8048. (eval "$ac_try") 2>&5
  8049. ac_status=$?
  8050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051. (exit $ac_status); }; }; then
  8052. ac_cv_func_memcmp_working=yes
  8053. else
  8054. $as_echo "$as_me: program exited with status $ac_status" >&5
  8055. $as_echo "$as_me: failed program was:" >&5
  8056. sed 's/^/| /' conftest.$ac_ext >&5
  8057. ( exit $ac_status )
  8058. ac_cv_func_memcmp_working=no
  8059. fi
  8060. rm -rf conftest.dSYM
  8061. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8062. fi
  8063. fi
  8064. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  8065. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  8066. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  8067. *" memcmp.$ac_objext "* ) ;;
  8068. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  8069. ;;
  8070. esac
  8071. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  8072. $as_echo_n "checking return type of signal handlers... " >&6; }
  8073. if test "${ac_cv_type_signal+set}" = set; then
  8074. $as_echo_n "(cached) " >&6
  8075. else
  8076. cat >conftest.$ac_ext <<_ACEOF
  8077. /* confdefs.h. */
  8078. _ACEOF
  8079. cat confdefs.h >>conftest.$ac_ext
  8080. cat >>conftest.$ac_ext <<_ACEOF
  8081. /* end confdefs.h. */
  8082. #include <sys/types.h>
  8083. #include <signal.h>
  8084. int
  8085. main ()
  8086. {
  8087. return *(signal (0, 0)) (0) == 1;
  8088. ;
  8089. return 0;
  8090. }
  8091. _ACEOF
  8092. rm -f conftest.$ac_objext
  8093. if { (ac_try="$ac_compile"
  8094. case "(($ac_try" in
  8095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8096. *) ac_try_echo=$ac_try;;
  8097. esac
  8098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8099. $as_echo "$ac_try_echo") >&5
  8100. (eval "$ac_compile") 2>conftest.er1
  8101. ac_status=$?
  8102. grep -v '^ *+' conftest.er1 >conftest.err
  8103. rm -f conftest.er1
  8104. cat conftest.err >&5
  8105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8106. (exit $ac_status); } && {
  8107. test -z "$ac_c_werror_flag" ||
  8108. test ! -s conftest.err
  8109. } && test -s conftest.$ac_objext; then
  8110. ac_cv_type_signal=int
  8111. else
  8112. $as_echo "$as_me: failed program was:" >&5
  8113. sed 's/^/| /' conftest.$ac_ext >&5
  8114. ac_cv_type_signal=void
  8115. fi
  8116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8117. fi
  8118. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  8119. $as_echo "$ac_cv_type_signal" >&6; }
  8120. cat >>confdefs.h <<_ACEOF
  8121. #define RETSIGTYPE $ac_cv_type_signal
  8122. _ACEOF
  8123. for ac_func in vprintf
  8124. do
  8125. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8126. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  8127. $as_echo_n "checking for $ac_func... " >&6; }
  8128. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8129. $as_echo_n "(cached) " >&6
  8130. else
  8131. cat >conftest.$ac_ext <<_ACEOF
  8132. /* confdefs.h. */
  8133. _ACEOF
  8134. cat confdefs.h >>conftest.$ac_ext
  8135. cat >>conftest.$ac_ext <<_ACEOF
  8136. /* end confdefs.h. */
  8137. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8138. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8139. #define $ac_func innocuous_$ac_func
  8140. /* System header to define __stub macros and hopefully few prototypes,
  8141. which can conflict with char $ac_func (); below.
  8142. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8143. <limits.h> exists even on freestanding compilers. */
  8144. #ifdef __STDC__
  8145. # include <limits.h>
  8146. #else
  8147. # include <assert.h>
  8148. #endif
  8149. #undef $ac_func
  8150. /* Override any GCC internal prototype to avoid an error.
  8151. Use char because int might match the return type of a GCC
  8152. builtin and then its argument prototype would still apply. */
  8153. #ifdef __cplusplus
  8154. extern "C"
  8155. #endif
  8156. char $ac_func ();
  8157. /* The GNU C library defines this for functions which it implements
  8158. to always fail with ENOSYS. Some functions are actually named
  8159. something starting with __ and the normal name is an alias. */
  8160. #if defined __stub_$ac_func || defined __stub___$ac_func
  8161. choke me
  8162. #endif
  8163. int
  8164. main ()
  8165. {
  8166. return $ac_func ();
  8167. ;
  8168. return 0;
  8169. }
  8170. _ACEOF
  8171. rm -f conftest.$ac_objext conftest$ac_exeext
  8172. if { (ac_try="$ac_link"
  8173. case "(($ac_try" in
  8174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8175. *) ac_try_echo=$ac_try;;
  8176. esac
  8177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8178. $as_echo "$ac_try_echo") >&5
  8179. (eval "$ac_link") 2>conftest.er1
  8180. ac_status=$?
  8181. grep -v '^ *+' conftest.er1 >conftest.err
  8182. rm -f conftest.er1
  8183. cat conftest.err >&5
  8184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8185. (exit $ac_status); } && {
  8186. test -z "$ac_c_werror_flag" ||
  8187. test ! -s conftest.err
  8188. } && test -s conftest$ac_exeext && {
  8189. test "$cross_compiling" = yes ||
  8190. $as_test_x conftest$ac_exeext
  8191. }; then
  8192. eval "$as_ac_var=yes"
  8193. else
  8194. $as_echo "$as_me: failed program was:" >&5
  8195. sed 's/^/| /' conftest.$ac_ext >&5
  8196. eval "$as_ac_var=no"
  8197. fi
  8198. rm -rf conftest.dSYM
  8199. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8200. conftest$ac_exeext conftest.$ac_ext
  8201. fi
  8202. ac_res=`eval 'as_val=${'$as_ac_var'}
  8203. $as_echo "$as_val"'`
  8204. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8205. $as_echo "$ac_res" >&6; }
  8206. as_val=`eval 'as_val=${'$as_ac_var'}
  8207. $as_echo "$as_val"'`
  8208. if test "x$as_val" = x""yes; then
  8209. cat >>confdefs.h <<_ACEOF
  8210. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8211. _ACEOF
  8212. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  8213. $as_echo_n "checking for _doprnt... " >&6; }
  8214. if test "${ac_cv_func__doprnt+set}" = set; then
  8215. $as_echo_n "(cached) " >&6
  8216. else
  8217. cat >conftest.$ac_ext <<_ACEOF
  8218. /* confdefs.h. */
  8219. _ACEOF
  8220. cat confdefs.h >>conftest.$ac_ext
  8221. cat >>conftest.$ac_ext <<_ACEOF
  8222. /* end confdefs.h. */
  8223. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  8224. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8225. #define _doprnt innocuous__doprnt
  8226. /* System header to define __stub macros and hopefully few prototypes,
  8227. which can conflict with char _doprnt (); below.
  8228. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8229. <limits.h> exists even on freestanding compilers. */
  8230. #ifdef __STDC__
  8231. # include <limits.h>
  8232. #else
  8233. # include <assert.h>
  8234. #endif
  8235. #undef _doprnt
  8236. /* Override any GCC internal prototype to avoid an error.
  8237. Use char because int might match the return type of a GCC
  8238. builtin and then its argument prototype would still apply. */
  8239. #ifdef __cplusplus
  8240. extern "C"
  8241. #endif
  8242. char _doprnt ();
  8243. /* The GNU C library defines this for functions which it implements
  8244. to always fail with ENOSYS. Some functions are actually named
  8245. something starting with __ and the normal name is an alias. */
  8246. #if defined __stub__doprnt || defined __stub____doprnt
  8247. choke me
  8248. #endif
  8249. int
  8250. main ()
  8251. {
  8252. return _doprnt ();
  8253. ;
  8254. return 0;
  8255. }
  8256. _ACEOF
  8257. rm -f conftest.$ac_objext conftest$ac_exeext
  8258. if { (ac_try="$ac_link"
  8259. case "(($ac_try" in
  8260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8261. *) ac_try_echo=$ac_try;;
  8262. esac
  8263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8264. $as_echo "$ac_try_echo") >&5
  8265. (eval "$ac_link") 2>conftest.er1
  8266. ac_status=$?
  8267. grep -v '^ *+' conftest.er1 >conftest.err
  8268. rm -f conftest.er1
  8269. cat conftest.err >&5
  8270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8271. (exit $ac_status); } && {
  8272. test -z "$ac_c_werror_flag" ||
  8273. test ! -s conftest.err
  8274. } && test -s conftest$ac_exeext && {
  8275. test "$cross_compiling" = yes ||
  8276. $as_test_x conftest$ac_exeext
  8277. }; then
  8278. ac_cv_func__doprnt=yes
  8279. else
  8280. $as_echo "$as_me: failed program was:" >&5
  8281. sed 's/^/| /' conftest.$ac_ext >&5
  8282. ac_cv_func__doprnt=no
  8283. fi
  8284. rm -rf conftest.dSYM
  8285. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8286. conftest$ac_exeext conftest.$ac_ext
  8287. fi
  8288. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  8289. $as_echo "$ac_cv_func__doprnt" >&6; }
  8290. if test "x$ac_cv_func__doprnt" = x""yes; then
  8291. cat >>confdefs.h <<\_ACEOF
  8292. #define HAVE_DOPRNT 1
  8293. _ACEOF
  8294. fi
  8295. fi
  8296. done
  8297. { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
  8298. $as_echo_n "checking for library containing nanosleep... " >&6; }
  8299. if test "${ac_cv_search_nanosleep+set}" = set; then
  8300. $as_echo_n "(cached) " >&6
  8301. else
  8302. ac_func_search_save_LIBS=$LIBS
  8303. cat >conftest.$ac_ext <<_ACEOF
  8304. /* confdefs.h. */
  8305. _ACEOF
  8306. cat confdefs.h >>conftest.$ac_ext
  8307. cat >>conftest.$ac_ext <<_ACEOF
  8308. /* end confdefs.h. */
  8309. /* Override any GCC internal prototype to avoid an error.
  8310. Use char because int might match the return type of a GCC
  8311. builtin and then its argument prototype would still apply. */
  8312. #ifdef __cplusplus
  8313. extern "C"
  8314. #endif
  8315. char nanosleep ();
  8316. int
  8317. main ()
  8318. {
  8319. return nanosleep ();
  8320. ;
  8321. return 0;
  8322. }
  8323. _ACEOF
  8324. for ac_lib in '' rt; do
  8325. if test -z "$ac_lib"; then
  8326. ac_res="none required"
  8327. else
  8328. ac_res=-l$ac_lib
  8329. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8330. fi
  8331. rm -f conftest.$ac_objext conftest$ac_exeext
  8332. if { (ac_try="$ac_link"
  8333. case "(($ac_try" in
  8334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8335. *) ac_try_echo=$ac_try;;
  8336. esac
  8337. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8338. $as_echo "$ac_try_echo") >&5
  8339. (eval "$ac_link") 2>conftest.er1
  8340. ac_status=$?
  8341. grep -v '^ *+' conftest.er1 >conftest.err
  8342. rm -f conftest.er1
  8343. cat conftest.err >&5
  8344. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8345. (exit $ac_status); } && {
  8346. test -z "$ac_c_werror_flag" ||
  8347. test ! -s conftest.err
  8348. } && test -s conftest$ac_exeext && {
  8349. test "$cross_compiling" = yes ||
  8350. $as_test_x conftest$ac_exeext
  8351. }; then
  8352. ac_cv_search_nanosleep=$ac_res
  8353. else
  8354. $as_echo "$as_me: failed program was:" >&5
  8355. sed 's/^/| /' conftest.$ac_ext >&5
  8356. fi
  8357. rm -rf conftest.dSYM
  8358. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8359. conftest$ac_exeext
  8360. if test "${ac_cv_search_nanosleep+set}" = set; then
  8361. break
  8362. fi
  8363. done
  8364. if test "${ac_cv_search_nanosleep+set}" = set; then
  8365. :
  8366. else
  8367. ac_cv_search_nanosleep=no
  8368. fi
  8369. rm conftest.$ac_ext
  8370. LIBS=$ac_func_search_save_LIBS
  8371. fi
  8372. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
  8373. $as_echo "$ac_cv_search_nanosleep" >&6; }
  8374. ac_res=$ac_cv_search_nanosleep
  8375. if test "$ac_res" != no; then
  8376. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8377. fi
  8378. { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
  8379. $as_echo_n "checking for library containing socket... " >&6; }
  8380. if test "${ac_cv_search_socket+set}" = set; then
  8381. $as_echo_n "(cached) " >&6
  8382. else
  8383. ac_func_search_save_LIBS=$LIBS
  8384. cat >conftest.$ac_ext <<_ACEOF
  8385. /* confdefs.h. */
  8386. _ACEOF
  8387. cat confdefs.h >>conftest.$ac_ext
  8388. cat >>conftest.$ac_ext <<_ACEOF
  8389. /* end confdefs.h. */
  8390. /* Override any GCC internal prototype to avoid an error.
  8391. Use char because int might match the return type of a GCC
  8392. builtin and then its argument prototype would still apply. */
  8393. #ifdef __cplusplus
  8394. extern "C"
  8395. #endif
  8396. char socket ();
  8397. int
  8398. main ()
  8399. {
  8400. return socket ();
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. for ac_lib in '' socket; do
  8406. if test -z "$ac_lib"; then
  8407. ac_res="none required"
  8408. else
  8409. ac_res=-l$ac_lib
  8410. LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  8411. fi
  8412. rm -f conftest.$ac_objext conftest$ac_exeext
  8413. if { (ac_try="$ac_link"
  8414. case "(($ac_try" in
  8415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8416. *) ac_try_echo=$ac_try;;
  8417. esac
  8418. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8419. $as_echo "$ac_try_echo") >&5
  8420. (eval "$ac_link") 2>conftest.er1
  8421. ac_status=$?
  8422. grep -v '^ *+' conftest.er1 >conftest.err
  8423. rm -f conftest.er1
  8424. cat conftest.err >&5
  8425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8426. (exit $ac_status); } && {
  8427. test -z "$ac_c_werror_flag" ||
  8428. test ! -s conftest.err
  8429. } && test -s conftest$ac_exeext && {
  8430. test "$cross_compiling" = yes ||
  8431. $as_test_x conftest$ac_exeext
  8432. }; then
  8433. ac_cv_search_socket=$ac_res
  8434. else
  8435. $as_echo "$as_me: failed program was:" >&5
  8436. sed 's/^/| /' conftest.$ac_ext >&5
  8437. fi
  8438. rm -rf conftest.dSYM
  8439. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8440. conftest$ac_exeext
  8441. if test "${ac_cv_search_socket+set}" = set; then
  8442. break
  8443. fi
  8444. done
  8445. if test "${ac_cv_search_socket+set}" = set; then
  8446. :
  8447. else
  8448. ac_cv_search_socket=no
  8449. fi
  8450. rm conftest.$ac_ext
  8451. LIBS=$ac_func_search_save_LIBS
  8452. fi
  8453. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
  8454. $as_echo "$ac_cv_search_socket" >&6; }
  8455. ac_res=$ac_cv_search_socket
  8456. if test "$ac_res" != no; then
  8457. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8458. fi
  8459. { $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
  8460. $as_echo_n "checking for library containing inet_aton... " >&6; }
  8461. if test "${ac_cv_search_inet_aton+set}" = set; then
  8462. $as_echo_n "(cached) " >&6
  8463. else
  8464. ac_func_search_save_LIBS=$LIBS
  8465. cat >conftest.$ac_ext <<_ACEOF
  8466. /* confdefs.h. */
  8467. _ACEOF
  8468. cat confdefs.h >>conftest.$ac_ext
  8469. cat >>conftest.$ac_ext <<_ACEOF
  8470. /* end confdefs.h. */
  8471. /* Override any GCC internal prototype to avoid an error.
  8472. Use char because int might match the return type of a GCC
  8473. builtin and then its argument prototype would still apply. */
  8474. #ifdef __cplusplus
  8475. extern "C"
  8476. #endif
  8477. char inet_aton ();
  8478. int
  8479. main ()
  8480. {
  8481. return inet_aton ();
  8482. ;
  8483. return 0;
  8484. }
  8485. _ACEOF
  8486. for ac_lib in '' resolv; do
  8487. if test -z "$ac_lib"; then
  8488. ac_res="none required"
  8489. else
  8490. ac_res=-l$ac_lib
  8491. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8492. fi
  8493. rm -f conftest.$ac_objext conftest$ac_exeext
  8494. if { (ac_try="$ac_link"
  8495. case "(($ac_try" in
  8496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8497. *) ac_try_echo=$ac_try;;
  8498. esac
  8499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8500. $as_echo "$ac_try_echo") >&5
  8501. (eval "$ac_link") 2>conftest.er1
  8502. ac_status=$?
  8503. grep -v '^ *+' conftest.er1 >conftest.err
  8504. rm -f conftest.er1
  8505. cat conftest.err >&5
  8506. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8507. (exit $ac_status); } && {
  8508. test -z "$ac_c_werror_flag" ||
  8509. test ! -s conftest.err
  8510. } && test -s conftest$ac_exeext && {
  8511. test "$cross_compiling" = yes ||
  8512. $as_test_x conftest$ac_exeext
  8513. }; then
  8514. ac_cv_search_inet_aton=$ac_res
  8515. else
  8516. $as_echo "$as_me: failed program was:" >&5
  8517. sed 's/^/| /' conftest.$ac_ext >&5
  8518. fi
  8519. rm -rf conftest.dSYM
  8520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8521. conftest$ac_exeext
  8522. if test "${ac_cv_search_inet_aton+set}" = set; then
  8523. break
  8524. fi
  8525. done
  8526. if test "${ac_cv_search_inet_aton+set}" = set; then
  8527. :
  8528. else
  8529. ac_cv_search_inet_aton=no
  8530. fi
  8531. rm conftest.$ac_ext
  8532. LIBS=$ac_func_search_save_LIBS
  8533. fi
  8534. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
  8535. $as_echo "$ac_cv_search_inet_aton" >&6; }
  8536. ac_res=$ac_cv_search_inet_aton
  8537. if test "$ac_res" != no; then
  8538. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8539. fi
  8540. for ac_func in nanosleep gettimeofday mkfifo select socket strerror uname snprintf vsnprintf
  8541. do
  8542. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8543. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  8544. $as_echo_n "checking for $ac_func... " >&6; }
  8545. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8546. $as_echo_n "(cached) " >&6
  8547. else
  8548. cat >conftest.$ac_ext <<_ACEOF
  8549. /* confdefs.h. */
  8550. _ACEOF
  8551. cat confdefs.h >>conftest.$ac_ext
  8552. cat >>conftest.$ac_ext <<_ACEOF
  8553. /* end confdefs.h. */
  8554. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8555. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8556. #define $ac_func innocuous_$ac_func
  8557. /* System header to define __stub macros and hopefully few prototypes,
  8558. which can conflict with char $ac_func (); below.
  8559. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8560. <limits.h> exists even on freestanding compilers. */
  8561. #ifdef __STDC__
  8562. # include <limits.h>
  8563. #else
  8564. # include <assert.h>
  8565. #endif
  8566. #undef $ac_func
  8567. /* Override any GCC internal prototype to avoid an error.
  8568. Use char because int might match the return type of a GCC
  8569. builtin and then its argument prototype would still apply. */
  8570. #ifdef __cplusplus
  8571. extern "C"
  8572. #endif
  8573. char $ac_func ();
  8574. /* The GNU C library defines this for functions which it implements
  8575. to always fail with ENOSYS. Some functions are actually named
  8576. something starting with __ and the normal name is an alias. */
  8577. #if defined __stub_$ac_func || defined __stub___$ac_func
  8578. choke me
  8579. #endif
  8580. int
  8581. main ()
  8582. {
  8583. return $ac_func ();
  8584. ;
  8585. return 0;
  8586. }
  8587. _ACEOF
  8588. rm -f conftest.$ac_objext conftest$ac_exeext
  8589. if { (ac_try="$ac_link"
  8590. case "(($ac_try" in
  8591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8592. *) ac_try_echo=$ac_try;;
  8593. esac
  8594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8595. $as_echo "$ac_try_echo") >&5
  8596. (eval "$ac_link") 2>conftest.er1
  8597. ac_status=$?
  8598. grep -v '^ *+' conftest.er1 >conftest.err
  8599. rm -f conftest.er1
  8600. cat conftest.err >&5
  8601. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8602. (exit $ac_status); } && {
  8603. test -z "$ac_c_werror_flag" ||
  8604. test ! -s conftest.err
  8605. } && test -s conftest$ac_exeext && {
  8606. test "$cross_compiling" = yes ||
  8607. $as_test_x conftest$ac_exeext
  8608. }; then
  8609. eval "$as_ac_var=yes"
  8610. else
  8611. $as_echo "$as_me: failed program was:" >&5
  8612. sed 's/^/| /' conftest.$ac_ext >&5
  8613. eval "$as_ac_var=no"
  8614. fi
  8615. rm -rf conftest.dSYM
  8616. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8617. conftest$ac_exeext conftest.$ac_ext
  8618. fi
  8619. ac_res=`eval 'as_val=${'$as_ac_var'}
  8620. $as_echo "$as_val"'`
  8621. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8622. $as_echo "$ac_res" >&6; }
  8623. as_val=`eval 'as_val=${'$as_ac_var'}
  8624. $as_echo "$as_val"'`
  8625. if test "x$as_val" = x""yes; then
  8626. cat >>confdefs.h <<_ACEOF
  8627. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8628. _ACEOF
  8629. true
  8630. else
  8631. { { $as_echo "$as_me:$LINENO: error: One of the functions required for pdnsd were not found." >&5
  8632. $as_echo "$as_me: error: One of the functions required for pdnsd were not found." >&2;}
  8633. { (exit 1); exit 1; }; }
  8634. fi
  8635. done
  8636. for ac_func in poll
  8637. do
  8638. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8639. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  8640. $as_echo_n "checking for $ac_func... " >&6; }
  8641. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8642. $as_echo_n "(cached) " >&6
  8643. else
  8644. cat >conftest.$ac_ext <<_ACEOF
  8645. /* confdefs.h. */
  8646. _ACEOF
  8647. cat confdefs.h >>conftest.$ac_ext
  8648. cat >>conftest.$ac_ext <<_ACEOF
  8649. /* end confdefs.h. */
  8650. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8651. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8652. #define $ac_func innocuous_$ac_func
  8653. /* System header to define __stub macros and hopefully few prototypes,
  8654. which can conflict with char $ac_func (); below.
  8655. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8656. <limits.h> exists even on freestanding compilers. */
  8657. #ifdef __STDC__
  8658. # include <limits.h>
  8659. #else
  8660. # include <assert.h>
  8661. #endif
  8662. #undef $ac_func
  8663. /* Override any GCC internal prototype to avoid an error.
  8664. Use char because int might match the return type of a GCC
  8665. builtin and then its argument prototype would still apply. */
  8666. #ifdef __cplusplus
  8667. extern "C"
  8668. #endif
  8669. char $ac_func ();
  8670. /* The GNU C library defines this for functions which it implements
  8671. to always fail with ENOSYS. Some functions are actually named
  8672. something starting with __ and the normal name is an alias. */
  8673. #if defined __stub_$ac_func || defined __stub___$ac_func
  8674. choke me
  8675. #endif
  8676. int
  8677. main ()
  8678. {
  8679. return $ac_func ();
  8680. ;
  8681. return 0;
  8682. }
  8683. _ACEOF
  8684. rm -f conftest.$ac_objext conftest$ac_exeext
  8685. if { (ac_try="$ac_link"
  8686. case "(($ac_try" in
  8687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8688. *) ac_try_echo=$ac_try;;
  8689. esac
  8690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8691. $as_echo "$ac_try_echo") >&5
  8692. (eval "$ac_link") 2>conftest.er1
  8693. ac_status=$?
  8694. grep -v '^ *+' conftest.er1 >conftest.err
  8695. rm -f conftest.er1
  8696. cat conftest.err >&5
  8697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8698. (exit $ac_status); } && {
  8699. test -z "$ac_c_werror_flag" ||
  8700. test ! -s conftest.err
  8701. } && test -s conftest$ac_exeext && {
  8702. test "$cross_compiling" = yes ||
  8703. $as_test_x conftest$ac_exeext
  8704. }; then
  8705. eval "$as_ac_var=yes"
  8706. else
  8707. $as_echo "$as_me: failed program was:" >&5
  8708. sed 's/^/| /' conftest.$ac_ext >&5
  8709. eval "$as_ac_var=no"
  8710. fi
  8711. rm -rf conftest.dSYM
  8712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8713. conftest$ac_exeext conftest.$ac_ext
  8714. fi
  8715. ac_res=`eval 'as_val=${'$as_ac_var'}
  8716. $as_echo "$as_val"'`
  8717. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8718. $as_echo "$ac_res" >&6; }
  8719. as_val=`eval 'as_val=${'$as_ac_var'}
  8720. $as_echo "$as_val"'`
  8721. if test "x$as_val" = x""yes; then
  8722. cat >>confdefs.h <<_ACEOF
  8723. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8724. _ACEOF
  8725. true
  8726. else
  8727. cat >>confdefs.h <<\_ACEOF
  8728. #define NO_POLL 1
  8729. _ACEOF
  8730. fi
  8731. done
  8732. for ac_func in strdup strndup stpcpy stpncpy strlcpy mempcpy getline asprintf vasprintf getpwnam_r inet_ntop inet_pton
  8733. do
  8734. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8735. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  8736. $as_echo_n "checking for $ac_func... " >&6; }
  8737. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8738. $as_echo_n "(cached) " >&6
  8739. else
  8740. cat >conftest.$ac_ext <<_ACEOF
  8741. /* confdefs.h. */
  8742. _ACEOF
  8743. cat confdefs.h >>conftest.$ac_ext
  8744. cat >>conftest.$ac_ext <<_ACEOF
  8745. /* end confdefs.h. */
  8746. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8747. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8748. #define $ac_func innocuous_$ac_func
  8749. /* System header to define __stub macros and hopefully few prototypes,
  8750. which can conflict with char $ac_func (); below.
  8751. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8752. <limits.h> exists even on freestanding compilers. */
  8753. #ifdef __STDC__
  8754. # include <limits.h>
  8755. #else
  8756. # include <assert.h>
  8757. #endif
  8758. #undef $ac_func
  8759. /* Override any GCC internal prototype to avoid an error.
  8760. Use char because int might match the return type of a GCC
  8761. builtin and then its argument prototype would still apply. */
  8762. #ifdef __cplusplus
  8763. extern "C"
  8764. #endif
  8765. char $ac_func ();
  8766. /* The GNU C library defines this for functions which it implements
  8767. to always fail with ENOSYS. Some functions are actually named
  8768. something starting with __ and the normal name is an alias. */
  8769. #if defined __stub_$ac_func || defined __stub___$ac_func
  8770. choke me
  8771. #endif
  8772. int
  8773. main ()
  8774. {
  8775. return $ac_func ();
  8776. ;
  8777. return 0;
  8778. }
  8779. _ACEOF
  8780. rm -f conftest.$ac_objext conftest$ac_exeext
  8781. if { (ac_try="$ac_link"
  8782. case "(($ac_try" in
  8783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8784. *) ac_try_echo=$ac_try;;
  8785. esac
  8786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8787. $as_echo "$ac_try_echo") >&5
  8788. (eval "$ac_link") 2>conftest.er1
  8789. ac_status=$?
  8790. grep -v '^ *+' conftest.er1 >conftest.err
  8791. rm -f conftest.er1
  8792. cat conftest.err >&5
  8793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794. (exit $ac_status); } && {
  8795. test -z "$ac_c_werror_flag" ||
  8796. test ! -s conftest.err
  8797. } && test -s conftest$ac_exeext && {
  8798. test "$cross_compiling" = yes ||
  8799. $as_test_x conftest$ac_exeext
  8800. }; then
  8801. eval "$as_ac_var=yes"
  8802. else
  8803. $as_echo "$as_me: failed program was:" >&5
  8804. sed 's/^/| /' conftest.$ac_ext >&5
  8805. eval "$as_ac_var=no"
  8806. fi
  8807. rm -rf conftest.dSYM
  8808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8809. conftest$ac_exeext conftest.$ac_ext
  8810. fi
  8811. ac_res=`eval 'as_val=${'$as_ac_var'}
  8812. $as_echo "$as_val"'`
  8813. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8814. $as_echo "$ac_res" >&6; }
  8815. as_val=`eval 'as_val=${'$as_ac_var'}
  8816. $as_echo "$as_val"'`
  8817. if test "x$as_val" = x""yes; then
  8818. cat >>confdefs.h <<_ACEOF
  8819. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8820. _ACEOF
  8821. fi
  8822. done
  8823. ac_config_files="$ac_config_files pdnsd.spec Makefile file-list.base contrib/Makefile doc/Makefile doc/pdnsd.8 doc/pdnsd.conf.5 doc/pdnsd.conf src/Makefile src/pdnsd-ctl/Makefile src/rc/Makefile src/rc/RedHat/Makefile src/rc/RedHat/pdnsd src/rc/SuSE/Makefile src/rc/SuSE/pdnsd src/rc/Debian/Makefile src/rc/Debian/pdnsd src/rc/Slackware/Makefile src/rc/Slackware/rc.pdnsd src/rc/ArchLinux/Makefile src/rc/ArchLinux/pdnsd src/test/Makefile PKGBUILD"
  8824. cat >confcache <<\_ACEOF
  8825. # This file is a shell script that caches the results of configure
  8826. # tests run on this system so they can be shared between configure
  8827. # scripts and configure runs, see configure's option --config-cache.
  8828. # It is not useful on other systems. If it contains results you don't
  8829. # want to keep, you may remove or edit it.
  8830. #
  8831. # config.status only pays attention to the cache file if you give it
  8832. # the --recheck option to rerun configure.
  8833. #
  8834. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8835. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8836. # following values.
  8837. _ACEOF
  8838. # The following way of writing the cache mishandles newlines in values,
  8839. # but we know of no workaround that is simple, portable, and efficient.
  8840. # So, we kill variables containing newlines.
  8841. # Ultrix sh set writes to stderr and can't be redirected directly,
  8842. # and sets the high bit in the cache file unless we assign to the vars.
  8843. (
  8844. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8845. eval ac_val=\$$ac_var
  8846. case $ac_val in #(
  8847. *${as_nl}*)
  8848. case $ac_var in #(
  8849. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  8850. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8851. esac
  8852. case $ac_var in #(
  8853. _ | IFS | as_nl) ;; #(
  8854. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8855. *) $as_unset $ac_var ;;
  8856. esac ;;
  8857. esac
  8858. done
  8859. (set) 2>&1 |
  8860. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8861. *${as_nl}ac_space=\ *)
  8862. # `set' does not quote correctly, so add quotes (double-quote
  8863. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8864. sed -n \
  8865. "s/'/'\\\\''/g;
  8866. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8867. ;; #(
  8868. *)
  8869. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8870. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8871. ;;
  8872. esac |
  8873. sort
  8874. ) |
  8875. sed '
  8876. /^ac_cv_env_/b end
  8877. t clear
  8878. :clear
  8879. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8880. t end
  8881. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8882. :end' >>confcache
  8883. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8884. if test -w "$cache_file"; then
  8885. test "x$cache_file" != "x/dev/null" &&
  8886. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  8887. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8888. cat confcache >$cache_file
  8889. else
  8890. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  8891. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8892. fi
  8893. fi
  8894. rm -f confcache
  8895. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8896. # Let make expand exec_prefix.
  8897. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8898. DEFS=-DHAVE_CONFIG_H
  8899. ac_libobjs=
  8900. ac_ltlibobjs=
  8901. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8902. # 1. Remove the extension, and $U if already installed.
  8903. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8904. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8905. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8906. # will be set to the directory where LIBOBJS objects are built.
  8907. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8908. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  8909. done
  8910. LIBOBJS=$ac_libobjs
  8911. LTLIBOBJS=$ac_ltlibobjs
  8912. if test -n "$EXEEXT"; then
  8913. am__EXEEXT_TRUE=
  8914. am__EXEEXT_FALSE='#'
  8915. else
  8916. am__EXEEXT_TRUE='#'
  8917. am__EXEEXT_FALSE=
  8918. fi
  8919. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8920. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8921. Usually this means the macro was only invoked conditionally." >&5
  8922. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8923. Usually this means the macro was only invoked conditionally." >&2;}
  8924. { (exit 1); exit 1; }; }
  8925. fi
  8926. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8927. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8928. Usually this means the macro was only invoked conditionally." >&5
  8929. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8930. Usually this means the macro was only invoked conditionally." >&2;}
  8931. { (exit 1); exit 1; }; }
  8932. fi
  8933. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8934. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8935. Usually this means the macro was only invoked conditionally." >&5
  8936. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8937. Usually this means the macro was only invoked conditionally." >&2;}
  8938. { (exit 1); exit 1; }; }
  8939. fi
  8940. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8941. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8942. Usually this means the macro was only invoked conditionally." >&5
  8943. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8944. Usually this means the macro was only invoked conditionally." >&2;}
  8945. { (exit 1); exit 1; }; }
  8946. fi
  8947. : ${CONFIG_STATUS=./config.status}
  8948. ac_write_fail=0
  8949. ac_clean_files_save=$ac_clean_files
  8950. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8951. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8952. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8953. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8954. #! $SHELL
  8955. # Generated by $as_me.
  8956. # Run this file to recreate the current configuration.
  8957. # Compiler output produced by configure, useful for debugging
  8958. # configure, is in config.log if it exists.
  8959. debug=false
  8960. ac_cs_recheck=false
  8961. ac_cs_silent=false
  8962. SHELL=\${CONFIG_SHELL-$SHELL}
  8963. _ACEOF
  8964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8965. ## --------------------- ##
  8966. ## M4sh Initialization. ##
  8967. ## --------------------- ##
  8968. # Be more Bourne compatible
  8969. DUALCASE=1; export DUALCASE # for MKS sh
  8970. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8971. emulate sh
  8972. NULLCMD=:
  8973. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8974. # is contrary to our usage. Disable this feature.
  8975. alias -g '${1+"$@"}'='"$@"'
  8976. setopt NO_GLOB_SUBST
  8977. else
  8978. case `(set -o) 2>/dev/null` in
  8979. *posix*) set -o posix ;;
  8980. esac
  8981. fi
  8982. # PATH needs CR
  8983. # Avoid depending upon Character Ranges.
  8984. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8985. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8986. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8987. as_cr_digits='0123456789'
  8988. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8989. as_nl='
  8990. '
  8991. export as_nl
  8992. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8993. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8994. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8995. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8996. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8997. as_echo='printf %s\n'
  8998. as_echo_n='printf %s'
  8999. else
  9000. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9001. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9002. as_echo_n='/usr/ucb/echo -n'
  9003. else
  9004. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9005. as_echo_n_body='eval
  9006. arg=$1;
  9007. case $arg in
  9008. *"$as_nl"*)
  9009. expr "X$arg" : "X\\(.*\\)$as_nl";
  9010. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9011. esac;
  9012. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9013. '
  9014. export as_echo_n_body
  9015. as_echo_n='sh -c $as_echo_n_body as_echo'
  9016. fi
  9017. export as_echo_body
  9018. as_echo='sh -c $as_echo_body as_echo'
  9019. fi
  9020. # The user is always right.
  9021. if test "${PATH_SEPARATOR+set}" != set; then
  9022. PATH_SEPARATOR=:
  9023. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9024. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9025. PATH_SEPARATOR=';'
  9026. }
  9027. fi
  9028. # Support unset when possible.
  9029. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9030. as_unset=unset
  9031. else
  9032. as_unset=false
  9033. fi
  9034. # IFS
  9035. # We need space, tab and new line, in precisely that order. Quoting is
  9036. # there to prevent editors from complaining about space-tab.
  9037. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9038. # splitting by setting IFS to empty value.)
  9039. IFS=" "" $as_nl"
  9040. # Find who we are. Look in the path if we contain no directory separator.
  9041. case $0 in
  9042. *[\\/]* ) as_myself=$0 ;;
  9043. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9044. for as_dir in $PATH
  9045. do
  9046. IFS=$as_save_IFS
  9047. test -z "$as_dir" && as_dir=.
  9048. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9049. done
  9050. IFS=$as_save_IFS
  9051. ;;
  9052. esac
  9053. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9054. # in which case we are not to be found in the path.
  9055. if test "x$as_myself" = x; then
  9056. as_myself=$0
  9057. fi
  9058. if test ! -f "$as_myself"; then
  9059. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9060. { (exit 1); exit 1; }
  9061. fi
  9062. # Work around bugs in pre-3.0 UWIN ksh.
  9063. for as_var in ENV MAIL MAILPATH
  9064. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9065. done
  9066. PS1='$ '
  9067. PS2='> '
  9068. PS4='+ '
  9069. # NLS nuisances.
  9070. LC_ALL=C
  9071. export LC_ALL
  9072. LANGUAGE=C
  9073. export LANGUAGE
  9074. # Required to use basename.
  9075. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9076. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9077. as_expr=expr
  9078. else
  9079. as_expr=false
  9080. fi
  9081. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9082. as_basename=basename
  9083. else
  9084. as_basename=false
  9085. fi
  9086. # Name of the executable.
  9087. as_me=`$as_basename -- "$0" ||
  9088. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9089. X"$0" : 'X\(//\)$' \| \
  9090. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9091. $as_echo X/"$0" |
  9092. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9093. s//\1/
  9094. q
  9095. }
  9096. /^X\/\(\/\/\)$/{
  9097. s//\1/
  9098. q
  9099. }
  9100. /^X\/\(\/\).*/{
  9101. s//\1/
  9102. q
  9103. }
  9104. s/.*/./; q'`
  9105. # CDPATH.
  9106. $as_unset CDPATH
  9107. as_lineno_1=$LINENO
  9108. as_lineno_2=$LINENO
  9109. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9110. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  9111. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9112. # uniformly replaced by the line number. The first 'sed' inserts a
  9113. # line-number line after each line using $LINENO; the second 'sed'
  9114. # does the real work. The second script uses 'N' to pair each
  9115. # line-number line with the line containing $LINENO, and appends
  9116. # trailing '-' during substitution so that $LINENO is not a special
  9117. # case at line end.
  9118. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9119. # scripts with optimization help from Paolo Bonzini. Blame Lee
  9120. # E. McMahon (1931-1989) for sed's syntax. :-)
  9121. sed -n '
  9122. p
  9123. /[$]LINENO/=
  9124. ' <$as_myself |
  9125. sed '
  9126. s/[$]LINENO.*/&-/
  9127. t lineno
  9128. b
  9129. :lineno
  9130. N
  9131. :loop
  9132. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  9133. t loop
  9134. s/-\n.*//
  9135. ' >$as_me.lineno &&
  9136. chmod +x "$as_me.lineno" ||
  9137. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  9138. { (exit 1); exit 1; }; }
  9139. # Don't try to exec as it changes $[0], causing all sort of problems
  9140. # (the dirname of $[0] is not the place where we might find the
  9141. # original and so on. Autoconf is especially sensitive to this).
  9142. . "./$as_me.lineno"
  9143. # Exit status is that of the last command.
  9144. exit
  9145. }
  9146. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9147. as_dirname=dirname
  9148. else
  9149. as_dirname=false
  9150. fi
  9151. ECHO_C= ECHO_N= ECHO_T=
  9152. case `echo -n x` in
  9153. -n*)
  9154. case `echo 'x\c'` in
  9155. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9156. *) ECHO_C='\c';;
  9157. esac;;
  9158. *)
  9159. ECHO_N='-n';;
  9160. esac
  9161. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9162. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9163. as_expr=expr
  9164. else
  9165. as_expr=false
  9166. fi
  9167. rm -f conf$$ conf$$.exe conf$$.file
  9168. if test -d conf$$.dir; then
  9169. rm -f conf$$.dir/conf$$.file
  9170. else
  9171. rm -f conf$$.dir
  9172. mkdir conf$$.dir 2>/dev/null
  9173. fi
  9174. if (echo >conf$$.file) 2>/dev/null; then
  9175. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9176. as_ln_s='ln -s'
  9177. # ... but there are two gotchas:
  9178. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9179. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9180. # In both cases, we have to default to `cp -p'.
  9181. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9182. as_ln_s='cp -p'
  9183. elif ln conf$$.file conf$$ 2>/dev/null; then
  9184. as_ln_s=ln
  9185. else
  9186. as_ln_s='cp -p'
  9187. fi
  9188. else
  9189. as_ln_s='cp -p'
  9190. fi
  9191. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9192. rmdir conf$$.dir 2>/dev/null
  9193. if mkdir -p . 2>/dev/null; then
  9194. as_mkdir_p=:
  9195. else
  9196. test -d ./-p && rmdir ./-p
  9197. as_mkdir_p=false
  9198. fi
  9199. if test -x / >/dev/null 2>&1; then
  9200. as_test_x='test -x'
  9201. else
  9202. if ls -dL / >/dev/null 2>&1; then
  9203. as_ls_L_option=L
  9204. else
  9205. as_ls_L_option=
  9206. fi
  9207. as_test_x='
  9208. eval sh -c '\''
  9209. if test -d "$1"; then
  9210. test -d "$1/.";
  9211. else
  9212. case $1 in
  9213. -*)set "./$1";;
  9214. esac;
  9215. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  9216. ???[sx]*):;;*)false;;esac;fi
  9217. '\'' sh
  9218. '
  9219. fi
  9220. as_executable_p=$as_test_x
  9221. # Sed expression to map a string onto a valid CPP name.
  9222. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9223. # Sed expression to map a string onto a valid variable name.
  9224. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9225. exec 6>&1
  9226. # Save the log message, to keep $[0] and so on meaningful, and to
  9227. # report actual input values of CONFIG_FILES etc. instead of their
  9228. # values after options handling.
  9229. ac_log="
  9230. This file was extended by $as_me, which was
  9231. generated by GNU Autoconf 2.63. Invocation command line was
  9232. CONFIG_FILES = $CONFIG_FILES
  9233. CONFIG_HEADERS = $CONFIG_HEADERS
  9234. CONFIG_LINKS = $CONFIG_LINKS
  9235. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9236. $ $0 $@
  9237. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9238. "
  9239. _ACEOF
  9240. case $ac_config_files in *"
  9241. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9242. esac
  9243. case $ac_config_headers in *"
  9244. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9245. esac
  9246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9247. # Files that config.status was made for.
  9248. config_files="$ac_config_files"
  9249. config_headers="$ac_config_headers"
  9250. config_commands="$ac_config_commands"
  9251. _ACEOF
  9252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9253. ac_cs_usage="\
  9254. \`$as_me' instantiates files from templates according to the
  9255. current configuration.
  9256. Usage: $0 [OPTION]... [FILE]...
  9257. -h, --help print this help, then exit
  9258. -V, --version print version number and configuration settings, then exit
  9259. -q, --quiet, --silent
  9260. do not print progress messages
  9261. -d, --debug don't remove temporary files
  9262. --recheck update $as_me by reconfiguring in the same conditions
  9263. --file=FILE[:TEMPLATE]
  9264. instantiate the configuration file FILE
  9265. --header=FILE[:TEMPLATE]
  9266. instantiate the configuration header FILE
  9267. Configuration files:
  9268. $config_files
  9269. Configuration headers:
  9270. $config_headers
  9271. Configuration commands:
  9272. $config_commands
  9273. Report bugs to <bug-autoconf@gnu.org>."
  9274. _ACEOF
  9275. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9276. ac_cs_version="\\
  9277. config.status
  9278. configured by $0, generated by GNU Autoconf 2.63,
  9279. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  9280. Copyright (C) 2008 Free Software Foundation, Inc.
  9281. This config.status script is free software; the Free Software Foundation
  9282. gives unlimited permission to copy, distribute and modify it."
  9283. ac_pwd='$ac_pwd'
  9284. srcdir='$srcdir'
  9285. INSTALL='$INSTALL'
  9286. MKDIR_P='$MKDIR_P'
  9287. AWK='$AWK'
  9288. test -n "\$AWK" || AWK=awk
  9289. _ACEOF
  9290. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9291. # The default lists apply if the user does not specify any file.
  9292. ac_need_defaults=:
  9293. while test $# != 0
  9294. do
  9295. case $1 in
  9296. --*=*)
  9297. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9298. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9299. ac_shift=:
  9300. ;;
  9301. *)
  9302. ac_option=$1
  9303. ac_optarg=$2
  9304. ac_shift=shift
  9305. ;;
  9306. esac
  9307. case $ac_option in
  9308. # Handling of the options.
  9309. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9310. ac_cs_recheck=: ;;
  9311. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9312. $as_echo "$ac_cs_version"; exit ;;
  9313. --debug | --debu | --deb | --de | --d | -d )
  9314. debug=: ;;
  9315. --file | --fil | --fi | --f )
  9316. $ac_shift
  9317. case $ac_optarg in
  9318. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9319. esac
  9320. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  9321. ac_need_defaults=false;;
  9322. --header | --heade | --head | --hea )
  9323. $ac_shift
  9324. case $ac_optarg in
  9325. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9326. esac
  9327. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  9328. ac_need_defaults=false;;
  9329. --he | --h)
  9330. # Conflict between --help and --header
  9331. { $as_echo "$as_me: error: ambiguous option: $1
  9332. Try \`$0 --help' for more information." >&2
  9333. { (exit 1); exit 1; }; };;
  9334. --help | --hel | -h )
  9335. $as_echo "$ac_cs_usage"; exit ;;
  9336. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9337. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9338. ac_cs_silent=: ;;
  9339. # This is an error.
  9340. -*) { $as_echo "$as_me: error: unrecognized option: $1
  9341. Try \`$0 --help' for more information." >&2
  9342. { (exit 1); exit 1; }; } ;;
  9343. *) ac_config_targets="$ac_config_targets $1"
  9344. ac_need_defaults=false ;;
  9345. esac
  9346. shift
  9347. done
  9348. ac_configure_extra_args=
  9349. if $ac_cs_silent; then
  9350. exec 6>/dev/null
  9351. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9352. fi
  9353. _ACEOF
  9354. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9355. if \$ac_cs_recheck; then
  9356. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9357. shift
  9358. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9359. CONFIG_SHELL='$SHELL'
  9360. export CONFIG_SHELL
  9361. exec "\$@"
  9362. fi
  9363. _ACEOF
  9364. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9365. exec 5>>config.log
  9366. {
  9367. echo
  9368. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9369. ## Running $as_me. ##
  9370. _ASBOX
  9371. $as_echo "$ac_log"
  9372. } >&5
  9373. _ACEOF
  9374. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9375. #
  9376. # INIT-COMMANDS
  9377. #
  9378. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9379. _ACEOF
  9380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9381. # Handling of arguments.
  9382. for ac_config_target in $ac_config_targets
  9383. do
  9384. case $ac_config_target in
  9385. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9386. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9387. "pdnsd.spec") CONFIG_FILES="$CONFIG_FILES pdnsd.spec" ;;
  9388. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9389. "file-list.base") CONFIG_FILES="$CONFIG_FILES file-list.base" ;;
  9390. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  9391. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  9392. "doc/pdnsd.8") CONFIG_FILES="$CONFIG_FILES doc/pdnsd.8" ;;
  9393. "doc/pdnsd.conf.5") CONFIG_FILES="$CONFIG_FILES doc/pdnsd.conf.5" ;;
  9394. "doc/pdnsd.conf") CONFIG_FILES="$CONFIG_FILES doc/pdnsd.conf" ;;
  9395. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9396. "src/pdnsd-ctl/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdnsd-ctl/Makefile" ;;
  9397. "src/rc/Makefile") CONFIG_FILES="$CONFIG_FILES src/rc/Makefile" ;;
  9398. "src/rc/RedHat/Makefile") CONFIG_FILES="$CONFIG_FILES src/rc/RedHat/Makefile" ;;
  9399. "src/rc/RedHat/pdnsd") CONFIG_FILES="$CONFIG_FILES src/rc/RedHat/pdnsd" ;;
  9400. "src/rc/SuSE/Makefile") CONFIG_FILES="$CONFIG_FILES src/rc/SuSE/Makefile" ;;
  9401. "src/rc/SuSE/pdnsd") CONFIG_FILES="$CONFIG_FILES src/rc/SuSE/pdnsd" ;;
  9402. "src/rc/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES src/rc/Debian/Makefile" ;;
  9403. "src/rc/Debian/pdnsd") CONFIG_FILES="$CONFIG_FILES src/rc/Debian/pdnsd" ;;
  9404. "src/rc/Slackware/Makefile") CONFIG_FILES="$CONFIG_FILES src/rc/Slackware/Makefile" ;;
  9405. "src/rc/Slackware/rc.pdnsd") CONFIG_FILES="$CONFIG_FILES src/rc/Slackware/rc.pdnsd" ;;
  9406. "src/rc/ArchLinux/Makefile") CONFIG_FILES="$CONFIG_FILES src/rc/ArchLinux/Makefile" ;;
  9407. "src/rc/ArchLinux/pdnsd") CONFIG_FILES="$CONFIG_FILES src/rc/ArchLinux/pdnsd" ;;
  9408. "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  9409. "PKGBUILD") CONFIG_FILES="$CONFIG_FILES PKGBUILD" ;;
  9410. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9411. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9412. { (exit 1); exit 1; }; };;
  9413. esac
  9414. done
  9415. # If the user did not use the arguments to specify the items to instantiate,
  9416. # then the envvar interface is used. Set only those that are not.
  9417. # We use the long form for the default assignment because of an extremely
  9418. # bizarre bug on SunOS 4.1.3.
  9419. if $ac_need_defaults; then
  9420. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9421. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9422. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9423. fi
  9424. # Have a temporary directory for convenience. Make it in the build tree
  9425. # simply because there is no reason against having it here, and in addition,
  9426. # creating and moving files from /tmp can sometimes cause problems.
  9427. # Hook for its removal unless debugging.
  9428. # Note that there is a small window in which the directory will not be cleaned:
  9429. # after its creation but before its name has been assigned to `$tmp'.
  9430. $debug ||
  9431. {
  9432. tmp=
  9433. trap 'exit_status=$?
  9434. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  9435. ' 0
  9436. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9437. }
  9438. # Create a (secure) tmp directory for tmp files.
  9439. {
  9440. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9441. test -n "$tmp" && test -d "$tmp"
  9442. } ||
  9443. {
  9444. tmp=./conf$$-$RANDOM
  9445. (umask 077 && mkdir "$tmp")
  9446. } ||
  9447. {
  9448. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  9449. { (exit 1); exit 1; }
  9450. }
  9451. # Set up the scripts for CONFIG_FILES section.
  9452. # No need to generate them if there are no CONFIG_FILES.
  9453. # This happens for instance with `./config.status config.h'.
  9454. if test -n "$CONFIG_FILES"; then
  9455. ac_cr=' '
  9456. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9457. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9458. ac_cs_awk_cr='\\r'
  9459. else
  9460. ac_cs_awk_cr=$ac_cr
  9461. fi
  9462. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  9463. _ACEOF
  9464. {
  9465. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9466. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9467. echo "_ACEOF"
  9468. } >conf$$subs.sh ||
  9469. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9470. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9471. { (exit 1); exit 1; }; }
  9472. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  9473. ac_delim='%!_!# '
  9474. for ac_last_try in false false false false false :; do
  9475. . ./conf$$subs.sh ||
  9476. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9477. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9478. { (exit 1); exit 1; }; }
  9479. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9480. if test $ac_delim_n = $ac_delim_num; then
  9481. break
  9482. elif $ac_last_try; then
  9483. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9484. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9485. { (exit 1); exit 1; }; }
  9486. else
  9487. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9488. fi
  9489. done
  9490. rm -f conf$$subs.sh
  9491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9492. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  9493. _ACEOF
  9494. sed -n '
  9495. h
  9496. s/^/S["/; s/!.*/"]=/
  9497. p
  9498. g
  9499. s/^[^!]*!//
  9500. :repl
  9501. t repl
  9502. s/'"$ac_delim"'$//
  9503. t delim
  9504. :nl
  9505. h
  9506. s/\(.\{148\}\).*/\1/
  9507. t more1
  9508. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9509. p
  9510. n
  9511. b repl
  9512. :more1
  9513. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9514. p
  9515. g
  9516. s/.\{148\}//
  9517. t nl
  9518. :delim
  9519. h
  9520. s/\(.\{148\}\).*/\1/
  9521. t more2
  9522. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9523. p
  9524. b
  9525. :more2
  9526. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9527. p
  9528. g
  9529. s/.\{148\}//
  9530. t delim
  9531. ' <conf$$subs.awk | sed '
  9532. /^[^""]/{
  9533. N
  9534. s/\n//
  9535. }
  9536. ' >>$CONFIG_STATUS || ac_write_fail=1
  9537. rm -f conf$$subs.awk
  9538. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9539. _ACAWK
  9540. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  9541. for (key in S) S_is_set[key] = 1
  9542. FS = ""
  9543. }
  9544. {
  9545. line = $ 0
  9546. nfields = split(line, field, "@")
  9547. substed = 0
  9548. len = length(field[1])
  9549. for (i = 2; i < nfields; i++) {
  9550. key = field[i]
  9551. keylen = length(key)
  9552. if (S_is_set[key]) {
  9553. value = S[key]
  9554. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9555. len += length(value) + length(field[++i])
  9556. substed = 1
  9557. } else
  9558. len += 1 + keylen
  9559. }
  9560. print line
  9561. }
  9562. _ACAWK
  9563. _ACEOF
  9564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9565. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9566. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9567. else
  9568. cat
  9569. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  9570. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  9571. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  9572. { (exit 1); exit 1; }; }
  9573. _ACEOF
  9574. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9575. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9576. # trailing colons and then remove the whole line if VPATH becomes empty
  9577. # (actually we leave an empty line to preserve line numbers).
  9578. if test "x$srcdir" = x.; then
  9579. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9580. s/:*\$(srcdir):*/:/
  9581. s/:*\${srcdir}:*/:/
  9582. s/:*@srcdir@:*/:/
  9583. s/^\([^=]*=[ ]*\):*/\1/
  9584. s/:*$//
  9585. s/^[^=]*=[ ]*$//
  9586. }'
  9587. fi
  9588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9589. fi # test -n "$CONFIG_FILES"
  9590. # Set up the scripts for CONFIG_HEADERS section.
  9591. # No need to generate them if there are no CONFIG_HEADERS.
  9592. # This happens for instance with `./config.status Makefile'.
  9593. if test -n "$CONFIG_HEADERS"; then
  9594. cat >"$tmp/defines.awk" <<\_ACAWK ||
  9595. BEGIN {
  9596. _ACEOF
  9597. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9598. # here-document in config.status, that substitutes the proper values into
  9599. # config.h.in to produce config.h.
  9600. # Create a delimiter string that does not exist in confdefs.h, to ease
  9601. # handling of long lines.
  9602. ac_delim='%!_!# '
  9603. for ac_last_try in false false :; do
  9604. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  9605. if test -z "$ac_t"; then
  9606. break
  9607. elif $ac_last_try; then
  9608. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  9609. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  9610. { (exit 1); exit 1; }; }
  9611. else
  9612. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9613. fi
  9614. done
  9615. # For the awk script, D is an array of macro values keyed by name,
  9616. # likewise P contains macro parameters if any. Preserve backslash
  9617. # newline sequences.
  9618. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9619. sed -n '
  9620. s/.\{148\}/&'"$ac_delim"'/g
  9621. t rset
  9622. :rset
  9623. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9624. t def
  9625. d
  9626. :def
  9627. s/\\$//
  9628. t bsnl
  9629. s/["\\]/\\&/g
  9630. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9631. D["\1"]=" \3"/p
  9632. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9633. d
  9634. :bsnl
  9635. s/["\\]/\\&/g
  9636. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9637. D["\1"]=" \3\\\\\\n"\\/p
  9638. t cont
  9639. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9640. t cont
  9641. d
  9642. :cont
  9643. n
  9644. s/.\{148\}/&'"$ac_delim"'/g
  9645. t clear
  9646. :clear
  9647. s/\\$//
  9648. t bsnlc
  9649. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9650. d
  9651. :bsnlc
  9652. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9653. b cont
  9654. ' <confdefs.h | sed '
  9655. s/'"$ac_delim"'/"\\\
  9656. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9657. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9658. for (key in D) D_is_set[key] = 1
  9659. FS = ""
  9660. }
  9661. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9662. line = \$ 0
  9663. split(line, arg, " ")
  9664. if (arg[1] == "#") {
  9665. defundef = arg[2]
  9666. mac1 = arg[3]
  9667. } else {
  9668. defundef = substr(arg[1], 2)
  9669. mac1 = arg[2]
  9670. }
  9671. split(mac1, mac2, "(") #)
  9672. macro = mac2[1]
  9673. prefix = substr(line, 1, index(line, defundef) - 1)
  9674. if (D_is_set[macro]) {
  9675. # Preserve the white space surrounding the "#".
  9676. print prefix "define", macro P[macro] D[macro]
  9677. next
  9678. } else {
  9679. # Replace #undef with comments. This is necessary, for example,
  9680. # in the case of _POSIX_SOURCE, which is predefined and required
  9681. # on some systems where configure will not decide to define it.
  9682. if (defundef == "undef") {
  9683. print "/*", prefix defundef, macro, "*/"
  9684. next
  9685. }
  9686. }
  9687. }
  9688. { print }
  9689. _ACAWK
  9690. _ACEOF
  9691. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9692. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  9693. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  9694. { (exit 1); exit 1; }; }
  9695. fi # test -n "$CONFIG_HEADERS"
  9696. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9697. shift
  9698. for ac_tag
  9699. do
  9700. case $ac_tag in
  9701. :[FHLC]) ac_mode=$ac_tag; continue;;
  9702. esac
  9703. case $ac_mode$ac_tag in
  9704. :[FHL]*:*);;
  9705. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  9706. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  9707. { (exit 1); exit 1; }; };;
  9708. :[FH]-) ac_tag=-:-;;
  9709. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9710. esac
  9711. ac_save_IFS=$IFS
  9712. IFS=:
  9713. set x $ac_tag
  9714. IFS=$ac_save_IFS
  9715. shift
  9716. ac_file=$1
  9717. shift
  9718. case $ac_mode in
  9719. :L) ac_source=$1;;
  9720. :[FH])
  9721. ac_file_inputs=
  9722. for ac_f
  9723. do
  9724. case $ac_f in
  9725. -) ac_f="$tmp/stdin";;
  9726. *) # Look for the file first in the build tree, then in the source tree
  9727. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9728. # because $ac_f cannot contain `:'.
  9729. test -f "$ac_f" ||
  9730. case $ac_f in
  9731. [\\/$]*) false;;
  9732. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9733. esac ||
  9734. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  9735. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  9736. { (exit 1); exit 1; }; };;
  9737. esac
  9738. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9739. ac_file_inputs="$ac_file_inputs '$ac_f'"
  9740. done
  9741. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9742. # use $as_me), people would be surprised to read:
  9743. # /* config.h. Generated by config.status. */
  9744. configure_input='Generated from '`
  9745. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9746. `' by configure.'
  9747. if test x"$ac_file" != x-; then
  9748. configure_input="$ac_file. $configure_input"
  9749. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  9750. $as_echo "$as_me: creating $ac_file" >&6;}
  9751. fi
  9752. # Neutralize special characters interpreted by sed in replacement strings.
  9753. case $configure_input in #(
  9754. *\&* | *\|* | *\\* )
  9755. ac_sed_conf_input=`$as_echo "$configure_input" |
  9756. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9757. *) ac_sed_conf_input=$configure_input;;
  9758. esac
  9759. case $ac_tag in
  9760. *:-:* | *:-) cat >"$tmp/stdin" \
  9761. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9762. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9763. { (exit 1); exit 1; }; } ;;
  9764. esac
  9765. ;;
  9766. esac
  9767. ac_dir=`$as_dirname -- "$ac_file" ||
  9768. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9769. X"$ac_file" : 'X\(//\)[^/]' \| \
  9770. X"$ac_file" : 'X\(//\)$' \| \
  9771. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9772. $as_echo X"$ac_file" |
  9773. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9774. s//\1/
  9775. q
  9776. }
  9777. /^X\(\/\/\)[^/].*/{
  9778. s//\1/
  9779. q
  9780. }
  9781. /^X\(\/\/\)$/{
  9782. s//\1/
  9783. q
  9784. }
  9785. /^X\(\/\).*/{
  9786. s//\1/
  9787. q
  9788. }
  9789. s/.*/./; q'`
  9790. { as_dir="$ac_dir"
  9791. case $as_dir in #(
  9792. -*) as_dir=./$as_dir;;
  9793. esac
  9794. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9795. as_dirs=
  9796. while :; do
  9797. case $as_dir in #(
  9798. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9799. *) as_qdir=$as_dir;;
  9800. esac
  9801. as_dirs="'$as_qdir' $as_dirs"
  9802. as_dir=`$as_dirname -- "$as_dir" ||
  9803. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9804. X"$as_dir" : 'X\(//\)[^/]' \| \
  9805. X"$as_dir" : 'X\(//\)$' \| \
  9806. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9807. $as_echo X"$as_dir" |
  9808. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9809. s//\1/
  9810. q
  9811. }
  9812. /^X\(\/\/\)[^/].*/{
  9813. s//\1/
  9814. q
  9815. }
  9816. /^X\(\/\/\)$/{
  9817. s//\1/
  9818. q
  9819. }
  9820. /^X\(\/\).*/{
  9821. s//\1/
  9822. q
  9823. }
  9824. s/.*/./; q'`
  9825. test -d "$as_dir" && break
  9826. done
  9827. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9828. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9829. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9830. { (exit 1); exit 1; }; }; }
  9831. ac_builddir=.
  9832. case "$ac_dir" in
  9833. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9834. *)
  9835. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9836. # A ".." for each directory in $ac_dir_suffix.
  9837. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9838. case $ac_top_builddir_sub in
  9839. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9840. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9841. esac ;;
  9842. esac
  9843. ac_abs_top_builddir=$ac_pwd
  9844. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9845. # for backward compatibility:
  9846. ac_top_builddir=$ac_top_build_prefix
  9847. case $srcdir in
  9848. .) # We are building in place.
  9849. ac_srcdir=.
  9850. ac_top_srcdir=$ac_top_builddir_sub
  9851. ac_abs_top_srcdir=$ac_pwd ;;
  9852. [\\/]* | ?:[\\/]* ) # Absolute name.
  9853. ac_srcdir=$srcdir$ac_dir_suffix;
  9854. ac_top_srcdir=$srcdir
  9855. ac_abs_top_srcdir=$srcdir ;;
  9856. *) # Relative name.
  9857. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9858. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9859. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9860. esac
  9861. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9862. case $ac_mode in
  9863. :F)
  9864. #
  9865. # CONFIG_FILE
  9866. #
  9867. case $INSTALL in
  9868. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9869. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9870. esac
  9871. ac_MKDIR_P=$MKDIR_P
  9872. case $MKDIR_P in
  9873. [\\/$]* | ?:[\\/]* ) ;;
  9874. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9875. esac
  9876. _ACEOF
  9877. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9878. # If the template does not know about datarootdir, expand it.
  9879. # FIXME: This hack should be removed a few years after 2.60.
  9880. ac_datarootdir_hack=; ac_datarootdir_seen=
  9881. ac_sed_dataroot='
  9882. /datarootdir/ {
  9883. p
  9884. q
  9885. }
  9886. /@datadir@/p
  9887. /@docdir@/p
  9888. /@infodir@/p
  9889. /@localedir@/p
  9890. /@mandir@/p
  9891. '
  9892. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9893. *datarootdir*) ac_datarootdir_seen=yes;;
  9894. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9895. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9896. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9897. _ACEOF
  9898. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9899. ac_datarootdir_hack='
  9900. s&@datadir@&$datadir&g
  9901. s&@docdir@&$docdir&g
  9902. s&@infodir@&$infodir&g
  9903. s&@localedir@&$localedir&g
  9904. s&@mandir@&$mandir&g
  9905. s&\\\${datarootdir}&$datarootdir&g' ;;
  9906. esac
  9907. _ACEOF
  9908. # Neutralize VPATH when `$srcdir' = `.'.
  9909. # Shell code in configure.ac might set extrasub.
  9910. # FIXME: do we really want to maintain this feature?
  9911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9912. ac_sed_extra="$ac_vpsub
  9913. $extrasub
  9914. _ACEOF
  9915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9916. :t
  9917. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9918. s|@configure_input@|$ac_sed_conf_input|;t t
  9919. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9920. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9921. s&@srcdir@&$ac_srcdir&;t t
  9922. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9923. s&@top_srcdir@&$ac_top_srcdir&;t t
  9924. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9925. s&@builddir@&$ac_builddir&;t t
  9926. s&@abs_builddir@&$ac_abs_builddir&;t t
  9927. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9928. s&@INSTALL@&$ac_INSTALL&;t t
  9929. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9930. $ac_datarootdir_hack
  9931. "
  9932. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  9933. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9934. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9935. { (exit 1); exit 1; }; }
  9936. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9937. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  9938. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  9939. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9940. which seems to be undefined. Please make sure it is defined." >&5
  9941. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9942. which seems to be undefined. Please make sure it is defined." >&2;}
  9943. rm -f "$tmp/stdin"
  9944. case $ac_file in
  9945. -) cat "$tmp/out" && rm -f "$tmp/out";;
  9946. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  9947. esac \
  9948. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9949. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9950. { (exit 1); exit 1; }; }
  9951. ;;
  9952. :H)
  9953. #
  9954. # CONFIG_HEADER
  9955. #
  9956. if test x"$ac_file" != x-; then
  9957. {
  9958. $as_echo "/* $configure_input */" \
  9959. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  9960. } >"$tmp/config.h" \
  9961. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9962. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9963. { (exit 1); exit 1; }; }
  9964. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  9965. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9966. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9967. else
  9968. rm -f "$ac_file"
  9969. mv "$tmp/config.h" "$ac_file" \
  9970. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9971. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9972. { (exit 1); exit 1; }; }
  9973. fi
  9974. else
  9975. $as_echo "/* $configure_input */" \
  9976. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  9977. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  9978. $as_echo "$as_me: error: could not create -" >&2;}
  9979. { (exit 1); exit 1; }; }
  9980. fi
  9981. # Compute "$ac_file"'s index in $config_headers.
  9982. _am_arg="$ac_file"
  9983. _am_stamp_count=1
  9984. for _am_header in $config_headers :; do
  9985. case $_am_header in
  9986. $_am_arg | $_am_arg:* )
  9987. break ;;
  9988. * )
  9989. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9990. esac
  9991. done
  9992. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  9993. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9994. X"$_am_arg" : 'X\(//\)[^/]' \| \
  9995. X"$_am_arg" : 'X\(//\)$' \| \
  9996. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  9997. $as_echo X"$_am_arg" |
  9998. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9999. s//\1/
  10000. q
  10001. }
  10002. /^X\(\/\/\)[^/].*/{
  10003. s//\1/
  10004. q
  10005. }
  10006. /^X\(\/\/\)$/{
  10007. s//\1/
  10008. q
  10009. }
  10010. /^X\(\/\).*/{
  10011. s//\1/
  10012. q
  10013. }
  10014. s/.*/./; q'`/stamp-h$_am_stamp_count
  10015. ;;
  10016. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  10017. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10018. ;;
  10019. esac
  10020. case $ac_file$ac_mode in
  10021. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10022. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10023. # are listed without --file. Let's play safe and only enable the eval
  10024. # if we detect the quoting.
  10025. case $CONFIG_FILES in
  10026. *\'*) eval set x "$CONFIG_FILES" ;;
  10027. *) set x $CONFIG_FILES ;;
  10028. esac
  10029. shift
  10030. for mf
  10031. do
  10032. # Strip MF so we end up with the name of the file.
  10033. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10034. # Check whether this is an Automake generated Makefile or not.
  10035. # We used to match only the files named `Makefile.in', but
  10036. # some people rename them; so instead we look at the file content.
  10037. # Grep'ing the first line is not enough: some people post-process
  10038. # each Makefile.in and add a new line on top of each file to say so.
  10039. # Grep'ing the whole file is not good either: AIX grep has a line
  10040. # limit of 2048, but all sed's we know have understand at least 4000.
  10041. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10042. dirpart=`$as_dirname -- "$mf" ||
  10043. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10044. X"$mf" : 'X\(//\)[^/]' \| \
  10045. X"$mf" : 'X\(//\)$' \| \
  10046. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10047. $as_echo X"$mf" |
  10048. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10049. s//\1/
  10050. q
  10051. }
  10052. /^X\(\/\/\)[^/].*/{
  10053. s//\1/
  10054. q
  10055. }
  10056. /^X\(\/\/\)$/{
  10057. s//\1/
  10058. q
  10059. }
  10060. /^X\(\/\).*/{
  10061. s//\1/
  10062. q
  10063. }
  10064. s/.*/./; q'`
  10065. else
  10066. continue
  10067. fi
  10068. # Extract the definition of DEPDIR, am__include, and am__quote
  10069. # from the Makefile without running `make'.
  10070. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10071. test -z "$DEPDIR" && continue
  10072. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10073. test -z "am__include" && continue
  10074. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10075. # When using ansi2knr, U may be empty or an underscore; expand it
  10076. U=`sed -n 's/^U = //p' < "$mf"`
  10077. # Find all dependency output files, they are included files with
  10078. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10079. # simplest approach to changing $(DEPDIR) to its actual value in the
  10080. # expansion.
  10081. for file in `sed -n "
  10082. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10083. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10084. # Make sure the directory exists.
  10085. test -f "$dirpart/$file" && continue
  10086. fdir=`$as_dirname -- "$file" ||
  10087. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10088. X"$file" : 'X\(//\)[^/]' \| \
  10089. X"$file" : 'X\(//\)$' \| \
  10090. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10091. $as_echo X"$file" |
  10092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10093. s//\1/
  10094. q
  10095. }
  10096. /^X\(\/\/\)[^/].*/{
  10097. s//\1/
  10098. q
  10099. }
  10100. /^X\(\/\/\)$/{
  10101. s//\1/
  10102. q
  10103. }
  10104. /^X\(\/\).*/{
  10105. s//\1/
  10106. q
  10107. }
  10108. s/.*/./; q'`
  10109. { as_dir=$dirpart/$fdir
  10110. case $as_dir in #(
  10111. -*) as_dir=./$as_dir;;
  10112. esac
  10113. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  10114. as_dirs=
  10115. while :; do
  10116. case $as_dir in #(
  10117. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10118. *) as_qdir=$as_dir;;
  10119. esac
  10120. as_dirs="'$as_qdir' $as_dirs"
  10121. as_dir=`$as_dirname -- "$as_dir" ||
  10122. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10123. X"$as_dir" : 'X\(//\)[^/]' \| \
  10124. X"$as_dir" : 'X\(//\)$' \| \
  10125. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10126. $as_echo X"$as_dir" |
  10127. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10128. s//\1/
  10129. q
  10130. }
  10131. /^X\(\/\/\)[^/].*/{
  10132. s//\1/
  10133. q
  10134. }
  10135. /^X\(\/\/\)$/{
  10136. s//\1/
  10137. q
  10138. }
  10139. /^X\(\/\).*/{
  10140. s//\1/
  10141. q
  10142. }
  10143. s/.*/./; q'`
  10144. test -d "$as_dir" && break
  10145. done
  10146. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10147. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  10148. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  10149. { (exit 1); exit 1; }; }; }
  10150. # echo "creating $dirpart/$file"
  10151. echo '# dummy' > "$dirpart/$file"
  10152. done
  10153. done
  10154. }
  10155. ;;
  10156. esac
  10157. done # for ac_tag
  10158. { (exit 0); exit 0; }
  10159. _ACEOF
  10160. chmod +x $CONFIG_STATUS
  10161. ac_clean_files=$ac_clean_files_save
  10162. test $ac_write_fail = 0 ||
  10163. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  10164. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  10165. { (exit 1); exit 1; }; }
  10166. # configure is writing to config.log, and then calls config.status.
  10167. # config.status does its own redirection, appending to config.log.
  10168. # Unfortunately, on DOS this fails, as config.log is still kept open
  10169. # by configure, so config.status won't be able to write to it; its
  10170. # output is simply discarded. So we exec the FD to /dev/null,
  10171. # effectively closing config.log, so it can be properly (re)opened and
  10172. # appended to by config.status. When coming back to configure, we
  10173. # need to make the FD available again.
  10174. if test "$no_create" != yes; then
  10175. ac_cs_success=:
  10176. ac_config_status_args=
  10177. test "$silent" = yes &&
  10178. ac_config_status_args="$ac_config_status_args --quiet"
  10179. exec 5>/dev/null
  10180. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10181. exec 5>>config.log
  10182. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10183. # would make configure fail if this is the last instruction.
  10184. $ac_cs_success || { (exit 1); exit 1; }
  10185. fi
  10186. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10187. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10188. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10189. fi