configure 474 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dpkg 1.13.1.
  4. #
  5. # Report bugs to <debian-dpkg@lists.debian.org>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='dpkg'
  237. PACKAGE_TARNAME='dpkg'
  238. PACKAGE_VERSION='1.13.1'
  239. PACKAGE_STRING='dpkg 1.13.1'
  240. PACKAGE_BUGREPORT='debian-dpkg@lists.debian.org'
  241. ac_unique_file="lib/dpkg.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB WITH_DSELECT_TRUE WITH_DSELECT_FALSE WITH_START_STOP_DAEMON_TRUE WITH_START_STOP_DAEMON_FALSE admindir CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PERL ZLIB_CFLAGS ZLIB_LIBS BZ2_CFLAGS BZ2_LIBS CURSES_LIBS SSD_LIBS LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CPP_set=${CPP+set}
  678. ac_env_CPP_value=$CPP
  679. ac_cv_env_CPP_set=${CPP+set}
  680. ac_cv_env_CPP_value=$CPP
  681. ac_env_CXX_set=${CXX+set}
  682. ac_env_CXX_value=$CXX
  683. ac_cv_env_CXX_set=${CXX+set}
  684. ac_cv_env_CXX_value=$CXX
  685. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  686. ac_env_CXXFLAGS_value=$CXXFLAGS
  687. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  688. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  689. ac_env_PERL_set=${PERL+set}
  690. ac_env_PERL_value=$PERL
  691. ac_cv_env_PERL_set=${PERL+set}
  692. ac_cv_env_PERL_value=$PERL
  693. ac_env_ZLIB_CFLAGS_set=${ZLIB_CFLAGS+set}
  694. ac_env_ZLIB_CFLAGS_value=$ZLIB_CFLAGS
  695. ac_cv_env_ZLIB_CFLAGS_set=${ZLIB_CFLAGS+set}
  696. ac_cv_env_ZLIB_CFLAGS_value=$ZLIB_CFLAGS
  697. ac_env_ZLIB_LIBS_set=${ZLIB_LIBS+set}
  698. ac_env_ZLIB_LIBS_value=$ZLIB_LIBS
  699. ac_cv_env_ZLIB_LIBS_set=${ZLIB_LIBS+set}
  700. ac_cv_env_ZLIB_LIBS_value=$ZLIB_LIBS
  701. ac_env_BZ2_CFLAGS_set=${BZ2_CFLAGS+set}
  702. ac_env_BZ2_CFLAGS_value=$BZ2_CFLAGS
  703. ac_cv_env_BZ2_CFLAGS_set=${BZ2_CFLAGS+set}
  704. ac_cv_env_BZ2_CFLAGS_value=$BZ2_CFLAGS
  705. ac_env_BZ2_LIBS_set=${BZ2_LIBS+set}
  706. ac_env_BZ2_LIBS_value=$BZ2_LIBS
  707. ac_cv_env_BZ2_LIBS_set=${BZ2_LIBS+set}
  708. ac_cv_env_BZ2_LIBS_value=$BZ2_LIBS
  709. ac_env_CURSES_LIBS_set=${CURSES_LIBS+set}
  710. ac_env_CURSES_LIBS_value=$CURSES_LIBS
  711. ac_cv_env_CURSES_LIBS_set=${CURSES_LIBS+set}
  712. ac_cv_env_CURSES_LIBS_value=$CURSES_LIBS
  713. ac_env_SSD_LIBS_set=${SSD_LIBS+set}
  714. ac_env_SSD_LIBS_value=$SSD_LIBS
  715. ac_cv_env_SSD_LIBS_set=${SSD_LIBS+set}
  716. ac_cv_env_SSD_LIBS_value=$SSD_LIBS
  717. #
  718. # Report the --help message.
  719. #
  720. if test "$ac_init_help" = "long"; then
  721. # Omit some internal or obsolete options to make the list less imposing.
  722. # This message is too long to be a string in the A/UX 3.1 sh.
  723. cat <<_ACEOF
  724. \`configure' configures dpkg 1.13.1 to adapt to many kinds of systems.
  725. Usage: $0 [OPTION]... [VAR=VALUE]...
  726. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  727. VAR=VALUE. See below for descriptions of some of the useful variables.
  728. Defaults for the options are specified in brackets.
  729. Configuration:
  730. -h, --help display this help and exit
  731. --help=short display options specific to this package
  732. --help=recursive display the short help of all the included packages
  733. -V, --version display version information and exit
  734. -q, --quiet, --silent do not print \`checking...' messages
  735. --cache-file=FILE cache test results in FILE [disabled]
  736. -C, --config-cache alias for \`--cache-file=config.cache'
  737. -n, --no-create do not create output files
  738. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  739. _ACEOF
  740. cat <<_ACEOF
  741. Installation directories:
  742. --prefix=PREFIX install architecture-independent files in PREFIX
  743. [$ac_default_prefix]
  744. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  745. [PREFIX]
  746. By default, \`make install' will install all the files in
  747. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  748. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  749. for instance \`--prefix=\$HOME'.
  750. For better control, use the options below.
  751. Fine tuning of the installation directories:
  752. --bindir=DIR user executables [EPREFIX/bin]
  753. --sbindir=DIR system admin executables [EPREFIX/sbin]
  754. --libexecdir=DIR program executables [EPREFIX/libexec]
  755. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  756. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  757. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  758. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  759. --libdir=DIR object code libraries [EPREFIX/lib]
  760. --includedir=DIR C header files [PREFIX/include]
  761. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  762. --infodir=DIR info documentation [PREFIX/info]
  763. --mandir=DIR man documentation [PREFIX/man]
  764. _ACEOF
  765. cat <<\_ACEOF
  766. Program names:
  767. --program-prefix=PREFIX prepend PREFIX to installed program names
  768. --program-suffix=SUFFIX append SUFFIX to installed program names
  769. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  770. System types:
  771. --build=BUILD configure for building on BUILD [guessed]
  772. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  773. --target=TARGET configure for building compilers for TARGET [HOST]
  774. _ACEOF
  775. fi
  776. if test -n "$ac_init_help"; then
  777. case $ac_init_help in
  778. short | recursive ) echo "Configuration of dpkg 1.13.1:";;
  779. esac
  780. cat <<\_ACEOF
  781. Optional Features:
  782. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  783. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  784. --disable-nls do not use Native Language Support
  785. --disable-dependency-tracking speeds up one-time build
  786. --enable-dependency-tracking do not reject slow dependency extractors
  787. --disable-rpath do not hardcode runtime library paths
  788. --disable-largefile omit support for large files
  789. --enable-compiler-warnings
  790. Enable additional compiler warnings
  791. --disable-compiler-optimisations
  792. Disable compiler optimisations
  793. --disable-linker-optimisations
  794. Disable linker optimisations
  795. Optional Packages:
  796. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  797. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  798. --with-gnu-ld assume the C compiler uses GNU ld default=no
  799. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  800. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  801. --with-included-gettext use the GNU gettext library included here
  802. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  803. --without-libintl-prefix don't search for libintl in includedir and libdir
  804. --without-dselect don't build dselect package-management frontend
  805. --without-start-stop-daemon
  806. don't build or use start-stop-daemon
  807. --with-admindir=DIR dpkg database directory [LOCALSTATEDIR/dpkg]
  808. --with-zlib use zlib for compression and decompression
  809. (yes/static)
  810. --with-bz2 use bz2 library for compression and decompression
  811. (yes/static)
  812. Some influential environment variables:
  813. CC C compiler command
  814. CFLAGS C compiler flags
  815. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  816. nonstandard directory <lib dir>
  817. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  818. headers in a nonstandard directory <include dir>
  819. CPP C preprocessor
  820. CXX C++ compiler command
  821. CXXFLAGS C++ compiler flags
  822. PERL Perl interpreter
  823. ZLIB_CFLAGS compiler flags for zlib library
  824. ZLIB_LIBS linker flags for zlib library
  825. BZ2_CFLAGS compiler flags for bz2 library
  826. BZ2_LIBS linker flags for bz2 library
  827. CURSES_LIBS linker flags for curses library
  828. SSD_LIBS linker flags for start-stop-daemon
  829. Use these variables to override the choices made by `configure' or to help
  830. it to find libraries and programs with nonstandard names/locations.
  831. Report bugs to <debian-dpkg@lists.debian.org>.
  832. _ACEOF
  833. fi
  834. if test "$ac_init_help" = "recursive"; then
  835. # If there are subdirs, report their specific --help.
  836. ac_popdir=`pwd`
  837. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  838. test -d $ac_dir || continue
  839. ac_builddir=.
  840. if test "$ac_dir" != .; then
  841. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  842. # A "../" for each directory in $ac_dir_suffix.
  843. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  844. else
  845. ac_dir_suffix= ac_top_builddir=
  846. fi
  847. case $srcdir in
  848. .) # No --srcdir option. We are building in place.
  849. ac_srcdir=.
  850. if test -z "$ac_top_builddir"; then
  851. ac_top_srcdir=.
  852. else
  853. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  854. fi ;;
  855. [\\/]* | ?:[\\/]* ) # Absolute path.
  856. ac_srcdir=$srcdir$ac_dir_suffix;
  857. ac_top_srcdir=$srcdir ;;
  858. *) # Relative path.
  859. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  860. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  861. esac
  862. # Do not use `cd foo && pwd` to compute absolute paths, because
  863. # the directories may not exist.
  864. case `pwd` in
  865. .) ac_abs_builddir="$ac_dir";;
  866. *)
  867. case "$ac_dir" in
  868. .) ac_abs_builddir=`pwd`;;
  869. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  870. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  871. esac;;
  872. esac
  873. case $ac_abs_builddir in
  874. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  875. *)
  876. case ${ac_top_builddir}. in
  877. .) ac_abs_top_builddir=$ac_abs_builddir;;
  878. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  879. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  880. esac;;
  881. esac
  882. case $ac_abs_builddir in
  883. .) ac_abs_srcdir=$ac_srcdir;;
  884. *)
  885. case $ac_srcdir in
  886. .) ac_abs_srcdir=$ac_abs_builddir;;
  887. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  888. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  889. esac;;
  890. esac
  891. case $ac_abs_builddir in
  892. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  893. *)
  894. case $ac_top_srcdir in
  895. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  896. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  897. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  898. esac;;
  899. esac
  900. cd $ac_dir
  901. # Check for guested configure; otherwise get Cygnus style configure.
  902. if test -f $ac_srcdir/configure.gnu; then
  903. echo
  904. $SHELL $ac_srcdir/configure.gnu --help=recursive
  905. elif test -f $ac_srcdir/configure; then
  906. echo
  907. $SHELL $ac_srcdir/configure --help=recursive
  908. elif test -f $ac_srcdir/configure.ac ||
  909. test -f $ac_srcdir/configure.in; then
  910. echo
  911. $ac_configure --help
  912. else
  913. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  914. fi
  915. cd "$ac_popdir"
  916. done
  917. fi
  918. test -n "$ac_init_help" && exit 0
  919. if $ac_init_version; then
  920. cat <<\_ACEOF
  921. dpkg configure 1.13.1
  922. generated by GNU Autoconf 2.59
  923. Copyright (C) 2003 Free Software Foundation, Inc.
  924. This configure script is free software; the Free Software Foundation
  925. gives unlimited permission to copy, distribute and modify it.
  926. _ACEOF
  927. exit 0
  928. fi
  929. exec 5>config.log
  930. cat >&5 <<_ACEOF
  931. This file contains any messages produced by compilers while
  932. running configure, to aid debugging if configure makes a mistake.
  933. It was created by dpkg $as_me 1.13.1, which was
  934. generated by GNU Autoconf 2.59. Invocation command line was
  935. $ $0 $@
  936. _ACEOF
  937. {
  938. cat <<_ASUNAME
  939. ## --------- ##
  940. ## Platform. ##
  941. ## --------- ##
  942. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  943. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  944. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  945. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  946. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  947. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  948. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  949. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  950. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  951. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  952. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  953. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  954. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  955. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  956. _ASUNAME
  957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  958. for as_dir in $PATH
  959. do
  960. IFS=$as_save_IFS
  961. test -z "$as_dir" && as_dir=.
  962. echo "PATH: $as_dir"
  963. done
  964. } >&5
  965. cat >&5 <<_ACEOF
  966. ## ----------- ##
  967. ## Core tests. ##
  968. ## ----------- ##
  969. _ACEOF
  970. # Keep a trace of the command line.
  971. # Strip out --no-create and --no-recursion so they do not pile up.
  972. # Strip out --silent because we don't want to record it for future runs.
  973. # Also quote any args containing shell meta-characters.
  974. # Make two passes to allow for proper duplicate-argument suppression.
  975. ac_configure_args=
  976. ac_configure_args0=
  977. ac_configure_args1=
  978. ac_sep=
  979. ac_must_keep_next=false
  980. for ac_pass in 1 2
  981. do
  982. for ac_arg
  983. do
  984. case $ac_arg in
  985. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  986. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  987. | -silent | --silent | --silen | --sile | --sil)
  988. continue ;;
  989. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  990. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  991. esac
  992. case $ac_pass in
  993. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  994. 2)
  995. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  996. if test $ac_must_keep_next = true; then
  997. ac_must_keep_next=false # Got value, back to normal.
  998. else
  999. case $ac_arg in
  1000. *=* | --config-cache | -C | -disable-* | --disable-* \
  1001. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1002. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1003. | -with-* | --with-* | -without-* | --without-* | --x)
  1004. case "$ac_configure_args0 " in
  1005. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1006. esac
  1007. ;;
  1008. -* ) ac_must_keep_next=true ;;
  1009. esac
  1010. fi
  1011. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1012. # Get rid of the leading space.
  1013. ac_sep=" "
  1014. ;;
  1015. esac
  1016. done
  1017. done
  1018. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1019. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1020. # When interrupted or exit'd, cleanup temporary files, and complete
  1021. # config.log. We remove comments because anyway the quotes in there
  1022. # would cause problems or look ugly.
  1023. # WARNING: Be sure not to use single quotes in there, as some shells,
  1024. # such as our DU 5.0 friend, will then `close' the trap.
  1025. trap 'exit_status=$?
  1026. # Save into config.log some information that might help in debugging.
  1027. {
  1028. echo
  1029. cat <<\_ASBOX
  1030. ## ---------------- ##
  1031. ## Cache variables. ##
  1032. ## ---------------- ##
  1033. _ASBOX
  1034. echo
  1035. # The following way of writing the cache mishandles newlines in values,
  1036. {
  1037. (set) 2>&1 |
  1038. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1039. *ac_space=\ *)
  1040. sed -n \
  1041. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1042. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1043. ;;
  1044. *)
  1045. sed -n \
  1046. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1047. ;;
  1048. esac;
  1049. }
  1050. echo
  1051. cat <<\_ASBOX
  1052. ## ----------------- ##
  1053. ## Output variables. ##
  1054. ## ----------------- ##
  1055. _ASBOX
  1056. echo
  1057. for ac_var in $ac_subst_vars
  1058. do
  1059. eval ac_val=$`echo $ac_var`
  1060. echo "$ac_var='"'"'$ac_val'"'"'"
  1061. done | sort
  1062. echo
  1063. if test -n "$ac_subst_files"; then
  1064. cat <<\_ASBOX
  1065. ## ------------- ##
  1066. ## Output files. ##
  1067. ## ------------- ##
  1068. _ASBOX
  1069. echo
  1070. for ac_var in $ac_subst_files
  1071. do
  1072. eval ac_val=$`echo $ac_var`
  1073. echo "$ac_var='"'"'$ac_val'"'"'"
  1074. done | sort
  1075. echo
  1076. fi
  1077. if test -s confdefs.h; then
  1078. cat <<\_ASBOX
  1079. ## ----------- ##
  1080. ## confdefs.h. ##
  1081. ## ----------- ##
  1082. _ASBOX
  1083. echo
  1084. sed "/^$/d" confdefs.h | sort
  1085. echo
  1086. fi
  1087. test "$ac_signal" != 0 &&
  1088. echo "$as_me: caught signal $ac_signal"
  1089. echo "$as_me: exit $exit_status"
  1090. } >&5
  1091. rm -f core *.core &&
  1092. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1093. exit $exit_status
  1094. ' 0
  1095. for ac_signal in 1 2 13 15; do
  1096. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1097. done
  1098. ac_signal=0
  1099. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1100. rm -rf conftest* confdefs.h
  1101. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1102. echo >confdefs.h
  1103. # Predefined preprocessor variables.
  1104. cat >>confdefs.h <<_ACEOF
  1105. #define PACKAGE_NAME "$PACKAGE_NAME"
  1106. _ACEOF
  1107. cat >>confdefs.h <<_ACEOF
  1108. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1109. _ACEOF
  1110. cat >>confdefs.h <<_ACEOF
  1111. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1112. _ACEOF
  1113. cat >>confdefs.h <<_ACEOF
  1114. #define PACKAGE_STRING "$PACKAGE_STRING"
  1115. _ACEOF
  1116. cat >>confdefs.h <<_ACEOF
  1117. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1118. _ACEOF
  1119. # Let the site file select an alternate cache file if it wants to.
  1120. # Prefer explicitly selected file to automatically selected ones.
  1121. if test -z "$CONFIG_SITE"; then
  1122. if test "x$prefix" != xNONE; then
  1123. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1124. else
  1125. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1126. fi
  1127. fi
  1128. for ac_site_file in $CONFIG_SITE; do
  1129. if test -r "$ac_site_file"; then
  1130. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1131. echo "$as_me: loading site script $ac_site_file" >&6;}
  1132. sed 's/^/| /' "$ac_site_file" >&5
  1133. . "$ac_site_file"
  1134. fi
  1135. done
  1136. if test -r "$cache_file"; then
  1137. # Some versions of bash will fail to source /dev/null (special
  1138. # files actually), so we avoid doing that.
  1139. if test -f "$cache_file"; then
  1140. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1141. echo "$as_me: loading cache $cache_file" >&6;}
  1142. case $cache_file in
  1143. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1144. *) . ./$cache_file;;
  1145. esac
  1146. fi
  1147. else
  1148. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1149. echo "$as_me: creating cache $cache_file" >&6;}
  1150. >$cache_file
  1151. fi
  1152. # Check that the precious variables saved in the cache have kept the same
  1153. # value.
  1154. ac_cache_corrupted=false
  1155. for ac_var in `(set) 2>&1 |
  1156. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1157. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1158. eval ac_new_set=\$ac_env_${ac_var}_set
  1159. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1160. eval ac_new_val="\$ac_env_${ac_var}_value"
  1161. case $ac_old_set,$ac_new_set in
  1162. set,)
  1163. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1164. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1165. ac_cache_corrupted=: ;;
  1166. ,set)
  1167. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1168. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1169. ac_cache_corrupted=: ;;
  1170. ,);;
  1171. *)
  1172. if test "x$ac_old_val" != "x$ac_new_val"; then
  1173. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1174. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1175. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1176. echo "$as_me: former value: $ac_old_val" >&2;}
  1177. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1178. echo "$as_me: current value: $ac_new_val" >&2;}
  1179. ac_cache_corrupted=:
  1180. fi;;
  1181. esac
  1182. # Pass precious variables to config.status.
  1183. if test "$ac_new_set" = set; then
  1184. case $ac_new_val in
  1185. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1186. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1187. *) ac_arg=$ac_var=$ac_new_val ;;
  1188. esac
  1189. case " $ac_configure_args " in
  1190. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1191. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1192. esac
  1193. fi
  1194. done
  1195. if $ac_cache_corrupted; then
  1196. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1197. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1198. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1199. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1200. { (exit 1); exit 1; }; }
  1201. fi
  1202. ac_ext=c
  1203. ac_cpp='$CPP $CPPFLAGS'
  1204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1207. case m4 in
  1208. [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
  1209. *) ac_macro_dir=$srcdir/m4 ;;
  1210. esac
  1211. if test -d "$ac_macro_dir"; then :
  1212. else
  1213. { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
  1214. echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
  1215. { (exit 1); exit 1; }; }
  1216. fi
  1217. ac_aux_dir=
  1218. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1219. if test -f $ac_dir/install-sh; then
  1220. ac_aux_dir=$ac_dir
  1221. ac_install_sh="$ac_aux_dir/install-sh -c"
  1222. break
  1223. elif test -f $ac_dir/install.sh; then
  1224. ac_aux_dir=$ac_dir
  1225. ac_install_sh="$ac_aux_dir/install.sh -c"
  1226. break
  1227. elif test -f $ac_dir/shtool; then
  1228. ac_aux_dir=$ac_dir
  1229. ac_install_sh="$ac_aux_dir/shtool install -c"
  1230. break
  1231. fi
  1232. done
  1233. if test -z "$ac_aux_dir"; then
  1234. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1235. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1236. { (exit 1); exit 1; }; }
  1237. fi
  1238. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1239. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1240. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1241. # Make sure we can run config.sub.
  1242. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1243. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1244. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1245. { (exit 1); exit 1; }; }
  1246. echo "$as_me:$LINENO: checking build system type" >&5
  1247. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1248. if test "${ac_cv_build+set}" = set; then
  1249. echo $ECHO_N "(cached) $ECHO_C" >&6
  1250. else
  1251. ac_cv_build_alias=$build_alias
  1252. test -z "$ac_cv_build_alias" &&
  1253. ac_cv_build_alias=`$ac_config_guess`
  1254. test -z "$ac_cv_build_alias" &&
  1255. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1256. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1257. { (exit 1); exit 1; }; }
  1258. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1259. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1260. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1261. { (exit 1); exit 1; }; }
  1262. fi
  1263. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1264. echo "${ECHO_T}$ac_cv_build" >&6
  1265. build=$ac_cv_build
  1266. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1267. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1268. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1269. echo "$as_me:$LINENO: checking host system type" >&5
  1270. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1271. if test "${ac_cv_host+set}" = set; then
  1272. echo $ECHO_N "(cached) $ECHO_C" >&6
  1273. else
  1274. ac_cv_host_alias=$host_alias
  1275. test -z "$ac_cv_host_alias" &&
  1276. ac_cv_host_alias=$ac_cv_build_alias
  1277. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1278. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1279. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1280. { (exit 1); exit 1; }; }
  1281. fi
  1282. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1283. echo "${ECHO_T}$ac_cv_host" >&6
  1284. host=$ac_cv_host
  1285. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1286. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1287. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1288. echo "$as_me:$LINENO: checking target system type" >&5
  1289. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1290. if test "${ac_cv_target+set}" = set; then
  1291. echo $ECHO_N "(cached) $ECHO_C" >&6
  1292. else
  1293. ac_cv_target_alias=$target_alias
  1294. test "x$ac_cv_target_alias" = "x" &&
  1295. ac_cv_target_alias=$ac_cv_host_alias
  1296. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1297. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1298. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1299. { (exit 1); exit 1; }; }
  1300. fi
  1301. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1302. echo "${ECHO_T}$ac_cv_target" >&6
  1303. target=$ac_cv_target
  1304. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1305. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1306. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1307. # The aliases save the names the user supplied, while $host etc.
  1308. # will get canonicalized.
  1309. test -n "$target_alias" &&
  1310. test "$program_prefix$program_suffix$program_transform_name" = \
  1311. NONENONEs,x,x, &&
  1312. program_prefix=${target_alias}-
  1313. cat >>confdefs.h <<\_ACEOF
  1314. #define _GNU_SOURCE 1
  1315. _ACEOF
  1316. am__api_version="1.8"
  1317. # Find a good install program. We prefer a C program (faster),
  1318. # so one script is as good as another. But avoid the broken or
  1319. # incompatible versions:
  1320. # SysV /etc/install, /usr/sbin/install
  1321. # SunOS /usr/etc/install
  1322. # IRIX /sbin/install
  1323. # AIX /bin/install
  1324. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1325. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1326. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1327. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1328. # OS/2's system install, which has a completely different semantic
  1329. # ./install, which can be erroneously created by make from ./install.sh.
  1330. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1331. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1332. if test -z "$INSTALL"; then
  1333. if test "${ac_cv_path_install+set}" = set; then
  1334. echo $ECHO_N "(cached) $ECHO_C" >&6
  1335. else
  1336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1337. for as_dir in $PATH
  1338. do
  1339. IFS=$as_save_IFS
  1340. test -z "$as_dir" && as_dir=.
  1341. # Account for people who put trailing slashes in PATH elements.
  1342. case $as_dir/ in
  1343. ./ | .// | /cC/* | \
  1344. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1345. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1346. /usr/ucb/* ) ;;
  1347. *)
  1348. # OSF1 and SCO ODT 3.0 have their own names for install.
  1349. # Don't use installbsd from OSF since it installs stuff as root
  1350. # by default.
  1351. for ac_prog in ginstall scoinst install; do
  1352. for ac_exec_ext in '' $ac_executable_extensions; do
  1353. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1354. if test $ac_prog = install &&
  1355. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1356. # AIX install. It has an incompatible calling convention.
  1357. :
  1358. elif test $ac_prog = install &&
  1359. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1360. # program-specific install script used by HP pwplus--don't use.
  1361. :
  1362. else
  1363. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1364. break 3
  1365. fi
  1366. fi
  1367. done
  1368. done
  1369. ;;
  1370. esac
  1371. done
  1372. fi
  1373. if test "${ac_cv_path_install+set}" = set; then
  1374. INSTALL=$ac_cv_path_install
  1375. else
  1376. # As a last resort, use the slow shell script. We don't cache a
  1377. # path for INSTALL within a source directory, because that will
  1378. # break other packages using the cache if that directory is
  1379. # removed, or if the path is relative.
  1380. INSTALL=$ac_install_sh
  1381. fi
  1382. fi
  1383. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1384. echo "${ECHO_T}$INSTALL" >&6
  1385. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1386. # It thinks the first close brace ends the variable substitution.
  1387. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1388. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1389. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1390. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1391. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1392. # Just in case
  1393. sleep 1
  1394. echo timestamp > conftest.file
  1395. # Do `set' in a subshell so we don't clobber the current shell's
  1396. # arguments. Must try -L first in case configure is actually a
  1397. # symlink; some systems play weird games with the mod time of symlinks
  1398. # (eg FreeBSD returns the mod time of the symlink's containing
  1399. # directory).
  1400. if (
  1401. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1402. if test "$*" = "X"; then
  1403. # -L didn't work.
  1404. set X `ls -t $srcdir/configure conftest.file`
  1405. fi
  1406. rm -f conftest.file
  1407. if test "$*" != "X $srcdir/configure conftest.file" \
  1408. && test "$*" != "X conftest.file $srcdir/configure"; then
  1409. # If neither matched, then we have a broken ls. This can happen
  1410. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1411. # broken ls alias from the environment. This has actually
  1412. # happened. Such a system could not be considered "sane".
  1413. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1414. alias in your environment" >&5
  1415. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1416. alias in your environment" >&2;}
  1417. { (exit 1); exit 1; }; }
  1418. fi
  1419. test "$2" = conftest.file
  1420. )
  1421. then
  1422. # Ok.
  1423. :
  1424. else
  1425. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1426. Check your system clock" >&5
  1427. echo "$as_me: error: newly created file is older than distributed files!
  1428. Check your system clock" >&2;}
  1429. { (exit 1); exit 1; }; }
  1430. fi
  1431. echo "$as_me:$LINENO: result: yes" >&5
  1432. echo "${ECHO_T}yes" >&6
  1433. test "$program_prefix" != NONE &&
  1434. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1435. # Use a double $ so make ignores it.
  1436. test "$program_suffix" != NONE &&
  1437. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1438. # Double any \ or $. echo might interpret backslashes.
  1439. # By default was `s,x,x', remove it if useless.
  1440. cat <<\_ACEOF >conftest.sed
  1441. s/[\\$]/&&/g;s/;s,x,x,$//
  1442. _ACEOF
  1443. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1444. rm conftest.sed
  1445. # expand $ac_aux_dir to an absolute path
  1446. am_aux_dir=`cd $ac_aux_dir && pwd`
  1447. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1448. # Use eval to expand $SHELL
  1449. if eval "$MISSING --run true"; then
  1450. am_missing_run="$MISSING --run "
  1451. else
  1452. am_missing_run=
  1453. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1454. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1455. fi
  1456. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1457. # Keeping the `.' argument allows $(mkdir_p) to be used without
  1458. # argument. Indeed, we sometimes output rules like
  1459. # $(mkdir_p) $(somedir)
  1460. # where $(somedir) is conditionally defined.
  1461. # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  1462. # expensive solution, as it forces Make to start a sub-shell.)
  1463. mkdir_p='mkdir -p -- .'
  1464. else
  1465. # On NextStep and OpenStep, the `mkdir' command does not
  1466. # recognize any option. It will interpret all options as
  1467. # directories to create, and then abort because `.' already
  1468. # exists.
  1469. for d in ./-p ./--version;
  1470. do
  1471. test -d $d && rmdir $d
  1472. done
  1473. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1474. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1475. mkdir_p='$(mkinstalldirs)'
  1476. else
  1477. mkdir_p='$(install_sh) -d'
  1478. fi
  1479. fi
  1480. for ac_prog in gawk mawk nawk awk
  1481. do
  1482. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1483. set dummy $ac_prog; ac_word=$2
  1484. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1485. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1486. if test "${ac_cv_prog_AWK+set}" = set; then
  1487. echo $ECHO_N "(cached) $ECHO_C" >&6
  1488. else
  1489. if test -n "$AWK"; then
  1490. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1491. else
  1492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1493. for as_dir in $PATH
  1494. do
  1495. IFS=$as_save_IFS
  1496. test -z "$as_dir" && as_dir=.
  1497. for ac_exec_ext in '' $ac_executable_extensions; do
  1498. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1499. ac_cv_prog_AWK="$ac_prog"
  1500. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1501. break 2
  1502. fi
  1503. done
  1504. done
  1505. fi
  1506. fi
  1507. AWK=$ac_cv_prog_AWK
  1508. if test -n "$AWK"; then
  1509. echo "$as_me:$LINENO: result: $AWK" >&5
  1510. echo "${ECHO_T}$AWK" >&6
  1511. else
  1512. echo "$as_me:$LINENO: result: no" >&5
  1513. echo "${ECHO_T}no" >&6
  1514. fi
  1515. test -n "$AWK" && break
  1516. done
  1517. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1518. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1519. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1520. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1521. echo $ECHO_N "(cached) $ECHO_C" >&6
  1522. else
  1523. cat >conftest.make <<\_ACEOF
  1524. all:
  1525. @echo 'ac_maketemp="$(MAKE)"'
  1526. _ACEOF
  1527. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1528. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1529. if test -n "$ac_maketemp"; then
  1530. eval ac_cv_prog_make_${ac_make}_set=yes
  1531. else
  1532. eval ac_cv_prog_make_${ac_make}_set=no
  1533. fi
  1534. rm -f conftest.make
  1535. fi
  1536. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1537. echo "$as_me:$LINENO: result: yes" >&5
  1538. echo "${ECHO_T}yes" >&6
  1539. SET_MAKE=
  1540. else
  1541. echo "$as_me:$LINENO: result: no" >&5
  1542. echo "${ECHO_T}no" >&6
  1543. SET_MAKE="MAKE=${MAKE-make}"
  1544. fi
  1545. rm -rf .tst 2>/dev/null
  1546. mkdir .tst 2>/dev/null
  1547. if test -d .tst; then
  1548. am__leading_dot=.
  1549. else
  1550. am__leading_dot=_
  1551. fi
  1552. rmdir .tst 2>/dev/null
  1553. # test to see if srcdir already configured
  1554. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1555. test -f $srcdir/config.status; then
  1556. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1557. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1558. { (exit 1); exit 1; }; }
  1559. fi
  1560. # test whether we have cygpath
  1561. if test -z "$CYGPATH_W"; then
  1562. if (cygpath --version) >/dev/null 2>/dev/null; then
  1563. CYGPATH_W='cygpath -w'
  1564. else
  1565. CYGPATH_W=echo
  1566. fi
  1567. fi
  1568. # Define the identity of the package.
  1569. PACKAGE='dpkg'
  1570. VERSION='1.13.1'
  1571. cat >>confdefs.h <<_ACEOF
  1572. #define PACKAGE "$PACKAGE"
  1573. _ACEOF
  1574. cat >>confdefs.h <<_ACEOF
  1575. #define VERSION "$VERSION"
  1576. _ACEOF
  1577. # Some tools Automake needs.
  1578. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1579. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1580. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1581. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1582. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1583. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1584. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1585. # Installed binaries are usually stripped using `strip' when the user
  1586. # run `make install-strip'. However `strip' might not be the right
  1587. # tool to use in cross-compilation environments, therefore Automake
  1588. # will honor the `STRIP' environment variable to overrule this program.
  1589. if test "$cross_compiling" != no; then
  1590. if test -n "$ac_tool_prefix"; then
  1591. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1592. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1593. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1594. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1595. if test "${ac_cv_prog_STRIP+set}" = set; then
  1596. echo $ECHO_N "(cached) $ECHO_C" >&6
  1597. else
  1598. if test -n "$STRIP"; then
  1599. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1600. else
  1601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1602. for as_dir in $PATH
  1603. do
  1604. IFS=$as_save_IFS
  1605. test -z "$as_dir" && as_dir=.
  1606. for ac_exec_ext in '' $ac_executable_extensions; do
  1607. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1608. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1609. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1610. break 2
  1611. fi
  1612. done
  1613. done
  1614. fi
  1615. fi
  1616. STRIP=$ac_cv_prog_STRIP
  1617. if test -n "$STRIP"; then
  1618. echo "$as_me:$LINENO: result: $STRIP" >&5
  1619. echo "${ECHO_T}$STRIP" >&6
  1620. else
  1621. echo "$as_me:$LINENO: result: no" >&5
  1622. echo "${ECHO_T}no" >&6
  1623. fi
  1624. fi
  1625. if test -z "$ac_cv_prog_STRIP"; then
  1626. ac_ct_STRIP=$STRIP
  1627. # Extract the first word of "strip", so it can be a program name with args.
  1628. set dummy strip; ac_word=$2
  1629. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1630. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1631. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1632. echo $ECHO_N "(cached) $ECHO_C" >&6
  1633. else
  1634. if test -n "$ac_ct_STRIP"; then
  1635. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1636. else
  1637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1638. for as_dir in $PATH
  1639. do
  1640. IFS=$as_save_IFS
  1641. test -z "$as_dir" && as_dir=.
  1642. for ac_exec_ext in '' $ac_executable_extensions; do
  1643. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1644. ac_cv_prog_ac_ct_STRIP="strip"
  1645. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1646. break 2
  1647. fi
  1648. done
  1649. done
  1650. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1651. fi
  1652. fi
  1653. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1654. if test -n "$ac_ct_STRIP"; then
  1655. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1656. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1657. else
  1658. echo "$as_me:$LINENO: result: no" >&5
  1659. echo "${ECHO_T}no" >&6
  1660. fi
  1661. STRIP=$ac_ct_STRIP
  1662. else
  1663. STRIP="$ac_cv_prog_STRIP"
  1664. fi
  1665. fi
  1666. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1667. # We need awk for the "check" target. The system "awk" is bad on
  1668. # some platforms.
  1669. MKINSTALLDIRS=
  1670. if test -n "$ac_aux_dir"; then
  1671. case "$ac_aux_dir" in
  1672. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  1673. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  1674. esac
  1675. fi
  1676. if test -z "$MKINSTALLDIRS"; then
  1677. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  1678. fi
  1679. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  1680. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  1681. # Check whether --enable-nls or --disable-nls was given.
  1682. if test "${enable_nls+set}" = set; then
  1683. enableval="$enable_nls"
  1684. USE_NLS=$enableval
  1685. else
  1686. USE_NLS=yes
  1687. fi;
  1688. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  1689. echo "${ECHO_T}$USE_NLS" >&6
  1690. # Prepare PATH_SEPARATOR.
  1691. # The user is always right.
  1692. if test "${PATH_SEPARATOR+set}" != set; then
  1693. echo "#! /bin/sh" >conf$$.sh
  1694. echo "exit 0" >>conf$$.sh
  1695. chmod +x conf$$.sh
  1696. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1697. PATH_SEPARATOR=';'
  1698. else
  1699. PATH_SEPARATOR=:
  1700. fi
  1701. rm -f conf$$.sh
  1702. fi
  1703. # Find out how to test for executable files. Don't use a zero-byte file,
  1704. # as systems may use methods other than mode bits to determine executability.
  1705. cat >conf$$.file <<_ASEOF
  1706. #! /bin/sh
  1707. exit 0
  1708. _ASEOF
  1709. chmod +x conf$$.file
  1710. if test -x conf$$.file >/dev/null 2>&1; then
  1711. ac_executable_p="test -x"
  1712. else
  1713. ac_executable_p="test -f"
  1714. fi
  1715. rm -f conf$$.file
  1716. # Extract the first word of "msgfmt", so it can be a program name with args.
  1717. set dummy msgfmt; ac_word=$2
  1718. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1719. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1720. if test "${ac_cv_path_MSGFMT+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. case "$MSGFMT" in
  1724. [\\/]* | ?:[\\/]*)
  1725. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  1726. ;;
  1727. *)
  1728. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1729. for ac_dir in $PATH; do
  1730. IFS="$ac_save_IFS"
  1731. test -z "$ac_dir" && ac_dir=.
  1732. for ac_exec_ext in '' $ac_executable_extensions; do
  1733. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1734. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  1735. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1736. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  1737. break 2
  1738. fi
  1739. fi
  1740. done
  1741. done
  1742. IFS="$ac_save_IFS"
  1743. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  1744. ;;
  1745. esac
  1746. fi
  1747. MSGFMT="$ac_cv_path_MSGFMT"
  1748. if test "$MSGFMT" != ":"; then
  1749. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  1750. echo "${ECHO_T}$MSGFMT" >&6
  1751. else
  1752. echo "$as_me:$LINENO: result: no" >&5
  1753. echo "${ECHO_T}no" >&6
  1754. fi
  1755. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  1756. set dummy gmsgfmt; ac_word=$2
  1757. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1758. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1759. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  1760. echo $ECHO_N "(cached) $ECHO_C" >&6
  1761. else
  1762. case $GMSGFMT in
  1763. [\\/]* | ?:[\\/]*)
  1764. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  1765. ;;
  1766. *)
  1767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1768. for as_dir in $PATH
  1769. do
  1770. IFS=$as_save_IFS
  1771. test -z "$as_dir" && as_dir=.
  1772. for ac_exec_ext in '' $ac_executable_extensions; do
  1773. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1774. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  1775. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1776. break 2
  1777. fi
  1778. done
  1779. done
  1780. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  1781. ;;
  1782. esac
  1783. fi
  1784. GMSGFMT=$ac_cv_path_GMSGFMT
  1785. if test -n "$GMSGFMT"; then
  1786. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  1787. echo "${ECHO_T}$GMSGFMT" >&6
  1788. else
  1789. echo "$as_me:$LINENO: result: no" >&5
  1790. echo "${ECHO_T}no" >&6
  1791. fi
  1792. # Prepare PATH_SEPARATOR.
  1793. # The user is always right.
  1794. if test "${PATH_SEPARATOR+set}" != set; then
  1795. echo "#! /bin/sh" >conf$$.sh
  1796. echo "exit 0" >>conf$$.sh
  1797. chmod +x conf$$.sh
  1798. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1799. PATH_SEPARATOR=';'
  1800. else
  1801. PATH_SEPARATOR=:
  1802. fi
  1803. rm -f conf$$.sh
  1804. fi
  1805. # Find out how to test for executable files. Don't use a zero-byte file,
  1806. # as systems may use methods other than mode bits to determine executability.
  1807. cat >conf$$.file <<_ASEOF
  1808. #! /bin/sh
  1809. exit 0
  1810. _ASEOF
  1811. chmod +x conf$$.file
  1812. if test -x conf$$.file >/dev/null 2>&1; then
  1813. ac_executable_p="test -x"
  1814. else
  1815. ac_executable_p="test -f"
  1816. fi
  1817. rm -f conf$$.file
  1818. # Extract the first word of "xgettext", so it can be a program name with args.
  1819. set dummy xgettext; ac_word=$2
  1820. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1821. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1822. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  1823. echo $ECHO_N "(cached) $ECHO_C" >&6
  1824. else
  1825. case "$XGETTEXT" in
  1826. [\\/]* | ?:[\\/]*)
  1827. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  1828. ;;
  1829. *)
  1830. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1831. for ac_dir in $PATH; do
  1832. IFS="$ac_save_IFS"
  1833. test -z "$ac_dir" && ac_dir=.
  1834. for ac_exec_ext in '' $ac_executable_extensions; do
  1835. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1836. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1837. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1838. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  1839. break 2
  1840. fi
  1841. fi
  1842. done
  1843. done
  1844. IFS="$ac_save_IFS"
  1845. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  1846. ;;
  1847. esac
  1848. fi
  1849. XGETTEXT="$ac_cv_path_XGETTEXT"
  1850. if test "$XGETTEXT" != ":"; then
  1851. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  1852. echo "${ECHO_T}$XGETTEXT" >&6
  1853. else
  1854. echo "$as_me:$LINENO: result: no" >&5
  1855. echo "${ECHO_T}no" >&6
  1856. fi
  1857. rm -f messages.po
  1858. # Prepare PATH_SEPARATOR.
  1859. # The user is always right.
  1860. if test "${PATH_SEPARATOR+set}" != set; then
  1861. echo "#! /bin/sh" >conf$$.sh
  1862. echo "exit 0" >>conf$$.sh
  1863. chmod +x conf$$.sh
  1864. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1865. PATH_SEPARATOR=';'
  1866. else
  1867. PATH_SEPARATOR=:
  1868. fi
  1869. rm -f conf$$.sh
  1870. fi
  1871. # Find out how to test for executable files. Don't use a zero-byte file,
  1872. # as systems may use methods other than mode bits to determine executability.
  1873. cat >conf$$.file <<_ASEOF
  1874. #! /bin/sh
  1875. exit 0
  1876. _ASEOF
  1877. chmod +x conf$$.file
  1878. if test -x conf$$.file >/dev/null 2>&1; then
  1879. ac_executable_p="test -x"
  1880. else
  1881. ac_executable_p="test -f"
  1882. fi
  1883. rm -f conf$$.file
  1884. # Extract the first word of "msgmerge", so it can be a program name with args.
  1885. set dummy msgmerge; ac_word=$2
  1886. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1887. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1888. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  1889. echo $ECHO_N "(cached) $ECHO_C" >&6
  1890. else
  1891. case "$MSGMERGE" in
  1892. [\\/]* | ?:[\\/]*)
  1893. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  1894. ;;
  1895. *)
  1896. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1897. for ac_dir in $PATH; do
  1898. IFS="$ac_save_IFS"
  1899. test -z "$ac_dir" && ac_dir=.
  1900. for ac_exec_ext in '' $ac_executable_extensions; do
  1901. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1902. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  1903. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  1904. break 2
  1905. fi
  1906. fi
  1907. done
  1908. done
  1909. IFS="$ac_save_IFS"
  1910. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  1911. ;;
  1912. esac
  1913. fi
  1914. MSGMERGE="$ac_cv_path_MSGMERGE"
  1915. if test "$MSGMERGE" != ":"; then
  1916. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  1917. echo "${ECHO_T}$MSGMERGE" >&6
  1918. else
  1919. echo "$as_me:$LINENO: result: no" >&5
  1920. echo "${ECHO_T}no" >&6
  1921. fi
  1922. if test "$GMSGFMT" != ":"; then
  1923. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  1924. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1925. : ;
  1926. else
  1927. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  1928. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  1929. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  1930. GMSGFMT=":"
  1931. fi
  1932. fi
  1933. if test "$XGETTEXT" != ":"; then
  1934. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1935. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1936. : ;
  1937. else
  1938. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  1939. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  1940. XGETTEXT=":"
  1941. fi
  1942. rm -f messages.po
  1943. fi
  1944. ac_config_commands="$ac_config_commands default-1"
  1945. DEPDIR="${am__leading_dot}deps"
  1946. ac_config_commands="$ac_config_commands depfiles"
  1947. am_make=${MAKE-make}
  1948. cat > confinc << 'END'
  1949. am__doit:
  1950. @echo done
  1951. .PHONY: am__doit
  1952. END
  1953. # If we don't find an include directive, just comment out the code.
  1954. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1955. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1956. am__include="#"
  1957. am__quote=
  1958. _am_result=none
  1959. # First try GNU make style include.
  1960. echo "include confinc" > confmf
  1961. # We grep out `Entering directory' and `Leaving directory'
  1962. # messages which can occur if `w' ends up in MAKEFLAGS.
  1963. # In particular we don't look at `^make:' because GNU make might
  1964. # be invoked under some other name (usually "gmake"), in which
  1965. # case it prints its new name instead of `make'.
  1966. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1967. am__include=include
  1968. am__quote=
  1969. _am_result=GNU
  1970. fi
  1971. # Now try BSD make style include.
  1972. if test "$am__include" = "#"; then
  1973. echo '.include "confinc"' > confmf
  1974. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1975. am__include=.include
  1976. am__quote="\""
  1977. _am_result=BSD
  1978. fi
  1979. fi
  1980. echo "$as_me:$LINENO: result: $_am_result" >&5
  1981. echo "${ECHO_T}$_am_result" >&6
  1982. rm -f confinc confmf
  1983. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  1984. if test "${enable_dependency_tracking+set}" = set; then
  1985. enableval="$enable_dependency_tracking"
  1986. fi;
  1987. if test "x$enable_dependency_tracking" != xno; then
  1988. am_depcomp="$ac_aux_dir/depcomp"
  1989. AMDEPBACKSLASH='\'
  1990. fi
  1991. if test "x$enable_dependency_tracking" != xno; then
  1992. AMDEP_TRUE=
  1993. AMDEP_FALSE='#'
  1994. else
  1995. AMDEP_TRUE='#'
  1996. AMDEP_FALSE=
  1997. fi
  1998. ac_ext=c
  1999. ac_cpp='$CPP $CPPFLAGS'
  2000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2003. if test -n "$ac_tool_prefix"; then
  2004. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2005. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2006. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2007. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2008. if test "${ac_cv_prog_CC+set}" = set; then
  2009. echo $ECHO_N "(cached) $ECHO_C" >&6
  2010. else
  2011. if test -n "$CC"; then
  2012. ac_cv_prog_CC="$CC" # Let the user override the test.
  2013. else
  2014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2015. for as_dir in $PATH
  2016. do
  2017. IFS=$as_save_IFS
  2018. test -z "$as_dir" && as_dir=.
  2019. for ac_exec_ext in '' $ac_executable_extensions; do
  2020. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2021. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2022. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2023. break 2
  2024. fi
  2025. done
  2026. done
  2027. fi
  2028. fi
  2029. CC=$ac_cv_prog_CC
  2030. if test -n "$CC"; then
  2031. echo "$as_me:$LINENO: result: $CC" >&5
  2032. echo "${ECHO_T}$CC" >&6
  2033. else
  2034. echo "$as_me:$LINENO: result: no" >&5
  2035. echo "${ECHO_T}no" >&6
  2036. fi
  2037. fi
  2038. if test -z "$ac_cv_prog_CC"; then
  2039. ac_ct_CC=$CC
  2040. # Extract the first word of "gcc", so it can be a program name with args.
  2041. set dummy gcc; ac_word=$2
  2042. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2043. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2044. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2045. echo $ECHO_N "(cached) $ECHO_C" >&6
  2046. else
  2047. if test -n "$ac_ct_CC"; then
  2048. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2049. else
  2050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2051. for as_dir in $PATH
  2052. do
  2053. IFS=$as_save_IFS
  2054. test -z "$as_dir" && as_dir=.
  2055. for ac_exec_ext in '' $ac_executable_extensions; do
  2056. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2057. ac_cv_prog_ac_ct_CC="gcc"
  2058. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2059. break 2
  2060. fi
  2061. done
  2062. done
  2063. fi
  2064. fi
  2065. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2066. if test -n "$ac_ct_CC"; then
  2067. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2068. echo "${ECHO_T}$ac_ct_CC" >&6
  2069. else
  2070. echo "$as_me:$LINENO: result: no" >&5
  2071. echo "${ECHO_T}no" >&6
  2072. fi
  2073. CC=$ac_ct_CC
  2074. else
  2075. CC="$ac_cv_prog_CC"
  2076. fi
  2077. if test -z "$CC"; then
  2078. if test -n "$ac_tool_prefix"; then
  2079. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2080. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2081. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2082. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2083. if test "${ac_cv_prog_CC+set}" = set; then
  2084. echo $ECHO_N "(cached) $ECHO_C" >&6
  2085. else
  2086. if test -n "$CC"; then
  2087. ac_cv_prog_CC="$CC" # Let the user override the test.
  2088. else
  2089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2090. for as_dir in $PATH
  2091. do
  2092. IFS=$as_save_IFS
  2093. test -z "$as_dir" && as_dir=.
  2094. for ac_exec_ext in '' $ac_executable_extensions; do
  2095. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2096. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2097. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2098. break 2
  2099. fi
  2100. done
  2101. done
  2102. fi
  2103. fi
  2104. CC=$ac_cv_prog_CC
  2105. if test -n "$CC"; then
  2106. echo "$as_me:$LINENO: result: $CC" >&5
  2107. echo "${ECHO_T}$CC" >&6
  2108. else
  2109. echo "$as_me:$LINENO: result: no" >&5
  2110. echo "${ECHO_T}no" >&6
  2111. fi
  2112. fi
  2113. if test -z "$ac_cv_prog_CC"; then
  2114. ac_ct_CC=$CC
  2115. # Extract the first word of "cc", so it can be a program name with args.
  2116. set dummy cc; ac_word=$2
  2117. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2118. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2119. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2120. echo $ECHO_N "(cached) $ECHO_C" >&6
  2121. else
  2122. if test -n "$ac_ct_CC"; then
  2123. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2124. else
  2125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2126. for as_dir in $PATH
  2127. do
  2128. IFS=$as_save_IFS
  2129. test -z "$as_dir" && as_dir=.
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2132. ac_cv_prog_ac_ct_CC="cc"
  2133. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2134. break 2
  2135. fi
  2136. done
  2137. done
  2138. fi
  2139. fi
  2140. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2141. if test -n "$ac_ct_CC"; then
  2142. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2143. echo "${ECHO_T}$ac_ct_CC" >&6
  2144. else
  2145. echo "$as_me:$LINENO: result: no" >&5
  2146. echo "${ECHO_T}no" >&6
  2147. fi
  2148. CC=$ac_ct_CC
  2149. else
  2150. CC="$ac_cv_prog_CC"
  2151. fi
  2152. fi
  2153. if test -z "$CC"; then
  2154. # Extract the first word of "cc", so it can be a program name with args.
  2155. set dummy cc; ac_word=$2
  2156. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2157. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2158. if test "${ac_cv_prog_CC+set}" = set; then
  2159. echo $ECHO_N "(cached) $ECHO_C" >&6
  2160. else
  2161. if test -n "$CC"; then
  2162. ac_cv_prog_CC="$CC" # Let the user override the test.
  2163. else
  2164. ac_prog_rejected=no
  2165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2166. for as_dir in $PATH
  2167. do
  2168. IFS=$as_save_IFS
  2169. test -z "$as_dir" && as_dir=.
  2170. for ac_exec_ext in '' $ac_executable_extensions; do
  2171. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2172. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2173. ac_prog_rejected=yes
  2174. continue
  2175. fi
  2176. ac_cv_prog_CC="cc"
  2177. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2178. break 2
  2179. fi
  2180. done
  2181. done
  2182. if test $ac_prog_rejected = yes; then
  2183. # We found a bogon in the path, so make sure we never use it.
  2184. set dummy $ac_cv_prog_CC
  2185. shift
  2186. if test $# != 0; then
  2187. # We chose a different compiler from the bogus one.
  2188. # However, it has the same basename, so the bogon will be chosen
  2189. # first if we set CC to just the basename; use the full file name.
  2190. shift
  2191. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2192. fi
  2193. fi
  2194. fi
  2195. fi
  2196. CC=$ac_cv_prog_CC
  2197. if test -n "$CC"; then
  2198. echo "$as_me:$LINENO: result: $CC" >&5
  2199. echo "${ECHO_T}$CC" >&6
  2200. else
  2201. echo "$as_me:$LINENO: result: no" >&5
  2202. echo "${ECHO_T}no" >&6
  2203. fi
  2204. fi
  2205. if test -z "$CC"; then
  2206. if test -n "$ac_tool_prefix"; then
  2207. for ac_prog in cl
  2208. do
  2209. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2210. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2211. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2212. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2213. if test "${ac_cv_prog_CC+set}" = set; then
  2214. echo $ECHO_N "(cached) $ECHO_C" >&6
  2215. else
  2216. if test -n "$CC"; then
  2217. ac_cv_prog_CC="$CC" # Let the user override the test.
  2218. else
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. test -z "$as_dir" && as_dir=.
  2224. for ac_exec_ext in '' $ac_executable_extensions; do
  2225. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2226. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2227. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2228. break 2
  2229. fi
  2230. done
  2231. done
  2232. fi
  2233. fi
  2234. CC=$ac_cv_prog_CC
  2235. if test -n "$CC"; then
  2236. echo "$as_me:$LINENO: result: $CC" >&5
  2237. echo "${ECHO_T}$CC" >&6
  2238. else
  2239. echo "$as_me:$LINENO: result: no" >&5
  2240. echo "${ECHO_T}no" >&6
  2241. fi
  2242. test -n "$CC" && break
  2243. done
  2244. fi
  2245. if test -z "$CC"; then
  2246. ac_ct_CC=$CC
  2247. for ac_prog in cl
  2248. do
  2249. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2250. set dummy $ac_prog; ac_word=$2
  2251. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2253. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. if test -n "$ac_ct_CC"; then
  2257. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2266. ac_cv_prog_ac_ct_CC="$ac_prog"
  2267. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. fi
  2273. fi
  2274. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2275. if test -n "$ac_ct_CC"; then
  2276. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2277. echo "${ECHO_T}$ac_ct_CC" >&6
  2278. else
  2279. echo "$as_me:$LINENO: result: no" >&5
  2280. echo "${ECHO_T}no" >&6
  2281. fi
  2282. test -n "$ac_ct_CC" && break
  2283. done
  2284. CC=$ac_ct_CC
  2285. fi
  2286. fi
  2287. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2288. See \`config.log' for more details." >&5
  2289. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2290. See \`config.log' for more details." >&2;}
  2291. { (exit 1); exit 1; }; }
  2292. # Provide some information about the compiler.
  2293. echo "$as_me:$LINENO:" \
  2294. "checking for C compiler version" >&5
  2295. ac_compiler=`set X $ac_compile; echo $2`
  2296. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2297. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2298. ac_status=$?
  2299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2300. (exit $ac_status); }
  2301. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2302. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2303. ac_status=$?
  2304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2305. (exit $ac_status); }
  2306. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2307. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2308. ac_status=$?
  2309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2310. (exit $ac_status); }
  2311. cat >conftest.$ac_ext <<_ACEOF
  2312. /* confdefs.h. */
  2313. _ACEOF
  2314. cat confdefs.h >>conftest.$ac_ext
  2315. cat >>conftest.$ac_ext <<_ACEOF
  2316. /* end confdefs.h. */
  2317. int
  2318. main ()
  2319. {
  2320. ;
  2321. return 0;
  2322. }
  2323. _ACEOF
  2324. ac_clean_files_save=$ac_clean_files
  2325. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2326. # Try to create an executable without -o first, disregard a.out.
  2327. # It will help us diagnose broken compilers, and finding out an intuition
  2328. # of exeext.
  2329. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2330. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2331. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2332. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2333. (eval $ac_link_default) 2>&5
  2334. ac_status=$?
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); }; then
  2337. # Find the output, starting from the most likely. This scheme is
  2338. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2339. # resort.
  2340. # Be careful to initialize this variable, since it used to be cached.
  2341. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2342. ac_cv_exeext=
  2343. # b.out is created by i960 compilers.
  2344. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2345. do
  2346. test -f "$ac_file" || continue
  2347. case $ac_file in
  2348. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2349. ;;
  2350. conftest.$ac_ext )
  2351. # This is the source file.
  2352. ;;
  2353. [ab].out )
  2354. # We found the default executable, but exeext='' is most
  2355. # certainly right.
  2356. break;;
  2357. *.* )
  2358. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2359. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2360. # but it would be cool to find out if it's true. Does anybody
  2361. # maintain Libtool? --akim.
  2362. export ac_cv_exeext
  2363. break;;
  2364. * )
  2365. break;;
  2366. esac
  2367. done
  2368. else
  2369. echo "$as_me: failed program was:" >&5
  2370. sed 's/^/| /' conftest.$ac_ext >&5
  2371. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2372. See \`config.log' for more details." >&5
  2373. echo "$as_me: error: C compiler cannot create executables
  2374. See \`config.log' for more details." >&2;}
  2375. { (exit 77); exit 77; }; }
  2376. fi
  2377. ac_exeext=$ac_cv_exeext
  2378. echo "$as_me:$LINENO: result: $ac_file" >&5
  2379. echo "${ECHO_T}$ac_file" >&6
  2380. # Check the compiler produces executables we can run. If not, either
  2381. # the compiler is broken, or we cross compile.
  2382. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2383. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2384. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2385. # If not cross compiling, check that we can run a simple program.
  2386. if test "$cross_compiling" != yes; then
  2387. if { ac_try='./$ac_file'
  2388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2389. (eval $ac_try) 2>&5
  2390. ac_status=$?
  2391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2392. (exit $ac_status); }; }; then
  2393. cross_compiling=no
  2394. else
  2395. if test "$cross_compiling" = maybe; then
  2396. cross_compiling=yes
  2397. else
  2398. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2399. If you meant to cross compile, use \`--host'.
  2400. See \`config.log' for more details." >&5
  2401. echo "$as_me: error: cannot run C compiled programs.
  2402. If you meant to cross compile, use \`--host'.
  2403. See \`config.log' for more details." >&2;}
  2404. { (exit 1); exit 1; }; }
  2405. fi
  2406. fi
  2407. fi
  2408. echo "$as_me:$LINENO: result: yes" >&5
  2409. echo "${ECHO_T}yes" >&6
  2410. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2411. ac_clean_files=$ac_clean_files_save
  2412. # Check the compiler produces executables we can run. If not, either
  2413. # the compiler is broken, or we cross compile.
  2414. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2415. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2416. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2417. echo "${ECHO_T}$cross_compiling" >&6
  2418. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2419. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2420. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2421. (eval $ac_link) 2>&5
  2422. ac_status=$?
  2423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2424. (exit $ac_status); }; then
  2425. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2426. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2427. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2428. # `rm'.
  2429. for ac_file in conftest.exe conftest conftest.*; do
  2430. test -f "$ac_file" || continue
  2431. case $ac_file in
  2432. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2433. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2434. export ac_cv_exeext
  2435. break;;
  2436. * ) break;;
  2437. esac
  2438. done
  2439. else
  2440. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2441. See \`config.log' for more details." >&5
  2442. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2443. See \`config.log' for more details." >&2;}
  2444. { (exit 1); exit 1; }; }
  2445. fi
  2446. rm -f conftest$ac_cv_exeext
  2447. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2448. echo "${ECHO_T}$ac_cv_exeext" >&6
  2449. rm -f conftest.$ac_ext
  2450. EXEEXT=$ac_cv_exeext
  2451. ac_exeext=$EXEEXT
  2452. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2453. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2454. if test "${ac_cv_objext+set}" = set; then
  2455. echo $ECHO_N "(cached) $ECHO_C" >&6
  2456. else
  2457. cat >conftest.$ac_ext <<_ACEOF
  2458. /* confdefs.h. */
  2459. _ACEOF
  2460. cat confdefs.h >>conftest.$ac_ext
  2461. cat >>conftest.$ac_ext <<_ACEOF
  2462. /* end confdefs.h. */
  2463. int
  2464. main ()
  2465. {
  2466. ;
  2467. return 0;
  2468. }
  2469. _ACEOF
  2470. rm -f conftest.o conftest.obj
  2471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2472. (eval $ac_compile) 2>&5
  2473. ac_status=$?
  2474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2475. (exit $ac_status); }; then
  2476. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2477. case $ac_file in
  2478. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2479. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2480. break;;
  2481. esac
  2482. done
  2483. else
  2484. echo "$as_me: failed program was:" >&5
  2485. sed 's/^/| /' conftest.$ac_ext >&5
  2486. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2487. See \`config.log' for more details." >&5
  2488. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2489. See \`config.log' for more details." >&2;}
  2490. { (exit 1); exit 1; }; }
  2491. fi
  2492. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2493. fi
  2494. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2495. echo "${ECHO_T}$ac_cv_objext" >&6
  2496. OBJEXT=$ac_cv_objext
  2497. ac_objext=$OBJEXT
  2498. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2499. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2500. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2501. echo $ECHO_N "(cached) $ECHO_C" >&6
  2502. else
  2503. cat >conftest.$ac_ext <<_ACEOF
  2504. /* confdefs.h. */
  2505. _ACEOF
  2506. cat confdefs.h >>conftest.$ac_ext
  2507. cat >>conftest.$ac_ext <<_ACEOF
  2508. /* end confdefs.h. */
  2509. int
  2510. main ()
  2511. {
  2512. #ifndef __GNUC__
  2513. choke me
  2514. #endif
  2515. ;
  2516. return 0;
  2517. }
  2518. _ACEOF
  2519. rm -f conftest.$ac_objext
  2520. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2521. (eval $ac_compile) 2>conftest.er1
  2522. ac_status=$?
  2523. grep -v '^ *+' conftest.er1 >conftest.err
  2524. rm -f conftest.er1
  2525. cat conftest.err >&5
  2526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527. (exit $ac_status); } &&
  2528. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2530. (eval $ac_try) 2>&5
  2531. ac_status=$?
  2532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2533. (exit $ac_status); }; } &&
  2534. { ac_try='test -s conftest.$ac_objext'
  2535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2536. (eval $ac_try) 2>&5
  2537. ac_status=$?
  2538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2539. (exit $ac_status); }; }; then
  2540. ac_compiler_gnu=yes
  2541. else
  2542. echo "$as_me: failed program was:" >&5
  2543. sed 's/^/| /' conftest.$ac_ext >&5
  2544. ac_compiler_gnu=no
  2545. fi
  2546. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2547. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2548. fi
  2549. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2550. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2551. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2552. ac_test_CFLAGS=${CFLAGS+set}
  2553. ac_save_CFLAGS=$CFLAGS
  2554. CFLAGS="-g"
  2555. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2556. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2557. if test "${ac_cv_prog_cc_g+set}" = set; then
  2558. echo $ECHO_N "(cached) $ECHO_C" >&6
  2559. else
  2560. cat >conftest.$ac_ext <<_ACEOF
  2561. /* confdefs.h. */
  2562. _ACEOF
  2563. cat confdefs.h >>conftest.$ac_ext
  2564. cat >>conftest.$ac_ext <<_ACEOF
  2565. /* end confdefs.h. */
  2566. int
  2567. main ()
  2568. {
  2569. ;
  2570. return 0;
  2571. }
  2572. _ACEOF
  2573. rm -f conftest.$ac_objext
  2574. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2575. (eval $ac_compile) 2>conftest.er1
  2576. ac_status=$?
  2577. grep -v '^ *+' conftest.er1 >conftest.err
  2578. rm -f conftest.er1
  2579. cat conftest.err >&5
  2580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2581. (exit $ac_status); } &&
  2582. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2584. (eval $ac_try) 2>&5
  2585. ac_status=$?
  2586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2587. (exit $ac_status); }; } &&
  2588. { ac_try='test -s conftest.$ac_objext'
  2589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2590. (eval $ac_try) 2>&5
  2591. ac_status=$?
  2592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2593. (exit $ac_status); }; }; then
  2594. ac_cv_prog_cc_g=yes
  2595. else
  2596. echo "$as_me: failed program was:" >&5
  2597. sed 's/^/| /' conftest.$ac_ext >&5
  2598. ac_cv_prog_cc_g=no
  2599. fi
  2600. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2601. fi
  2602. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2603. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2604. if test "$ac_test_CFLAGS" = set; then
  2605. CFLAGS=$ac_save_CFLAGS
  2606. elif test $ac_cv_prog_cc_g = yes; then
  2607. if test "$GCC" = yes; then
  2608. CFLAGS="-g -O2"
  2609. else
  2610. CFLAGS="-g"
  2611. fi
  2612. else
  2613. if test "$GCC" = yes; then
  2614. CFLAGS="-O2"
  2615. else
  2616. CFLAGS=
  2617. fi
  2618. fi
  2619. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2620. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2621. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2622. echo $ECHO_N "(cached) $ECHO_C" >&6
  2623. else
  2624. ac_cv_prog_cc_stdc=no
  2625. ac_save_CC=$CC
  2626. cat >conftest.$ac_ext <<_ACEOF
  2627. /* confdefs.h. */
  2628. _ACEOF
  2629. cat confdefs.h >>conftest.$ac_ext
  2630. cat >>conftest.$ac_ext <<_ACEOF
  2631. /* end confdefs.h. */
  2632. #include <stdarg.h>
  2633. #include <stdio.h>
  2634. #include <sys/types.h>
  2635. #include <sys/stat.h>
  2636. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2637. struct buf { int x; };
  2638. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2639. static char *e (p, i)
  2640. char **p;
  2641. int i;
  2642. {
  2643. return p[i];
  2644. }
  2645. static char *f (char * (*g) (char **, int), char **p, ...)
  2646. {
  2647. char *s;
  2648. va_list v;
  2649. va_start (v,p);
  2650. s = g (p, va_arg (v,int));
  2651. va_end (v);
  2652. return s;
  2653. }
  2654. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2655. function prototypes and stuff, but not '\xHH' hex character constants.
  2656. These don't provoke an error unfortunately, instead are silently treated
  2657. as 'x'. The following induces an error, until -std1 is added to get
  2658. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2659. array size at least. It's necessary to write '\x00'==0 to get something
  2660. that's true only with -std1. */
  2661. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2662. int test (int i, double x);
  2663. struct s1 {int (*f) (int a);};
  2664. struct s2 {int (*f) (double a);};
  2665. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2666. int argc;
  2667. char **argv;
  2668. int
  2669. main ()
  2670. {
  2671. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2672. ;
  2673. return 0;
  2674. }
  2675. _ACEOF
  2676. # Don't try gcc -ansi; that turns off useful extensions and
  2677. # breaks some systems' header files.
  2678. # AIX -qlanglvl=ansi
  2679. # Ultrix and OSF/1 -std1
  2680. # HP-UX 10.20 and later -Ae
  2681. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2682. # SVR4 -Xc -D__EXTENSIONS__
  2683. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2684. do
  2685. CC="$ac_save_CC $ac_arg"
  2686. rm -f conftest.$ac_objext
  2687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2688. (eval $ac_compile) 2>conftest.er1
  2689. ac_status=$?
  2690. grep -v '^ *+' conftest.er1 >conftest.err
  2691. rm -f conftest.er1
  2692. cat conftest.err >&5
  2693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2694. (exit $ac_status); } &&
  2695. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2697. (eval $ac_try) 2>&5
  2698. ac_status=$?
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }; } &&
  2701. { ac_try='test -s conftest.$ac_objext'
  2702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2703. (eval $ac_try) 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }; }; then
  2707. ac_cv_prog_cc_stdc=$ac_arg
  2708. break
  2709. else
  2710. echo "$as_me: failed program was:" >&5
  2711. sed 's/^/| /' conftest.$ac_ext >&5
  2712. fi
  2713. rm -f conftest.err conftest.$ac_objext
  2714. done
  2715. rm -f conftest.$ac_ext conftest.$ac_objext
  2716. CC=$ac_save_CC
  2717. fi
  2718. case "x$ac_cv_prog_cc_stdc" in
  2719. x|xno)
  2720. echo "$as_me:$LINENO: result: none needed" >&5
  2721. echo "${ECHO_T}none needed" >&6 ;;
  2722. *)
  2723. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2724. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2725. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2726. esac
  2727. # Some people use a C++ compiler to compile C. Since we use `exit',
  2728. # in C++ we need to declare it. In case someone uses the same compiler
  2729. # for both compiling C and C++ we need to have the C++ compiler decide
  2730. # the declaration of exit, since it's the most demanding environment.
  2731. cat >conftest.$ac_ext <<_ACEOF
  2732. #ifndef __cplusplus
  2733. choke me
  2734. #endif
  2735. _ACEOF
  2736. rm -f conftest.$ac_objext
  2737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2738. (eval $ac_compile) 2>conftest.er1
  2739. ac_status=$?
  2740. grep -v '^ *+' conftest.er1 >conftest.err
  2741. rm -f conftest.er1
  2742. cat conftest.err >&5
  2743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2744. (exit $ac_status); } &&
  2745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2747. (eval $ac_try) 2>&5
  2748. ac_status=$?
  2749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2750. (exit $ac_status); }; } &&
  2751. { ac_try='test -s conftest.$ac_objext'
  2752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2753. (eval $ac_try) 2>&5
  2754. ac_status=$?
  2755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2756. (exit $ac_status); }; }; then
  2757. for ac_declaration in \
  2758. '' \
  2759. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2760. 'extern "C" void std::exit (int); using std::exit;' \
  2761. 'extern "C" void exit (int) throw ();' \
  2762. 'extern "C" void exit (int);' \
  2763. 'void exit (int);'
  2764. do
  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. $ac_declaration
  2772. #include <stdlib.h>
  2773. int
  2774. main ()
  2775. {
  2776. exit (42);
  2777. ;
  2778. return 0;
  2779. }
  2780. _ACEOF
  2781. rm -f conftest.$ac_objext
  2782. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2783. (eval $ac_compile) 2>conftest.er1
  2784. ac_status=$?
  2785. grep -v '^ *+' conftest.er1 >conftest.err
  2786. rm -f conftest.er1
  2787. cat conftest.err >&5
  2788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2789. (exit $ac_status); } &&
  2790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2792. (eval $ac_try) 2>&5
  2793. ac_status=$?
  2794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. (exit $ac_status); }; } &&
  2796. { ac_try='test -s conftest.$ac_objext'
  2797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2798. (eval $ac_try) 2>&5
  2799. ac_status=$?
  2800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801. (exit $ac_status); }; }; then
  2802. :
  2803. else
  2804. echo "$as_me: failed program was:" >&5
  2805. sed 's/^/| /' conftest.$ac_ext >&5
  2806. continue
  2807. fi
  2808. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2809. cat >conftest.$ac_ext <<_ACEOF
  2810. /* confdefs.h. */
  2811. _ACEOF
  2812. cat confdefs.h >>conftest.$ac_ext
  2813. cat >>conftest.$ac_ext <<_ACEOF
  2814. /* end confdefs.h. */
  2815. $ac_declaration
  2816. int
  2817. main ()
  2818. {
  2819. exit (42);
  2820. ;
  2821. return 0;
  2822. }
  2823. _ACEOF
  2824. rm -f conftest.$ac_objext
  2825. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2826. (eval $ac_compile) 2>conftest.er1
  2827. ac_status=$?
  2828. grep -v '^ *+' conftest.er1 >conftest.err
  2829. rm -f conftest.er1
  2830. cat conftest.err >&5
  2831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2832. (exit $ac_status); } &&
  2833. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2835. (eval $ac_try) 2>&5
  2836. ac_status=$?
  2837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2838. (exit $ac_status); }; } &&
  2839. { ac_try='test -s conftest.$ac_objext'
  2840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2841. (eval $ac_try) 2>&5
  2842. ac_status=$?
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); }; }; then
  2845. break
  2846. else
  2847. echo "$as_me: failed program was:" >&5
  2848. sed 's/^/| /' conftest.$ac_ext >&5
  2849. fi
  2850. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2851. done
  2852. rm -f conftest*
  2853. if test -n "$ac_declaration"; then
  2854. echo '#ifdef __cplusplus' >>confdefs.h
  2855. echo $ac_declaration >>confdefs.h
  2856. echo '#endif' >>confdefs.h
  2857. fi
  2858. else
  2859. echo "$as_me: failed program was:" >&5
  2860. sed 's/^/| /' conftest.$ac_ext >&5
  2861. fi
  2862. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2863. ac_ext=c
  2864. ac_cpp='$CPP $CPPFLAGS'
  2865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2868. depcc="$CC" am_compiler_list=
  2869. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2870. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2871. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2872. echo $ECHO_N "(cached) $ECHO_C" >&6
  2873. else
  2874. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2875. # We make a subdir and do the tests there. Otherwise we can end up
  2876. # making bogus files that we don't know about and never remove. For
  2877. # instance it was reported that on HP-UX the gcc test will end up
  2878. # making a dummy file named `D' -- because `-MD' means `put the output
  2879. # in D'.
  2880. mkdir conftest.dir
  2881. # Copy depcomp to subdir because otherwise we won't find it if we're
  2882. # using a relative directory.
  2883. cp "$am_depcomp" conftest.dir
  2884. cd conftest.dir
  2885. # We will build objects and dependencies in a subdirectory because
  2886. # it helps to detect inapplicable dependency modes. For instance
  2887. # both Tru64's cc and ICC support -MD to output dependencies as a
  2888. # side effect of compilation, but ICC will put the dependencies in
  2889. # the current directory while Tru64 will put them in the object
  2890. # directory.
  2891. mkdir sub
  2892. am_cv_CC_dependencies_compiler_type=none
  2893. if test "$am_compiler_list" = ""; then
  2894. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2895. fi
  2896. for depmode in $am_compiler_list; do
  2897. # Setup a source with many dependencies, because some compilers
  2898. # like to wrap large dependency lists on column 80 (with \), and
  2899. # we should not choose a depcomp mode which is confused by this.
  2900. #
  2901. # We need to recreate these files for each test, as the compiler may
  2902. # overwrite some of them when testing with obscure command lines.
  2903. # This happens at least with the AIX C compiler.
  2904. : > sub/conftest.c
  2905. for i in 1 2 3 4 5 6; do
  2906. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2907. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2908. # Solaris 8's {/usr,}/bin/sh.
  2909. touch sub/conftst$i.h
  2910. done
  2911. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2912. case $depmode in
  2913. nosideeffect)
  2914. # after this tag, mechanisms are not by side-effect, so they'll
  2915. # only be used when explicitly requested
  2916. if test "x$enable_dependency_tracking" = xyes; then
  2917. continue
  2918. else
  2919. break
  2920. fi
  2921. ;;
  2922. none) break ;;
  2923. esac
  2924. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2925. # mode. It turns out that the SunPro C++ compiler does not properly
  2926. # handle `-M -o', and we need to detect this.
  2927. if depmode=$depmode \
  2928. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2929. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2930. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2931. >/dev/null 2>conftest.err &&
  2932. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2933. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2934. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2935. # icc doesn't choke on unknown options, it will just issue warnings
  2936. # or remarks (even with -Werror). So we grep stderr for any message
  2937. # that says an option was ignored or not supported.
  2938. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2939. # icc: Command line warning: ignoring option '-M'; no argument required
  2940. # The diagnosis changed in icc 8.0:
  2941. # icc: Command line remark: option '-MP' not supported
  2942. if (grep 'ignoring option' conftest.err ||
  2943. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2944. am_cv_CC_dependencies_compiler_type=$depmode
  2945. break
  2946. fi
  2947. fi
  2948. done
  2949. cd ..
  2950. rm -rf conftest.dir
  2951. else
  2952. am_cv_CC_dependencies_compiler_type=none
  2953. fi
  2954. fi
  2955. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2956. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2957. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2958. if
  2959. test "x$enable_dependency_tracking" != xno \
  2960. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2961. am__fastdepCC_TRUE=
  2962. am__fastdepCC_FALSE='#'
  2963. else
  2964. am__fastdepCC_TRUE='#'
  2965. am__fastdepCC_FALSE=
  2966. fi
  2967. if test -n "$ac_tool_prefix"; then
  2968. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2969. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2970. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2971. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2972. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2973. echo $ECHO_N "(cached) $ECHO_C" >&6
  2974. else
  2975. if test -n "$RANLIB"; then
  2976. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2977. else
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. test -z "$as_dir" && as_dir=.
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2985. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2986. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. fi
  2992. fi
  2993. RANLIB=$ac_cv_prog_RANLIB
  2994. if test -n "$RANLIB"; then
  2995. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2996. echo "${ECHO_T}$RANLIB" >&6
  2997. else
  2998. echo "$as_me:$LINENO: result: no" >&5
  2999. echo "${ECHO_T}no" >&6
  3000. fi
  3001. fi
  3002. if test -z "$ac_cv_prog_RANLIB"; then
  3003. ac_ct_RANLIB=$RANLIB
  3004. # Extract the first word of "ranlib", so it can be a program name with args.
  3005. set dummy ranlib; ac_word=$2
  3006. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3007. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3008. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3009. echo $ECHO_N "(cached) $ECHO_C" >&6
  3010. else
  3011. if test -n "$ac_ct_RANLIB"; then
  3012. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3013. else
  3014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3015. for as_dir in $PATH
  3016. do
  3017. IFS=$as_save_IFS
  3018. test -z "$as_dir" && as_dir=.
  3019. for ac_exec_ext in '' $ac_executable_extensions; do
  3020. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3021. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3022. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3023. break 2
  3024. fi
  3025. done
  3026. done
  3027. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3028. fi
  3029. fi
  3030. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3031. if test -n "$ac_ct_RANLIB"; then
  3032. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3033. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3034. else
  3035. echo "$as_me:$LINENO: result: no" >&5
  3036. echo "${ECHO_T}no" >&6
  3037. fi
  3038. RANLIB=$ac_ct_RANLIB
  3039. else
  3040. RANLIB="$ac_cv_prog_RANLIB"
  3041. fi
  3042. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3043. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  3044. if test "${ac_cv_search_strerror+set}" = set; then
  3045. echo $ECHO_N "(cached) $ECHO_C" >&6
  3046. else
  3047. ac_func_search_save_LIBS=$LIBS
  3048. ac_cv_search_strerror=no
  3049. cat >conftest.$ac_ext <<_ACEOF
  3050. /* confdefs.h. */
  3051. _ACEOF
  3052. cat confdefs.h >>conftest.$ac_ext
  3053. cat >>conftest.$ac_ext <<_ACEOF
  3054. /* end confdefs.h. */
  3055. /* Override any gcc2 internal prototype to avoid an error. */
  3056. #ifdef __cplusplus
  3057. extern "C"
  3058. #endif
  3059. /* We use char because int might match the return type of a gcc2
  3060. builtin and then its argument prototype would still apply. */
  3061. char strerror ();
  3062. int
  3063. main ()
  3064. {
  3065. strerror ();
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. rm -f conftest.$ac_objext conftest$ac_exeext
  3071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3072. (eval $ac_link) 2>conftest.er1
  3073. ac_status=$?
  3074. grep -v '^ *+' conftest.er1 >conftest.err
  3075. rm -f conftest.er1
  3076. cat conftest.err >&5
  3077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); } &&
  3079. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3081. (eval $ac_try) 2>&5
  3082. ac_status=$?
  3083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084. (exit $ac_status); }; } &&
  3085. { ac_try='test -s conftest$ac_exeext'
  3086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3087. (eval $ac_try) 2>&5
  3088. ac_status=$?
  3089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3090. (exit $ac_status); }; }; then
  3091. ac_cv_search_strerror="none required"
  3092. else
  3093. echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. fi
  3096. rm -f conftest.err conftest.$ac_objext \
  3097. conftest$ac_exeext conftest.$ac_ext
  3098. if test "$ac_cv_search_strerror" = no; then
  3099. for ac_lib in cposix; do
  3100. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3101. cat >conftest.$ac_ext <<_ACEOF
  3102. /* confdefs.h. */
  3103. _ACEOF
  3104. cat confdefs.h >>conftest.$ac_ext
  3105. cat >>conftest.$ac_ext <<_ACEOF
  3106. /* end confdefs.h. */
  3107. /* Override any gcc2 internal prototype to avoid an error. */
  3108. #ifdef __cplusplus
  3109. extern "C"
  3110. #endif
  3111. /* We use char because int might match the return type of a gcc2
  3112. builtin and then its argument prototype would still apply. */
  3113. char strerror ();
  3114. int
  3115. main ()
  3116. {
  3117. strerror ();
  3118. ;
  3119. return 0;
  3120. }
  3121. _ACEOF
  3122. rm -f conftest.$ac_objext conftest$ac_exeext
  3123. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3124. (eval $ac_link) 2>conftest.er1
  3125. ac_status=$?
  3126. grep -v '^ *+' conftest.er1 >conftest.err
  3127. rm -f conftest.er1
  3128. cat conftest.err >&5
  3129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3130. (exit $ac_status); } &&
  3131. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3133. (eval $ac_try) 2>&5
  3134. ac_status=$?
  3135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3136. (exit $ac_status); }; } &&
  3137. { ac_try='test -s conftest$ac_exeext'
  3138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3139. (eval $ac_try) 2>&5
  3140. ac_status=$?
  3141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3142. (exit $ac_status); }; }; then
  3143. ac_cv_search_strerror="-l$ac_lib"
  3144. break
  3145. else
  3146. echo "$as_me: failed program was:" >&5
  3147. sed 's/^/| /' conftest.$ac_ext >&5
  3148. fi
  3149. rm -f conftest.err conftest.$ac_objext \
  3150. conftest$ac_exeext conftest.$ac_ext
  3151. done
  3152. fi
  3153. LIBS=$ac_func_search_save_LIBS
  3154. fi
  3155. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3156. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  3157. if test "$ac_cv_search_strerror" != no; then
  3158. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  3159. fi
  3160. ac_ext=c
  3161. ac_cpp='$CPP $CPPFLAGS'
  3162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3165. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3166. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3167. # On Suns, sometimes $CPP names a directory.
  3168. if test -n "$CPP" && test -d "$CPP"; then
  3169. CPP=
  3170. fi
  3171. if test -z "$CPP"; then
  3172. if test "${ac_cv_prog_CPP+set}" = set; then
  3173. echo $ECHO_N "(cached) $ECHO_C" >&6
  3174. else
  3175. # Double quotes because CPP needs to be expanded
  3176. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3177. do
  3178. ac_preproc_ok=false
  3179. for ac_c_preproc_warn_flag in '' yes
  3180. do
  3181. # Use a header file that comes with gcc, so configuring glibc
  3182. # with a fresh cross-compiler works.
  3183. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3184. # <limits.h> exists even on freestanding compilers.
  3185. # On the NeXT, cc -E runs the code through the compiler's parser,
  3186. # not just through cpp. "Syntax error" is here to catch this case.
  3187. cat >conftest.$ac_ext <<_ACEOF
  3188. /* confdefs.h. */
  3189. _ACEOF
  3190. cat confdefs.h >>conftest.$ac_ext
  3191. cat >>conftest.$ac_ext <<_ACEOF
  3192. /* end confdefs.h. */
  3193. #ifdef __STDC__
  3194. # include <limits.h>
  3195. #else
  3196. # include <assert.h>
  3197. #endif
  3198. Syntax error
  3199. _ACEOF
  3200. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3201. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3202. ac_status=$?
  3203. grep -v '^ *+' conftest.er1 >conftest.err
  3204. rm -f conftest.er1
  3205. cat conftest.err >&5
  3206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3207. (exit $ac_status); } >/dev/null; then
  3208. if test -s conftest.err; then
  3209. ac_cpp_err=$ac_c_preproc_warn_flag
  3210. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3211. else
  3212. ac_cpp_err=
  3213. fi
  3214. else
  3215. ac_cpp_err=yes
  3216. fi
  3217. if test -z "$ac_cpp_err"; then
  3218. :
  3219. else
  3220. echo "$as_me: failed program was:" >&5
  3221. sed 's/^/| /' conftest.$ac_ext >&5
  3222. # Broken: fails on valid input.
  3223. continue
  3224. fi
  3225. rm -f conftest.err conftest.$ac_ext
  3226. # OK, works on sane cases. Now check whether non-existent headers
  3227. # can be detected and how.
  3228. cat >conftest.$ac_ext <<_ACEOF
  3229. /* confdefs.h. */
  3230. _ACEOF
  3231. cat confdefs.h >>conftest.$ac_ext
  3232. cat >>conftest.$ac_ext <<_ACEOF
  3233. /* end confdefs.h. */
  3234. #include <ac_nonexistent.h>
  3235. _ACEOF
  3236. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3237. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3238. ac_status=$?
  3239. grep -v '^ *+' conftest.er1 >conftest.err
  3240. rm -f conftest.er1
  3241. cat conftest.err >&5
  3242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); } >/dev/null; then
  3244. if test -s conftest.err; then
  3245. ac_cpp_err=$ac_c_preproc_warn_flag
  3246. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3247. else
  3248. ac_cpp_err=
  3249. fi
  3250. else
  3251. ac_cpp_err=yes
  3252. fi
  3253. if test -z "$ac_cpp_err"; then
  3254. # Broken: success on invalid input.
  3255. continue
  3256. else
  3257. echo "$as_me: failed program was:" >&5
  3258. sed 's/^/| /' conftest.$ac_ext >&5
  3259. # Passes both tests.
  3260. ac_preproc_ok=:
  3261. break
  3262. fi
  3263. rm -f conftest.err conftest.$ac_ext
  3264. done
  3265. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3266. rm -f conftest.err conftest.$ac_ext
  3267. if $ac_preproc_ok; then
  3268. break
  3269. fi
  3270. done
  3271. ac_cv_prog_CPP=$CPP
  3272. fi
  3273. CPP=$ac_cv_prog_CPP
  3274. else
  3275. ac_cv_prog_CPP=$CPP
  3276. fi
  3277. echo "$as_me:$LINENO: result: $CPP" >&5
  3278. echo "${ECHO_T}$CPP" >&6
  3279. ac_preproc_ok=false
  3280. for ac_c_preproc_warn_flag in '' yes
  3281. do
  3282. # Use a header file that comes with gcc, so configuring glibc
  3283. # with a fresh cross-compiler works.
  3284. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3285. # <limits.h> exists even on freestanding compilers.
  3286. # On the NeXT, cc -E runs the code through the compiler's parser,
  3287. # not just through cpp. "Syntax error" is here to catch this case.
  3288. cat >conftest.$ac_ext <<_ACEOF
  3289. /* confdefs.h. */
  3290. _ACEOF
  3291. cat confdefs.h >>conftest.$ac_ext
  3292. cat >>conftest.$ac_ext <<_ACEOF
  3293. /* end confdefs.h. */
  3294. #ifdef __STDC__
  3295. # include <limits.h>
  3296. #else
  3297. # include <assert.h>
  3298. #endif
  3299. Syntax error
  3300. _ACEOF
  3301. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3302. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3303. ac_status=$?
  3304. grep -v '^ *+' conftest.er1 >conftest.err
  3305. rm -f conftest.er1
  3306. cat conftest.err >&5
  3307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3308. (exit $ac_status); } >/dev/null; then
  3309. if test -s conftest.err; then
  3310. ac_cpp_err=$ac_c_preproc_warn_flag
  3311. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3312. else
  3313. ac_cpp_err=
  3314. fi
  3315. else
  3316. ac_cpp_err=yes
  3317. fi
  3318. if test -z "$ac_cpp_err"; then
  3319. :
  3320. else
  3321. echo "$as_me: failed program was:" >&5
  3322. sed 's/^/| /' conftest.$ac_ext >&5
  3323. # Broken: fails on valid input.
  3324. continue
  3325. fi
  3326. rm -f conftest.err conftest.$ac_ext
  3327. # OK, works on sane cases. Now check whether non-existent headers
  3328. # can be detected and how.
  3329. cat >conftest.$ac_ext <<_ACEOF
  3330. /* confdefs.h. */
  3331. _ACEOF
  3332. cat confdefs.h >>conftest.$ac_ext
  3333. cat >>conftest.$ac_ext <<_ACEOF
  3334. /* end confdefs.h. */
  3335. #include <ac_nonexistent.h>
  3336. _ACEOF
  3337. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3338. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3339. ac_status=$?
  3340. grep -v '^ *+' conftest.er1 >conftest.err
  3341. rm -f conftest.er1
  3342. cat conftest.err >&5
  3343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3344. (exit $ac_status); } >/dev/null; then
  3345. if test -s conftest.err; then
  3346. ac_cpp_err=$ac_c_preproc_warn_flag
  3347. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3348. else
  3349. ac_cpp_err=
  3350. fi
  3351. else
  3352. ac_cpp_err=yes
  3353. fi
  3354. if test -z "$ac_cpp_err"; then
  3355. # Broken: success on invalid input.
  3356. continue
  3357. else
  3358. echo "$as_me: failed program was:" >&5
  3359. sed 's/^/| /' conftest.$ac_ext >&5
  3360. # Passes both tests.
  3361. ac_preproc_ok=:
  3362. break
  3363. fi
  3364. rm -f conftest.err conftest.$ac_ext
  3365. done
  3366. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3367. rm -f conftest.err conftest.$ac_ext
  3368. if $ac_preproc_ok; then
  3369. :
  3370. else
  3371. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3372. See \`config.log' for more details." >&5
  3373. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3374. See \`config.log' for more details." >&2;}
  3375. { (exit 1); exit 1; }; }
  3376. fi
  3377. ac_ext=c
  3378. ac_cpp='$CPP $CPPFLAGS'
  3379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3382. echo "$as_me:$LINENO: checking for egrep" >&5
  3383. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3384. if test "${ac_cv_prog_egrep+set}" = set; then
  3385. echo $ECHO_N "(cached) $ECHO_C" >&6
  3386. else
  3387. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3388. then ac_cv_prog_egrep='grep -E'
  3389. else ac_cv_prog_egrep='egrep'
  3390. fi
  3391. fi
  3392. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3393. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3394. EGREP=$ac_cv_prog_egrep
  3395. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3396. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3397. if test "${ac_cv_header_stdc+set}" = set; then
  3398. echo $ECHO_N "(cached) $ECHO_C" >&6
  3399. else
  3400. cat >conftest.$ac_ext <<_ACEOF
  3401. /* confdefs.h. */
  3402. _ACEOF
  3403. cat confdefs.h >>conftest.$ac_ext
  3404. cat >>conftest.$ac_ext <<_ACEOF
  3405. /* end confdefs.h. */
  3406. #include <stdlib.h>
  3407. #include <stdarg.h>
  3408. #include <string.h>
  3409. #include <float.h>
  3410. int
  3411. main ()
  3412. {
  3413. ;
  3414. return 0;
  3415. }
  3416. _ACEOF
  3417. rm -f conftest.$ac_objext
  3418. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3419. (eval $ac_compile) 2>conftest.er1
  3420. ac_status=$?
  3421. grep -v '^ *+' conftest.er1 >conftest.err
  3422. rm -f conftest.er1
  3423. cat conftest.err >&5
  3424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3425. (exit $ac_status); } &&
  3426. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3428. (eval $ac_try) 2>&5
  3429. ac_status=$?
  3430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3431. (exit $ac_status); }; } &&
  3432. { ac_try='test -s conftest.$ac_objext'
  3433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3434. (eval $ac_try) 2>&5
  3435. ac_status=$?
  3436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3437. (exit $ac_status); }; }; then
  3438. ac_cv_header_stdc=yes
  3439. else
  3440. echo "$as_me: failed program was:" >&5
  3441. sed 's/^/| /' conftest.$ac_ext >&5
  3442. ac_cv_header_stdc=no
  3443. fi
  3444. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3445. if test $ac_cv_header_stdc = yes; then
  3446. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3447. cat >conftest.$ac_ext <<_ACEOF
  3448. /* confdefs.h. */
  3449. _ACEOF
  3450. cat confdefs.h >>conftest.$ac_ext
  3451. cat >>conftest.$ac_ext <<_ACEOF
  3452. /* end confdefs.h. */
  3453. #include <string.h>
  3454. _ACEOF
  3455. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3456. $EGREP "memchr" >/dev/null 2>&1; then
  3457. :
  3458. else
  3459. ac_cv_header_stdc=no
  3460. fi
  3461. rm -f conftest*
  3462. fi
  3463. if test $ac_cv_header_stdc = yes; then
  3464. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. #include <stdlib.h>
  3472. _ACEOF
  3473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3474. $EGREP "free" >/dev/null 2>&1; then
  3475. :
  3476. else
  3477. ac_cv_header_stdc=no
  3478. fi
  3479. rm -f conftest*
  3480. fi
  3481. if test $ac_cv_header_stdc = yes; then
  3482. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3483. if test "$cross_compiling" = yes; then
  3484. :
  3485. else
  3486. cat >conftest.$ac_ext <<_ACEOF
  3487. /* confdefs.h. */
  3488. _ACEOF
  3489. cat confdefs.h >>conftest.$ac_ext
  3490. cat >>conftest.$ac_ext <<_ACEOF
  3491. /* end confdefs.h. */
  3492. #include <ctype.h>
  3493. #if ((' ' & 0x0FF) == 0x020)
  3494. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3495. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3496. #else
  3497. # define ISLOWER(c) \
  3498. (('a' <= (c) && (c) <= 'i') \
  3499. || ('j' <= (c) && (c) <= 'r') \
  3500. || ('s' <= (c) && (c) <= 'z'))
  3501. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3502. #endif
  3503. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3504. int
  3505. main ()
  3506. {
  3507. int i;
  3508. for (i = 0; i < 256; i++)
  3509. if (XOR (islower (i), ISLOWER (i))
  3510. || toupper (i) != TOUPPER (i))
  3511. exit(2);
  3512. exit (0);
  3513. }
  3514. _ACEOF
  3515. rm -f conftest$ac_exeext
  3516. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3517. (eval $ac_link) 2>&5
  3518. ac_status=$?
  3519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3520. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3522. (eval $ac_try) 2>&5
  3523. ac_status=$?
  3524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); }; }; then
  3526. :
  3527. else
  3528. echo "$as_me: program exited with status $ac_status" >&5
  3529. echo "$as_me: failed program was:" >&5
  3530. sed 's/^/| /' conftest.$ac_ext >&5
  3531. ( exit $ac_status )
  3532. ac_cv_header_stdc=no
  3533. fi
  3534. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3535. fi
  3536. fi
  3537. fi
  3538. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3539. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3540. if test $ac_cv_header_stdc = yes; then
  3541. cat >>confdefs.h <<\_ACEOF
  3542. #define STDC_HEADERS 1
  3543. _ACEOF
  3544. fi
  3545. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3546. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3547. if test "${ac_cv_c_const+set}" = set; then
  3548. echo $ECHO_N "(cached) $ECHO_C" >&6
  3549. else
  3550. cat >conftest.$ac_ext <<_ACEOF
  3551. /* confdefs.h. */
  3552. _ACEOF
  3553. cat confdefs.h >>conftest.$ac_ext
  3554. cat >>conftest.$ac_ext <<_ACEOF
  3555. /* end confdefs.h. */
  3556. int
  3557. main ()
  3558. {
  3559. /* FIXME: Include the comments suggested by Paul. */
  3560. #ifndef __cplusplus
  3561. /* Ultrix mips cc rejects this. */
  3562. typedef int charset[2];
  3563. const charset x;
  3564. /* SunOS 4.1.1 cc rejects this. */
  3565. char const *const *ccp;
  3566. char **p;
  3567. /* NEC SVR4.0.2 mips cc rejects this. */
  3568. struct point {int x, y;};
  3569. static struct point const zero = {0,0};
  3570. /* AIX XL C 1.02.0.0 rejects this.
  3571. It does not let you subtract one const X* pointer from another in
  3572. an arm of an if-expression whose if-part is not a constant
  3573. expression */
  3574. const char *g = "string";
  3575. ccp = &g + (g ? g-g : 0);
  3576. /* HPUX 7.0 cc rejects these. */
  3577. ++ccp;
  3578. p = (char**) ccp;
  3579. ccp = (char const *const *) p;
  3580. { /* SCO 3.2v4 cc rejects this. */
  3581. char *t;
  3582. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3583. *t++ = 0;
  3584. }
  3585. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3586. int x[] = {25, 17};
  3587. const int *foo = &x[0];
  3588. ++foo;
  3589. }
  3590. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3591. typedef const int *iptr;
  3592. iptr p = 0;
  3593. ++p;
  3594. }
  3595. { /* AIX XL C 1.02.0.0 rejects this saying
  3596. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3597. struct s { int j; const int *ap[3]; };
  3598. struct s *b; b->j = 5;
  3599. }
  3600. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3601. const int foo = 10;
  3602. }
  3603. #endif
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. rm -f conftest.$ac_objext
  3609. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3610. (eval $ac_compile) 2>conftest.er1
  3611. ac_status=$?
  3612. grep -v '^ *+' conftest.er1 >conftest.err
  3613. rm -f conftest.er1
  3614. cat conftest.err >&5
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); } &&
  3617. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3619. (eval $ac_try) 2>&5
  3620. ac_status=$?
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); }; } &&
  3623. { ac_try='test -s conftest.$ac_objext'
  3624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3625. (eval $ac_try) 2>&5
  3626. ac_status=$?
  3627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3628. (exit $ac_status); }; }; then
  3629. ac_cv_c_const=yes
  3630. else
  3631. echo "$as_me: failed program was:" >&5
  3632. sed 's/^/| /' conftest.$ac_ext >&5
  3633. ac_cv_c_const=no
  3634. fi
  3635. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. fi
  3637. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3638. echo "${ECHO_T}$ac_cv_c_const" >&6
  3639. if test $ac_cv_c_const = no; then
  3640. cat >>confdefs.h <<\_ACEOF
  3641. #define const
  3642. _ACEOF
  3643. fi
  3644. echo "$as_me:$LINENO: checking for signed" >&5
  3645. echo $ECHO_N "checking for signed... $ECHO_C" >&6
  3646. if test "${bh_cv_c_signed+set}" = set; then
  3647. echo $ECHO_N "(cached) $ECHO_C" >&6
  3648. else
  3649. cat >conftest.$ac_ext <<_ACEOF
  3650. /* confdefs.h. */
  3651. _ACEOF
  3652. cat confdefs.h >>conftest.$ac_ext
  3653. cat >>conftest.$ac_ext <<_ACEOF
  3654. /* end confdefs.h. */
  3655. int
  3656. main ()
  3657. {
  3658. signed char x;
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. rm -f conftest.$ac_objext
  3664. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3665. (eval $ac_compile) 2>conftest.er1
  3666. ac_status=$?
  3667. grep -v '^ *+' conftest.er1 >conftest.err
  3668. rm -f conftest.er1
  3669. cat conftest.err >&5
  3670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); } &&
  3672. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3674. (eval $ac_try) 2>&5
  3675. ac_status=$?
  3676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. (exit $ac_status); }; } &&
  3678. { ac_try='test -s conftest.$ac_objext'
  3679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3680. (eval $ac_try) 2>&5
  3681. ac_status=$?
  3682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. (exit $ac_status); }; }; then
  3684. bh_cv_c_signed=yes
  3685. else
  3686. echo "$as_me: failed program was:" >&5
  3687. sed 's/^/| /' conftest.$ac_ext >&5
  3688. bh_cv_c_signed=no
  3689. fi
  3690. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3691. fi
  3692. echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
  3693. echo "${ECHO_T}$bh_cv_c_signed" >&6
  3694. if test $bh_cv_c_signed = no; then
  3695. cat >>confdefs.h <<\_ACEOF
  3696. #define signed
  3697. _ACEOF
  3698. fi
  3699. echo "$as_me:$LINENO: checking for inline" >&5
  3700. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  3701. if test "${ac_cv_c_inline+set}" = set; then
  3702. echo $ECHO_N "(cached) $ECHO_C" >&6
  3703. else
  3704. ac_cv_c_inline=no
  3705. for ac_kw in inline __inline__ __inline; do
  3706. cat >conftest.$ac_ext <<_ACEOF
  3707. /* confdefs.h. */
  3708. _ACEOF
  3709. cat confdefs.h >>conftest.$ac_ext
  3710. cat >>conftest.$ac_ext <<_ACEOF
  3711. /* end confdefs.h. */
  3712. #ifndef __cplusplus
  3713. typedef int foo_t;
  3714. static $ac_kw foo_t static_foo () {return 0; }
  3715. $ac_kw foo_t foo () {return 0; }
  3716. #endif
  3717. _ACEOF
  3718. rm -f conftest.$ac_objext
  3719. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3720. (eval $ac_compile) 2>conftest.er1
  3721. ac_status=$?
  3722. grep -v '^ *+' conftest.er1 >conftest.err
  3723. rm -f conftest.er1
  3724. cat conftest.err >&5
  3725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3726. (exit $ac_status); } &&
  3727. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3729. (eval $ac_try) 2>&5
  3730. ac_status=$?
  3731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3732. (exit $ac_status); }; } &&
  3733. { ac_try='test -s conftest.$ac_objext'
  3734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3735. (eval $ac_try) 2>&5
  3736. ac_status=$?
  3737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3738. (exit $ac_status); }; }; then
  3739. ac_cv_c_inline=$ac_kw; break
  3740. else
  3741. echo "$as_me: failed program was:" >&5
  3742. sed 's/^/| /' conftest.$ac_ext >&5
  3743. fi
  3744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3745. done
  3746. fi
  3747. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  3748. echo "${ECHO_T}$ac_cv_c_inline" >&6
  3749. case $ac_cv_c_inline in
  3750. inline | yes) ;;
  3751. *)
  3752. case $ac_cv_c_inline in
  3753. no) ac_val=;;
  3754. *) ac_val=$ac_cv_c_inline;;
  3755. esac
  3756. cat >>confdefs.h <<_ACEOF
  3757. #ifndef __cplusplus
  3758. #define inline $ac_val
  3759. #endif
  3760. _ACEOF
  3761. ;;
  3762. esac
  3763. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3764. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3765. inttypes.h stdint.h unistd.h
  3766. do
  3767. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3768. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3769. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3770. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3771. echo $ECHO_N "(cached) $ECHO_C" >&6
  3772. else
  3773. cat >conftest.$ac_ext <<_ACEOF
  3774. /* confdefs.h. */
  3775. _ACEOF
  3776. cat confdefs.h >>conftest.$ac_ext
  3777. cat >>conftest.$ac_ext <<_ACEOF
  3778. /* end confdefs.h. */
  3779. $ac_includes_default
  3780. #include <$ac_header>
  3781. _ACEOF
  3782. rm -f conftest.$ac_objext
  3783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3784. (eval $ac_compile) 2>conftest.er1
  3785. ac_status=$?
  3786. grep -v '^ *+' conftest.er1 >conftest.err
  3787. rm -f conftest.er1
  3788. cat conftest.err >&5
  3789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3790. (exit $ac_status); } &&
  3791. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3793. (eval $ac_try) 2>&5
  3794. ac_status=$?
  3795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3796. (exit $ac_status); }; } &&
  3797. { ac_try='test -s conftest.$ac_objext'
  3798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3799. (eval $ac_try) 2>&5
  3800. ac_status=$?
  3801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3802. (exit $ac_status); }; }; then
  3803. eval "$as_ac_Header=yes"
  3804. else
  3805. echo "$as_me: failed program was:" >&5
  3806. sed 's/^/| /' conftest.$ac_ext >&5
  3807. eval "$as_ac_Header=no"
  3808. fi
  3809. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3810. fi
  3811. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3812. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3813. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3814. cat >>confdefs.h <<_ACEOF
  3815. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3816. _ACEOF
  3817. fi
  3818. done
  3819. echo "$as_me:$LINENO: checking for off_t" >&5
  3820. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  3821. if test "${ac_cv_type_off_t+set}" = set; then
  3822. echo $ECHO_N "(cached) $ECHO_C" >&6
  3823. else
  3824. cat >conftest.$ac_ext <<_ACEOF
  3825. /* confdefs.h. */
  3826. _ACEOF
  3827. cat confdefs.h >>conftest.$ac_ext
  3828. cat >>conftest.$ac_ext <<_ACEOF
  3829. /* end confdefs.h. */
  3830. $ac_includes_default
  3831. int
  3832. main ()
  3833. {
  3834. if ((off_t *) 0)
  3835. return 0;
  3836. if (sizeof (off_t))
  3837. return 0;
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. rm -f conftest.$ac_objext
  3843. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3844. (eval $ac_compile) 2>conftest.er1
  3845. ac_status=$?
  3846. grep -v '^ *+' conftest.er1 >conftest.err
  3847. rm -f conftest.er1
  3848. cat conftest.err >&5
  3849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850. (exit $ac_status); } &&
  3851. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3853. (eval $ac_try) 2>&5
  3854. ac_status=$?
  3855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3856. (exit $ac_status); }; } &&
  3857. { ac_try='test -s conftest.$ac_objext'
  3858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3859. (eval $ac_try) 2>&5
  3860. ac_status=$?
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); }; }; then
  3863. ac_cv_type_off_t=yes
  3864. else
  3865. echo "$as_me: failed program was:" >&5
  3866. sed 's/^/| /' conftest.$ac_ext >&5
  3867. ac_cv_type_off_t=no
  3868. fi
  3869. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. fi
  3871. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  3872. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  3873. if test $ac_cv_type_off_t = yes; then
  3874. :
  3875. else
  3876. cat >>confdefs.h <<_ACEOF
  3877. #define off_t long
  3878. _ACEOF
  3879. fi
  3880. echo "$as_me:$LINENO: checking for size_t" >&5
  3881. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  3882. if test "${ac_cv_type_size_t+set}" = set; then
  3883. echo $ECHO_N "(cached) $ECHO_C" >&6
  3884. else
  3885. cat >conftest.$ac_ext <<_ACEOF
  3886. /* confdefs.h. */
  3887. _ACEOF
  3888. cat confdefs.h >>conftest.$ac_ext
  3889. cat >>conftest.$ac_ext <<_ACEOF
  3890. /* end confdefs.h. */
  3891. $ac_includes_default
  3892. int
  3893. main ()
  3894. {
  3895. if ((size_t *) 0)
  3896. return 0;
  3897. if (sizeof (size_t))
  3898. return 0;
  3899. ;
  3900. return 0;
  3901. }
  3902. _ACEOF
  3903. rm -f conftest.$ac_objext
  3904. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3905. (eval $ac_compile) 2>conftest.er1
  3906. ac_status=$?
  3907. grep -v '^ *+' conftest.er1 >conftest.err
  3908. rm -f conftest.er1
  3909. cat conftest.err >&5
  3910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3911. (exit $ac_status); } &&
  3912. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3914. (eval $ac_try) 2>&5
  3915. ac_status=$?
  3916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3917. (exit $ac_status); }; } &&
  3918. { ac_try='test -s conftest.$ac_objext'
  3919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3920. (eval $ac_try) 2>&5
  3921. ac_status=$?
  3922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3923. (exit $ac_status); }; }; then
  3924. ac_cv_type_size_t=yes
  3925. else
  3926. echo "$as_me: failed program was:" >&5
  3927. sed 's/^/| /' conftest.$ac_ext >&5
  3928. ac_cv_type_size_t=no
  3929. fi
  3930. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3931. fi
  3932. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3933. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3934. if test $ac_cv_type_size_t = yes; then
  3935. :
  3936. else
  3937. cat >>confdefs.h <<_ACEOF
  3938. #define size_t unsigned
  3939. _ACEOF
  3940. fi
  3941. echo "$as_me:$LINENO: checking for long long" >&5
  3942. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  3943. if test "${ac_cv_type_long_long+set}" = set; then
  3944. echo $ECHO_N "(cached) $ECHO_C" >&6
  3945. else
  3946. cat >conftest.$ac_ext <<_ACEOF
  3947. /* confdefs.h. */
  3948. _ACEOF
  3949. cat confdefs.h >>conftest.$ac_ext
  3950. cat >>conftest.$ac_ext <<_ACEOF
  3951. /* end confdefs.h. */
  3952. long long ll = 1LL; int i = 63;
  3953. int
  3954. main ()
  3955. {
  3956. long long llmax = (long long) -1;
  3957. return ll << i | ll >> i | llmax / ll | llmax % ll;
  3958. ;
  3959. return 0;
  3960. }
  3961. _ACEOF
  3962. rm -f conftest.$ac_objext conftest$ac_exeext
  3963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3964. (eval $ac_link) 2>conftest.er1
  3965. ac_status=$?
  3966. grep -v '^ *+' conftest.er1 >conftest.err
  3967. rm -f conftest.er1
  3968. cat conftest.err >&5
  3969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3970. (exit $ac_status); } &&
  3971. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3973. (eval $ac_try) 2>&5
  3974. ac_status=$?
  3975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3976. (exit $ac_status); }; } &&
  3977. { ac_try='test -s conftest$ac_exeext'
  3978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3979. (eval $ac_try) 2>&5
  3980. ac_status=$?
  3981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3982. (exit $ac_status); }; }; then
  3983. ac_cv_type_long_long=yes
  3984. else
  3985. echo "$as_me: failed program was:" >&5
  3986. sed 's/^/| /' conftest.$ac_ext >&5
  3987. ac_cv_type_long_long=no
  3988. fi
  3989. rm -f conftest.err conftest.$ac_objext \
  3990. conftest$ac_exeext conftest.$ac_ext
  3991. fi
  3992. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  3993. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  3994. if test $ac_cv_type_long_long = yes; then
  3995. cat >>confdefs.h <<\_ACEOF
  3996. #define HAVE_LONG_LONG 1
  3997. _ACEOF
  3998. fi
  3999. echo "$as_me:$LINENO: checking for long double" >&5
  4000. echo $ECHO_N "checking for long double... $ECHO_C" >&6
  4001. if test "${gt_cv_c_long_double+set}" = set; then
  4002. echo $ECHO_N "(cached) $ECHO_C" >&6
  4003. else
  4004. if test "$GCC" = yes; then
  4005. gt_cv_c_long_double=yes
  4006. else
  4007. cat >conftest.$ac_ext <<_ACEOF
  4008. /* confdefs.h. */
  4009. _ACEOF
  4010. cat confdefs.h >>conftest.$ac_ext
  4011. cat >>conftest.$ac_ext <<_ACEOF
  4012. /* end confdefs.h. */
  4013. /* The Stardent Vistra knows sizeof(long double), but does not support it. */
  4014. long double foo = 0.0;
  4015. /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
  4016. int array [2*(sizeof(long double) >= sizeof(double)) - 1];
  4017. int
  4018. main ()
  4019. {
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. rm -f conftest.$ac_objext
  4025. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4026. (eval $ac_compile) 2>conftest.er1
  4027. ac_status=$?
  4028. grep -v '^ *+' conftest.er1 >conftest.err
  4029. rm -f conftest.er1
  4030. cat conftest.err >&5
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); } &&
  4033. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4035. (eval $ac_try) 2>&5
  4036. ac_status=$?
  4037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. (exit $ac_status); }; } &&
  4039. { ac_try='test -s conftest.$ac_objext'
  4040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4041. (eval $ac_try) 2>&5
  4042. ac_status=$?
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); }; }; then
  4045. gt_cv_c_long_double=yes
  4046. else
  4047. echo "$as_me: failed program was:" >&5
  4048. sed 's/^/| /' conftest.$ac_ext >&5
  4049. gt_cv_c_long_double=no
  4050. fi
  4051. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4052. fi
  4053. fi
  4054. echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
  4055. echo "${ECHO_T}$gt_cv_c_long_double" >&6
  4056. if test $gt_cv_c_long_double = yes; then
  4057. cat >>confdefs.h <<\_ACEOF
  4058. #define HAVE_LONG_DOUBLE 1
  4059. _ACEOF
  4060. fi
  4061. echo "$as_me:$LINENO: checking for wchar_t" >&5
  4062. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
  4063. if test "${gt_cv_c_wchar_t+set}" = set; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. cat >conftest.$ac_ext <<_ACEOF
  4067. /* confdefs.h. */
  4068. _ACEOF
  4069. cat confdefs.h >>conftest.$ac_ext
  4070. cat >>conftest.$ac_ext <<_ACEOF
  4071. /* end confdefs.h. */
  4072. #include <stddef.h>
  4073. wchar_t foo = (wchar_t)'\0';
  4074. int
  4075. main ()
  4076. {
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. rm -f conftest.$ac_objext
  4082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4083. (eval $ac_compile) 2>conftest.er1
  4084. ac_status=$?
  4085. grep -v '^ *+' conftest.er1 >conftest.err
  4086. rm -f conftest.er1
  4087. cat conftest.err >&5
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); } &&
  4090. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4092. (eval $ac_try) 2>&5
  4093. ac_status=$?
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); }; } &&
  4096. { ac_try='test -s conftest.$ac_objext'
  4097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4098. (eval $ac_try) 2>&5
  4099. ac_status=$?
  4100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4101. (exit $ac_status); }; }; then
  4102. gt_cv_c_wchar_t=yes
  4103. else
  4104. echo "$as_me: failed program was:" >&5
  4105. sed 's/^/| /' conftest.$ac_ext >&5
  4106. gt_cv_c_wchar_t=no
  4107. fi
  4108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. fi
  4110. echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  4111. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
  4112. if test $gt_cv_c_wchar_t = yes; then
  4113. cat >>confdefs.h <<\_ACEOF
  4114. #define HAVE_WCHAR_T 1
  4115. _ACEOF
  4116. fi
  4117. echo "$as_me:$LINENO: checking for wint_t" >&5
  4118. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
  4119. if test "${gt_cv_c_wint_t+set}" = set; then
  4120. echo $ECHO_N "(cached) $ECHO_C" >&6
  4121. else
  4122. cat >conftest.$ac_ext <<_ACEOF
  4123. /* confdefs.h. */
  4124. _ACEOF
  4125. cat confdefs.h >>conftest.$ac_ext
  4126. cat >>conftest.$ac_ext <<_ACEOF
  4127. /* end confdefs.h. */
  4128. #include <wchar.h>
  4129. wint_t foo = (wchar_t)'\0';
  4130. int
  4131. main ()
  4132. {
  4133. ;
  4134. return 0;
  4135. }
  4136. _ACEOF
  4137. rm -f conftest.$ac_objext
  4138. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4139. (eval $ac_compile) 2>conftest.er1
  4140. ac_status=$?
  4141. grep -v '^ *+' conftest.er1 >conftest.err
  4142. rm -f conftest.er1
  4143. cat conftest.err >&5
  4144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); } &&
  4146. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4148. (eval $ac_try) 2>&5
  4149. ac_status=$?
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); }; } &&
  4152. { ac_try='test -s conftest.$ac_objext'
  4153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4154. (eval $ac_try) 2>&5
  4155. ac_status=$?
  4156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4157. (exit $ac_status); }; }; then
  4158. gt_cv_c_wint_t=yes
  4159. else
  4160. echo "$as_me: failed program was:" >&5
  4161. sed 's/^/| /' conftest.$ac_ext >&5
  4162. gt_cv_c_wint_t=no
  4163. fi
  4164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4165. fi
  4166. echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  4167. echo "${ECHO_T}$gt_cv_c_wint_t" >&6
  4168. if test $gt_cv_c_wint_t = yes; then
  4169. cat >>confdefs.h <<\_ACEOF
  4170. #define HAVE_WINT_T 1
  4171. _ACEOF
  4172. fi
  4173. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  4174. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  4175. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  4176. echo $ECHO_N "(cached) $ECHO_C" >&6
  4177. else
  4178. cat >conftest.$ac_ext <<_ACEOF
  4179. /* confdefs.h. */
  4180. _ACEOF
  4181. cat confdefs.h >>conftest.$ac_ext
  4182. cat >>conftest.$ac_ext <<_ACEOF
  4183. /* end confdefs.h. */
  4184. #include <sys/types.h>
  4185. #include <inttypes.h>
  4186. int
  4187. main ()
  4188. {
  4189. uintmax_t i = (uintmax_t) -1;
  4190. ;
  4191. return 0;
  4192. }
  4193. _ACEOF
  4194. rm -f conftest.$ac_objext
  4195. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4196. (eval $ac_compile) 2>conftest.er1
  4197. ac_status=$?
  4198. grep -v '^ *+' conftest.er1 >conftest.err
  4199. rm -f conftest.er1
  4200. cat conftest.err >&5
  4201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4202. (exit $ac_status); } &&
  4203. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4205. (eval $ac_try) 2>&5
  4206. ac_status=$?
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); }; } &&
  4209. { ac_try='test -s conftest.$ac_objext'
  4210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4211. (eval $ac_try) 2>&5
  4212. ac_status=$?
  4213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214. (exit $ac_status); }; }; then
  4215. jm_ac_cv_header_inttypes_h=yes
  4216. else
  4217. echo "$as_me: failed program was:" >&5
  4218. sed 's/^/| /' conftest.$ac_ext >&5
  4219. jm_ac_cv_header_inttypes_h=no
  4220. fi
  4221. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4222. fi
  4223. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  4224. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  4225. if test $jm_ac_cv_header_inttypes_h = yes; then
  4226. cat >>confdefs.h <<_ACEOF
  4227. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  4228. _ACEOF
  4229. fi
  4230. echo "$as_me:$LINENO: checking for stdint.h" >&5
  4231. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  4232. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  4233. echo $ECHO_N "(cached) $ECHO_C" >&6
  4234. else
  4235. cat >conftest.$ac_ext <<_ACEOF
  4236. /* confdefs.h. */
  4237. _ACEOF
  4238. cat confdefs.h >>conftest.$ac_ext
  4239. cat >>conftest.$ac_ext <<_ACEOF
  4240. /* end confdefs.h. */
  4241. #include <sys/types.h>
  4242. #include <stdint.h>
  4243. int
  4244. main ()
  4245. {
  4246. uintmax_t i = (uintmax_t) -1;
  4247. ;
  4248. return 0;
  4249. }
  4250. _ACEOF
  4251. rm -f conftest.$ac_objext
  4252. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4253. (eval $ac_compile) 2>conftest.er1
  4254. ac_status=$?
  4255. grep -v '^ *+' conftest.er1 >conftest.err
  4256. rm -f conftest.er1
  4257. cat conftest.err >&5
  4258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4259. (exit $ac_status); } &&
  4260. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4262. (eval $ac_try) 2>&5
  4263. ac_status=$?
  4264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4265. (exit $ac_status); }; } &&
  4266. { ac_try='test -s conftest.$ac_objext'
  4267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4268. (eval $ac_try) 2>&5
  4269. ac_status=$?
  4270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4271. (exit $ac_status); }; }; then
  4272. jm_ac_cv_header_stdint_h=yes
  4273. else
  4274. echo "$as_me: failed program was:" >&5
  4275. sed 's/^/| /' conftest.$ac_ext >&5
  4276. jm_ac_cv_header_stdint_h=no
  4277. fi
  4278. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4279. fi
  4280. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  4281. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  4282. if test $jm_ac_cv_header_stdint_h = yes; then
  4283. cat >>confdefs.h <<_ACEOF
  4284. #define HAVE_STDINT_H_WITH_UINTMAX 1
  4285. _ACEOF
  4286. fi
  4287. echo "$as_me:$LINENO: checking for intmax_t" >&5
  4288. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
  4289. if test "${gt_cv_c_intmax_t+set}" = set; then
  4290. echo $ECHO_N "(cached) $ECHO_C" >&6
  4291. else
  4292. cat >conftest.$ac_ext <<_ACEOF
  4293. /* confdefs.h. */
  4294. _ACEOF
  4295. cat confdefs.h >>conftest.$ac_ext
  4296. cat >>conftest.$ac_ext <<_ACEOF
  4297. /* end confdefs.h. */
  4298. #include <stddef.h>
  4299. #include <stdlib.h>
  4300. #if HAVE_STDINT_H_WITH_UINTMAX
  4301. #include <stdint.h>
  4302. #endif
  4303. #if HAVE_INTTYPES_H_WITH_UINTMAX
  4304. #include <inttypes.h>
  4305. #endif
  4306. int
  4307. main ()
  4308. {
  4309. intmax_t x = -1;
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. rm -f conftest.$ac_objext
  4315. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4316. (eval $ac_compile) 2>conftest.er1
  4317. ac_status=$?
  4318. grep -v '^ *+' conftest.er1 >conftest.err
  4319. rm -f conftest.er1
  4320. cat conftest.err >&5
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); } &&
  4323. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; } &&
  4329. { ac_try='test -s conftest.$ac_objext'
  4330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4331. (eval $ac_try) 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); }; }; then
  4335. gt_cv_c_intmax_t=yes
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. gt_cv_c_intmax_t=no
  4340. fi
  4341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4342. fi
  4343. echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  4344. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
  4345. if test $gt_cv_c_intmax_t = yes; then
  4346. cat >>confdefs.h <<\_ACEOF
  4347. #define HAVE_INTMAX_T 1
  4348. _ACEOF
  4349. fi
  4350. echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  4351. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
  4352. if test "${gt_cv_func_printf_posix+set}" = set; then
  4353. echo $ECHO_N "(cached) $ECHO_C" >&6
  4354. else
  4355. if test "$cross_compiling" = yes; then
  4356. cat >conftest.$ac_ext <<_ACEOF
  4357. /* confdefs.h. */
  4358. _ACEOF
  4359. cat confdefs.h >>conftest.$ac_ext
  4360. cat >>conftest.$ac_ext <<_ACEOF
  4361. /* end confdefs.h. */
  4362. #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  4363. notposix
  4364. #endif
  4365. _ACEOF
  4366. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4367. $EGREP "notposix" >/dev/null 2>&1; then
  4368. gt_cv_func_printf_posix="guessing no"
  4369. else
  4370. gt_cv_func_printf_posix="guessing yes"
  4371. fi
  4372. rm -f conftest*
  4373. else
  4374. cat >conftest.$ac_ext <<_ACEOF
  4375. /* confdefs.h. */
  4376. _ACEOF
  4377. cat confdefs.h >>conftest.$ac_ext
  4378. cat >>conftest.$ac_ext <<_ACEOF
  4379. /* end confdefs.h. */
  4380. #include <stdio.h>
  4381. #include <string.h>
  4382. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  4383. dollar expansion (possibly an autoconf bug). */
  4384. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  4385. static char buf[100];
  4386. int main ()
  4387. {
  4388. sprintf (buf, format, 33, 55);
  4389. return (strcmp (buf, "55 33") != 0);
  4390. }
  4391. _ACEOF
  4392. rm -f conftest$ac_exeext
  4393. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4394. (eval $ac_link) 2>&5
  4395. ac_status=$?
  4396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4397. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4399. (eval $ac_try) 2>&5
  4400. ac_status=$?
  4401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4402. (exit $ac_status); }; }; then
  4403. gt_cv_func_printf_posix=yes
  4404. else
  4405. echo "$as_me: program exited with status $ac_status" >&5
  4406. echo "$as_me: failed program was:" >&5
  4407. sed 's/^/| /' conftest.$ac_ext >&5
  4408. ( exit $ac_status )
  4409. gt_cv_func_printf_posix=no
  4410. fi
  4411. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4412. fi
  4413. fi
  4414. echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  4415. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
  4416. case $gt_cv_func_printf_posix in
  4417. *yes)
  4418. cat >>confdefs.h <<\_ACEOF
  4419. #define HAVE_POSIX_PRINTF 1
  4420. _ACEOF
  4421. ;;
  4422. esac
  4423. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4424. # for constant arguments. Useless!
  4425. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4426. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4427. if test "${ac_cv_working_alloca_h+set}" = set; then
  4428. echo $ECHO_N "(cached) $ECHO_C" >&6
  4429. else
  4430. cat >conftest.$ac_ext <<_ACEOF
  4431. /* confdefs.h. */
  4432. _ACEOF
  4433. cat confdefs.h >>conftest.$ac_ext
  4434. cat >>conftest.$ac_ext <<_ACEOF
  4435. /* end confdefs.h. */
  4436. #include <alloca.h>
  4437. int
  4438. main ()
  4439. {
  4440. char *p = (char *) alloca (2 * sizeof (int));
  4441. ;
  4442. return 0;
  4443. }
  4444. _ACEOF
  4445. rm -f conftest.$ac_objext conftest$ac_exeext
  4446. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4447. (eval $ac_link) 2>conftest.er1
  4448. ac_status=$?
  4449. grep -v '^ *+' conftest.er1 >conftest.err
  4450. rm -f conftest.er1
  4451. cat conftest.err >&5
  4452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4453. (exit $ac_status); } &&
  4454. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4456. (eval $ac_try) 2>&5
  4457. ac_status=$?
  4458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4459. (exit $ac_status); }; } &&
  4460. { ac_try='test -s conftest$ac_exeext'
  4461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4462. (eval $ac_try) 2>&5
  4463. ac_status=$?
  4464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4465. (exit $ac_status); }; }; then
  4466. ac_cv_working_alloca_h=yes
  4467. else
  4468. echo "$as_me: failed program was:" >&5
  4469. sed 's/^/| /' conftest.$ac_ext >&5
  4470. ac_cv_working_alloca_h=no
  4471. fi
  4472. rm -f conftest.err conftest.$ac_objext \
  4473. conftest$ac_exeext conftest.$ac_ext
  4474. fi
  4475. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4476. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4477. if test $ac_cv_working_alloca_h = yes; then
  4478. cat >>confdefs.h <<\_ACEOF
  4479. #define HAVE_ALLOCA_H 1
  4480. _ACEOF
  4481. fi
  4482. echo "$as_me:$LINENO: checking for alloca" >&5
  4483. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4484. if test "${ac_cv_func_alloca_works+set}" = set; then
  4485. echo $ECHO_N "(cached) $ECHO_C" >&6
  4486. else
  4487. cat >conftest.$ac_ext <<_ACEOF
  4488. /* confdefs.h. */
  4489. _ACEOF
  4490. cat confdefs.h >>conftest.$ac_ext
  4491. cat >>conftest.$ac_ext <<_ACEOF
  4492. /* end confdefs.h. */
  4493. #ifdef __GNUC__
  4494. # define alloca __builtin_alloca
  4495. #else
  4496. # ifdef _MSC_VER
  4497. # include <malloc.h>
  4498. # define alloca _alloca
  4499. # else
  4500. # if HAVE_ALLOCA_H
  4501. # include <alloca.h>
  4502. # else
  4503. # ifdef _AIX
  4504. #pragma alloca
  4505. # else
  4506. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4507. char *alloca ();
  4508. # endif
  4509. # endif
  4510. # endif
  4511. # endif
  4512. #endif
  4513. int
  4514. main ()
  4515. {
  4516. char *p = (char *) alloca (1);
  4517. ;
  4518. return 0;
  4519. }
  4520. _ACEOF
  4521. rm -f conftest.$ac_objext conftest$ac_exeext
  4522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4523. (eval $ac_link) 2>conftest.er1
  4524. ac_status=$?
  4525. grep -v '^ *+' conftest.er1 >conftest.err
  4526. rm -f conftest.er1
  4527. cat conftest.err >&5
  4528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529. (exit $ac_status); } &&
  4530. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4532. (eval $ac_try) 2>&5
  4533. ac_status=$?
  4534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. (exit $ac_status); }; } &&
  4536. { ac_try='test -s conftest$ac_exeext'
  4537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4538. (eval $ac_try) 2>&5
  4539. ac_status=$?
  4540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4541. (exit $ac_status); }; }; then
  4542. ac_cv_func_alloca_works=yes
  4543. else
  4544. echo "$as_me: failed program was:" >&5
  4545. sed 's/^/| /' conftest.$ac_ext >&5
  4546. ac_cv_func_alloca_works=no
  4547. fi
  4548. rm -f conftest.err conftest.$ac_objext \
  4549. conftest$ac_exeext conftest.$ac_ext
  4550. fi
  4551. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4552. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4553. if test $ac_cv_func_alloca_works = yes; then
  4554. cat >>confdefs.h <<\_ACEOF
  4555. #define HAVE_ALLOCA 1
  4556. _ACEOF
  4557. else
  4558. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4559. # that cause trouble. Some versions do not even contain alloca or
  4560. # contain a buggy version. If you still want to use their alloca,
  4561. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4562. ALLOCA=alloca.$ac_objext
  4563. cat >>confdefs.h <<\_ACEOF
  4564. #define C_ALLOCA 1
  4565. _ACEOF
  4566. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4567. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4568. if test "${ac_cv_os_cray+set}" = set; then
  4569. echo $ECHO_N "(cached) $ECHO_C" >&6
  4570. else
  4571. cat >conftest.$ac_ext <<_ACEOF
  4572. /* confdefs.h. */
  4573. _ACEOF
  4574. cat confdefs.h >>conftest.$ac_ext
  4575. cat >>conftest.$ac_ext <<_ACEOF
  4576. /* end confdefs.h. */
  4577. #if defined(CRAY) && ! defined(CRAY2)
  4578. webecray
  4579. #else
  4580. wenotbecray
  4581. #endif
  4582. _ACEOF
  4583. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4584. $EGREP "webecray" >/dev/null 2>&1; then
  4585. ac_cv_os_cray=yes
  4586. else
  4587. ac_cv_os_cray=no
  4588. fi
  4589. rm -f conftest*
  4590. fi
  4591. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4592. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4593. if test $ac_cv_os_cray = yes; then
  4594. for ac_func in _getb67 GETB67 getb67; do
  4595. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4596. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4597. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4598. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4599. echo $ECHO_N "(cached) $ECHO_C" >&6
  4600. else
  4601. cat >conftest.$ac_ext <<_ACEOF
  4602. /* confdefs.h. */
  4603. _ACEOF
  4604. cat confdefs.h >>conftest.$ac_ext
  4605. cat >>conftest.$ac_ext <<_ACEOF
  4606. /* end confdefs.h. */
  4607. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4608. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4609. #define $ac_func innocuous_$ac_func
  4610. /* System header to define __stub macros and hopefully few prototypes,
  4611. which can conflict with char $ac_func (); below.
  4612. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4613. <limits.h> exists even on freestanding compilers. */
  4614. #ifdef __STDC__
  4615. # include <limits.h>
  4616. #else
  4617. # include <assert.h>
  4618. #endif
  4619. #undef $ac_func
  4620. /* Override any gcc2 internal prototype to avoid an error. */
  4621. #ifdef __cplusplus
  4622. extern "C"
  4623. {
  4624. #endif
  4625. /* We use char because int might match the return type of a gcc2
  4626. builtin and then its argument prototype would still apply. */
  4627. char $ac_func ();
  4628. /* The GNU C library defines this for functions which it implements
  4629. to always fail with ENOSYS. Some functions are actually named
  4630. something starting with __ and the normal name is an alias. */
  4631. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4632. choke me
  4633. #else
  4634. char (*f) () = $ac_func;
  4635. #endif
  4636. #ifdef __cplusplus
  4637. }
  4638. #endif
  4639. int
  4640. main ()
  4641. {
  4642. return f != $ac_func;
  4643. ;
  4644. return 0;
  4645. }
  4646. _ACEOF
  4647. rm -f conftest.$ac_objext conftest$ac_exeext
  4648. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4649. (eval $ac_link) 2>conftest.er1
  4650. ac_status=$?
  4651. grep -v '^ *+' conftest.er1 >conftest.err
  4652. rm -f conftest.er1
  4653. cat conftest.err >&5
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); } &&
  4656. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4658. (eval $ac_try) 2>&5
  4659. ac_status=$?
  4660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4661. (exit $ac_status); }; } &&
  4662. { ac_try='test -s conftest$ac_exeext'
  4663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4664. (eval $ac_try) 2>&5
  4665. ac_status=$?
  4666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4667. (exit $ac_status); }; }; then
  4668. eval "$as_ac_var=yes"
  4669. else
  4670. echo "$as_me: failed program was:" >&5
  4671. sed 's/^/| /' conftest.$ac_ext >&5
  4672. eval "$as_ac_var=no"
  4673. fi
  4674. rm -f conftest.err conftest.$ac_objext \
  4675. conftest$ac_exeext conftest.$ac_ext
  4676. fi
  4677. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4678. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4679. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4680. cat >>confdefs.h <<_ACEOF
  4681. #define CRAY_STACKSEG_END $ac_func
  4682. _ACEOF
  4683. break
  4684. fi
  4685. done
  4686. fi
  4687. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4688. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4689. if test "${ac_cv_c_stack_direction+set}" = set; then
  4690. echo $ECHO_N "(cached) $ECHO_C" >&6
  4691. else
  4692. if test "$cross_compiling" = yes; then
  4693. ac_cv_c_stack_direction=0
  4694. else
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. int
  4702. find_stack_direction ()
  4703. {
  4704. static char *addr = 0;
  4705. auto char dummy;
  4706. if (addr == 0)
  4707. {
  4708. addr = &dummy;
  4709. return find_stack_direction ();
  4710. }
  4711. else
  4712. return (&dummy > addr) ? 1 : -1;
  4713. }
  4714. int
  4715. main ()
  4716. {
  4717. exit (find_stack_direction () < 0);
  4718. }
  4719. _ACEOF
  4720. rm -f conftest$ac_exeext
  4721. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4722. (eval $ac_link) 2>&5
  4723. ac_status=$?
  4724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4725. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4727. (eval $ac_try) 2>&5
  4728. ac_status=$?
  4729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4730. (exit $ac_status); }; }; then
  4731. ac_cv_c_stack_direction=1
  4732. else
  4733. echo "$as_me: program exited with status $ac_status" >&5
  4734. echo "$as_me: failed program was:" >&5
  4735. sed 's/^/| /' conftest.$ac_ext >&5
  4736. ( exit $ac_status )
  4737. ac_cv_c_stack_direction=-1
  4738. fi
  4739. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4740. fi
  4741. fi
  4742. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4743. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4744. cat >>confdefs.h <<_ACEOF
  4745. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4746. _ACEOF
  4747. fi
  4748. for ac_header in stdlib.h unistd.h
  4749. do
  4750. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4751. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4752. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4753. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4754. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4755. echo $ECHO_N "(cached) $ECHO_C" >&6
  4756. fi
  4757. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4758. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4759. else
  4760. # Is the header compilable?
  4761. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4762. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4763. cat >conftest.$ac_ext <<_ACEOF
  4764. /* confdefs.h. */
  4765. _ACEOF
  4766. cat confdefs.h >>conftest.$ac_ext
  4767. cat >>conftest.$ac_ext <<_ACEOF
  4768. /* end confdefs.h. */
  4769. $ac_includes_default
  4770. #include <$ac_header>
  4771. _ACEOF
  4772. rm -f conftest.$ac_objext
  4773. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4774. (eval $ac_compile) 2>conftest.er1
  4775. ac_status=$?
  4776. grep -v '^ *+' conftest.er1 >conftest.err
  4777. rm -f conftest.er1
  4778. cat conftest.err >&5
  4779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4780. (exit $ac_status); } &&
  4781. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4783. (eval $ac_try) 2>&5
  4784. ac_status=$?
  4785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4786. (exit $ac_status); }; } &&
  4787. { ac_try='test -s conftest.$ac_objext'
  4788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4789. (eval $ac_try) 2>&5
  4790. ac_status=$?
  4791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4792. (exit $ac_status); }; }; then
  4793. ac_header_compiler=yes
  4794. else
  4795. echo "$as_me: failed program was:" >&5
  4796. sed 's/^/| /' conftest.$ac_ext >&5
  4797. ac_header_compiler=no
  4798. fi
  4799. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4800. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4801. echo "${ECHO_T}$ac_header_compiler" >&6
  4802. # Is the header present?
  4803. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4804. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4805. cat >conftest.$ac_ext <<_ACEOF
  4806. /* confdefs.h. */
  4807. _ACEOF
  4808. cat confdefs.h >>conftest.$ac_ext
  4809. cat >>conftest.$ac_ext <<_ACEOF
  4810. /* end confdefs.h. */
  4811. #include <$ac_header>
  4812. _ACEOF
  4813. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4814. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4815. ac_status=$?
  4816. grep -v '^ *+' conftest.er1 >conftest.err
  4817. rm -f conftest.er1
  4818. cat conftest.err >&5
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); } >/dev/null; then
  4821. if test -s conftest.err; then
  4822. ac_cpp_err=$ac_c_preproc_warn_flag
  4823. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4824. else
  4825. ac_cpp_err=
  4826. fi
  4827. else
  4828. ac_cpp_err=yes
  4829. fi
  4830. if test -z "$ac_cpp_err"; then
  4831. ac_header_preproc=yes
  4832. else
  4833. echo "$as_me: failed program was:" >&5
  4834. sed 's/^/| /' conftest.$ac_ext >&5
  4835. ac_header_preproc=no
  4836. fi
  4837. rm -f conftest.err conftest.$ac_ext
  4838. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4839. echo "${ECHO_T}$ac_header_preproc" >&6
  4840. # So? What about this header?
  4841. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4842. yes:no: )
  4843. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4844. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4845. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4846. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4847. ac_header_preproc=yes
  4848. ;;
  4849. no:yes:* )
  4850. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4851. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4852. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4853. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4854. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4855. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4856. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4857. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4858. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4859. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4860. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4861. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4862. (
  4863. cat <<\_ASBOX
  4864. ## ------------------------------------------- ##
  4865. ## Report this to debian-dpkg@lists.debian.org ##
  4866. ## ------------------------------------------- ##
  4867. _ASBOX
  4868. ) |
  4869. sed "s/^/$as_me: WARNING: /" >&2
  4870. ;;
  4871. esac
  4872. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4873. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4874. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4875. echo $ECHO_N "(cached) $ECHO_C" >&6
  4876. else
  4877. eval "$as_ac_Header=\$ac_header_preproc"
  4878. fi
  4879. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4880. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4881. fi
  4882. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4883. cat >>confdefs.h <<_ACEOF
  4884. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4885. _ACEOF
  4886. fi
  4887. done
  4888. for ac_func in getpagesize
  4889. do
  4890. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4891. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4892. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4893. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4894. echo $ECHO_N "(cached) $ECHO_C" >&6
  4895. else
  4896. cat >conftest.$ac_ext <<_ACEOF
  4897. /* confdefs.h. */
  4898. _ACEOF
  4899. cat confdefs.h >>conftest.$ac_ext
  4900. cat >>conftest.$ac_ext <<_ACEOF
  4901. /* end confdefs.h. */
  4902. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4903. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4904. #define $ac_func innocuous_$ac_func
  4905. /* System header to define __stub macros and hopefully few prototypes,
  4906. which can conflict with char $ac_func (); below.
  4907. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4908. <limits.h> exists even on freestanding compilers. */
  4909. #ifdef __STDC__
  4910. # include <limits.h>
  4911. #else
  4912. # include <assert.h>
  4913. #endif
  4914. #undef $ac_func
  4915. /* Override any gcc2 internal prototype to avoid an error. */
  4916. #ifdef __cplusplus
  4917. extern "C"
  4918. {
  4919. #endif
  4920. /* We use char because int might match the return type of a gcc2
  4921. builtin and then its argument prototype would still apply. */
  4922. char $ac_func ();
  4923. /* The GNU C library defines this for functions which it implements
  4924. to always fail with ENOSYS. Some functions are actually named
  4925. something starting with __ and the normal name is an alias. */
  4926. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4927. choke me
  4928. #else
  4929. char (*f) () = $ac_func;
  4930. #endif
  4931. #ifdef __cplusplus
  4932. }
  4933. #endif
  4934. int
  4935. main ()
  4936. {
  4937. return f != $ac_func;
  4938. ;
  4939. return 0;
  4940. }
  4941. _ACEOF
  4942. rm -f conftest.$ac_objext conftest$ac_exeext
  4943. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4944. (eval $ac_link) 2>conftest.er1
  4945. ac_status=$?
  4946. grep -v '^ *+' conftest.er1 >conftest.err
  4947. rm -f conftest.er1
  4948. cat conftest.err >&5
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); } &&
  4951. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4953. (eval $ac_try) 2>&5
  4954. ac_status=$?
  4955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4956. (exit $ac_status); }; } &&
  4957. { ac_try='test -s conftest$ac_exeext'
  4958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4959. (eval $ac_try) 2>&5
  4960. ac_status=$?
  4961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4962. (exit $ac_status); }; }; then
  4963. eval "$as_ac_var=yes"
  4964. else
  4965. echo "$as_me: failed program was:" >&5
  4966. sed 's/^/| /' conftest.$ac_ext >&5
  4967. eval "$as_ac_var=no"
  4968. fi
  4969. rm -f conftest.err conftest.$ac_objext \
  4970. conftest$ac_exeext conftest.$ac_ext
  4971. fi
  4972. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4973. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4974. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4975. cat >>confdefs.h <<_ACEOF
  4976. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4977. _ACEOF
  4978. fi
  4979. done
  4980. echo "$as_me:$LINENO: checking for working mmap" >&5
  4981. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  4982. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  4983. echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985. if test "$cross_compiling" = yes; then
  4986. ac_cv_func_mmap_fixed_mapped=no
  4987. else
  4988. cat >conftest.$ac_ext <<_ACEOF
  4989. /* confdefs.h. */
  4990. _ACEOF
  4991. cat confdefs.h >>conftest.$ac_ext
  4992. cat >>conftest.$ac_ext <<_ACEOF
  4993. /* end confdefs.h. */
  4994. $ac_includes_default
  4995. /* malloc might have been renamed as rpl_malloc. */
  4996. #undef malloc
  4997. /* Thanks to Mike Haertel and Jim Avera for this test.
  4998. Here is a matrix of mmap possibilities:
  4999. mmap private not fixed
  5000. mmap private fixed at somewhere currently unmapped
  5001. mmap private fixed at somewhere already mapped
  5002. mmap shared not fixed
  5003. mmap shared fixed at somewhere currently unmapped
  5004. mmap shared fixed at somewhere already mapped
  5005. For private mappings, we should verify that changes cannot be read()
  5006. back from the file, nor mmap's back from the file at a different
  5007. address. (There have been systems where private was not correctly
  5008. implemented like the infamous i386 svr4.0, and systems where the
  5009. VM page cache was not coherent with the file system buffer cache
  5010. like early versions of FreeBSD and possibly contemporary NetBSD.)
  5011. For shared mappings, we should conversely verify that changes get
  5012. propagated back to all the places they're supposed to be.
  5013. Grep wants private fixed already mapped.
  5014. The main things grep needs to know about mmap are:
  5015. * does it exist and is it safe to write into the mmap'd area
  5016. * how to use it (BSD variants) */
  5017. #include <fcntl.h>
  5018. #include <sys/mman.h>
  5019. #if !STDC_HEADERS && !HAVE_STDLIB_H
  5020. char *malloc ();
  5021. #endif
  5022. /* This mess was copied from the GNU getpagesize.h. */
  5023. #if !HAVE_GETPAGESIZE
  5024. /* Assume that all systems that can run configure have sys/param.h. */
  5025. # if !HAVE_SYS_PARAM_H
  5026. # define HAVE_SYS_PARAM_H 1
  5027. # endif
  5028. # ifdef _SC_PAGESIZE
  5029. # define getpagesize() sysconf(_SC_PAGESIZE)
  5030. # else /* no _SC_PAGESIZE */
  5031. # if HAVE_SYS_PARAM_H
  5032. # include <sys/param.h>
  5033. # ifdef EXEC_PAGESIZE
  5034. # define getpagesize() EXEC_PAGESIZE
  5035. # else /* no EXEC_PAGESIZE */
  5036. # ifdef NBPG
  5037. # define getpagesize() NBPG * CLSIZE
  5038. # ifndef CLSIZE
  5039. # define CLSIZE 1
  5040. # endif /* no CLSIZE */
  5041. # else /* no NBPG */
  5042. # ifdef NBPC
  5043. # define getpagesize() NBPC
  5044. # else /* no NBPC */
  5045. # ifdef PAGESIZE
  5046. # define getpagesize() PAGESIZE
  5047. # endif /* PAGESIZE */
  5048. # endif /* no NBPC */
  5049. # endif /* no NBPG */
  5050. # endif /* no EXEC_PAGESIZE */
  5051. # else /* no HAVE_SYS_PARAM_H */
  5052. # define getpagesize() 8192 /* punt totally */
  5053. # endif /* no HAVE_SYS_PARAM_H */
  5054. # endif /* no _SC_PAGESIZE */
  5055. #endif /* no HAVE_GETPAGESIZE */
  5056. int
  5057. main ()
  5058. {
  5059. char *data, *data2, *data3;
  5060. int i, pagesize;
  5061. int fd;
  5062. pagesize = getpagesize ();
  5063. /* First, make a file with some known garbage in it. */
  5064. data = (char *) malloc (pagesize);
  5065. if (!data)
  5066. exit (1);
  5067. for (i = 0; i < pagesize; ++i)
  5068. *(data + i) = rand ();
  5069. umask (0);
  5070. fd = creat ("conftest.mmap", 0600);
  5071. if (fd < 0)
  5072. exit (1);
  5073. if (write (fd, data, pagesize) != pagesize)
  5074. exit (1);
  5075. close (fd);
  5076. /* Next, try to mmap the file at a fixed address which already has
  5077. something else allocated at it. If we can, also make sure that
  5078. we see the same garbage. */
  5079. fd = open ("conftest.mmap", O_RDWR);
  5080. if (fd < 0)
  5081. exit (1);
  5082. data2 = (char *) malloc (2 * pagesize);
  5083. if (!data2)
  5084. exit (1);
  5085. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  5086. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  5087. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5088. exit (1);
  5089. for (i = 0; i < pagesize; ++i)
  5090. if (*(data + i) != *(data2 + i))
  5091. exit (1);
  5092. /* Finally, make sure that changes to the mapped area do not
  5093. percolate back to the file as seen by read(). (This is a bug on
  5094. some variants of i386 svr4.0.) */
  5095. for (i = 0; i < pagesize; ++i)
  5096. *(data2 + i) = *(data2 + i) + 1;
  5097. data3 = (char *) malloc (pagesize);
  5098. if (!data3)
  5099. exit (1);
  5100. if (read (fd, data3, pagesize) != pagesize)
  5101. exit (1);
  5102. for (i = 0; i < pagesize; ++i)
  5103. if (*(data + i) != *(data3 + i))
  5104. exit (1);
  5105. close (fd);
  5106. exit (0);
  5107. }
  5108. _ACEOF
  5109. rm -f conftest$ac_exeext
  5110. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5111. (eval $ac_link) 2>&5
  5112. ac_status=$?
  5113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5114. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5116. (eval $ac_try) 2>&5
  5117. ac_status=$?
  5118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5119. (exit $ac_status); }; }; then
  5120. ac_cv_func_mmap_fixed_mapped=yes
  5121. else
  5122. echo "$as_me: program exited with status $ac_status" >&5
  5123. echo "$as_me: failed program was:" >&5
  5124. sed 's/^/| /' conftest.$ac_ext >&5
  5125. ( exit $ac_status )
  5126. ac_cv_func_mmap_fixed_mapped=no
  5127. fi
  5128. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5129. fi
  5130. fi
  5131. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  5132. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  5133. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5134. cat >>confdefs.h <<\_ACEOF
  5135. #define HAVE_MMAP 1
  5136. _ACEOF
  5137. fi
  5138. rm -f conftest.mmap
  5139. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  5140. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  5141. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  5142. echo $ECHO_N "(cached) $ECHO_C" >&6
  5143. else
  5144. cat >conftest.$ac_ext <<_ACEOF
  5145. /* confdefs.h. */
  5146. _ACEOF
  5147. cat confdefs.h >>conftest.$ac_ext
  5148. cat >>conftest.$ac_ext <<_ACEOF
  5149. /* end confdefs.h. */
  5150. #include <features.h>
  5151. #ifdef __GNU_LIBRARY__
  5152. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  5153. Lucky GNU user
  5154. #endif
  5155. #endif
  5156. _ACEOF
  5157. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5158. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  5159. ac_cv_gnu_library_2_1=yes
  5160. else
  5161. ac_cv_gnu_library_2_1=no
  5162. fi
  5163. rm -f conftest*
  5164. fi
  5165. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  5166. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  5167. GLIBC21="$ac_cv_gnu_library_2_1"
  5168. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  5169. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  5170. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  5171. echo $ECHO_N "(cached) $ECHO_C" >&6
  5172. else
  5173. if test "$cross_compiling" = yes; then
  5174. # Guess based on the CPU.
  5175. case "$host_cpu" in
  5176. alpha* | i3456786 | m68k | s390*)
  5177. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  5178. *)
  5179. gt_cv_int_divbyzero_sigfpe="guessing no";;
  5180. esac
  5181. else
  5182. cat >conftest.$ac_ext <<_ACEOF
  5183. /* confdefs.h. */
  5184. _ACEOF
  5185. cat confdefs.h >>conftest.$ac_ext
  5186. cat >>conftest.$ac_ext <<_ACEOF
  5187. /* end confdefs.h. */
  5188. #include <stdlib.h>
  5189. #include <signal.h>
  5190. static void
  5191. #ifdef __cplusplus
  5192. sigfpe_handler (int sig)
  5193. #else
  5194. sigfpe_handler (sig) int sig;
  5195. #endif
  5196. {
  5197. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  5198. exit (sig != SIGFPE);
  5199. }
  5200. int x = 1;
  5201. int y = 0;
  5202. int z;
  5203. int nan;
  5204. int main ()
  5205. {
  5206. signal (SIGFPE, sigfpe_handler);
  5207. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  5208. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  5209. signal (SIGTRAP, sigfpe_handler);
  5210. #endif
  5211. /* Linux/SPARC yields signal SIGILL. */
  5212. #if defined (__sparc__) && defined (__linux__)
  5213. signal (SIGILL, sigfpe_handler);
  5214. #endif
  5215. z = x / y;
  5216. nan = y / y;
  5217. exit (1);
  5218. }
  5219. _ACEOF
  5220. rm -f conftest$ac_exeext
  5221. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5222. (eval $ac_link) 2>&5
  5223. ac_status=$?
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5227. (eval $ac_try) 2>&5
  5228. ac_status=$?
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); }; }; then
  5231. gt_cv_int_divbyzero_sigfpe=yes
  5232. else
  5233. echo "$as_me: program exited with status $ac_status" >&5
  5234. echo "$as_me: failed program was:" >&5
  5235. sed 's/^/| /' conftest.$ac_ext >&5
  5236. ( exit $ac_status )
  5237. gt_cv_int_divbyzero_sigfpe=no
  5238. fi
  5239. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5240. fi
  5241. fi
  5242. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  5243. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  5244. case "$gt_cv_int_divbyzero_sigfpe" in
  5245. *yes) value=1;;
  5246. *) value=0;;
  5247. esac
  5248. cat >>confdefs.h <<_ACEOF
  5249. #define INTDIV0_RAISES_SIGFPE $value
  5250. _ACEOF
  5251. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  5252. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  5253. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  5254. echo $ECHO_N "(cached) $ECHO_C" >&6
  5255. else
  5256. cat >conftest.$ac_ext <<_ACEOF
  5257. /* confdefs.h. */
  5258. _ACEOF
  5259. cat confdefs.h >>conftest.$ac_ext
  5260. cat >>conftest.$ac_ext <<_ACEOF
  5261. /* end confdefs.h. */
  5262. unsigned long long ull = 1ULL; int i = 63;
  5263. int
  5264. main ()
  5265. {
  5266. unsigned long long ullmax = (unsigned long long) -1;
  5267. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  5268. ;
  5269. return 0;
  5270. }
  5271. _ACEOF
  5272. rm -f conftest.$ac_objext conftest$ac_exeext
  5273. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5274. (eval $ac_link) 2>conftest.er1
  5275. ac_status=$?
  5276. grep -v '^ *+' conftest.er1 >conftest.err
  5277. rm -f conftest.er1
  5278. cat conftest.err >&5
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); } &&
  5281. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5283. (eval $ac_try) 2>&5
  5284. ac_status=$?
  5285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5286. (exit $ac_status); }; } &&
  5287. { ac_try='test -s conftest$ac_exeext'
  5288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5289. (eval $ac_try) 2>&5
  5290. ac_status=$?
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); }; }; then
  5293. ac_cv_type_unsigned_long_long=yes
  5294. else
  5295. echo "$as_me: failed program was:" >&5
  5296. sed 's/^/| /' conftest.$ac_ext >&5
  5297. ac_cv_type_unsigned_long_long=no
  5298. fi
  5299. rm -f conftest.err conftest.$ac_objext \
  5300. conftest$ac_exeext conftest.$ac_ext
  5301. fi
  5302. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  5303. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  5304. if test $ac_cv_type_unsigned_long_long = yes; then
  5305. cat >>confdefs.h <<\_ACEOF
  5306. #define HAVE_UNSIGNED_LONG_LONG 1
  5307. _ACEOF
  5308. fi
  5309. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  5310. test $ac_cv_type_unsigned_long_long = yes \
  5311. && ac_type='unsigned long long' \
  5312. || ac_type='unsigned long'
  5313. cat >>confdefs.h <<_ACEOF
  5314. #define uintmax_t $ac_type
  5315. _ACEOF
  5316. else
  5317. cat >>confdefs.h <<\_ACEOF
  5318. #define HAVE_UINTMAX_T 1
  5319. _ACEOF
  5320. fi
  5321. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  5322. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  5323. if test "${gt_cv_header_inttypes_h+set}" = set; then
  5324. echo $ECHO_N "(cached) $ECHO_C" >&6
  5325. else
  5326. cat >conftest.$ac_ext <<_ACEOF
  5327. /* confdefs.h. */
  5328. _ACEOF
  5329. cat confdefs.h >>conftest.$ac_ext
  5330. cat >>conftest.$ac_ext <<_ACEOF
  5331. /* end confdefs.h. */
  5332. #include <sys/types.h>
  5333. #include <inttypes.h>
  5334. int
  5335. main ()
  5336. {
  5337. ;
  5338. return 0;
  5339. }
  5340. _ACEOF
  5341. rm -f conftest.$ac_objext
  5342. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5343. (eval $ac_compile) 2>conftest.er1
  5344. ac_status=$?
  5345. grep -v '^ *+' conftest.er1 >conftest.err
  5346. rm -f conftest.er1
  5347. cat conftest.err >&5
  5348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5349. (exit $ac_status); } &&
  5350. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5352. (eval $ac_try) 2>&5
  5353. ac_status=$?
  5354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5355. (exit $ac_status); }; } &&
  5356. { ac_try='test -s conftest.$ac_objext'
  5357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5358. (eval $ac_try) 2>&5
  5359. ac_status=$?
  5360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5361. (exit $ac_status); }; }; then
  5362. gt_cv_header_inttypes_h=yes
  5363. else
  5364. echo "$as_me: failed program was:" >&5
  5365. sed 's/^/| /' conftest.$ac_ext >&5
  5366. gt_cv_header_inttypes_h=no
  5367. fi
  5368. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5369. fi
  5370. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  5371. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  5372. if test $gt_cv_header_inttypes_h = yes; then
  5373. cat >>confdefs.h <<_ACEOF
  5374. #define HAVE_INTTYPES_H 1
  5375. _ACEOF
  5376. fi
  5377. if test $gt_cv_header_inttypes_h = yes; then
  5378. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  5379. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  5380. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  5381. echo $ECHO_N "(cached) $ECHO_C" >&6
  5382. else
  5383. cat >conftest.$ac_ext <<_ACEOF
  5384. /* confdefs.h. */
  5385. _ACEOF
  5386. cat confdefs.h >>conftest.$ac_ext
  5387. cat >>conftest.$ac_ext <<_ACEOF
  5388. /* end confdefs.h. */
  5389. #include <inttypes.h>
  5390. #ifdef PRId32
  5391. char *p = PRId32;
  5392. #endif
  5393. int
  5394. main ()
  5395. {
  5396. ;
  5397. return 0;
  5398. }
  5399. _ACEOF
  5400. rm -f conftest.$ac_objext
  5401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5402. (eval $ac_compile) 2>conftest.er1
  5403. ac_status=$?
  5404. grep -v '^ *+' conftest.er1 >conftest.err
  5405. rm -f conftest.er1
  5406. cat conftest.err >&5
  5407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5408. (exit $ac_status); } &&
  5409. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5411. (eval $ac_try) 2>&5
  5412. ac_status=$?
  5413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5414. (exit $ac_status); }; } &&
  5415. { ac_try='test -s conftest.$ac_objext'
  5416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5417. (eval $ac_try) 2>&5
  5418. ac_status=$?
  5419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5420. (exit $ac_status); }; }; then
  5421. gt_cv_inttypes_pri_broken=no
  5422. else
  5423. echo "$as_me: failed program was:" >&5
  5424. sed 's/^/| /' conftest.$ac_ext >&5
  5425. gt_cv_inttypes_pri_broken=yes
  5426. fi
  5427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5428. fi
  5429. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  5430. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  5431. fi
  5432. if test "$gt_cv_inttypes_pri_broken" = yes; then
  5433. cat >>confdefs.h <<_ACEOF
  5434. #define PRI_MACROS_BROKEN 1
  5435. _ACEOF
  5436. fi
  5437. for ac_header in stdint.h
  5438. do
  5439. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5441. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5442. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5443. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5444. echo $ECHO_N "(cached) $ECHO_C" >&6
  5445. fi
  5446. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5447. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5448. else
  5449. # Is the header compilable?
  5450. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5451. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5452. cat >conftest.$ac_ext <<_ACEOF
  5453. /* confdefs.h. */
  5454. _ACEOF
  5455. cat confdefs.h >>conftest.$ac_ext
  5456. cat >>conftest.$ac_ext <<_ACEOF
  5457. /* end confdefs.h. */
  5458. $ac_includes_default
  5459. #include <$ac_header>
  5460. _ACEOF
  5461. rm -f conftest.$ac_objext
  5462. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5463. (eval $ac_compile) 2>conftest.er1
  5464. ac_status=$?
  5465. grep -v '^ *+' conftest.er1 >conftest.err
  5466. rm -f conftest.er1
  5467. cat conftest.err >&5
  5468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. (exit $ac_status); } &&
  5470. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5472. (eval $ac_try) 2>&5
  5473. ac_status=$?
  5474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. (exit $ac_status); }; } &&
  5476. { ac_try='test -s conftest.$ac_objext'
  5477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5478. (eval $ac_try) 2>&5
  5479. ac_status=$?
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); }; }; then
  5482. ac_header_compiler=yes
  5483. else
  5484. echo "$as_me: failed program was:" >&5
  5485. sed 's/^/| /' conftest.$ac_ext >&5
  5486. ac_header_compiler=no
  5487. fi
  5488. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5489. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5490. echo "${ECHO_T}$ac_header_compiler" >&6
  5491. # Is the header present?
  5492. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5493. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5494. cat >conftest.$ac_ext <<_ACEOF
  5495. /* confdefs.h. */
  5496. _ACEOF
  5497. cat confdefs.h >>conftest.$ac_ext
  5498. cat >>conftest.$ac_ext <<_ACEOF
  5499. /* end confdefs.h. */
  5500. #include <$ac_header>
  5501. _ACEOF
  5502. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5503. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5504. ac_status=$?
  5505. grep -v '^ *+' conftest.er1 >conftest.err
  5506. rm -f conftest.er1
  5507. cat conftest.err >&5
  5508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5509. (exit $ac_status); } >/dev/null; then
  5510. if test -s conftest.err; then
  5511. ac_cpp_err=$ac_c_preproc_warn_flag
  5512. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5513. else
  5514. ac_cpp_err=
  5515. fi
  5516. else
  5517. ac_cpp_err=yes
  5518. fi
  5519. if test -z "$ac_cpp_err"; then
  5520. ac_header_preproc=yes
  5521. else
  5522. echo "$as_me: failed program was:" >&5
  5523. sed 's/^/| /' conftest.$ac_ext >&5
  5524. ac_header_preproc=no
  5525. fi
  5526. rm -f conftest.err conftest.$ac_ext
  5527. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5528. echo "${ECHO_T}$ac_header_preproc" >&6
  5529. # So? What about this header?
  5530. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5531. yes:no: )
  5532. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5533. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5534. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5535. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5536. ac_header_preproc=yes
  5537. ;;
  5538. no:yes:* )
  5539. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5540. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5541. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5542. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5543. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5544. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5545. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5546. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5547. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5548. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5549. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5550. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5551. (
  5552. cat <<\_ASBOX
  5553. ## ------------------------------------------- ##
  5554. ## Report this to debian-dpkg@lists.debian.org ##
  5555. ## ------------------------------------------- ##
  5556. _ASBOX
  5557. ) |
  5558. sed "s/^/$as_me: WARNING: /" >&2
  5559. ;;
  5560. esac
  5561. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5562. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5563. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5564. echo $ECHO_N "(cached) $ECHO_C" >&6
  5565. else
  5566. eval "$as_ac_Header=\$ac_header_preproc"
  5567. fi
  5568. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5569. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5570. fi
  5571. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5572. cat >>confdefs.h <<_ACEOF
  5573. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5574. _ACEOF
  5575. fi
  5576. done
  5577. echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  5578. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
  5579. result=
  5580. cat >conftest.$ac_ext <<_ACEOF
  5581. /* confdefs.h. */
  5582. _ACEOF
  5583. cat confdefs.h >>conftest.$ac_ext
  5584. cat >>conftest.$ac_ext <<_ACEOF
  5585. /* end confdefs.h. */
  5586. #include <limits.h>
  5587. #if HAVE_STDINT_H
  5588. #include <stdint.h>
  5589. #endif
  5590. #ifdef SIZE_MAX
  5591. Found it
  5592. #endif
  5593. _ACEOF
  5594. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5595. $EGREP "Found it" >/dev/null 2>&1; then
  5596. result=yes
  5597. fi
  5598. rm -f conftest*
  5599. if test -z "$result"; then
  5600. if test "$cross_compiling" = yes; then
  5601. # Depending upon the size, compute the lo and hi bounds.
  5602. cat >conftest.$ac_ext <<_ACEOF
  5603. /* confdefs.h. */
  5604. _ACEOF
  5605. cat confdefs.h >>conftest.$ac_ext
  5606. cat >>conftest.$ac_ext <<_ACEOF
  5607. /* end confdefs.h. */
  5608. #include <stddef.h>
  5609. int
  5610. main ()
  5611. {
  5612. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
  5613. test_array [0] = 0
  5614. ;
  5615. return 0;
  5616. }
  5617. _ACEOF
  5618. rm -f conftest.$ac_objext
  5619. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5620. (eval $ac_compile) 2>conftest.er1
  5621. ac_status=$?
  5622. grep -v '^ *+' conftest.er1 >conftest.err
  5623. rm -f conftest.er1
  5624. cat conftest.err >&5
  5625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5626. (exit $ac_status); } &&
  5627. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5629. (eval $ac_try) 2>&5
  5630. ac_status=$?
  5631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5632. (exit $ac_status); }; } &&
  5633. { ac_try='test -s conftest.$ac_objext'
  5634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5635. (eval $ac_try) 2>&5
  5636. ac_status=$?
  5637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5638. (exit $ac_status); }; }; then
  5639. ac_lo=0 ac_mid=0
  5640. while :; do
  5641. cat >conftest.$ac_ext <<_ACEOF
  5642. /* confdefs.h. */
  5643. _ACEOF
  5644. cat confdefs.h >>conftest.$ac_ext
  5645. cat >>conftest.$ac_ext <<_ACEOF
  5646. /* end confdefs.h. */
  5647. #include <stddef.h>
  5648. int
  5649. main ()
  5650. {
  5651. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  5652. test_array [0] = 0
  5653. ;
  5654. return 0;
  5655. }
  5656. _ACEOF
  5657. rm -f conftest.$ac_objext
  5658. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5659. (eval $ac_compile) 2>conftest.er1
  5660. ac_status=$?
  5661. grep -v '^ *+' conftest.er1 >conftest.err
  5662. rm -f conftest.er1
  5663. cat conftest.err >&5
  5664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5665. (exit $ac_status); } &&
  5666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5668. (eval $ac_try) 2>&5
  5669. ac_status=$?
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); }; } &&
  5672. { ac_try='test -s conftest.$ac_objext'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; }; then
  5678. ac_hi=$ac_mid; break
  5679. else
  5680. echo "$as_me: failed program was:" >&5
  5681. sed 's/^/| /' conftest.$ac_ext >&5
  5682. ac_lo=`expr $ac_mid + 1`
  5683. if test $ac_lo -le $ac_mid; then
  5684. ac_lo= ac_hi=
  5685. break
  5686. fi
  5687. ac_mid=`expr 2 '*' $ac_mid + 1`
  5688. fi
  5689. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5690. done
  5691. else
  5692. echo "$as_me: failed program was:" >&5
  5693. sed 's/^/| /' conftest.$ac_ext >&5
  5694. cat >conftest.$ac_ext <<_ACEOF
  5695. /* confdefs.h. */
  5696. _ACEOF
  5697. cat confdefs.h >>conftest.$ac_ext
  5698. cat >>conftest.$ac_ext <<_ACEOF
  5699. /* end confdefs.h. */
  5700. #include <stddef.h>
  5701. int
  5702. main ()
  5703. {
  5704. static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
  5705. test_array [0] = 0
  5706. ;
  5707. return 0;
  5708. }
  5709. _ACEOF
  5710. rm -f conftest.$ac_objext
  5711. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5712. (eval $ac_compile) 2>conftest.er1
  5713. ac_status=$?
  5714. grep -v '^ *+' conftest.er1 >conftest.err
  5715. rm -f conftest.er1
  5716. cat conftest.err >&5
  5717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5718. (exit $ac_status); } &&
  5719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5721. (eval $ac_try) 2>&5
  5722. ac_status=$?
  5723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5724. (exit $ac_status); }; } &&
  5725. { ac_try='test -s conftest.$ac_objext'
  5726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5727. (eval $ac_try) 2>&5
  5728. ac_status=$?
  5729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5730. (exit $ac_status); }; }; then
  5731. ac_hi=-1 ac_mid=-1
  5732. while :; do
  5733. cat >conftest.$ac_ext <<_ACEOF
  5734. /* confdefs.h. */
  5735. _ACEOF
  5736. cat confdefs.h >>conftest.$ac_ext
  5737. cat >>conftest.$ac_ext <<_ACEOF
  5738. /* end confdefs.h. */
  5739. #include <stddef.h>
  5740. int
  5741. main ()
  5742. {
  5743. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
  5744. test_array [0] = 0
  5745. ;
  5746. return 0;
  5747. }
  5748. _ACEOF
  5749. rm -f conftest.$ac_objext
  5750. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5751. (eval $ac_compile) 2>conftest.er1
  5752. ac_status=$?
  5753. grep -v '^ *+' conftest.er1 >conftest.err
  5754. rm -f conftest.er1
  5755. cat conftest.err >&5
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); } &&
  5758. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5760. (eval $ac_try) 2>&5
  5761. ac_status=$?
  5762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763. (exit $ac_status); }; } &&
  5764. { ac_try='test -s conftest.$ac_objext'
  5765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5766. (eval $ac_try) 2>&5
  5767. ac_status=$?
  5768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5769. (exit $ac_status); }; }; then
  5770. ac_lo=$ac_mid; break
  5771. else
  5772. echo "$as_me: failed program was:" >&5
  5773. sed 's/^/| /' conftest.$ac_ext >&5
  5774. ac_hi=`expr '(' $ac_mid ')' - 1`
  5775. if test $ac_mid -le $ac_hi; then
  5776. ac_lo= ac_hi=
  5777. break
  5778. fi
  5779. ac_mid=`expr 2 '*' $ac_mid`
  5780. fi
  5781. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5782. done
  5783. else
  5784. echo "$as_me: failed program was:" >&5
  5785. sed 's/^/| /' conftest.$ac_ext >&5
  5786. ac_lo= ac_hi=
  5787. fi
  5788. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5789. fi
  5790. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5791. # Binary search between lo and hi bounds.
  5792. while test "x$ac_lo" != "x$ac_hi"; do
  5793. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5794. cat >conftest.$ac_ext <<_ACEOF
  5795. /* confdefs.h. */
  5796. _ACEOF
  5797. cat confdefs.h >>conftest.$ac_ext
  5798. cat >>conftest.$ac_ext <<_ACEOF
  5799. /* end confdefs.h. */
  5800. #include <stddef.h>
  5801. int
  5802. main ()
  5803. {
  5804. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  5805. test_array [0] = 0
  5806. ;
  5807. return 0;
  5808. }
  5809. _ACEOF
  5810. rm -f conftest.$ac_objext
  5811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5812. (eval $ac_compile) 2>conftest.er1
  5813. ac_status=$?
  5814. grep -v '^ *+' conftest.er1 >conftest.err
  5815. rm -f conftest.er1
  5816. cat conftest.err >&5
  5817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5818. (exit $ac_status); } &&
  5819. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5821. (eval $ac_try) 2>&5
  5822. ac_status=$?
  5823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5824. (exit $ac_status); }; } &&
  5825. { ac_try='test -s conftest.$ac_objext'
  5826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5827. (eval $ac_try) 2>&5
  5828. ac_status=$?
  5829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5830. (exit $ac_status); }; }; then
  5831. ac_hi=$ac_mid
  5832. else
  5833. echo "$as_me: failed program was:" >&5
  5834. sed 's/^/| /' conftest.$ac_ext >&5
  5835. ac_lo=`expr '(' $ac_mid ')' + 1`
  5836. fi
  5837. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5838. done
  5839. case $ac_lo in
  5840. ?*) res_hi=$ac_lo;;
  5841. '') result=? ;;
  5842. esac
  5843. else
  5844. if test "$cross_compiling" = yes; then
  5845. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5846. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5847. { (exit 1); exit 1; }; }
  5848. else
  5849. cat >conftest.$ac_ext <<_ACEOF
  5850. /* confdefs.h. */
  5851. _ACEOF
  5852. cat confdefs.h >>conftest.$ac_ext
  5853. cat >>conftest.$ac_ext <<_ACEOF
  5854. /* end confdefs.h. */
  5855. #include <stddef.h>
  5856. long longval () { return ~(size_t)0 / 10; }
  5857. unsigned long ulongval () { return ~(size_t)0 / 10; }
  5858. #include <stdio.h>
  5859. #include <stdlib.h>
  5860. int
  5861. main ()
  5862. {
  5863. FILE *f = fopen ("conftest.val", "w");
  5864. if (! f)
  5865. exit (1);
  5866. if ((~(size_t)0 / 10) < 0)
  5867. {
  5868. long i = longval ();
  5869. if (i != (~(size_t)0 / 10))
  5870. exit (1);
  5871. fprintf (f, "%ld\n", i);
  5872. }
  5873. else
  5874. {
  5875. unsigned long i = ulongval ();
  5876. if (i != (~(size_t)0 / 10))
  5877. exit (1);
  5878. fprintf (f, "%lu\n", i);
  5879. }
  5880. exit (ferror (f) || fclose (f) != 0);
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. rm -f conftest$ac_exeext
  5886. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5887. (eval $ac_link) 2>&5
  5888. ac_status=$?
  5889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5890. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5892. (eval $ac_try) 2>&5
  5893. ac_status=$?
  5894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895. (exit $ac_status); }; }; then
  5896. res_hi=`cat conftest.val`
  5897. else
  5898. echo "$as_me: program exited with status $ac_status" >&5
  5899. echo "$as_me: failed program was:" >&5
  5900. sed 's/^/| /' conftest.$ac_ext >&5
  5901. ( exit $ac_status )
  5902. result=?
  5903. fi
  5904. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5905. fi
  5906. fi
  5907. rm -f conftest.val
  5908. if test "$cross_compiling" = yes; then
  5909. # Depending upon the size, compute the lo and hi bounds.
  5910. cat >conftest.$ac_ext <<_ACEOF
  5911. /* confdefs.h. */
  5912. _ACEOF
  5913. cat confdefs.h >>conftest.$ac_ext
  5914. cat >>conftest.$ac_ext <<_ACEOF
  5915. /* end confdefs.h. */
  5916. #include <stddef.h>
  5917. int
  5918. main ()
  5919. {
  5920. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
  5921. test_array [0] = 0
  5922. ;
  5923. return 0;
  5924. }
  5925. _ACEOF
  5926. rm -f conftest.$ac_objext
  5927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5928. (eval $ac_compile) 2>conftest.er1
  5929. ac_status=$?
  5930. grep -v '^ *+' conftest.er1 >conftest.err
  5931. rm -f conftest.er1
  5932. cat conftest.err >&5
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } &&
  5935. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5937. (eval $ac_try) 2>&5
  5938. ac_status=$?
  5939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5940. (exit $ac_status); }; } &&
  5941. { ac_try='test -s conftest.$ac_objext'
  5942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5943. (eval $ac_try) 2>&5
  5944. ac_status=$?
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); }; }; then
  5947. ac_lo=0 ac_mid=0
  5948. while :; do
  5949. cat >conftest.$ac_ext <<_ACEOF
  5950. /* confdefs.h. */
  5951. _ACEOF
  5952. cat confdefs.h >>conftest.$ac_ext
  5953. cat >>conftest.$ac_ext <<_ACEOF
  5954. /* end confdefs.h. */
  5955. #include <stddef.h>
  5956. int
  5957. main ()
  5958. {
  5959. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  5960. test_array [0] = 0
  5961. ;
  5962. return 0;
  5963. }
  5964. _ACEOF
  5965. rm -f conftest.$ac_objext
  5966. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5967. (eval $ac_compile) 2>conftest.er1
  5968. ac_status=$?
  5969. grep -v '^ *+' conftest.er1 >conftest.err
  5970. rm -f conftest.er1
  5971. cat conftest.err >&5
  5972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); } &&
  5974. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5976. (eval $ac_try) 2>&5
  5977. ac_status=$?
  5978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5979. (exit $ac_status); }; } &&
  5980. { ac_try='test -s conftest.$ac_objext'
  5981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5982. (eval $ac_try) 2>&5
  5983. ac_status=$?
  5984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5985. (exit $ac_status); }; }; then
  5986. ac_hi=$ac_mid; break
  5987. else
  5988. echo "$as_me: failed program was:" >&5
  5989. sed 's/^/| /' conftest.$ac_ext >&5
  5990. ac_lo=`expr $ac_mid + 1`
  5991. if test $ac_lo -le $ac_mid; then
  5992. ac_lo= ac_hi=
  5993. break
  5994. fi
  5995. ac_mid=`expr 2 '*' $ac_mid + 1`
  5996. fi
  5997. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5998. done
  5999. else
  6000. echo "$as_me: failed program was:" >&5
  6001. sed 's/^/| /' conftest.$ac_ext >&5
  6002. cat >conftest.$ac_ext <<_ACEOF
  6003. /* confdefs.h. */
  6004. _ACEOF
  6005. cat confdefs.h >>conftest.$ac_ext
  6006. cat >>conftest.$ac_ext <<_ACEOF
  6007. /* end confdefs.h. */
  6008. #include <stddef.h>
  6009. int
  6010. main ()
  6011. {
  6012. static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
  6013. test_array [0] = 0
  6014. ;
  6015. return 0;
  6016. }
  6017. _ACEOF
  6018. rm -f conftest.$ac_objext
  6019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6020. (eval $ac_compile) 2>conftest.er1
  6021. ac_status=$?
  6022. grep -v '^ *+' conftest.er1 >conftest.err
  6023. rm -f conftest.er1
  6024. cat conftest.err >&5
  6025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6026. (exit $ac_status); } &&
  6027. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6029. (eval $ac_try) 2>&5
  6030. ac_status=$?
  6031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. (exit $ac_status); }; } &&
  6033. { ac_try='test -s conftest.$ac_objext'
  6034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6035. (eval $ac_try) 2>&5
  6036. ac_status=$?
  6037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6038. (exit $ac_status); }; }; then
  6039. ac_hi=-1 ac_mid=-1
  6040. while :; do
  6041. cat >conftest.$ac_ext <<_ACEOF
  6042. /* confdefs.h. */
  6043. _ACEOF
  6044. cat confdefs.h >>conftest.$ac_ext
  6045. cat >>conftest.$ac_ext <<_ACEOF
  6046. /* end confdefs.h. */
  6047. #include <stddef.h>
  6048. int
  6049. main ()
  6050. {
  6051. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
  6052. test_array [0] = 0
  6053. ;
  6054. return 0;
  6055. }
  6056. _ACEOF
  6057. rm -f conftest.$ac_objext
  6058. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6059. (eval $ac_compile) 2>conftest.er1
  6060. ac_status=$?
  6061. grep -v '^ *+' conftest.er1 >conftest.err
  6062. rm -f conftest.er1
  6063. cat conftest.err >&5
  6064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6065. (exit $ac_status); } &&
  6066. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6068. (eval $ac_try) 2>&5
  6069. ac_status=$?
  6070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6071. (exit $ac_status); }; } &&
  6072. { ac_try='test -s conftest.$ac_objext'
  6073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6074. (eval $ac_try) 2>&5
  6075. ac_status=$?
  6076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6077. (exit $ac_status); }; }; then
  6078. ac_lo=$ac_mid; break
  6079. else
  6080. echo "$as_me: failed program was:" >&5
  6081. sed 's/^/| /' conftest.$ac_ext >&5
  6082. ac_hi=`expr '(' $ac_mid ')' - 1`
  6083. if test $ac_mid -le $ac_hi; then
  6084. ac_lo= ac_hi=
  6085. break
  6086. fi
  6087. ac_mid=`expr 2 '*' $ac_mid`
  6088. fi
  6089. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6090. done
  6091. else
  6092. echo "$as_me: failed program was:" >&5
  6093. sed 's/^/| /' conftest.$ac_ext >&5
  6094. ac_lo= ac_hi=
  6095. fi
  6096. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6097. fi
  6098. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6099. # Binary search between lo and hi bounds.
  6100. while test "x$ac_lo" != "x$ac_hi"; do
  6101. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6102. cat >conftest.$ac_ext <<_ACEOF
  6103. /* confdefs.h. */
  6104. _ACEOF
  6105. cat confdefs.h >>conftest.$ac_ext
  6106. cat >>conftest.$ac_ext <<_ACEOF
  6107. /* end confdefs.h. */
  6108. #include <stddef.h>
  6109. int
  6110. main ()
  6111. {
  6112. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  6113. test_array [0] = 0
  6114. ;
  6115. return 0;
  6116. }
  6117. _ACEOF
  6118. rm -f conftest.$ac_objext
  6119. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6120. (eval $ac_compile) 2>conftest.er1
  6121. ac_status=$?
  6122. grep -v '^ *+' conftest.er1 >conftest.err
  6123. rm -f conftest.er1
  6124. cat conftest.err >&5
  6125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); } &&
  6127. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6129. (eval $ac_try) 2>&5
  6130. ac_status=$?
  6131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6132. (exit $ac_status); }; } &&
  6133. { ac_try='test -s conftest.$ac_objext'
  6134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6135. (eval $ac_try) 2>&5
  6136. ac_status=$?
  6137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138. (exit $ac_status); }; }; then
  6139. ac_hi=$ac_mid
  6140. else
  6141. echo "$as_me: failed program was:" >&5
  6142. sed 's/^/| /' conftest.$ac_ext >&5
  6143. ac_lo=`expr '(' $ac_mid ')' + 1`
  6144. fi
  6145. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6146. done
  6147. case $ac_lo in
  6148. ?*) res_lo=$ac_lo;;
  6149. '') result=? ;;
  6150. esac
  6151. else
  6152. if test "$cross_compiling" = yes; then
  6153. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6154. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6155. { (exit 1); exit 1; }; }
  6156. else
  6157. cat >conftest.$ac_ext <<_ACEOF
  6158. /* confdefs.h. */
  6159. _ACEOF
  6160. cat confdefs.h >>conftest.$ac_ext
  6161. cat >>conftest.$ac_ext <<_ACEOF
  6162. /* end confdefs.h. */
  6163. #include <stddef.h>
  6164. long longval () { return ~(size_t)0 % 10; }
  6165. unsigned long ulongval () { return ~(size_t)0 % 10; }
  6166. #include <stdio.h>
  6167. #include <stdlib.h>
  6168. int
  6169. main ()
  6170. {
  6171. FILE *f = fopen ("conftest.val", "w");
  6172. if (! f)
  6173. exit (1);
  6174. if ((~(size_t)0 % 10) < 0)
  6175. {
  6176. long i = longval ();
  6177. if (i != (~(size_t)0 % 10))
  6178. exit (1);
  6179. fprintf (f, "%ld\n", i);
  6180. }
  6181. else
  6182. {
  6183. unsigned long i = ulongval ();
  6184. if (i != (~(size_t)0 % 10))
  6185. exit (1);
  6186. fprintf (f, "%lu\n", i);
  6187. }
  6188. exit (ferror (f) || fclose (f) != 0);
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. rm -f conftest$ac_exeext
  6194. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6195. (eval $ac_link) 2>&5
  6196. ac_status=$?
  6197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6198. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6200. (eval $ac_try) 2>&5
  6201. ac_status=$?
  6202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6203. (exit $ac_status); }; }; then
  6204. res_lo=`cat conftest.val`
  6205. else
  6206. echo "$as_me: program exited with status $ac_status" >&5
  6207. echo "$as_me: failed program was:" >&5
  6208. sed 's/^/| /' conftest.$ac_ext >&5
  6209. ( exit $ac_status )
  6210. result=?
  6211. fi
  6212. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6213. fi
  6214. fi
  6215. rm -f conftest.val
  6216. if test "$cross_compiling" = yes; then
  6217. # Depending upon the size, compute the lo and hi bounds.
  6218. cat >conftest.$ac_ext <<_ACEOF
  6219. /* confdefs.h. */
  6220. _ACEOF
  6221. cat confdefs.h >>conftest.$ac_ext
  6222. cat >>conftest.$ac_ext <<_ACEOF
  6223. /* end confdefs.h. */
  6224. #include <stddef.h>
  6225. int
  6226. main ()
  6227. {
  6228. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  6229. test_array [0] = 0
  6230. ;
  6231. return 0;
  6232. }
  6233. _ACEOF
  6234. rm -f conftest.$ac_objext
  6235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6236. (eval $ac_compile) 2>conftest.er1
  6237. ac_status=$?
  6238. grep -v '^ *+' conftest.er1 >conftest.err
  6239. rm -f conftest.er1
  6240. cat conftest.err >&5
  6241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6242. (exit $ac_status); } &&
  6243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6245. (eval $ac_try) 2>&5
  6246. ac_status=$?
  6247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6248. (exit $ac_status); }; } &&
  6249. { ac_try='test -s conftest.$ac_objext'
  6250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6251. (eval $ac_try) 2>&5
  6252. ac_status=$?
  6253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6254. (exit $ac_status); }; }; then
  6255. ac_lo=0 ac_mid=0
  6256. while :; do
  6257. cat >conftest.$ac_ext <<_ACEOF
  6258. /* confdefs.h. */
  6259. _ACEOF
  6260. cat confdefs.h >>conftest.$ac_ext
  6261. cat >>conftest.$ac_ext <<_ACEOF
  6262. /* end confdefs.h. */
  6263. #include <stddef.h>
  6264. int
  6265. main ()
  6266. {
  6267. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  6268. test_array [0] = 0
  6269. ;
  6270. return 0;
  6271. }
  6272. _ACEOF
  6273. rm -f conftest.$ac_objext
  6274. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6275. (eval $ac_compile) 2>conftest.er1
  6276. ac_status=$?
  6277. grep -v '^ *+' conftest.er1 >conftest.err
  6278. rm -f conftest.er1
  6279. cat conftest.err >&5
  6280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6281. (exit $ac_status); } &&
  6282. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6284. (eval $ac_try) 2>&5
  6285. ac_status=$?
  6286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6287. (exit $ac_status); }; } &&
  6288. { ac_try='test -s conftest.$ac_objext'
  6289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6290. (eval $ac_try) 2>&5
  6291. ac_status=$?
  6292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6293. (exit $ac_status); }; }; then
  6294. ac_hi=$ac_mid; break
  6295. else
  6296. echo "$as_me: failed program was:" >&5
  6297. sed 's/^/| /' conftest.$ac_ext >&5
  6298. ac_lo=`expr $ac_mid + 1`
  6299. if test $ac_lo -le $ac_mid; then
  6300. ac_lo= ac_hi=
  6301. break
  6302. fi
  6303. ac_mid=`expr 2 '*' $ac_mid + 1`
  6304. fi
  6305. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6306. done
  6307. else
  6308. echo "$as_me: failed program was:" >&5
  6309. sed 's/^/| /' conftest.$ac_ext >&5
  6310. cat >conftest.$ac_ext <<_ACEOF
  6311. /* confdefs.h. */
  6312. _ACEOF
  6313. cat confdefs.h >>conftest.$ac_ext
  6314. cat >>conftest.$ac_ext <<_ACEOF
  6315. /* end confdefs.h. */
  6316. #include <stddef.h>
  6317. int
  6318. main ()
  6319. {
  6320. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  6321. test_array [0] = 0
  6322. ;
  6323. return 0;
  6324. }
  6325. _ACEOF
  6326. rm -f conftest.$ac_objext
  6327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6328. (eval $ac_compile) 2>conftest.er1
  6329. ac_status=$?
  6330. grep -v '^ *+' conftest.er1 >conftest.err
  6331. rm -f conftest.er1
  6332. cat conftest.err >&5
  6333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6334. (exit $ac_status); } &&
  6335. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6337. (eval $ac_try) 2>&5
  6338. ac_status=$?
  6339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6340. (exit $ac_status); }; } &&
  6341. { ac_try='test -s conftest.$ac_objext'
  6342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6343. (eval $ac_try) 2>&5
  6344. ac_status=$?
  6345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6346. (exit $ac_status); }; }; then
  6347. ac_hi=-1 ac_mid=-1
  6348. while :; do
  6349. cat >conftest.$ac_ext <<_ACEOF
  6350. /* confdefs.h. */
  6351. _ACEOF
  6352. cat confdefs.h >>conftest.$ac_ext
  6353. cat >>conftest.$ac_ext <<_ACEOF
  6354. /* end confdefs.h. */
  6355. #include <stddef.h>
  6356. int
  6357. main ()
  6358. {
  6359. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  6360. test_array [0] = 0
  6361. ;
  6362. return 0;
  6363. }
  6364. _ACEOF
  6365. rm -f conftest.$ac_objext
  6366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6367. (eval $ac_compile) 2>conftest.er1
  6368. ac_status=$?
  6369. grep -v '^ *+' conftest.er1 >conftest.err
  6370. rm -f conftest.er1
  6371. cat conftest.err >&5
  6372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6373. (exit $ac_status); } &&
  6374. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6376. (eval $ac_try) 2>&5
  6377. ac_status=$?
  6378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6379. (exit $ac_status); }; } &&
  6380. { ac_try='test -s conftest.$ac_objext'
  6381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6382. (eval $ac_try) 2>&5
  6383. ac_status=$?
  6384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6385. (exit $ac_status); }; }; then
  6386. ac_lo=$ac_mid; break
  6387. else
  6388. echo "$as_me: failed program was:" >&5
  6389. sed 's/^/| /' conftest.$ac_ext >&5
  6390. ac_hi=`expr '(' $ac_mid ')' - 1`
  6391. if test $ac_mid -le $ac_hi; then
  6392. ac_lo= ac_hi=
  6393. break
  6394. fi
  6395. ac_mid=`expr 2 '*' $ac_mid`
  6396. fi
  6397. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6398. done
  6399. else
  6400. echo "$as_me: failed program was:" >&5
  6401. sed 's/^/| /' conftest.$ac_ext >&5
  6402. ac_lo= ac_hi=
  6403. fi
  6404. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6405. fi
  6406. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6407. # Binary search between lo and hi bounds.
  6408. while test "x$ac_lo" != "x$ac_hi"; do
  6409. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. #include <stddef.h>
  6417. int
  6418. main ()
  6419. {
  6420. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  6421. test_array [0] = 0
  6422. ;
  6423. return 0;
  6424. }
  6425. _ACEOF
  6426. rm -f conftest.$ac_objext
  6427. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6428. (eval $ac_compile) 2>conftest.er1
  6429. ac_status=$?
  6430. grep -v '^ *+' conftest.er1 >conftest.err
  6431. rm -f conftest.er1
  6432. cat conftest.err >&5
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); } &&
  6435. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6437. (eval $ac_try) 2>&5
  6438. ac_status=$?
  6439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6440. (exit $ac_status); }; } &&
  6441. { ac_try='test -s conftest.$ac_objext'
  6442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6443. (eval $ac_try) 2>&5
  6444. ac_status=$?
  6445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6446. (exit $ac_status); }; }; then
  6447. ac_hi=$ac_mid
  6448. else
  6449. echo "$as_me: failed program was:" >&5
  6450. sed 's/^/| /' conftest.$ac_ext >&5
  6451. ac_lo=`expr '(' $ac_mid ')' + 1`
  6452. fi
  6453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6454. done
  6455. case $ac_lo in
  6456. ?*) fits_in_uint=$ac_lo;;
  6457. '') result=? ;;
  6458. esac
  6459. else
  6460. if test "$cross_compiling" = yes; then
  6461. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6462. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6463. { (exit 1); exit 1; }; }
  6464. else
  6465. cat >conftest.$ac_ext <<_ACEOF
  6466. /* confdefs.h. */
  6467. _ACEOF
  6468. cat confdefs.h >>conftest.$ac_ext
  6469. cat >>conftest.$ac_ext <<_ACEOF
  6470. /* end confdefs.h. */
  6471. #include <stddef.h>
  6472. long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  6473. unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  6474. #include <stdio.h>
  6475. #include <stdlib.h>
  6476. int
  6477. main ()
  6478. {
  6479. FILE *f = fopen ("conftest.val", "w");
  6480. if (! f)
  6481. exit (1);
  6482. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  6483. {
  6484. long i = longval ();
  6485. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  6486. exit (1);
  6487. fprintf (f, "%ld\n", i);
  6488. }
  6489. else
  6490. {
  6491. unsigned long i = ulongval ();
  6492. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  6493. exit (1);
  6494. fprintf (f, "%lu\n", i);
  6495. }
  6496. exit (ferror (f) || fclose (f) != 0);
  6497. ;
  6498. return 0;
  6499. }
  6500. _ACEOF
  6501. rm -f conftest$ac_exeext
  6502. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6503. (eval $ac_link) 2>&5
  6504. ac_status=$?
  6505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6506. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6508. (eval $ac_try) 2>&5
  6509. ac_status=$?
  6510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6511. (exit $ac_status); }; }; then
  6512. fits_in_uint=`cat conftest.val`
  6513. else
  6514. echo "$as_me: program exited with status $ac_status" >&5
  6515. echo "$as_me: failed program was:" >&5
  6516. sed 's/^/| /' conftest.$ac_ext >&5
  6517. ( exit $ac_status )
  6518. result=?
  6519. fi
  6520. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6521. fi
  6522. fi
  6523. rm -f conftest.val
  6524. if test "$fits_in_uint" = 1; then
  6525. cat >conftest.$ac_ext <<_ACEOF
  6526. /* confdefs.h. */
  6527. _ACEOF
  6528. cat confdefs.h >>conftest.$ac_ext
  6529. cat >>conftest.$ac_ext <<_ACEOF
  6530. /* end confdefs.h. */
  6531. #include <stddef.h>
  6532. extern size_t foo;
  6533. extern unsigned long foo;
  6534. int
  6535. main ()
  6536. {
  6537. ;
  6538. return 0;
  6539. }
  6540. _ACEOF
  6541. rm -f conftest.$ac_objext
  6542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6543. (eval $ac_compile) 2>conftest.er1
  6544. ac_status=$?
  6545. grep -v '^ *+' conftest.er1 >conftest.err
  6546. rm -f conftest.er1
  6547. cat conftest.err >&5
  6548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6549. (exit $ac_status); } &&
  6550. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6552. (eval $ac_try) 2>&5
  6553. ac_status=$?
  6554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6555. (exit $ac_status); }; } &&
  6556. { ac_try='test -s conftest.$ac_objext'
  6557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6558. (eval $ac_try) 2>&5
  6559. ac_status=$?
  6560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6561. (exit $ac_status); }; }; then
  6562. fits_in_uint=0
  6563. else
  6564. echo "$as_me: failed program was:" >&5
  6565. sed 's/^/| /' conftest.$ac_ext >&5
  6566. fi
  6567. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6568. fi
  6569. if test -z "$result"; then
  6570. if test "$fits_in_uint" = 1; then
  6571. result="$res_hi$res_lo"U
  6572. else
  6573. result="$res_hi$res_lo"UL
  6574. fi
  6575. else
  6576. result='~(size_t)0'
  6577. fi
  6578. fi
  6579. echo "$as_me:$LINENO: result: $result" >&5
  6580. echo "${ECHO_T}$result" >&6
  6581. if test "$result" != yes; then
  6582. cat >>confdefs.h <<_ACEOF
  6583. #define SIZE_MAX $result
  6584. _ACEOF
  6585. fi
  6586. for ac_header in stdint.h
  6587. do
  6588. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6589. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6590. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6591. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6592. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6593. echo $ECHO_N "(cached) $ECHO_C" >&6
  6594. fi
  6595. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6596. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6597. else
  6598. # Is the header compilable?
  6599. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6600. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6601. cat >conftest.$ac_ext <<_ACEOF
  6602. /* confdefs.h. */
  6603. _ACEOF
  6604. cat confdefs.h >>conftest.$ac_ext
  6605. cat >>conftest.$ac_ext <<_ACEOF
  6606. /* end confdefs.h. */
  6607. $ac_includes_default
  6608. #include <$ac_header>
  6609. _ACEOF
  6610. rm -f conftest.$ac_objext
  6611. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6612. (eval $ac_compile) 2>conftest.er1
  6613. ac_status=$?
  6614. grep -v '^ *+' conftest.er1 >conftest.err
  6615. rm -f conftest.er1
  6616. cat conftest.err >&5
  6617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618. (exit $ac_status); } &&
  6619. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6621. (eval $ac_try) 2>&5
  6622. ac_status=$?
  6623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6624. (exit $ac_status); }; } &&
  6625. { ac_try='test -s conftest.$ac_objext'
  6626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6627. (eval $ac_try) 2>&5
  6628. ac_status=$?
  6629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6630. (exit $ac_status); }; }; then
  6631. ac_header_compiler=yes
  6632. else
  6633. echo "$as_me: failed program was:" >&5
  6634. sed 's/^/| /' conftest.$ac_ext >&5
  6635. ac_header_compiler=no
  6636. fi
  6637. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6638. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6639. echo "${ECHO_T}$ac_header_compiler" >&6
  6640. # Is the header present?
  6641. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6642. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6643. cat >conftest.$ac_ext <<_ACEOF
  6644. /* confdefs.h. */
  6645. _ACEOF
  6646. cat confdefs.h >>conftest.$ac_ext
  6647. cat >>conftest.$ac_ext <<_ACEOF
  6648. /* end confdefs.h. */
  6649. #include <$ac_header>
  6650. _ACEOF
  6651. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6652. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6653. ac_status=$?
  6654. grep -v '^ *+' conftest.er1 >conftest.err
  6655. rm -f conftest.er1
  6656. cat conftest.err >&5
  6657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6658. (exit $ac_status); } >/dev/null; then
  6659. if test -s conftest.err; then
  6660. ac_cpp_err=$ac_c_preproc_warn_flag
  6661. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6662. else
  6663. ac_cpp_err=
  6664. fi
  6665. else
  6666. ac_cpp_err=yes
  6667. fi
  6668. if test -z "$ac_cpp_err"; then
  6669. ac_header_preproc=yes
  6670. else
  6671. echo "$as_me: failed program was:" >&5
  6672. sed 's/^/| /' conftest.$ac_ext >&5
  6673. ac_header_preproc=no
  6674. fi
  6675. rm -f conftest.err conftest.$ac_ext
  6676. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6677. echo "${ECHO_T}$ac_header_preproc" >&6
  6678. # So? What about this header?
  6679. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6680. yes:no: )
  6681. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6682. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6683. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6684. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6685. ac_header_preproc=yes
  6686. ;;
  6687. no:yes:* )
  6688. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6689. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6690. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6691. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6692. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6693. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6694. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6695. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6696. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6697. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6698. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6699. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6700. (
  6701. cat <<\_ASBOX
  6702. ## ------------------------------------------- ##
  6703. ## Report this to debian-dpkg@lists.debian.org ##
  6704. ## ------------------------------------------- ##
  6705. _ASBOX
  6706. ) |
  6707. sed "s/^/$as_me: WARNING: /" >&2
  6708. ;;
  6709. esac
  6710. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6711. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6712. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6713. echo $ECHO_N "(cached) $ECHO_C" >&6
  6714. else
  6715. eval "$as_ac_Header=\$ac_header_preproc"
  6716. fi
  6717. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6718. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6719. fi
  6720. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6721. cat >>confdefs.h <<_ACEOF
  6722. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6723. _ACEOF
  6724. fi
  6725. done
  6726. if test "X$prefix" = "XNONE"; then
  6727. acl_final_prefix="$ac_default_prefix"
  6728. else
  6729. acl_final_prefix="$prefix"
  6730. fi
  6731. if test "X$exec_prefix" = "XNONE"; then
  6732. acl_final_exec_prefix='${prefix}'
  6733. else
  6734. acl_final_exec_prefix="$exec_prefix"
  6735. fi
  6736. acl_save_prefix="$prefix"
  6737. prefix="$acl_final_prefix"
  6738. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6739. prefix="$acl_save_prefix"
  6740. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6741. if test "${with_gnu_ld+set}" = set; then
  6742. withval="$with_gnu_ld"
  6743. test "$withval" = no || with_gnu_ld=yes
  6744. else
  6745. with_gnu_ld=no
  6746. fi;
  6747. # Prepare PATH_SEPARATOR.
  6748. # The user is always right.
  6749. if test "${PATH_SEPARATOR+set}" != set; then
  6750. echo "#! /bin/sh" >conf$$.sh
  6751. echo "exit 0" >>conf$$.sh
  6752. chmod +x conf$$.sh
  6753. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6754. PATH_SEPARATOR=';'
  6755. else
  6756. PATH_SEPARATOR=:
  6757. fi
  6758. rm -f conf$$.sh
  6759. fi
  6760. ac_prog=ld
  6761. if test "$GCC" = yes; then
  6762. # Check if gcc -print-prog-name=ld gives a path.
  6763. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6764. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6765. case $host in
  6766. *-*-mingw*)
  6767. # gcc leaves a trailing carriage return which upsets mingw
  6768. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6769. *)
  6770. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6771. esac
  6772. case $ac_prog in
  6773. # Accept absolute paths.
  6774. [\\/]* | [A-Za-z]:[\\/]*)
  6775. re_direlt='/[^/][^/]*/\.\./'
  6776. # Canonicalize the path of ld
  6777. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6778. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6779. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6780. done
  6781. test -z "$LD" && LD="$ac_prog"
  6782. ;;
  6783. "")
  6784. # If it fails, then pretend we aren't using GCC.
  6785. ac_prog=ld
  6786. ;;
  6787. *)
  6788. # If it is relative, then search for the first ld in PATH.
  6789. with_gnu_ld=unknown
  6790. ;;
  6791. esac
  6792. elif test "$with_gnu_ld" = yes; then
  6793. echo "$as_me:$LINENO: checking for GNU ld" >&5
  6794. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6795. else
  6796. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6797. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6798. fi
  6799. if test "${acl_cv_path_LD+set}" = set; then
  6800. echo $ECHO_N "(cached) $ECHO_C" >&6
  6801. else
  6802. if test -z "$LD"; then
  6803. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6804. for ac_dir in $PATH; do
  6805. test -z "$ac_dir" && ac_dir=.
  6806. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6807. acl_cv_path_LD="$ac_dir/$ac_prog"
  6808. # Check to see if the program is GNU ld. I'd rather use --version,
  6809. # but apparently some GNU ld's only accept -v.
  6810. # Break only if it was the GNU/non-GNU ld that we prefer.
  6811. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  6812. *GNU* | *'with BFD'*)
  6813. test "$with_gnu_ld" != no && break ;;
  6814. *)
  6815. test "$with_gnu_ld" != yes && break ;;
  6816. esac
  6817. fi
  6818. done
  6819. IFS="$ac_save_ifs"
  6820. else
  6821. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6822. fi
  6823. fi
  6824. LD="$acl_cv_path_LD"
  6825. if test -n "$LD"; then
  6826. echo "$as_me:$LINENO: result: $LD" >&5
  6827. echo "${ECHO_T}$LD" >&6
  6828. else
  6829. echo "$as_me:$LINENO: result: no" >&5
  6830. echo "${ECHO_T}no" >&6
  6831. fi
  6832. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6833. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6834. { (exit 1); exit 1; }; }
  6835. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6836. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6837. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  6838. echo $ECHO_N "(cached) $ECHO_C" >&6
  6839. else
  6840. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6841. case `$LD -v 2>&1 </dev/null` in
  6842. *GNU* | *'with BFD'*)
  6843. acl_cv_prog_gnu_ld=yes ;;
  6844. *)
  6845. acl_cv_prog_gnu_ld=no ;;
  6846. esac
  6847. fi
  6848. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  6849. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  6850. with_gnu_ld=$acl_cv_prog_gnu_ld
  6851. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  6852. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  6853. if test "${acl_cv_rpath+set}" = set; then
  6854. echo $ECHO_N "(cached) $ECHO_C" >&6
  6855. else
  6856. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6857. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6858. . ./conftest.sh
  6859. rm -f ./conftest.sh
  6860. acl_cv_rpath=done
  6861. fi
  6862. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  6863. echo "${ECHO_T}$acl_cv_rpath" >&6
  6864. wl="$acl_cv_wl"
  6865. libext="$acl_cv_libext"
  6866. shlibext="$acl_cv_shlibext"
  6867. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6868. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6869. hardcode_direct="$acl_cv_hardcode_direct"
  6870. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6871. # Check whether --enable-rpath or --disable-rpath was given.
  6872. if test "${enable_rpath+set}" = set; then
  6873. enableval="$enable_rpath"
  6874. :
  6875. else
  6876. enable_rpath=yes
  6877. fi;
  6878. use_additional=yes
  6879. acl_save_prefix="$prefix"
  6880. prefix="$acl_final_prefix"
  6881. acl_save_exec_prefix="$exec_prefix"
  6882. exec_prefix="$acl_final_exec_prefix"
  6883. eval additional_includedir=\"$includedir\"
  6884. eval additional_libdir=\"$libdir\"
  6885. exec_prefix="$acl_save_exec_prefix"
  6886. prefix="$acl_save_prefix"
  6887. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  6888. if test "${with_libiconv_prefix+set}" = set; then
  6889. withval="$with_libiconv_prefix"
  6890. if test "X$withval" = "Xno"; then
  6891. use_additional=no
  6892. else
  6893. if test "X$withval" = "X"; then
  6894. acl_save_prefix="$prefix"
  6895. prefix="$acl_final_prefix"
  6896. acl_save_exec_prefix="$exec_prefix"
  6897. exec_prefix="$acl_final_exec_prefix"
  6898. eval additional_includedir=\"$includedir\"
  6899. eval additional_libdir=\"$libdir\"
  6900. exec_prefix="$acl_save_exec_prefix"
  6901. prefix="$acl_save_prefix"
  6902. else
  6903. additional_includedir="$withval/include"
  6904. additional_libdir="$withval/lib"
  6905. fi
  6906. fi
  6907. fi;
  6908. LIBICONV=
  6909. LTLIBICONV=
  6910. INCICONV=
  6911. rpathdirs=
  6912. ltrpathdirs=
  6913. names_already_handled=
  6914. names_next_round='iconv '
  6915. while test -n "$names_next_round"; do
  6916. names_this_round="$names_next_round"
  6917. names_next_round=
  6918. for name in $names_this_round; do
  6919. already_handled=
  6920. for n in $names_already_handled; do
  6921. if test "$n" = "$name"; then
  6922. already_handled=yes
  6923. break
  6924. fi
  6925. done
  6926. if test -z "$already_handled"; then
  6927. names_already_handled="$names_already_handled $name"
  6928. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6929. eval value=\"\$HAVE_LIB$uppername\"
  6930. if test -n "$value"; then
  6931. if test "$value" = yes; then
  6932. eval value=\"\$LIB$uppername\"
  6933. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  6934. eval value=\"\$LTLIB$uppername\"
  6935. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  6936. else
  6937. :
  6938. fi
  6939. else
  6940. found_dir=
  6941. found_la=
  6942. found_so=
  6943. found_a=
  6944. if test $use_additional = yes; then
  6945. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6946. found_dir="$additional_libdir"
  6947. found_so="$additional_libdir/lib$name.$shlibext"
  6948. if test -f "$additional_libdir/lib$name.la"; then
  6949. found_la="$additional_libdir/lib$name.la"
  6950. fi
  6951. else
  6952. if test -f "$additional_libdir/lib$name.$libext"; then
  6953. found_dir="$additional_libdir"
  6954. found_a="$additional_libdir/lib$name.$libext"
  6955. if test -f "$additional_libdir/lib$name.la"; then
  6956. found_la="$additional_libdir/lib$name.la"
  6957. fi
  6958. fi
  6959. fi
  6960. fi
  6961. if test "X$found_dir" = "X"; then
  6962. for x in $LDFLAGS $LTLIBICONV; do
  6963. acl_save_prefix="$prefix"
  6964. prefix="$acl_final_prefix"
  6965. acl_save_exec_prefix="$exec_prefix"
  6966. exec_prefix="$acl_final_exec_prefix"
  6967. eval x=\"$x\"
  6968. exec_prefix="$acl_save_exec_prefix"
  6969. prefix="$acl_save_prefix"
  6970. case "$x" in
  6971. -L*)
  6972. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6973. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6974. found_dir="$dir"
  6975. found_so="$dir/lib$name.$shlibext"
  6976. if test -f "$dir/lib$name.la"; then
  6977. found_la="$dir/lib$name.la"
  6978. fi
  6979. else
  6980. if test -f "$dir/lib$name.$libext"; then
  6981. found_dir="$dir"
  6982. found_a="$dir/lib$name.$libext"
  6983. if test -f "$dir/lib$name.la"; then
  6984. found_la="$dir/lib$name.la"
  6985. fi
  6986. fi
  6987. fi
  6988. ;;
  6989. esac
  6990. if test "X$found_dir" != "X"; then
  6991. break
  6992. fi
  6993. done
  6994. fi
  6995. if test "X$found_dir" != "X"; then
  6996. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  6997. if test "X$found_so" != "X"; then
  6998. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6999. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7000. else
  7001. haveit=
  7002. for x in $ltrpathdirs; do
  7003. if test "X$x" = "X$found_dir"; then
  7004. haveit=yes
  7005. break
  7006. fi
  7007. done
  7008. if test -z "$haveit"; then
  7009. ltrpathdirs="$ltrpathdirs $found_dir"
  7010. fi
  7011. if test "$hardcode_direct" = yes; then
  7012. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7013. else
  7014. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7015. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7016. haveit=
  7017. for x in $rpathdirs; do
  7018. if test "X$x" = "X$found_dir"; then
  7019. haveit=yes
  7020. break
  7021. fi
  7022. done
  7023. if test -z "$haveit"; then
  7024. rpathdirs="$rpathdirs $found_dir"
  7025. fi
  7026. else
  7027. haveit=
  7028. for x in $LDFLAGS $LIBICONV; do
  7029. acl_save_prefix="$prefix"
  7030. prefix="$acl_final_prefix"
  7031. acl_save_exec_prefix="$exec_prefix"
  7032. exec_prefix="$acl_final_exec_prefix"
  7033. eval x=\"$x\"
  7034. exec_prefix="$acl_save_exec_prefix"
  7035. prefix="$acl_save_prefix"
  7036. if test "X$x" = "X-L$found_dir"; then
  7037. haveit=yes
  7038. break
  7039. fi
  7040. done
  7041. if test -z "$haveit"; then
  7042. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7043. fi
  7044. if test "$hardcode_minus_L" != no; then
  7045. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7046. else
  7047. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7048. fi
  7049. fi
  7050. fi
  7051. fi
  7052. else
  7053. if test "X$found_a" != "X"; then
  7054. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7055. else
  7056. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7057. fi
  7058. fi
  7059. additional_includedir=
  7060. case "$found_dir" in
  7061. */lib | */lib/)
  7062. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7063. additional_includedir="$basedir/include"
  7064. ;;
  7065. esac
  7066. if test "X$additional_includedir" != "X"; then
  7067. if test "X$additional_includedir" != "X/usr/include"; then
  7068. haveit=
  7069. if test "X$additional_includedir" = "X/usr/local/include"; then
  7070. if test -n "$GCC"; then
  7071. case $host_os in
  7072. linux*) haveit=yes;;
  7073. esac
  7074. fi
  7075. fi
  7076. if test -z "$haveit"; then
  7077. for x in $CPPFLAGS $INCICONV; do
  7078. acl_save_prefix="$prefix"
  7079. prefix="$acl_final_prefix"
  7080. acl_save_exec_prefix="$exec_prefix"
  7081. exec_prefix="$acl_final_exec_prefix"
  7082. eval x=\"$x\"
  7083. exec_prefix="$acl_save_exec_prefix"
  7084. prefix="$acl_save_prefix"
  7085. if test "X$x" = "X-I$additional_includedir"; then
  7086. haveit=yes
  7087. break
  7088. fi
  7089. done
  7090. if test -z "$haveit"; then
  7091. if test -d "$additional_includedir"; then
  7092. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7093. fi
  7094. fi
  7095. fi
  7096. fi
  7097. fi
  7098. if test -n "$found_la"; then
  7099. save_libdir="$libdir"
  7100. case "$found_la" in
  7101. */* | *\\*) . "$found_la" ;;
  7102. *) . "./$found_la" ;;
  7103. esac
  7104. libdir="$save_libdir"
  7105. for dep in $dependency_libs; do
  7106. case "$dep" in
  7107. -L*)
  7108. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7109. if test "X$additional_libdir" != "X/usr/lib"; then
  7110. haveit=
  7111. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7112. if test -n "$GCC"; then
  7113. case $host_os in
  7114. linux*) haveit=yes;;
  7115. esac
  7116. fi
  7117. fi
  7118. if test -z "$haveit"; then
  7119. haveit=
  7120. for x in $LDFLAGS $LIBICONV; do
  7121. acl_save_prefix="$prefix"
  7122. prefix="$acl_final_prefix"
  7123. acl_save_exec_prefix="$exec_prefix"
  7124. exec_prefix="$acl_final_exec_prefix"
  7125. eval x=\"$x\"
  7126. exec_prefix="$acl_save_exec_prefix"
  7127. prefix="$acl_save_prefix"
  7128. if test "X$x" = "X-L$additional_libdir"; then
  7129. haveit=yes
  7130. break
  7131. fi
  7132. done
  7133. if test -z "$haveit"; then
  7134. if test -d "$additional_libdir"; then
  7135. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7136. fi
  7137. fi
  7138. haveit=
  7139. for x in $LDFLAGS $LTLIBICONV; do
  7140. acl_save_prefix="$prefix"
  7141. prefix="$acl_final_prefix"
  7142. acl_save_exec_prefix="$exec_prefix"
  7143. exec_prefix="$acl_final_exec_prefix"
  7144. eval x=\"$x\"
  7145. exec_prefix="$acl_save_exec_prefix"
  7146. prefix="$acl_save_prefix"
  7147. if test "X$x" = "X-L$additional_libdir"; then
  7148. haveit=yes
  7149. break
  7150. fi
  7151. done
  7152. if test -z "$haveit"; then
  7153. if test -d "$additional_libdir"; then
  7154. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7155. fi
  7156. fi
  7157. fi
  7158. fi
  7159. ;;
  7160. -R*)
  7161. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7162. if test "$enable_rpath" != no; then
  7163. haveit=
  7164. for x in $rpathdirs; do
  7165. if test "X$x" = "X$dir"; then
  7166. haveit=yes
  7167. break
  7168. fi
  7169. done
  7170. if test -z "$haveit"; then
  7171. rpathdirs="$rpathdirs $dir"
  7172. fi
  7173. haveit=
  7174. for x in $ltrpathdirs; do
  7175. if test "X$x" = "X$dir"; then
  7176. haveit=yes
  7177. break
  7178. fi
  7179. done
  7180. if test -z "$haveit"; then
  7181. ltrpathdirs="$ltrpathdirs $dir"
  7182. fi
  7183. fi
  7184. ;;
  7185. -l*)
  7186. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7187. ;;
  7188. *.la)
  7189. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7190. ;;
  7191. *)
  7192. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7193. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7194. ;;
  7195. esac
  7196. done
  7197. fi
  7198. else
  7199. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7200. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7201. fi
  7202. fi
  7203. fi
  7204. done
  7205. done
  7206. if test "X$rpathdirs" != "X"; then
  7207. if test -n "$hardcode_libdir_separator"; then
  7208. alldirs=
  7209. for found_dir in $rpathdirs; do
  7210. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7211. done
  7212. acl_save_libdir="$libdir"
  7213. libdir="$alldirs"
  7214. eval flag=\"$hardcode_libdir_flag_spec\"
  7215. libdir="$acl_save_libdir"
  7216. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7217. else
  7218. for found_dir in $rpathdirs; do
  7219. acl_save_libdir="$libdir"
  7220. libdir="$found_dir"
  7221. eval flag=\"$hardcode_libdir_flag_spec\"
  7222. libdir="$acl_save_libdir"
  7223. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7224. done
  7225. fi
  7226. fi
  7227. if test "X$ltrpathdirs" != "X"; then
  7228. for found_dir in $ltrpathdirs; do
  7229. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7230. done
  7231. fi
  7232. echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  7233. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
  7234. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  7235. echo $ECHO_N "(cached) $ECHO_C" >&6
  7236. else
  7237. cat >conftest.$ac_ext <<_ACEOF
  7238. /* confdefs.h. */
  7239. _ACEOF
  7240. cat confdefs.h >>conftest.$ac_ext
  7241. cat >>conftest.$ac_ext <<_ACEOF
  7242. /* end confdefs.h. */
  7243. $ac_includes_default
  7244. int
  7245. main ()
  7246. {
  7247. if ((ptrdiff_t *) 0)
  7248. return 0;
  7249. if (sizeof (ptrdiff_t))
  7250. return 0;
  7251. ;
  7252. return 0;
  7253. }
  7254. _ACEOF
  7255. rm -f conftest.$ac_objext
  7256. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7257. (eval $ac_compile) 2>conftest.er1
  7258. ac_status=$?
  7259. grep -v '^ *+' conftest.er1 >conftest.err
  7260. rm -f conftest.er1
  7261. cat conftest.err >&5
  7262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. (exit $ac_status); } &&
  7264. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7266. (eval $ac_try) 2>&5
  7267. ac_status=$?
  7268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7269. (exit $ac_status); }; } &&
  7270. { ac_try='test -s conftest.$ac_objext'
  7271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7272. (eval $ac_try) 2>&5
  7273. ac_status=$?
  7274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7275. (exit $ac_status); }; }; then
  7276. ac_cv_type_ptrdiff_t=yes
  7277. else
  7278. echo "$as_me: failed program was:" >&5
  7279. sed 's/^/| /' conftest.$ac_ext >&5
  7280. ac_cv_type_ptrdiff_t=no
  7281. fi
  7282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7283. fi
  7284. echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  7285. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
  7286. if test $ac_cv_type_ptrdiff_t = yes; then
  7287. :
  7288. else
  7289. cat >>confdefs.h <<\_ACEOF
  7290. #define ptrdiff_t long
  7291. _ACEOF
  7292. fi
  7293. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7294. stdlib.h string.h unistd.h sys/param.h
  7295. do
  7296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7297. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7298. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7301. echo $ECHO_N "(cached) $ECHO_C" >&6
  7302. fi
  7303. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7304. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7305. else
  7306. # Is the header compilable?
  7307. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7308. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7309. cat >conftest.$ac_ext <<_ACEOF
  7310. /* confdefs.h. */
  7311. _ACEOF
  7312. cat confdefs.h >>conftest.$ac_ext
  7313. cat >>conftest.$ac_ext <<_ACEOF
  7314. /* end confdefs.h. */
  7315. $ac_includes_default
  7316. #include <$ac_header>
  7317. _ACEOF
  7318. rm -f conftest.$ac_objext
  7319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7320. (eval $ac_compile) 2>conftest.er1
  7321. ac_status=$?
  7322. grep -v '^ *+' conftest.er1 >conftest.err
  7323. rm -f conftest.er1
  7324. cat conftest.err >&5
  7325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7326. (exit $ac_status); } &&
  7327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7329. (eval $ac_try) 2>&5
  7330. ac_status=$?
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. (exit $ac_status); }; } &&
  7333. { ac_try='test -s conftest.$ac_objext'
  7334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7335. (eval $ac_try) 2>&5
  7336. ac_status=$?
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); }; }; then
  7339. ac_header_compiler=yes
  7340. else
  7341. echo "$as_me: failed program was:" >&5
  7342. sed 's/^/| /' conftest.$ac_ext >&5
  7343. ac_header_compiler=no
  7344. fi
  7345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7346. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7347. echo "${ECHO_T}$ac_header_compiler" >&6
  7348. # Is the header present?
  7349. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7350. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7351. cat >conftest.$ac_ext <<_ACEOF
  7352. /* confdefs.h. */
  7353. _ACEOF
  7354. cat confdefs.h >>conftest.$ac_ext
  7355. cat >>conftest.$ac_ext <<_ACEOF
  7356. /* end confdefs.h. */
  7357. #include <$ac_header>
  7358. _ACEOF
  7359. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7360. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7361. ac_status=$?
  7362. grep -v '^ *+' conftest.er1 >conftest.err
  7363. rm -f conftest.er1
  7364. cat conftest.err >&5
  7365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7366. (exit $ac_status); } >/dev/null; then
  7367. if test -s conftest.err; then
  7368. ac_cpp_err=$ac_c_preproc_warn_flag
  7369. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7370. else
  7371. ac_cpp_err=
  7372. fi
  7373. else
  7374. ac_cpp_err=yes
  7375. fi
  7376. if test -z "$ac_cpp_err"; then
  7377. ac_header_preproc=yes
  7378. else
  7379. echo "$as_me: failed program was:" >&5
  7380. sed 's/^/| /' conftest.$ac_ext >&5
  7381. ac_header_preproc=no
  7382. fi
  7383. rm -f conftest.err conftest.$ac_ext
  7384. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7385. echo "${ECHO_T}$ac_header_preproc" >&6
  7386. # So? What about this header?
  7387. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7388. yes:no: )
  7389. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7390. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7392. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7393. ac_header_preproc=yes
  7394. ;;
  7395. no:yes:* )
  7396. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7397. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7398. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7399. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7400. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7401. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7402. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7403. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7404. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7405. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7406. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7407. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7408. (
  7409. cat <<\_ASBOX
  7410. ## ------------------------------------------- ##
  7411. ## Report this to debian-dpkg@lists.debian.org ##
  7412. ## ------------------------------------------- ##
  7413. _ASBOX
  7414. ) |
  7415. sed "s/^/$as_me: WARNING: /" >&2
  7416. ;;
  7417. esac
  7418. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7419. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7420. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7421. echo $ECHO_N "(cached) $ECHO_C" >&6
  7422. else
  7423. eval "$as_ac_Header=\$ac_header_preproc"
  7424. fi
  7425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7427. fi
  7428. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7429. cat >>confdefs.h <<_ACEOF
  7430. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7431. _ACEOF
  7432. fi
  7433. done
  7434. for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
  7435. mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
  7436. strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
  7437. __fsetlocking
  7438. do
  7439. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7440. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7441. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7442. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7443. echo $ECHO_N "(cached) $ECHO_C" >&6
  7444. else
  7445. cat >conftest.$ac_ext <<_ACEOF
  7446. /* confdefs.h. */
  7447. _ACEOF
  7448. cat confdefs.h >>conftest.$ac_ext
  7449. cat >>conftest.$ac_ext <<_ACEOF
  7450. /* end confdefs.h. */
  7451. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7452. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7453. #define $ac_func innocuous_$ac_func
  7454. /* System header to define __stub macros and hopefully few prototypes,
  7455. which can conflict with char $ac_func (); below.
  7456. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7457. <limits.h> exists even on freestanding compilers. */
  7458. #ifdef __STDC__
  7459. # include <limits.h>
  7460. #else
  7461. # include <assert.h>
  7462. #endif
  7463. #undef $ac_func
  7464. /* Override any gcc2 internal prototype to avoid an error. */
  7465. #ifdef __cplusplus
  7466. extern "C"
  7467. {
  7468. #endif
  7469. /* We use char because int might match the return type of a gcc2
  7470. builtin and then its argument prototype would still apply. */
  7471. char $ac_func ();
  7472. /* The GNU C library defines this for functions which it implements
  7473. to always fail with ENOSYS. Some functions are actually named
  7474. something starting with __ and the normal name is an alias. */
  7475. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7476. choke me
  7477. #else
  7478. char (*f) () = $ac_func;
  7479. #endif
  7480. #ifdef __cplusplus
  7481. }
  7482. #endif
  7483. int
  7484. main ()
  7485. {
  7486. return f != $ac_func;
  7487. ;
  7488. return 0;
  7489. }
  7490. _ACEOF
  7491. rm -f conftest.$ac_objext conftest$ac_exeext
  7492. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7493. (eval $ac_link) 2>conftest.er1
  7494. ac_status=$?
  7495. grep -v '^ *+' conftest.er1 >conftest.err
  7496. rm -f conftest.er1
  7497. cat conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); } &&
  7500. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7502. (eval $ac_try) 2>&5
  7503. ac_status=$?
  7504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7505. (exit $ac_status); }; } &&
  7506. { ac_try='test -s conftest$ac_exeext'
  7507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7508. (eval $ac_try) 2>&5
  7509. ac_status=$?
  7510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7511. (exit $ac_status); }; }; then
  7512. eval "$as_ac_var=yes"
  7513. else
  7514. echo "$as_me: failed program was:" >&5
  7515. sed 's/^/| /' conftest.$ac_ext >&5
  7516. eval "$as_ac_var=no"
  7517. fi
  7518. rm -f conftest.err conftest.$ac_objext \
  7519. conftest$ac_exeext conftest.$ac_ext
  7520. fi
  7521. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7522. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7523. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7524. cat >>confdefs.h <<_ACEOF
  7525. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7526. _ACEOF
  7527. fi
  7528. done
  7529. echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  7530. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
  7531. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  7532. echo $ECHO_N "(cached) $ECHO_C" >&6
  7533. else
  7534. cat >conftest.$ac_ext <<_ACEOF
  7535. /* confdefs.h. */
  7536. _ACEOF
  7537. cat confdefs.h >>conftest.$ac_ext
  7538. cat >>conftest.$ac_ext <<_ACEOF
  7539. /* end confdefs.h. */
  7540. #include <stdio.h>
  7541. int
  7542. main ()
  7543. {
  7544. #ifndef _snprintf
  7545. char *p = (char *) _snprintf;
  7546. #endif
  7547. ;
  7548. return 0;
  7549. }
  7550. _ACEOF
  7551. rm -f conftest.$ac_objext
  7552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7553. (eval $ac_compile) 2>conftest.er1
  7554. ac_status=$?
  7555. grep -v '^ *+' conftest.er1 >conftest.err
  7556. rm -f conftest.er1
  7557. cat conftest.err >&5
  7558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7559. (exit $ac_status); } &&
  7560. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7562. (eval $ac_try) 2>&5
  7563. ac_status=$?
  7564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7565. (exit $ac_status); }; } &&
  7566. { ac_try='test -s conftest.$ac_objext'
  7567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7568. (eval $ac_try) 2>&5
  7569. ac_status=$?
  7570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. (exit $ac_status); }; }; then
  7572. ac_cv_have_decl__snprintf=yes
  7573. else
  7574. echo "$as_me: failed program was:" >&5
  7575. sed 's/^/| /' conftest.$ac_ext >&5
  7576. ac_cv_have_decl__snprintf=no
  7577. fi
  7578. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7579. fi
  7580. echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  7581. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
  7582. if test $ac_cv_have_decl__snprintf = yes; then
  7583. gt_value=1
  7584. else
  7585. gt_value=0
  7586. fi
  7587. cat >>confdefs.h <<_ACEOF
  7588. #define HAVE_DECL__SNPRINTF $gt_value
  7589. _ACEOF
  7590. echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  7591. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
  7592. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  7593. echo $ECHO_N "(cached) $ECHO_C" >&6
  7594. else
  7595. cat >conftest.$ac_ext <<_ACEOF
  7596. /* confdefs.h. */
  7597. _ACEOF
  7598. cat confdefs.h >>conftest.$ac_ext
  7599. cat >>conftest.$ac_ext <<_ACEOF
  7600. /* end confdefs.h. */
  7601. #include <stdio.h>
  7602. int
  7603. main ()
  7604. {
  7605. #ifndef _snwprintf
  7606. char *p = (char *) _snwprintf;
  7607. #endif
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. rm -f conftest.$ac_objext
  7613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7614. (eval $ac_compile) 2>conftest.er1
  7615. ac_status=$?
  7616. grep -v '^ *+' conftest.er1 >conftest.err
  7617. rm -f conftest.er1
  7618. cat conftest.err >&5
  7619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7620. (exit $ac_status); } &&
  7621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7623. (eval $ac_try) 2>&5
  7624. ac_status=$?
  7625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626. (exit $ac_status); }; } &&
  7627. { ac_try='test -s conftest.$ac_objext'
  7628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7629. (eval $ac_try) 2>&5
  7630. ac_status=$?
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. (exit $ac_status); }; }; then
  7633. ac_cv_have_decl__snwprintf=yes
  7634. else
  7635. echo "$as_me: failed program was:" >&5
  7636. sed 's/^/| /' conftest.$ac_ext >&5
  7637. ac_cv_have_decl__snwprintf=no
  7638. fi
  7639. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7640. fi
  7641. echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  7642. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
  7643. if test $ac_cv_have_decl__snwprintf = yes; then
  7644. gt_value=1
  7645. else
  7646. gt_value=0
  7647. fi
  7648. cat >>confdefs.h <<_ACEOF
  7649. #define HAVE_DECL__SNWPRINTF $gt_value
  7650. _ACEOF
  7651. echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  7652. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
  7653. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  7654. echo $ECHO_N "(cached) $ECHO_C" >&6
  7655. else
  7656. cat >conftest.$ac_ext <<_ACEOF
  7657. /* confdefs.h. */
  7658. _ACEOF
  7659. cat confdefs.h >>conftest.$ac_ext
  7660. cat >>conftest.$ac_ext <<_ACEOF
  7661. /* end confdefs.h. */
  7662. #include <stdio.h>
  7663. int
  7664. main ()
  7665. {
  7666. #ifndef feof_unlocked
  7667. char *p = (char *) feof_unlocked;
  7668. #endif
  7669. ;
  7670. return 0;
  7671. }
  7672. _ACEOF
  7673. rm -f conftest.$ac_objext
  7674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7675. (eval $ac_compile) 2>conftest.er1
  7676. ac_status=$?
  7677. grep -v '^ *+' conftest.er1 >conftest.err
  7678. rm -f conftest.er1
  7679. cat conftest.err >&5
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. (exit $ac_status); } &&
  7682. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7684. (eval $ac_try) 2>&5
  7685. ac_status=$?
  7686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7687. (exit $ac_status); }; } &&
  7688. { ac_try='test -s conftest.$ac_objext'
  7689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7690. (eval $ac_try) 2>&5
  7691. ac_status=$?
  7692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7693. (exit $ac_status); }; }; then
  7694. ac_cv_have_decl_feof_unlocked=yes
  7695. else
  7696. echo "$as_me: failed program was:" >&5
  7697. sed 's/^/| /' conftest.$ac_ext >&5
  7698. ac_cv_have_decl_feof_unlocked=no
  7699. fi
  7700. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7701. fi
  7702. echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  7703. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
  7704. if test $ac_cv_have_decl_feof_unlocked = yes; then
  7705. gt_value=1
  7706. else
  7707. gt_value=0
  7708. fi
  7709. cat >>confdefs.h <<_ACEOF
  7710. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  7711. _ACEOF
  7712. echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  7713. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
  7714. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  7715. echo $ECHO_N "(cached) $ECHO_C" >&6
  7716. else
  7717. cat >conftest.$ac_ext <<_ACEOF
  7718. /* confdefs.h. */
  7719. _ACEOF
  7720. cat confdefs.h >>conftest.$ac_ext
  7721. cat >>conftest.$ac_ext <<_ACEOF
  7722. /* end confdefs.h. */
  7723. #include <stdio.h>
  7724. int
  7725. main ()
  7726. {
  7727. #ifndef fgets_unlocked
  7728. char *p = (char *) fgets_unlocked;
  7729. #endif
  7730. ;
  7731. return 0;
  7732. }
  7733. _ACEOF
  7734. rm -f conftest.$ac_objext
  7735. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7736. (eval $ac_compile) 2>conftest.er1
  7737. ac_status=$?
  7738. grep -v '^ *+' conftest.er1 >conftest.err
  7739. rm -f conftest.er1
  7740. cat conftest.err >&5
  7741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7742. (exit $ac_status); } &&
  7743. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7745. (eval $ac_try) 2>&5
  7746. ac_status=$?
  7747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7748. (exit $ac_status); }; } &&
  7749. { ac_try='test -s conftest.$ac_objext'
  7750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7751. (eval $ac_try) 2>&5
  7752. ac_status=$?
  7753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7754. (exit $ac_status); }; }; then
  7755. ac_cv_have_decl_fgets_unlocked=yes
  7756. else
  7757. echo "$as_me: failed program was:" >&5
  7758. sed 's/^/| /' conftest.$ac_ext >&5
  7759. ac_cv_have_decl_fgets_unlocked=no
  7760. fi
  7761. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7762. fi
  7763. echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  7764. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
  7765. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  7766. gt_value=1
  7767. else
  7768. gt_value=0
  7769. fi
  7770. cat >>confdefs.h <<_ACEOF
  7771. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  7772. _ACEOF
  7773. echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  7774. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
  7775. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  7776. echo $ECHO_N "(cached) $ECHO_C" >&6
  7777. else
  7778. cat >conftest.$ac_ext <<_ACEOF
  7779. /* confdefs.h. */
  7780. _ACEOF
  7781. cat confdefs.h >>conftest.$ac_ext
  7782. cat >>conftest.$ac_ext <<_ACEOF
  7783. /* end confdefs.h. */
  7784. #include <stdio.h>
  7785. int
  7786. main ()
  7787. {
  7788. #ifndef getc_unlocked
  7789. char *p = (char *) getc_unlocked;
  7790. #endif
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. rm -f conftest.$ac_objext
  7796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7797. (eval $ac_compile) 2>conftest.er1
  7798. ac_status=$?
  7799. grep -v '^ *+' conftest.er1 >conftest.err
  7800. rm -f conftest.er1
  7801. cat conftest.err >&5
  7802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7803. (exit $ac_status); } &&
  7804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7806. (eval $ac_try) 2>&5
  7807. ac_status=$?
  7808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7809. (exit $ac_status); }; } &&
  7810. { ac_try='test -s conftest.$ac_objext'
  7811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7812. (eval $ac_try) 2>&5
  7813. ac_status=$?
  7814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7815. (exit $ac_status); }; }; then
  7816. ac_cv_have_decl_getc_unlocked=yes
  7817. else
  7818. echo "$as_me: failed program was:" >&5
  7819. sed 's/^/| /' conftest.$ac_ext >&5
  7820. ac_cv_have_decl_getc_unlocked=no
  7821. fi
  7822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7823. fi
  7824. echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  7825. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
  7826. if test $ac_cv_have_decl_getc_unlocked = yes; then
  7827. gt_value=1
  7828. else
  7829. gt_value=0
  7830. fi
  7831. cat >>confdefs.h <<_ACEOF
  7832. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  7833. _ACEOF
  7834. case $gt_cv_func_printf_posix in
  7835. *yes) HAVE_POSIX_PRINTF=1 ;;
  7836. *) HAVE_POSIX_PRINTF=0 ;;
  7837. esac
  7838. if test "$ac_cv_func_asprintf" = yes; then
  7839. HAVE_ASPRINTF=1
  7840. else
  7841. HAVE_ASPRINTF=0
  7842. fi
  7843. if test "$ac_cv_func_snprintf" = yes; then
  7844. HAVE_SNPRINTF=1
  7845. else
  7846. HAVE_SNPRINTF=0
  7847. fi
  7848. if test "$ac_cv_func_wprintf" = yes; then
  7849. HAVE_WPRINTF=1
  7850. else
  7851. HAVE_WPRINTF=0
  7852. fi
  7853. am_save_CPPFLAGS="$CPPFLAGS"
  7854. for element in $INCICONV; do
  7855. haveit=
  7856. for x in $CPPFLAGS; do
  7857. acl_save_prefix="$prefix"
  7858. prefix="$acl_final_prefix"
  7859. acl_save_exec_prefix="$exec_prefix"
  7860. exec_prefix="$acl_final_exec_prefix"
  7861. eval x=\"$x\"
  7862. exec_prefix="$acl_save_exec_prefix"
  7863. prefix="$acl_save_prefix"
  7864. if test "X$x" = "X$element"; then
  7865. haveit=yes
  7866. break
  7867. fi
  7868. done
  7869. if test -z "$haveit"; then
  7870. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7871. fi
  7872. done
  7873. echo "$as_me:$LINENO: checking for iconv" >&5
  7874. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7875. if test "${am_cv_func_iconv+set}" = set; then
  7876. echo $ECHO_N "(cached) $ECHO_C" >&6
  7877. else
  7878. am_cv_func_iconv="no, consider installing GNU libiconv"
  7879. am_cv_lib_iconv=no
  7880. cat >conftest.$ac_ext <<_ACEOF
  7881. /* confdefs.h. */
  7882. _ACEOF
  7883. cat confdefs.h >>conftest.$ac_ext
  7884. cat >>conftest.$ac_ext <<_ACEOF
  7885. /* end confdefs.h. */
  7886. #include <stdlib.h>
  7887. #include <iconv.h>
  7888. int
  7889. main ()
  7890. {
  7891. iconv_t cd = iconv_open("","");
  7892. iconv(cd,NULL,NULL,NULL,NULL);
  7893. iconv_close(cd);
  7894. ;
  7895. return 0;
  7896. }
  7897. _ACEOF
  7898. rm -f conftest.$ac_objext conftest$ac_exeext
  7899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7900. (eval $ac_link) 2>conftest.er1
  7901. ac_status=$?
  7902. grep -v '^ *+' conftest.er1 >conftest.err
  7903. rm -f conftest.er1
  7904. cat conftest.err >&5
  7905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7906. (exit $ac_status); } &&
  7907. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7909. (eval $ac_try) 2>&5
  7910. ac_status=$?
  7911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7912. (exit $ac_status); }; } &&
  7913. { ac_try='test -s conftest$ac_exeext'
  7914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7915. (eval $ac_try) 2>&5
  7916. ac_status=$?
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. (exit $ac_status); }; }; then
  7919. am_cv_func_iconv=yes
  7920. else
  7921. echo "$as_me: failed program was:" >&5
  7922. sed 's/^/| /' conftest.$ac_ext >&5
  7923. fi
  7924. rm -f conftest.err conftest.$ac_objext \
  7925. conftest$ac_exeext conftest.$ac_ext
  7926. if test "$am_cv_func_iconv" != yes; then
  7927. am_save_LIBS="$LIBS"
  7928. LIBS="$LIBS $LIBICONV"
  7929. cat >conftest.$ac_ext <<_ACEOF
  7930. /* confdefs.h. */
  7931. _ACEOF
  7932. cat confdefs.h >>conftest.$ac_ext
  7933. cat >>conftest.$ac_ext <<_ACEOF
  7934. /* end confdefs.h. */
  7935. #include <stdlib.h>
  7936. #include <iconv.h>
  7937. int
  7938. main ()
  7939. {
  7940. iconv_t cd = iconv_open("","");
  7941. iconv(cd,NULL,NULL,NULL,NULL);
  7942. iconv_close(cd);
  7943. ;
  7944. return 0;
  7945. }
  7946. _ACEOF
  7947. rm -f conftest.$ac_objext conftest$ac_exeext
  7948. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7949. (eval $ac_link) 2>conftest.er1
  7950. ac_status=$?
  7951. grep -v '^ *+' conftest.er1 >conftest.err
  7952. rm -f conftest.er1
  7953. cat conftest.err >&5
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. (exit $ac_status); } &&
  7956. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7958. (eval $ac_try) 2>&5
  7959. ac_status=$?
  7960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. (exit $ac_status); }; } &&
  7962. { ac_try='test -s conftest$ac_exeext'
  7963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7964. (eval $ac_try) 2>&5
  7965. ac_status=$?
  7966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967. (exit $ac_status); }; }; then
  7968. am_cv_lib_iconv=yes
  7969. am_cv_func_iconv=yes
  7970. else
  7971. echo "$as_me: failed program was:" >&5
  7972. sed 's/^/| /' conftest.$ac_ext >&5
  7973. fi
  7974. rm -f conftest.err conftest.$ac_objext \
  7975. conftest$ac_exeext conftest.$ac_ext
  7976. LIBS="$am_save_LIBS"
  7977. fi
  7978. fi
  7979. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7980. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7981. if test "$am_cv_func_iconv" = yes; then
  7982. cat >>confdefs.h <<\_ACEOF
  7983. #define HAVE_ICONV 1
  7984. _ACEOF
  7985. fi
  7986. if test "$am_cv_lib_iconv" = yes; then
  7987. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7988. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7989. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7990. echo "${ECHO_T}$LIBICONV" >&6
  7991. else
  7992. CPPFLAGS="$am_save_CPPFLAGS"
  7993. LIBICONV=
  7994. LTLIBICONV=
  7995. fi
  7996. if test "$am_cv_func_iconv" = yes; then
  7997. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7998. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7999. if test "${am_cv_proto_iconv+set}" = set; then
  8000. echo $ECHO_N "(cached) $ECHO_C" >&6
  8001. else
  8002. cat >conftest.$ac_ext <<_ACEOF
  8003. /* confdefs.h. */
  8004. _ACEOF
  8005. cat confdefs.h >>conftest.$ac_ext
  8006. cat >>conftest.$ac_ext <<_ACEOF
  8007. /* end confdefs.h. */
  8008. #include <stdlib.h>
  8009. #include <iconv.h>
  8010. extern
  8011. #ifdef __cplusplus
  8012. "C"
  8013. #endif
  8014. #if defined(__STDC__) || defined(__cplusplus)
  8015. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8016. #else
  8017. size_t iconv();
  8018. #endif
  8019. int
  8020. main ()
  8021. {
  8022. ;
  8023. return 0;
  8024. }
  8025. _ACEOF
  8026. rm -f conftest.$ac_objext
  8027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8028. (eval $ac_compile) 2>conftest.er1
  8029. ac_status=$?
  8030. grep -v '^ *+' conftest.er1 >conftest.err
  8031. rm -f conftest.er1
  8032. cat conftest.err >&5
  8033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8034. (exit $ac_status); } &&
  8035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8037. (eval $ac_try) 2>&5
  8038. ac_status=$?
  8039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8040. (exit $ac_status); }; } &&
  8041. { ac_try='test -s conftest.$ac_objext'
  8042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8043. (eval $ac_try) 2>&5
  8044. ac_status=$?
  8045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8046. (exit $ac_status); }; }; then
  8047. am_cv_proto_iconv_arg1=""
  8048. else
  8049. echo "$as_me: failed program was:" >&5
  8050. sed 's/^/| /' conftest.$ac_ext >&5
  8051. am_cv_proto_iconv_arg1="const"
  8052. fi
  8053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8054. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  8055. fi
  8056. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8057. echo "$as_me:$LINENO: result: ${ac_t:-
  8058. }$am_cv_proto_iconv" >&5
  8059. echo "${ECHO_T}${ac_t:-
  8060. }$am_cv_proto_iconv" >&6
  8061. cat >>confdefs.h <<_ACEOF
  8062. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8063. _ACEOF
  8064. fi
  8065. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8066. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  8067. if test "${am_cv_langinfo_codeset+set}" = set; then
  8068. echo $ECHO_N "(cached) $ECHO_C" >&6
  8069. else
  8070. cat >conftest.$ac_ext <<_ACEOF
  8071. /* confdefs.h. */
  8072. _ACEOF
  8073. cat confdefs.h >>conftest.$ac_ext
  8074. cat >>conftest.$ac_ext <<_ACEOF
  8075. /* end confdefs.h. */
  8076. #include <langinfo.h>
  8077. int
  8078. main ()
  8079. {
  8080. char* cs = nl_langinfo(CODESET);
  8081. ;
  8082. return 0;
  8083. }
  8084. _ACEOF
  8085. rm -f conftest.$ac_objext conftest$ac_exeext
  8086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8087. (eval $ac_link) 2>conftest.er1
  8088. ac_status=$?
  8089. grep -v '^ *+' conftest.er1 >conftest.err
  8090. rm -f conftest.er1
  8091. cat conftest.err >&5
  8092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8093. (exit $ac_status); } &&
  8094. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8096. (eval $ac_try) 2>&5
  8097. ac_status=$?
  8098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8099. (exit $ac_status); }; } &&
  8100. { ac_try='test -s conftest$ac_exeext'
  8101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8102. (eval $ac_try) 2>&5
  8103. ac_status=$?
  8104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8105. (exit $ac_status); }; }; then
  8106. am_cv_langinfo_codeset=yes
  8107. else
  8108. echo "$as_me: failed program was:" >&5
  8109. sed 's/^/| /' conftest.$ac_ext >&5
  8110. am_cv_langinfo_codeset=no
  8111. fi
  8112. rm -f conftest.err conftest.$ac_objext \
  8113. conftest$ac_exeext conftest.$ac_ext
  8114. fi
  8115. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8116. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  8117. if test $am_cv_langinfo_codeset = yes; then
  8118. cat >>confdefs.h <<\_ACEOF
  8119. #define HAVE_LANGINFO_CODESET 1
  8120. _ACEOF
  8121. fi
  8122. if test $ac_cv_header_locale_h = yes; then
  8123. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8124. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  8125. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8126. echo $ECHO_N "(cached) $ECHO_C" >&6
  8127. else
  8128. cat >conftest.$ac_ext <<_ACEOF
  8129. /* confdefs.h. */
  8130. _ACEOF
  8131. cat confdefs.h >>conftest.$ac_ext
  8132. cat >>conftest.$ac_ext <<_ACEOF
  8133. /* end confdefs.h. */
  8134. #include <locale.h>
  8135. int
  8136. main ()
  8137. {
  8138. return LC_MESSAGES
  8139. ;
  8140. return 0;
  8141. }
  8142. _ACEOF
  8143. rm -f conftest.$ac_objext conftest$ac_exeext
  8144. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8145. (eval $ac_link) 2>conftest.er1
  8146. ac_status=$?
  8147. grep -v '^ *+' conftest.er1 >conftest.err
  8148. rm -f conftest.er1
  8149. cat conftest.err >&5
  8150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8151. (exit $ac_status); } &&
  8152. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8154. (eval $ac_try) 2>&5
  8155. ac_status=$?
  8156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. (exit $ac_status); }; } &&
  8158. { ac_try='test -s conftest$ac_exeext'
  8159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8160. (eval $ac_try) 2>&5
  8161. ac_status=$?
  8162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8163. (exit $ac_status); }; }; then
  8164. am_cv_val_LC_MESSAGES=yes
  8165. else
  8166. echo "$as_me: failed program was:" >&5
  8167. sed 's/^/| /' conftest.$ac_ext >&5
  8168. am_cv_val_LC_MESSAGES=no
  8169. fi
  8170. rm -f conftest.err conftest.$ac_objext \
  8171. conftest$ac_exeext conftest.$ac_ext
  8172. fi
  8173. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8174. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8175. if test $am_cv_val_LC_MESSAGES = yes; then
  8176. cat >>confdefs.h <<\_ACEOF
  8177. #define HAVE_LC_MESSAGES 1
  8178. _ACEOF
  8179. fi
  8180. fi
  8181. for ac_prog in bison
  8182. do
  8183. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8184. set dummy $ac_prog; ac_word=$2
  8185. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8186. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8187. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8188. echo $ECHO_N "(cached) $ECHO_C" >&6
  8189. else
  8190. if test -n "$INTLBISON"; then
  8191. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8192. else
  8193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8194. for as_dir in $PATH
  8195. do
  8196. IFS=$as_save_IFS
  8197. test -z "$as_dir" && as_dir=.
  8198. for ac_exec_ext in '' $ac_executable_extensions; do
  8199. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8200. ac_cv_prog_INTLBISON="$ac_prog"
  8201. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8202. break 2
  8203. fi
  8204. done
  8205. done
  8206. fi
  8207. fi
  8208. INTLBISON=$ac_cv_prog_INTLBISON
  8209. if test -n "$INTLBISON"; then
  8210. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8211. echo "${ECHO_T}$INTLBISON" >&6
  8212. else
  8213. echo "$as_me:$LINENO: result: no" >&5
  8214. echo "${ECHO_T}no" >&6
  8215. fi
  8216. test -n "$INTLBISON" && break
  8217. done
  8218. if test -z "$INTLBISON"; then
  8219. ac_verc_fail=yes
  8220. else
  8221. echo "$as_me:$LINENO: checking version of bison" >&5
  8222. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8223. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8224. case $ac_prog_version in
  8225. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8226. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8227. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8228. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8229. esac
  8230. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8231. echo "${ECHO_T}$ac_prog_version" >&6
  8232. fi
  8233. if test $ac_verc_fail = yes; then
  8234. INTLBISON=:
  8235. fi
  8236. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8237. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8238. # Check whether --enable-nls or --disable-nls was given.
  8239. if test "${enable_nls+set}" = set; then
  8240. enableval="$enable_nls"
  8241. USE_NLS=$enableval
  8242. else
  8243. USE_NLS=yes
  8244. fi;
  8245. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8246. echo "${ECHO_T}$USE_NLS" >&6
  8247. BUILD_INCLUDED_LIBINTL=no
  8248. USE_INCLUDED_LIBINTL=no
  8249. LIBINTL=
  8250. LTLIBINTL=
  8251. POSUB=
  8252. if test "$USE_NLS" = "yes"; then
  8253. gt_use_preinstalled_gnugettext=no
  8254. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8255. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8256. # Check whether --with-included-gettext or --without-included-gettext was given.
  8257. if test "${with_included_gettext+set}" = set; then
  8258. withval="$with_included_gettext"
  8259. nls_cv_force_use_gnu_gettext=$withval
  8260. else
  8261. nls_cv_force_use_gnu_gettext=no
  8262. fi;
  8263. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8264. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8265. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8266. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8267. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8268. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8269. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8270. echo $ECHO_N "(cached) $ECHO_C" >&6
  8271. else
  8272. cat >conftest.$ac_ext <<_ACEOF
  8273. /* confdefs.h. */
  8274. _ACEOF
  8275. cat confdefs.h >>conftest.$ac_ext
  8276. cat >>conftest.$ac_ext <<_ACEOF
  8277. /* end confdefs.h. */
  8278. #include <libintl.h>
  8279. extern int _nl_msg_cat_cntr;
  8280. extern int *_nl_domain_bindings;
  8281. int
  8282. main ()
  8283. {
  8284. bindtextdomain ("", "");
  8285. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8286. ;
  8287. return 0;
  8288. }
  8289. _ACEOF
  8290. rm -f conftest.$ac_objext conftest$ac_exeext
  8291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8292. (eval $ac_link) 2>conftest.er1
  8293. ac_status=$?
  8294. grep -v '^ *+' conftest.er1 >conftest.err
  8295. rm -f conftest.er1
  8296. cat conftest.err >&5
  8297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8298. (exit $ac_status); } &&
  8299. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8301. (eval $ac_try) 2>&5
  8302. ac_status=$?
  8303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8304. (exit $ac_status); }; } &&
  8305. { ac_try='test -s conftest$ac_exeext'
  8306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8307. (eval $ac_try) 2>&5
  8308. ac_status=$?
  8309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8310. (exit $ac_status); }; }; then
  8311. gt_cv_func_gnugettext1_libc=yes
  8312. else
  8313. echo "$as_me: failed program was:" >&5
  8314. sed 's/^/| /' conftest.$ac_ext >&5
  8315. gt_cv_func_gnugettext1_libc=no
  8316. fi
  8317. rm -f conftest.err conftest.$ac_objext \
  8318. conftest$ac_exeext conftest.$ac_ext
  8319. fi
  8320. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8321. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8322. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8323. use_additional=yes
  8324. acl_save_prefix="$prefix"
  8325. prefix="$acl_final_prefix"
  8326. acl_save_exec_prefix="$exec_prefix"
  8327. exec_prefix="$acl_final_exec_prefix"
  8328. eval additional_includedir=\"$includedir\"
  8329. eval additional_libdir=\"$libdir\"
  8330. exec_prefix="$acl_save_exec_prefix"
  8331. prefix="$acl_save_prefix"
  8332. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8333. if test "${with_libintl_prefix+set}" = set; then
  8334. withval="$with_libintl_prefix"
  8335. if test "X$withval" = "Xno"; then
  8336. use_additional=no
  8337. else
  8338. if test "X$withval" = "X"; then
  8339. acl_save_prefix="$prefix"
  8340. prefix="$acl_final_prefix"
  8341. acl_save_exec_prefix="$exec_prefix"
  8342. exec_prefix="$acl_final_exec_prefix"
  8343. eval additional_includedir=\"$includedir\"
  8344. eval additional_libdir=\"$libdir\"
  8345. exec_prefix="$acl_save_exec_prefix"
  8346. prefix="$acl_save_prefix"
  8347. else
  8348. additional_includedir="$withval/include"
  8349. additional_libdir="$withval/lib"
  8350. fi
  8351. fi
  8352. fi;
  8353. LIBINTL=
  8354. LTLIBINTL=
  8355. INCINTL=
  8356. rpathdirs=
  8357. ltrpathdirs=
  8358. names_already_handled=
  8359. names_next_round='intl '
  8360. while test -n "$names_next_round"; do
  8361. names_this_round="$names_next_round"
  8362. names_next_round=
  8363. for name in $names_this_round; do
  8364. already_handled=
  8365. for n in $names_already_handled; do
  8366. if test "$n" = "$name"; then
  8367. already_handled=yes
  8368. break
  8369. fi
  8370. done
  8371. if test -z "$already_handled"; then
  8372. names_already_handled="$names_already_handled $name"
  8373. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8374. eval value=\"\$HAVE_LIB$uppername\"
  8375. if test -n "$value"; then
  8376. if test "$value" = yes; then
  8377. eval value=\"\$LIB$uppername\"
  8378. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8379. eval value=\"\$LTLIB$uppername\"
  8380. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8381. else
  8382. :
  8383. fi
  8384. else
  8385. found_dir=
  8386. found_la=
  8387. found_so=
  8388. found_a=
  8389. if test $use_additional = yes; then
  8390. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8391. found_dir="$additional_libdir"
  8392. found_so="$additional_libdir/lib$name.$shlibext"
  8393. if test -f "$additional_libdir/lib$name.la"; then
  8394. found_la="$additional_libdir/lib$name.la"
  8395. fi
  8396. else
  8397. if test -f "$additional_libdir/lib$name.$libext"; then
  8398. found_dir="$additional_libdir"
  8399. found_a="$additional_libdir/lib$name.$libext"
  8400. if test -f "$additional_libdir/lib$name.la"; then
  8401. found_la="$additional_libdir/lib$name.la"
  8402. fi
  8403. fi
  8404. fi
  8405. fi
  8406. if test "X$found_dir" = "X"; then
  8407. for x in $LDFLAGS $LTLIBINTL; do
  8408. acl_save_prefix="$prefix"
  8409. prefix="$acl_final_prefix"
  8410. acl_save_exec_prefix="$exec_prefix"
  8411. exec_prefix="$acl_final_exec_prefix"
  8412. eval x=\"$x\"
  8413. exec_prefix="$acl_save_exec_prefix"
  8414. prefix="$acl_save_prefix"
  8415. case "$x" in
  8416. -L*)
  8417. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8418. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8419. found_dir="$dir"
  8420. found_so="$dir/lib$name.$shlibext"
  8421. if test -f "$dir/lib$name.la"; then
  8422. found_la="$dir/lib$name.la"
  8423. fi
  8424. else
  8425. if test -f "$dir/lib$name.$libext"; then
  8426. found_dir="$dir"
  8427. found_a="$dir/lib$name.$libext"
  8428. if test -f "$dir/lib$name.la"; then
  8429. found_la="$dir/lib$name.la"
  8430. fi
  8431. fi
  8432. fi
  8433. ;;
  8434. esac
  8435. if test "X$found_dir" != "X"; then
  8436. break
  8437. fi
  8438. done
  8439. fi
  8440. if test "X$found_dir" != "X"; then
  8441. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8442. if test "X$found_so" != "X"; then
  8443. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8444. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8445. else
  8446. haveit=
  8447. for x in $ltrpathdirs; do
  8448. if test "X$x" = "X$found_dir"; then
  8449. haveit=yes
  8450. break
  8451. fi
  8452. done
  8453. if test -z "$haveit"; then
  8454. ltrpathdirs="$ltrpathdirs $found_dir"
  8455. fi
  8456. if test "$hardcode_direct" = yes; then
  8457. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8458. else
  8459. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8460. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8461. haveit=
  8462. for x in $rpathdirs; do
  8463. if test "X$x" = "X$found_dir"; then
  8464. haveit=yes
  8465. break
  8466. fi
  8467. done
  8468. if test -z "$haveit"; then
  8469. rpathdirs="$rpathdirs $found_dir"
  8470. fi
  8471. else
  8472. haveit=
  8473. for x in $LDFLAGS $LIBINTL; do
  8474. acl_save_prefix="$prefix"
  8475. prefix="$acl_final_prefix"
  8476. acl_save_exec_prefix="$exec_prefix"
  8477. exec_prefix="$acl_final_exec_prefix"
  8478. eval x=\"$x\"
  8479. exec_prefix="$acl_save_exec_prefix"
  8480. prefix="$acl_save_prefix"
  8481. if test "X$x" = "X-L$found_dir"; then
  8482. haveit=yes
  8483. break
  8484. fi
  8485. done
  8486. if test -z "$haveit"; then
  8487. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8488. fi
  8489. if test "$hardcode_minus_L" != no; then
  8490. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8491. else
  8492. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8493. fi
  8494. fi
  8495. fi
  8496. fi
  8497. else
  8498. if test "X$found_a" != "X"; then
  8499. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8500. else
  8501. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8502. fi
  8503. fi
  8504. additional_includedir=
  8505. case "$found_dir" in
  8506. */lib | */lib/)
  8507. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8508. additional_includedir="$basedir/include"
  8509. ;;
  8510. esac
  8511. if test "X$additional_includedir" != "X"; then
  8512. if test "X$additional_includedir" != "X/usr/include"; then
  8513. haveit=
  8514. if test "X$additional_includedir" = "X/usr/local/include"; then
  8515. if test -n "$GCC"; then
  8516. case $host_os in
  8517. linux*) haveit=yes;;
  8518. esac
  8519. fi
  8520. fi
  8521. if test -z "$haveit"; then
  8522. for x in $CPPFLAGS $INCINTL; do
  8523. acl_save_prefix="$prefix"
  8524. prefix="$acl_final_prefix"
  8525. acl_save_exec_prefix="$exec_prefix"
  8526. exec_prefix="$acl_final_exec_prefix"
  8527. eval x=\"$x\"
  8528. exec_prefix="$acl_save_exec_prefix"
  8529. prefix="$acl_save_prefix"
  8530. if test "X$x" = "X-I$additional_includedir"; then
  8531. haveit=yes
  8532. break
  8533. fi
  8534. done
  8535. if test -z "$haveit"; then
  8536. if test -d "$additional_includedir"; then
  8537. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8538. fi
  8539. fi
  8540. fi
  8541. fi
  8542. fi
  8543. if test -n "$found_la"; then
  8544. save_libdir="$libdir"
  8545. case "$found_la" in
  8546. */* | *\\*) . "$found_la" ;;
  8547. *) . "./$found_la" ;;
  8548. esac
  8549. libdir="$save_libdir"
  8550. for dep in $dependency_libs; do
  8551. case "$dep" in
  8552. -L*)
  8553. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8554. if test "X$additional_libdir" != "X/usr/lib"; then
  8555. haveit=
  8556. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8557. if test -n "$GCC"; then
  8558. case $host_os in
  8559. linux*) haveit=yes;;
  8560. esac
  8561. fi
  8562. fi
  8563. if test -z "$haveit"; then
  8564. haveit=
  8565. for x in $LDFLAGS $LIBINTL; do
  8566. acl_save_prefix="$prefix"
  8567. prefix="$acl_final_prefix"
  8568. acl_save_exec_prefix="$exec_prefix"
  8569. exec_prefix="$acl_final_exec_prefix"
  8570. eval x=\"$x\"
  8571. exec_prefix="$acl_save_exec_prefix"
  8572. prefix="$acl_save_prefix"
  8573. if test "X$x" = "X-L$additional_libdir"; then
  8574. haveit=yes
  8575. break
  8576. fi
  8577. done
  8578. if test -z "$haveit"; then
  8579. if test -d "$additional_libdir"; then
  8580. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8581. fi
  8582. fi
  8583. haveit=
  8584. for x in $LDFLAGS $LTLIBINTL; do
  8585. acl_save_prefix="$prefix"
  8586. prefix="$acl_final_prefix"
  8587. acl_save_exec_prefix="$exec_prefix"
  8588. exec_prefix="$acl_final_exec_prefix"
  8589. eval x=\"$x\"
  8590. exec_prefix="$acl_save_exec_prefix"
  8591. prefix="$acl_save_prefix"
  8592. if test "X$x" = "X-L$additional_libdir"; then
  8593. haveit=yes
  8594. break
  8595. fi
  8596. done
  8597. if test -z "$haveit"; then
  8598. if test -d "$additional_libdir"; then
  8599. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8600. fi
  8601. fi
  8602. fi
  8603. fi
  8604. ;;
  8605. -R*)
  8606. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8607. if test "$enable_rpath" != no; then
  8608. haveit=
  8609. for x in $rpathdirs; do
  8610. if test "X$x" = "X$dir"; then
  8611. haveit=yes
  8612. break
  8613. fi
  8614. done
  8615. if test -z "$haveit"; then
  8616. rpathdirs="$rpathdirs $dir"
  8617. fi
  8618. haveit=
  8619. for x in $ltrpathdirs; do
  8620. if test "X$x" = "X$dir"; then
  8621. haveit=yes
  8622. break
  8623. fi
  8624. done
  8625. if test -z "$haveit"; then
  8626. ltrpathdirs="$ltrpathdirs $dir"
  8627. fi
  8628. fi
  8629. ;;
  8630. -l*)
  8631. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8632. ;;
  8633. *.la)
  8634. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8635. ;;
  8636. *)
  8637. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8638. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8639. ;;
  8640. esac
  8641. done
  8642. fi
  8643. else
  8644. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8645. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8646. fi
  8647. fi
  8648. fi
  8649. done
  8650. done
  8651. if test "X$rpathdirs" != "X"; then
  8652. if test -n "$hardcode_libdir_separator"; then
  8653. alldirs=
  8654. for found_dir in $rpathdirs; do
  8655. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8656. done
  8657. acl_save_libdir="$libdir"
  8658. libdir="$alldirs"
  8659. eval flag=\"$hardcode_libdir_flag_spec\"
  8660. libdir="$acl_save_libdir"
  8661. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8662. else
  8663. for found_dir in $rpathdirs; do
  8664. acl_save_libdir="$libdir"
  8665. libdir="$found_dir"
  8666. eval flag=\"$hardcode_libdir_flag_spec\"
  8667. libdir="$acl_save_libdir"
  8668. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8669. done
  8670. fi
  8671. fi
  8672. if test "X$ltrpathdirs" != "X"; then
  8673. for found_dir in $ltrpathdirs; do
  8674. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8675. done
  8676. fi
  8677. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8678. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8679. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8680. echo $ECHO_N "(cached) $ECHO_C" >&6
  8681. else
  8682. gt_save_CPPFLAGS="$CPPFLAGS"
  8683. CPPFLAGS="$CPPFLAGS $INCINTL"
  8684. gt_save_LIBS="$LIBS"
  8685. LIBS="$LIBS $LIBINTL"
  8686. cat >conftest.$ac_ext <<_ACEOF
  8687. /* confdefs.h. */
  8688. _ACEOF
  8689. cat confdefs.h >>conftest.$ac_ext
  8690. cat >>conftest.$ac_ext <<_ACEOF
  8691. /* end confdefs.h. */
  8692. #include <libintl.h>
  8693. extern int _nl_msg_cat_cntr;
  8694. extern
  8695. #ifdef __cplusplus
  8696. "C"
  8697. #endif
  8698. const char *_nl_expand_alias ();
  8699. int
  8700. main ()
  8701. {
  8702. bindtextdomain ("", "");
  8703. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8704. ;
  8705. return 0;
  8706. }
  8707. _ACEOF
  8708. rm -f conftest.$ac_objext conftest$ac_exeext
  8709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8710. (eval $ac_link) 2>conftest.er1
  8711. ac_status=$?
  8712. grep -v '^ *+' conftest.er1 >conftest.err
  8713. rm -f conftest.er1
  8714. cat conftest.err >&5
  8715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8716. (exit $ac_status); } &&
  8717. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8719. (eval $ac_try) 2>&5
  8720. ac_status=$?
  8721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8722. (exit $ac_status); }; } &&
  8723. { ac_try='test -s conftest$ac_exeext'
  8724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8725. (eval $ac_try) 2>&5
  8726. ac_status=$?
  8727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8728. (exit $ac_status); }; }; then
  8729. gt_cv_func_gnugettext1_libintl=yes
  8730. else
  8731. echo "$as_me: failed program was:" >&5
  8732. sed 's/^/| /' conftest.$ac_ext >&5
  8733. gt_cv_func_gnugettext1_libintl=no
  8734. fi
  8735. rm -f conftest.err conftest.$ac_objext \
  8736. conftest$ac_exeext conftest.$ac_ext
  8737. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8738. LIBS="$LIBS $LIBICONV"
  8739. cat >conftest.$ac_ext <<_ACEOF
  8740. /* confdefs.h. */
  8741. _ACEOF
  8742. cat confdefs.h >>conftest.$ac_ext
  8743. cat >>conftest.$ac_ext <<_ACEOF
  8744. /* end confdefs.h. */
  8745. #include <libintl.h>
  8746. extern int _nl_msg_cat_cntr;
  8747. extern
  8748. #ifdef __cplusplus
  8749. "C"
  8750. #endif
  8751. const char *_nl_expand_alias ();
  8752. int
  8753. main ()
  8754. {
  8755. bindtextdomain ("", "");
  8756. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8757. ;
  8758. return 0;
  8759. }
  8760. _ACEOF
  8761. rm -f conftest.$ac_objext conftest$ac_exeext
  8762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8763. (eval $ac_link) 2>conftest.er1
  8764. ac_status=$?
  8765. grep -v '^ *+' conftest.er1 >conftest.err
  8766. rm -f conftest.er1
  8767. cat conftest.err >&5
  8768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8769. (exit $ac_status); } &&
  8770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8772. (eval $ac_try) 2>&5
  8773. ac_status=$?
  8774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8775. (exit $ac_status); }; } &&
  8776. { ac_try='test -s conftest$ac_exeext'
  8777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8778. (eval $ac_try) 2>&5
  8779. ac_status=$?
  8780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8781. (exit $ac_status); }; }; then
  8782. LIBINTL="$LIBINTL $LIBICONV"
  8783. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8784. gt_cv_func_gnugettext1_libintl=yes
  8785. else
  8786. echo "$as_me: failed program was:" >&5
  8787. sed 's/^/| /' conftest.$ac_ext >&5
  8788. fi
  8789. rm -f conftest.err conftest.$ac_objext \
  8790. conftest$ac_exeext conftest.$ac_ext
  8791. fi
  8792. CPPFLAGS="$gt_save_CPPFLAGS"
  8793. LIBS="$gt_save_LIBS"
  8794. fi
  8795. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8796. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8797. fi
  8798. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8799. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8800. && test "$PACKAGE" != gettext-runtime \
  8801. && test "$PACKAGE" != gettext-tools; }; then
  8802. gt_use_preinstalled_gnugettext=yes
  8803. else
  8804. LIBINTL=
  8805. LTLIBINTL=
  8806. INCINTL=
  8807. fi
  8808. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8809. nls_cv_use_gnu_gettext=yes
  8810. fi
  8811. fi
  8812. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8813. BUILD_INCLUDED_LIBINTL=yes
  8814. USE_INCLUDED_LIBINTL=yes
  8815. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8816. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8817. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8818. fi
  8819. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8820. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8821. CATOBJEXT=.gmo
  8822. fi
  8823. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8824. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8825. cat >>confdefs.h <<\_ACEOF
  8826. #define ENABLE_NLS 1
  8827. _ACEOF
  8828. else
  8829. USE_NLS=no
  8830. fi
  8831. fi
  8832. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8833. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8834. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8835. echo "${ECHO_T}$USE_NLS" >&6
  8836. if test "$USE_NLS" = "yes"; then
  8837. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8838. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8839. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8840. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8841. gt_source="external libintl"
  8842. else
  8843. gt_source="libc"
  8844. fi
  8845. else
  8846. gt_source="included intl directory"
  8847. fi
  8848. echo "$as_me:$LINENO: result: $gt_source" >&5
  8849. echo "${ECHO_T}$gt_source" >&6
  8850. fi
  8851. if test "$USE_NLS" = "yes"; then
  8852. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8853. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8854. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8855. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8856. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8857. echo "${ECHO_T}$LIBINTL" >&6
  8858. for element in $INCINTL; do
  8859. haveit=
  8860. for x in $CPPFLAGS; do
  8861. acl_save_prefix="$prefix"
  8862. prefix="$acl_final_prefix"
  8863. acl_save_exec_prefix="$exec_prefix"
  8864. exec_prefix="$acl_final_exec_prefix"
  8865. eval x=\"$x\"
  8866. exec_prefix="$acl_save_exec_prefix"
  8867. prefix="$acl_save_prefix"
  8868. if test "X$x" = "X$element"; then
  8869. haveit=yes
  8870. break
  8871. fi
  8872. done
  8873. if test -z "$haveit"; then
  8874. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8875. fi
  8876. done
  8877. fi
  8878. cat >>confdefs.h <<\_ACEOF
  8879. #define HAVE_GETTEXT 1
  8880. _ACEOF
  8881. cat >>confdefs.h <<\_ACEOF
  8882. #define HAVE_DCGETTEXT 1
  8883. _ACEOF
  8884. fi
  8885. POSUB=po
  8886. fi
  8887. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8888. BUILD_INCLUDED_LIBINTL=yes
  8889. fi
  8890. nls_cv_header_intl=
  8891. nls_cv_header_libgt=
  8892. DATADIRNAME=share
  8893. INSTOBJEXT=.mo
  8894. GENCAT=gencat
  8895. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8896. INTLOBJS="\$(GETTOBJS)"
  8897. fi
  8898. INTL_LIBTOOL_SUFFIX_PREFIX=
  8899. INTLLIBS="$LIBINTL"
  8900. # Allow compilation without dselect
  8901. # Check whether --with-dselect or --without-dselect was given.
  8902. if test "${with_dselect+set}" = set; then
  8903. withval="$with_dselect"
  8904. build_dselect=$with_dselect
  8905. else
  8906. build_dselect=yes
  8907. fi;
  8908. if test "x$build_dselect" = "xyes"; then
  8909. WITH_DSELECT_TRUE=
  8910. WITH_DSELECT_FALSE='#'
  8911. else
  8912. WITH_DSELECT_TRUE='#'
  8913. WITH_DSELECT_FALSE=
  8914. fi
  8915. # Allow compilation without start-stop-daemon
  8916. # Check whether --with-start-stop-daemon or --without-start-stop-daemon was given.
  8917. if test "${with_start_stop_daemon+set}" = set; then
  8918. withval="$with_start_stop_daemon"
  8919. build_start_stop_daemon=$with_start_stop_daemon
  8920. else
  8921. build_start_stop_daemon=yes
  8922. fi;
  8923. if test "x$build_start_stop_daemon" = "xyes"; then
  8924. WITH_START_STOP_DAEMON_TRUE=
  8925. WITH_START_STOP_DAEMON_FALSE='#'
  8926. else
  8927. WITH_START_STOP_DAEMON_TRUE='#'
  8928. WITH_START_STOP_DAEMON_FALSE=
  8929. fi
  8930. if test "x$build_start_stop_daemon" = "xyes"; then
  8931. cat >>confdefs.h <<\_ACEOF
  8932. #define WITH_START_STOP_DAEMON 1
  8933. _ACEOF
  8934. else
  8935. cat >>confdefs.h <<\_ACEOF
  8936. #define WITH_START_STOP_DAEMON 0
  8937. _ACEOF
  8938. fi
  8939. # Allow alternate admin directory
  8940. admindir="${localstatedir}/${PACKAGE_NAME}"
  8941. # Check whether --with-admindir or --without-admindir was given.
  8942. if test "${with_admindir+set}" = set; then
  8943. withval="$with_admindir"
  8944. case "$with_admindir" in
  8945. "") { { echo "$as_me:$LINENO: error: invalid admindir specified" >&5
  8946. echo "$as_me: error: invalid admindir specified" >&2;}
  8947. { (exit 1); exit 1; }; } ;;
  8948. *) admindir="$with_admindir" ;;
  8949. esac
  8950. fi;
  8951. # Checks for programs.
  8952. ac_ext=c
  8953. ac_cpp='$CPP $CPPFLAGS'
  8954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8957. if test -n "$ac_tool_prefix"; then
  8958. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  8959. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  8960. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8961. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8962. if test "${ac_cv_prog_CC+set}" = set; then
  8963. echo $ECHO_N "(cached) $ECHO_C" >&6
  8964. else
  8965. if test -n "$CC"; then
  8966. ac_cv_prog_CC="$CC" # Let the user override the test.
  8967. else
  8968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8969. for as_dir in $PATH
  8970. do
  8971. IFS=$as_save_IFS
  8972. test -z "$as_dir" && as_dir=.
  8973. for ac_exec_ext in '' $ac_executable_extensions; do
  8974. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8975. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  8976. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8977. break 2
  8978. fi
  8979. done
  8980. done
  8981. fi
  8982. fi
  8983. CC=$ac_cv_prog_CC
  8984. if test -n "$CC"; then
  8985. echo "$as_me:$LINENO: result: $CC" >&5
  8986. echo "${ECHO_T}$CC" >&6
  8987. else
  8988. echo "$as_me:$LINENO: result: no" >&5
  8989. echo "${ECHO_T}no" >&6
  8990. fi
  8991. fi
  8992. if test -z "$ac_cv_prog_CC"; then
  8993. ac_ct_CC=$CC
  8994. # Extract the first word of "gcc", so it can be a program name with args.
  8995. set dummy gcc; ac_word=$2
  8996. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8997. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8998. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8999. echo $ECHO_N "(cached) $ECHO_C" >&6
  9000. else
  9001. if test -n "$ac_ct_CC"; then
  9002. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9003. else
  9004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9005. for as_dir in $PATH
  9006. do
  9007. IFS=$as_save_IFS
  9008. test -z "$as_dir" && as_dir=.
  9009. for ac_exec_ext in '' $ac_executable_extensions; do
  9010. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9011. ac_cv_prog_ac_ct_CC="gcc"
  9012. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9013. break 2
  9014. fi
  9015. done
  9016. done
  9017. fi
  9018. fi
  9019. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9020. if test -n "$ac_ct_CC"; then
  9021. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  9022. echo "${ECHO_T}$ac_ct_CC" >&6
  9023. else
  9024. echo "$as_me:$LINENO: result: no" >&5
  9025. echo "${ECHO_T}no" >&6
  9026. fi
  9027. CC=$ac_ct_CC
  9028. else
  9029. CC="$ac_cv_prog_CC"
  9030. fi
  9031. if test -z "$CC"; then
  9032. if test -n "$ac_tool_prefix"; then
  9033. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9034. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9035. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9036. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9037. if test "${ac_cv_prog_CC+set}" = set; then
  9038. echo $ECHO_N "(cached) $ECHO_C" >&6
  9039. else
  9040. if test -n "$CC"; then
  9041. ac_cv_prog_CC="$CC" # Let the user override the test.
  9042. else
  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. for ac_exec_ext in '' $ac_executable_extensions; do
  9049. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9050. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9051. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9052. break 2
  9053. fi
  9054. done
  9055. done
  9056. fi
  9057. fi
  9058. CC=$ac_cv_prog_CC
  9059. if test -n "$CC"; then
  9060. echo "$as_me:$LINENO: result: $CC" >&5
  9061. echo "${ECHO_T}$CC" >&6
  9062. else
  9063. echo "$as_me:$LINENO: result: no" >&5
  9064. echo "${ECHO_T}no" >&6
  9065. fi
  9066. fi
  9067. if test -z "$ac_cv_prog_CC"; then
  9068. ac_ct_CC=$CC
  9069. # Extract the first word of "cc", so it can be a program name with args.
  9070. set dummy cc; ac_word=$2
  9071. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9072. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9073. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  9074. echo $ECHO_N "(cached) $ECHO_C" >&6
  9075. else
  9076. if test -n "$ac_ct_CC"; then
  9077. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9078. else
  9079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9080. for as_dir in $PATH
  9081. do
  9082. IFS=$as_save_IFS
  9083. test -z "$as_dir" && as_dir=.
  9084. for ac_exec_ext in '' $ac_executable_extensions; do
  9085. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9086. ac_cv_prog_ac_ct_CC="cc"
  9087. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9088. break 2
  9089. fi
  9090. done
  9091. done
  9092. fi
  9093. fi
  9094. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9095. if test -n "$ac_ct_CC"; then
  9096. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  9097. echo "${ECHO_T}$ac_ct_CC" >&6
  9098. else
  9099. echo "$as_me:$LINENO: result: no" >&5
  9100. echo "${ECHO_T}no" >&6
  9101. fi
  9102. CC=$ac_ct_CC
  9103. else
  9104. CC="$ac_cv_prog_CC"
  9105. fi
  9106. fi
  9107. if test -z "$CC"; then
  9108. # Extract the first word of "cc", so it can be a program name with args.
  9109. set dummy cc; ac_word=$2
  9110. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9111. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9112. if test "${ac_cv_prog_CC+set}" = set; then
  9113. echo $ECHO_N "(cached) $ECHO_C" >&6
  9114. else
  9115. if test -n "$CC"; then
  9116. ac_cv_prog_CC="$CC" # Let the user override the test.
  9117. else
  9118. ac_prog_rejected=no
  9119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9120. for as_dir in $PATH
  9121. do
  9122. IFS=$as_save_IFS
  9123. test -z "$as_dir" && as_dir=.
  9124. for ac_exec_ext in '' $ac_executable_extensions; do
  9125. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9126. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9127. ac_prog_rejected=yes
  9128. continue
  9129. fi
  9130. ac_cv_prog_CC="cc"
  9131. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9132. break 2
  9133. fi
  9134. done
  9135. done
  9136. if test $ac_prog_rejected = yes; then
  9137. # We found a bogon in the path, so make sure we never use it.
  9138. set dummy $ac_cv_prog_CC
  9139. shift
  9140. if test $# != 0; then
  9141. # We chose a different compiler from the bogus one.
  9142. # However, it has the same basename, so the bogon will be chosen
  9143. # first if we set CC to just the basename; use the full file name.
  9144. shift
  9145. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9146. fi
  9147. fi
  9148. fi
  9149. fi
  9150. CC=$ac_cv_prog_CC
  9151. if test -n "$CC"; then
  9152. echo "$as_me:$LINENO: result: $CC" >&5
  9153. echo "${ECHO_T}$CC" >&6
  9154. else
  9155. echo "$as_me:$LINENO: result: no" >&5
  9156. echo "${ECHO_T}no" >&6
  9157. fi
  9158. fi
  9159. if test -z "$CC"; then
  9160. if test -n "$ac_tool_prefix"; then
  9161. for ac_prog in cl
  9162. do
  9163. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9164. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9165. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9166. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9167. if test "${ac_cv_prog_CC+set}" = set; then
  9168. echo $ECHO_N "(cached) $ECHO_C" >&6
  9169. else
  9170. if test -n "$CC"; then
  9171. ac_cv_prog_CC="$CC" # Let the user override the test.
  9172. else
  9173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9174. for as_dir in $PATH
  9175. do
  9176. IFS=$as_save_IFS
  9177. test -z "$as_dir" && as_dir=.
  9178. for ac_exec_ext in '' $ac_executable_extensions; do
  9179. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9180. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9181. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9182. break 2
  9183. fi
  9184. done
  9185. done
  9186. fi
  9187. fi
  9188. CC=$ac_cv_prog_CC
  9189. if test -n "$CC"; then
  9190. echo "$as_me:$LINENO: result: $CC" >&5
  9191. echo "${ECHO_T}$CC" >&6
  9192. else
  9193. echo "$as_me:$LINENO: result: no" >&5
  9194. echo "${ECHO_T}no" >&6
  9195. fi
  9196. test -n "$CC" && break
  9197. done
  9198. fi
  9199. if test -z "$CC"; then
  9200. ac_ct_CC=$CC
  9201. for ac_prog in cl
  9202. do
  9203. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9204. set dummy $ac_prog; ac_word=$2
  9205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  9208. echo $ECHO_N "(cached) $ECHO_C" >&6
  9209. else
  9210. if test -n "$ac_ct_CC"; then
  9211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9212. else
  9213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9214. for as_dir in $PATH
  9215. do
  9216. IFS=$as_save_IFS
  9217. test -z "$as_dir" && as_dir=.
  9218. for ac_exec_ext in '' $ac_executable_extensions; do
  9219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9220. ac_cv_prog_ac_ct_CC="$ac_prog"
  9221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9222. break 2
  9223. fi
  9224. done
  9225. done
  9226. fi
  9227. fi
  9228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9229. if test -n "$ac_ct_CC"; then
  9230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  9231. echo "${ECHO_T}$ac_ct_CC" >&6
  9232. else
  9233. echo "$as_me:$LINENO: result: no" >&5
  9234. echo "${ECHO_T}no" >&6
  9235. fi
  9236. test -n "$ac_ct_CC" && break
  9237. done
  9238. CC=$ac_ct_CC
  9239. fi
  9240. fi
  9241. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  9242. See \`config.log' for more details." >&5
  9243. echo "$as_me: error: no acceptable C compiler found in \$PATH
  9244. See \`config.log' for more details." >&2;}
  9245. { (exit 1); exit 1; }; }
  9246. # Provide some information about the compiler.
  9247. echo "$as_me:$LINENO:" \
  9248. "checking for C compiler version" >&5
  9249. ac_compiler=`set X $ac_compile; echo $2`
  9250. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  9251. (eval $ac_compiler --version </dev/null >&5) 2>&5
  9252. ac_status=$?
  9253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9254. (exit $ac_status); }
  9255. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  9256. (eval $ac_compiler -v </dev/null >&5) 2>&5
  9257. ac_status=$?
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); }
  9260. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  9261. (eval $ac_compiler -V </dev/null >&5) 2>&5
  9262. ac_status=$?
  9263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9264. (exit $ac_status); }
  9265. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  9266. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  9267. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  9268. echo $ECHO_N "(cached) $ECHO_C" >&6
  9269. else
  9270. cat >conftest.$ac_ext <<_ACEOF
  9271. /* confdefs.h. */
  9272. _ACEOF
  9273. cat confdefs.h >>conftest.$ac_ext
  9274. cat >>conftest.$ac_ext <<_ACEOF
  9275. /* end confdefs.h. */
  9276. int
  9277. main ()
  9278. {
  9279. #ifndef __GNUC__
  9280. choke me
  9281. #endif
  9282. ;
  9283. return 0;
  9284. }
  9285. _ACEOF
  9286. rm -f conftest.$ac_objext
  9287. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9288. (eval $ac_compile) 2>conftest.er1
  9289. ac_status=$?
  9290. grep -v '^ *+' conftest.er1 >conftest.err
  9291. rm -f conftest.er1
  9292. cat conftest.err >&5
  9293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9294. (exit $ac_status); } &&
  9295. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9297. (eval $ac_try) 2>&5
  9298. ac_status=$?
  9299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9300. (exit $ac_status); }; } &&
  9301. { ac_try='test -s conftest.$ac_objext'
  9302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9303. (eval $ac_try) 2>&5
  9304. ac_status=$?
  9305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9306. (exit $ac_status); }; }; then
  9307. ac_compiler_gnu=yes
  9308. else
  9309. echo "$as_me: failed program was:" >&5
  9310. sed 's/^/| /' conftest.$ac_ext >&5
  9311. ac_compiler_gnu=no
  9312. fi
  9313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9314. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9315. fi
  9316. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  9317. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  9318. GCC=`test $ac_compiler_gnu = yes && echo yes`
  9319. ac_test_CFLAGS=${CFLAGS+set}
  9320. ac_save_CFLAGS=$CFLAGS
  9321. CFLAGS="-g"
  9322. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  9323. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  9324. if test "${ac_cv_prog_cc_g+set}" = set; then
  9325. echo $ECHO_N "(cached) $ECHO_C" >&6
  9326. else
  9327. cat >conftest.$ac_ext <<_ACEOF
  9328. /* confdefs.h. */
  9329. _ACEOF
  9330. cat confdefs.h >>conftest.$ac_ext
  9331. cat >>conftest.$ac_ext <<_ACEOF
  9332. /* end confdefs.h. */
  9333. int
  9334. main ()
  9335. {
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest.$ac_objext
  9341. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9342. (eval $ac_compile) 2>conftest.er1
  9343. ac_status=$?
  9344. grep -v '^ *+' conftest.er1 >conftest.err
  9345. rm -f conftest.er1
  9346. cat conftest.err >&5
  9347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9348. (exit $ac_status); } &&
  9349. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9351. (eval $ac_try) 2>&5
  9352. ac_status=$?
  9353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9354. (exit $ac_status); }; } &&
  9355. { ac_try='test -s conftest.$ac_objext'
  9356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9357. (eval $ac_try) 2>&5
  9358. ac_status=$?
  9359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9360. (exit $ac_status); }; }; then
  9361. ac_cv_prog_cc_g=yes
  9362. else
  9363. echo "$as_me: failed program was:" >&5
  9364. sed 's/^/| /' conftest.$ac_ext >&5
  9365. ac_cv_prog_cc_g=no
  9366. fi
  9367. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9368. fi
  9369. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  9370. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  9371. if test "$ac_test_CFLAGS" = set; then
  9372. CFLAGS=$ac_save_CFLAGS
  9373. elif test $ac_cv_prog_cc_g = yes; then
  9374. if test "$GCC" = yes; then
  9375. CFLAGS="-g -O2"
  9376. else
  9377. CFLAGS="-g"
  9378. fi
  9379. else
  9380. if test "$GCC" = yes; then
  9381. CFLAGS="-O2"
  9382. else
  9383. CFLAGS=
  9384. fi
  9385. fi
  9386. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  9387. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  9388. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  9389. echo $ECHO_N "(cached) $ECHO_C" >&6
  9390. else
  9391. ac_cv_prog_cc_stdc=no
  9392. ac_save_CC=$CC
  9393. cat >conftest.$ac_ext <<_ACEOF
  9394. /* confdefs.h. */
  9395. _ACEOF
  9396. cat confdefs.h >>conftest.$ac_ext
  9397. cat >>conftest.$ac_ext <<_ACEOF
  9398. /* end confdefs.h. */
  9399. #include <stdarg.h>
  9400. #include <stdio.h>
  9401. #include <sys/types.h>
  9402. #include <sys/stat.h>
  9403. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9404. struct buf { int x; };
  9405. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9406. static char *e (p, i)
  9407. char **p;
  9408. int i;
  9409. {
  9410. return p[i];
  9411. }
  9412. static char *f (char * (*g) (char **, int), char **p, ...)
  9413. {
  9414. char *s;
  9415. va_list v;
  9416. va_start (v,p);
  9417. s = g (p, va_arg (v,int));
  9418. va_end (v);
  9419. return s;
  9420. }
  9421. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9422. function prototypes and stuff, but not '\xHH' hex character constants.
  9423. These don't provoke an error unfortunately, instead are silently treated
  9424. as 'x'. The following induces an error, until -std1 is added to get
  9425. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9426. array size at least. It's necessary to write '\x00'==0 to get something
  9427. that's true only with -std1. */
  9428. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9429. int test (int i, double x);
  9430. struct s1 {int (*f) (int a);};
  9431. struct s2 {int (*f) (double a);};
  9432. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9433. int argc;
  9434. char **argv;
  9435. int
  9436. main ()
  9437. {
  9438. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9439. ;
  9440. return 0;
  9441. }
  9442. _ACEOF
  9443. # Don't try gcc -ansi; that turns off useful extensions and
  9444. # breaks some systems' header files.
  9445. # AIX -qlanglvl=ansi
  9446. # Ultrix and OSF/1 -std1
  9447. # HP-UX 10.20 and later -Ae
  9448. # HP-UX older versions -Aa -D_HPUX_SOURCE
  9449. # SVR4 -Xc -D__EXTENSIONS__
  9450. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9451. do
  9452. CC="$ac_save_CC $ac_arg"
  9453. rm -f conftest.$ac_objext
  9454. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9455. (eval $ac_compile) 2>conftest.er1
  9456. ac_status=$?
  9457. grep -v '^ *+' conftest.er1 >conftest.err
  9458. rm -f conftest.er1
  9459. cat conftest.err >&5
  9460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461. (exit $ac_status); } &&
  9462. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9464. (eval $ac_try) 2>&5
  9465. ac_status=$?
  9466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9467. (exit $ac_status); }; } &&
  9468. { ac_try='test -s conftest.$ac_objext'
  9469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9470. (eval $ac_try) 2>&5
  9471. ac_status=$?
  9472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473. (exit $ac_status); }; }; then
  9474. ac_cv_prog_cc_stdc=$ac_arg
  9475. break
  9476. else
  9477. echo "$as_me: failed program was:" >&5
  9478. sed 's/^/| /' conftest.$ac_ext >&5
  9479. fi
  9480. rm -f conftest.err conftest.$ac_objext
  9481. done
  9482. rm -f conftest.$ac_ext conftest.$ac_objext
  9483. CC=$ac_save_CC
  9484. fi
  9485. case "x$ac_cv_prog_cc_stdc" in
  9486. x|xno)
  9487. echo "$as_me:$LINENO: result: none needed" >&5
  9488. echo "${ECHO_T}none needed" >&6 ;;
  9489. *)
  9490. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  9491. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  9492. CC="$CC $ac_cv_prog_cc_stdc" ;;
  9493. esac
  9494. # Some people use a C++ compiler to compile C. Since we use `exit',
  9495. # in C++ we need to declare it. In case someone uses the same compiler
  9496. # for both compiling C and C++ we need to have the C++ compiler decide
  9497. # the declaration of exit, since it's the most demanding environment.
  9498. cat >conftest.$ac_ext <<_ACEOF
  9499. #ifndef __cplusplus
  9500. choke me
  9501. #endif
  9502. _ACEOF
  9503. rm -f conftest.$ac_objext
  9504. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9505. (eval $ac_compile) 2>conftest.er1
  9506. ac_status=$?
  9507. grep -v '^ *+' conftest.er1 >conftest.err
  9508. rm -f conftest.er1
  9509. cat conftest.err >&5
  9510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9511. (exit $ac_status); } &&
  9512. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9514. (eval $ac_try) 2>&5
  9515. ac_status=$?
  9516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9517. (exit $ac_status); }; } &&
  9518. { ac_try='test -s conftest.$ac_objext'
  9519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9520. (eval $ac_try) 2>&5
  9521. ac_status=$?
  9522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9523. (exit $ac_status); }; }; then
  9524. for ac_declaration in \
  9525. '' \
  9526. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  9527. 'extern "C" void std::exit (int); using std::exit;' \
  9528. 'extern "C" void exit (int) throw ();' \
  9529. 'extern "C" void exit (int);' \
  9530. 'void exit (int);'
  9531. do
  9532. cat >conftest.$ac_ext <<_ACEOF
  9533. /* confdefs.h. */
  9534. _ACEOF
  9535. cat confdefs.h >>conftest.$ac_ext
  9536. cat >>conftest.$ac_ext <<_ACEOF
  9537. /* end confdefs.h. */
  9538. $ac_declaration
  9539. #include <stdlib.h>
  9540. int
  9541. main ()
  9542. {
  9543. exit (42);
  9544. ;
  9545. return 0;
  9546. }
  9547. _ACEOF
  9548. rm -f conftest.$ac_objext
  9549. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9550. (eval $ac_compile) 2>conftest.er1
  9551. ac_status=$?
  9552. grep -v '^ *+' conftest.er1 >conftest.err
  9553. rm -f conftest.er1
  9554. cat conftest.err >&5
  9555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9556. (exit $ac_status); } &&
  9557. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9559. (eval $ac_try) 2>&5
  9560. ac_status=$?
  9561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9562. (exit $ac_status); }; } &&
  9563. { ac_try='test -s conftest.$ac_objext'
  9564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9565. (eval $ac_try) 2>&5
  9566. ac_status=$?
  9567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9568. (exit $ac_status); }; }; then
  9569. :
  9570. else
  9571. echo "$as_me: failed program was:" >&5
  9572. sed 's/^/| /' conftest.$ac_ext >&5
  9573. continue
  9574. fi
  9575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9576. cat >conftest.$ac_ext <<_ACEOF
  9577. /* confdefs.h. */
  9578. _ACEOF
  9579. cat confdefs.h >>conftest.$ac_ext
  9580. cat >>conftest.$ac_ext <<_ACEOF
  9581. /* end confdefs.h. */
  9582. $ac_declaration
  9583. int
  9584. main ()
  9585. {
  9586. exit (42);
  9587. ;
  9588. return 0;
  9589. }
  9590. _ACEOF
  9591. rm -f conftest.$ac_objext
  9592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9593. (eval $ac_compile) 2>conftest.er1
  9594. ac_status=$?
  9595. grep -v '^ *+' conftest.er1 >conftest.err
  9596. rm -f conftest.er1
  9597. cat conftest.err >&5
  9598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9599. (exit $ac_status); } &&
  9600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9602. (eval $ac_try) 2>&5
  9603. ac_status=$?
  9604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9605. (exit $ac_status); }; } &&
  9606. { ac_try='test -s conftest.$ac_objext'
  9607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9608. (eval $ac_try) 2>&5
  9609. ac_status=$?
  9610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9611. (exit $ac_status); }; }; then
  9612. break
  9613. else
  9614. echo "$as_me: failed program was:" >&5
  9615. sed 's/^/| /' conftest.$ac_ext >&5
  9616. fi
  9617. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9618. done
  9619. rm -f conftest*
  9620. if test -n "$ac_declaration"; then
  9621. echo '#ifdef __cplusplus' >>confdefs.h
  9622. echo $ac_declaration >>confdefs.h
  9623. echo '#endif' >>confdefs.h
  9624. fi
  9625. else
  9626. echo "$as_me: failed program was:" >&5
  9627. sed 's/^/| /' conftest.$ac_ext >&5
  9628. fi
  9629. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9630. ac_ext=c
  9631. ac_cpp='$CPP $CPPFLAGS'
  9632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9635. depcc="$CC" am_compiler_list=
  9636. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  9637. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  9638. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  9639. echo $ECHO_N "(cached) $ECHO_C" >&6
  9640. else
  9641. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9642. # We make a subdir and do the tests there. Otherwise we can end up
  9643. # making bogus files that we don't know about and never remove. For
  9644. # instance it was reported that on HP-UX the gcc test will end up
  9645. # making a dummy file named `D' -- because `-MD' means `put the output
  9646. # in D'.
  9647. mkdir conftest.dir
  9648. # Copy depcomp to subdir because otherwise we won't find it if we're
  9649. # using a relative directory.
  9650. cp "$am_depcomp" conftest.dir
  9651. cd conftest.dir
  9652. # We will build objects and dependencies in a subdirectory because
  9653. # it helps to detect inapplicable dependency modes. For instance
  9654. # both Tru64's cc and ICC support -MD to output dependencies as a
  9655. # side effect of compilation, but ICC will put the dependencies in
  9656. # the current directory while Tru64 will put them in the object
  9657. # directory.
  9658. mkdir sub
  9659. am_cv_CC_dependencies_compiler_type=none
  9660. if test "$am_compiler_list" = ""; then
  9661. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9662. fi
  9663. for depmode in $am_compiler_list; do
  9664. # Setup a source with many dependencies, because some compilers
  9665. # like to wrap large dependency lists on column 80 (with \), and
  9666. # we should not choose a depcomp mode which is confused by this.
  9667. #
  9668. # We need to recreate these files for each test, as the compiler may
  9669. # overwrite some of them when testing with obscure command lines.
  9670. # This happens at least with the AIX C compiler.
  9671. : > sub/conftest.c
  9672. for i in 1 2 3 4 5 6; do
  9673. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9674. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9675. # Solaris 8's {/usr,}/bin/sh.
  9676. touch sub/conftst$i.h
  9677. done
  9678. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9679. case $depmode in
  9680. nosideeffect)
  9681. # after this tag, mechanisms are not by side-effect, so they'll
  9682. # only be used when explicitly requested
  9683. if test "x$enable_dependency_tracking" = xyes; then
  9684. continue
  9685. else
  9686. break
  9687. fi
  9688. ;;
  9689. none) break ;;
  9690. esac
  9691. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9692. # mode. It turns out that the SunPro C++ compiler does not properly
  9693. # handle `-M -o', and we need to detect this.
  9694. if depmode=$depmode \
  9695. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  9696. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9697. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  9698. >/dev/null 2>conftest.err &&
  9699. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9700. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  9701. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9702. # icc doesn't choke on unknown options, it will just issue warnings
  9703. # or remarks (even with -Werror). So we grep stderr for any message
  9704. # that says an option was ignored or not supported.
  9705. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9706. # icc: Command line warning: ignoring option '-M'; no argument required
  9707. # The diagnosis changed in icc 8.0:
  9708. # icc: Command line remark: option '-MP' not supported
  9709. if (grep 'ignoring option' conftest.err ||
  9710. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9711. am_cv_CC_dependencies_compiler_type=$depmode
  9712. break
  9713. fi
  9714. fi
  9715. done
  9716. cd ..
  9717. rm -rf conftest.dir
  9718. else
  9719. am_cv_CC_dependencies_compiler_type=none
  9720. fi
  9721. fi
  9722. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  9723. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  9724. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9725. if
  9726. test "x$enable_dependency_tracking" != xno \
  9727. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9728. am__fastdepCC_TRUE=
  9729. am__fastdepCC_FALSE='#'
  9730. else
  9731. am__fastdepCC_TRUE='#'
  9732. am__fastdepCC_FALSE=
  9733. fi
  9734. ac_ext=cc
  9735. ac_cpp='$CXXCPP $CPPFLAGS'
  9736. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9737. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9738. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9739. if test -n "$ac_tool_prefix"; then
  9740. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  9741. do
  9742. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9743. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9744. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9745. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9746. if test "${ac_cv_prog_CXX+set}" = set; then
  9747. echo $ECHO_N "(cached) $ECHO_C" >&6
  9748. else
  9749. if test -n "$CXX"; then
  9750. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9751. else
  9752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9753. for as_dir in $PATH
  9754. do
  9755. IFS=$as_save_IFS
  9756. test -z "$as_dir" && as_dir=.
  9757. for ac_exec_ext in '' $ac_executable_extensions; do
  9758. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9759. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9760. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9761. break 2
  9762. fi
  9763. done
  9764. done
  9765. fi
  9766. fi
  9767. CXX=$ac_cv_prog_CXX
  9768. if test -n "$CXX"; then
  9769. echo "$as_me:$LINENO: result: $CXX" >&5
  9770. echo "${ECHO_T}$CXX" >&6
  9771. else
  9772. echo "$as_me:$LINENO: result: no" >&5
  9773. echo "${ECHO_T}no" >&6
  9774. fi
  9775. test -n "$CXX" && break
  9776. done
  9777. fi
  9778. if test -z "$CXX"; then
  9779. ac_ct_CXX=$CXX
  9780. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  9781. do
  9782. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9783. set dummy $ac_prog; ac_word=$2
  9784. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9785. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9786. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  9787. echo $ECHO_N "(cached) $ECHO_C" >&6
  9788. else
  9789. if test -n "$ac_ct_CXX"; then
  9790. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9791. else
  9792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9793. for as_dir in $PATH
  9794. do
  9795. IFS=$as_save_IFS
  9796. test -z "$as_dir" && as_dir=.
  9797. for ac_exec_ext in '' $ac_executable_extensions; do
  9798. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9799. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9800. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9801. break 2
  9802. fi
  9803. done
  9804. done
  9805. fi
  9806. fi
  9807. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9808. if test -n "$ac_ct_CXX"; then
  9809. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  9810. echo "${ECHO_T}$ac_ct_CXX" >&6
  9811. else
  9812. echo "$as_me:$LINENO: result: no" >&5
  9813. echo "${ECHO_T}no" >&6
  9814. fi
  9815. test -n "$ac_ct_CXX" && break
  9816. done
  9817. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  9818. CXX=$ac_ct_CXX
  9819. fi
  9820. # Provide some information about the compiler.
  9821. echo "$as_me:$LINENO:" \
  9822. "checking for C++ compiler version" >&5
  9823. ac_compiler=`set X $ac_compile; echo $2`
  9824. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  9825. (eval $ac_compiler --version </dev/null >&5) 2>&5
  9826. ac_status=$?
  9827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9828. (exit $ac_status); }
  9829. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  9830. (eval $ac_compiler -v </dev/null >&5) 2>&5
  9831. ac_status=$?
  9832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9833. (exit $ac_status); }
  9834. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  9835. (eval $ac_compiler -V </dev/null >&5) 2>&5
  9836. ac_status=$?
  9837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9838. (exit $ac_status); }
  9839. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  9840. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  9841. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  9842. echo $ECHO_N "(cached) $ECHO_C" >&6
  9843. else
  9844. cat >conftest.$ac_ext <<_ACEOF
  9845. /* confdefs.h. */
  9846. _ACEOF
  9847. cat confdefs.h >>conftest.$ac_ext
  9848. cat >>conftest.$ac_ext <<_ACEOF
  9849. /* end confdefs.h. */
  9850. int
  9851. main ()
  9852. {
  9853. #ifndef __GNUC__
  9854. choke me
  9855. #endif
  9856. ;
  9857. return 0;
  9858. }
  9859. _ACEOF
  9860. rm -f conftest.$ac_objext
  9861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9862. (eval $ac_compile) 2>conftest.er1
  9863. ac_status=$?
  9864. grep -v '^ *+' conftest.er1 >conftest.err
  9865. rm -f conftest.er1
  9866. cat conftest.err >&5
  9867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9868. (exit $ac_status); } &&
  9869. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9871. (eval $ac_try) 2>&5
  9872. ac_status=$?
  9873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9874. (exit $ac_status); }; } &&
  9875. { ac_try='test -s conftest.$ac_objext'
  9876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9877. (eval $ac_try) 2>&5
  9878. ac_status=$?
  9879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9880. (exit $ac_status); }; }; then
  9881. ac_compiler_gnu=yes
  9882. else
  9883. echo "$as_me: failed program was:" >&5
  9884. sed 's/^/| /' conftest.$ac_ext >&5
  9885. ac_compiler_gnu=no
  9886. fi
  9887. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9888. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9889. fi
  9890. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  9891. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  9892. GXX=`test $ac_compiler_gnu = yes && echo yes`
  9893. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9894. ac_save_CXXFLAGS=$CXXFLAGS
  9895. CXXFLAGS="-g"
  9896. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  9897. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  9898. if test "${ac_cv_prog_cxx_g+set}" = set; then
  9899. echo $ECHO_N "(cached) $ECHO_C" >&6
  9900. else
  9901. cat >conftest.$ac_ext <<_ACEOF
  9902. /* confdefs.h. */
  9903. _ACEOF
  9904. cat confdefs.h >>conftest.$ac_ext
  9905. cat >>conftest.$ac_ext <<_ACEOF
  9906. /* end confdefs.h. */
  9907. int
  9908. main ()
  9909. {
  9910. ;
  9911. return 0;
  9912. }
  9913. _ACEOF
  9914. rm -f conftest.$ac_objext
  9915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9916. (eval $ac_compile) 2>conftest.er1
  9917. ac_status=$?
  9918. grep -v '^ *+' conftest.er1 >conftest.err
  9919. rm -f conftest.er1
  9920. cat conftest.err >&5
  9921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9922. (exit $ac_status); } &&
  9923. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9925. (eval $ac_try) 2>&5
  9926. ac_status=$?
  9927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9928. (exit $ac_status); }; } &&
  9929. { ac_try='test -s conftest.$ac_objext'
  9930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9931. (eval $ac_try) 2>&5
  9932. ac_status=$?
  9933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9934. (exit $ac_status); }; }; then
  9935. ac_cv_prog_cxx_g=yes
  9936. else
  9937. echo "$as_me: failed program was:" >&5
  9938. sed 's/^/| /' conftest.$ac_ext >&5
  9939. ac_cv_prog_cxx_g=no
  9940. fi
  9941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9942. fi
  9943. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  9944. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  9945. if test "$ac_test_CXXFLAGS" = set; then
  9946. CXXFLAGS=$ac_save_CXXFLAGS
  9947. elif test $ac_cv_prog_cxx_g = yes; then
  9948. if test "$GXX" = yes; then
  9949. CXXFLAGS="-g -O2"
  9950. else
  9951. CXXFLAGS="-g"
  9952. fi
  9953. else
  9954. if test "$GXX" = yes; then
  9955. CXXFLAGS="-O2"
  9956. else
  9957. CXXFLAGS=
  9958. fi
  9959. fi
  9960. for ac_declaration in \
  9961. '' \
  9962. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  9963. 'extern "C" void std::exit (int); using std::exit;' \
  9964. 'extern "C" void exit (int) throw ();' \
  9965. 'extern "C" void exit (int);' \
  9966. 'void exit (int);'
  9967. do
  9968. cat >conftest.$ac_ext <<_ACEOF
  9969. /* confdefs.h. */
  9970. _ACEOF
  9971. cat confdefs.h >>conftest.$ac_ext
  9972. cat >>conftest.$ac_ext <<_ACEOF
  9973. /* end confdefs.h. */
  9974. $ac_declaration
  9975. #include <stdlib.h>
  9976. int
  9977. main ()
  9978. {
  9979. exit (42);
  9980. ;
  9981. return 0;
  9982. }
  9983. _ACEOF
  9984. rm -f conftest.$ac_objext
  9985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9986. (eval $ac_compile) 2>conftest.er1
  9987. ac_status=$?
  9988. grep -v '^ *+' conftest.er1 >conftest.err
  9989. rm -f conftest.er1
  9990. cat conftest.err >&5
  9991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9992. (exit $ac_status); } &&
  9993. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9995. (eval $ac_try) 2>&5
  9996. ac_status=$?
  9997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9998. (exit $ac_status); }; } &&
  9999. { ac_try='test -s conftest.$ac_objext'
  10000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10001. (eval $ac_try) 2>&5
  10002. ac_status=$?
  10003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10004. (exit $ac_status); }; }; then
  10005. :
  10006. else
  10007. echo "$as_me: failed program was:" >&5
  10008. sed 's/^/| /' conftest.$ac_ext >&5
  10009. continue
  10010. fi
  10011. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10012. cat >conftest.$ac_ext <<_ACEOF
  10013. /* confdefs.h. */
  10014. _ACEOF
  10015. cat confdefs.h >>conftest.$ac_ext
  10016. cat >>conftest.$ac_ext <<_ACEOF
  10017. /* end confdefs.h. */
  10018. $ac_declaration
  10019. int
  10020. main ()
  10021. {
  10022. exit (42);
  10023. ;
  10024. return 0;
  10025. }
  10026. _ACEOF
  10027. rm -f conftest.$ac_objext
  10028. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10029. (eval $ac_compile) 2>conftest.er1
  10030. ac_status=$?
  10031. grep -v '^ *+' conftest.er1 >conftest.err
  10032. rm -f conftest.er1
  10033. cat conftest.err >&5
  10034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10035. (exit $ac_status); } &&
  10036. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10038. (eval $ac_try) 2>&5
  10039. ac_status=$?
  10040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10041. (exit $ac_status); }; } &&
  10042. { ac_try='test -s conftest.$ac_objext'
  10043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10044. (eval $ac_try) 2>&5
  10045. ac_status=$?
  10046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10047. (exit $ac_status); }; }; then
  10048. break
  10049. else
  10050. echo "$as_me: failed program was:" >&5
  10051. sed 's/^/| /' conftest.$ac_ext >&5
  10052. fi
  10053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10054. done
  10055. rm -f conftest*
  10056. if test -n "$ac_declaration"; then
  10057. echo '#ifdef __cplusplus' >>confdefs.h
  10058. echo $ac_declaration >>confdefs.h
  10059. echo '#endif' >>confdefs.h
  10060. fi
  10061. ac_ext=c
  10062. ac_cpp='$CPP $CPPFLAGS'
  10063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10066. depcc="$CXX" am_compiler_list=
  10067. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10068. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  10069. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10070. echo $ECHO_N "(cached) $ECHO_C" >&6
  10071. else
  10072. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10073. # We make a subdir and do the tests there. Otherwise we can end up
  10074. # making bogus files that we don't know about and never remove. For
  10075. # instance it was reported that on HP-UX the gcc test will end up
  10076. # making a dummy file named `D' -- because `-MD' means `put the output
  10077. # in D'.
  10078. mkdir conftest.dir
  10079. # Copy depcomp to subdir because otherwise we won't find it if we're
  10080. # using a relative directory.
  10081. cp "$am_depcomp" conftest.dir
  10082. cd conftest.dir
  10083. # We will build objects and dependencies in a subdirectory because
  10084. # it helps to detect inapplicable dependency modes. For instance
  10085. # both Tru64's cc and ICC support -MD to output dependencies as a
  10086. # side effect of compilation, but ICC will put the dependencies in
  10087. # the current directory while Tru64 will put them in the object
  10088. # directory.
  10089. mkdir sub
  10090. am_cv_CXX_dependencies_compiler_type=none
  10091. if test "$am_compiler_list" = ""; then
  10092. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10093. fi
  10094. for depmode in $am_compiler_list; do
  10095. # Setup a source with many dependencies, because some compilers
  10096. # like to wrap large dependency lists on column 80 (with \), and
  10097. # we should not choose a depcomp mode which is confused by this.
  10098. #
  10099. # We need to recreate these files for each test, as the compiler may
  10100. # overwrite some of them when testing with obscure command lines.
  10101. # This happens at least with the AIX C compiler.
  10102. : > sub/conftest.c
  10103. for i in 1 2 3 4 5 6; do
  10104. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10105. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10106. # Solaris 8's {/usr,}/bin/sh.
  10107. touch sub/conftst$i.h
  10108. done
  10109. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10110. case $depmode in
  10111. nosideeffect)
  10112. # after this tag, mechanisms are not by side-effect, so they'll
  10113. # only be used when explicitly requested
  10114. if test "x$enable_dependency_tracking" = xyes; then
  10115. continue
  10116. else
  10117. break
  10118. fi
  10119. ;;
  10120. none) break ;;
  10121. esac
  10122. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10123. # mode. It turns out that the SunPro C++ compiler does not properly
  10124. # handle `-M -o', and we need to detect this.
  10125. if depmode=$depmode \
  10126. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  10127. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10128. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  10129. >/dev/null 2>conftest.err &&
  10130. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10131. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  10132. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10133. # icc doesn't choke on unknown options, it will just issue warnings
  10134. # or remarks (even with -Werror). So we grep stderr for any message
  10135. # that says an option was ignored or not supported.
  10136. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10137. # icc: Command line warning: ignoring option '-M'; no argument required
  10138. # The diagnosis changed in icc 8.0:
  10139. # icc: Command line remark: option '-MP' not supported
  10140. if (grep 'ignoring option' conftest.err ||
  10141. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10142. am_cv_CXX_dependencies_compiler_type=$depmode
  10143. break
  10144. fi
  10145. fi
  10146. done
  10147. cd ..
  10148. rm -rf conftest.dir
  10149. else
  10150. am_cv_CXX_dependencies_compiler_type=none
  10151. fi
  10152. fi
  10153. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10154. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  10155. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10156. if
  10157. test "x$enable_dependency_tracking" != xno \
  10158. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10159. am__fastdepCXX_TRUE=
  10160. am__fastdepCXX_FALSE='#'
  10161. else
  10162. am__fastdepCXX_TRUE='#'
  10163. am__fastdepCXX_FALSE=
  10164. fi
  10165. if test -n "$ac_tool_prefix"; then
  10166. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10167. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10168. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10170. if test "${ac_cv_prog_RANLIB+set}" = set; then
  10171. echo $ECHO_N "(cached) $ECHO_C" >&6
  10172. else
  10173. if test -n "$RANLIB"; then
  10174. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10175. else
  10176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10177. for as_dir in $PATH
  10178. do
  10179. IFS=$as_save_IFS
  10180. test -z "$as_dir" && as_dir=.
  10181. for ac_exec_ext in '' $ac_executable_extensions; do
  10182. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10183. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10185. break 2
  10186. fi
  10187. done
  10188. done
  10189. fi
  10190. fi
  10191. RANLIB=$ac_cv_prog_RANLIB
  10192. if test -n "$RANLIB"; then
  10193. echo "$as_me:$LINENO: result: $RANLIB" >&5
  10194. echo "${ECHO_T}$RANLIB" >&6
  10195. else
  10196. echo "$as_me:$LINENO: result: no" >&5
  10197. echo "${ECHO_T}no" >&6
  10198. fi
  10199. fi
  10200. if test -z "$ac_cv_prog_RANLIB"; then
  10201. ac_ct_RANLIB=$RANLIB
  10202. # Extract the first word of "ranlib", so it can be a program name with args.
  10203. set dummy ranlib; ac_word=$2
  10204. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10205. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10206. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  10207. echo $ECHO_N "(cached) $ECHO_C" >&6
  10208. else
  10209. if test -n "$ac_ct_RANLIB"; then
  10210. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10211. else
  10212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10213. for as_dir in $PATH
  10214. do
  10215. IFS=$as_save_IFS
  10216. test -z "$as_dir" && as_dir=.
  10217. for ac_exec_ext in '' $ac_executable_extensions; do
  10218. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10219. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10220. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10221. break 2
  10222. fi
  10223. done
  10224. done
  10225. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  10226. fi
  10227. fi
  10228. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10229. if test -n "$ac_ct_RANLIB"; then
  10230. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  10231. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  10232. else
  10233. echo "$as_me:$LINENO: result: no" >&5
  10234. echo "${ECHO_T}no" >&6
  10235. fi
  10236. RANLIB=$ac_ct_RANLIB
  10237. else
  10238. RANLIB="$ac_cv_prog_RANLIB"
  10239. fi
  10240. # Extract the first word of "perl", so it can be a program name with args.
  10241. set dummy perl; ac_word=$2
  10242. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10243. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10244. if test "${ac_cv_path_PERL+set}" = set; then
  10245. echo $ECHO_N "(cached) $ECHO_C" >&6
  10246. else
  10247. case $PERL in
  10248. [\\/]* | ?:[\\/]*)
  10249. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  10250. ;;
  10251. *)
  10252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10253. for as_dir in $PATH
  10254. do
  10255. IFS=$as_save_IFS
  10256. test -z "$as_dir" && as_dir=.
  10257. for ac_exec_ext in '' $ac_executable_extensions; do
  10258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10259. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  10260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10261. break 2
  10262. fi
  10263. done
  10264. done
  10265. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
  10266. ;;
  10267. esac
  10268. fi
  10269. PERL=$ac_cv_path_PERL
  10270. if test -n "$PERL"; then
  10271. echo "$as_me:$LINENO: result: $PERL" >&5
  10272. echo "${ECHO_T}$PERL" >&6
  10273. else
  10274. echo "$as_me:$LINENO: result: no" >&5
  10275. echo "${ECHO_T}no" >&6
  10276. fi
  10277. # Checks for operating system services and capabilities.
  10278. # Check whether --enable-largefile or --disable-largefile was given.
  10279. if test "${enable_largefile+set}" = set; then
  10280. enableval="$enable_largefile"
  10281. fi;
  10282. if test "$enable_largefile" != no; then
  10283. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  10284. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  10285. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  10286. echo $ECHO_N "(cached) $ECHO_C" >&6
  10287. else
  10288. ac_cv_sys_largefile_CC=no
  10289. if test "$GCC" != yes; then
  10290. ac_save_CC=$CC
  10291. while :; do
  10292. # IRIX 6.2 and later do not support large files by default,
  10293. # so use the C compiler's -n32 option if that helps.
  10294. cat >conftest.$ac_ext <<_ACEOF
  10295. /* confdefs.h. */
  10296. _ACEOF
  10297. cat confdefs.h >>conftest.$ac_ext
  10298. cat >>conftest.$ac_ext <<_ACEOF
  10299. /* end confdefs.h. */
  10300. #include <sys/types.h>
  10301. /* Check that off_t can represent 2**63 - 1 correctly.
  10302. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10303. since some C++ compilers masquerading as C compilers
  10304. incorrectly reject 9223372036854775807. */
  10305. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10306. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10307. && LARGE_OFF_T % 2147483647 == 1)
  10308. ? 1 : -1];
  10309. int
  10310. main ()
  10311. {
  10312. ;
  10313. return 0;
  10314. }
  10315. _ACEOF
  10316. rm -f conftest.$ac_objext
  10317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10318. (eval $ac_compile) 2>conftest.er1
  10319. ac_status=$?
  10320. grep -v '^ *+' conftest.er1 >conftest.err
  10321. rm -f conftest.er1
  10322. cat conftest.err >&5
  10323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10324. (exit $ac_status); } &&
  10325. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10327. (eval $ac_try) 2>&5
  10328. ac_status=$?
  10329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10330. (exit $ac_status); }; } &&
  10331. { ac_try='test -s conftest.$ac_objext'
  10332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10333. (eval $ac_try) 2>&5
  10334. ac_status=$?
  10335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10336. (exit $ac_status); }; }; then
  10337. break
  10338. else
  10339. echo "$as_me: failed program was:" >&5
  10340. sed 's/^/| /' conftest.$ac_ext >&5
  10341. fi
  10342. rm -f conftest.err conftest.$ac_objext
  10343. CC="$CC -n32"
  10344. rm -f conftest.$ac_objext
  10345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10346. (eval $ac_compile) 2>conftest.er1
  10347. ac_status=$?
  10348. grep -v '^ *+' conftest.er1 >conftest.err
  10349. rm -f conftest.er1
  10350. cat conftest.err >&5
  10351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10352. (exit $ac_status); } &&
  10353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10355. (eval $ac_try) 2>&5
  10356. ac_status=$?
  10357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10358. (exit $ac_status); }; } &&
  10359. { ac_try='test -s conftest.$ac_objext'
  10360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10361. (eval $ac_try) 2>&5
  10362. ac_status=$?
  10363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10364. (exit $ac_status); }; }; then
  10365. ac_cv_sys_largefile_CC=' -n32'; break
  10366. else
  10367. echo "$as_me: failed program was:" >&5
  10368. sed 's/^/| /' conftest.$ac_ext >&5
  10369. fi
  10370. rm -f conftest.err conftest.$ac_objext
  10371. break
  10372. done
  10373. CC=$ac_save_CC
  10374. rm -f conftest.$ac_ext
  10375. fi
  10376. fi
  10377. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10378. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  10379. if test "$ac_cv_sys_largefile_CC" != no; then
  10380. CC=$CC$ac_cv_sys_largefile_CC
  10381. fi
  10382. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10383. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  10384. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10385. echo $ECHO_N "(cached) $ECHO_C" >&6
  10386. else
  10387. while :; do
  10388. ac_cv_sys_file_offset_bits=no
  10389. cat >conftest.$ac_ext <<_ACEOF
  10390. /* confdefs.h. */
  10391. _ACEOF
  10392. cat confdefs.h >>conftest.$ac_ext
  10393. cat >>conftest.$ac_ext <<_ACEOF
  10394. /* end confdefs.h. */
  10395. #include <sys/types.h>
  10396. /* Check that off_t can represent 2**63 - 1 correctly.
  10397. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10398. since some C++ compilers masquerading as C compilers
  10399. incorrectly reject 9223372036854775807. */
  10400. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10401. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10402. && LARGE_OFF_T % 2147483647 == 1)
  10403. ? 1 : -1];
  10404. int
  10405. main ()
  10406. {
  10407. ;
  10408. return 0;
  10409. }
  10410. _ACEOF
  10411. rm -f conftest.$ac_objext
  10412. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10413. (eval $ac_compile) 2>conftest.er1
  10414. ac_status=$?
  10415. grep -v '^ *+' conftest.er1 >conftest.err
  10416. rm -f conftest.er1
  10417. cat conftest.err >&5
  10418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10419. (exit $ac_status); } &&
  10420. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10421. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10422. (eval $ac_try) 2>&5
  10423. ac_status=$?
  10424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10425. (exit $ac_status); }; } &&
  10426. { ac_try='test -s conftest.$ac_objext'
  10427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10428. (eval $ac_try) 2>&5
  10429. ac_status=$?
  10430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10431. (exit $ac_status); }; }; then
  10432. break
  10433. else
  10434. echo "$as_me: failed program was:" >&5
  10435. sed 's/^/| /' conftest.$ac_ext >&5
  10436. fi
  10437. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10438. cat >conftest.$ac_ext <<_ACEOF
  10439. /* confdefs.h. */
  10440. _ACEOF
  10441. cat confdefs.h >>conftest.$ac_ext
  10442. cat >>conftest.$ac_ext <<_ACEOF
  10443. /* end confdefs.h. */
  10444. #define _FILE_OFFSET_BITS 64
  10445. #include <sys/types.h>
  10446. /* Check that off_t can represent 2**63 - 1 correctly.
  10447. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10448. since some C++ compilers masquerading as C compilers
  10449. incorrectly reject 9223372036854775807. */
  10450. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10451. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10452. && LARGE_OFF_T % 2147483647 == 1)
  10453. ? 1 : -1];
  10454. int
  10455. main ()
  10456. {
  10457. ;
  10458. return 0;
  10459. }
  10460. _ACEOF
  10461. rm -f conftest.$ac_objext
  10462. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10463. (eval $ac_compile) 2>conftest.er1
  10464. ac_status=$?
  10465. grep -v '^ *+' conftest.er1 >conftest.err
  10466. rm -f conftest.er1
  10467. cat conftest.err >&5
  10468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10469. (exit $ac_status); } &&
  10470. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10472. (eval $ac_try) 2>&5
  10473. ac_status=$?
  10474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10475. (exit $ac_status); }; } &&
  10476. { ac_try='test -s conftest.$ac_objext'
  10477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10478. (eval $ac_try) 2>&5
  10479. ac_status=$?
  10480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10481. (exit $ac_status); }; }; then
  10482. ac_cv_sys_file_offset_bits=64; break
  10483. else
  10484. echo "$as_me: failed program was:" >&5
  10485. sed 's/^/| /' conftest.$ac_ext >&5
  10486. fi
  10487. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10488. break
  10489. done
  10490. fi
  10491. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10492. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  10493. if test "$ac_cv_sys_file_offset_bits" != no; then
  10494. cat >>confdefs.h <<_ACEOF
  10495. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10496. _ACEOF
  10497. fi
  10498. rm -f conftest*
  10499. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10500. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  10501. if test "${ac_cv_sys_large_files+set}" = set; then
  10502. echo $ECHO_N "(cached) $ECHO_C" >&6
  10503. else
  10504. while :; do
  10505. ac_cv_sys_large_files=no
  10506. cat >conftest.$ac_ext <<_ACEOF
  10507. /* confdefs.h. */
  10508. _ACEOF
  10509. cat confdefs.h >>conftest.$ac_ext
  10510. cat >>conftest.$ac_ext <<_ACEOF
  10511. /* end confdefs.h. */
  10512. #include <sys/types.h>
  10513. /* Check that off_t can represent 2**63 - 1 correctly.
  10514. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10515. since some C++ compilers masquerading as C compilers
  10516. incorrectly reject 9223372036854775807. */
  10517. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10518. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10519. && LARGE_OFF_T % 2147483647 == 1)
  10520. ? 1 : -1];
  10521. int
  10522. main ()
  10523. {
  10524. ;
  10525. return 0;
  10526. }
  10527. _ACEOF
  10528. rm -f conftest.$ac_objext
  10529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10530. (eval $ac_compile) 2>conftest.er1
  10531. ac_status=$?
  10532. grep -v '^ *+' conftest.er1 >conftest.err
  10533. rm -f conftest.er1
  10534. cat conftest.err >&5
  10535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10536. (exit $ac_status); } &&
  10537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10539. (eval $ac_try) 2>&5
  10540. ac_status=$?
  10541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10542. (exit $ac_status); }; } &&
  10543. { ac_try='test -s conftest.$ac_objext'
  10544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10545. (eval $ac_try) 2>&5
  10546. ac_status=$?
  10547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10548. (exit $ac_status); }; }; then
  10549. break
  10550. else
  10551. echo "$as_me: failed program was:" >&5
  10552. sed 's/^/| /' conftest.$ac_ext >&5
  10553. fi
  10554. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10555. cat >conftest.$ac_ext <<_ACEOF
  10556. /* confdefs.h. */
  10557. _ACEOF
  10558. cat confdefs.h >>conftest.$ac_ext
  10559. cat >>conftest.$ac_ext <<_ACEOF
  10560. /* end confdefs.h. */
  10561. #define _LARGE_FILES 1
  10562. #include <sys/types.h>
  10563. /* Check that off_t can represent 2**63 - 1 correctly.
  10564. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10565. since some C++ compilers masquerading as C compilers
  10566. incorrectly reject 9223372036854775807. */
  10567. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10568. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10569. && LARGE_OFF_T % 2147483647 == 1)
  10570. ? 1 : -1];
  10571. int
  10572. main ()
  10573. {
  10574. ;
  10575. return 0;
  10576. }
  10577. _ACEOF
  10578. rm -f conftest.$ac_objext
  10579. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10580. (eval $ac_compile) 2>conftest.er1
  10581. ac_status=$?
  10582. grep -v '^ *+' conftest.er1 >conftest.err
  10583. rm -f conftest.er1
  10584. cat conftest.err >&5
  10585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10586. (exit $ac_status); } &&
  10587. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10589. (eval $ac_try) 2>&5
  10590. ac_status=$?
  10591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10592. (exit $ac_status); }; } &&
  10593. { ac_try='test -s conftest.$ac_objext'
  10594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10595. (eval $ac_try) 2>&5
  10596. ac_status=$?
  10597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10598. (exit $ac_status); }; }; then
  10599. ac_cv_sys_large_files=1; break
  10600. else
  10601. echo "$as_me: failed program was:" >&5
  10602. sed 's/^/| /' conftest.$ac_ext >&5
  10603. fi
  10604. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10605. break
  10606. done
  10607. fi
  10608. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10609. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  10610. if test "$ac_cv_sys_large_files" != no; then
  10611. cat >>confdefs.h <<_ACEOF
  10612. #define _LARGE_FILES $ac_cv_sys_large_files
  10613. _ACEOF
  10614. fi
  10615. rm -f conftest*
  10616. fi
  10617. echo "$as_me:$LINENO: checking cpu type" >&5
  10618. echo $ECHO_N "checking cpu type... $ECHO_C" >&6
  10619. case "$target_cpu" in
  10620. i386|i486|i586|i686|pentium)
  10621. cpu_type="i386"
  10622. ;;
  10623. alpha*)
  10624. cpu_type="alpha"
  10625. ;;
  10626. arm*)
  10627. cpu_type="arm"
  10628. ;;
  10629. hppa*)
  10630. cpu_type="hppa"
  10631. ;;
  10632. sparc|sparc64)
  10633. cpu_type="sparc"
  10634. ;;
  10635. mips|mipseb)
  10636. cpu_type="mips"
  10637. ;;
  10638. powerpc|ppc)
  10639. cpu_type="powerpc"
  10640. ;;
  10641. *)
  10642. cpu_type=$target_cpu
  10643. ;;
  10644. esac
  10645. echo "$as_me:$LINENO: result: $cpu_type" >&5
  10646. echo "${ECHO_T}$cpu_type" >&6
  10647. echo "$as_me:$LINENO: checking operating system type" >&5
  10648. echo $ECHO_N "checking operating system type... $ECHO_C" >&6
  10649. case "$target_os" in
  10650. linux*-gnu*)
  10651. os_type="linux"
  10652. ;;
  10653. darwin*)
  10654. os_type="darwin"
  10655. ;;
  10656. freebsd*)
  10657. os_type="freebsd"
  10658. ;;
  10659. gnu*)
  10660. os_type="gnu"
  10661. ;;
  10662. kfreebsd*-gnu*)
  10663. os_type="kfreebsd-gnu"
  10664. ;;
  10665. knetbsd*-gnu*)
  10666. os_type="knetbsd-gnu"
  10667. ;;
  10668. netbsd*)
  10669. os_type="netbsd"
  10670. ;;
  10671. openbsd*)
  10672. os_type="openbsd"
  10673. ;;
  10674. *)
  10675. os_type=$target_os
  10676. ;;
  10677. esac
  10678. echo "$as_me:$LINENO: result: $os_type" >&5
  10679. echo "${ECHO_T}$os_type" >&6
  10680. echo "$as_me:$LINENO: checking Debian architecture name" >&5
  10681. echo $ECHO_N "checking Debian architecture name... $ECHO_C" >&6
  10682. dpkg_archset="`awk '$1 == "'$cpu_type-$os_type'" { print $2 }' $srcdir/archtable`"
  10683. if test "x$dpkg_archset" = "x"; then
  10684. dpkg_archset=$cpu_type-$os_type
  10685. echo "$as_me:$LINENO: result: $dpkg_archset, but not found in archtable" >&5
  10686. echo "${ECHO_T}$dpkg_archset, but not found in archtable" >&6
  10687. else
  10688. echo "$as_me:$LINENO: result: $dpkg_archset" >&5
  10689. echo "${ECHO_T}$dpkg_archset" >&6
  10690. fi
  10691. cat >>confdefs.h <<_ACEOF
  10692. #define ARCHITECTURE "${dpkg_archset}"
  10693. _ACEOF
  10694. # Checks for libraries.
  10695. # Check whether --with-zlib or --without-zlib was given.
  10696. if test "${with_zlib+set}" = set; then
  10697. withval="$with_zlib"
  10698. case "$with_zlib" in
  10699. yes)
  10700. ZLIB_CFLAGS="${ZLIB_CFLAGS:+$ZLIB_CFLAGS }-DWITH_ZLIB"
  10701. ZLIB_LIBS="${ZLIB_LIBS:+$ZLIB_LIBS }-lz"
  10702. ;;
  10703. static)
  10704. ZLIB_CFLAGS="${ZLIB_CFLAGS:+$ZLIB_CFLAGS }-DWITH_ZLIB"
  10705. ZLIB_LIBS="${ZLIB_LIBS:+$ZLIB_LIBS }-Wl,-Bstatic -lz -Wl,-Bdynamic"
  10706. ;;
  10707. esac
  10708. fi;
  10709. # Check whether --with-bz2 or --without-bz2 was given.
  10710. if test "${with_bz2+set}" = set; then
  10711. withval="$with_bz2"
  10712. case "$with_bz2" in
  10713. yes)
  10714. BZ2_CFLAGS="${BZ2_CFLAGS:+$BZ2_CFLAGS }-DWITH_BZ2"
  10715. BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }-lbz2"
  10716. ;;
  10717. static)
  10718. BZ2_CFLAGS="${BZ2_CFLAGS:+$BZ2_CFLAGS }-DWITH_BZ2"
  10719. BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
  10720. ;;
  10721. esac
  10722. fi;
  10723. if test "x$build_dselect" = "xyes"; then
  10724. echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
  10725. echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
  10726. if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
  10727. echo $ECHO_N "(cached) $ECHO_C" >&6
  10728. else
  10729. ac_check_lib_save_LIBS=$LIBS
  10730. LIBS="-lncurses $LIBS"
  10731. cat >conftest.$ac_ext <<_ACEOF
  10732. /* confdefs.h. */
  10733. _ACEOF
  10734. cat confdefs.h >>conftest.$ac_ext
  10735. cat >>conftest.$ac_ext <<_ACEOF
  10736. /* end confdefs.h. */
  10737. /* Override any gcc2 internal prototype to avoid an error. */
  10738. #ifdef __cplusplus
  10739. extern "C"
  10740. #endif
  10741. /* We use char because int might match the return type of a gcc2
  10742. builtin and then its argument prototype would still apply. */
  10743. char initscr ();
  10744. int
  10745. main ()
  10746. {
  10747. initscr ();
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. rm -f conftest.$ac_objext conftest$ac_exeext
  10753. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10754. (eval $ac_link) 2>conftest.er1
  10755. ac_status=$?
  10756. grep -v '^ *+' conftest.er1 >conftest.err
  10757. rm -f conftest.er1
  10758. cat conftest.err >&5
  10759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10760. (exit $ac_status); } &&
  10761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10763. (eval $ac_try) 2>&5
  10764. ac_status=$?
  10765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10766. (exit $ac_status); }; } &&
  10767. { ac_try='test -s conftest$ac_exeext'
  10768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10769. (eval $ac_try) 2>&5
  10770. ac_status=$?
  10771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10772. (exit $ac_status); }; }; then
  10773. ac_cv_lib_ncurses_initscr=yes
  10774. else
  10775. echo "$as_me: failed program was:" >&5
  10776. sed 's/^/| /' conftest.$ac_ext >&5
  10777. ac_cv_lib_ncurses_initscr=no
  10778. fi
  10779. rm -f conftest.err conftest.$ac_objext \
  10780. conftest$ac_exeext conftest.$ac_ext
  10781. LIBS=$ac_check_lib_save_LIBS
  10782. fi
  10783. echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
  10784. echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
  10785. if test $ac_cv_lib_ncurses_initscr = yes; then
  10786. CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
  10787. else
  10788. echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
  10789. echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
  10790. if test "${ac_cv_lib_curses_initscr+set}" = set; then
  10791. echo $ECHO_N "(cached) $ECHO_C" >&6
  10792. else
  10793. ac_check_lib_save_LIBS=$LIBS
  10794. LIBS="-lcurses $LIBS"
  10795. cat >conftest.$ac_ext <<_ACEOF
  10796. /* confdefs.h. */
  10797. _ACEOF
  10798. cat confdefs.h >>conftest.$ac_ext
  10799. cat >>conftest.$ac_ext <<_ACEOF
  10800. /* end confdefs.h. */
  10801. /* Override any gcc2 internal prototype to avoid an error. */
  10802. #ifdef __cplusplus
  10803. extern "C"
  10804. #endif
  10805. /* We use char because int might match the return type of a gcc2
  10806. builtin and then its argument prototype would still apply. */
  10807. char initscr ();
  10808. int
  10809. main ()
  10810. {
  10811. initscr ();
  10812. ;
  10813. return 0;
  10814. }
  10815. _ACEOF
  10816. rm -f conftest.$ac_objext conftest$ac_exeext
  10817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10818. (eval $ac_link) 2>conftest.er1
  10819. ac_status=$?
  10820. grep -v '^ *+' conftest.er1 >conftest.err
  10821. rm -f conftest.er1
  10822. cat conftest.err >&5
  10823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10824. (exit $ac_status); } &&
  10825. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10827. (eval $ac_try) 2>&5
  10828. ac_status=$?
  10829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10830. (exit $ac_status); }; } &&
  10831. { ac_try='test -s conftest$ac_exeext'
  10832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10833. (eval $ac_try) 2>&5
  10834. ac_status=$?
  10835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10836. (exit $ac_status); }; }; then
  10837. ac_cv_lib_curses_initscr=yes
  10838. else
  10839. echo "$as_me: failed program was:" >&5
  10840. sed 's/^/| /' conftest.$ac_ext >&5
  10841. ac_cv_lib_curses_initscr=no
  10842. fi
  10843. rm -f conftest.err conftest.$ac_objext \
  10844. conftest$ac_exeext conftest.$ac_ext
  10845. LIBS=$ac_check_lib_save_LIBS
  10846. fi
  10847. echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
  10848. echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
  10849. if test $ac_cv_lib_curses_initscr = yes; then
  10850. CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
  10851. else
  10852. { echo "$as_me:$LINENO: WARNING: no curses library found" >&5
  10853. echo "$as_me: WARNING: no curses library found" >&2;}
  10854. fi
  10855. fi
  10856. fi
  10857. if test "x$build_start_stop_daemon" = "xyes"; then
  10858. echo "$as_me:$LINENO: checking for ihash_create in -lihash" >&5
  10859. echo $ECHO_N "checking for ihash_create in -lihash... $ECHO_C" >&6
  10860. if test "${ac_cv_lib_ihash_ihash_create+set}" = set; then
  10861. echo $ECHO_N "(cached) $ECHO_C" >&6
  10862. else
  10863. ac_check_lib_save_LIBS=$LIBS
  10864. LIBS="-lihash $LIBS"
  10865. cat >conftest.$ac_ext <<_ACEOF
  10866. /* confdefs.h. */
  10867. _ACEOF
  10868. cat confdefs.h >>conftest.$ac_ext
  10869. cat >>conftest.$ac_ext <<_ACEOF
  10870. /* end confdefs.h. */
  10871. /* Override any gcc2 internal prototype to avoid an error. */
  10872. #ifdef __cplusplus
  10873. extern "C"
  10874. #endif
  10875. /* We use char because int might match the return type of a gcc2
  10876. builtin and then its argument prototype would still apply. */
  10877. char ihash_create ();
  10878. int
  10879. main ()
  10880. {
  10881. ihash_create ();
  10882. ;
  10883. return 0;
  10884. }
  10885. _ACEOF
  10886. rm -f conftest.$ac_objext conftest$ac_exeext
  10887. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10888. (eval $ac_link) 2>conftest.er1
  10889. ac_status=$?
  10890. grep -v '^ *+' conftest.er1 >conftest.err
  10891. rm -f conftest.er1
  10892. cat conftest.err >&5
  10893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10894. (exit $ac_status); } &&
  10895. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10897. (eval $ac_try) 2>&5
  10898. ac_status=$?
  10899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10900. (exit $ac_status); }; } &&
  10901. { ac_try='test -s conftest$ac_exeext'
  10902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10903. (eval $ac_try) 2>&5
  10904. ac_status=$?
  10905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10906. (exit $ac_status); }; }; then
  10907. ac_cv_lib_ihash_ihash_create=yes
  10908. else
  10909. echo "$as_me: failed program was:" >&5
  10910. sed 's/^/| /' conftest.$ac_ext >&5
  10911. ac_cv_lib_ihash_ihash_create=no
  10912. fi
  10913. rm -f conftest.err conftest.$ac_objext \
  10914. conftest$ac_exeext conftest.$ac_ext
  10915. LIBS=$ac_check_lib_save_LIBS
  10916. fi
  10917. echo "$as_me:$LINENO: result: $ac_cv_lib_ihash_ihash_create" >&5
  10918. echo "${ECHO_T}$ac_cv_lib_ihash_ihash_create" >&6
  10919. if test $ac_cv_lib_ihash_ihash_create = yes; then
  10920. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lihash"
  10921. fi
  10922. echo "$as_me:$LINENO: checking for proc_stat_list_create in -lps" >&5
  10923. echo $ECHO_N "checking for proc_stat_list_create in -lps... $ECHO_C" >&6
  10924. if test "${ac_cv_lib_ps_proc_stat_list_create+set}" = set; then
  10925. echo $ECHO_N "(cached) $ECHO_C" >&6
  10926. else
  10927. ac_check_lib_save_LIBS=$LIBS
  10928. LIBS="-lps $LIBS"
  10929. cat >conftest.$ac_ext <<_ACEOF
  10930. /* confdefs.h. */
  10931. _ACEOF
  10932. cat confdefs.h >>conftest.$ac_ext
  10933. cat >>conftest.$ac_ext <<_ACEOF
  10934. /* end confdefs.h. */
  10935. /* Override any gcc2 internal prototype to avoid an error. */
  10936. #ifdef __cplusplus
  10937. extern "C"
  10938. #endif
  10939. /* We use char because int might match the return type of a gcc2
  10940. builtin and then its argument prototype would still apply. */
  10941. char proc_stat_list_create ();
  10942. int
  10943. main ()
  10944. {
  10945. proc_stat_list_create ();
  10946. ;
  10947. return 0;
  10948. }
  10949. _ACEOF
  10950. rm -f conftest.$ac_objext conftest$ac_exeext
  10951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10952. (eval $ac_link) 2>conftest.er1
  10953. ac_status=$?
  10954. grep -v '^ *+' conftest.er1 >conftest.err
  10955. rm -f conftest.er1
  10956. cat conftest.err >&5
  10957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10958. (exit $ac_status); } &&
  10959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10961. (eval $ac_try) 2>&5
  10962. ac_status=$?
  10963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10964. (exit $ac_status); }; } &&
  10965. { ac_try='test -s conftest$ac_exeext'
  10966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10967. (eval $ac_try) 2>&5
  10968. ac_status=$?
  10969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10970. (exit $ac_status); }; }; then
  10971. ac_cv_lib_ps_proc_stat_list_create=yes
  10972. else
  10973. echo "$as_me: failed program was:" >&5
  10974. sed 's/^/| /' conftest.$ac_ext >&5
  10975. ac_cv_lib_ps_proc_stat_list_create=no
  10976. fi
  10977. rm -f conftest.err conftest.$ac_objext \
  10978. conftest$ac_exeext conftest.$ac_ext
  10979. LIBS=$ac_check_lib_save_LIBS
  10980. fi
  10981. echo "$as_me:$LINENO: result: $ac_cv_lib_ps_proc_stat_list_create" >&5
  10982. echo "${ECHO_T}$ac_cv_lib_ps_proc_stat_list_create" >&6
  10983. if test $ac_cv_lib_ps_proc_stat_list_create = yes; then
  10984. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lps"
  10985. fi
  10986. echo "$as_me:$LINENO: checking for fmt_past_time in -lshouldbeinlibc" >&5
  10987. echo $ECHO_N "checking for fmt_past_time in -lshouldbeinlibc... $ECHO_C" >&6
  10988. if test "${ac_cv_lib_shouldbeinlibc_fmt_past_time+set}" = set; then
  10989. echo $ECHO_N "(cached) $ECHO_C" >&6
  10990. else
  10991. ac_check_lib_save_LIBS=$LIBS
  10992. LIBS="-lshouldbeinlibc $LIBS"
  10993. cat >conftest.$ac_ext <<_ACEOF
  10994. /* confdefs.h. */
  10995. _ACEOF
  10996. cat confdefs.h >>conftest.$ac_ext
  10997. cat >>conftest.$ac_ext <<_ACEOF
  10998. /* end confdefs.h. */
  10999. /* Override any gcc2 internal prototype to avoid an error. */
  11000. #ifdef __cplusplus
  11001. extern "C"
  11002. #endif
  11003. /* We use char because int might match the return type of a gcc2
  11004. builtin and then its argument prototype would still apply. */
  11005. char fmt_past_time ();
  11006. int
  11007. main ()
  11008. {
  11009. fmt_past_time ();
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. rm -f conftest.$ac_objext conftest$ac_exeext
  11015. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11016. (eval $ac_link) 2>conftest.er1
  11017. ac_status=$?
  11018. grep -v '^ *+' conftest.er1 >conftest.err
  11019. rm -f conftest.er1
  11020. cat conftest.err >&5
  11021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11022. (exit $ac_status); } &&
  11023. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11025. (eval $ac_try) 2>&5
  11026. ac_status=$?
  11027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11028. (exit $ac_status); }; } &&
  11029. { ac_try='test -s conftest$ac_exeext'
  11030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11031. (eval $ac_try) 2>&5
  11032. ac_status=$?
  11033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11034. (exit $ac_status); }; }; then
  11035. ac_cv_lib_shouldbeinlibc_fmt_past_time=yes
  11036. else
  11037. echo "$as_me: failed program was:" >&5
  11038. sed 's/^/| /' conftest.$ac_ext >&5
  11039. ac_cv_lib_shouldbeinlibc_fmt_past_time=no
  11040. fi
  11041. rm -f conftest.err conftest.$ac_objext \
  11042. conftest$ac_exeext conftest.$ac_ext
  11043. LIBS=$ac_check_lib_save_LIBS
  11044. fi
  11045. echo "$as_me:$LINENO: result: $ac_cv_lib_shouldbeinlibc_fmt_past_time" >&5
  11046. echo "${ECHO_T}$ac_cv_lib_shouldbeinlibc_fmt_past_time" >&6
  11047. if test $ac_cv_lib_shouldbeinlibc_fmt_past_time = yes; then
  11048. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lshouldbeinlibc"
  11049. fi
  11050. echo "$as_me:$LINENO: checking for kvm_openfiles in -lkvm" >&5
  11051. echo $ECHO_N "checking for kvm_openfiles in -lkvm... $ECHO_C" >&6
  11052. if test "${ac_cv_lib_kvm_kvm_openfiles+set}" = set; then
  11053. echo $ECHO_N "(cached) $ECHO_C" >&6
  11054. else
  11055. ac_check_lib_save_LIBS=$LIBS
  11056. LIBS="-lkvm $LIBS"
  11057. cat >conftest.$ac_ext <<_ACEOF
  11058. /* confdefs.h. */
  11059. _ACEOF
  11060. cat confdefs.h >>conftest.$ac_ext
  11061. cat >>conftest.$ac_ext <<_ACEOF
  11062. /* end confdefs.h. */
  11063. /* Override any gcc2 internal prototype to avoid an error. */
  11064. #ifdef __cplusplus
  11065. extern "C"
  11066. #endif
  11067. /* We use char because int might match the return type of a gcc2
  11068. builtin and then its argument prototype would still apply. */
  11069. char kvm_openfiles ();
  11070. int
  11071. main ()
  11072. {
  11073. kvm_openfiles ();
  11074. ;
  11075. return 0;
  11076. }
  11077. _ACEOF
  11078. rm -f conftest.$ac_objext conftest$ac_exeext
  11079. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11080. (eval $ac_link) 2>conftest.er1
  11081. ac_status=$?
  11082. grep -v '^ *+' conftest.er1 >conftest.err
  11083. rm -f conftest.er1
  11084. cat conftest.err >&5
  11085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11086. (exit $ac_status); } &&
  11087. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11089. (eval $ac_try) 2>&5
  11090. ac_status=$?
  11091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11092. (exit $ac_status); }; } &&
  11093. { ac_try='test -s conftest$ac_exeext'
  11094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11095. (eval $ac_try) 2>&5
  11096. ac_status=$?
  11097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11098. (exit $ac_status); }; }; then
  11099. ac_cv_lib_kvm_kvm_openfiles=yes
  11100. else
  11101. echo "$as_me: failed program was:" >&5
  11102. sed 's/^/| /' conftest.$ac_ext >&5
  11103. ac_cv_lib_kvm_kvm_openfiles=no
  11104. fi
  11105. rm -f conftest.err conftest.$ac_objext \
  11106. conftest$ac_exeext conftest.$ac_ext
  11107. LIBS=$ac_check_lib_save_LIBS
  11108. fi
  11109. echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
  11110. echo "${ECHO_T}$ac_cv_lib_kvm_kvm_openfiles" >&6
  11111. if test $ac_cv_lib_kvm_kvm_openfiles = yes; then
  11112. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lkvm"
  11113. fi
  11114. fi
  11115. # Checks for header files.
  11116. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  11117. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  11118. if test "${ac_cv_header_stdc+set}" = set; then
  11119. echo $ECHO_N "(cached) $ECHO_C" >&6
  11120. else
  11121. cat >conftest.$ac_ext <<_ACEOF
  11122. /* confdefs.h. */
  11123. _ACEOF
  11124. cat confdefs.h >>conftest.$ac_ext
  11125. cat >>conftest.$ac_ext <<_ACEOF
  11126. /* end confdefs.h. */
  11127. #include <stdlib.h>
  11128. #include <stdarg.h>
  11129. #include <string.h>
  11130. #include <float.h>
  11131. int
  11132. main ()
  11133. {
  11134. ;
  11135. return 0;
  11136. }
  11137. _ACEOF
  11138. rm -f conftest.$ac_objext
  11139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11140. (eval $ac_compile) 2>conftest.er1
  11141. ac_status=$?
  11142. grep -v '^ *+' conftest.er1 >conftest.err
  11143. rm -f conftest.er1
  11144. cat conftest.err >&5
  11145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11146. (exit $ac_status); } &&
  11147. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11149. (eval $ac_try) 2>&5
  11150. ac_status=$?
  11151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11152. (exit $ac_status); }; } &&
  11153. { ac_try='test -s conftest.$ac_objext'
  11154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11155. (eval $ac_try) 2>&5
  11156. ac_status=$?
  11157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11158. (exit $ac_status); }; }; then
  11159. ac_cv_header_stdc=yes
  11160. else
  11161. echo "$as_me: failed program was:" >&5
  11162. sed 's/^/| /' conftest.$ac_ext >&5
  11163. ac_cv_header_stdc=no
  11164. fi
  11165. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11166. if test $ac_cv_header_stdc = yes; then
  11167. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11168. cat >conftest.$ac_ext <<_ACEOF
  11169. /* confdefs.h. */
  11170. _ACEOF
  11171. cat confdefs.h >>conftest.$ac_ext
  11172. cat >>conftest.$ac_ext <<_ACEOF
  11173. /* end confdefs.h. */
  11174. #include <string.h>
  11175. _ACEOF
  11176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11177. $EGREP "memchr" >/dev/null 2>&1; then
  11178. :
  11179. else
  11180. ac_cv_header_stdc=no
  11181. fi
  11182. rm -f conftest*
  11183. fi
  11184. if test $ac_cv_header_stdc = yes; then
  11185. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11186. cat >conftest.$ac_ext <<_ACEOF
  11187. /* confdefs.h. */
  11188. _ACEOF
  11189. cat confdefs.h >>conftest.$ac_ext
  11190. cat >>conftest.$ac_ext <<_ACEOF
  11191. /* end confdefs.h. */
  11192. #include <stdlib.h>
  11193. _ACEOF
  11194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11195. $EGREP "free" >/dev/null 2>&1; then
  11196. :
  11197. else
  11198. ac_cv_header_stdc=no
  11199. fi
  11200. rm -f conftest*
  11201. fi
  11202. if test $ac_cv_header_stdc = yes; then
  11203. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11204. if test "$cross_compiling" = yes; then
  11205. :
  11206. else
  11207. cat >conftest.$ac_ext <<_ACEOF
  11208. /* confdefs.h. */
  11209. _ACEOF
  11210. cat confdefs.h >>conftest.$ac_ext
  11211. cat >>conftest.$ac_ext <<_ACEOF
  11212. /* end confdefs.h. */
  11213. #include <ctype.h>
  11214. #if ((' ' & 0x0FF) == 0x020)
  11215. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11216. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11217. #else
  11218. # define ISLOWER(c) \
  11219. (('a' <= (c) && (c) <= 'i') \
  11220. || ('j' <= (c) && (c) <= 'r') \
  11221. || ('s' <= (c) && (c) <= 'z'))
  11222. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11223. #endif
  11224. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11225. int
  11226. main ()
  11227. {
  11228. int i;
  11229. for (i = 0; i < 256; i++)
  11230. if (XOR (islower (i), ISLOWER (i))
  11231. || toupper (i) != TOUPPER (i))
  11232. exit(2);
  11233. exit (0);
  11234. }
  11235. _ACEOF
  11236. rm -f conftest$ac_exeext
  11237. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11238. (eval $ac_link) 2>&5
  11239. ac_status=$?
  11240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11241. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11243. (eval $ac_try) 2>&5
  11244. ac_status=$?
  11245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11246. (exit $ac_status); }; }; then
  11247. :
  11248. else
  11249. echo "$as_me: program exited with status $ac_status" >&5
  11250. echo "$as_me: failed program was:" >&5
  11251. sed 's/^/| /' conftest.$ac_ext >&5
  11252. ( exit $ac_status )
  11253. ac_cv_header_stdc=no
  11254. fi
  11255. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11256. fi
  11257. fi
  11258. fi
  11259. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  11260. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  11261. if test $ac_cv_header_stdc = yes; then
  11262. cat >>confdefs.h <<\_ACEOF
  11263. #define STDC_HEADERS 1
  11264. _ACEOF
  11265. fi
  11266. for ac_header in error.h sys/cdefs.h kvm.h
  11267. do
  11268. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11269. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11270. echo "$as_me:$LINENO: checking for $ac_header" >&5
  11271. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  11272. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11273. echo $ECHO_N "(cached) $ECHO_C" >&6
  11274. fi
  11275. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  11276. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  11277. else
  11278. # Is the header compilable?
  11279. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11280. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  11281. cat >conftest.$ac_ext <<_ACEOF
  11282. /* confdefs.h. */
  11283. _ACEOF
  11284. cat confdefs.h >>conftest.$ac_ext
  11285. cat >>conftest.$ac_ext <<_ACEOF
  11286. /* end confdefs.h. */
  11287. $ac_includes_default
  11288. #include <$ac_header>
  11289. _ACEOF
  11290. rm -f conftest.$ac_objext
  11291. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11292. (eval $ac_compile) 2>conftest.er1
  11293. ac_status=$?
  11294. grep -v '^ *+' conftest.er1 >conftest.err
  11295. rm -f conftest.er1
  11296. cat conftest.err >&5
  11297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11298. (exit $ac_status); } &&
  11299. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11301. (eval $ac_try) 2>&5
  11302. ac_status=$?
  11303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11304. (exit $ac_status); }; } &&
  11305. { ac_try='test -s conftest.$ac_objext'
  11306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11307. (eval $ac_try) 2>&5
  11308. ac_status=$?
  11309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11310. (exit $ac_status); }; }; then
  11311. ac_header_compiler=yes
  11312. else
  11313. echo "$as_me: failed program was:" >&5
  11314. sed 's/^/| /' conftest.$ac_ext >&5
  11315. ac_header_compiler=no
  11316. fi
  11317. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11318. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11319. echo "${ECHO_T}$ac_header_compiler" >&6
  11320. # Is the header present?
  11321. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11322. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  11323. cat >conftest.$ac_ext <<_ACEOF
  11324. /* confdefs.h. */
  11325. _ACEOF
  11326. cat confdefs.h >>conftest.$ac_ext
  11327. cat >>conftest.$ac_ext <<_ACEOF
  11328. /* end confdefs.h. */
  11329. #include <$ac_header>
  11330. _ACEOF
  11331. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  11332. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11333. ac_status=$?
  11334. grep -v '^ *+' conftest.er1 >conftest.err
  11335. rm -f conftest.er1
  11336. cat conftest.err >&5
  11337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11338. (exit $ac_status); } >/dev/null; then
  11339. if test -s conftest.err; then
  11340. ac_cpp_err=$ac_c_preproc_warn_flag
  11341. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  11342. else
  11343. ac_cpp_err=
  11344. fi
  11345. else
  11346. ac_cpp_err=yes
  11347. fi
  11348. if test -z "$ac_cpp_err"; then
  11349. ac_header_preproc=yes
  11350. else
  11351. echo "$as_me: failed program was:" >&5
  11352. sed 's/^/| /' conftest.$ac_ext >&5
  11353. ac_header_preproc=no
  11354. fi
  11355. rm -f conftest.err conftest.$ac_ext
  11356. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11357. echo "${ECHO_T}$ac_header_preproc" >&6
  11358. # So? What about this header?
  11359. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11360. yes:no: )
  11361. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11362. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11363. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11364. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11365. ac_header_preproc=yes
  11366. ;;
  11367. no:yes:* )
  11368. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11369. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11370. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11371. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11372. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11373. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11374. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11375. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11376. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11377. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11378. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11379. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11380. (
  11381. cat <<\_ASBOX
  11382. ## ------------------------------------------- ##
  11383. ## Report this to debian-dpkg@lists.debian.org ##
  11384. ## ------------------------------------------- ##
  11385. _ASBOX
  11386. ) |
  11387. sed "s/^/$as_me: WARNING: /" >&2
  11388. ;;
  11389. esac
  11390. echo "$as_me:$LINENO: checking for $ac_header" >&5
  11391. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  11392. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11393. echo $ECHO_N "(cached) $ECHO_C" >&6
  11394. else
  11395. eval "$as_ac_Header=\$ac_header_preproc"
  11396. fi
  11397. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  11398. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  11399. fi
  11400. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11401. cat >>confdefs.h <<_ACEOF
  11402. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11403. _ACEOF
  11404. fi
  11405. done
  11406. echo "$as_me:$LINENO: checking whether TIOCNOTTY is defined in sys/ioctl.h" >&5
  11407. echo $ECHO_N "checking whether TIOCNOTTY is defined in sys/ioctl.h... $ECHO_C" >&6
  11408. if test "${dpkg_cv_define_TIOCNOTTY+set}" = set; then
  11409. echo $ECHO_N "(cached) $ECHO_C" >&6
  11410. else
  11411. cat >conftest.$ac_ext <<_ACEOF
  11412. /* confdefs.h. */
  11413. _ACEOF
  11414. cat confdefs.h >>conftest.$ac_ext
  11415. cat >>conftest.$ac_ext <<_ACEOF
  11416. /* end confdefs.h. */
  11417. #include <sys/ioctl.h>
  11418. int
  11419. main ()
  11420. {
  11421. int i = TIOCNOTTY;
  11422. ;
  11423. return 0;
  11424. }
  11425. _ACEOF
  11426. rm -f conftest.$ac_objext
  11427. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11428. (eval $ac_compile) 2>conftest.er1
  11429. ac_status=$?
  11430. grep -v '^ *+' conftest.er1 >conftest.err
  11431. rm -f conftest.er1
  11432. cat conftest.err >&5
  11433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11434. (exit $ac_status); } &&
  11435. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11437. (eval $ac_try) 2>&5
  11438. ac_status=$?
  11439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11440. (exit $ac_status); }; } &&
  11441. { ac_try='test -s conftest.$ac_objext'
  11442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11443. (eval $ac_try) 2>&5
  11444. ac_status=$?
  11445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11446. (exit $ac_status); }; }; then
  11447. dpkg_cv_define_TIOCNOTTY=yes
  11448. else
  11449. echo "$as_me: failed program was:" >&5
  11450. sed 's/^/| /' conftest.$ac_ext >&5
  11451. dpkg_cv_define_TIOCNOTTY=no
  11452. fi
  11453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11454. fi
  11455. echo "$as_me:$LINENO: result: $dpkg_cv_define_TIOCNOTTY" >&5
  11456. echo "${ECHO_T}$dpkg_cv_define_TIOCNOTTY" >&6
  11457. if test "x$dpkg_cv_define" = "xyes"; then
  11458. cat >>confdefs.h <<\_ACEOF
  11459. #define HAVE_TIOCNOTTY 1
  11460. _ACEOF
  11461. else
  11462. cat >>confdefs.h <<\_ACEOF
  11463. #define HAVE_TIOCNOTTY 0
  11464. _ACEOF
  11465. fi
  11466. # Checks for typedefs, structures, and compiler characteristics.
  11467. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  11468. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  11469. if test "${ac_cv_c_bigendian+set}" = set; then
  11470. echo $ECHO_N "(cached) $ECHO_C" >&6
  11471. else
  11472. # See if sys/param.h defines the BYTE_ORDER macro.
  11473. cat >conftest.$ac_ext <<_ACEOF
  11474. /* confdefs.h. */
  11475. _ACEOF
  11476. cat confdefs.h >>conftest.$ac_ext
  11477. cat >>conftest.$ac_ext <<_ACEOF
  11478. /* end confdefs.h. */
  11479. #include <sys/types.h>
  11480. #include <sys/param.h>
  11481. int
  11482. main ()
  11483. {
  11484. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  11485. bogus endian macros
  11486. #endif
  11487. ;
  11488. return 0;
  11489. }
  11490. _ACEOF
  11491. rm -f conftest.$ac_objext
  11492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11493. (eval $ac_compile) 2>conftest.er1
  11494. ac_status=$?
  11495. grep -v '^ *+' conftest.er1 >conftest.err
  11496. rm -f conftest.er1
  11497. cat conftest.err >&5
  11498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11499. (exit $ac_status); } &&
  11500. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11502. (eval $ac_try) 2>&5
  11503. ac_status=$?
  11504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11505. (exit $ac_status); }; } &&
  11506. { ac_try='test -s conftest.$ac_objext'
  11507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11508. (eval $ac_try) 2>&5
  11509. ac_status=$?
  11510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11511. (exit $ac_status); }; }; then
  11512. # It does; now see whether it defined to BIG_ENDIAN or not.
  11513. cat >conftest.$ac_ext <<_ACEOF
  11514. /* confdefs.h. */
  11515. _ACEOF
  11516. cat confdefs.h >>conftest.$ac_ext
  11517. cat >>conftest.$ac_ext <<_ACEOF
  11518. /* end confdefs.h. */
  11519. #include <sys/types.h>
  11520. #include <sys/param.h>
  11521. int
  11522. main ()
  11523. {
  11524. #if BYTE_ORDER != BIG_ENDIAN
  11525. not big endian
  11526. #endif
  11527. ;
  11528. return 0;
  11529. }
  11530. _ACEOF
  11531. rm -f conftest.$ac_objext
  11532. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11533. (eval $ac_compile) 2>conftest.er1
  11534. ac_status=$?
  11535. grep -v '^ *+' conftest.er1 >conftest.err
  11536. rm -f conftest.er1
  11537. cat conftest.err >&5
  11538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11539. (exit $ac_status); } &&
  11540. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11542. (eval $ac_try) 2>&5
  11543. ac_status=$?
  11544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11545. (exit $ac_status); }; } &&
  11546. { ac_try='test -s conftest.$ac_objext'
  11547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11548. (eval $ac_try) 2>&5
  11549. ac_status=$?
  11550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11551. (exit $ac_status); }; }; then
  11552. ac_cv_c_bigendian=yes
  11553. else
  11554. echo "$as_me: failed program was:" >&5
  11555. sed 's/^/| /' conftest.$ac_ext >&5
  11556. ac_cv_c_bigendian=no
  11557. fi
  11558. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11559. else
  11560. echo "$as_me: failed program was:" >&5
  11561. sed 's/^/| /' conftest.$ac_ext >&5
  11562. # It does not; compile a test program.
  11563. if test "$cross_compiling" = yes; then
  11564. # try to guess the endianness by grepping values into an object file
  11565. ac_cv_c_bigendian=unknown
  11566. cat >conftest.$ac_ext <<_ACEOF
  11567. /* confdefs.h. */
  11568. _ACEOF
  11569. cat confdefs.h >>conftest.$ac_ext
  11570. cat >>conftest.$ac_ext <<_ACEOF
  11571. /* end confdefs.h. */
  11572. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11573. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11574. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  11575. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11576. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11577. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  11578. int
  11579. main ()
  11580. {
  11581. _ascii (); _ebcdic ();
  11582. ;
  11583. return 0;
  11584. }
  11585. _ACEOF
  11586. rm -f conftest.$ac_objext
  11587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11588. (eval $ac_compile) 2>conftest.er1
  11589. ac_status=$?
  11590. grep -v '^ *+' conftest.er1 >conftest.err
  11591. rm -f conftest.er1
  11592. cat conftest.err >&5
  11593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11594. (exit $ac_status); } &&
  11595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11597. (eval $ac_try) 2>&5
  11598. ac_status=$?
  11599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11600. (exit $ac_status); }; } &&
  11601. { ac_try='test -s conftest.$ac_objext'
  11602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11603. (eval $ac_try) 2>&5
  11604. ac_status=$?
  11605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11606. (exit $ac_status); }; }; then
  11607. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  11608. ac_cv_c_bigendian=yes
  11609. fi
  11610. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11611. if test "$ac_cv_c_bigendian" = unknown; then
  11612. ac_cv_c_bigendian=no
  11613. else
  11614. # finding both strings is unlikely to happen, but who knows?
  11615. ac_cv_c_bigendian=unknown
  11616. fi
  11617. fi
  11618. else
  11619. echo "$as_me: failed program was:" >&5
  11620. sed 's/^/| /' conftest.$ac_ext >&5
  11621. fi
  11622. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11623. else
  11624. cat >conftest.$ac_ext <<_ACEOF
  11625. /* confdefs.h. */
  11626. _ACEOF
  11627. cat confdefs.h >>conftest.$ac_ext
  11628. cat >>conftest.$ac_ext <<_ACEOF
  11629. /* end confdefs.h. */
  11630. int
  11631. main ()
  11632. {
  11633. /* Are we little or big endian? From Harbison&Steele. */
  11634. union
  11635. {
  11636. long l;
  11637. char c[sizeof (long)];
  11638. } u;
  11639. u.l = 1;
  11640. exit (u.c[sizeof (long) - 1] == 1);
  11641. }
  11642. _ACEOF
  11643. rm -f conftest$ac_exeext
  11644. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11645. (eval $ac_link) 2>&5
  11646. ac_status=$?
  11647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11648. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11650. (eval $ac_try) 2>&5
  11651. ac_status=$?
  11652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11653. (exit $ac_status); }; }; then
  11654. ac_cv_c_bigendian=no
  11655. else
  11656. echo "$as_me: program exited with status $ac_status" >&5
  11657. echo "$as_me: failed program was:" >&5
  11658. sed 's/^/| /' conftest.$ac_ext >&5
  11659. ( exit $ac_status )
  11660. ac_cv_c_bigendian=yes
  11661. fi
  11662. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11663. fi
  11664. fi
  11665. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11666. fi
  11667. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  11668. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  11669. case $ac_cv_c_bigendian in
  11670. yes)
  11671. cat >>confdefs.h <<\_ACEOF
  11672. #define WORDS_BIGENDIAN 1
  11673. _ACEOF
  11674. ;;
  11675. no)
  11676. ;;
  11677. *)
  11678. { { echo "$as_me:$LINENO: error: unknown endianness
  11679. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  11680. echo "$as_me: error: unknown endianness
  11681. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  11682. { (exit 1); exit 1; }; } ;;
  11683. esac
  11684. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  11685. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  11686. if test "${ac_cv_c_const+set}" = set; then
  11687. echo $ECHO_N "(cached) $ECHO_C" >&6
  11688. else
  11689. cat >conftest.$ac_ext <<_ACEOF
  11690. /* confdefs.h. */
  11691. _ACEOF
  11692. cat confdefs.h >>conftest.$ac_ext
  11693. cat >>conftest.$ac_ext <<_ACEOF
  11694. /* end confdefs.h. */
  11695. int
  11696. main ()
  11697. {
  11698. /* FIXME: Include the comments suggested by Paul. */
  11699. #ifndef __cplusplus
  11700. /* Ultrix mips cc rejects this. */
  11701. typedef int charset[2];
  11702. const charset x;
  11703. /* SunOS 4.1.1 cc rejects this. */
  11704. char const *const *ccp;
  11705. char **p;
  11706. /* NEC SVR4.0.2 mips cc rejects this. */
  11707. struct point {int x, y;};
  11708. static struct point const zero = {0,0};
  11709. /* AIX XL C 1.02.0.0 rejects this.
  11710. It does not let you subtract one const X* pointer from another in
  11711. an arm of an if-expression whose if-part is not a constant
  11712. expression */
  11713. const char *g = "string";
  11714. ccp = &g + (g ? g-g : 0);
  11715. /* HPUX 7.0 cc rejects these. */
  11716. ++ccp;
  11717. p = (char**) ccp;
  11718. ccp = (char const *const *) p;
  11719. { /* SCO 3.2v4 cc rejects this. */
  11720. char *t;
  11721. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11722. *t++ = 0;
  11723. }
  11724. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11725. int x[] = {25, 17};
  11726. const int *foo = &x[0];
  11727. ++foo;
  11728. }
  11729. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11730. typedef const int *iptr;
  11731. iptr p = 0;
  11732. ++p;
  11733. }
  11734. { /* AIX XL C 1.02.0.0 rejects this saying
  11735. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11736. struct s { int j; const int *ap[3]; };
  11737. struct s *b; b->j = 5;
  11738. }
  11739. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11740. const int foo = 10;
  11741. }
  11742. #endif
  11743. ;
  11744. return 0;
  11745. }
  11746. _ACEOF
  11747. rm -f conftest.$ac_objext
  11748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11749. (eval $ac_compile) 2>conftest.er1
  11750. ac_status=$?
  11751. grep -v '^ *+' conftest.er1 >conftest.err
  11752. rm -f conftest.er1
  11753. cat conftest.err >&5
  11754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11755. (exit $ac_status); } &&
  11756. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11758. (eval $ac_try) 2>&5
  11759. ac_status=$?
  11760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11761. (exit $ac_status); }; } &&
  11762. { ac_try='test -s conftest.$ac_objext'
  11763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11764. (eval $ac_try) 2>&5
  11765. ac_status=$?
  11766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11767. (exit $ac_status); }; }; then
  11768. ac_cv_c_const=yes
  11769. else
  11770. echo "$as_me: failed program was:" >&5
  11771. sed 's/^/| /' conftest.$ac_ext >&5
  11772. ac_cv_c_const=no
  11773. fi
  11774. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11775. fi
  11776. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  11777. echo "${ECHO_T}$ac_cv_c_const" >&6
  11778. if test $ac_cv_c_const = no; then
  11779. cat >>confdefs.h <<\_ACEOF
  11780. #define const
  11781. _ACEOF
  11782. fi
  11783. echo "$as_me:$LINENO: checking for inline" >&5
  11784. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  11785. if test "${ac_cv_c_inline+set}" = set; then
  11786. echo $ECHO_N "(cached) $ECHO_C" >&6
  11787. else
  11788. ac_cv_c_inline=no
  11789. for ac_kw in inline __inline__ __inline; do
  11790. cat >conftest.$ac_ext <<_ACEOF
  11791. /* confdefs.h. */
  11792. _ACEOF
  11793. cat confdefs.h >>conftest.$ac_ext
  11794. cat >>conftest.$ac_ext <<_ACEOF
  11795. /* end confdefs.h. */
  11796. #ifndef __cplusplus
  11797. typedef int foo_t;
  11798. static $ac_kw foo_t static_foo () {return 0; }
  11799. $ac_kw foo_t foo () {return 0; }
  11800. #endif
  11801. _ACEOF
  11802. rm -f conftest.$ac_objext
  11803. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11804. (eval $ac_compile) 2>conftest.er1
  11805. ac_status=$?
  11806. grep -v '^ *+' conftest.er1 >conftest.err
  11807. rm -f conftest.er1
  11808. cat conftest.err >&5
  11809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11810. (exit $ac_status); } &&
  11811. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11813. (eval $ac_try) 2>&5
  11814. ac_status=$?
  11815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11816. (exit $ac_status); }; } &&
  11817. { ac_try='test -s conftest.$ac_objext'
  11818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11819. (eval $ac_try) 2>&5
  11820. ac_status=$?
  11821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11822. (exit $ac_status); }; }; then
  11823. ac_cv_c_inline=$ac_kw; break
  11824. else
  11825. echo "$as_me: failed program was:" >&5
  11826. sed 's/^/| /' conftest.$ac_ext >&5
  11827. fi
  11828. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11829. done
  11830. fi
  11831. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  11832. echo "${ECHO_T}$ac_cv_c_inline" >&6
  11833. case $ac_cv_c_inline in
  11834. inline | yes) ;;
  11835. *)
  11836. case $ac_cv_c_inline in
  11837. no) ac_val=;;
  11838. *) ac_val=$ac_cv_c_inline;;
  11839. esac
  11840. cat >>confdefs.h <<_ACEOF
  11841. #ifndef __cplusplus
  11842. #define inline $ac_val
  11843. #endif
  11844. _ACEOF
  11845. ;;
  11846. esac
  11847. echo "$as_me:$LINENO: checking for working volatile" >&5
  11848. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  11849. if test "${ac_cv_c_volatile+set}" = set; then
  11850. echo $ECHO_N "(cached) $ECHO_C" >&6
  11851. else
  11852. cat >conftest.$ac_ext <<_ACEOF
  11853. /* confdefs.h. */
  11854. _ACEOF
  11855. cat confdefs.h >>conftest.$ac_ext
  11856. cat >>conftest.$ac_ext <<_ACEOF
  11857. /* end confdefs.h. */
  11858. int
  11859. main ()
  11860. {
  11861. volatile int x;
  11862. int * volatile y;
  11863. ;
  11864. return 0;
  11865. }
  11866. _ACEOF
  11867. rm -f conftest.$ac_objext
  11868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11869. (eval $ac_compile) 2>conftest.er1
  11870. ac_status=$?
  11871. grep -v '^ *+' conftest.er1 >conftest.err
  11872. rm -f conftest.er1
  11873. cat conftest.err >&5
  11874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11875. (exit $ac_status); } &&
  11876. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11878. (eval $ac_try) 2>&5
  11879. ac_status=$?
  11880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11881. (exit $ac_status); }; } &&
  11882. { ac_try='test -s conftest.$ac_objext'
  11883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11884. (eval $ac_try) 2>&5
  11885. ac_status=$?
  11886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11887. (exit $ac_status); }; }; then
  11888. ac_cv_c_volatile=yes
  11889. else
  11890. echo "$as_me: failed program was:" >&5
  11891. sed 's/^/| /' conftest.$ac_ext >&5
  11892. ac_cv_c_volatile=no
  11893. fi
  11894. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11895. fi
  11896. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  11897. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  11898. if test $ac_cv_c_volatile = no; then
  11899. cat >>confdefs.h <<\_ACEOF
  11900. #define volatile
  11901. _ACEOF
  11902. fi
  11903. echo "$as_me:$LINENO: checking whether compiler supports C99 features" >&5
  11904. echo $ECHO_N "checking whether compiler supports C99 features... $ECHO_C" >&6
  11905. if test "${dpkg_cv_c99+set}" = set; then
  11906. echo $ECHO_N "(cached) $ECHO_C" >&6
  11907. else
  11908. cat >conftest.$ac_ext <<_ACEOF
  11909. /* confdefs.h. */
  11910. _ACEOF
  11911. cat confdefs.h >>conftest.$ac_ext
  11912. cat >>conftest.$ac_ext <<_ACEOF
  11913. /* end confdefs.h. */
  11914. #include <stdio.h>
  11915. #include <stdbool.h>
  11916. #include <inttypes.h>
  11917. /* Variadic macro arguments */
  11918. #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
  11919. int
  11920. main ()
  11921. {
  11922. /* Compound initialisers */
  11923. struct { int a, b; } foo = { .a = 1, .b = 2 };
  11924. /* Boolean type */
  11925. bool bar = false;
  11926. /* Specific size type */
  11927. uint32_t baz = 0;
  11928. /* C99-style for-loop declarations */
  11929. for (int i = 0; i < 10; i++)
  11930. continue;
  11931. /* Magic __func__ variable */
  11932. printf("%s", __func__);
  11933. ;
  11934. return 0;
  11935. }
  11936. _ACEOF
  11937. rm -f conftest.$ac_objext
  11938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11939. (eval $ac_compile) 2>conftest.er1
  11940. ac_status=$?
  11941. grep -v '^ *+' conftest.er1 >conftest.err
  11942. rm -f conftest.er1
  11943. cat conftest.err >&5
  11944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11945. (exit $ac_status); } &&
  11946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11948. (eval $ac_try) 2>&5
  11949. ac_status=$?
  11950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11951. (exit $ac_status); }; } &&
  11952. { ac_try='test -s conftest.$ac_objext'
  11953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11954. (eval $ac_try) 2>&5
  11955. ac_status=$?
  11956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11957. (exit $ac_status); }; }; then
  11958. dpkg_cv_c99=yes
  11959. else
  11960. echo "$as_me: failed program was:" >&5
  11961. sed 's/^/| /' conftest.$ac_ext >&5
  11962. dpkg_cv_c99=no
  11963. fi
  11964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11965. fi
  11966. echo "$as_me:$LINENO: result: $dpkg_cv_c99" >&5
  11967. echo "${ECHO_T}$dpkg_cv_c99" >&6
  11968. if test "x$dpkg_cv_c99" = "xyes"; then
  11969. cat >>confdefs.h <<\_ACEOF
  11970. #define HAVE_C99 1
  11971. _ACEOF
  11972. else
  11973. echo "$as_me:$LINENO: checking what argument makes compiler support C99 features" >&5
  11974. echo $ECHO_N "checking what argument makes compiler support C99 features... $ECHO_C" >&6
  11975. if test "${dpkg_cv_c99_arg+set}" = set; then
  11976. echo $ECHO_N "(cached) $ECHO_C" >&6
  11977. else
  11978. dpkg_cv_c99_arg=none
  11979. dpkg_save_CC="$CC"
  11980. for arg in "-std=gnu99" "-std=c99" "-c99"; do
  11981. CC="$dpkg_save_CC $arg"
  11982. cat >conftest.$ac_ext <<_ACEOF
  11983. /* confdefs.h. */
  11984. _ACEOF
  11985. cat confdefs.h >>conftest.$ac_ext
  11986. cat >>conftest.$ac_ext <<_ACEOF
  11987. /* end confdefs.h. */
  11988. #include <stdio.h>
  11989. #include <stdbool.h>
  11990. #include <inttypes.h>
  11991. /* Variadic macro arguments */
  11992. #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
  11993. int
  11994. main ()
  11995. {
  11996. /* Compound initialisers */
  11997. struct { int a, b; } foo = { .a = 1, .b = 2 };
  11998. /* Boolean type */
  11999. bool bar = false;
  12000. /* Specific size type */
  12001. uint32_t baz = 0;
  12002. /* C99-style for-loop declarations */
  12003. for (int i = 0; i < 10; i++)
  12004. continue;
  12005. /* Magic __func__ variable */
  12006. printf("%s", __func__);
  12007. ;
  12008. return 0;
  12009. }
  12010. _ACEOF
  12011. rm -f conftest.$ac_objext
  12012. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12013. (eval $ac_compile) 2>conftest.er1
  12014. ac_status=$?
  12015. grep -v '^ *+' conftest.er1 >conftest.err
  12016. rm -f conftest.er1
  12017. cat conftest.err >&5
  12018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12019. (exit $ac_status); } &&
  12020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12022. (eval $ac_try) 2>&5
  12023. ac_status=$?
  12024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12025. (exit $ac_status); }; } &&
  12026. { ac_try='test -s conftest.$ac_objext'
  12027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12028. (eval $ac_try) 2>&5
  12029. ac_status=$?
  12030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12031. (exit $ac_status); }; }; then
  12032. dpkg_arg_worked=yes
  12033. else
  12034. echo "$as_me: failed program was:" >&5
  12035. sed 's/^/| /' conftest.$ac_ext >&5
  12036. dpkg_arg_worked=no
  12037. fi
  12038. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12039. CC="$dpkg_save_CC"
  12040. if test "x$dpkg_arg_worked" = "xyes"; then
  12041. dpkg_cv_c99_arg="$arg"; break
  12042. fi
  12043. done
  12044. fi
  12045. echo "$as_me:$LINENO: result: $dpkg_cv_c99_arg" >&5
  12046. echo "${ECHO_T}$dpkg_cv_c99_arg" >&6
  12047. if test "x$dpkg_cv_c99_arg" != "xnone"; then
  12048. CC="$CC $dpkg_cv_c99_arg"
  12049. cat >>confdefs.h <<\_ACEOF
  12050. #define HAVE_C99 1
  12051. _ACEOF
  12052. fi
  12053. fi
  12054. echo "$as_me:$LINENO: checking for mode_t" >&5
  12055. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  12056. if test "${ac_cv_type_mode_t+set}" = set; then
  12057. echo $ECHO_N "(cached) $ECHO_C" >&6
  12058. else
  12059. cat >conftest.$ac_ext <<_ACEOF
  12060. /* confdefs.h. */
  12061. _ACEOF
  12062. cat confdefs.h >>conftest.$ac_ext
  12063. cat >>conftest.$ac_ext <<_ACEOF
  12064. /* end confdefs.h. */
  12065. $ac_includes_default
  12066. int
  12067. main ()
  12068. {
  12069. if ((mode_t *) 0)
  12070. return 0;
  12071. if (sizeof (mode_t))
  12072. return 0;
  12073. ;
  12074. return 0;
  12075. }
  12076. _ACEOF
  12077. rm -f conftest.$ac_objext
  12078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12079. (eval $ac_compile) 2>conftest.er1
  12080. ac_status=$?
  12081. grep -v '^ *+' conftest.er1 >conftest.err
  12082. rm -f conftest.er1
  12083. cat conftest.err >&5
  12084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12085. (exit $ac_status); } &&
  12086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12088. (eval $ac_try) 2>&5
  12089. ac_status=$?
  12090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12091. (exit $ac_status); }; } &&
  12092. { ac_try='test -s conftest.$ac_objext'
  12093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12094. (eval $ac_try) 2>&5
  12095. ac_status=$?
  12096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12097. (exit $ac_status); }; }; then
  12098. ac_cv_type_mode_t=yes
  12099. else
  12100. echo "$as_me: failed program was:" >&5
  12101. sed 's/^/| /' conftest.$ac_ext >&5
  12102. ac_cv_type_mode_t=no
  12103. fi
  12104. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12105. fi
  12106. echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  12107. echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  12108. if test $ac_cv_type_mode_t = yes; then
  12109. :
  12110. else
  12111. cat >>confdefs.h <<_ACEOF
  12112. #define mode_t int
  12113. _ACEOF
  12114. fi
  12115. echo "$as_me:$LINENO: checking for pid_t" >&5
  12116. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  12117. if test "${ac_cv_type_pid_t+set}" = set; then
  12118. echo $ECHO_N "(cached) $ECHO_C" >&6
  12119. else
  12120. cat >conftest.$ac_ext <<_ACEOF
  12121. /* confdefs.h. */
  12122. _ACEOF
  12123. cat confdefs.h >>conftest.$ac_ext
  12124. cat >>conftest.$ac_ext <<_ACEOF
  12125. /* end confdefs.h. */
  12126. $ac_includes_default
  12127. int
  12128. main ()
  12129. {
  12130. if ((pid_t *) 0)
  12131. return 0;
  12132. if (sizeof (pid_t))
  12133. return 0;
  12134. ;
  12135. return 0;
  12136. }
  12137. _ACEOF
  12138. rm -f conftest.$ac_objext
  12139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12140. (eval $ac_compile) 2>conftest.er1
  12141. ac_status=$?
  12142. grep -v '^ *+' conftest.er1 >conftest.err
  12143. rm -f conftest.er1
  12144. cat conftest.err >&5
  12145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12146. (exit $ac_status); } &&
  12147. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12149. (eval $ac_try) 2>&5
  12150. ac_status=$?
  12151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12152. (exit $ac_status); }; } &&
  12153. { ac_try='test -s conftest.$ac_objext'
  12154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12155. (eval $ac_try) 2>&5
  12156. ac_status=$?
  12157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12158. (exit $ac_status); }; }; then
  12159. ac_cv_type_pid_t=yes
  12160. else
  12161. echo "$as_me: failed program was:" >&5
  12162. sed 's/^/| /' conftest.$ac_ext >&5
  12163. ac_cv_type_pid_t=no
  12164. fi
  12165. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12166. fi
  12167. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  12168. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  12169. if test $ac_cv_type_pid_t = yes; then
  12170. :
  12171. else
  12172. cat >>confdefs.h <<_ACEOF
  12173. #define pid_t int
  12174. _ACEOF
  12175. fi
  12176. echo "$as_me:$LINENO: checking for size_t" >&5
  12177. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  12178. if test "${ac_cv_type_size_t+set}" = set; then
  12179. echo $ECHO_N "(cached) $ECHO_C" >&6
  12180. else
  12181. cat >conftest.$ac_ext <<_ACEOF
  12182. /* confdefs.h. */
  12183. _ACEOF
  12184. cat confdefs.h >>conftest.$ac_ext
  12185. cat >>conftest.$ac_ext <<_ACEOF
  12186. /* end confdefs.h. */
  12187. $ac_includes_default
  12188. int
  12189. main ()
  12190. {
  12191. if ((size_t *) 0)
  12192. return 0;
  12193. if (sizeof (size_t))
  12194. return 0;
  12195. ;
  12196. return 0;
  12197. }
  12198. _ACEOF
  12199. rm -f conftest.$ac_objext
  12200. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12201. (eval $ac_compile) 2>conftest.er1
  12202. ac_status=$?
  12203. grep -v '^ *+' conftest.er1 >conftest.err
  12204. rm -f conftest.er1
  12205. cat conftest.err >&5
  12206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12207. (exit $ac_status); } &&
  12208. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12210. (eval $ac_try) 2>&5
  12211. ac_status=$?
  12212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12213. (exit $ac_status); }; } &&
  12214. { ac_try='test -s conftest.$ac_objext'
  12215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12216. (eval $ac_try) 2>&5
  12217. ac_status=$?
  12218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12219. (exit $ac_status); }; }; then
  12220. ac_cv_type_size_t=yes
  12221. else
  12222. echo "$as_me: failed program was:" >&5
  12223. sed 's/^/| /' conftest.$ac_ext >&5
  12224. ac_cv_type_size_t=no
  12225. fi
  12226. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12227. fi
  12228. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  12229. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  12230. if test $ac_cv_type_size_t = yes; then
  12231. :
  12232. else
  12233. cat >>confdefs.h <<_ACEOF
  12234. #define size_t unsigned
  12235. _ACEOF
  12236. fi
  12237. echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  12238. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
  12239. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  12240. echo $ECHO_N "(cached) $ECHO_C" >&6
  12241. else
  12242. cat >conftest.$ac_ext <<_ACEOF
  12243. /* confdefs.h. */
  12244. _ACEOF
  12245. cat confdefs.h >>conftest.$ac_ext
  12246. cat >>conftest.$ac_ext <<_ACEOF
  12247. /* end confdefs.h. */
  12248. $ac_includes_default
  12249. int
  12250. main ()
  12251. {
  12252. if ((ptrdiff_t *) 0)
  12253. return 0;
  12254. if (sizeof (ptrdiff_t))
  12255. return 0;
  12256. ;
  12257. return 0;
  12258. }
  12259. _ACEOF
  12260. rm -f conftest.$ac_objext
  12261. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12262. (eval $ac_compile) 2>conftest.er1
  12263. ac_status=$?
  12264. grep -v '^ *+' conftest.er1 >conftest.err
  12265. rm -f conftest.er1
  12266. cat conftest.err >&5
  12267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12268. (exit $ac_status); } &&
  12269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12271. (eval $ac_try) 2>&5
  12272. ac_status=$?
  12273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12274. (exit $ac_status); }; } &&
  12275. { ac_try='test -s conftest.$ac_objext'
  12276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12277. (eval $ac_try) 2>&5
  12278. ac_status=$?
  12279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12280. (exit $ac_status); }; }; then
  12281. ac_cv_type_ptrdiff_t=yes
  12282. else
  12283. echo "$as_me: failed program was:" >&5
  12284. sed 's/^/| /' conftest.$ac_ext >&5
  12285. ac_cv_type_ptrdiff_t=no
  12286. fi
  12287. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12288. fi
  12289. echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  12290. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
  12291. if test $ac_cv_type_ptrdiff_t = yes; then
  12292. :
  12293. else
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define ptrdiff_t int
  12296. _ACEOF
  12297. fi
  12298. echo "$as_me:$LINENO: checking for unsigned int" >&5
  12299. echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
  12300. if test "${ac_cv_type_unsigned_int+set}" = set; then
  12301. echo $ECHO_N "(cached) $ECHO_C" >&6
  12302. else
  12303. cat >conftest.$ac_ext <<_ACEOF
  12304. /* confdefs.h. */
  12305. _ACEOF
  12306. cat confdefs.h >>conftest.$ac_ext
  12307. cat >>conftest.$ac_ext <<_ACEOF
  12308. /* end confdefs.h. */
  12309. $ac_includes_default
  12310. int
  12311. main ()
  12312. {
  12313. if ((unsigned int *) 0)
  12314. return 0;
  12315. if (sizeof (unsigned int))
  12316. return 0;
  12317. ;
  12318. return 0;
  12319. }
  12320. _ACEOF
  12321. rm -f conftest.$ac_objext
  12322. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12323. (eval $ac_compile) 2>conftest.er1
  12324. ac_status=$?
  12325. grep -v '^ *+' conftest.er1 >conftest.err
  12326. rm -f conftest.er1
  12327. cat conftest.err >&5
  12328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12329. (exit $ac_status); } &&
  12330. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12332. (eval $ac_try) 2>&5
  12333. ac_status=$?
  12334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12335. (exit $ac_status); }; } &&
  12336. { ac_try='test -s conftest.$ac_objext'
  12337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12338. (eval $ac_try) 2>&5
  12339. ac_status=$?
  12340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12341. (exit $ac_status); }; }; then
  12342. ac_cv_type_unsigned_int=yes
  12343. else
  12344. echo "$as_me: failed program was:" >&5
  12345. sed 's/^/| /' conftest.$ac_ext >&5
  12346. ac_cv_type_unsigned_int=no
  12347. fi
  12348. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12349. fi
  12350. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
  12351. echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
  12352. echo "$as_me:$LINENO: checking size of unsigned int" >&5
  12353. echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
  12354. if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  12355. echo $ECHO_N "(cached) $ECHO_C" >&6
  12356. else
  12357. if test "$ac_cv_type_unsigned_int" = yes; then
  12358. # The cast to unsigned long works around a bug in the HP C Compiler
  12359. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12360. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12361. # This bug is HP SR number 8606223364.
  12362. if test "$cross_compiling" = yes; then
  12363. # Depending upon the size, compute the lo and hi bounds.
  12364. cat >conftest.$ac_ext <<_ACEOF
  12365. /* confdefs.h. */
  12366. _ACEOF
  12367. cat confdefs.h >>conftest.$ac_ext
  12368. cat >>conftest.$ac_ext <<_ACEOF
  12369. /* end confdefs.h. */
  12370. $ac_includes_default
  12371. int
  12372. main ()
  12373. {
  12374. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
  12375. test_array [0] = 0
  12376. ;
  12377. return 0;
  12378. }
  12379. _ACEOF
  12380. rm -f conftest.$ac_objext
  12381. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12382. (eval $ac_compile) 2>conftest.er1
  12383. ac_status=$?
  12384. grep -v '^ *+' conftest.er1 >conftest.err
  12385. rm -f conftest.er1
  12386. cat conftest.err >&5
  12387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12388. (exit $ac_status); } &&
  12389. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12391. (eval $ac_try) 2>&5
  12392. ac_status=$?
  12393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12394. (exit $ac_status); }; } &&
  12395. { ac_try='test -s conftest.$ac_objext'
  12396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12397. (eval $ac_try) 2>&5
  12398. ac_status=$?
  12399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12400. (exit $ac_status); }; }; then
  12401. ac_lo=0 ac_mid=0
  12402. while :; do
  12403. cat >conftest.$ac_ext <<_ACEOF
  12404. /* confdefs.h. */
  12405. _ACEOF
  12406. cat confdefs.h >>conftest.$ac_ext
  12407. cat >>conftest.$ac_ext <<_ACEOF
  12408. /* end confdefs.h. */
  12409. $ac_includes_default
  12410. int
  12411. main ()
  12412. {
  12413. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  12414. test_array [0] = 0
  12415. ;
  12416. return 0;
  12417. }
  12418. _ACEOF
  12419. rm -f conftest.$ac_objext
  12420. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12421. (eval $ac_compile) 2>conftest.er1
  12422. ac_status=$?
  12423. grep -v '^ *+' conftest.er1 >conftest.err
  12424. rm -f conftest.er1
  12425. cat conftest.err >&5
  12426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12427. (exit $ac_status); } &&
  12428. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12430. (eval $ac_try) 2>&5
  12431. ac_status=$?
  12432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12433. (exit $ac_status); }; } &&
  12434. { ac_try='test -s conftest.$ac_objext'
  12435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12436. (eval $ac_try) 2>&5
  12437. ac_status=$?
  12438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12439. (exit $ac_status); }; }; then
  12440. ac_hi=$ac_mid; break
  12441. else
  12442. echo "$as_me: failed program was:" >&5
  12443. sed 's/^/| /' conftest.$ac_ext >&5
  12444. ac_lo=`expr $ac_mid + 1`
  12445. if test $ac_lo -le $ac_mid; then
  12446. ac_lo= ac_hi=
  12447. break
  12448. fi
  12449. ac_mid=`expr 2 '*' $ac_mid + 1`
  12450. fi
  12451. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12452. done
  12453. else
  12454. echo "$as_me: failed program was:" >&5
  12455. sed 's/^/| /' conftest.$ac_ext >&5
  12456. cat >conftest.$ac_ext <<_ACEOF
  12457. /* confdefs.h. */
  12458. _ACEOF
  12459. cat confdefs.h >>conftest.$ac_ext
  12460. cat >>conftest.$ac_ext <<_ACEOF
  12461. /* end confdefs.h. */
  12462. $ac_includes_default
  12463. int
  12464. main ()
  12465. {
  12466. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
  12467. test_array [0] = 0
  12468. ;
  12469. return 0;
  12470. }
  12471. _ACEOF
  12472. rm -f conftest.$ac_objext
  12473. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12474. (eval $ac_compile) 2>conftest.er1
  12475. ac_status=$?
  12476. grep -v '^ *+' conftest.er1 >conftest.err
  12477. rm -f conftest.er1
  12478. cat conftest.err >&5
  12479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12480. (exit $ac_status); } &&
  12481. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12483. (eval $ac_try) 2>&5
  12484. ac_status=$?
  12485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12486. (exit $ac_status); }; } &&
  12487. { ac_try='test -s conftest.$ac_objext'
  12488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12489. (eval $ac_try) 2>&5
  12490. ac_status=$?
  12491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12492. (exit $ac_status); }; }; then
  12493. ac_hi=-1 ac_mid=-1
  12494. while :; do
  12495. cat >conftest.$ac_ext <<_ACEOF
  12496. /* confdefs.h. */
  12497. _ACEOF
  12498. cat confdefs.h >>conftest.$ac_ext
  12499. cat >>conftest.$ac_ext <<_ACEOF
  12500. /* end confdefs.h. */
  12501. $ac_includes_default
  12502. int
  12503. main ()
  12504. {
  12505. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
  12506. test_array [0] = 0
  12507. ;
  12508. return 0;
  12509. }
  12510. _ACEOF
  12511. rm -f conftest.$ac_objext
  12512. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12513. (eval $ac_compile) 2>conftest.er1
  12514. ac_status=$?
  12515. grep -v '^ *+' conftest.er1 >conftest.err
  12516. rm -f conftest.er1
  12517. cat conftest.err >&5
  12518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12519. (exit $ac_status); } &&
  12520. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12522. (eval $ac_try) 2>&5
  12523. ac_status=$?
  12524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12525. (exit $ac_status); }; } &&
  12526. { ac_try='test -s conftest.$ac_objext'
  12527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12528. (eval $ac_try) 2>&5
  12529. ac_status=$?
  12530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12531. (exit $ac_status); }; }; then
  12532. ac_lo=$ac_mid; break
  12533. else
  12534. echo "$as_me: failed program was:" >&5
  12535. sed 's/^/| /' conftest.$ac_ext >&5
  12536. ac_hi=`expr '(' $ac_mid ')' - 1`
  12537. if test $ac_mid -le $ac_hi; then
  12538. ac_lo= ac_hi=
  12539. break
  12540. fi
  12541. ac_mid=`expr 2 '*' $ac_mid`
  12542. fi
  12543. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12544. done
  12545. else
  12546. echo "$as_me: failed program was:" >&5
  12547. sed 's/^/| /' conftest.$ac_ext >&5
  12548. ac_lo= ac_hi=
  12549. fi
  12550. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12551. fi
  12552. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12553. # Binary search between lo and hi bounds.
  12554. while test "x$ac_lo" != "x$ac_hi"; do
  12555. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12556. cat >conftest.$ac_ext <<_ACEOF
  12557. /* confdefs.h. */
  12558. _ACEOF
  12559. cat confdefs.h >>conftest.$ac_ext
  12560. cat >>conftest.$ac_ext <<_ACEOF
  12561. /* end confdefs.h. */
  12562. $ac_includes_default
  12563. int
  12564. main ()
  12565. {
  12566. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  12567. test_array [0] = 0
  12568. ;
  12569. return 0;
  12570. }
  12571. _ACEOF
  12572. rm -f conftest.$ac_objext
  12573. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12574. (eval $ac_compile) 2>conftest.er1
  12575. ac_status=$?
  12576. grep -v '^ *+' conftest.er1 >conftest.err
  12577. rm -f conftest.er1
  12578. cat conftest.err >&5
  12579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12580. (exit $ac_status); } &&
  12581. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12583. (eval $ac_try) 2>&5
  12584. ac_status=$?
  12585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12586. (exit $ac_status); }; } &&
  12587. { ac_try='test -s conftest.$ac_objext'
  12588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12589. (eval $ac_try) 2>&5
  12590. ac_status=$?
  12591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12592. (exit $ac_status); }; }; then
  12593. ac_hi=$ac_mid
  12594. else
  12595. echo "$as_me: failed program was:" >&5
  12596. sed 's/^/| /' conftest.$ac_ext >&5
  12597. ac_lo=`expr '(' $ac_mid ')' + 1`
  12598. fi
  12599. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12600. done
  12601. case $ac_lo in
  12602. ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  12603. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
  12604. See \`config.log' for more details." >&5
  12605. echo "$as_me: error: cannot compute sizeof (unsigned int), 77
  12606. See \`config.log' for more details." >&2;}
  12607. { (exit 1); exit 1; }; } ;;
  12608. esac
  12609. else
  12610. if test "$cross_compiling" = yes; then
  12611. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  12612. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  12613. { (exit 1); exit 1; }; }
  12614. else
  12615. cat >conftest.$ac_ext <<_ACEOF
  12616. /* confdefs.h. */
  12617. _ACEOF
  12618. cat confdefs.h >>conftest.$ac_ext
  12619. cat >>conftest.$ac_ext <<_ACEOF
  12620. /* end confdefs.h. */
  12621. $ac_includes_default
  12622. long longval () { return (long) (sizeof (unsigned int)); }
  12623. unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
  12624. #include <stdio.h>
  12625. #include <stdlib.h>
  12626. int
  12627. main ()
  12628. {
  12629. FILE *f = fopen ("conftest.val", "w");
  12630. if (! f)
  12631. exit (1);
  12632. if (((long) (sizeof (unsigned int))) < 0)
  12633. {
  12634. long i = longval ();
  12635. if (i != ((long) (sizeof (unsigned int))))
  12636. exit (1);
  12637. fprintf (f, "%ld\n", i);
  12638. }
  12639. else
  12640. {
  12641. unsigned long i = ulongval ();
  12642. if (i != ((long) (sizeof (unsigned int))))
  12643. exit (1);
  12644. fprintf (f, "%lu\n", i);
  12645. }
  12646. exit (ferror (f) || fclose (f) != 0);
  12647. ;
  12648. return 0;
  12649. }
  12650. _ACEOF
  12651. rm -f conftest$ac_exeext
  12652. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12653. (eval $ac_link) 2>&5
  12654. ac_status=$?
  12655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12656. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12658. (eval $ac_try) 2>&5
  12659. ac_status=$?
  12660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12661. (exit $ac_status); }; }; then
  12662. ac_cv_sizeof_unsigned_int=`cat conftest.val`
  12663. else
  12664. echo "$as_me: program exited with status $ac_status" >&5
  12665. echo "$as_me: failed program was:" >&5
  12666. sed 's/^/| /' conftest.$ac_ext >&5
  12667. ( exit $ac_status )
  12668. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
  12669. See \`config.log' for more details." >&5
  12670. echo "$as_me: error: cannot compute sizeof (unsigned int), 77
  12671. See \`config.log' for more details." >&2;}
  12672. { (exit 1); exit 1; }; }
  12673. fi
  12674. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12675. fi
  12676. fi
  12677. rm -f conftest.val
  12678. else
  12679. ac_cv_sizeof_unsigned_int=0
  12680. fi
  12681. fi
  12682. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  12683. echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
  12684. cat >>confdefs.h <<_ACEOF
  12685. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  12686. _ACEOF
  12687. echo "$as_me:$LINENO: checking for unsigned long" >&5
  12688. echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  12689. if test "${ac_cv_type_unsigned_long+set}" = set; then
  12690. echo $ECHO_N "(cached) $ECHO_C" >&6
  12691. else
  12692. cat >conftest.$ac_ext <<_ACEOF
  12693. /* confdefs.h. */
  12694. _ACEOF
  12695. cat confdefs.h >>conftest.$ac_ext
  12696. cat >>conftest.$ac_ext <<_ACEOF
  12697. /* end confdefs.h. */
  12698. $ac_includes_default
  12699. int
  12700. main ()
  12701. {
  12702. if ((unsigned long *) 0)
  12703. return 0;
  12704. if (sizeof (unsigned long))
  12705. return 0;
  12706. ;
  12707. return 0;
  12708. }
  12709. _ACEOF
  12710. rm -f conftest.$ac_objext
  12711. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12712. (eval $ac_compile) 2>conftest.er1
  12713. ac_status=$?
  12714. grep -v '^ *+' conftest.er1 >conftest.err
  12715. rm -f conftest.er1
  12716. cat conftest.err >&5
  12717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12718. (exit $ac_status); } &&
  12719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12721. (eval $ac_try) 2>&5
  12722. ac_status=$?
  12723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12724. (exit $ac_status); }; } &&
  12725. { ac_try='test -s conftest.$ac_objext'
  12726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12727. (eval $ac_try) 2>&5
  12728. ac_status=$?
  12729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12730. (exit $ac_status); }; }; then
  12731. ac_cv_type_unsigned_long=yes
  12732. else
  12733. echo "$as_me: failed program was:" >&5
  12734. sed 's/^/| /' conftest.$ac_ext >&5
  12735. ac_cv_type_unsigned_long=no
  12736. fi
  12737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12738. fi
  12739. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  12740. echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  12741. echo "$as_me:$LINENO: checking size of unsigned long" >&5
  12742. echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  12743. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  12744. echo $ECHO_N "(cached) $ECHO_C" >&6
  12745. else
  12746. if test "$ac_cv_type_unsigned_long" = yes; then
  12747. # The cast to unsigned long works around a bug in the HP C Compiler
  12748. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12749. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12750. # This bug is HP SR number 8606223364.
  12751. if test "$cross_compiling" = yes; then
  12752. # Depending upon the size, compute the lo and hi bounds.
  12753. cat >conftest.$ac_ext <<_ACEOF
  12754. /* confdefs.h. */
  12755. _ACEOF
  12756. cat confdefs.h >>conftest.$ac_ext
  12757. cat >>conftest.$ac_ext <<_ACEOF
  12758. /* end confdefs.h. */
  12759. $ac_includes_default
  12760. int
  12761. main ()
  12762. {
  12763. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  12764. test_array [0] = 0
  12765. ;
  12766. return 0;
  12767. }
  12768. _ACEOF
  12769. rm -f conftest.$ac_objext
  12770. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12771. (eval $ac_compile) 2>conftest.er1
  12772. ac_status=$?
  12773. grep -v '^ *+' conftest.er1 >conftest.err
  12774. rm -f conftest.er1
  12775. cat conftest.err >&5
  12776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12777. (exit $ac_status); } &&
  12778. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12780. (eval $ac_try) 2>&5
  12781. ac_status=$?
  12782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12783. (exit $ac_status); }; } &&
  12784. { ac_try='test -s conftest.$ac_objext'
  12785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12786. (eval $ac_try) 2>&5
  12787. ac_status=$?
  12788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12789. (exit $ac_status); }; }; then
  12790. ac_lo=0 ac_mid=0
  12791. while :; do
  12792. cat >conftest.$ac_ext <<_ACEOF
  12793. /* confdefs.h. */
  12794. _ACEOF
  12795. cat confdefs.h >>conftest.$ac_ext
  12796. cat >>conftest.$ac_ext <<_ACEOF
  12797. /* end confdefs.h. */
  12798. $ac_includes_default
  12799. int
  12800. main ()
  12801. {
  12802. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  12803. test_array [0] = 0
  12804. ;
  12805. return 0;
  12806. }
  12807. _ACEOF
  12808. rm -f conftest.$ac_objext
  12809. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12810. (eval $ac_compile) 2>conftest.er1
  12811. ac_status=$?
  12812. grep -v '^ *+' conftest.er1 >conftest.err
  12813. rm -f conftest.er1
  12814. cat conftest.err >&5
  12815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12816. (exit $ac_status); } &&
  12817. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12819. (eval $ac_try) 2>&5
  12820. ac_status=$?
  12821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12822. (exit $ac_status); }; } &&
  12823. { ac_try='test -s conftest.$ac_objext'
  12824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12825. (eval $ac_try) 2>&5
  12826. ac_status=$?
  12827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12828. (exit $ac_status); }; }; then
  12829. ac_hi=$ac_mid; break
  12830. else
  12831. echo "$as_me: failed program was:" >&5
  12832. sed 's/^/| /' conftest.$ac_ext >&5
  12833. ac_lo=`expr $ac_mid + 1`
  12834. if test $ac_lo -le $ac_mid; then
  12835. ac_lo= ac_hi=
  12836. break
  12837. fi
  12838. ac_mid=`expr 2 '*' $ac_mid + 1`
  12839. fi
  12840. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12841. done
  12842. else
  12843. echo "$as_me: failed program was:" >&5
  12844. sed 's/^/| /' conftest.$ac_ext >&5
  12845. cat >conftest.$ac_ext <<_ACEOF
  12846. /* confdefs.h. */
  12847. _ACEOF
  12848. cat confdefs.h >>conftest.$ac_ext
  12849. cat >>conftest.$ac_ext <<_ACEOF
  12850. /* end confdefs.h. */
  12851. $ac_includes_default
  12852. int
  12853. main ()
  12854. {
  12855. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  12856. test_array [0] = 0
  12857. ;
  12858. return 0;
  12859. }
  12860. _ACEOF
  12861. rm -f conftest.$ac_objext
  12862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12863. (eval $ac_compile) 2>conftest.er1
  12864. ac_status=$?
  12865. grep -v '^ *+' conftest.er1 >conftest.err
  12866. rm -f conftest.er1
  12867. cat conftest.err >&5
  12868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12869. (exit $ac_status); } &&
  12870. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12872. (eval $ac_try) 2>&5
  12873. ac_status=$?
  12874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12875. (exit $ac_status); }; } &&
  12876. { ac_try='test -s conftest.$ac_objext'
  12877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12878. (eval $ac_try) 2>&5
  12879. ac_status=$?
  12880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12881. (exit $ac_status); }; }; then
  12882. ac_hi=-1 ac_mid=-1
  12883. while :; do
  12884. cat >conftest.$ac_ext <<_ACEOF
  12885. /* confdefs.h. */
  12886. _ACEOF
  12887. cat confdefs.h >>conftest.$ac_ext
  12888. cat >>conftest.$ac_ext <<_ACEOF
  12889. /* end confdefs.h. */
  12890. $ac_includes_default
  12891. int
  12892. main ()
  12893. {
  12894. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  12895. test_array [0] = 0
  12896. ;
  12897. return 0;
  12898. }
  12899. _ACEOF
  12900. rm -f conftest.$ac_objext
  12901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12902. (eval $ac_compile) 2>conftest.er1
  12903. ac_status=$?
  12904. grep -v '^ *+' conftest.er1 >conftest.err
  12905. rm -f conftest.er1
  12906. cat conftest.err >&5
  12907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12908. (exit $ac_status); } &&
  12909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12911. (eval $ac_try) 2>&5
  12912. ac_status=$?
  12913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12914. (exit $ac_status); }; } &&
  12915. { ac_try='test -s conftest.$ac_objext'
  12916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12917. (eval $ac_try) 2>&5
  12918. ac_status=$?
  12919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12920. (exit $ac_status); }; }; then
  12921. ac_lo=$ac_mid; break
  12922. else
  12923. echo "$as_me: failed program was:" >&5
  12924. sed 's/^/| /' conftest.$ac_ext >&5
  12925. ac_hi=`expr '(' $ac_mid ')' - 1`
  12926. if test $ac_mid -le $ac_hi; then
  12927. ac_lo= ac_hi=
  12928. break
  12929. fi
  12930. ac_mid=`expr 2 '*' $ac_mid`
  12931. fi
  12932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12933. done
  12934. else
  12935. echo "$as_me: failed program was:" >&5
  12936. sed 's/^/| /' conftest.$ac_ext >&5
  12937. ac_lo= ac_hi=
  12938. fi
  12939. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12940. fi
  12941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12942. # Binary search between lo and hi bounds.
  12943. while test "x$ac_lo" != "x$ac_hi"; do
  12944. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12945. cat >conftest.$ac_ext <<_ACEOF
  12946. /* confdefs.h. */
  12947. _ACEOF
  12948. cat confdefs.h >>conftest.$ac_ext
  12949. cat >>conftest.$ac_ext <<_ACEOF
  12950. /* end confdefs.h. */
  12951. $ac_includes_default
  12952. int
  12953. main ()
  12954. {
  12955. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  12956. test_array [0] = 0
  12957. ;
  12958. return 0;
  12959. }
  12960. _ACEOF
  12961. rm -f conftest.$ac_objext
  12962. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12963. (eval $ac_compile) 2>conftest.er1
  12964. ac_status=$?
  12965. grep -v '^ *+' conftest.er1 >conftest.err
  12966. rm -f conftest.er1
  12967. cat conftest.err >&5
  12968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12969. (exit $ac_status); } &&
  12970. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12972. (eval $ac_try) 2>&5
  12973. ac_status=$?
  12974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12975. (exit $ac_status); }; } &&
  12976. { ac_try='test -s conftest.$ac_objext'
  12977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12978. (eval $ac_try) 2>&5
  12979. ac_status=$?
  12980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12981. (exit $ac_status); }; }; then
  12982. ac_hi=$ac_mid
  12983. else
  12984. echo "$as_me: failed program was:" >&5
  12985. sed 's/^/| /' conftest.$ac_ext >&5
  12986. ac_lo=`expr '(' $ac_mid ')' + 1`
  12987. fi
  12988. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12989. done
  12990. case $ac_lo in
  12991. ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  12992. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  12993. See \`config.log' for more details." >&5
  12994. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  12995. See \`config.log' for more details." >&2;}
  12996. { (exit 1); exit 1; }; } ;;
  12997. esac
  12998. else
  12999. if test "$cross_compiling" = yes; then
  13000. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  13001. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  13002. { (exit 1); exit 1; }; }
  13003. else
  13004. cat >conftest.$ac_ext <<_ACEOF
  13005. /* confdefs.h. */
  13006. _ACEOF
  13007. cat confdefs.h >>conftest.$ac_ext
  13008. cat >>conftest.$ac_ext <<_ACEOF
  13009. /* end confdefs.h. */
  13010. $ac_includes_default
  13011. long longval () { return (long) (sizeof (unsigned long)); }
  13012. unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  13013. #include <stdio.h>
  13014. #include <stdlib.h>
  13015. int
  13016. main ()
  13017. {
  13018. FILE *f = fopen ("conftest.val", "w");
  13019. if (! f)
  13020. exit (1);
  13021. if (((long) (sizeof (unsigned long))) < 0)
  13022. {
  13023. long i = longval ();
  13024. if (i != ((long) (sizeof (unsigned long))))
  13025. exit (1);
  13026. fprintf (f, "%ld\n", i);
  13027. }
  13028. else
  13029. {
  13030. unsigned long i = ulongval ();
  13031. if (i != ((long) (sizeof (unsigned long))))
  13032. exit (1);
  13033. fprintf (f, "%lu\n", i);
  13034. }
  13035. exit (ferror (f) || fclose (f) != 0);
  13036. ;
  13037. return 0;
  13038. }
  13039. _ACEOF
  13040. rm -f conftest$ac_exeext
  13041. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13042. (eval $ac_link) 2>&5
  13043. ac_status=$?
  13044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13047. (eval $ac_try) 2>&5
  13048. ac_status=$?
  13049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13050. (exit $ac_status); }; }; then
  13051. ac_cv_sizeof_unsigned_long=`cat conftest.val`
  13052. else
  13053. echo "$as_me: program exited with status $ac_status" >&5
  13054. echo "$as_me: failed program was:" >&5
  13055. sed 's/^/| /' conftest.$ac_ext >&5
  13056. ( exit $ac_status )
  13057. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  13058. See \`config.log' for more details." >&5
  13059. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  13060. See \`config.log' for more details." >&2;}
  13061. { (exit 1); exit 1; }; }
  13062. fi
  13063. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13064. fi
  13065. fi
  13066. rm -f conftest.val
  13067. else
  13068. ac_cv_sizeof_unsigned_long=0
  13069. fi
  13070. fi
  13071. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  13072. echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  13073. cat >>confdefs.h <<_ACEOF
  13074. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  13075. _ACEOF
  13076. for ac_header in unistd.h
  13077. do
  13078. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13079. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13080. echo "$as_me:$LINENO: checking for $ac_header" >&5
  13081. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13082. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13083. echo $ECHO_N "(cached) $ECHO_C" >&6
  13084. fi
  13085. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13086. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13087. else
  13088. # Is the header compilable?
  13089. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13090. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  13091. cat >conftest.$ac_ext <<_ACEOF
  13092. /* confdefs.h. */
  13093. _ACEOF
  13094. cat confdefs.h >>conftest.$ac_ext
  13095. cat >>conftest.$ac_ext <<_ACEOF
  13096. /* end confdefs.h. */
  13097. $ac_includes_default
  13098. #include <$ac_header>
  13099. _ACEOF
  13100. rm -f conftest.$ac_objext
  13101. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13102. (eval $ac_compile) 2>conftest.er1
  13103. ac_status=$?
  13104. grep -v '^ *+' conftest.er1 >conftest.err
  13105. rm -f conftest.er1
  13106. cat conftest.err >&5
  13107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13108. (exit $ac_status); } &&
  13109. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13111. (eval $ac_try) 2>&5
  13112. ac_status=$?
  13113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13114. (exit $ac_status); }; } &&
  13115. { ac_try='test -s conftest.$ac_objext'
  13116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13117. (eval $ac_try) 2>&5
  13118. ac_status=$?
  13119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13120. (exit $ac_status); }; }; then
  13121. ac_header_compiler=yes
  13122. else
  13123. echo "$as_me: failed program was:" >&5
  13124. sed 's/^/| /' conftest.$ac_ext >&5
  13125. ac_header_compiler=no
  13126. fi
  13127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13128. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13129. echo "${ECHO_T}$ac_header_compiler" >&6
  13130. # Is the header present?
  13131. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13132. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  13133. cat >conftest.$ac_ext <<_ACEOF
  13134. /* confdefs.h. */
  13135. _ACEOF
  13136. cat confdefs.h >>conftest.$ac_ext
  13137. cat >>conftest.$ac_ext <<_ACEOF
  13138. /* end confdefs.h. */
  13139. #include <$ac_header>
  13140. _ACEOF
  13141. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13142. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13143. ac_status=$?
  13144. grep -v '^ *+' conftest.er1 >conftest.err
  13145. rm -f conftest.er1
  13146. cat conftest.err >&5
  13147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13148. (exit $ac_status); } >/dev/null; then
  13149. if test -s conftest.err; then
  13150. ac_cpp_err=$ac_c_preproc_warn_flag
  13151. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13152. else
  13153. ac_cpp_err=
  13154. fi
  13155. else
  13156. ac_cpp_err=yes
  13157. fi
  13158. if test -z "$ac_cpp_err"; then
  13159. ac_header_preproc=yes
  13160. else
  13161. echo "$as_me: failed program was:" >&5
  13162. sed 's/^/| /' conftest.$ac_ext >&5
  13163. ac_header_preproc=no
  13164. fi
  13165. rm -f conftest.err conftest.$ac_ext
  13166. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13167. echo "${ECHO_T}$ac_header_preproc" >&6
  13168. # So? What about this header?
  13169. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13170. yes:no: )
  13171. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13172. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13173. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13174. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13175. ac_header_preproc=yes
  13176. ;;
  13177. no:yes:* )
  13178. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13179. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13180. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13181. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13182. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13183. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13184. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13185. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13186. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13187. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13188. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13189. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13190. (
  13191. cat <<\_ASBOX
  13192. ## ------------------------------------------- ##
  13193. ## Report this to debian-dpkg@lists.debian.org ##
  13194. ## ------------------------------------------- ##
  13195. _ASBOX
  13196. ) |
  13197. sed "s/^/$as_me: WARNING: /" >&2
  13198. ;;
  13199. esac
  13200. echo "$as_me:$LINENO: checking for $ac_header" >&5
  13201. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13202. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13203. echo $ECHO_N "(cached) $ECHO_C" >&6
  13204. else
  13205. eval "$as_ac_Header=\$ac_header_preproc"
  13206. fi
  13207. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13208. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13209. fi
  13210. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13211. cat >>confdefs.h <<_ACEOF
  13212. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13213. _ACEOF
  13214. fi
  13215. done
  13216. echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
  13217. echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
  13218. if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
  13219. echo $ECHO_N "(cached) $ECHO_C" >&6
  13220. else
  13221. cat >conftest.$ac_ext <<_ACEOF
  13222. /* confdefs.h. */
  13223. _ACEOF
  13224. cat confdefs.h >>conftest.$ac_ext
  13225. cat >>conftest.$ac_ext <<_ACEOF
  13226. /* end confdefs.h. */
  13227. #include <signal.h>
  13228. /* NetBSD declares sys_siglist in unistd.h. */
  13229. #if HAVE_UNISTD_H
  13230. # include <unistd.h>
  13231. #endif
  13232. int
  13233. main ()
  13234. {
  13235. #ifndef sys_siglist
  13236. char *p = (char *) sys_siglist;
  13237. #endif
  13238. ;
  13239. return 0;
  13240. }
  13241. _ACEOF
  13242. rm -f conftest.$ac_objext
  13243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13244. (eval $ac_compile) 2>conftest.er1
  13245. ac_status=$?
  13246. grep -v '^ *+' conftest.er1 >conftest.err
  13247. rm -f conftest.er1
  13248. cat conftest.err >&5
  13249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13250. (exit $ac_status); } &&
  13251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13253. (eval $ac_try) 2>&5
  13254. ac_status=$?
  13255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13256. (exit $ac_status); }; } &&
  13257. { ac_try='test -s conftest.$ac_objext'
  13258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13259. (eval $ac_try) 2>&5
  13260. ac_status=$?
  13261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13262. (exit $ac_status); }; }; then
  13263. ac_cv_have_decl_sys_siglist=yes
  13264. else
  13265. echo "$as_me: failed program was:" >&5
  13266. sed 's/^/| /' conftest.$ac_ext >&5
  13267. ac_cv_have_decl_sys_siglist=no
  13268. fi
  13269. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13270. fi
  13271. echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
  13272. echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
  13273. if test $ac_cv_have_decl_sys_siglist = yes; then
  13274. cat >>confdefs.h <<_ACEOF
  13275. #define HAVE_DECL_SYS_SIGLIST 1
  13276. _ACEOF
  13277. else
  13278. cat >>confdefs.h <<_ACEOF
  13279. #define HAVE_DECL_SYS_SIGLIST 0
  13280. _ACEOF
  13281. fi
  13282. echo "$as_me:$LINENO: checking whether compiler supports __attribute__" >&5
  13283. echo $ECHO_N "checking whether compiler supports __attribute__... $ECHO_C" >&6
  13284. if test "${dpkg_cv_attribute+set}" = set; then
  13285. echo $ECHO_N "(cached) $ECHO_C" >&6
  13286. else
  13287. cat >conftest.$ac_ext <<_ACEOF
  13288. /* confdefs.h. */
  13289. _ACEOF
  13290. cat confdefs.h >>conftest.$ac_ext
  13291. cat >>conftest.$ac_ext <<_ACEOF
  13292. /* end confdefs.h. */
  13293. int
  13294. main ()
  13295. {
  13296. extern int testfunction(int x) __attribute__((unused))
  13297. ;
  13298. return 0;
  13299. }
  13300. _ACEOF
  13301. rm -f conftest.$ac_objext
  13302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13303. (eval $ac_compile) 2>conftest.er1
  13304. ac_status=$?
  13305. grep -v '^ *+' conftest.er1 >conftest.err
  13306. rm -f conftest.er1
  13307. cat conftest.err >&5
  13308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13309. (exit $ac_status); } &&
  13310. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13312. (eval $ac_try) 2>&5
  13313. ac_status=$?
  13314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13315. (exit $ac_status); }; } &&
  13316. { ac_try='test -s conftest.$ac_objext'
  13317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13318. (eval $ac_try) 2>&5
  13319. ac_status=$?
  13320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13321. (exit $ac_status); }; }; then
  13322. dpkg_cv_attribute=yes
  13323. else
  13324. echo "$as_me: failed program was:" >&5
  13325. sed 's/^/| /' conftest.$ac_ext >&5
  13326. dpkg_cv_attribute=no
  13327. fi
  13328. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13329. fi
  13330. echo "$as_me:$LINENO: result: $dpkg_cv_attribute" >&5
  13331. echo "${ECHO_T}$dpkg_cv_attribute" >&6
  13332. if test "x$dpkg_cv_attribute" = "xyes"; then
  13333. cat >>confdefs.h <<\_ACEOF
  13334. #define HAVE_C_ATTRIBUTE 1
  13335. _ACEOF
  13336. else
  13337. cat >>confdefs.h <<\_ACEOF
  13338. #define HAVE_C_ATTRIBUTE 0
  13339. _ACEOF
  13340. fi
  13341. # Checks for library functions.
  13342. echo "$as_me:$LINENO: checking for va_copy" >&5
  13343. echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
  13344. if test "${dpkg_cv_va_copy+set}" = set; then
  13345. echo $ECHO_N "(cached) $ECHO_C" >&6
  13346. else
  13347. if test "$cross_compiling" = yes; then
  13348. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  13349. See \`config.log' for more details." >&5
  13350. echo "$as_me: error: cannot run test program while cross compiling
  13351. See \`config.log' for more details." >&2;}
  13352. { (exit 1); exit 1; }; }
  13353. else
  13354. cat >conftest.$ac_ext <<_ACEOF
  13355. /* confdefs.h. */
  13356. _ACEOF
  13357. cat confdefs.h >>conftest.$ac_ext
  13358. cat >>conftest.$ac_ext <<_ACEOF
  13359. /* end confdefs.h. */
  13360. #include <stdarg.h>
  13361. main() {
  13362. va_list v1, v2;
  13363. va_copy (v1, v2);
  13364. exit (0);
  13365. }
  13366. _ACEOF
  13367. rm -f conftest$ac_exeext
  13368. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13369. (eval $ac_link) 2>&5
  13370. ac_status=$?
  13371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13372. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13374. (eval $ac_try) 2>&5
  13375. ac_status=$?
  13376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13377. (exit $ac_status); }; }; then
  13378. dpkg_cv_va_copy=yes
  13379. else
  13380. echo "$as_me: program exited with status $ac_status" >&5
  13381. echo "$as_me: failed program was:" >&5
  13382. sed 's/^/| /' conftest.$ac_ext >&5
  13383. ( exit $ac_status )
  13384. dpkg_cv_va_copy=no
  13385. fi
  13386. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13387. fi
  13388. fi
  13389. echo "$as_me:$LINENO: result: $dpkg_cv_va_copy" >&5
  13390. echo "${ECHO_T}$dpkg_cv_va_copy" >&6
  13391. if test "x$dpkg_cv_va_copy" = "xyes"; then
  13392. cat >>confdefs.h <<\_ACEOF
  13393. #define HAVE_VA_COPY 1
  13394. _ACEOF
  13395. else
  13396. echo "$as_me:$LINENO: checking for va_list assignment by copy" >&5
  13397. echo $ECHO_N "checking for va_list assignment by copy... $ECHO_C" >&6
  13398. if test "${dpkg_cv_va_list_copy+set}" = set; then
  13399. echo $ECHO_N "(cached) $ECHO_C" >&6
  13400. else
  13401. cat >conftest.$ac_ext <<_ACEOF
  13402. /* confdefs.h. */
  13403. _ACEOF
  13404. cat confdefs.h >>conftest.$ac_ext
  13405. cat >>conftest.$ac_ext <<_ACEOF
  13406. /* end confdefs.h. */
  13407. #include <stdarg.h>
  13408. int
  13409. main ()
  13410. {
  13411. va_list v1, v2;
  13412. v1 = v2;
  13413. ;
  13414. return 0;
  13415. }
  13416. _ACEOF
  13417. rm -f conftest.$ac_objext
  13418. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13419. (eval $ac_compile) 2>conftest.er1
  13420. ac_status=$?
  13421. grep -v '^ *+' conftest.er1 >conftest.err
  13422. rm -f conftest.er1
  13423. cat conftest.err >&5
  13424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13425. (exit $ac_status); } &&
  13426. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13428. (eval $ac_try) 2>&5
  13429. ac_status=$?
  13430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13431. (exit $ac_status); }; } &&
  13432. { ac_try='test -s conftest.$ac_objext'
  13433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13434. (eval $ac_try) 2>&5
  13435. ac_status=$?
  13436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13437. (exit $ac_status); }; }; then
  13438. dpkg_cv_va_list_copy=yes
  13439. else
  13440. echo "$as_me: failed program was:" >&5
  13441. sed 's/^/| /' conftest.$ac_ext >&5
  13442. dpkg_cv_va_list_copy=no
  13443. fi
  13444. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13445. fi
  13446. echo "$as_me:$LINENO: result: $dpkg_cv_va_list_copy" >&5
  13447. echo "${ECHO_T}$dpkg_cv_va_list_copy" >&6
  13448. fi
  13449. for ac_func in vsnprintf snprintf strerror strsignal scandir alphasort
  13450. do
  13451. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13452. echo "$as_me:$LINENO: checking for $ac_func" >&5
  13453. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  13454. if eval "test \"\${$as_ac_var+set}\" = set"; then
  13455. echo $ECHO_N "(cached) $ECHO_C" >&6
  13456. else
  13457. cat >conftest.$ac_ext <<_ACEOF
  13458. /* confdefs.h. */
  13459. _ACEOF
  13460. cat confdefs.h >>conftest.$ac_ext
  13461. cat >>conftest.$ac_ext <<_ACEOF
  13462. /* end confdefs.h. */
  13463. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13464. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13465. #define $ac_func innocuous_$ac_func
  13466. /* System header to define __stub macros and hopefully few prototypes,
  13467. which can conflict with char $ac_func (); below.
  13468. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13469. <limits.h> exists even on freestanding compilers. */
  13470. #ifdef __STDC__
  13471. # include <limits.h>
  13472. #else
  13473. # include <assert.h>
  13474. #endif
  13475. #undef $ac_func
  13476. /* Override any gcc2 internal prototype to avoid an error. */
  13477. #ifdef __cplusplus
  13478. extern "C"
  13479. {
  13480. #endif
  13481. /* We use char because int might match the return type of a gcc2
  13482. builtin and then its argument prototype would still apply. */
  13483. char $ac_func ();
  13484. /* The GNU C library defines this for functions which it implements
  13485. to always fail with ENOSYS. Some functions are actually named
  13486. something starting with __ and the normal name is an alias. */
  13487. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  13488. choke me
  13489. #else
  13490. char (*f) () = $ac_func;
  13491. #endif
  13492. #ifdef __cplusplus
  13493. }
  13494. #endif
  13495. int
  13496. main ()
  13497. {
  13498. return f != $ac_func;
  13499. ;
  13500. return 0;
  13501. }
  13502. _ACEOF
  13503. rm -f conftest.$ac_objext conftest$ac_exeext
  13504. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13505. (eval $ac_link) 2>conftest.er1
  13506. ac_status=$?
  13507. grep -v '^ *+' conftest.er1 >conftest.err
  13508. rm -f conftest.er1
  13509. cat conftest.err >&5
  13510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13511. (exit $ac_status); } &&
  13512. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13514. (eval $ac_try) 2>&5
  13515. ac_status=$?
  13516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13517. (exit $ac_status); }; } &&
  13518. { ac_try='test -s conftest$ac_exeext'
  13519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13520. (eval $ac_try) 2>&5
  13521. ac_status=$?
  13522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13523. (exit $ac_status); }; }; then
  13524. eval "$as_ac_var=yes"
  13525. else
  13526. echo "$as_me: failed program was:" >&5
  13527. sed 's/^/| /' conftest.$ac_ext >&5
  13528. eval "$as_ac_var=no"
  13529. fi
  13530. rm -f conftest.err conftest.$ac_objext \
  13531. conftest$ac_exeext conftest.$ac_ext
  13532. fi
  13533. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  13534. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  13535. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13536. cat >>confdefs.h <<_ACEOF
  13537. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13538. _ACEOF
  13539. fi
  13540. done
  13541. for ac_func in unsetenv lchown setsid bcopy isascii memcpy
  13542. do
  13543. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13544. echo "$as_me:$LINENO: checking for $ac_func" >&5
  13545. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  13546. if eval "test \"\${$as_ac_var+set}\" = set"; then
  13547. echo $ECHO_N "(cached) $ECHO_C" >&6
  13548. else
  13549. cat >conftest.$ac_ext <<_ACEOF
  13550. /* confdefs.h. */
  13551. _ACEOF
  13552. cat confdefs.h >>conftest.$ac_ext
  13553. cat >>conftest.$ac_ext <<_ACEOF
  13554. /* end confdefs.h. */
  13555. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13556. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13557. #define $ac_func innocuous_$ac_func
  13558. /* System header to define __stub macros and hopefully few prototypes,
  13559. which can conflict with char $ac_func (); below.
  13560. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13561. <limits.h> exists even on freestanding compilers. */
  13562. #ifdef __STDC__
  13563. # include <limits.h>
  13564. #else
  13565. # include <assert.h>
  13566. #endif
  13567. #undef $ac_func
  13568. /* Override any gcc2 internal prototype to avoid an error. */
  13569. #ifdef __cplusplus
  13570. extern "C"
  13571. {
  13572. #endif
  13573. /* We use char because int might match the return type of a gcc2
  13574. builtin and then its argument prototype would still apply. */
  13575. char $ac_func ();
  13576. /* The GNU C library defines this for functions which it implements
  13577. to always fail with ENOSYS. Some functions are actually named
  13578. something starting with __ and the normal name is an alias. */
  13579. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  13580. choke me
  13581. #else
  13582. char (*f) () = $ac_func;
  13583. #endif
  13584. #ifdef __cplusplus
  13585. }
  13586. #endif
  13587. int
  13588. main ()
  13589. {
  13590. return f != $ac_func;
  13591. ;
  13592. return 0;
  13593. }
  13594. _ACEOF
  13595. rm -f conftest.$ac_objext conftest$ac_exeext
  13596. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13597. (eval $ac_link) 2>conftest.er1
  13598. ac_status=$?
  13599. grep -v '^ *+' conftest.er1 >conftest.err
  13600. rm -f conftest.er1
  13601. cat conftest.err >&5
  13602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13603. (exit $ac_status); } &&
  13604. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13606. (eval $ac_try) 2>&5
  13607. ac_status=$?
  13608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13609. (exit $ac_status); }; } &&
  13610. { ac_try='test -s conftest$ac_exeext'
  13611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13612. (eval $ac_try) 2>&5
  13613. ac_status=$?
  13614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13615. (exit $ac_status); }; }; then
  13616. eval "$as_ac_var=yes"
  13617. else
  13618. echo "$as_me: failed program was:" >&5
  13619. sed 's/^/| /' conftest.$ac_ext >&5
  13620. eval "$as_ac_var=no"
  13621. fi
  13622. rm -f conftest.err conftest.$ac_objext \
  13623. conftest$ac_exeext conftest.$ac_ext
  13624. fi
  13625. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  13626. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  13627. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13628. cat >>confdefs.h <<_ACEOF
  13629. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13630. _ACEOF
  13631. fi
  13632. done
  13633. # Check whether --enable-compiler-warnings or --disable-compiler-warnings was given.
  13634. if test "${enable_compiler_warnings+set}" = set; then
  13635. enableval="$enable_compiler_warnings"
  13636. if test "x$enable_compiler_warnings" = "xyes"; then
  13637. if test "x$GCC" = "xyes"; then
  13638. CFLAGS="-Wall -Werror $CFLAGS"
  13639. fi
  13640. if test "x$GXX" = "xyes"; then
  13641. CXXFLAGS="-Wall -Werror $CXXFLAGS"
  13642. fi
  13643. fi
  13644. fi;
  13645. # Check whether --enable-compiler-optimisations or --disable-compiler-optimisations was given.
  13646. if test "${enable_compiler_optimisations+set}" = set; then
  13647. enableval="$enable_compiler_optimisations"
  13648. if test "x$enable_compiler_optimisations" = "xno"; then
  13649. CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g"`
  13650. fi
  13651. fi;
  13652. # Check whether --enable-linker-optimisations or --disable-linker-optimisations was given.
  13653. if test "${enable_linker_optimisations+set}" = set; then
  13654. enableval="$enable_linker_optimisations"
  13655. if test "x$enable_linker_optimisations" = "xno"; then
  13656. LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`
  13657. else
  13658. LDFLAGS="$LDFLAGS -Wl,-O1"
  13659. fi
  13660. else
  13661. LDFLAGS="$LDFLAGS -Wl,-O1"
  13662. fi;
  13663. ac_config_files="$ac_config_files Makefile dpkg-deb/Makefile dpkg-split/Makefile dselect/Makefile getopt/Makefile intl/Makefile lib/Makefile man/Makefile man/C/Makefile man/de/Makefile man/es/Makefile man/fr/Makefile man/ja/Makefile man/pt_BR/Makefile man/ru/Makefile man/sv/Makefile methods/Makefile origins/Makefile po/Makefile.in scripts/Makefile src/Makefile utils/Makefile"
  13664. ac_config_headers="$ac_config_headers config.h"
  13665. cat >confcache <<\_ACEOF
  13666. # This file is a shell script that caches the results of configure
  13667. # tests run on this system so they can be shared between configure
  13668. # scripts and configure runs, see configure's option --config-cache.
  13669. # It is not useful on other systems. If it contains results you don't
  13670. # want to keep, you may remove or edit it.
  13671. #
  13672. # config.status only pays attention to the cache file if you give it
  13673. # the --recheck option to rerun configure.
  13674. #
  13675. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13676. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13677. # following values.
  13678. _ACEOF
  13679. # The following way of writing the cache mishandles newlines in values,
  13680. # but we know of no workaround that is simple, portable, and efficient.
  13681. # So, don't put newlines in cache variables' values.
  13682. # Ultrix sh set writes to stderr and can't be redirected directly,
  13683. # and sets the high bit in the cache file unless we assign to the vars.
  13684. {
  13685. (set) 2>&1 |
  13686. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  13687. *ac_space=\ *)
  13688. # `set' does not quote correctly, so add quotes (double-quote
  13689. # substitution turns \\\\ into \\, and sed turns \\ into \).
  13690. sed -n \
  13691. "s/'/'\\\\''/g;
  13692. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13693. ;;
  13694. *)
  13695. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13696. sed -n \
  13697. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  13698. ;;
  13699. esac;
  13700. } |
  13701. sed '
  13702. t clear
  13703. : clear
  13704. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13705. t end
  13706. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13707. : end' >>confcache
  13708. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  13709. if test -w $cache_file; then
  13710. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  13711. cat confcache >$cache_file
  13712. else
  13713. echo "not updating unwritable cache $cache_file"
  13714. fi
  13715. fi
  13716. rm -f confcache
  13717. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13718. # Let make expand exec_prefix.
  13719. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13720. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13721. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13722. # trailing colons and then remove the whole line if VPATH becomes empty
  13723. # (actually we leave an empty line to preserve line numbers).
  13724. if test "x$srcdir" = x.; then
  13725. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13726. s/:*\$(srcdir):*/:/;
  13727. s/:*\${srcdir}:*/:/;
  13728. s/:*@srcdir@:*/:/;
  13729. s/^\([^=]*=[ ]*\):*/\1/;
  13730. s/:*$//;
  13731. s/^[^=]*=[ ]*$//;
  13732. }'
  13733. fi
  13734. DEFS=-DHAVE_CONFIG_H
  13735. ac_libobjs=
  13736. ac_ltlibobjs=
  13737. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13738. # 1. Remove the extension, and $U if already installed.
  13739. ac_i=`echo "$ac_i" |
  13740. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  13741. # 2. Add them.
  13742. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  13743. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  13744. done
  13745. LIBOBJS=$ac_libobjs
  13746. LTLIBOBJS=$ac_ltlibobjs
  13747. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13748. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  13749. Usually this means the macro was only invoked conditionally." >&5
  13750. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  13751. Usually this means the macro was only invoked conditionally." >&2;}
  13752. { (exit 1); exit 1; }; }
  13753. fi
  13754. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13755. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  13756. Usually this means the macro was only invoked conditionally." >&5
  13757. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  13758. Usually this means the macro was only invoked conditionally." >&2;}
  13759. { (exit 1); exit 1; }; }
  13760. fi
  13761. if test -z "${WITH_DSELECT_TRUE}" && test -z "${WITH_DSELECT_FALSE}"; then
  13762. { { echo "$as_me:$LINENO: error: conditional \"WITH_DSELECT\" was never defined.
  13763. Usually this means the macro was only invoked conditionally." >&5
  13764. echo "$as_me: error: conditional \"WITH_DSELECT\" was never defined.
  13765. Usually this means the macro was only invoked conditionally." >&2;}
  13766. { (exit 1); exit 1; }; }
  13767. fi
  13768. if test -z "${WITH_START_STOP_DAEMON_TRUE}" && test -z "${WITH_START_STOP_DAEMON_FALSE}"; then
  13769. { { echo "$as_me:$LINENO: error: conditional \"WITH_START_STOP_DAEMON\" was never defined.
  13770. Usually this means the macro was only invoked conditionally." >&5
  13771. echo "$as_me: error: conditional \"WITH_START_STOP_DAEMON\" was never defined.
  13772. Usually this means the macro was only invoked conditionally." >&2;}
  13773. { (exit 1); exit 1; }; }
  13774. fi
  13775. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13776. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  13777. Usually this means the macro was only invoked conditionally." >&5
  13778. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  13779. Usually this means the macro was only invoked conditionally." >&2;}
  13780. { (exit 1); exit 1; }; }
  13781. fi
  13782. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13783. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  13784. Usually this means the macro was only invoked conditionally." >&5
  13785. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  13786. Usually this means the macro was only invoked conditionally." >&2;}
  13787. { (exit 1); exit 1; }; }
  13788. fi
  13789. : ${CONFIG_STATUS=./config.status}
  13790. ac_clean_files_save=$ac_clean_files
  13791. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13792. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  13793. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13794. cat >$CONFIG_STATUS <<_ACEOF
  13795. #! $SHELL
  13796. # Generated by $as_me.
  13797. # Run this file to recreate the current configuration.
  13798. # Compiler output produced by configure, useful for debugging
  13799. # configure, is in config.log if it exists.
  13800. debug=false
  13801. ac_cs_recheck=false
  13802. ac_cs_silent=false
  13803. SHELL=\${CONFIG_SHELL-$SHELL}
  13804. _ACEOF
  13805. cat >>$CONFIG_STATUS <<\_ACEOF
  13806. ## --------------------- ##
  13807. ## M4sh Initialization. ##
  13808. ## --------------------- ##
  13809. # Be Bourne compatible
  13810. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13811. emulate sh
  13812. NULLCMD=:
  13813. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  13814. # is contrary to our usage. Disable this feature.
  13815. alias -g '${1+"$@"}'='"$@"'
  13816. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  13817. set -o posix
  13818. fi
  13819. DUALCASE=1; export DUALCASE # for MKS sh
  13820. # Support unset when possible.
  13821. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  13822. as_unset=unset
  13823. else
  13824. as_unset=false
  13825. fi
  13826. # Work around bugs in pre-3.0 UWIN ksh.
  13827. $as_unset ENV MAIL MAILPATH
  13828. PS1='$ '
  13829. PS2='> '
  13830. PS4='+ '
  13831. # NLS nuisances.
  13832. for as_var in \
  13833. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  13834. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  13835. LC_TELEPHONE LC_TIME
  13836. do
  13837. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  13838. eval $as_var=C; export $as_var
  13839. else
  13840. $as_unset $as_var
  13841. fi
  13842. done
  13843. # Required to use basename.
  13844. if expr a : '\(a\)' >/dev/null 2>&1; then
  13845. as_expr=expr
  13846. else
  13847. as_expr=false
  13848. fi
  13849. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  13850. as_basename=basename
  13851. else
  13852. as_basename=false
  13853. fi
  13854. # Name of the executable.
  13855. as_me=`$as_basename "$0" ||
  13856. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13857. X"$0" : 'X\(//\)$' \| \
  13858. X"$0" : 'X\(/\)$' \| \
  13859. . : '\(.\)' 2>/dev/null ||
  13860. echo X/"$0" |
  13861. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  13862. /^X\/\(\/\/\)$/{ s//\1/; q; }
  13863. /^X\/\(\/\).*/{ s//\1/; q; }
  13864. s/.*/./; q'`
  13865. # PATH needs CR, and LINENO needs CR and PATH.
  13866. # Avoid depending upon Character Ranges.
  13867. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13868. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13869. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13870. as_cr_digits='0123456789'
  13871. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13872. # The user is always right.
  13873. if test "${PATH_SEPARATOR+set}" != set; then
  13874. echo "#! /bin/sh" >conf$$.sh
  13875. echo "exit 0" >>conf$$.sh
  13876. chmod +x conf$$.sh
  13877. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13878. PATH_SEPARATOR=';'
  13879. else
  13880. PATH_SEPARATOR=:
  13881. fi
  13882. rm -f conf$$.sh
  13883. fi
  13884. as_lineno_1=$LINENO
  13885. as_lineno_2=$LINENO
  13886. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  13887. test "x$as_lineno_1" != "x$as_lineno_2" &&
  13888. test "x$as_lineno_3" = "x$as_lineno_2" || {
  13889. # Find who we are. Look in the path if we contain no path at all
  13890. # relative or not.
  13891. case $0 in
  13892. *[\\/]* ) as_myself=$0 ;;
  13893. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13894. for as_dir in $PATH
  13895. do
  13896. IFS=$as_save_IFS
  13897. test -z "$as_dir" && as_dir=.
  13898. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13899. done
  13900. ;;
  13901. esac
  13902. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13903. # in which case we are not to be found in the path.
  13904. if test "x$as_myself" = x; then
  13905. as_myself=$0
  13906. fi
  13907. if test ! -f "$as_myself"; then
  13908. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  13909. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  13910. { (exit 1); exit 1; }; }
  13911. fi
  13912. case $CONFIG_SHELL in
  13913. '')
  13914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13915. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  13916. do
  13917. IFS=$as_save_IFS
  13918. test -z "$as_dir" && as_dir=.
  13919. for as_base in sh bash ksh sh5; do
  13920. case $as_dir in
  13921. /*)
  13922. if ("$as_dir/$as_base" -c '
  13923. as_lineno_1=$LINENO
  13924. as_lineno_2=$LINENO
  13925. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  13926. test "x$as_lineno_1" != "x$as_lineno_2" &&
  13927. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  13928. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  13929. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  13930. CONFIG_SHELL=$as_dir/$as_base
  13931. export CONFIG_SHELL
  13932. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  13933. fi;;
  13934. esac
  13935. done
  13936. done
  13937. ;;
  13938. esac
  13939. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13940. # uniformly replaced by the line number. The first 'sed' inserts a
  13941. # line-number line before each line; the second 'sed' does the real
  13942. # work. The second script uses 'N' to pair each line-number line
  13943. # with the numbered line, and appends trailing '-' during
  13944. # substitution so that $LINENO is not a special case at line end.
  13945. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  13946. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  13947. sed '=' <$as_myself |
  13948. sed '
  13949. N
  13950. s,$,-,
  13951. : loop
  13952. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  13953. t loop
  13954. s,-$,,
  13955. s,^['$as_cr_digits']*\n,,
  13956. ' >$as_me.lineno &&
  13957. chmod +x $as_me.lineno ||
  13958. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  13959. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  13960. { (exit 1); exit 1; }; }
  13961. # Don't try to exec as it changes $[0], causing all sort of problems
  13962. # (the dirname of $[0] is not the place where we might find the
  13963. # original and so on. Autoconf is especially sensible to this).
  13964. . ./$as_me.lineno
  13965. # Exit status is that of the last command.
  13966. exit
  13967. }
  13968. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  13969. *c*,-n*) ECHO_N= ECHO_C='
  13970. ' ECHO_T=' ' ;;
  13971. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  13972. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  13973. esac
  13974. if expr a : '\(a\)' >/dev/null 2>&1; then
  13975. as_expr=expr
  13976. else
  13977. as_expr=false
  13978. fi
  13979. rm -f conf$$ conf$$.exe conf$$.file
  13980. echo >conf$$.file
  13981. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13982. # We could just check for DJGPP; but this test a) works b) is more generic
  13983. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  13984. if test -f conf$$.exe; then
  13985. # Don't use ln at all; we don't have any links
  13986. as_ln_s='cp -p'
  13987. else
  13988. as_ln_s='ln -s'
  13989. fi
  13990. elif ln conf$$.file conf$$ 2>/dev/null; then
  13991. as_ln_s=ln
  13992. else
  13993. as_ln_s='cp -p'
  13994. fi
  13995. rm -f conf$$ conf$$.exe conf$$.file
  13996. if mkdir -p . 2>/dev/null; then
  13997. as_mkdir_p=:
  13998. else
  13999. test -d ./-p && rmdir ./-p
  14000. as_mkdir_p=false
  14001. fi
  14002. as_executable_p="test -f"
  14003. # Sed expression to map a string onto a valid CPP name.
  14004. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14005. # Sed expression to map a string onto a valid variable name.
  14006. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14007. # IFS
  14008. # We need space, tab and new line, in precisely that order.
  14009. as_nl='
  14010. '
  14011. IFS=" $as_nl"
  14012. # CDPATH.
  14013. $as_unset CDPATH
  14014. exec 6>&1
  14015. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  14016. # report actual input values of CONFIG_FILES etc. instead of their
  14017. # values after options handling. Logging --version etc. is OK.
  14018. exec 5>>config.log
  14019. {
  14020. echo
  14021. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14022. ## Running $as_me. ##
  14023. _ASBOX
  14024. } >&5
  14025. cat >&5 <<_CSEOF
  14026. This file was extended by dpkg $as_me 1.13.1, which was
  14027. generated by GNU Autoconf 2.59. Invocation command line was
  14028. CONFIG_FILES = $CONFIG_FILES
  14029. CONFIG_HEADERS = $CONFIG_HEADERS
  14030. CONFIG_LINKS = $CONFIG_LINKS
  14031. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14032. $ $0 $@
  14033. _CSEOF
  14034. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  14035. echo >&5
  14036. _ACEOF
  14037. # Files that config.status was made for.
  14038. if test -n "$ac_config_files"; then
  14039. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  14040. fi
  14041. if test -n "$ac_config_headers"; then
  14042. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  14043. fi
  14044. if test -n "$ac_config_links"; then
  14045. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  14046. fi
  14047. if test -n "$ac_config_commands"; then
  14048. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  14049. fi
  14050. cat >>$CONFIG_STATUS <<\_ACEOF
  14051. ac_cs_usage="\
  14052. \`$as_me' instantiates files from templates according to the
  14053. current configuration.
  14054. Usage: $0 [OPTIONS] [FILE]...
  14055. -h, --help print this help, then exit
  14056. -V, --version print version number, then exit
  14057. -q, --quiet do not print progress messages
  14058. -d, --debug don't remove temporary files
  14059. --recheck update $as_me by reconfiguring in the same conditions
  14060. --file=FILE[:TEMPLATE]
  14061. instantiate the configuration file FILE
  14062. --header=FILE[:TEMPLATE]
  14063. instantiate the configuration header FILE
  14064. Configuration files:
  14065. $config_files
  14066. Configuration headers:
  14067. $config_headers
  14068. Configuration commands:
  14069. $config_commands
  14070. Report bugs to <bug-autoconf@gnu.org>."
  14071. _ACEOF
  14072. cat >>$CONFIG_STATUS <<_ACEOF
  14073. ac_cs_version="\\
  14074. dpkg config.status 1.13.1
  14075. configured by $0, generated by GNU Autoconf 2.59,
  14076. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  14077. Copyright (C) 2003 Free Software Foundation, Inc.
  14078. This config.status script is free software; the Free Software Foundation
  14079. gives unlimited permission to copy, distribute and modify it."
  14080. srcdir=$srcdir
  14081. INSTALL="$INSTALL"
  14082. _ACEOF
  14083. cat >>$CONFIG_STATUS <<\_ACEOF
  14084. # If no file are specified by the user, then we need to provide default
  14085. # value. By we need to know if files were specified by the user.
  14086. ac_need_defaults=:
  14087. while test $# != 0
  14088. do
  14089. case $1 in
  14090. --*=*)
  14091. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  14092. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  14093. ac_shift=:
  14094. ;;
  14095. -*)
  14096. ac_option=$1
  14097. ac_optarg=$2
  14098. ac_shift=shift
  14099. ;;
  14100. *) # This is not an option, so the user has probably given explicit
  14101. # arguments.
  14102. ac_option=$1
  14103. ac_need_defaults=false;;
  14104. esac
  14105. case $ac_option in
  14106. # Handling of the options.
  14107. _ACEOF
  14108. cat >>$CONFIG_STATUS <<\_ACEOF
  14109. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14110. ac_cs_recheck=: ;;
  14111. --version | --vers* | -V )
  14112. echo "$ac_cs_version"; exit 0 ;;
  14113. --he | --h)
  14114. # Conflict between --help and --header
  14115. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  14116. Try \`$0 --help' for more information." >&5
  14117. echo "$as_me: error: ambiguous option: $1
  14118. Try \`$0 --help' for more information." >&2;}
  14119. { (exit 1); exit 1; }; };;
  14120. --help | --hel | -h )
  14121. echo "$ac_cs_usage"; exit 0 ;;
  14122. --debug | --d* | -d )
  14123. debug=: ;;
  14124. --file | --fil | --fi | --f )
  14125. $ac_shift
  14126. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  14127. ac_need_defaults=false;;
  14128. --header | --heade | --head | --hea )
  14129. $ac_shift
  14130. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  14131. ac_need_defaults=false;;
  14132. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14133. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14134. ac_cs_silent=: ;;
  14135. # This is an error.
  14136. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  14137. Try \`$0 --help' for more information." >&5
  14138. echo "$as_me: error: unrecognized option: $1
  14139. Try \`$0 --help' for more information." >&2;}
  14140. { (exit 1); exit 1; }; } ;;
  14141. *) ac_config_targets="$ac_config_targets $1" ;;
  14142. esac
  14143. shift
  14144. done
  14145. ac_configure_extra_args=
  14146. if $ac_cs_silent; then
  14147. exec 6>/dev/null
  14148. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14149. fi
  14150. _ACEOF
  14151. cat >>$CONFIG_STATUS <<_ACEOF
  14152. if \$ac_cs_recheck; then
  14153. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  14154. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14155. fi
  14156. _ACEOF
  14157. cat >>$CONFIG_STATUS <<_ACEOF
  14158. #
  14159. # INIT-COMMANDS section.
  14160. #
  14161. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14162. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14163. # from automake.
  14164. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14165. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14166. LINGUAS="${LINGUAS-%UNSET%}"
  14167. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14168. _ACEOF
  14169. cat >>$CONFIG_STATUS <<\_ACEOF
  14170. for ac_config_target in $ac_config_targets
  14171. do
  14172. case "$ac_config_target" in
  14173. # Handling of arguments.
  14174. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14175. "dpkg-deb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-deb/Makefile" ;;
  14176. "dpkg-split/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-split/Makefile" ;;
  14177. "dselect/Makefile" ) CONFIG_FILES="$CONFIG_FILES dselect/Makefile" ;;
  14178. "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
  14179. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14180. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14181. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  14182. "man/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/C/Makefile" ;;
  14183. "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
  14184. "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
  14185. "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
  14186. "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
  14187. "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
  14188. "man/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
  14189. "man/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
  14190. "methods/Makefile" ) CONFIG_FILES="$CONFIG_FILES methods/Makefile" ;;
  14191. "origins/Makefile" ) CONFIG_FILES="$CONFIG_FILES origins/Makefile" ;;
  14192. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14193. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  14194. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14195. "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
  14196. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14197. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14198. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14199. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  14200. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  14201. { (exit 1); exit 1; }; };;
  14202. esac
  14203. done
  14204. # If the user did not use the arguments to specify the items to instantiate,
  14205. # then the envvar interface is used. Set only those that are not.
  14206. # We use the long form for the default assignment because of an extremely
  14207. # bizarre bug on SunOS 4.1.3.
  14208. if $ac_need_defaults; then
  14209. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14210. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14211. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14212. fi
  14213. # Have a temporary directory for convenience. Make it in the build tree
  14214. # simply because there is no reason to put it here, and in addition,
  14215. # creating and moving files from /tmp can sometimes cause problems.
  14216. # Create a temporary directory, and hook for its removal unless debugging.
  14217. $debug ||
  14218. {
  14219. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  14220. trap '{ (exit 1); exit 1; }' 1 2 13 15
  14221. }
  14222. # Create a (secure) tmp directory for tmp files.
  14223. {
  14224. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  14225. test -n "$tmp" && test -d "$tmp"
  14226. } ||
  14227. {
  14228. tmp=./confstat$$-$RANDOM
  14229. (umask 077 && mkdir $tmp)
  14230. } ||
  14231. {
  14232. echo "$me: cannot create a temporary directory in ." >&2
  14233. { (exit 1); exit 1; }
  14234. }
  14235. _ACEOF
  14236. cat >>$CONFIG_STATUS <<_ACEOF
  14237. #
  14238. # CONFIG_FILES section.
  14239. #
  14240. # No need to generate the scripts if there are no CONFIG_FILES.
  14241. # This happens for instance when ./config.status config.h
  14242. if test -n "\$CONFIG_FILES"; then
  14243. # Protect against being on the right side of a sed subst in config.status.
  14244. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  14245. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  14246. s,@SHELL@,$SHELL,;t t
  14247. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  14248. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  14249. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  14250. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  14251. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  14252. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  14253. s,@exec_prefix@,$exec_prefix,;t t
  14254. s,@prefix@,$prefix,;t t
  14255. s,@program_transform_name@,$program_transform_name,;t t
  14256. s,@bindir@,$bindir,;t t
  14257. s,@sbindir@,$sbindir,;t t
  14258. s,@libexecdir@,$libexecdir,;t t
  14259. s,@datadir@,$datadir,;t t
  14260. s,@sysconfdir@,$sysconfdir,;t t
  14261. s,@sharedstatedir@,$sharedstatedir,;t t
  14262. s,@localstatedir@,$localstatedir,;t t
  14263. s,@libdir@,$libdir,;t t
  14264. s,@includedir@,$includedir,;t t
  14265. s,@oldincludedir@,$oldincludedir,;t t
  14266. s,@infodir@,$infodir,;t t
  14267. s,@mandir@,$mandir,;t t
  14268. s,@build_alias@,$build_alias,;t t
  14269. s,@host_alias@,$host_alias,;t t
  14270. s,@target_alias@,$target_alias,;t t
  14271. s,@DEFS@,$DEFS,;t t
  14272. s,@ECHO_C@,$ECHO_C,;t t
  14273. s,@ECHO_N@,$ECHO_N,;t t
  14274. s,@ECHO_T@,$ECHO_T,;t t
  14275. s,@LIBS@,$LIBS,;t t
  14276. s,@build@,$build,;t t
  14277. s,@build_cpu@,$build_cpu,;t t
  14278. s,@build_vendor@,$build_vendor,;t t
  14279. s,@build_os@,$build_os,;t t
  14280. s,@host@,$host,;t t
  14281. s,@host_cpu@,$host_cpu,;t t
  14282. s,@host_vendor@,$host_vendor,;t t
  14283. s,@host_os@,$host_os,;t t
  14284. s,@target@,$target,;t t
  14285. s,@target_cpu@,$target_cpu,;t t
  14286. s,@target_vendor@,$target_vendor,;t t
  14287. s,@target_os@,$target_os,;t t
  14288. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  14289. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  14290. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  14291. s,@CYGPATH_W@,$CYGPATH_W,;t t
  14292. s,@PACKAGE@,$PACKAGE,;t t
  14293. s,@VERSION@,$VERSION,;t t
  14294. s,@ACLOCAL@,$ACLOCAL,;t t
  14295. s,@AUTOCONF@,$AUTOCONF,;t t
  14296. s,@AUTOMAKE@,$AUTOMAKE,;t t
  14297. s,@AUTOHEADER@,$AUTOHEADER,;t t
  14298. s,@MAKEINFO@,$MAKEINFO,;t t
  14299. s,@AMTAR@,$AMTAR,;t t
  14300. s,@install_sh@,$install_sh,;t t
  14301. s,@STRIP@,$STRIP,;t t
  14302. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  14303. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  14304. s,@mkdir_p@,$mkdir_p,;t t
  14305. s,@AWK@,$AWK,;t t
  14306. s,@SET_MAKE@,$SET_MAKE,;t t
  14307. s,@am__leading_dot@,$am__leading_dot,;t t
  14308. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  14309. s,@USE_NLS@,$USE_NLS,;t t
  14310. s,@MSGFMT@,$MSGFMT,;t t
  14311. s,@GMSGFMT@,$GMSGFMT,;t t
  14312. s,@XGETTEXT@,$XGETTEXT,;t t
  14313. s,@MSGMERGE@,$MSGMERGE,;t t
  14314. s,@CC@,$CC,;t t
  14315. s,@CFLAGS@,$CFLAGS,;t t
  14316. s,@LDFLAGS@,$LDFLAGS,;t t
  14317. s,@CPPFLAGS@,$CPPFLAGS,;t t
  14318. s,@ac_ct_CC@,$ac_ct_CC,;t t
  14319. s,@EXEEXT@,$EXEEXT,;t t
  14320. s,@OBJEXT@,$OBJEXT,;t t
  14321. s,@DEPDIR@,$DEPDIR,;t t
  14322. s,@am__include@,$am__include,;t t
  14323. s,@am__quote@,$am__quote,;t t
  14324. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  14325. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  14326. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  14327. s,@CCDEPMODE@,$CCDEPMODE,;t t
  14328. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  14329. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  14330. s,@RANLIB@,$RANLIB,;t t
  14331. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  14332. s,@CPP@,$CPP,;t t
  14333. s,@EGREP@,$EGREP,;t t
  14334. s,@ALLOCA@,$ALLOCA,;t t
  14335. s,@GLIBC21@,$GLIBC21,;t t
  14336. s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
  14337. s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
  14338. s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
  14339. s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
  14340. s,@LIBICONV@,$LIBICONV,;t t
  14341. s,@LTLIBICONV@,$LTLIBICONV,;t t
  14342. s,@INTLBISON@,$INTLBISON,;t t
  14343. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  14344. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  14345. s,@CATOBJEXT@,$CATOBJEXT,;t t
  14346. s,@DATADIRNAME@,$DATADIRNAME,;t t
  14347. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  14348. s,@GENCAT@,$GENCAT,;t t
  14349. s,@INTLOBJS@,$INTLOBJS,;t t
  14350. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  14351. s,@INTLLIBS@,$INTLLIBS,;t t
  14352. s,@LIBINTL@,$LIBINTL,;t t
  14353. s,@LTLIBINTL@,$LTLIBINTL,;t t
  14354. s,@POSUB@,$POSUB,;t t
  14355. s,@WITH_DSELECT_TRUE@,$WITH_DSELECT_TRUE,;t t
  14356. s,@WITH_DSELECT_FALSE@,$WITH_DSELECT_FALSE,;t t
  14357. s,@WITH_START_STOP_DAEMON_TRUE@,$WITH_START_STOP_DAEMON_TRUE,;t t
  14358. s,@WITH_START_STOP_DAEMON_FALSE@,$WITH_START_STOP_DAEMON_FALSE,;t t
  14359. s,@admindir@,$admindir,;t t
  14360. s,@CXX@,$CXX,;t t
  14361. s,@CXXFLAGS@,$CXXFLAGS,;t t
  14362. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  14363. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  14364. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  14365. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  14366. s,@PERL@,$PERL,;t t
  14367. s,@ZLIB_CFLAGS@,$ZLIB_CFLAGS,;t t
  14368. s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
  14369. s,@BZ2_CFLAGS@,$BZ2_CFLAGS,;t t
  14370. s,@BZ2_LIBS@,$BZ2_LIBS,;t t
  14371. s,@CURSES_LIBS@,$CURSES_LIBS,;t t
  14372. s,@SSD_LIBS@,$SSD_LIBS,;t t
  14373. s,@LIBOBJS@,$LIBOBJS,;t t
  14374. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  14375. CEOF
  14376. _ACEOF
  14377. cat >>$CONFIG_STATUS <<\_ACEOF
  14378. # Split the substitutions into bite-sized pieces for seds with
  14379. # small command number limits, like on Digital OSF/1 and HP-UX.
  14380. ac_max_sed_lines=48
  14381. ac_sed_frag=1 # Number of current file.
  14382. ac_beg=1 # First line for current file.
  14383. ac_end=$ac_max_sed_lines # Line after last line for current file.
  14384. ac_more_lines=:
  14385. ac_sed_cmds=
  14386. while $ac_more_lines; do
  14387. if test $ac_beg -gt 1; then
  14388. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  14389. else
  14390. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  14391. fi
  14392. if test ! -s $tmp/subs.frag; then
  14393. ac_more_lines=false
  14394. else
  14395. # The purpose of the label and of the branching condition is to
  14396. # speed up the sed processing (if there are no `@' at all, there
  14397. # is no need to browse any of the substitutions).
  14398. # These are the two extra sed commands mentioned above.
  14399. (echo ':t
  14400. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  14401. if test -z "$ac_sed_cmds"; then
  14402. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  14403. else
  14404. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  14405. fi
  14406. ac_sed_frag=`expr $ac_sed_frag + 1`
  14407. ac_beg=$ac_end
  14408. ac_end=`expr $ac_end + $ac_max_sed_lines`
  14409. fi
  14410. done
  14411. if test -z "$ac_sed_cmds"; then
  14412. ac_sed_cmds=cat
  14413. fi
  14414. fi # test -n "$CONFIG_FILES"
  14415. _ACEOF
  14416. cat >>$CONFIG_STATUS <<\_ACEOF
  14417. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  14418. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  14419. case $ac_file in
  14420. - | *:- | *:-:* ) # input from stdin
  14421. cat >$tmp/stdin
  14422. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14423. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14424. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14425. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14426. * ) ac_file_in=$ac_file.in ;;
  14427. esac
  14428. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  14429. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  14430. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14431. X"$ac_file" : 'X\(//\)[^/]' \| \
  14432. X"$ac_file" : 'X\(//\)$' \| \
  14433. X"$ac_file" : 'X\(/\)' \| \
  14434. . : '\(.\)' 2>/dev/null ||
  14435. echo X"$ac_file" |
  14436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14437. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14438. /^X\(\/\/\)$/{ s//\1/; q; }
  14439. /^X\(\/\).*/{ s//\1/; q; }
  14440. s/.*/./; q'`
  14441. { if $as_mkdir_p; then
  14442. mkdir -p "$ac_dir"
  14443. else
  14444. as_dir="$ac_dir"
  14445. as_dirs=
  14446. while test ! -d "$as_dir"; do
  14447. as_dirs="$as_dir $as_dirs"
  14448. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  14449. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14450. X"$as_dir" : 'X\(//\)[^/]' \| \
  14451. X"$as_dir" : 'X\(//\)$' \| \
  14452. X"$as_dir" : 'X\(/\)' \| \
  14453. . : '\(.\)' 2>/dev/null ||
  14454. echo X"$as_dir" |
  14455. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14456. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14457. /^X\(\/\/\)$/{ s//\1/; q; }
  14458. /^X\(\/\).*/{ s//\1/; q; }
  14459. s/.*/./; q'`
  14460. done
  14461. test ! -n "$as_dirs" || mkdir $as_dirs
  14462. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  14463. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  14464. { (exit 1); exit 1; }; }; }
  14465. ac_builddir=.
  14466. if test "$ac_dir" != .; then
  14467. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  14468. # A "../" for each directory in $ac_dir_suffix.
  14469. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  14470. else
  14471. ac_dir_suffix= ac_top_builddir=
  14472. fi
  14473. case $srcdir in
  14474. .) # No --srcdir option. We are building in place.
  14475. ac_srcdir=.
  14476. if test -z "$ac_top_builddir"; then
  14477. ac_top_srcdir=.
  14478. else
  14479. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  14480. fi ;;
  14481. [\\/]* | ?:[\\/]* ) # Absolute path.
  14482. ac_srcdir=$srcdir$ac_dir_suffix;
  14483. ac_top_srcdir=$srcdir ;;
  14484. *) # Relative path.
  14485. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  14486. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  14487. esac
  14488. # Do not use `cd foo && pwd` to compute absolute paths, because
  14489. # the directories may not exist.
  14490. case `pwd` in
  14491. .) ac_abs_builddir="$ac_dir";;
  14492. *)
  14493. case "$ac_dir" in
  14494. .) ac_abs_builddir=`pwd`;;
  14495. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  14496. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  14497. esac;;
  14498. esac
  14499. case $ac_abs_builddir in
  14500. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  14501. *)
  14502. case ${ac_top_builddir}. in
  14503. .) ac_abs_top_builddir=$ac_abs_builddir;;
  14504. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  14505. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  14506. esac;;
  14507. esac
  14508. case $ac_abs_builddir in
  14509. .) ac_abs_srcdir=$ac_srcdir;;
  14510. *)
  14511. case $ac_srcdir in
  14512. .) ac_abs_srcdir=$ac_abs_builddir;;
  14513. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  14514. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  14515. esac;;
  14516. esac
  14517. case $ac_abs_builddir in
  14518. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  14519. *)
  14520. case $ac_top_srcdir in
  14521. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  14522. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  14523. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  14524. esac;;
  14525. esac
  14526. case $INSTALL in
  14527. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14528. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  14529. esac
  14530. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14531. # use $as_me), people would be surprised to read:
  14532. # /* config.h. Generated by config.status. */
  14533. if test x"$ac_file" = x-; then
  14534. configure_input=
  14535. else
  14536. configure_input="$ac_file. "
  14537. fi
  14538. configure_input=$configure_input"Generated from `echo $ac_file_in |
  14539. sed 's,.*/,,'` by configure."
  14540. # First look for the input files in the build tree, otherwise in the
  14541. # src tree.
  14542. ac_file_inputs=`IFS=:
  14543. for f in $ac_file_in; do
  14544. case $f in
  14545. -) echo $tmp/stdin ;;
  14546. [\\/$]*)
  14547. # Absolute (can't be DOS-style, as IFS=:)
  14548. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14549. echo "$as_me: error: cannot find input file: $f" >&2;}
  14550. { (exit 1); exit 1; }; }
  14551. echo "$f";;
  14552. *) # Relative
  14553. if test -f "$f"; then
  14554. # Build tree
  14555. echo "$f"
  14556. elif test -f "$srcdir/$f"; then
  14557. # Source tree
  14558. echo "$srcdir/$f"
  14559. else
  14560. # /dev/null tree
  14561. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14562. echo "$as_me: error: cannot find input file: $f" >&2;}
  14563. { (exit 1); exit 1; }; }
  14564. fi;;
  14565. esac
  14566. done` || { (exit 1); exit 1; }
  14567. if test x"$ac_file" != x-; then
  14568. { echo "$as_me:$LINENO: creating $ac_file" >&5
  14569. echo "$as_me: creating $ac_file" >&6;}
  14570. rm -f "$ac_file"
  14571. fi
  14572. _ACEOF
  14573. cat >>$CONFIG_STATUS <<_ACEOF
  14574. sed "$ac_vpsub
  14575. $extrasub
  14576. _ACEOF
  14577. cat >>$CONFIG_STATUS <<\_ACEOF
  14578. :t
  14579. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14580. s,@configure_input@,$configure_input,;t t
  14581. s,@srcdir@,$ac_srcdir,;t t
  14582. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  14583. s,@top_srcdir@,$ac_top_srcdir,;t t
  14584. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  14585. s,@builddir@,$ac_builddir,;t t
  14586. s,@abs_builddir@,$ac_abs_builddir,;t t
  14587. s,@top_builddir@,$ac_top_builddir,;t t
  14588. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  14589. s,@INSTALL@,$ac_INSTALL,;t t
  14590. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  14591. rm -f $tmp/stdin
  14592. if test x"$ac_file" != x-; then
  14593. mv $tmp/out $ac_file
  14594. else
  14595. cat $tmp/out
  14596. rm -f $tmp/out
  14597. fi
  14598. done
  14599. _ACEOF
  14600. cat >>$CONFIG_STATUS <<\_ACEOF
  14601. #
  14602. # CONFIG_HEADER section.
  14603. #
  14604. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  14605. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  14606. #
  14607. # ac_d sets the value in "#define NAME VALUE" lines.
  14608. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  14609. ac_dB='[ ].*$,\1#\2'
  14610. ac_dC=' '
  14611. ac_dD=',;t'
  14612. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  14613. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  14614. ac_uB='$,\1#\2define\3'
  14615. ac_uC=' '
  14616. ac_uD=',;t'
  14617. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  14618. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  14619. case $ac_file in
  14620. - | *:- | *:-:* ) # input from stdin
  14621. cat >$tmp/stdin
  14622. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14623. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14624. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14625. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  14626. * ) ac_file_in=$ac_file.in ;;
  14627. esac
  14628. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  14629. echo "$as_me: creating $ac_file" >&6;}
  14630. # First look for the input files in the build tree, otherwise in the
  14631. # src tree.
  14632. ac_file_inputs=`IFS=:
  14633. for f in $ac_file_in; do
  14634. case $f in
  14635. -) echo $tmp/stdin ;;
  14636. [\\/$]*)
  14637. # Absolute (can't be DOS-style, as IFS=:)
  14638. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14639. echo "$as_me: error: cannot find input file: $f" >&2;}
  14640. { (exit 1); exit 1; }; }
  14641. # Do quote $f, to prevent DOS paths from being IFS'd.
  14642. echo "$f";;
  14643. *) # Relative
  14644. if test -f "$f"; then
  14645. # Build tree
  14646. echo "$f"
  14647. elif test -f "$srcdir/$f"; then
  14648. # Source tree
  14649. echo "$srcdir/$f"
  14650. else
  14651. # /dev/null tree
  14652. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  14653. echo "$as_me: error: cannot find input file: $f" >&2;}
  14654. { (exit 1); exit 1; }; }
  14655. fi;;
  14656. esac
  14657. done` || { (exit 1); exit 1; }
  14658. # Remove the trailing spaces.
  14659. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  14660. _ACEOF
  14661. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  14662. # `conftest.undefs', that substitutes the proper values into
  14663. # config.h.in to produce config.h. The first handles `#define'
  14664. # templates, and the second `#undef' templates.
  14665. # And first: Protect against being on the right side of a sed subst in
  14666. # config.status. Protect against being in an unquoted here document
  14667. # in config.status.
  14668. rm -f conftest.defines conftest.undefs
  14669. # Using a here document instead of a string reduces the quoting nightmare.
  14670. # Putting comments in sed scripts is not portable.
  14671. #
  14672. # `end' is used to avoid that the second main sed command (meant for
  14673. # 0-ary CPP macros) applies to n-ary macro definitions.
  14674. # See the Autoconf documentation for `clear'.
  14675. cat >confdef2sed.sed <<\_ACEOF
  14676. s/[\\&,]/\\&/g
  14677. s,[\\$`],\\&,g
  14678. t clear
  14679. : clear
  14680. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  14681. t end
  14682. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  14683. : end
  14684. _ACEOF
  14685. # If some macros were called several times there might be several times
  14686. # the same #defines, which is useless. Nevertheless, we may not want to
  14687. # sort them, since we want the *last* AC-DEFINE to be honored.
  14688. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  14689. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  14690. rm -f confdef2sed.sed
  14691. # This sed command replaces #undef with comments. This is necessary, for
  14692. # example, in the case of _POSIX_SOURCE, which is predefined and required
  14693. # on some systems where configure will not decide to define it.
  14694. cat >>conftest.undefs <<\_ACEOF
  14695. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  14696. _ACEOF
  14697. # Break up conftest.defines because some shells have a limit on the size
  14698. # of here documents, and old seds have small limits too (100 cmds).
  14699. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  14700. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  14701. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  14702. echo ' :' >>$CONFIG_STATUS
  14703. rm -f conftest.tail
  14704. while grep . conftest.defines >/dev/null
  14705. do
  14706. # Write a limited-size here document to $tmp/defines.sed.
  14707. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  14708. # Speed up: don't consider the non `#define' lines.
  14709. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  14710. # Work around the forget-to-reset-the-flag bug.
  14711. echo 't clr' >>$CONFIG_STATUS
  14712. echo ': clr' >>$CONFIG_STATUS
  14713. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  14714. echo 'CEOF
  14715. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  14716. rm -f $tmp/in
  14717. mv $tmp/out $tmp/in
  14718. ' >>$CONFIG_STATUS
  14719. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  14720. rm -f conftest.defines
  14721. mv conftest.tail conftest.defines
  14722. done
  14723. rm -f conftest.defines
  14724. echo ' fi # grep' >>$CONFIG_STATUS
  14725. echo >>$CONFIG_STATUS
  14726. # Break up conftest.undefs because some shells have a limit on the size
  14727. # of here documents, and old seds have small limits too (100 cmds).
  14728. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  14729. rm -f conftest.tail
  14730. while grep . conftest.undefs >/dev/null
  14731. do
  14732. # Write a limited-size here document to $tmp/undefs.sed.
  14733. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  14734. # Speed up: don't consider the non `#undef'
  14735. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  14736. # Work around the forget-to-reset-the-flag bug.
  14737. echo 't clr' >>$CONFIG_STATUS
  14738. echo ': clr' >>$CONFIG_STATUS
  14739. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  14740. echo 'CEOF
  14741. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  14742. rm -f $tmp/in
  14743. mv $tmp/out $tmp/in
  14744. ' >>$CONFIG_STATUS
  14745. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  14746. rm -f conftest.undefs
  14747. mv conftest.tail conftest.undefs
  14748. done
  14749. rm -f conftest.undefs
  14750. cat >>$CONFIG_STATUS <<\_ACEOF
  14751. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14752. # use $as_me), people would be surprised to read:
  14753. # /* config.h. Generated by config.status. */
  14754. if test x"$ac_file" = x-; then
  14755. echo "/* Generated by configure. */" >$tmp/config.h
  14756. else
  14757. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  14758. fi
  14759. cat $tmp/in >>$tmp/config.h
  14760. rm -f $tmp/in
  14761. if test x"$ac_file" != x-; then
  14762. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  14763. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  14764. echo "$as_me: $ac_file is unchanged" >&6;}
  14765. else
  14766. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  14767. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14768. X"$ac_file" : 'X\(//\)[^/]' \| \
  14769. X"$ac_file" : 'X\(//\)$' \| \
  14770. X"$ac_file" : 'X\(/\)' \| \
  14771. . : '\(.\)' 2>/dev/null ||
  14772. echo X"$ac_file" |
  14773. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14774. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14775. /^X\(\/\/\)$/{ s//\1/; q; }
  14776. /^X\(\/\).*/{ s//\1/; q; }
  14777. s/.*/./; q'`
  14778. { if $as_mkdir_p; then
  14779. mkdir -p "$ac_dir"
  14780. else
  14781. as_dir="$ac_dir"
  14782. as_dirs=
  14783. while test ! -d "$as_dir"; do
  14784. as_dirs="$as_dir $as_dirs"
  14785. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  14786. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14787. X"$as_dir" : 'X\(//\)[^/]' \| \
  14788. X"$as_dir" : 'X\(//\)$' \| \
  14789. X"$as_dir" : 'X\(/\)' \| \
  14790. . : '\(.\)' 2>/dev/null ||
  14791. echo X"$as_dir" |
  14792. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14793. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14794. /^X\(\/\/\)$/{ s//\1/; q; }
  14795. /^X\(\/\).*/{ s//\1/; q; }
  14796. s/.*/./; q'`
  14797. done
  14798. test ! -n "$as_dirs" || mkdir $as_dirs
  14799. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  14800. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  14801. { (exit 1); exit 1; }; }; }
  14802. rm -f $ac_file
  14803. mv $tmp/config.h $ac_file
  14804. fi
  14805. else
  14806. cat $tmp/config.h
  14807. rm -f $tmp/config.h
  14808. fi
  14809. # Compute $ac_file's index in $config_headers.
  14810. _am_stamp_count=1
  14811. for _am_header in $config_headers :; do
  14812. case $_am_header in
  14813. $ac_file | $ac_file:* )
  14814. break ;;
  14815. * )
  14816. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14817. esac
  14818. done
  14819. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  14820. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14821. X$ac_file : 'X\(//\)[^/]' \| \
  14822. X$ac_file : 'X\(//\)$' \| \
  14823. X$ac_file : 'X\(/\)' \| \
  14824. . : '\(.\)' 2>/dev/null ||
  14825. echo X$ac_file |
  14826. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14827. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14828. /^X\(\/\/\)$/{ s//\1/; q; }
  14829. /^X\(\/\).*/{ s//\1/; q; }
  14830. s/.*/./; q'`/stamp-h$_am_stamp_count
  14831. done
  14832. _ACEOF
  14833. cat >>$CONFIG_STATUS <<\_ACEOF
  14834. #
  14835. # CONFIG_COMMANDS section.
  14836. #
  14837. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  14838. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  14839. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  14840. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  14841. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14842. X"$ac_dest" : 'X\(//\)[^/]' \| \
  14843. X"$ac_dest" : 'X\(//\)$' \| \
  14844. X"$ac_dest" : 'X\(/\)' \| \
  14845. . : '\(.\)' 2>/dev/null ||
  14846. echo X"$ac_dest" |
  14847. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14848. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14849. /^X\(\/\/\)$/{ s//\1/; q; }
  14850. /^X\(\/\).*/{ s//\1/; q; }
  14851. s/.*/./; q'`
  14852. { if $as_mkdir_p; then
  14853. mkdir -p "$ac_dir"
  14854. else
  14855. as_dir="$ac_dir"
  14856. as_dirs=
  14857. while test ! -d "$as_dir"; do
  14858. as_dirs="$as_dir $as_dirs"
  14859. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  14860. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14861. X"$as_dir" : 'X\(//\)[^/]' \| \
  14862. X"$as_dir" : 'X\(//\)$' \| \
  14863. X"$as_dir" : 'X\(/\)' \| \
  14864. . : '\(.\)' 2>/dev/null ||
  14865. echo X"$as_dir" |
  14866. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  14867. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  14868. /^X\(\/\/\)$/{ s//\1/; q; }
  14869. /^X\(\/\).*/{ s//\1/; q; }
  14870. s/.*/./; q'`
  14871. done
  14872. test ! -n "$as_dirs" || mkdir $as_dirs
  14873. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  14874. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  14875. { (exit 1); exit 1; }; }; }
  14876. ac_builddir=.
  14877. if test "$ac_dir" != .; then
  14878. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  14879. # A "../" for each directory in $ac_dir_suffix.
  14880. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  14881. else
  14882. ac_dir_suffix= ac_top_builddir=
  14883. fi
  14884. case $srcdir in
  14885. .) # No --srcdir option. We are building in place.
  14886. ac_srcdir=.
  14887. if test -z "$ac_top_builddir"; then
  14888. ac_top_srcdir=.
  14889. else
  14890. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  14891. fi ;;
  14892. [\\/]* | ?:[\\/]* ) # Absolute path.
  14893. ac_srcdir=$srcdir$ac_dir_suffix;
  14894. ac_top_srcdir=$srcdir ;;
  14895. *) # Relative path.
  14896. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  14897. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  14898. esac
  14899. # Do not use `cd foo && pwd` to compute absolute paths, because
  14900. # the directories may not exist.
  14901. case `pwd` in
  14902. .) ac_abs_builddir="$ac_dir";;
  14903. *)
  14904. case "$ac_dir" in
  14905. .) ac_abs_builddir=`pwd`;;
  14906. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  14907. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  14908. esac;;
  14909. esac
  14910. case $ac_abs_builddir in
  14911. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  14912. *)
  14913. case ${ac_top_builddir}. in
  14914. .) ac_abs_top_builddir=$ac_abs_builddir;;
  14915. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  14916. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  14917. esac;;
  14918. esac
  14919. case $ac_abs_builddir in
  14920. .) ac_abs_srcdir=$ac_srcdir;;
  14921. *)
  14922. case $ac_srcdir in
  14923. .) ac_abs_srcdir=$ac_abs_builddir;;
  14924. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  14925. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  14926. esac;;
  14927. esac
  14928. case $ac_abs_builddir in
  14929. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  14930. *)
  14931. case $ac_top_srcdir in
  14932. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  14933. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  14934. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  14935. esac;;
  14936. esac
  14937. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  14938. echo "$as_me: executing $ac_dest commands" >&6;}
  14939. case $ac_dest in
  14940. default-1 )
  14941. for ac_file in $CONFIG_FILES; do
  14942. # Support "outfile[:infile[:infile...]]"
  14943. case "$ac_file" in
  14944. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14945. esac
  14946. # PO directories have a Makefile.in generated from Makefile.in.in.
  14947. case "$ac_file" in */Makefile.in)
  14948. # Adjust a relative srcdir.
  14949. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14950. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14951. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14952. # In autoconf-2.13 it is called $ac_given_srcdir.
  14953. # In autoconf-2.50 it is called $srcdir.
  14954. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14955. case "$ac_given_srcdir" in
  14956. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14957. /*) top_srcdir="$ac_given_srcdir" ;;
  14958. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14959. esac
  14960. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14961. rm -f "$ac_dir/POTFILES"
  14962. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14963. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14964. POMAKEFILEDEPS="POTFILES.in"
  14965. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14966. # on $ac_dir but don't depend on user-specified configuration
  14967. # parameters.
  14968. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14969. # The LINGUAS file contains the set of available languages.
  14970. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14971. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14972. fi
  14973. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14974. # Hide the ALL_LINGUAS assigment from automake.
  14975. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14976. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14977. else
  14978. # The set of available languages was given in configure.in.
  14979. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14980. fi
  14981. # Compute POFILES
  14982. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14983. # Compute UPDATEPOFILES
  14984. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14985. # Compute DUMMYPOFILES
  14986. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14987. # Compute GMOFILES
  14988. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14989. case "$ac_given_srcdir" in
  14990. .) srcdirpre= ;;
  14991. *) srcdirpre='$(srcdir)/' ;;
  14992. esac
  14993. POFILES=
  14994. UPDATEPOFILES=
  14995. DUMMYPOFILES=
  14996. GMOFILES=
  14997. for lang in $ALL_LINGUAS; do
  14998. POFILES="$POFILES $srcdirpre$lang.po"
  14999. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15000. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15001. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15002. done
  15003. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15004. # environment variable.
  15005. INST_LINGUAS=
  15006. if test -n "$ALL_LINGUAS"; then
  15007. for presentlang in $ALL_LINGUAS; do
  15008. useit=no
  15009. if test "%UNSET%" != "$LINGUAS"; then
  15010. desiredlanguages="$LINGUAS"
  15011. else
  15012. desiredlanguages="$ALL_LINGUAS"
  15013. fi
  15014. for desiredlang in $desiredlanguages; do
  15015. # Use the presentlang catalog if desiredlang is
  15016. # a. equal to presentlang, or
  15017. # b. a variant of presentlang (because in this case,
  15018. # presentlang can be used as a fallback for messages
  15019. # which are not translated in the desiredlang catalog).
  15020. case "$desiredlang" in
  15021. "$presentlang"*) useit=yes;;
  15022. esac
  15023. done
  15024. if test $useit = yes; then
  15025. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15026. fi
  15027. done
  15028. fi
  15029. CATALOGS=
  15030. if test -n "$INST_LINGUAS"; then
  15031. for lang in $INST_LINGUAS; do
  15032. CATALOGS="$CATALOGS $lang.gmo"
  15033. done
  15034. fi
  15035. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15036. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  15037. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15038. if test -f "$f"; then
  15039. case "$f" in
  15040. *.orig | *.bak | *~) ;;
  15041. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15042. esac
  15043. fi
  15044. done
  15045. fi
  15046. ;;
  15047. esac
  15048. done ;;
  15049. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  15050. # Strip MF so we end up with the name of the file.
  15051. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15052. # Check whether this is an Automake generated Makefile or not.
  15053. # We used to match only the files named `Makefile.in', but
  15054. # some people rename them; so instead we look at the file content.
  15055. # Grep'ing the first line is not enough: some people post-process
  15056. # each Makefile.in and add a new line on top of each file to say so.
  15057. # So let's grep whole file.
  15058. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  15059. dirpart=`(dirname "$mf") 2>/dev/null ||
  15060. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15061. X"$mf" : 'X\(//\)[^/]' \| \
  15062. X"$mf" : 'X\(//\)$' \| \
  15063. X"$mf" : 'X\(/\)' \| \
  15064. . : '\(.\)' 2>/dev/null ||
  15065. echo X"$mf" |
  15066. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15067. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15068. /^X\(\/\/\)$/{ s//\1/; q; }
  15069. /^X\(\/\).*/{ s//\1/; q; }
  15070. s/.*/./; q'`
  15071. else
  15072. continue
  15073. fi
  15074. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  15075. # Extract the definition of DEP_FILES from the Makefile without
  15076. # running `make'.
  15077. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15078. test -z "$DEPDIR" && continue
  15079. # When using ansi2knr, U may be empty or an underscore; expand it
  15080. U=`sed -n 's/^U = //p' < "$mf"`
  15081. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  15082. # We invoke sed twice because it is the simplest approach to
  15083. # changing $(DEPDIR) to its actual value in the expansion.
  15084. for file in `sed -n '
  15085. /^DEP_FILES = .*\\\\$/ {
  15086. s/^DEP_FILES = //
  15087. :loop
  15088. s/\\\\$//
  15089. p
  15090. n
  15091. /\\\\$/ b loop
  15092. p
  15093. }
  15094. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  15095. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15096. # Make sure the directory exists.
  15097. test -f "$dirpart/$file" && continue
  15098. fdir=`(dirname "$file") 2>/dev/null ||
  15099. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15100. X"$file" : 'X\(//\)[^/]' \| \
  15101. X"$file" : 'X\(//\)$' \| \
  15102. X"$file" : 'X\(/\)' \| \
  15103. . : '\(.\)' 2>/dev/null ||
  15104. echo X"$file" |
  15105. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15106. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15107. /^X\(\/\/\)$/{ s//\1/; q; }
  15108. /^X\(\/\).*/{ s//\1/; q; }
  15109. s/.*/./; q'`
  15110. { if $as_mkdir_p; then
  15111. mkdir -p $dirpart/$fdir
  15112. else
  15113. as_dir=$dirpart/$fdir
  15114. as_dirs=
  15115. while test ! -d "$as_dir"; do
  15116. as_dirs="$as_dir $as_dirs"
  15117. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  15118. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15119. X"$as_dir" : 'X\(//\)[^/]' \| \
  15120. X"$as_dir" : 'X\(//\)$' \| \
  15121. X"$as_dir" : 'X\(/\)' \| \
  15122. . : '\(.\)' 2>/dev/null ||
  15123. echo X"$as_dir" |
  15124. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15125. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15126. /^X\(\/\/\)$/{ s//\1/; q; }
  15127. /^X\(\/\).*/{ s//\1/; q; }
  15128. s/.*/./; q'`
  15129. done
  15130. test ! -n "$as_dirs" || mkdir $as_dirs
  15131. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  15132. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  15133. { (exit 1); exit 1; }; }; }
  15134. # echo "creating $dirpart/$file"
  15135. echo '# dummy' > "$dirpart/$file"
  15136. done
  15137. done
  15138. ;;
  15139. esac
  15140. done
  15141. _ACEOF
  15142. cat >>$CONFIG_STATUS <<\_ACEOF
  15143. { (exit 0); exit 0; }
  15144. _ACEOF
  15145. chmod +x $CONFIG_STATUS
  15146. ac_clean_files=$ac_clean_files_save
  15147. # configure is writing to config.log, and then calls config.status.
  15148. # config.status does its own redirection, appending to config.log.
  15149. # Unfortunately, on DOS this fails, as config.log is still kept open
  15150. # by configure, so config.status won't be able to write to it; its
  15151. # output is simply discarded. So we exec the FD to /dev/null,
  15152. # effectively closing config.log, so it can be properly (re)opened and
  15153. # appended to by config.status. When coming back to configure, we
  15154. # need to make the FD available again.
  15155. if test "$no_create" != yes; then
  15156. ac_cs_success=:
  15157. ac_config_status_args=
  15158. test "$silent" = yes &&
  15159. ac_config_status_args="$ac_config_status_args --quiet"
  15160. exec 5>/dev/null
  15161. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15162. exec 5>>config.log
  15163. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15164. # would make configure fail if this is the last instruction.
  15165. $ac_cs_success || { (exit 1); exit 1; }
  15166. fi