configure 202 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="VERSION"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_header_list=
  573. ac_subst_vars='LTLIBOBJS
  574. DO_SHLIB
  575. DEPSHLIBS
  576. INSTALL_SHLIB
  577. LINK_SHLIB
  578. SONAME_SFX
  579. SHLINK_SFX
  580. SHLIB_SFX
  581. PICFLAGS
  582. LD
  583. host_os
  584. host_vendor
  585. host_cpu
  586. host
  587. build_os
  588. build_vendor
  589. build_cpu
  590. build
  591. LIBINTL
  592. POSUB
  593. CATALOGS
  594. INSTOBJEXT
  595. CATOBJEXT
  596. GENCAT
  597. MSGMERGE
  598. XGETTEXT
  599. GMSGFMT
  600. MSGFMT
  601. POFILES
  602. MSGFILES
  603. GMOFILES
  604. LIBOBJS
  605. DO_COMPAT
  606. EGREP
  607. GREP
  608. LN_S
  609. RANLIB
  610. INSTALL_DATA
  611. INSTALL_SCRIPT
  612. INSTALL_PROGRAM
  613. CPP
  614. OBJEXT
  615. EXEEXT
  616. ac_ct_CC
  617. CPPFLAGS
  618. LDFLAGS
  619. CFLAGS
  620. CC
  621. SET_MAKE
  622. MAJOR
  623. MAINT
  624. VERSION
  625. PACKAGE
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_maintainer_mode
  668. enable_compat
  669. enable_elf64
  670. enable_versioning
  671. enable_nls
  672. enable_shared
  673. enable_gnu_names
  674. enable_extended_format
  675. enable_sanity_checks
  676. enable_debug
  677. '
  678. ac_precious_vars='build_alias
  679. host_alias
  680. target_alias
  681. CC
  682. CFLAGS
  683. LDFLAGS
  684. LIBS
  685. CPPFLAGS
  686. CPP'
  687. # Initialize some variables set by options.
  688. ac_init_help=
  689. ac_init_version=false
  690. ac_unrecognized_opts=
  691. ac_unrecognized_sep=
  692. # The variables have the same names as the options, with
  693. # dashes changed to underlines.
  694. cache_file=/dev/null
  695. exec_prefix=NONE
  696. no_create=
  697. no_recursion=
  698. prefix=NONE
  699. program_prefix=NONE
  700. program_suffix=NONE
  701. program_transform_name=s,x,x,
  702. silent=
  703. site=
  704. srcdir=
  705. verbose=
  706. x_includes=NONE
  707. x_libraries=NONE
  708. # Installation directory options.
  709. # These are left unexpanded so users can "make install exec_prefix=/foo"
  710. # and all the variables that are supposed to be based on exec_prefix
  711. # by default will actually change.
  712. # Use braces instead of parens because sh, perl, etc. also accept them.
  713. # (The list follows the same order as the GNU Coding Standards.)
  714. bindir='${exec_prefix}/bin'
  715. sbindir='${exec_prefix}/sbin'
  716. libexecdir='${exec_prefix}/libexec'
  717. datarootdir='${prefix}/share'
  718. datadir='${datarootdir}'
  719. sysconfdir='${prefix}/etc'
  720. sharedstatedir='${prefix}/com'
  721. localstatedir='${prefix}/var'
  722. includedir='${prefix}/include'
  723. oldincludedir='/usr/include'
  724. docdir='${datarootdir}/doc/${PACKAGE}'
  725. infodir='${datarootdir}/info'
  726. htmldir='${docdir}'
  727. dvidir='${docdir}'
  728. pdfdir='${docdir}'
  729. psdir='${docdir}'
  730. libdir='${exec_prefix}/lib'
  731. localedir='${datarootdir}/locale'
  732. mandir='${datarootdir}/man'
  733. ac_prev=
  734. ac_dashdash=
  735. for ac_option
  736. do
  737. # If the previous option needs an argument, assign it.
  738. if test -n "$ac_prev"; then
  739. eval $ac_prev=\$ac_option
  740. ac_prev=
  741. continue
  742. fi
  743. case $ac_option in
  744. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  745. *=) ac_optarg= ;;
  746. *) ac_optarg=yes ;;
  747. esac
  748. # Accept the important Cygnus configure options, so we can diagnose typos.
  749. case $ac_dashdash$ac_option in
  750. --)
  751. ac_dashdash=yes ;;
  752. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  753. ac_prev=bindir ;;
  754. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  755. bindir=$ac_optarg ;;
  756. -build | --build | --buil | --bui | --bu)
  757. ac_prev=build_alias ;;
  758. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  759. build_alias=$ac_optarg ;;
  760. -cache-file | --cache-file | --cache-fil | --cache-fi \
  761. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  762. ac_prev=cache_file ;;
  763. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  764. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  765. cache_file=$ac_optarg ;;
  766. --config-cache | -C)
  767. cache_file=config.cache ;;
  768. -datadir | --datadir | --datadi | --datad)
  769. ac_prev=datadir ;;
  770. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  771. datadir=$ac_optarg ;;
  772. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  773. | --dataroo | --dataro | --datar)
  774. ac_prev=datarootdir ;;
  775. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  776. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  777. datarootdir=$ac_optarg ;;
  778. -disable-* | --disable-*)
  779. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  780. # Reject names that are not valid shell variable names.
  781. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  782. as_fn_error $? "invalid feature name: $ac_useropt"
  783. ac_useropt_orig=$ac_useropt
  784. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  785. case $ac_user_opts in
  786. *"
  787. "enable_$ac_useropt"
  788. "*) ;;
  789. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  790. ac_unrecognized_sep=', ';;
  791. esac
  792. eval enable_$ac_useropt=no ;;
  793. -docdir | --docdir | --docdi | --doc | --do)
  794. ac_prev=docdir ;;
  795. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  796. docdir=$ac_optarg ;;
  797. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  798. ac_prev=dvidir ;;
  799. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  800. dvidir=$ac_optarg ;;
  801. -enable-* | --enable-*)
  802. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  805. as_fn_error $? "invalid feature name: $ac_useropt"
  806. ac_useropt_orig=$ac_useropt
  807. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  808. case $ac_user_opts in
  809. *"
  810. "enable_$ac_useropt"
  811. "*) ;;
  812. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  813. ac_unrecognized_sep=', ';;
  814. esac
  815. eval enable_$ac_useropt=\$ac_optarg ;;
  816. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  817. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  818. | --exec | --exe | --ex)
  819. ac_prev=exec_prefix ;;
  820. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  821. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  822. | --exec=* | --exe=* | --ex=*)
  823. exec_prefix=$ac_optarg ;;
  824. -gas | --gas | --ga | --g)
  825. # Obsolete; use --with-gas.
  826. with_gas=yes ;;
  827. -help | --help | --hel | --he | -h)
  828. ac_init_help=long ;;
  829. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  830. ac_init_help=recursive ;;
  831. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  832. ac_init_help=short ;;
  833. -host | --host | --hos | --ho)
  834. ac_prev=host_alias ;;
  835. -host=* | --host=* | --hos=* | --ho=*)
  836. host_alias=$ac_optarg ;;
  837. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  838. ac_prev=htmldir ;;
  839. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  840. | --ht=*)
  841. htmldir=$ac_optarg ;;
  842. -includedir | --includedir | --includedi | --included | --include \
  843. | --includ | --inclu | --incl | --inc)
  844. ac_prev=includedir ;;
  845. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  846. | --includ=* | --inclu=* | --incl=* | --inc=*)
  847. includedir=$ac_optarg ;;
  848. -infodir | --infodir | --infodi | --infod | --info | --inf)
  849. ac_prev=infodir ;;
  850. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  851. infodir=$ac_optarg ;;
  852. -libdir | --libdir | --libdi | --libd)
  853. ac_prev=libdir ;;
  854. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  855. libdir=$ac_optarg ;;
  856. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  857. | --libexe | --libex | --libe)
  858. ac_prev=libexecdir ;;
  859. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  860. | --libexe=* | --libex=* | --libe=*)
  861. libexecdir=$ac_optarg ;;
  862. -localedir | --localedir | --localedi | --localed | --locale)
  863. ac_prev=localedir ;;
  864. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  865. localedir=$ac_optarg ;;
  866. -localstatedir | --localstatedir | --localstatedi | --localstated \
  867. | --localstate | --localstat | --localsta | --localst | --locals)
  868. ac_prev=localstatedir ;;
  869. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  870. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  871. localstatedir=$ac_optarg ;;
  872. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  873. ac_prev=mandir ;;
  874. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  875. mandir=$ac_optarg ;;
  876. -nfp | --nfp | --nf)
  877. # Obsolete; use --without-fp.
  878. with_fp=no ;;
  879. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  880. | --no-cr | --no-c | -n)
  881. no_create=yes ;;
  882. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  883. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  884. no_recursion=yes ;;
  885. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  886. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  887. | --oldin | --oldi | --old | --ol | --o)
  888. ac_prev=oldincludedir ;;
  889. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  890. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  891. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  892. oldincludedir=$ac_optarg ;;
  893. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  894. ac_prev=prefix ;;
  895. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  896. prefix=$ac_optarg ;;
  897. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  898. | --program-pre | --program-pr | --program-p)
  899. ac_prev=program_prefix ;;
  900. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  901. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  902. program_prefix=$ac_optarg ;;
  903. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  904. | --program-suf | --program-su | --program-s)
  905. ac_prev=program_suffix ;;
  906. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  907. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  908. program_suffix=$ac_optarg ;;
  909. -program-transform-name | --program-transform-name \
  910. | --program-transform-nam | --program-transform-na \
  911. | --program-transform-n | --program-transform- \
  912. | --program-transform | --program-transfor \
  913. | --program-transfo | --program-transf \
  914. | --program-trans | --program-tran \
  915. | --progr-tra | --program-tr | --program-t)
  916. ac_prev=program_transform_name ;;
  917. -program-transform-name=* | --program-transform-name=* \
  918. | --program-transform-nam=* | --program-transform-na=* \
  919. | --program-transform-n=* | --program-transform-=* \
  920. | --program-transform=* | --program-transfor=* \
  921. | --program-transfo=* | --program-transf=* \
  922. | --program-trans=* | --program-tran=* \
  923. | --progr-tra=* | --program-tr=* | --program-t=*)
  924. program_transform_name=$ac_optarg ;;
  925. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  926. ac_prev=pdfdir ;;
  927. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  928. pdfdir=$ac_optarg ;;
  929. -psdir | --psdir | --psdi | --psd | --ps)
  930. ac_prev=psdir ;;
  931. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  932. psdir=$ac_optarg ;;
  933. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  934. | -silent | --silent | --silen | --sile | --sil)
  935. silent=yes ;;
  936. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  937. ac_prev=sbindir ;;
  938. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  939. | --sbi=* | --sb=*)
  940. sbindir=$ac_optarg ;;
  941. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  942. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  943. | --sharedst | --shareds | --shared | --share | --shar \
  944. | --sha | --sh)
  945. ac_prev=sharedstatedir ;;
  946. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  947. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  948. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  949. | --sha=* | --sh=*)
  950. sharedstatedir=$ac_optarg ;;
  951. -site | --site | --sit)
  952. ac_prev=site ;;
  953. -site=* | --site=* | --sit=*)
  954. site=$ac_optarg ;;
  955. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  956. ac_prev=srcdir ;;
  957. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  958. srcdir=$ac_optarg ;;
  959. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  960. | --syscon | --sysco | --sysc | --sys | --sy)
  961. ac_prev=sysconfdir ;;
  962. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  963. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  964. sysconfdir=$ac_optarg ;;
  965. -target | --target | --targe | --targ | --tar | --ta | --t)
  966. ac_prev=target_alias ;;
  967. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  968. target_alias=$ac_optarg ;;
  969. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  970. verbose=yes ;;
  971. -version | --version | --versio | --versi | --vers | -V)
  972. ac_init_version=: ;;
  973. -with-* | --with-*)
  974. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  975. # Reject names that are not valid shell variable names.
  976. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  977. as_fn_error $? "invalid package name: $ac_useropt"
  978. ac_useropt_orig=$ac_useropt
  979. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  980. case $ac_user_opts in
  981. *"
  982. "with_$ac_useropt"
  983. "*) ;;
  984. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  985. ac_unrecognized_sep=', ';;
  986. esac
  987. eval with_$ac_useropt=\$ac_optarg ;;
  988. -without-* | --without-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. as_fn_error $? "invalid package name: $ac_useropt"
  993. ac_useropt_orig=$ac_useropt
  994. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  995. case $ac_user_opts in
  996. *"
  997. "with_$ac_useropt"
  998. "*) ;;
  999. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1000. ac_unrecognized_sep=', ';;
  1001. esac
  1002. eval with_$ac_useropt=no ;;
  1003. --x)
  1004. # Obsolete; use --with-x.
  1005. with_x=yes ;;
  1006. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1007. | --x-incl | --x-inc | --x-in | --x-i)
  1008. ac_prev=x_includes ;;
  1009. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1010. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1011. x_includes=$ac_optarg ;;
  1012. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1013. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1014. ac_prev=x_libraries ;;
  1015. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1016. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1017. x_libraries=$ac_optarg ;;
  1018. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1019. Try \`$0 --help' for more information"
  1020. ;;
  1021. *=*)
  1022. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1023. # Reject names that are not valid shell variable names.
  1024. case $ac_envvar in #(
  1025. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1026. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1027. esac
  1028. eval $ac_envvar=\$ac_optarg
  1029. export $ac_envvar ;;
  1030. *)
  1031. # FIXME: should be removed in autoconf 3.0.
  1032. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1033. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1034. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1035. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1036. ;;
  1037. esac
  1038. done
  1039. if test -n "$ac_prev"; then
  1040. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1041. as_fn_error $? "missing argument to $ac_option"
  1042. fi
  1043. if test -n "$ac_unrecognized_opts"; then
  1044. case $enable_option_checking in
  1045. no) ;;
  1046. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1047. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1048. esac
  1049. fi
  1050. # Check all directory arguments for consistency.
  1051. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1052. datadir sysconfdir sharedstatedir localstatedir includedir \
  1053. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1054. libdir localedir mandir
  1055. do
  1056. eval ac_val=\$$ac_var
  1057. # Remove trailing slashes.
  1058. case $ac_val in
  1059. */ )
  1060. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1061. eval $ac_var=\$ac_val;;
  1062. esac
  1063. # Be sure to have absolute directory names.
  1064. case $ac_val in
  1065. [\\/$]* | ?:[\\/]* ) continue;;
  1066. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1067. esac
  1068. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1069. done
  1070. # There might be people who depend on the old broken behavior: `$host'
  1071. # used to hold the argument of --host etc.
  1072. # FIXME: To remove some day.
  1073. build=$build_alias
  1074. host=$host_alias
  1075. target=$target_alias
  1076. # FIXME: To remove some day.
  1077. if test "x$host_alias" != x; then
  1078. if test "x$build_alias" = x; then
  1079. cross_compiling=maybe
  1080. elif test "x$build_alias" != "x$host_alias"; then
  1081. cross_compiling=yes
  1082. fi
  1083. fi
  1084. ac_tool_prefix=
  1085. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1086. test "$silent" = yes && exec 6>/dev/null
  1087. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1088. ac_ls_di=`ls -di .` &&
  1089. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1090. as_fn_error $? "working directory cannot be determined"
  1091. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1092. as_fn_error $? "pwd does not report name of working directory"
  1093. # Find the source files, if location was not specified.
  1094. if test -z "$srcdir"; then
  1095. ac_srcdir_defaulted=yes
  1096. # Try the directory containing this script, then the parent directory.
  1097. ac_confdir=`$as_dirname -- "$as_myself" ||
  1098. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1099. X"$as_myself" : 'X\(//\)[^/]' \| \
  1100. X"$as_myself" : 'X\(//\)$' \| \
  1101. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1102. $as_echo X"$as_myself" |
  1103. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\/\)[^/].*/{
  1108. s//\1/
  1109. q
  1110. }
  1111. /^X\(\/\/\)$/{
  1112. s//\1/
  1113. q
  1114. }
  1115. /^X\(\/\).*/{
  1116. s//\1/
  1117. q
  1118. }
  1119. s/.*/./; q'`
  1120. srcdir=$ac_confdir
  1121. if test ! -r "$srcdir/$ac_unique_file"; then
  1122. srcdir=..
  1123. fi
  1124. else
  1125. ac_srcdir_defaulted=no
  1126. fi
  1127. if test ! -r "$srcdir/$ac_unique_file"; then
  1128. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1129. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1130. fi
  1131. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1132. ac_abs_confdir=`(
  1133. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1134. pwd)`
  1135. # When building in place, set srcdir=.
  1136. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1137. srcdir=.
  1138. fi
  1139. # Remove unnecessary trailing slashes from srcdir.
  1140. # Double slashes in file names in object file debugging info
  1141. # mess up M-x gdb in Emacs.
  1142. case $srcdir in
  1143. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1144. esac
  1145. for ac_var in $ac_precious_vars; do
  1146. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_env_${ac_var}_value=\$${ac_var}
  1148. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1149. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1150. done
  1151. #
  1152. # Report the --help message.
  1153. #
  1154. if test "$ac_init_help" = "long"; then
  1155. # Omit some internal or obsolete options to make the list less imposing.
  1156. # This message is too long to be a string in the A/UX 3.1 sh.
  1157. cat <<_ACEOF
  1158. \`configure' configures this package to adapt to many kinds of systems.
  1159. Usage: $0 [OPTION]... [VAR=VALUE]...
  1160. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1161. VAR=VALUE. See below for descriptions of some of the useful variables.
  1162. Defaults for the options are specified in brackets.
  1163. Configuration:
  1164. -h, --help display this help and exit
  1165. --help=short display options specific to this package
  1166. --help=recursive display the short help of all the included packages
  1167. -V, --version display version information and exit
  1168. -q, --quiet, --silent do not print \`checking ...' messages
  1169. --cache-file=FILE cache test results in FILE [disabled]
  1170. -C, --config-cache alias for \`--cache-file=config.cache'
  1171. -n, --no-create do not create output files
  1172. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1173. Installation directories:
  1174. --prefix=PREFIX install architecture-independent files in PREFIX
  1175. [$ac_default_prefix]
  1176. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1177. [PREFIX]
  1178. By default, \`make install' will install all the files in
  1179. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1180. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1181. for instance \`--prefix=\$HOME'.
  1182. For better control, use the options below.
  1183. Fine tuning of the installation directories:
  1184. --bindir=DIR user executables [EPREFIX/bin]
  1185. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1186. --libexecdir=DIR program executables [EPREFIX/libexec]
  1187. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1188. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1189. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1190. --libdir=DIR object code libraries [EPREFIX/lib]
  1191. --includedir=DIR C header files [PREFIX/include]
  1192. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1193. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1194. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1195. --infodir=DIR info documentation [DATAROOTDIR/info]
  1196. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1197. --mandir=DIR man documentation [DATAROOTDIR/man]
  1198. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1199. --htmldir=DIR html documentation [DOCDIR]
  1200. --dvidir=DIR dvi documentation [DOCDIR]
  1201. --pdfdir=DIR pdf documentation [DOCDIR]
  1202. --psdir=DIR ps documentation [DOCDIR]
  1203. _ACEOF
  1204. cat <<\_ACEOF
  1205. System types:
  1206. --build=BUILD configure for building on BUILD [guessed]
  1207. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1208. _ACEOF
  1209. fi
  1210. if test -n "$ac_init_help"; then
  1211. cat <<\_ACEOF
  1212. Optional Features:
  1213. --disable-option-checking ignore unrecognized --enable/--with options
  1214. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1215. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1216. --enable-maintainer-mode
  1217. enable maintainer-specific make rules (default: auto)
  1218. --enable-compat install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)
  1219. --enable-elf64 compile in 64-bit support (default: auto)
  1220. --enable-versioning compile in versioning support (default: auto)
  1221. --enable-nls use Native Language Support (default: yes)
  1222. --enable-shared build shared library (default: yes)
  1223. --enable-gnu-names use GNU library naming conventions (default: no)
  1224. --enable-extended-format support extended file formats (default: no)
  1225. --enable-sanity-checks enable sanity checks by default (default: yes)
  1226. --enable-debug include extra debugging code (default: no)
  1227. Some influential environment variables:
  1228. CC C compiler command
  1229. CFLAGS C compiler flags
  1230. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1231. nonstandard directory <lib dir>
  1232. LIBS libraries to pass to the linker, e.g. -l<library>
  1233. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1234. you have headers in a nonstandard directory <include dir>
  1235. CPP C preprocessor
  1236. Use these variables to override the choices made by `configure' or to help
  1237. it to find libraries and programs with nonstandard names/locations.
  1238. Report bugs to the package provider.
  1239. _ACEOF
  1240. ac_status=$?
  1241. fi
  1242. if test "$ac_init_help" = "recursive"; then
  1243. # If there are subdirs, report their specific --help.
  1244. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1245. test -d "$ac_dir" ||
  1246. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1247. continue
  1248. ac_builddir=.
  1249. case "$ac_dir" in
  1250. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1251. *)
  1252. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1253. # A ".." for each directory in $ac_dir_suffix.
  1254. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1255. case $ac_top_builddir_sub in
  1256. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1257. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1258. esac ;;
  1259. esac
  1260. ac_abs_top_builddir=$ac_pwd
  1261. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1262. # for backward compatibility:
  1263. ac_top_builddir=$ac_top_build_prefix
  1264. case $srcdir in
  1265. .) # We are building in place.
  1266. ac_srcdir=.
  1267. ac_top_srcdir=$ac_top_builddir_sub
  1268. ac_abs_top_srcdir=$ac_pwd ;;
  1269. [\\/]* | ?:[\\/]* ) # Absolute name.
  1270. ac_srcdir=$srcdir$ac_dir_suffix;
  1271. ac_top_srcdir=$srcdir
  1272. ac_abs_top_srcdir=$srcdir ;;
  1273. *) # Relative name.
  1274. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1275. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1276. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1277. esac
  1278. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1279. cd "$ac_dir" || { ac_status=$?; continue; }
  1280. # Check for guested configure.
  1281. if test -f "$ac_srcdir/configure.gnu"; then
  1282. echo &&
  1283. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1284. elif test -f "$ac_srcdir/configure"; then
  1285. echo &&
  1286. $SHELL "$ac_srcdir/configure" --help=recursive
  1287. else
  1288. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1289. fi || ac_status=$?
  1290. cd "$ac_pwd" || { ac_status=$?; break; }
  1291. done
  1292. fi
  1293. test -n "$ac_init_help" && exit $ac_status
  1294. if $ac_init_version; then
  1295. cat <<\_ACEOF
  1296. configure
  1297. generated by GNU Autoconf 2.69
  1298. Copyright (C) 2012 Free Software Foundation, Inc.
  1299. This configure script is free software; the Free Software Foundation
  1300. gives unlimited permission to copy, distribute and modify it.
  1301. _ACEOF
  1302. exit
  1303. fi
  1304. ## ------------------------ ##
  1305. ## Autoconf initialization. ##
  1306. ## ------------------------ ##
  1307. # ac_fn_c_try_compile LINENO
  1308. # --------------------------
  1309. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1310. ac_fn_c_try_compile ()
  1311. {
  1312. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1313. rm -f conftest.$ac_objext
  1314. if { { ac_try="$ac_compile"
  1315. case "(($ac_try" in
  1316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1317. *) ac_try_echo=$ac_try;;
  1318. esac
  1319. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1320. $as_echo "$ac_try_echo"; } >&5
  1321. (eval "$ac_compile") 2>conftest.err
  1322. ac_status=$?
  1323. if test -s conftest.err; then
  1324. grep -v '^ *+' conftest.err >conftest.er1
  1325. cat conftest.er1 >&5
  1326. mv -f conftest.er1 conftest.err
  1327. fi
  1328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1329. test $ac_status = 0; } && {
  1330. test -z "$ac_c_werror_flag" ||
  1331. test ! -s conftest.err
  1332. } && test -s conftest.$ac_objext; then :
  1333. ac_retval=0
  1334. else
  1335. $as_echo "$as_me: failed program was:" >&5
  1336. sed 's/^/| /' conftest.$ac_ext >&5
  1337. ac_retval=1
  1338. fi
  1339. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1340. as_fn_set_status $ac_retval
  1341. } # ac_fn_c_try_compile
  1342. # ac_fn_c_try_cpp LINENO
  1343. # ----------------------
  1344. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1345. ac_fn_c_try_cpp ()
  1346. {
  1347. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1348. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1349. case "(($ac_try" in
  1350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1351. *) ac_try_echo=$ac_try;;
  1352. esac
  1353. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1354. $as_echo "$ac_try_echo"; } >&5
  1355. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1356. ac_status=$?
  1357. if test -s conftest.err; then
  1358. grep -v '^ *+' conftest.err >conftest.er1
  1359. cat conftest.er1 >&5
  1360. mv -f conftest.er1 conftest.err
  1361. fi
  1362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1363. test $ac_status = 0; } > conftest.i && {
  1364. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1365. test ! -s conftest.err
  1366. }; then :
  1367. ac_retval=0
  1368. else
  1369. $as_echo "$as_me: failed program was:" >&5
  1370. sed 's/^/| /' conftest.$ac_ext >&5
  1371. ac_retval=1
  1372. fi
  1373. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1374. as_fn_set_status $ac_retval
  1375. } # ac_fn_c_try_cpp
  1376. # ac_fn_c_try_run LINENO
  1377. # ----------------------
  1378. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1379. # that executables *can* be run.
  1380. ac_fn_c_try_run ()
  1381. {
  1382. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1383. if { { ac_try="$ac_link"
  1384. case "(($ac_try" in
  1385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1386. *) ac_try_echo=$ac_try;;
  1387. esac
  1388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1389. $as_echo "$ac_try_echo"; } >&5
  1390. (eval "$ac_link") 2>&5
  1391. ac_status=$?
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1394. { { case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_try") 2>&5
  1401. ac_status=$?
  1402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1403. test $ac_status = 0; }; }; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: program exited with status $ac_status" >&5
  1407. $as_echo "$as_me: failed program was:" >&5
  1408. sed 's/^/| /' conftest.$ac_ext >&5
  1409. ac_retval=$ac_status
  1410. fi
  1411. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1412. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1413. as_fn_set_status $ac_retval
  1414. } # ac_fn_c_try_run
  1415. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1416. # -------------------------------------------------------
  1417. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1418. # the include files in INCLUDES and setting the cache variable VAR
  1419. # accordingly.
  1420. ac_fn_c_check_header_mongrel ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. if eval \${$3+:} false; then :
  1424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1425. $as_echo_n "checking for $2... " >&6; }
  1426. if eval \${$3+:} false; then :
  1427. $as_echo_n "(cached) " >&6
  1428. fi
  1429. eval ac_res=\$$3
  1430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1431. $as_echo "$ac_res" >&6; }
  1432. else
  1433. # Is the header compilable?
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1435. $as_echo_n "checking $2 usability... " >&6; }
  1436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1437. /* end confdefs.h. */
  1438. $4
  1439. #include <$2>
  1440. _ACEOF
  1441. if ac_fn_c_try_compile "$LINENO"; then :
  1442. ac_header_compiler=yes
  1443. else
  1444. ac_header_compiler=no
  1445. fi
  1446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1448. $as_echo "$ac_header_compiler" >&6; }
  1449. # Is the header present?
  1450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1451. $as_echo_n "checking $2 presence... " >&6; }
  1452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1453. /* end confdefs.h. */
  1454. #include <$2>
  1455. _ACEOF
  1456. if ac_fn_c_try_cpp "$LINENO"; then :
  1457. ac_header_preproc=yes
  1458. else
  1459. ac_header_preproc=no
  1460. fi
  1461. rm -f conftest.err conftest.i conftest.$ac_ext
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1463. $as_echo "$ac_header_preproc" >&6; }
  1464. # So? What about this header?
  1465. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1466. yes:no: )
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1468. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1470. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1471. ;;
  1472. no:yes:* )
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1474. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1476. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1478. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1480. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1482. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1483. ;;
  1484. esac
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1486. $as_echo_n "checking for $2... " >&6; }
  1487. if eval \${$3+:} false; then :
  1488. $as_echo_n "(cached) " >&6
  1489. else
  1490. eval "$3=\$ac_header_compiler"
  1491. fi
  1492. eval ac_res=\$$3
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1494. $as_echo "$ac_res" >&6; }
  1495. fi
  1496. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1497. } # ac_fn_c_check_header_mongrel
  1498. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1499. # -------------------------------------------------------
  1500. # Tests whether HEADER exists and can be compiled using the include files in
  1501. # INCLUDES, setting the cache variable VAR accordingly.
  1502. ac_fn_c_check_header_compile ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1506. $as_echo_n "checking for $2... " >&6; }
  1507. if eval \${$3+:} false; then :
  1508. $as_echo_n "(cached) " >&6
  1509. else
  1510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1511. /* end confdefs.h. */
  1512. $4
  1513. #include <$2>
  1514. _ACEOF
  1515. if ac_fn_c_try_compile "$LINENO"; then :
  1516. eval "$3=yes"
  1517. else
  1518. eval "$3=no"
  1519. fi
  1520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1521. fi
  1522. eval ac_res=\$$3
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1524. $as_echo "$ac_res" >&6; }
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. } # ac_fn_c_check_header_compile
  1527. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1528. # -------------------------------------------
  1529. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1530. # variable VAR accordingly.
  1531. ac_fn_c_check_type ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1535. $as_echo_n "checking for $2... " >&6; }
  1536. if eval \${$3+:} false; then :
  1537. $as_echo_n "(cached) " >&6
  1538. else
  1539. eval "$3=no"
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. int
  1544. main ()
  1545. {
  1546. if (sizeof ($2))
  1547. return 0;
  1548. ;
  1549. return 0;
  1550. }
  1551. _ACEOF
  1552. if ac_fn_c_try_compile "$LINENO"; then :
  1553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1554. /* end confdefs.h. */
  1555. $4
  1556. int
  1557. main ()
  1558. {
  1559. if (sizeof (($2)))
  1560. return 0;
  1561. ;
  1562. return 0;
  1563. }
  1564. _ACEOF
  1565. if ac_fn_c_try_compile "$LINENO"; then :
  1566. else
  1567. eval "$3=yes"
  1568. fi
  1569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1570. fi
  1571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1572. fi
  1573. eval ac_res=\$$3
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1575. $as_echo "$ac_res" >&6; }
  1576. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1577. } # ac_fn_c_check_type
  1578. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1579. # --------------------------------------------
  1580. # Tries to find the compile-time value of EXPR in a program that includes
  1581. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1582. # computed
  1583. ac_fn_c_compute_int ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. if test "$cross_compiling" = yes; then
  1587. # Depending upon the size, compute the lo and hi bounds.
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. $4
  1591. int
  1592. main ()
  1593. {
  1594. static int test_array [1 - 2 * !(($2) >= 0)];
  1595. test_array [0] = 0;
  1596. return test_array [0];
  1597. ;
  1598. return 0;
  1599. }
  1600. _ACEOF
  1601. if ac_fn_c_try_compile "$LINENO"; then :
  1602. ac_lo=0 ac_mid=0
  1603. while :; do
  1604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1605. /* end confdefs.h. */
  1606. $4
  1607. int
  1608. main ()
  1609. {
  1610. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1611. test_array [0] = 0;
  1612. return test_array [0];
  1613. ;
  1614. return 0;
  1615. }
  1616. _ACEOF
  1617. if ac_fn_c_try_compile "$LINENO"; then :
  1618. ac_hi=$ac_mid; break
  1619. else
  1620. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1621. if test $ac_lo -le $ac_mid; then
  1622. ac_lo= ac_hi=
  1623. break
  1624. fi
  1625. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1626. fi
  1627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1628. done
  1629. else
  1630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end confdefs.h. */
  1632. $4
  1633. int
  1634. main ()
  1635. {
  1636. static int test_array [1 - 2 * !(($2) < 0)];
  1637. test_array [0] = 0;
  1638. return test_array [0];
  1639. ;
  1640. return 0;
  1641. }
  1642. _ACEOF
  1643. if ac_fn_c_try_compile "$LINENO"; then :
  1644. ac_hi=-1 ac_mid=-1
  1645. while :; do
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. int
  1650. main ()
  1651. {
  1652. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1653. test_array [0] = 0;
  1654. return test_array [0];
  1655. ;
  1656. return 0;
  1657. }
  1658. _ACEOF
  1659. if ac_fn_c_try_compile "$LINENO"; then :
  1660. ac_lo=$ac_mid; break
  1661. else
  1662. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1663. if test $ac_mid -le $ac_hi; then
  1664. ac_lo= ac_hi=
  1665. break
  1666. fi
  1667. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. done
  1671. else
  1672. ac_lo= ac_hi=
  1673. fi
  1674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1675. fi
  1676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1677. # Binary search between lo and hi bounds.
  1678. while test "x$ac_lo" != "x$ac_hi"; do
  1679. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1681. /* end confdefs.h. */
  1682. $4
  1683. int
  1684. main ()
  1685. {
  1686. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1687. test_array [0] = 0;
  1688. return test_array [0];
  1689. ;
  1690. return 0;
  1691. }
  1692. _ACEOF
  1693. if ac_fn_c_try_compile "$LINENO"; then :
  1694. ac_hi=$ac_mid
  1695. else
  1696. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1699. done
  1700. case $ac_lo in #((
  1701. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1702. '') ac_retval=1 ;;
  1703. esac
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. static long int longval () { return $2; }
  1709. static unsigned long int ulongval () { return $2; }
  1710. #include <stdio.h>
  1711. #include <stdlib.h>
  1712. int
  1713. main ()
  1714. {
  1715. FILE *f = fopen ("conftest.val", "w");
  1716. if (! f)
  1717. return 1;
  1718. if (($2) < 0)
  1719. {
  1720. long int i = longval ();
  1721. if (i != ($2))
  1722. return 1;
  1723. fprintf (f, "%ld", i);
  1724. }
  1725. else
  1726. {
  1727. unsigned long int i = ulongval ();
  1728. if (i != ($2))
  1729. return 1;
  1730. fprintf (f, "%lu", i);
  1731. }
  1732. /* Do not output a trailing newline, as this causes \r\n confusion
  1733. on some platforms. */
  1734. return ferror (f) || fclose (f) != 0;
  1735. ;
  1736. return 0;
  1737. }
  1738. _ACEOF
  1739. if ac_fn_c_try_run "$LINENO"; then :
  1740. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1741. else
  1742. ac_retval=1
  1743. fi
  1744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1745. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1746. rm -f conftest.val
  1747. fi
  1748. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1749. as_fn_set_status $ac_retval
  1750. } # ac_fn_c_compute_int
  1751. # ac_fn_c_try_link LINENO
  1752. # -----------------------
  1753. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1754. ac_fn_c_try_link ()
  1755. {
  1756. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1757. rm -f conftest.$ac_objext conftest$ac_exeext
  1758. if { { ac_try="$ac_link"
  1759. case "(($ac_try" in
  1760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1761. *) ac_try_echo=$ac_try;;
  1762. esac
  1763. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1764. $as_echo "$ac_try_echo"; } >&5
  1765. (eval "$ac_link") 2>conftest.err
  1766. ac_status=$?
  1767. if test -s conftest.err; then
  1768. grep -v '^ *+' conftest.err >conftest.er1
  1769. cat conftest.er1 >&5
  1770. mv -f conftest.er1 conftest.err
  1771. fi
  1772. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1773. test $ac_status = 0; } && {
  1774. test -z "$ac_c_werror_flag" ||
  1775. test ! -s conftest.err
  1776. } && test -s conftest$ac_exeext && {
  1777. test "$cross_compiling" = yes ||
  1778. test -x conftest$ac_exeext
  1779. }; then :
  1780. ac_retval=0
  1781. else
  1782. $as_echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. ac_retval=1
  1785. fi
  1786. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1787. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1788. # interfere with the next link command; also delete a directory that is
  1789. # left behind by Apple's compiler. We do this before executing the actions.
  1790. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1791. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1792. as_fn_set_status $ac_retval
  1793. } # ac_fn_c_try_link
  1794. # ac_fn_c_check_func LINENO FUNC VAR
  1795. # ----------------------------------
  1796. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1797. ac_fn_c_check_func ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1801. $as_echo_n "checking for $2... " >&6; }
  1802. if eval \${$3+:} false; then :
  1803. $as_echo_n "(cached) " >&6
  1804. else
  1805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end confdefs.h. */
  1807. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1808. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1809. #define $2 innocuous_$2
  1810. /* System header to define __stub macros and hopefully few prototypes,
  1811. which can conflict with char $2 (); below.
  1812. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1813. <limits.h> exists even on freestanding compilers. */
  1814. #ifdef __STDC__
  1815. # include <limits.h>
  1816. #else
  1817. # include <assert.h>
  1818. #endif
  1819. #undef $2
  1820. /* Override any GCC internal prototype to avoid an error.
  1821. Use char because int might match the return type of a GCC
  1822. builtin and then its argument prototype would still apply. */
  1823. #ifdef __cplusplus
  1824. extern "C"
  1825. #endif
  1826. char $2 ();
  1827. /* The GNU C library defines this for functions which it implements
  1828. to always fail with ENOSYS. Some functions are actually named
  1829. something starting with __ and the normal name is an alias. */
  1830. #if defined __stub_$2 || defined __stub___$2
  1831. choke me
  1832. #endif
  1833. int
  1834. main ()
  1835. {
  1836. return $2 ();
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_link "$LINENO"; then :
  1842. eval "$3=yes"
  1843. else
  1844. eval "$3=no"
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext \
  1847. conftest$ac_exeext conftest.$ac_ext
  1848. fi
  1849. eval ac_res=\$$3
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1851. $as_echo "$ac_res" >&6; }
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. } # ac_fn_c_check_func
  1854. cat >config.log <<_ACEOF
  1855. This file contains any messages produced by compilers while
  1856. running configure, to aid debugging if configure makes a mistake.
  1857. It was created by $as_me, which was
  1858. generated by GNU Autoconf 2.69. Invocation command line was
  1859. $ $0 $@
  1860. _ACEOF
  1861. exec 5>>config.log
  1862. {
  1863. cat <<_ASUNAME
  1864. ## --------- ##
  1865. ## Platform. ##
  1866. ## --------- ##
  1867. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1868. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1869. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1870. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1871. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1872. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1873. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1874. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1875. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1876. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1877. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1878. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1879. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1880. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1881. _ASUNAME
  1882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1883. for as_dir in $PATH
  1884. do
  1885. IFS=$as_save_IFS
  1886. test -z "$as_dir" && as_dir=.
  1887. $as_echo "PATH: $as_dir"
  1888. done
  1889. IFS=$as_save_IFS
  1890. } >&5
  1891. cat >&5 <<_ACEOF
  1892. ## ----------- ##
  1893. ## Core tests. ##
  1894. ## ----------- ##
  1895. _ACEOF
  1896. # Keep a trace of the command line.
  1897. # Strip out --no-create and --no-recursion so they do not pile up.
  1898. # Strip out --silent because we don't want to record it for future runs.
  1899. # Also quote any args containing shell meta-characters.
  1900. # Make two passes to allow for proper duplicate-argument suppression.
  1901. ac_configure_args=
  1902. ac_configure_args0=
  1903. ac_configure_args1=
  1904. ac_must_keep_next=false
  1905. for ac_pass in 1 2
  1906. do
  1907. for ac_arg
  1908. do
  1909. case $ac_arg in
  1910. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1911. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1912. | -silent | --silent | --silen | --sile | --sil)
  1913. continue ;;
  1914. *\'*)
  1915. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1916. esac
  1917. case $ac_pass in
  1918. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1919. 2)
  1920. as_fn_append ac_configure_args1 " '$ac_arg'"
  1921. if test $ac_must_keep_next = true; then
  1922. ac_must_keep_next=false # Got value, back to normal.
  1923. else
  1924. case $ac_arg in
  1925. *=* | --config-cache | -C | -disable-* | --disable-* \
  1926. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1927. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1928. | -with-* | --with-* | -without-* | --without-* | --x)
  1929. case "$ac_configure_args0 " in
  1930. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1931. esac
  1932. ;;
  1933. -* ) ac_must_keep_next=true ;;
  1934. esac
  1935. fi
  1936. as_fn_append ac_configure_args " '$ac_arg'"
  1937. ;;
  1938. esac
  1939. done
  1940. done
  1941. { ac_configure_args0=; unset ac_configure_args0;}
  1942. { ac_configure_args1=; unset ac_configure_args1;}
  1943. # When interrupted or exit'd, cleanup temporary files, and complete
  1944. # config.log. We remove comments because anyway the quotes in there
  1945. # would cause problems or look ugly.
  1946. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1947. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1948. trap 'exit_status=$?
  1949. # Save into config.log some information that might help in debugging.
  1950. {
  1951. echo
  1952. $as_echo "## ---------------- ##
  1953. ## Cache variables. ##
  1954. ## ---------------- ##"
  1955. echo
  1956. # The following way of writing the cache mishandles newlines in values,
  1957. (
  1958. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1959. eval ac_val=\$$ac_var
  1960. case $ac_val in #(
  1961. *${as_nl}*)
  1962. case $ac_var in #(
  1963. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1964. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1965. esac
  1966. case $ac_var in #(
  1967. _ | IFS | as_nl) ;; #(
  1968. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1969. *) { eval $ac_var=; unset $ac_var;} ;;
  1970. esac ;;
  1971. esac
  1972. done
  1973. (set) 2>&1 |
  1974. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1975. *${as_nl}ac_space=\ *)
  1976. sed -n \
  1977. "s/'\''/'\''\\\\'\'''\''/g;
  1978. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1979. ;; #(
  1980. *)
  1981. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1982. ;;
  1983. esac |
  1984. sort
  1985. )
  1986. echo
  1987. $as_echo "## ----------------- ##
  1988. ## Output variables. ##
  1989. ## ----------------- ##"
  1990. echo
  1991. for ac_var in $ac_subst_vars
  1992. do
  1993. eval ac_val=\$$ac_var
  1994. case $ac_val in
  1995. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1996. esac
  1997. $as_echo "$ac_var='\''$ac_val'\''"
  1998. done | sort
  1999. echo
  2000. if test -n "$ac_subst_files"; then
  2001. $as_echo "## ------------------- ##
  2002. ## File substitutions. ##
  2003. ## ------------------- ##"
  2004. echo
  2005. for ac_var in $ac_subst_files
  2006. do
  2007. eval ac_val=\$$ac_var
  2008. case $ac_val in
  2009. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2010. esac
  2011. $as_echo "$ac_var='\''$ac_val'\''"
  2012. done | sort
  2013. echo
  2014. fi
  2015. if test -s confdefs.h; then
  2016. $as_echo "## ----------- ##
  2017. ## confdefs.h. ##
  2018. ## ----------- ##"
  2019. echo
  2020. cat confdefs.h
  2021. echo
  2022. fi
  2023. test "$ac_signal" != 0 &&
  2024. $as_echo "$as_me: caught signal $ac_signal"
  2025. $as_echo "$as_me: exit $exit_status"
  2026. } >&5
  2027. rm -f core *.core core.conftest.* &&
  2028. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2029. exit $exit_status
  2030. ' 0
  2031. for ac_signal in 1 2 13 15; do
  2032. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2033. done
  2034. ac_signal=0
  2035. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2036. rm -f -r conftest* confdefs.h
  2037. $as_echo "/* confdefs.h */" > confdefs.h
  2038. # Predefined preprocessor variables.
  2039. cat >>confdefs.h <<_ACEOF
  2040. #define PACKAGE_NAME "$PACKAGE_NAME"
  2041. _ACEOF
  2042. cat >>confdefs.h <<_ACEOF
  2043. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2044. _ACEOF
  2045. cat >>confdefs.h <<_ACEOF
  2046. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2047. _ACEOF
  2048. cat >>confdefs.h <<_ACEOF
  2049. #define PACKAGE_STRING "$PACKAGE_STRING"
  2050. _ACEOF
  2051. cat >>confdefs.h <<_ACEOF
  2052. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2053. _ACEOF
  2054. cat >>confdefs.h <<_ACEOF
  2055. #define PACKAGE_URL "$PACKAGE_URL"
  2056. _ACEOF
  2057. # Let the site file select an alternate cache file if it wants to.
  2058. # Prefer an explicitly selected file to automatically selected ones.
  2059. ac_site_file1=NONE
  2060. ac_site_file2=NONE
  2061. if test -n "$CONFIG_SITE"; then
  2062. # We do not want a PATH search for config.site.
  2063. case $CONFIG_SITE in #((
  2064. -*) ac_site_file1=./$CONFIG_SITE;;
  2065. */*) ac_site_file1=$CONFIG_SITE;;
  2066. *) ac_site_file1=./$CONFIG_SITE;;
  2067. esac
  2068. elif test "x$prefix" != xNONE; then
  2069. ac_site_file1=$prefix/share/config.site
  2070. ac_site_file2=$prefix/etc/config.site
  2071. else
  2072. ac_site_file1=$ac_default_prefix/share/config.site
  2073. ac_site_file2=$ac_default_prefix/etc/config.site
  2074. fi
  2075. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2076. do
  2077. test "x$ac_site_file" = xNONE && continue
  2078. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2080. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2081. sed 's/^/| /' "$ac_site_file" >&5
  2082. . "$ac_site_file" \
  2083. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2084. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2085. as_fn_error $? "failed to load site script $ac_site_file
  2086. See \`config.log' for more details" "$LINENO" 5; }
  2087. fi
  2088. done
  2089. if test -r "$cache_file"; then
  2090. # Some versions of bash will fail to source /dev/null (special files
  2091. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2092. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2094. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2095. case $cache_file in
  2096. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2097. *) . "./$cache_file";;
  2098. esac
  2099. fi
  2100. else
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2102. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2103. >$cache_file
  2104. fi
  2105. as_fn_append ac_header_list " stdlib.h"
  2106. as_fn_append ac_header_list " unistd.h"
  2107. as_fn_append ac_header_list " sys/param.h"
  2108. # Check that the precious variables saved in the cache have kept the same
  2109. # value.
  2110. ac_cache_corrupted=false
  2111. for ac_var in $ac_precious_vars; do
  2112. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2113. eval ac_new_set=\$ac_env_${ac_var}_set
  2114. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2115. eval ac_new_val=\$ac_env_${ac_var}_value
  2116. case $ac_old_set,$ac_new_set in
  2117. set,)
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2119. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2120. ac_cache_corrupted=: ;;
  2121. ,set)
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2123. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2124. ac_cache_corrupted=: ;;
  2125. ,);;
  2126. *)
  2127. if test "x$ac_old_val" != "x$ac_new_val"; then
  2128. # differences in whitespace do not lead to failure.
  2129. ac_old_val_w=`echo x $ac_old_val`
  2130. ac_new_val_w=`echo x $ac_new_val`
  2131. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2133. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2134. ac_cache_corrupted=:
  2135. else
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2137. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2138. eval $ac_var=\$ac_old_val
  2139. fi
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2141. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2143. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2144. fi;;
  2145. esac
  2146. # Pass precious variables to config.status.
  2147. if test "$ac_new_set" = set; then
  2148. case $ac_new_val in
  2149. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2150. *) ac_arg=$ac_var=$ac_new_val ;;
  2151. esac
  2152. case " $ac_configure_args " in
  2153. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2154. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2155. esac
  2156. fi
  2157. done
  2158. if $ac_cache_corrupted; then
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2160. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2162. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2163. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2164. fi
  2165. ## -------------------- ##
  2166. ## Main body of script. ##
  2167. ## -------------------- ##
  2168. ac_ext=c
  2169. ac_cpp='$CPP $CPPFLAGS'
  2170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2173. ac_config_headers="$ac_config_headers config.h lib/sys_elf.h"
  2174. PACKAGE=libelf
  2175. VERSION=`cat $srcdir/VERSION`
  2176. # Check whether --enable-maintainer-mode was given.
  2177. if test "${enable_maintainer_mode+set}" = set; then :
  2178. enableval=$enable_maintainer_mode; mr_enable_maintainer_mode="$enableval"
  2179. else
  2180. case :${I_AM_THE_MAINTAINER_OF}: in
  2181. *:libelf:*) mr_enable_maintainer_mode=yes;;
  2182. *) mr_enable_maintainer_mode=no;;
  2183. esac
  2184. fi
  2185. if test x"$mr_enable_maintainer_mode" = x"yes"; then
  2186. MAINT=
  2187. else
  2188. MAINT='maintainer-only-'
  2189. fi
  2190. ALL_LINGUAS=`cd $srcdir/po && echo *.po | sed 's/\.po//g'`
  2191. set `echo $VERSION | sed 's/\./ /g'`
  2192. MAJOR=${1-1}
  2193. MINOR=${2-0}
  2194. PATCH=${3-0}
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2196. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2197. set x ${MAKE-make}
  2198. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2199. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2200. $as_echo_n "(cached) " >&6
  2201. else
  2202. cat >conftest.make <<\_ACEOF
  2203. SHELL = /bin/sh
  2204. all:
  2205. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2206. _ACEOF
  2207. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2208. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2209. *@@@%%%=?*=@@@%%%*)
  2210. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2211. *)
  2212. eval ac_cv_prog_make_${ac_make}_set=no;;
  2213. esac
  2214. rm -f conftest.make
  2215. fi
  2216. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2218. $as_echo "yes" >&6; }
  2219. SET_MAKE=
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2222. $as_echo "no" >&6; }
  2223. SET_MAKE="MAKE=${MAKE-make}"
  2224. fi
  2225. ac_ext=c
  2226. ac_cpp='$CPP $CPPFLAGS'
  2227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2230. if test -n "$ac_tool_prefix"; then
  2231. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2232. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2234. $as_echo_n "checking for $ac_word... " >&6; }
  2235. if ${ac_cv_prog_CC+:} false; then :
  2236. $as_echo_n "(cached) " >&6
  2237. else
  2238. if test -n "$CC"; then
  2239. ac_cv_prog_CC="$CC" # Let the user override the test.
  2240. else
  2241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2242. for as_dir in $PATH
  2243. do
  2244. IFS=$as_save_IFS
  2245. test -z "$as_dir" && as_dir=.
  2246. for ac_exec_ext in '' $ac_executable_extensions; do
  2247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2248. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2250. break 2
  2251. fi
  2252. done
  2253. done
  2254. IFS=$as_save_IFS
  2255. fi
  2256. fi
  2257. CC=$ac_cv_prog_CC
  2258. if test -n "$CC"; then
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2260. $as_echo "$CC" >&6; }
  2261. else
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2263. $as_echo "no" >&6; }
  2264. fi
  2265. fi
  2266. if test -z "$ac_cv_prog_CC"; then
  2267. ac_ct_CC=$CC
  2268. # Extract the first word of "gcc", so it can be a program name with args.
  2269. set dummy gcc; ac_word=$2
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2271. $as_echo_n "checking for $ac_word... " >&6; }
  2272. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2273. $as_echo_n "(cached) " >&6
  2274. else
  2275. if test -n "$ac_ct_CC"; then
  2276. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2277. else
  2278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2279. for as_dir in $PATH
  2280. do
  2281. IFS=$as_save_IFS
  2282. test -z "$as_dir" && as_dir=.
  2283. for ac_exec_ext in '' $ac_executable_extensions; do
  2284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2285. ac_cv_prog_ac_ct_CC="gcc"
  2286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2287. break 2
  2288. fi
  2289. done
  2290. done
  2291. IFS=$as_save_IFS
  2292. fi
  2293. fi
  2294. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2295. if test -n "$ac_ct_CC"; then
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2297. $as_echo "$ac_ct_CC" >&6; }
  2298. else
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2300. $as_echo "no" >&6; }
  2301. fi
  2302. if test "x$ac_ct_CC" = x; then
  2303. CC=""
  2304. else
  2305. case $cross_compiling:$ac_tool_warned in
  2306. yes:)
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2309. ac_tool_warned=yes ;;
  2310. esac
  2311. CC=$ac_ct_CC
  2312. fi
  2313. else
  2314. CC="$ac_cv_prog_CC"
  2315. fi
  2316. if test -z "$CC"; then
  2317. if test -n "$ac_tool_prefix"; then
  2318. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2319. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2321. $as_echo_n "checking for $ac_word... " >&6; }
  2322. if ${ac_cv_prog_CC+:} false; then :
  2323. $as_echo_n "(cached) " >&6
  2324. else
  2325. if test -n "$CC"; then
  2326. ac_cv_prog_CC="$CC" # Let the user override the test.
  2327. else
  2328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2329. for as_dir in $PATH
  2330. do
  2331. IFS=$as_save_IFS
  2332. test -z "$as_dir" && as_dir=.
  2333. for ac_exec_ext in '' $ac_executable_extensions; do
  2334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2335. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2337. break 2
  2338. fi
  2339. done
  2340. done
  2341. IFS=$as_save_IFS
  2342. fi
  2343. fi
  2344. CC=$ac_cv_prog_CC
  2345. if test -n "$CC"; then
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2347. $as_echo "$CC" >&6; }
  2348. else
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2350. $as_echo "no" >&6; }
  2351. fi
  2352. fi
  2353. fi
  2354. if test -z "$CC"; then
  2355. # Extract the first word of "cc", so it can be a program name with args.
  2356. set dummy cc; ac_word=$2
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2358. $as_echo_n "checking for $ac_word... " >&6; }
  2359. if ${ac_cv_prog_CC+:} false; then :
  2360. $as_echo_n "(cached) " >&6
  2361. else
  2362. if test -n "$CC"; then
  2363. ac_cv_prog_CC="$CC" # Let the user override the test.
  2364. else
  2365. ac_prog_rejected=no
  2366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2367. for as_dir in $PATH
  2368. do
  2369. IFS=$as_save_IFS
  2370. test -z "$as_dir" && as_dir=.
  2371. for ac_exec_ext in '' $ac_executable_extensions; do
  2372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2373. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2374. ac_prog_rejected=yes
  2375. continue
  2376. fi
  2377. ac_cv_prog_CC="cc"
  2378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2379. break 2
  2380. fi
  2381. done
  2382. done
  2383. IFS=$as_save_IFS
  2384. if test $ac_prog_rejected = yes; then
  2385. # We found a bogon in the path, so make sure we never use it.
  2386. set dummy $ac_cv_prog_CC
  2387. shift
  2388. if test $# != 0; then
  2389. # We chose a different compiler from the bogus one.
  2390. # However, it has the same basename, so the bogon will be chosen
  2391. # first if we set CC to just the basename; use the full file name.
  2392. shift
  2393. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2394. fi
  2395. fi
  2396. fi
  2397. fi
  2398. CC=$ac_cv_prog_CC
  2399. if test -n "$CC"; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2401. $as_echo "$CC" >&6; }
  2402. else
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2404. $as_echo "no" >&6; }
  2405. fi
  2406. fi
  2407. if test -z "$CC"; then
  2408. if test -n "$ac_tool_prefix"; then
  2409. for ac_prog in cl.exe
  2410. do
  2411. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2412. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2414. $as_echo_n "checking for $ac_word... " >&6; }
  2415. if ${ac_cv_prog_CC+:} false; then :
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. if test -n "$CC"; then
  2419. ac_cv_prog_CC="$CC" # Let the user override the test.
  2420. else
  2421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2422. for as_dir in $PATH
  2423. do
  2424. IFS=$as_save_IFS
  2425. test -z "$as_dir" && as_dir=.
  2426. for ac_exec_ext in '' $ac_executable_extensions; do
  2427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2428. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2430. break 2
  2431. fi
  2432. done
  2433. done
  2434. IFS=$as_save_IFS
  2435. fi
  2436. fi
  2437. CC=$ac_cv_prog_CC
  2438. if test -n "$CC"; then
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2440. $as_echo "$CC" >&6; }
  2441. else
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2443. $as_echo "no" >&6; }
  2444. fi
  2445. test -n "$CC" && break
  2446. done
  2447. fi
  2448. if test -z "$CC"; then
  2449. ac_ct_CC=$CC
  2450. for ac_prog in cl.exe
  2451. do
  2452. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2453. set dummy $ac_prog; ac_word=$2
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2455. $as_echo_n "checking for $ac_word... " >&6; }
  2456. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2457. $as_echo_n "(cached) " >&6
  2458. else
  2459. if test -n "$ac_ct_CC"; then
  2460. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2461. else
  2462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2463. for as_dir in $PATH
  2464. do
  2465. IFS=$as_save_IFS
  2466. test -z "$as_dir" && as_dir=.
  2467. for ac_exec_ext in '' $ac_executable_extensions; do
  2468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2469. ac_cv_prog_ac_ct_CC="$ac_prog"
  2470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2471. break 2
  2472. fi
  2473. done
  2474. done
  2475. IFS=$as_save_IFS
  2476. fi
  2477. fi
  2478. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2479. if test -n "$ac_ct_CC"; then
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2481. $as_echo "$ac_ct_CC" >&6; }
  2482. else
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2484. $as_echo "no" >&6; }
  2485. fi
  2486. test -n "$ac_ct_CC" && break
  2487. done
  2488. if test "x$ac_ct_CC" = x; then
  2489. CC=""
  2490. else
  2491. case $cross_compiling:$ac_tool_warned in
  2492. yes:)
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2495. ac_tool_warned=yes ;;
  2496. esac
  2497. CC=$ac_ct_CC
  2498. fi
  2499. fi
  2500. fi
  2501. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2502. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2503. as_fn_error $? "no acceptable C compiler found in \$PATH
  2504. See \`config.log' for more details" "$LINENO" 5; }
  2505. # Provide some information about the compiler.
  2506. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2507. set X $ac_compile
  2508. ac_compiler=$2
  2509. for ac_option in --version -v -V -qversion; do
  2510. { { ac_try="$ac_compiler $ac_option >&5"
  2511. case "(($ac_try" in
  2512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2513. *) ac_try_echo=$ac_try;;
  2514. esac
  2515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2516. $as_echo "$ac_try_echo"; } >&5
  2517. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2518. ac_status=$?
  2519. if test -s conftest.err; then
  2520. sed '10a\
  2521. ... rest of stderr output deleted ...
  2522. 10q' conftest.err >conftest.er1
  2523. cat conftest.er1 >&5
  2524. fi
  2525. rm -f conftest.er1 conftest.err
  2526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2527. test $ac_status = 0; }
  2528. done
  2529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2530. /* end confdefs.h. */
  2531. int
  2532. main ()
  2533. {
  2534. ;
  2535. return 0;
  2536. }
  2537. _ACEOF
  2538. ac_clean_files_save=$ac_clean_files
  2539. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2540. # Try to create an executable without -o first, disregard a.out.
  2541. # It will help us diagnose broken compilers, and finding out an intuition
  2542. # of exeext.
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2544. $as_echo_n "checking whether the C compiler works... " >&6; }
  2545. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2546. # The possible output files:
  2547. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2548. ac_rmfiles=
  2549. for ac_file in $ac_files
  2550. do
  2551. case $ac_file in
  2552. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2553. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2554. esac
  2555. done
  2556. rm -f $ac_rmfiles
  2557. if { { ac_try="$ac_link_default"
  2558. case "(($ac_try" in
  2559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2560. *) ac_try_echo=$ac_try;;
  2561. esac
  2562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2563. $as_echo "$ac_try_echo"; } >&5
  2564. (eval "$ac_link_default") 2>&5
  2565. ac_status=$?
  2566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2567. test $ac_status = 0; }; then :
  2568. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2569. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2570. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2571. # so that the user can short-circuit this test for compilers unknown to
  2572. # Autoconf.
  2573. for ac_file in $ac_files ''
  2574. do
  2575. test -f "$ac_file" || continue
  2576. case $ac_file in
  2577. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2578. ;;
  2579. [ab].out )
  2580. # We found the default executable, but exeext='' is most
  2581. # certainly right.
  2582. break;;
  2583. *.* )
  2584. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2585. then :; else
  2586. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2587. fi
  2588. # We set ac_cv_exeext here because the later test for it is not
  2589. # safe: cross compilers may not add the suffix if given an `-o'
  2590. # argument, so we may need to know it at that point already.
  2591. # Even if this section looks crufty: it has the advantage of
  2592. # actually working.
  2593. break;;
  2594. * )
  2595. break;;
  2596. esac
  2597. done
  2598. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2599. else
  2600. ac_file=''
  2601. fi
  2602. if test -z "$ac_file"; then :
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2604. $as_echo "no" >&6; }
  2605. $as_echo "$as_me: failed program was:" >&5
  2606. sed 's/^/| /' conftest.$ac_ext >&5
  2607. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2608. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2609. as_fn_error 77 "C compiler cannot create executables
  2610. See \`config.log' for more details" "$LINENO" 5; }
  2611. else
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2613. $as_echo "yes" >&6; }
  2614. fi
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2616. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2618. $as_echo "$ac_file" >&6; }
  2619. ac_exeext=$ac_cv_exeext
  2620. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2621. ac_clean_files=$ac_clean_files_save
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2623. $as_echo_n "checking for suffix of executables... " >&6; }
  2624. if { { ac_try="$ac_link"
  2625. case "(($ac_try" in
  2626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2627. *) ac_try_echo=$ac_try;;
  2628. esac
  2629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2630. $as_echo "$ac_try_echo"; } >&5
  2631. (eval "$ac_link") 2>&5
  2632. ac_status=$?
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2634. test $ac_status = 0; }; then :
  2635. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2636. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2637. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2638. # `rm'.
  2639. for ac_file in conftest.exe conftest conftest.*; do
  2640. test -f "$ac_file" || continue
  2641. case $ac_file in
  2642. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2643. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2644. break;;
  2645. * ) break;;
  2646. esac
  2647. done
  2648. else
  2649. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2650. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2651. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2652. See \`config.log' for more details" "$LINENO" 5; }
  2653. fi
  2654. rm -f conftest conftest$ac_cv_exeext
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2656. $as_echo "$ac_cv_exeext" >&6; }
  2657. rm -f conftest.$ac_ext
  2658. EXEEXT=$ac_cv_exeext
  2659. ac_exeext=$EXEEXT
  2660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2661. /* end confdefs.h. */
  2662. #include <stdio.h>
  2663. int
  2664. main ()
  2665. {
  2666. FILE *f = fopen ("conftest.out", "w");
  2667. return ferror (f) || fclose (f) != 0;
  2668. ;
  2669. return 0;
  2670. }
  2671. _ACEOF
  2672. ac_clean_files="$ac_clean_files conftest.out"
  2673. # Check that the compiler produces executables we can run. If not, either
  2674. # the compiler is broken, or we cross compile.
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2676. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2677. if test "$cross_compiling" != yes; then
  2678. { { ac_try="$ac_link"
  2679. case "(($ac_try" in
  2680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2681. *) ac_try_echo=$ac_try;;
  2682. esac
  2683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2684. $as_echo "$ac_try_echo"; } >&5
  2685. (eval "$ac_link") 2>&5
  2686. ac_status=$?
  2687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2688. test $ac_status = 0; }
  2689. if { ac_try='./conftest$ac_cv_exeext'
  2690. { { case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2695. $as_echo "$ac_try_echo"; } >&5
  2696. (eval "$ac_try") 2>&5
  2697. ac_status=$?
  2698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2699. test $ac_status = 0; }; }; then
  2700. cross_compiling=no
  2701. else
  2702. if test "$cross_compiling" = maybe; then
  2703. cross_compiling=yes
  2704. else
  2705. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2707. as_fn_error $? "cannot run C compiled programs.
  2708. If you meant to cross compile, use \`--host'.
  2709. See \`config.log' for more details" "$LINENO" 5; }
  2710. fi
  2711. fi
  2712. fi
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2714. $as_echo "$cross_compiling" >&6; }
  2715. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2716. ac_clean_files=$ac_clean_files_save
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2718. $as_echo_n "checking for suffix of object files... " >&6; }
  2719. if ${ac_cv_objext+:} false; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2723. /* end confdefs.h. */
  2724. int
  2725. main ()
  2726. {
  2727. ;
  2728. return 0;
  2729. }
  2730. _ACEOF
  2731. rm -f conftest.o conftest.obj
  2732. if { { ac_try="$ac_compile"
  2733. case "(($ac_try" in
  2734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2735. *) ac_try_echo=$ac_try;;
  2736. esac
  2737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2738. $as_echo "$ac_try_echo"; } >&5
  2739. (eval "$ac_compile") 2>&5
  2740. ac_status=$?
  2741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2742. test $ac_status = 0; }; then :
  2743. for ac_file in conftest.o conftest.obj conftest.*; do
  2744. test -f "$ac_file" || continue;
  2745. case $ac_file in
  2746. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2747. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2748. break;;
  2749. esac
  2750. done
  2751. else
  2752. $as_echo "$as_me: failed program was:" >&5
  2753. sed 's/^/| /' conftest.$ac_ext >&5
  2754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. fi
  2759. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2760. fi
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2762. $as_echo "$ac_cv_objext" >&6; }
  2763. OBJEXT=$ac_cv_objext
  2764. ac_objext=$OBJEXT
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2766. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2767. if ${ac_cv_c_compiler_gnu+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2771. /* end confdefs.h. */
  2772. int
  2773. main ()
  2774. {
  2775. #ifndef __GNUC__
  2776. choke me
  2777. #endif
  2778. ;
  2779. return 0;
  2780. }
  2781. _ACEOF
  2782. if ac_fn_c_try_compile "$LINENO"; then :
  2783. ac_compiler_gnu=yes
  2784. else
  2785. ac_compiler_gnu=no
  2786. fi
  2787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2788. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2789. fi
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2791. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2792. if test $ac_compiler_gnu = yes; then
  2793. GCC=yes
  2794. else
  2795. GCC=
  2796. fi
  2797. ac_test_CFLAGS=${CFLAGS+set}
  2798. ac_save_CFLAGS=$CFLAGS
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2800. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2801. if ${ac_cv_prog_cc_g+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. ac_save_c_werror_flag=$ac_c_werror_flag
  2805. ac_c_werror_flag=yes
  2806. ac_cv_prog_cc_g=no
  2807. CFLAGS="-g"
  2808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2809. /* end confdefs.h. */
  2810. int
  2811. main ()
  2812. {
  2813. ;
  2814. return 0;
  2815. }
  2816. _ACEOF
  2817. if ac_fn_c_try_compile "$LINENO"; then :
  2818. ac_cv_prog_cc_g=yes
  2819. else
  2820. CFLAGS=""
  2821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end confdefs.h. */
  2823. int
  2824. main ()
  2825. {
  2826. ;
  2827. return 0;
  2828. }
  2829. _ACEOF
  2830. if ac_fn_c_try_compile "$LINENO"; then :
  2831. else
  2832. ac_c_werror_flag=$ac_save_c_werror_flag
  2833. CFLAGS="-g"
  2834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2835. /* end confdefs.h. */
  2836. int
  2837. main ()
  2838. {
  2839. ;
  2840. return 0;
  2841. }
  2842. _ACEOF
  2843. if ac_fn_c_try_compile "$LINENO"; then :
  2844. ac_cv_prog_cc_g=yes
  2845. fi
  2846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2847. fi
  2848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2849. fi
  2850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2851. ac_c_werror_flag=$ac_save_c_werror_flag
  2852. fi
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2854. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2855. if test "$ac_test_CFLAGS" = set; then
  2856. CFLAGS=$ac_save_CFLAGS
  2857. elif test $ac_cv_prog_cc_g = yes; then
  2858. if test "$GCC" = yes; then
  2859. CFLAGS="-g -O2"
  2860. else
  2861. CFLAGS="-g"
  2862. fi
  2863. else
  2864. if test "$GCC" = yes; then
  2865. CFLAGS="-O2"
  2866. else
  2867. CFLAGS=
  2868. fi
  2869. fi
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2871. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2872. if ${ac_cv_prog_cc_c89+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. ac_cv_prog_cc_c89=no
  2876. ac_save_CC=$CC
  2877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end confdefs.h. */
  2879. #include <stdarg.h>
  2880. #include <stdio.h>
  2881. struct stat;
  2882. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2883. struct buf { int x; };
  2884. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2885. static char *e (p, i)
  2886. char **p;
  2887. int i;
  2888. {
  2889. return p[i];
  2890. }
  2891. static char *f (char * (*g) (char **, int), char **p, ...)
  2892. {
  2893. char *s;
  2894. va_list v;
  2895. va_start (v,p);
  2896. s = g (p, va_arg (v,int));
  2897. va_end (v);
  2898. return s;
  2899. }
  2900. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2901. function prototypes and stuff, but not '\xHH' hex character constants.
  2902. These don't provoke an error unfortunately, instead are silently treated
  2903. as 'x'. The following induces an error, until -std is added to get
  2904. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2905. array size at least. It's necessary to write '\x00'==0 to get something
  2906. that's true only with -std. */
  2907. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2908. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2909. inside strings and character constants. */
  2910. #define FOO(x) 'x'
  2911. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2912. int test (int i, double x);
  2913. struct s1 {int (*f) (int a);};
  2914. struct s2 {int (*f) (double a);};
  2915. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2916. int argc;
  2917. char **argv;
  2918. int
  2919. main ()
  2920. {
  2921. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2922. ;
  2923. return 0;
  2924. }
  2925. _ACEOF
  2926. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2927. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2928. do
  2929. CC="$ac_save_CC $ac_arg"
  2930. if ac_fn_c_try_compile "$LINENO"; then :
  2931. ac_cv_prog_cc_c89=$ac_arg
  2932. fi
  2933. rm -f core conftest.err conftest.$ac_objext
  2934. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2935. done
  2936. rm -f conftest.$ac_ext
  2937. CC=$ac_save_CC
  2938. fi
  2939. # AC_CACHE_VAL
  2940. case "x$ac_cv_prog_cc_c89" in
  2941. x)
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2943. $as_echo "none needed" >&6; } ;;
  2944. xno)
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2946. $as_echo "unsupported" >&6; } ;;
  2947. *)
  2948. CC="$CC $ac_cv_prog_cc_c89"
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2950. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2951. esac
  2952. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2953. fi
  2954. ac_ext=c
  2955. ac_cpp='$CPP $CPPFLAGS'
  2956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2959. ac_ext=c
  2960. ac_cpp='$CPP $CPPFLAGS'
  2961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2965. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2966. # On Suns, sometimes $CPP names a directory.
  2967. if test -n "$CPP" && test -d "$CPP"; then
  2968. CPP=
  2969. fi
  2970. if test -z "$CPP"; then
  2971. if ${ac_cv_prog_CPP+:} false; then :
  2972. $as_echo_n "(cached) " >&6
  2973. else
  2974. # Double quotes because CPP needs to be expanded
  2975. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2976. do
  2977. ac_preproc_ok=false
  2978. for ac_c_preproc_warn_flag in '' yes
  2979. do
  2980. # Use a header file that comes with gcc, so configuring glibc
  2981. # with a fresh cross-compiler works.
  2982. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2983. # <limits.h> exists even on freestanding compilers.
  2984. # On the NeXT, cc -E runs the code through the compiler's parser,
  2985. # not just through cpp. "Syntax error" is here to catch this case.
  2986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2987. /* end confdefs.h. */
  2988. #ifdef __STDC__
  2989. # include <limits.h>
  2990. #else
  2991. # include <assert.h>
  2992. #endif
  2993. Syntax error
  2994. _ACEOF
  2995. if ac_fn_c_try_cpp "$LINENO"; then :
  2996. else
  2997. # Broken: fails on valid input.
  2998. continue
  2999. fi
  3000. rm -f conftest.err conftest.i conftest.$ac_ext
  3001. # OK, works on sane cases. Now check whether nonexistent headers
  3002. # can be detected and how.
  3003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3004. /* end confdefs.h. */
  3005. #include <ac_nonexistent.h>
  3006. _ACEOF
  3007. if ac_fn_c_try_cpp "$LINENO"; then :
  3008. # Broken: success on invalid input.
  3009. continue
  3010. else
  3011. # Passes both tests.
  3012. ac_preproc_ok=:
  3013. break
  3014. fi
  3015. rm -f conftest.err conftest.i conftest.$ac_ext
  3016. done
  3017. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3018. rm -f conftest.i conftest.err conftest.$ac_ext
  3019. if $ac_preproc_ok; then :
  3020. break
  3021. fi
  3022. done
  3023. ac_cv_prog_CPP=$CPP
  3024. fi
  3025. CPP=$ac_cv_prog_CPP
  3026. else
  3027. ac_cv_prog_CPP=$CPP
  3028. fi
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3030. $as_echo "$CPP" >&6; }
  3031. ac_preproc_ok=false
  3032. for ac_c_preproc_warn_flag in '' yes
  3033. do
  3034. # Use a header file that comes with gcc, so configuring glibc
  3035. # with a fresh cross-compiler works.
  3036. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3037. # <limits.h> exists even on freestanding compilers.
  3038. # On the NeXT, cc -E runs the code through the compiler's parser,
  3039. # not just through cpp. "Syntax error" is here to catch this case.
  3040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3041. /* end confdefs.h. */
  3042. #ifdef __STDC__
  3043. # include <limits.h>
  3044. #else
  3045. # include <assert.h>
  3046. #endif
  3047. Syntax error
  3048. _ACEOF
  3049. if ac_fn_c_try_cpp "$LINENO"; then :
  3050. else
  3051. # Broken: fails on valid input.
  3052. continue
  3053. fi
  3054. rm -f conftest.err conftest.i conftest.$ac_ext
  3055. # OK, works on sane cases. Now check whether nonexistent headers
  3056. # can be detected and how.
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. #include <ac_nonexistent.h>
  3060. _ACEOF
  3061. if ac_fn_c_try_cpp "$LINENO"; then :
  3062. # Broken: success on invalid input.
  3063. continue
  3064. else
  3065. # Passes both tests.
  3066. ac_preproc_ok=:
  3067. break
  3068. fi
  3069. rm -f conftest.err conftest.i conftest.$ac_ext
  3070. done
  3071. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3072. rm -f conftest.i conftest.err conftest.$ac_ext
  3073. if $ac_preproc_ok; then :
  3074. else
  3075. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3077. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3078. See \`config.log' for more details" "$LINENO" 5; }
  3079. fi
  3080. ac_ext=c
  3081. ac_cpp='$CPP $CPPFLAGS'
  3082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3085. ac_aux_dir=
  3086. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3087. if test -f "$ac_dir/install-sh"; then
  3088. ac_aux_dir=$ac_dir
  3089. ac_install_sh="$ac_aux_dir/install-sh -c"
  3090. break
  3091. elif test -f "$ac_dir/install.sh"; then
  3092. ac_aux_dir=$ac_dir
  3093. ac_install_sh="$ac_aux_dir/install.sh -c"
  3094. break
  3095. elif test -f "$ac_dir/shtool"; then
  3096. ac_aux_dir=$ac_dir
  3097. ac_install_sh="$ac_aux_dir/shtool install -c"
  3098. break
  3099. fi
  3100. done
  3101. if test -z "$ac_aux_dir"; then
  3102. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3103. fi
  3104. # These three variables are undocumented and unsupported,
  3105. # and are intended to be withdrawn in a future Autoconf release.
  3106. # They can cause serious problems if a builder's source tree is in a directory
  3107. # whose full name contains unusual characters.
  3108. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3109. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3110. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3111. # Find a good install program. We prefer a C program (faster),
  3112. # so one script is as good as another. But avoid the broken or
  3113. # incompatible versions:
  3114. # SysV /etc/install, /usr/sbin/install
  3115. # SunOS /usr/etc/install
  3116. # IRIX /sbin/install
  3117. # AIX /bin/install
  3118. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3119. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3120. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3121. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3122. # OS/2's system install, which has a completely different semantic
  3123. # ./install, which can be erroneously created by make from ./install.sh.
  3124. # Reject install programs that cannot install multiple files.
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3126. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3127. if test -z "$INSTALL"; then
  3128. if ${ac_cv_path_install+:} false; then :
  3129. $as_echo_n "(cached) " >&6
  3130. else
  3131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3132. for as_dir in $PATH
  3133. do
  3134. IFS=$as_save_IFS
  3135. test -z "$as_dir" && as_dir=.
  3136. # Account for people who put trailing slashes in PATH elements.
  3137. case $as_dir/ in #((
  3138. ./ | .// | /[cC]/* | \
  3139. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3140. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3141. /usr/ucb/* ) ;;
  3142. *)
  3143. # OSF1 and SCO ODT 3.0 have their own names for install.
  3144. # Don't use installbsd from OSF since it installs stuff as root
  3145. # by default.
  3146. for ac_prog in ginstall scoinst install; do
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3149. if test $ac_prog = install &&
  3150. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3151. # AIX install. It has an incompatible calling convention.
  3152. :
  3153. elif test $ac_prog = install &&
  3154. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3155. # program-specific install script used by HP pwplus--don't use.
  3156. :
  3157. else
  3158. rm -rf conftest.one conftest.two conftest.dir
  3159. echo one > conftest.one
  3160. echo two > conftest.two
  3161. mkdir conftest.dir
  3162. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3163. test -s conftest.one && test -s conftest.two &&
  3164. test -s conftest.dir/conftest.one &&
  3165. test -s conftest.dir/conftest.two
  3166. then
  3167. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3168. break 3
  3169. fi
  3170. fi
  3171. fi
  3172. done
  3173. done
  3174. ;;
  3175. esac
  3176. done
  3177. IFS=$as_save_IFS
  3178. rm -rf conftest.one conftest.two conftest.dir
  3179. fi
  3180. if test "${ac_cv_path_install+set}" = set; then
  3181. INSTALL=$ac_cv_path_install
  3182. else
  3183. # As a last resort, use the slow shell script. Don't cache a
  3184. # value for INSTALL within a source directory, because that will
  3185. # break other packages using the cache if that directory is
  3186. # removed, or if the value is a relative name.
  3187. INSTALL=$ac_install_sh
  3188. fi
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3191. $as_echo "$INSTALL" >&6; }
  3192. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3193. # It thinks the first close brace ends the variable substitution.
  3194. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3195. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3196. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3197. if test -n "$ac_tool_prefix"; then
  3198. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3199. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3201. $as_echo_n "checking for $ac_word... " >&6; }
  3202. if ${ac_cv_prog_RANLIB+:} false; then :
  3203. $as_echo_n "(cached) " >&6
  3204. else
  3205. if test -n "$RANLIB"; then
  3206. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3207. else
  3208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3209. for as_dir in $PATH
  3210. do
  3211. IFS=$as_save_IFS
  3212. test -z "$as_dir" && as_dir=.
  3213. for ac_exec_ext in '' $ac_executable_extensions; do
  3214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3215. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3217. break 2
  3218. fi
  3219. done
  3220. done
  3221. IFS=$as_save_IFS
  3222. fi
  3223. fi
  3224. RANLIB=$ac_cv_prog_RANLIB
  3225. if test -n "$RANLIB"; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3227. $as_echo "$RANLIB" >&6; }
  3228. else
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. $as_echo "no" >&6; }
  3231. fi
  3232. fi
  3233. if test -z "$ac_cv_prog_RANLIB"; then
  3234. ac_ct_RANLIB=$RANLIB
  3235. # Extract the first word of "ranlib", so it can be a program name with args.
  3236. set dummy ranlib; ac_word=$2
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3238. $as_echo_n "checking for $ac_word... " >&6; }
  3239. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3240. $as_echo_n "(cached) " >&6
  3241. else
  3242. if test -n "$ac_ct_RANLIB"; then
  3243. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3244. else
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. test -z "$as_dir" && as_dir=.
  3250. for ac_exec_ext in '' $ac_executable_extensions; do
  3251. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3252. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3254. break 2
  3255. fi
  3256. done
  3257. done
  3258. IFS=$as_save_IFS
  3259. fi
  3260. fi
  3261. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3262. if test -n "$ac_ct_RANLIB"; then
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3264. $as_echo "$ac_ct_RANLIB" >&6; }
  3265. else
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3267. $as_echo "no" >&6; }
  3268. fi
  3269. if test "x$ac_ct_RANLIB" = x; then
  3270. RANLIB=":"
  3271. else
  3272. case $cross_compiling:$ac_tool_warned in
  3273. yes:)
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3275. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3276. ac_tool_warned=yes ;;
  3277. esac
  3278. RANLIB=$ac_ct_RANLIB
  3279. fi
  3280. else
  3281. RANLIB="$ac_cv_prog_RANLIB"
  3282. fi
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3284. $as_echo_n "checking whether ln -s works... " >&6; }
  3285. LN_S=$as_ln_s
  3286. if test "$LN_S" = "ln -s"; then
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3288. $as_echo "yes" >&6; }
  3289. else
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3291. $as_echo "no, using $LN_S" >&6; }
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3294. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3295. if ${ac_cv_path_GREP+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. if test -z "$GREP"; then
  3299. ac_path_GREP_found=false
  3300. # Loop through the user's path and test for each of PROGNAME-LIST
  3301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3302. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3303. do
  3304. IFS=$as_save_IFS
  3305. test -z "$as_dir" && as_dir=.
  3306. for ac_prog in grep ggrep; do
  3307. for ac_exec_ext in '' $ac_executable_extensions; do
  3308. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3309. as_fn_executable_p "$ac_path_GREP" || continue
  3310. # Check for GNU ac_path_GREP and select it if it is found.
  3311. # Check for GNU $ac_path_GREP
  3312. case `"$ac_path_GREP" --version 2>&1` in
  3313. *GNU*)
  3314. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3315. *)
  3316. ac_count=0
  3317. $as_echo_n 0123456789 >"conftest.in"
  3318. while :
  3319. do
  3320. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3321. mv "conftest.tmp" "conftest.in"
  3322. cp "conftest.in" "conftest.nl"
  3323. $as_echo 'GREP' >> "conftest.nl"
  3324. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3325. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3326. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3327. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3328. # Best one so far, save it but keep looking for a better one
  3329. ac_cv_path_GREP="$ac_path_GREP"
  3330. ac_path_GREP_max=$ac_count
  3331. fi
  3332. # 10*(2^10) chars as input seems more than enough
  3333. test $ac_count -gt 10 && break
  3334. done
  3335. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3336. esac
  3337. $ac_path_GREP_found && break 3
  3338. done
  3339. done
  3340. done
  3341. IFS=$as_save_IFS
  3342. if test -z "$ac_cv_path_GREP"; then
  3343. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3344. fi
  3345. else
  3346. ac_cv_path_GREP=$GREP
  3347. fi
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3350. $as_echo "$ac_cv_path_GREP" >&6; }
  3351. GREP="$ac_cv_path_GREP"
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3353. $as_echo_n "checking for egrep... " >&6; }
  3354. if ${ac_cv_path_EGREP+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3358. then ac_cv_path_EGREP="$GREP -E"
  3359. else
  3360. if test -z "$EGREP"; then
  3361. ac_path_EGREP_found=false
  3362. # Loop through the user's path and test for each of PROGNAME-LIST
  3363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3364. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3365. do
  3366. IFS=$as_save_IFS
  3367. test -z "$as_dir" && as_dir=.
  3368. for ac_prog in egrep; do
  3369. for ac_exec_ext in '' $ac_executable_extensions; do
  3370. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3371. as_fn_executable_p "$ac_path_EGREP" || continue
  3372. # Check for GNU ac_path_EGREP and select it if it is found.
  3373. # Check for GNU $ac_path_EGREP
  3374. case `"$ac_path_EGREP" --version 2>&1` in
  3375. *GNU*)
  3376. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3377. *)
  3378. ac_count=0
  3379. $as_echo_n 0123456789 >"conftest.in"
  3380. while :
  3381. do
  3382. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3383. mv "conftest.tmp" "conftest.in"
  3384. cp "conftest.in" "conftest.nl"
  3385. $as_echo 'EGREP' >> "conftest.nl"
  3386. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3387. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3388. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3389. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3390. # Best one so far, save it but keep looking for a better one
  3391. ac_cv_path_EGREP="$ac_path_EGREP"
  3392. ac_path_EGREP_max=$ac_count
  3393. fi
  3394. # 10*(2^10) chars as input seems more than enough
  3395. test $ac_count -gt 10 && break
  3396. done
  3397. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3398. esac
  3399. $ac_path_EGREP_found && break 3
  3400. done
  3401. done
  3402. done
  3403. IFS=$as_save_IFS
  3404. if test -z "$ac_cv_path_EGREP"; then
  3405. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3406. fi
  3407. else
  3408. ac_cv_path_EGREP=$EGREP
  3409. fi
  3410. fi
  3411. fi
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3413. $as_echo "$ac_cv_path_EGREP" >&6; }
  3414. EGREP="$ac_cv_path_EGREP"
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3416. $as_echo_n "checking for ANSI C header files... " >&6; }
  3417. if ${ac_cv_header_stdc+:} false; then :
  3418. $as_echo_n "(cached) " >&6
  3419. else
  3420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end confdefs.h. */
  3422. #include <stdlib.h>
  3423. #include <stdarg.h>
  3424. #include <string.h>
  3425. #include <float.h>
  3426. int
  3427. main ()
  3428. {
  3429. ;
  3430. return 0;
  3431. }
  3432. _ACEOF
  3433. if ac_fn_c_try_compile "$LINENO"; then :
  3434. ac_cv_header_stdc=yes
  3435. else
  3436. ac_cv_header_stdc=no
  3437. fi
  3438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3439. if test $ac_cv_header_stdc = yes; then
  3440. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3442. /* end confdefs.h. */
  3443. #include <string.h>
  3444. _ACEOF
  3445. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3446. $EGREP "memchr" >/dev/null 2>&1; then :
  3447. else
  3448. ac_cv_header_stdc=no
  3449. fi
  3450. rm -f conftest*
  3451. fi
  3452. if test $ac_cv_header_stdc = yes; then
  3453. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3455. /* end confdefs.h. */
  3456. #include <stdlib.h>
  3457. _ACEOF
  3458. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3459. $EGREP "free" >/dev/null 2>&1; then :
  3460. else
  3461. ac_cv_header_stdc=no
  3462. fi
  3463. rm -f conftest*
  3464. fi
  3465. if test $ac_cv_header_stdc = yes; then
  3466. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3467. if test "$cross_compiling" = yes; then :
  3468. :
  3469. else
  3470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3471. /* end confdefs.h. */
  3472. #include <ctype.h>
  3473. #include <stdlib.h>
  3474. #if ((' ' & 0x0FF) == 0x020)
  3475. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3476. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3477. #else
  3478. # define ISLOWER(c) \
  3479. (('a' <= (c) && (c) <= 'i') \
  3480. || ('j' <= (c) && (c) <= 'r') \
  3481. || ('s' <= (c) && (c) <= 'z'))
  3482. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3483. #endif
  3484. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3485. int
  3486. main ()
  3487. {
  3488. int i;
  3489. for (i = 0; i < 256; i++)
  3490. if (XOR (islower (i), ISLOWER (i))
  3491. || toupper (i) != TOUPPER (i))
  3492. return 2;
  3493. return 0;
  3494. }
  3495. _ACEOF
  3496. if ac_fn_c_try_run "$LINENO"; then :
  3497. else
  3498. ac_cv_header_stdc=no
  3499. fi
  3500. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3501. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3502. fi
  3503. fi
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3506. $as_echo "$ac_cv_header_stdc" >&6; }
  3507. if test $ac_cv_header_stdc = yes; then
  3508. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3509. fi
  3510. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3511. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3512. inttypes.h stdint.h unistd.h
  3513. do :
  3514. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3515. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3516. "
  3517. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3518. cat >>confdefs.h <<_ACEOF
  3519. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3520. _ACEOF
  3521. fi
  3522. done
  3523. for ac_header in unistd.h stdint.h fcntl.h
  3524. do :
  3525. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3526. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3527. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3528. cat >>confdefs.h <<_ACEOF
  3529. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3530. _ACEOF
  3531. fi
  3532. done
  3533. for ac_header in elf.h sys/elf.h link.h sys/link.h
  3534. do :
  3535. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3536. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3537. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3538. cat >>confdefs.h <<_ACEOF
  3539. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3540. _ACEOF
  3541. fi
  3542. done
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} can compile elf.h" >&5
  3544. $as_echo_n "checking if ${CC} can compile elf.h... " >&6; }
  3545. if ${libelf_cv_elf_h_works+:} false; then :
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. #if HAVE_ELF_H
  3551. #include <elf.h>
  3552. #elif HAVE_SYS_ELF_H
  3553. #include <sys/elf.h>
  3554. #endif
  3555. int
  3556. main ()
  3557. {
  3558. Elf32_Ehdr dummy
  3559. ;
  3560. return 0;
  3561. }
  3562. _ACEOF
  3563. if ac_fn_c_try_compile "$LINENO"; then :
  3564. libelf_cv_elf_h_works=yes
  3565. else
  3566. libelf_cv_elf_h_works=no
  3567. fi
  3568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3569. fi
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_elf_h_works" >&5
  3571. $as_echo "$libelf_cv_elf_h_works" >&6; }
  3572. if test "$libelf_cv_elf_h_works" = no; then
  3573. ac_cv_header_elf_h=no
  3574. ac_cv_header_sys_elf_h=no
  3575. fi
  3576. if test "$ac_cv_header_elf_h" = yes; then
  3577. $as_echo "#define __LIBELF_HEADER_ELF_H <elf.h>" >>confdefs.h
  3578. elif test "$ac_cv_header_sys_elf_h" = yes; then
  3579. $as_echo "#define __LIBELF_HEADER_ELF_H <sys/elf.h>" >>confdefs.h
  3580. fi
  3581. for ac_header in ar.h libelf.h nlist.h gelf.h
  3582. do :
  3583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3584. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3585. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3586. cat >>confdefs.h <<_ACEOF
  3587. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3588. _ACEOF
  3589. fi
  3590. done
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install <libelf.h>, <nlist.h> and <gelf.h>" >&5
  3592. $as_echo_n "checking whether to install <libelf.h>, <nlist.h> and <gelf.h>... " >&6; }
  3593. # Check whether --enable-compat was given.
  3594. if test "${enable_compat+set}" = set; then :
  3595. enableval=$enable_compat; DO_COMPAT="$enableval"
  3596. else
  3597. if test "$ac_cv_header_libelf_h$ac_cv_header_nlist_h$ac_cv_header_gelf_h" = yesyesyes
  3598. then DO_COMPAT=no
  3599. else DO_COMPAT=yes
  3600. fi
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DO_COMPAT" >&5
  3603. $as_echo "$DO_COMPAT" >&6; }
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3605. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3606. if ${ac_cv_c_const+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3610. /* end confdefs.h. */
  3611. int
  3612. main ()
  3613. {
  3614. #ifndef __cplusplus
  3615. /* Ultrix mips cc rejects this sort of thing. */
  3616. typedef int charset[2];
  3617. const charset cs = { 0, 0 };
  3618. /* SunOS 4.1.1 cc rejects this. */
  3619. char const *const *pcpcc;
  3620. char **ppc;
  3621. /* NEC SVR4.0.2 mips cc rejects this. */
  3622. struct point {int x, y;};
  3623. static struct point const zero = {0,0};
  3624. /* AIX XL C 1.02.0.0 rejects this.
  3625. It does not let you subtract one const X* pointer from another in
  3626. an arm of an if-expression whose if-part is not a constant
  3627. expression */
  3628. const char *g = "string";
  3629. pcpcc = &g + (g ? g-g : 0);
  3630. /* HPUX 7.0 cc rejects these. */
  3631. ++pcpcc;
  3632. ppc = (char**) pcpcc;
  3633. pcpcc = (char const *const *) ppc;
  3634. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3635. char tx;
  3636. char *t = &tx;
  3637. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3638. *t++ = 0;
  3639. if (s) return 0;
  3640. }
  3641. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3642. int x[] = {25, 17};
  3643. const int *foo = &x[0];
  3644. ++foo;
  3645. }
  3646. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3647. typedef const int *iptr;
  3648. iptr p = 0;
  3649. ++p;
  3650. }
  3651. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  3652. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3653. struct s { int j; const int *ap[3]; } bx;
  3654. struct s *b = &bx; b->j = 5;
  3655. }
  3656. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3657. const int foo = 10;
  3658. if (!foo) return 0;
  3659. }
  3660. return !cs[0] && !zero.x;
  3661. #endif
  3662. ;
  3663. return 0;
  3664. }
  3665. _ACEOF
  3666. if ac_fn_c_try_compile "$LINENO"; then :
  3667. ac_cv_c_const=yes
  3668. else
  3669. ac_cv_c_const=no
  3670. fi
  3671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3674. $as_echo "$ac_cv_c_const" >&6; }
  3675. if test $ac_cv_c_const = no; then
  3676. $as_echo "#define const /**/" >>confdefs.h
  3677. fi
  3678. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  3679. if test "x$ac_cv_type_off_t" = xyes; then :
  3680. else
  3681. cat >>confdefs.h <<_ACEOF
  3682. #define off_t long int
  3683. _ACEOF
  3684. fi
  3685. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3686. if test "x$ac_cv_type_size_t" = xyes; then :
  3687. else
  3688. cat >>confdefs.h <<_ACEOF
  3689. #define size_t unsigned int
  3690. _ACEOF
  3691. fi
  3692. # The cast to long int works around a bug in the HP C Compiler
  3693. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3694. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3695. # This bug is HP SR number 8606223364.
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  3697. $as_echo_n "checking size of short... " >&6; }
  3698. if ${ac_cv_sizeof_short+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  3702. else
  3703. if test "$ac_cv_type_short" = yes; then
  3704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3706. as_fn_error 77 "cannot compute sizeof (short)
  3707. See \`config.log' for more details" "$LINENO" 5; }
  3708. else
  3709. ac_cv_sizeof_short=0
  3710. fi
  3711. fi
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  3714. $as_echo "$ac_cv_sizeof_short" >&6; }
  3715. cat >>confdefs.h <<_ACEOF
  3716. #define SIZEOF_SHORT $ac_cv_sizeof_short
  3717. _ACEOF
  3718. # The cast to long int works around a bug in the HP C Compiler
  3719. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3720. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3721. # This bug is HP SR number 8606223364.
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3723. $as_echo_n "checking size of int... " >&6; }
  3724. if ${ac_cv_sizeof_int+:} false; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3728. else
  3729. if test "$ac_cv_type_int" = yes; then
  3730. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3731. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3732. as_fn_error 77 "cannot compute sizeof (int)
  3733. See \`config.log' for more details" "$LINENO" 5; }
  3734. else
  3735. ac_cv_sizeof_int=0
  3736. fi
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3740. $as_echo "$ac_cv_sizeof_int" >&6; }
  3741. cat >>confdefs.h <<_ACEOF
  3742. #define SIZEOF_INT $ac_cv_sizeof_int
  3743. _ACEOF
  3744. # The cast to long int works around a bug in the HP C Compiler
  3745. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3746. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3747. # This bug is HP SR number 8606223364.
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3749. $as_echo_n "checking size of long... " >&6; }
  3750. if ${ac_cv_sizeof_long+:} false; then :
  3751. $as_echo_n "(cached) " >&6
  3752. else
  3753. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3754. else
  3755. if test "$ac_cv_type_long" = yes; then
  3756. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3758. as_fn_error 77 "cannot compute sizeof (long)
  3759. See \`config.log' for more details" "$LINENO" 5; }
  3760. else
  3761. ac_cv_sizeof_long=0
  3762. fi
  3763. fi
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3766. $as_echo "$ac_cv_sizeof_long" >&6; }
  3767. cat >>confdefs.h <<_ACEOF
  3768. #define SIZEOF_LONG $ac_cv_sizeof_long
  3769. _ACEOF
  3770. # The cast to long int works around a bug in the HP C Compiler
  3771. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3772. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3773. # This bug is HP SR number 8606223364.
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  3775. $as_echo_n "checking size of long long... " >&6; }
  3776. if ${ac_cv_sizeof_long_long+:} false; then :
  3777. $as_echo_n "(cached) " >&6
  3778. else
  3779. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  3780. else
  3781. if test "$ac_cv_type_long_long" = yes; then
  3782. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3783. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3784. as_fn_error 77 "cannot compute sizeof (long long)
  3785. See \`config.log' for more details" "$LINENO" 5; }
  3786. else
  3787. ac_cv_sizeof_long_long=0
  3788. fi
  3789. fi
  3790. fi
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  3792. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  3793. cat >>confdefs.h <<_ACEOF
  3794. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  3795. _ACEOF
  3796. # Windows port
  3797. # The cast to long int works around a bug in the HP C Compiler
  3798. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3799. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3800. # This bug is HP SR number 8606223364.
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
  3802. $as_echo_n "checking size of __int64... " >&6; }
  3803. if ${ac_cv_sizeof___int64+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
  3807. else
  3808. if test "$ac_cv_type___int64" = yes; then
  3809. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3810. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3811. as_fn_error 77 "cannot compute sizeof (__int64)
  3812. See \`config.log' for more details" "$LINENO" 5; }
  3813. else
  3814. ac_cv_sizeof___int64=0
  3815. fi
  3816. fi
  3817. fi
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
  3819. $as_echo "$ac_cv_sizeof___int64" >&6; }
  3820. cat >>confdefs.h <<_ACEOF
  3821. #define SIZEOF___INT64 $ac_cv_sizeof___int64
  3822. _ACEOF
  3823. if test "$ac_cv_header_elf_h" = yes \
  3824. || test "$ac_cv_header_sys_elf_h" = yes; then
  3825. # Slowaris declares Elf32_Dyn in <link.h>.
  3826. # QNX declares Elf32_Dyn in <sys/link.h>.
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct Elf32_Dyn" >&5
  3828. $as_echo_n "checking for struct Elf32_Dyn... " >&6; }
  3829. if ${libelf_cv_struct_elf32_dyn+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3833. /* end confdefs.h. */
  3834. #include __LIBELF_HEADER_ELF_H
  3835. int
  3836. main ()
  3837. {
  3838. Elf32_Dyn x
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. libelf_cv_struct_elf32_dyn=yes
  3845. else
  3846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3847. /* end confdefs.h. */
  3848. #include <link.h>
  3849. int
  3850. main ()
  3851. {
  3852. Elf32_Dyn x
  3853. ;
  3854. return 0;
  3855. }
  3856. _ACEOF
  3857. if ac_fn_c_try_compile "$LINENO"; then :
  3858. libelf_cv_struct_elf32_dyn=link.h
  3859. else
  3860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3861. /* end confdefs.h. */
  3862. #include <sys/link.h>
  3863. int
  3864. main ()
  3865. {
  3866. Elf32_Dyn x
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. if ac_fn_c_try_compile "$LINENO"; then :
  3872. libelf_cv_struct_elf32_dyn=sys/link.h
  3873. else
  3874. libelf_cv_struct_elf32_dyn=no
  3875. fi
  3876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3877. fi
  3878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3879. fi
  3880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3881. fi
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_struct_elf32_dyn" >&5
  3883. $as_echo "$libelf_cv_struct_elf32_dyn" >&6; }
  3884. if test "$libelf_cv_struct_elf32_dyn" = link.h; then
  3885. $as_echo "#define __LIBELF_NEED_LINK_H 1" >>confdefs.h
  3886. elif test "$libelf_cv_struct_elf32_dyn" = sys/link.h; then
  3887. $as_echo "#define __LIBELF_NEED_SYS_LINK_H 1" >>confdefs.h
  3888. elif test "$libelf_cv_struct_elf32_dyn" = no; then
  3889. as_fn_error $? "no declaration for Elf32_Dyn" "$LINENO" 5
  3890. fi
  3891. # Linux declares struct nlist in <elf.h>.
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlist in elf.h" >&5
  3893. $as_echo_n "checking for struct nlist in elf.h... " >&6; }
  3894. if ${libelf_cv_struct_nlist+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3898. /* end confdefs.h. */
  3899. #include __LIBELF_HEADER_ELF_H
  3900. int
  3901. main ()
  3902. {
  3903. struct nlist nl
  3904. ;
  3905. return 0;
  3906. }
  3907. _ACEOF
  3908. if ac_fn_c_try_compile "$LINENO"; then :
  3909. libelf_cv_struct_nlist=yes
  3910. else
  3911. libelf_cv_struct_nlist=no
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3914. fi
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_struct_nlist" >&5
  3916. $as_echo "$libelf_cv_struct_nlist" >&6; }
  3917. if test "$libelf_cv_struct_nlist" = yes; then
  3918. $as_echo "#define HAVE_STRUCT_NLIST_DECLARATION 1" >>confdefs.h
  3919. fi
  3920. # Check for 64-bit data types.
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct Elf64_Ehdr" >&5
  3922. $as_echo_n "checking for struct Elf64_Ehdr... " >&6; }
  3923. if ${libelf_cv_struct_elf64_ehdr+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3927. /* end confdefs.h. */
  3928. #include __LIBELF_HEADER_ELF_H
  3929. int
  3930. main ()
  3931. {
  3932. Elf64_Ehdr x
  3933. ;
  3934. return 0;
  3935. }
  3936. _ACEOF
  3937. if ac_fn_c_try_compile "$LINENO"; then :
  3938. libelf_cv_struct_elf64_ehdr=yes
  3939. else
  3940. libelf_cv_struct_elf64_ehdr=no
  3941. fi
  3942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_struct_elf64_ehdr" >&5
  3945. $as_echo "$libelf_cv_struct_elf64_ehdr" >&6; }
  3946. # Linux lacks typedefs for scalar ELF64_* types.
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Elf64_Addr" >&5
  3948. $as_echo_n "checking for Elf64_Addr... " >&6; }
  3949. if ${libelf_cv_type_elf64_addr+:} false; then :
  3950. $as_echo_n "(cached) " >&6
  3951. else
  3952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3953. /* end confdefs.h. */
  3954. #include __LIBELF_HEADER_ELF_H
  3955. int
  3956. main ()
  3957. {
  3958. Elf64_Addr x
  3959. ;
  3960. return 0;
  3961. }
  3962. _ACEOF
  3963. if ac_fn_c_try_compile "$LINENO"; then :
  3964. libelf_cv_type_elf64_addr=yes
  3965. else
  3966. libelf_cv_type_elf64_addr=no
  3967. fi
  3968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3969. fi
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_type_elf64_addr" >&5
  3971. $as_echo "$libelf_cv_type_elf64_addr" >&6; }
  3972. # IRIX' struct Elf64_Rel is slightly different. Ugh.
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct Elf64_Rel" >&5
  3974. $as_echo_n "checking for struct Elf64_Rel... " >&6; }
  3975. if ${libelf_cv_struct_elf64_rel+:} false; then :
  3976. $as_echo_n "(cached) " >&6
  3977. else
  3978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3979. /* end confdefs.h. */
  3980. #include __LIBELF_HEADER_ELF_H
  3981. int
  3982. main ()
  3983. {
  3984. Elf64_Rel x; x.r_info = 1
  3985. ;
  3986. return 0;
  3987. }
  3988. _ACEOF
  3989. if ac_fn_c_try_compile "$LINENO"; then :
  3990. libelf_cv_struct_elf64_rel=yes
  3991. else
  3992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3993. /* end confdefs.h. */
  3994. #include __LIBELF_HEADER_ELF_H
  3995. int
  3996. main ()
  3997. {
  3998. Elf64_Rel x; x.r_sym = 1
  3999. ;
  4000. return 0;
  4001. }
  4002. _ACEOF
  4003. if ac_fn_c_try_compile "$LINENO"; then :
  4004. libelf_cv_struct_elf64_rel=irix
  4005. else
  4006. libelf_cv_struct_elf64_rel=no
  4007. fi
  4008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4009. fi
  4010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4011. fi
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_struct_elf64_rel" >&5
  4013. $as_echo "$libelf_cv_struct_elf64_rel" >&6; }
  4014. case "$libelf_cv_struct_elf64_ehdr:\
  4015. $libelf_cv_type_elf64_addr:\
  4016. $libelf_cv_struct_elf64_rel" in
  4017. yes:yes:yes)
  4018. libelf_64bit=yes;;
  4019. yes:yes:irix)
  4020. $as_echo "#define __LIBELF64_IRIX 1" >>confdefs.h
  4021. libelf_64bit=yes;;
  4022. yes:no:yes)
  4023. $as_echo "#define __LIBELF64_LINUX 1" >>confdefs.h
  4024. libelf_64bit=yes;;
  4025. *)
  4026. libelf_64bit=no;;
  4027. esac
  4028. # Check for symbol versioning definitions
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Elf32_Verdef" >&5
  4030. $as_echo_n "checking for Elf32_Verdef... " >&6; }
  4031. if ${libelf_cv_verdef32+:} false; then :
  4032. $as_echo_n "(cached) " >&6
  4033. else
  4034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4035. /* end confdefs.h. */
  4036. #include __LIBELF_HEADER_ELF_H
  4037. #if __LIBELF_NEED_LINK_H
  4038. #include <link.h> /* Solaris wants this */
  4039. #endif
  4040. int
  4041. main ()
  4042. {
  4043. struct {
  4044. Elf32_Verdef vd;
  4045. Elf32_Verdaux vda;
  4046. Elf32_Verneed vn;
  4047. Elf32_Vernaux vna;
  4048. } x
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. if ac_fn_c_try_compile "$LINENO"; then :
  4054. libelf_cv_verdef32=yes
  4055. else
  4056. libelf_cv_verdef32=no
  4057. fi
  4058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4059. fi
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_verdef32" >&5
  4061. $as_echo "$libelf_cv_verdef32" >&6; }
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Elf64_Verdef" >&5
  4063. $as_echo_n "checking for Elf64_Verdef... " >&6; }
  4064. if ${libelf_cv_verdef64+:} false; then :
  4065. $as_echo_n "(cached) " >&6
  4066. else
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. #include __LIBELF_HEADER_ELF_H
  4070. #if __LIBELF_NEED_LINK_H
  4071. #include <link.h> /* Solaris wants this */
  4072. #endif
  4073. int
  4074. main ()
  4075. {
  4076. struct {
  4077. Elf64_Verdef vd;
  4078. Elf64_Verdaux vda;
  4079. Elf64_Verneed vn;
  4080. Elf64_Vernaux vna;
  4081. } x
  4082. ;
  4083. return 0;
  4084. }
  4085. _ACEOF
  4086. if ac_fn_c_try_compile "$LINENO"; then :
  4087. libelf_cv_verdef64=yes
  4088. else
  4089. libelf_cv_verdef64=no
  4090. fi
  4091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4092. fi
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_verdef64" >&5
  4094. $as_echo "$libelf_cv_verdef64" >&6; }
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHT_SUNW_verdef" >&5
  4096. $as_echo_n "checking for SHT_SUNW_verdef... " >&6; }
  4097. if ${libelf_cv_sun_verdef+:} false; then :
  4098. $as_echo_n "(cached) " >&6
  4099. else
  4100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4101. /* end confdefs.h. */
  4102. #include __LIBELF_HEADER_ELF_H
  4103. int
  4104. main ()
  4105. {
  4106. Elf32_Word x = SHT_SUNW_verdef + SHT_SUNW_verneed + SHT_SUNW_versym
  4107. ;
  4108. return 0;
  4109. }
  4110. _ACEOF
  4111. if ac_fn_c_try_compile "$LINENO"; then :
  4112. libelf_cv_sun_verdef=yes
  4113. else
  4114. libelf_cv_sun_verdef=no
  4115. fi
  4116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_sun_verdef" >&5
  4119. $as_echo "$libelf_cv_sun_verdef" >&6; }
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHT_GNU_verdef" >&5
  4121. $as_echo_n "checking for SHT_GNU_verdef... " >&6; }
  4122. if ${libelf_cv_gnu_verdef+:} false; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. #include __LIBELF_HEADER_ELF_H
  4128. int
  4129. main ()
  4130. {
  4131. Elf32_Word x = SHT_GNU_verdef + SHT_GNU_verneed + SHT_GNU_versym
  4132. ;
  4133. return 0;
  4134. }
  4135. _ACEOF
  4136. if ac_fn_c_try_compile "$LINENO"; then :
  4137. libelf_cv_gnu_verdef=yes
  4138. else
  4139. libelf_cv_gnu_verdef=no
  4140. fi
  4141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4142. fi
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_gnu_verdef" >&5
  4144. $as_echo "$libelf_cv_gnu_verdef" >&6; }
  4145. else
  4146. # lib/elf_repl.h supports 64-bit
  4147. libelf_64bit=yes
  4148. # lib/elf_repl.h supports symbol versioning
  4149. libelf_cv_verdef32=yes
  4150. libelf_cv_verdef64=yes
  4151. libelf_cv_sun_verdef=yes
  4152. libelf_cv_gnu_verdef=yes
  4153. fi
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer" >&5
  4155. $as_echo_n "checking for 64-bit integer... " >&6; }
  4156. if ${libelf_cv_int64+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. if test "$ac_cv_sizeof_long" = 8; then
  4160. libelf_cv_int64='long'
  4161. elif test "$ac_cv_sizeof___int64" = 8; then
  4162. libelf_cv_int64='__int64'
  4163. elif test "$ac_cv_sizeof_long_long" = 8; then
  4164. libelf_cv_int64='long long'
  4165. else
  4166. libelf_cv_int64=no
  4167. fi
  4168. fi
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_int64" >&5
  4170. $as_echo "$libelf_cv_int64" >&6; }
  4171. if test "$libelf_cv_int64" = no; then
  4172. libelf_64bit=no
  4173. else
  4174. cat >>confdefs.h <<_ACEOF
  4175. #define __libelf_i64_t $libelf_cv_int64
  4176. _ACEOF
  4177. cat >>confdefs.h <<_ACEOF
  4178. #define __libelf_u64_t unsigned $libelf_cv_int64
  4179. _ACEOF
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit integer" >&5
  4182. $as_echo_n "checking for 32-bit integer... " >&6; }
  4183. if ${libelf_cv_int32+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. if test "$ac_cv_sizeof_int" = 4; then
  4187. libelf_cv_int32='int'
  4188. elif test "$ac_cv_sizeof_long" = 4; then
  4189. libelf_cv_int32='long'
  4190. else
  4191. libelf_cv_int32=no
  4192. fi
  4193. fi
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_int32" >&5
  4195. $as_echo "$libelf_cv_int32" >&6; }
  4196. if test "$libelf_cv_int32" = no; then
  4197. as_fn_error $? "neither int nor long is 32-bit" "$LINENO" 5
  4198. else
  4199. cat >>confdefs.h <<_ACEOF
  4200. #define __libelf_i32_t $libelf_cv_int32
  4201. _ACEOF
  4202. cat >>confdefs.h <<_ACEOF
  4203. #define __libelf_u32_t unsigned $libelf_cv_int32
  4204. _ACEOF
  4205. fi
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit integer" >&5
  4207. $as_echo_n "checking for 16-bit integer... " >&6; }
  4208. if ${libelf_cv_int16+:} false; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. if test "$ac_cv_sizeof_short" = 2; then
  4212. libelf_cv_int16='short'
  4213. elif test "$ac_cv_sizeof_int" = 2; then
  4214. libelf_cv_int16='int'
  4215. else
  4216. libelf_cv_int16=no
  4217. fi
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_int16" >&5
  4220. $as_echo "$libelf_cv_int16" >&6; }
  4221. if test "$libelf_cv_int16" = no; then
  4222. as_fn_error $? "neither short nor int is 16-bit" "$LINENO" 5
  4223. else
  4224. cat >>confdefs.h <<_ACEOF
  4225. #define __libelf_i16_t $libelf_cv_int16
  4226. _ACEOF
  4227. cat >>confdefs.h <<_ACEOF
  4228. #define __libelf_u16_t unsigned $libelf_cv_int16
  4229. _ACEOF
  4230. fi
  4231. for ac_header in $ac_header_list
  4232. do :
  4233. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4234. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4235. "
  4236. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4237. cat >>confdefs.h <<_ACEOF
  4238. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4239. _ACEOF
  4240. fi
  4241. done
  4242. for ac_func in getpagesize
  4243. do :
  4244. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  4245. if test "x$ac_cv_func_getpagesize" = xyes; then :
  4246. cat >>confdefs.h <<_ACEOF
  4247. #define HAVE_GETPAGESIZE 1
  4248. _ACEOF
  4249. fi
  4250. done
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  4252. $as_echo_n "checking for working mmap... " >&6; }
  4253. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  4254. $as_echo_n "(cached) " >&6
  4255. else
  4256. if test "$cross_compiling" = yes; then :
  4257. ac_cv_func_mmap_fixed_mapped=no
  4258. else
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. $ac_includes_default
  4262. /* malloc might have been renamed as rpl_malloc. */
  4263. #undef malloc
  4264. /* Thanks to Mike Haertel and Jim Avera for this test.
  4265. Here is a matrix of mmap possibilities:
  4266. mmap private not fixed
  4267. mmap private fixed at somewhere currently unmapped
  4268. mmap private fixed at somewhere already mapped
  4269. mmap shared not fixed
  4270. mmap shared fixed at somewhere currently unmapped
  4271. mmap shared fixed at somewhere already mapped
  4272. For private mappings, we should verify that changes cannot be read()
  4273. back from the file, nor mmap's back from the file at a different
  4274. address. (There have been systems where private was not correctly
  4275. implemented like the infamous i386 svr4.0, and systems where the
  4276. VM page cache was not coherent with the file system buffer cache
  4277. like early versions of FreeBSD and possibly contemporary NetBSD.)
  4278. For shared mappings, we should conversely verify that changes get
  4279. propagated back to all the places they're supposed to be.
  4280. Grep wants private fixed already mapped.
  4281. The main things grep needs to know about mmap are:
  4282. * does it exist and is it safe to write into the mmap'd area
  4283. * how to use it (BSD variants) */
  4284. #include <fcntl.h>
  4285. #include <sys/mman.h>
  4286. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  4287. char *malloc ();
  4288. #endif
  4289. /* This mess was copied from the GNU getpagesize.h. */
  4290. #ifndef HAVE_GETPAGESIZE
  4291. # ifdef _SC_PAGESIZE
  4292. # define getpagesize() sysconf(_SC_PAGESIZE)
  4293. # else /* no _SC_PAGESIZE */
  4294. # ifdef HAVE_SYS_PARAM_H
  4295. # include <sys/param.h>
  4296. # ifdef EXEC_PAGESIZE
  4297. # define getpagesize() EXEC_PAGESIZE
  4298. # else /* no EXEC_PAGESIZE */
  4299. # ifdef NBPG
  4300. # define getpagesize() NBPG * CLSIZE
  4301. # ifndef CLSIZE
  4302. # define CLSIZE 1
  4303. # endif /* no CLSIZE */
  4304. # else /* no NBPG */
  4305. # ifdef NBPC
  4306. # define getpagesize() NBPC
  4307. # else /* no NBPC */
  4308. # ifdef PAGESIZE
  4309. # define getpagesize() PAGESIZE
  4310. # endif /* PAGESIZE */
  4311. # endif /* no NBPC */
  4312. # endif /* no NBPG */
  4313. # endif /* no EXEC_PAGESIZE */
  4314. # else /* no HAVE_SYS_PARAM_H */
  4315. # define getpagesize() 8192 /* punt totally */
  4316. # endif /* no HAVE_SYS_PARAM_H */
  4317. # endif /* no _SC_PAGESIZE */
  4318. #endif /* no HAVE_GETPAGESIZE */
  4319. int
  4320. main ()
  4321. {
  4322. char *data, *data2, *data3;
  4323. const char *cdata2;
  4324. int i, pagesize;
  4325. int fd, fd2;
  4326. pagesize = getpagesize ();
  4327. /* First, make a file with some known garbage in it. */
  4328. data = (char *) malloc (pagesize);
  4329. if (!data)
  4330. return 1;
  4331. for (i = 0; i < pagesize; ++i)
  4332. *(data + i) = rand ();
  4333. umask (0);
  4334. fd = creat ("conftest.mmap", 0600);
  4335. if (fd < 0)
  4336. return 2;
  4337. if (write (fd, data, pagesize) != pagesize)
  4338. return 3;
  4339. close (fd);
  4340. /* Next, check that the tail of a page is zero-filled. File must have
  4341. non-zero length, otherwise we risk SIGBUS for entire page. */
  4342. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  4343. if (fd2 < 0)
  4344. return 4;
  4345. cdata2 = "";
  4346. if (write (fd2, cdata2, 1) != 1)
  4347. return 5;
  4348. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  4349. if (data2 == MAP_FAILED)
  4350. return 6;
  4351. for (i = 0; i < pagesize; ++i)
  4352. if (*(data2 + i))
  4353. return 7;
  4354. close (fd2);
  4355. if (munmap (data2, pagesize))
  4356. return 8;
  4357. /* Next, try to mmap the file at a fixed address which already has
  4358. something else allocated at it. If we can, also make sure that
  4359. we see the same garbage. */
  4360. fd = open ("conftest.mmap", O_RDWR);
  4361. if (fd < 0)
  4362. return 9;
  4363. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  4364. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  4365. return 10;
  4366. for (i = 0; i < pagesize; ++i)
  4367. if (*(data + i) != *(data2 + i))
  4368. return 11;
  4369. /* Finally, make sure that changes to the mapped area do not
  4370. percolate back to the file as seen by read(). (This is a bug on
  4371. some variants of i386 svr4.0.) */
  4372. for (i = 0; i < pagesize; ++i)
  4373. *(data2 + i) = *(data2 + i) + 1;
  4374. data3 = (char *) malloc (pagesize);
  4375. if (!data3)
  4376. return 12;
  4377. if (read (fd, data3, pagesize) != pagesize)
  4378. return 13;
  4379. for (i = 0; i < pagesize; ++i)
  4380. if (*(data + i) != *(data3 + i))
  4381. return 14;
  4382. close (fd);
  4383. return 0;
  4384. }
  4385. _ACEOF
  4386. if ac_fn_c_try_run "$LINENO"; then :
  4387. ac_cv_func_mmap_fixed_mapped=yes
  4388. else
  4389. ac_cv_func_mmap_fixed_mapped=no
  4390. fi
  4391. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4392. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4393. fi
  4394. fi
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  4396. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  4397. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  4398. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  4399. fi
  4400. rm -f conftest.mmap conftest.txt
  4401. for ac_func in ftruncate memcmp memcpy memmove
  4402. do :
  4403. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4404. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4405. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4406. cat >>confdefs.h <<_ACEOF
  4407. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4408. _ACEOF
  4409. fi
  4410. done
  4411. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  4412. if test "x$ac_cv_func_memset" = xyes; then :
  4413. $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
  4414. else
  4415. case " $LIBOBJS " in
  4416. *" memset.$ac_objext "* ) ;;
  4417. *) LIBOBJS="$LIBOBJS memset.$ac_objext"
  4418. ;;
  4419. esac
  4420. fi
  4421. if test "$ac_cv_func_memset" = yes; then
  4422. $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether overlapping arrays are copied correctly" >&5
  4425. $as_echo_n "checking whether overlapping arrays are copied correctly... " >&6; }
  4426. if ${libelf_cv_working_memmove+:} false; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. if test "$cross_compiling" = yes; then :
  4430. libelf_cv_working_memmove='maybe not'
  4431. else
  4432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4433. /* end confdefs.h. */
  4434. #include "confdefs.h"
  4435. #if HAVE_MEMMOVE
  4436. extern void *memmove();
  4437. #else
  4438. extern void bcopy();
  4439. #define memmove(d,s,n) bcopy((s),(d),(n))
  4440. #endif
  4441. extern int strcmp();
  4442. main() {
  4443. char buf[] = "0123456789";
  4444. memmove(buf + 1, buf, 9);
  4445. if (strcmp(buf, "0012345678")) exit(1);
  4446. exit(0);
  4447. }
  4448. _ACEOF
  4449. if ac_fn_c_try_run "$LINENO"; then :
  4450. libelf_cv_working_memmove=yes
  4451. else
  4452. libelf_cv_working_memmove=no
  4453. fi
  4454. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4455. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4456. fi
  4457. fi
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_cv_working_memmove" >&5
  4459. $as_echo "$libelf_cv_working_memmove" >&6; }
  4460. if test "$libelf_cv_working_memmove" != yes; then
  4461. $as_echo "#define HAVE_BROKEN_MEMMOVE 1" >>confdefs.h
  4462. fi
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the coffee machine" >&5
  4464. $as_echo_n "checking the coffee machine... " >&6; }
  4465. if ${mr_cv_coffee_machine+:} false; then :
  4466. $as_echo_n "(cached) " >&6
  4467. else
  4468. mr_cv_coffee_machine='empty - operator may not work as expected'
  4469. fi
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_coffee_machine" >&5
  4471. $as_echo "$mr_cv_coffee_machine" >&6; }
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 64-bit ELF support is sufficient" >&5
  4473. $as_echo_n "checking whether 64-bit ELF support is sufficient... " >&6; }
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_64bit" >&5
  4475. $as_echo "$libelf_64bit" >&6; }
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include 64-bit support" >&5
  4477. $as_echo_n "checking whether to include 64-bit support... " >&6; }
  4478. if test "$libelf_64bit" = no; then
  4479. libelf_enable_64bit=no
  4480. else
  4481. # Check whether --enable-elf64 was given.
  4482. if test "${enable_elf64+set}" = set; then :
  4483. enableval=$enable_elf64; libelf_enable_64bit="$enableval"
  4484. else
  4485. libelf_enable_64bit=yes
  4486. fi
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_enable_64bit" >&5
  4489. $as_echo "$libelf_enable_64bit" >&6; }
  4490. if test "$libelf_enable_64bit" = yes; then
  4491. $as_echo "#define __LIBELF64 1" >>confdefs.h
  4492. fi
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioning support is sufficient" >&5
  4494. $as_echo_n "checking whether versioning support is sufficient... " >&6; }
  4495. libelf_versioning=no
  4496. case "$libelf_enable_64bit:$libelf_cv_verdef32:$libelf_cv_verdef64" in
  4497. no:yes:* | yes:yes:yes)
  4498. if test "$libelf_cv_sun_verdef" = yes; then
  4499. $as_echo "#define __LIBELF_SUN_SYMBOL_VERSIONS 1" >>confdefs.h
  4500. libelf_versioning=yes
  4501. elif test "$libelf_cv_gnu_verdef" = yes; then
  4502. $as_echo "#define __LIBELF_GNU_SYMBOL_VERSIONS 1" >>confdefs.h
  4503. libelf_versioning=yes
  4504. fi;;
  4505. esac
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_versioning" >&5
  4507. $as_echo "$libelf_versioning" >&6; }
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include versioning support" >&5
  4509. $as_echo_n "checking whether to include versioning support... " >&6; }
  4510. if test "$libelf_versioning" = no; then
  4511. libelf_enable_versioning=no
  4512. else
  4513. # Check whether --enable-versioning was given.
  4514. if test "${enable_versioning+set}" = set; then :
  4515. enableval=$enable_versioning; libelf_enable_versioning="$enableval"
  4516. else
  4517. libelf_enable_versioning=yes
  4518. fi
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libelf_enable_versioning" >&5
  4521. $as_echo "$libelf_enable_versioning" >&6; }
  4522. if test "$libelf_enable_versioning" = yes; then
  4523. $as_echo "#define __LIBELF_SYMBOL_VERSIONS 1" >>confdefs.h
  4524. fi
  4525. # Needed for `make dist' even if NLS is disabled.
  4526. GMOFILES=
  4527. MSGFILES=
  4528. POFILES=
  4529. for mr_lang in $ALL_LINGUAS; do
  4530. GMOFILES="$GMOFILES $mr_lang.gmo"
  4531. MSGFILES="$MSGFILES $mr_lang.msg"
  4532. POFILES="$POFILES $mr_lang.po"
  4533. done
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  4535. $as_echo_n "checking whether NLS is requested... " >&6; }
  4536. # Check whether --enable-nls was given.
  4537. if test "${enable_nls+set}" = set; then :
  4538. enableval=$enable_nls; mr_enable_nls="$enableval"
  4539. else
  4540. mr_enable_nls=yes
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_enable_nls" >&5
  4543. $as_echo "$mr_enable_nls" >&6; }
  4544. CATOBJEXT=
  4545. INSTOBJEXT=
  4546. localedir=
  4547. if test "$mr_enable_nls" = yes; then
  4548. mr_PATH=`echo ":$PATH" | sed -e 's,:^:*openwin^:*,,g' -e 's,^:,,'`
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext" >&5
  4550. $as_echo_n "checking for dgettext... " >&6; }
  4551. if ${mr_cv_func_dgettext+:} false; then :
  4552. $as_echo_n "(cached) " >&6
  4553. else
  4554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4555. /* end confdefs.h. */
  4556. #include <libintl.h>
  4557. int
  4558. main ()
  4559. {
  4560. char *s = dgettext("", ""); return 0
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. if ac_fn_c_try_link "$LINENO"; then :
  4566. mr_cv_func_dgettext=yes
  4567. else
  4568. mr_cv_func_dgettext=no
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext \
  4571. conftest$ac_exeext conftest.$ac_ext
  4572. fi
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_func_dgettext" >&5
  4574. $as_echo "$mr_cv_func_dgettext" >&6; }
  4575. if test "$mr_cv_func_dgettext" = yes; then
  4576. # Extract the first word of "msgfmt", so it can be a program name with args.
  4577. set dummy msgfmt; ac_word=$2
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4579. $as_echo_n "checking for $ac_word... " >&6; }
  4580. if ${ac_cv_path_MSGFMT+:} false; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. case $MSGFMT in
  4584. [\\/]* | ?:[\\/]*)
  4585. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4586. ;;
  4587. *)
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $mr_PATH
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4595. ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4597. break 2
  4598. fi
  4599. done
  4600. done
  4601. IFS=$as_save_IFS
  4602. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  4603. ;;
  4604. esac
  4605. fi
  4606. MSGFMT=$ac_cv_path_MSGFMT
  4607. if test -n "$MSGFMT"; then
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  4609. $as_echo "$MSGFMT" >&6; }
  4610. else
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4612. $as_echo "no" >&6; }
  4613. fi
  4614. if test "$MSGFMT" != no; then
  4615. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4616. set dummy gmsgfmt; ac_word=$2
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4618. $as_echo_n "checking for $ac_word... " >&6; }
  4619. if ${ac_cv_path_GMSGFMT+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. case $GMSGFMT in
  4623. [\\/]* | ?:[\\/]*)
  4624. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4625. ;;
  4626. *)
  4627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4628. for as_dir in $mr_PATH
  4629. do
  4630. IFS=$as_save_IFS
  4631. test -z "$as_dir" && as_dir=.
  4632. for ac_exec_ext in '' $ac_executable_extensions; do
  4633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4634. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4636. break 2
  4637. fi
  4638. done
  4639. done
  4640. IFS=$as_save_IFS
  4641. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4642. ;;
  4643. esac
  4644. fi
  4645. GMSGFMT=$ac_cv_path_GMSGFMT
  4646. if test -n "$GMSGFMT"; then
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  4648. $as_echo "$GMSGFMT" >&6; }
  4649. else
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4651. $as_echo "no" >&6; }
  4652. fi
  4653. # Extract the first word of "xgettext", so it can be a program name with args.
  4654. set dummy xgettext; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if ${ac_cv_path_XGETTEXT+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. case $XGETTEXT in
  4661. [\\/]* | ?:[\\/]*)
  4662. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4663. ;;
  4664. *)
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $mr_PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4672. ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  4680. ;;
  4681. esac
  4682. fi
  4683. XGETTEXT=$ac_cv_path_XGETTEXT
  4684. if test -n "$XGETTEXT"; then
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  4686. $as_echo "$XGETTEXT" >&6; }
  4687. else
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4689. $as_echo "no" >&6; }
  4690. fi
  4691. # Extract the first word of "msgmerge", so it can be a program name with args.
  4692. set dummy msgmerge; ac_word=$2
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4694. $as_echo_n "checking for $ac_word... " >&6; }
  4695. if ${ac_cv_path_MSGMERGE+:} false; then :
  4696. $as_echo_n "(cached) " >&6
  4697. else
  4698. case $MSGMERGE in
  4699. [\\/]* | ?:[\\/]*)
  4700. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  4701. ;;
  4702. *)
  4703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4704. for as_dir in $mr_PATH
  4705. do
  4706. IFS=$as_save_IFS
  4707. test -z "$as_dir" && as_dir=.
  4708. for ac_exec_ext in '' $ac_executable_extensions; do
  4709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4710. ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
  4711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4712. break 2
  4713. fi
  4714. done
  4715. done
  4716. IFS=$as_save_IFS
  4717. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="msgmerge"
  4718. ;;
  4719. esac
  4720. fi
  4721. MSGMERGE=$ac_cv_path_MSGMERGE
  4722. if test -n "$MSGMERGE"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  4724. $as_echo "$MSGMERGE" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext" >&5
  4730. $as_echo_n "checking for GNU gettext... " >&6; }
  4731. if ${mr_cv_gnu_gettext+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h. */
  4736. int
  4737. main ()
  4738. {
  4739. extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr
  4740. ;
  4741. return 0;
  4742. }
  4743. _ACEOF
  4744. if ac_fn_c_try_link "$LINENO"; then :
  4745. mr_cv_gnu_gettext=yes
  4746. else
  4747. mr_cv_gnu_gettext=no
  4748. fi
  4749. rm -f core conftest.err conftest.$ac_objext \
  4750. conftest$ac_exeext conftest.$ac_ext
  4751. fi
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_gnu_gettext" >&5
  4753. $as_echo "$mr_cv_gnu_gettext" >&6; }
  4754. if test "$mr_cv_gnu_gettext" = yes; then
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for losing catgets-based GNU gettext" >&5
  4756. $as_echo_n "checking for losing catgets-based GNU gettext... " >&6; }
  4757. if ${mr_cv_catgets_based_gettext+:} false; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. int
  4763. main ()
  4764. {
  4765. extern int _msg_tbl_length; return _msg_tbl_length
  4766. ;
  4767. return 0;
  4768. }
  4769. _ACEOF
  4770. if ac_fn_c_try_link "$LINENO"; then :
  4771. mr_cv_catgets_based_gettext=yes
  4772. else
  4773. mr_cv_catgets_based_gettext=no
  4774. fi
  4775. rm -f core conftest.err conftest.$ac_objext \
  4776. conftest$ac_exeext conftest.$ac_ext
  4777. fi
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_catgets_based_gettext" >&5
  4779. $as_echo "$mr_cv_catgets_based_gettext" >&6; }
  4780. if test "$mr_cv_catgets_based_gettext" = yes; then
  4781. # This loses completely. Turn it off and use catgets.
  4782. LIBS=`echo $LIBS | sed 's,-lintl,,g'`
  4783. mr_cv_func_dgettext=no
  4784. else
  4785. # Is there a better test for this case?
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pure GNU gettext" >&5
  4787. $as_echo_n "checking for pure GNU gettext... " >&6; }
  4788. if ${mr_cv_pure_gnu_gettext+:} false; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4792. /* end confdefs.h. */
  4793. int
  4794. main ()
  4795. {
  4796. extern int gettext(); return gettext()
  4797. ;
  4798. return 0;
  4799. }
  4800. _ACEOF
  4801. if ac_fn_c_try_link "$LINENO"; then :
  4802. mr_cv_pure_gnu_gettext=yes
  4803. else
  4804. mr_cv_pure_gnu_gettext=no
  4805. fi
  4806. rm -f core conftest.err conftest.$ac_objext \
  4807. conftest$ac_exeext conftest.$ac_ext
  4808. fi
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_pure_gnu_gettext" >&5
  4810. $as_echo "$mr_cv_pure_gnu_gettext" >&6; }
  4811. if test "$mr_cv_pure_gnu_gettext" = yes; then
  4812. CATOBJEXT=.gmo
  4813. localedir='$(prefix)/share/locale'
  4814. else
  4815. CATOBJEXT=.mo
  4816. localedir='$(prefix)/lib/locale'
  4817. fi
  4818. INSTOBJEXT=.mo
  4819. fi
  4820. else
  4821. # System provided gettext
  4822. CATOBJEXT=.mo
  4823. INSTOBJEXT=.mo
  4824. localedir='$(prefix)/lib/locale'
  4825. fi
  4826. else
  4827. # Gettext but no msgfmt. Try catgets.
  4828. mr_cv_func_dgettext=no
  4829. fi
  4830. fi
  4831. if test "$mr_cv_func_dgettext" = yes; then
  4832. $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
  4833. else
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catgets" >&5
  4835. $as_echo_n "checking for catgets... " >&6; }
  4836. if ${mr_cv_func_catgets+:} false; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4840. /* end confdefs.h. */
  4841. #include <nl_types.h>
  4842. int
  4843. main ()
  4844. {
  4845. catgets(catopen("",0),0,0,"");return 0;
  4846. ;
  4847. return 0;
  4848. }
  4849. _ACEOF
  4850. if ac_fn_c_try_link "$LINENO"; then :
  4851. mr_cv_func_catgets=yes
  4852. else
  4853. mr_cv_func_catgets=no
  4854. fi
  4855. rm -f core conftest.err conftest.$ac_objext \
  4856. conftest$ac_exeext conftest.$ac_ext
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_func_catgets" >&5
  4859. $as_echo "$mr_cv_func_catgets" >&6; }
  4860. if test "$mr_cv_func_catgets" = yes; then
  4861. # Extract the first word of "gencat", so it can be a program name with args.
  4862. set dummy gencat; ac_word=$2
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4864. $as_echo_n "checking for $ac_word... " >&6; }
  4865. if ${ac_cv_path_GENCAT+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. case $GENCAT in
  4869. [\\/]* | ?:[\\/]*)
  4870. ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  4871. ;;
  4872. *)
  4873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4874. for as_dir in $mr_PATH
  4875. do
  4876. IFS=$as_save_IFS
  4877. test -z "$as_dir" && as_dir=.
  4878. for ac_exec_ext in '' $ac_executable_extensions; do
  4879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4880. ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
  4881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4882. break 2
  4883. fi
  4884. done
  4885. done
  4886. IFS=$as_save_IFS
  4887. test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  4888. ;;
  4889. esac
  4890. fi
  4891. GENCAT=$ac_cv_path_GENCAT
  4892. if test -n "$GENCAT"; then
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
  4894. $as_echo "$GENCAT" >&6; }
  4895. else
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4897. $as_echo "no" >&6; }
  4898. fi
  4899. if test "$GENCAT" != no; then
  4900. $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
  4901. # Extract the first word of "gmsgfmt msgfmt", so it can be a program name with args.
  4902. set dummy gmsgfmt msgfmt; ac_word=$2
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4904. $as_echo_n "checking for $ac_word... " >&6; }
  4905. if ${ac_cv_path_GMSGFMT+:} false; then :
  4906. $as_echo_n "(cached) " >&6
  4907. else
  4908. case $GMSGFMT in
  4909. [\\/]* | ?:[\\/]*)
  4910. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4911. ;;
  4912. *)
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $mr_PATH
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_exec_ext in '' $ac_executable_extensions; do
  4919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4920. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4922. break 2
  4923. fi
  4924. done
  4925. done
  4926. IFS=$as_save_IFS
  4927. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
  4928. ;;
  4929. esac
  4930. fi
  4931. GMSGFMT=$ac_cv_path_GMSGFMT
  4932. if test -n "$GMSGFMT"; then
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  4934. $as_echo "$GMSGFMT" >&6; }
  4935. else
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. $as_echo "no" >&6; }
  4938. fi
  4939. # Extract the first word of "xgettext", so it can be a program name with args.
  4940. set dummy xgettext; ac_word=$2
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4942. $as_echo_n "checking for $ac_word... " >&6; }
  4943. if ${ac_cv_path_XGETTEXT+:} false; then :
  4944. $as_echo_n "(cached) " >&6
  4945. else
  4946. case $XGETTEXT in
  4947. [\\/]* | ?:[\\/]*)
  4948. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4949. ;;
  4950. *)
  4951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4952. for as_dir in $mr_PATH
  4953. do
  4954. IFS=$as_save_IFS
  4955. test -z "$as_dir" && as_dir=.
  4956. for ac_exec_ext in '' $ac_executable_extensions; do
  4957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4958. ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  4959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4960. break 2
  4961. fi
  4962. done
  4963. done
  4964. IFS=$as_save_IFS
  4965. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  4966. ;;
  4967. esac
  4968. fi
  4969. XGETTEXT=$ac_cv_path_XGETTEXT
  4970. if test -n "$XGETTEXT"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  4972. $as_echo "$XGETTEXT" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. CATOBJEXT=.cat
  4978. INSTOBJEXT=.cat
  4979. localedir='$(prefix)/lib/locale'
  4980. fi
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no NLS support, disabled" >&5
  4983. $as_echo "$as_me: WARNING: no NLS support, disabled" >&2;}
  4984. mr_enable_nls=no
  4985. fi
  4986. fi
  4987. fi
  4988. POSUB=
  4989. CATALOGS=
  4990. if test "$mr_enable_nls" = yes; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  4992. $as_echo_n "checking for catalogs to be installed... " >&6; }
  4993. mr_linguas=
  4994. for mr_lang in ${LINGUAS=$ALL_LINGUAS}; do
  4995. case " $ALL_LINGUAS " in
  4996. *" $mr_lang "*)
  4997. mr_linguas="$mr_linguas$mr_lang "
  4998. CATALOGS="$CATALOGS $mr_lang$CATOBJEXT"
  4999. ;;
  5000. esac
  5001. done
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_linguas" >&5
  5003. $as_echo "$mr_linguas" >&6; }
  5004. POSUB=po
  5005. fi
  5006. LIBINTL=
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  5008. $as_echo_n "checking for gettext in -lintl... " >&6; }
  5009. if ${ac_cv_lib_intl_gettext+:} false; then :
  5010. $as_echo_n "(cached) " >&6
  5011. else
  5012. ac_check_lib_save_LIBS=$LIBS
  5013. LIBS="-lintl $LIBS"
  5014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5015. /* end confdefs.h. */
  5016. /* Override any GCC internal prototype to avoid an error.
  5017. Use char because int might match the return type of a GCC
  5018. builtin and then its argument prototype would still apply. */
  5019. #ifdef __cplusplus
  5020. extern "C"
  5021. #endif
  5022. char gettext ();
  5023. int
  5024. main ()
  5025. {
  5026. return gettext ();
  5027. ;
  5028. return 0;
  5029. }
  5030. _ACEOF
  5031. if ac_fn_c_try_link "$LINENO"; then :
  5032. ac_cv_lib_intl_gettext=yes
  5033. else
  5034. ac_cv_lib_intl_gettext=no
  5035. fi
  5036. rm -f core conftest.err conftest.$ac_objext \
  5037. conftest$ac_exeext conftest.$ac_ext
  5038. LIBS=$ac_check_lib_save_LIBS
  5039. fi
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  5041. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  5042. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  5043. LIBINTL=-lintl
  5044. fi
  5045. # Make sure we can run config.sub.
  5046. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5047. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5049. $as_echo_n "checking build system type... " >&6; }
  5050. if ${ac_cv_build+:} false; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. ac_build_alias=$build_alias
  5054. test "x$ac_build_alias" = x &&
  5055. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5056. test "x$ac_build_alias" = x &&
  5057. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5058. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5059. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5060. fi
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5062. $as_echo "$ac_cv_build" >&6; }
  5063. case $ac_cv_build in
  5064. *-*-*) ;;
  5065. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5066. esac
  5067. build=$ac_cv_build
  5068. ac_save_IFS=$IFS; IFS='-'
  5069. set x $ac_cv_build
  5070. shift
  5071. build_cpu=$1
  5072. build_vendor=$2
  5073. shift; shift
  5074. # Remember, the first character of IFS is used to create $*,
  5075. # except with old shells:
  5076. build_os=$*
  5077. IFS=$ac_save_IFS
  5078. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5080. $as_echo_n "checking host system type... " >&6; }
  5081. if ${ac_cv_host+:} false; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. if test "x$host_alias" = x; then
  5085. ac_cv_host=$ac_cv_build
  5086. else
  5087. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5088. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5089. fi
  5090. fi
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5092. $as_echo "$ac_cv_host" >&6; }
  5093. case $ac_cv_host in
  5094. *-*-*) ;;
  5095. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5096. esac
  5097. host=$ac_cv_host
  5098. ac_save_IFS=$IFS; IFS='-'
  5099. set x $ac_cv_host
  5100. shift
  5101. host_cpu=$1
  5102. host_vendor=$2
  5103. shift; shift
  5104. # Remember, the first character of IFS is used to create $*,
  5105. # except with old shells:
  5106. host_os=$*
  5107. IFS=$ac_save_IFS
  5108. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5109. PICFLAGS=
  5110. SHLIB_SFX=
  5111. SHLINK_SFX=
  5112. SONAME_SFX=
  5113. LINK_SHLIB=
  5114. INSTALL_SHLIB=
  5115. DEPSHLIBS=
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a shared library" >&5
  5117. $as_echo_n "checking whether to build a shared library... " >&6; }
  5118. # Check whether --enable-shared was given.
  5119. if test "${enable_shared+set}" = set; then :
  5120. enableval=$enable_shared; mr_enable_shared="$enableval"
  5121. else
  5122. mr_enable_shared=yes
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_enable_shared" >&5
  5125. $as_echo "$mr_enable_shared" >&6; }
  5126. if test "$mr_enable_shared" = yes; then
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU naming conventions are requested" >&5
  5128. $as_echo_n "checking whether GNU naming conventions are requested... " >&6; }
  5129. # Check whether --enable-gnu-names was given.
  5130. if test "${enable_gnu_names+set}" = set; then :
  5131. enableval=$enable_gnu_names; mr_enable_gnu_names="$enableval"
  5132. else
  5133. mr_enable_gnu_names=no
  5134. fi
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_enable_gnu_names" >&5
  5136. $as_echo "$mr_enable_gnu_names" >&6; }
  5137. # Extract the first word of "ld", so it can be a program name with args.
  5138. set dummy ld; ac_word=$2
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5140. $as_echo_n "checking for $ac_word... " >&6; }
  5141. if ${ac_cv_path_LD+:} false; then :
  5142. $as_echo_n "(cached) " >&6
  5143. else
  5144. case $LD in
  5145. [\\/]* | ?:[\\/]*)
  5146. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  5147. ;;
  5148. *)
  5149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5150. for as_dir in $PATH
  5151. do
  5152. IFS=$as_save_IFS
  5153. test -z "$as_dir" && as_dir=.
  5154. for ac_exec_ext in '' $ac_executable_extensions; do
  5155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5156. ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
  5157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5158. break 2
  5159. fi
  5160. done
  5161. done
  5162. IFS=$as_save_IFS
  5163. test -z "$ac_cv_path_LD" && ac_cv_path_LD="ld"
  5164. ;;
  5165. esac
  5166. fi
  5167. LD=$ac_cv_path_LD
  5168. if test -n "$LD"; then
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5170. $as_echo "$LD" >&6; }
  5171. else
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5173. $as_echo "no" >&6; }
  5174. fi
  5175. case "$host" in
  5176. *-linux*|*-gnu*|*bsd*|*BSD*)
  5177. if test "$GCC" = yes; then
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native ELF system" >&5
  5179. $as_echo_n "checking for native ELF system... " >&6; }
  5180. if ${mr_cv_target_elf+:} false; then :
  5181. $as_echo_n "(cached) " >&6
  5182. else
  5183. if test "$cross_compiling" = yes; then :
  5184. mr_cv_target_elf=no
  5185. else
  5186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5187. /* end confdefs.h. */
  5188. #include <stdio.h>
  5189. int
  5190. main(int argc, char **argv) {
  5191. char buf[BUFSIZ];
  5192. FILE *fp;
  5193. int n;
  5194. if ((fp = fopen(*argv, "r")) == NULL) {
  5195. exit(1);
  5196. }
  5197. n = fread(buf, 1, sizeof(buf), fp);
  5198. if (n >= 52
  5199. && buf[0] == '\177'
  5200. && buf[1] == 'E'
  5201. && buf[2] == 'L'
  5202. && buf[3] == 'F') {
  5203. exit(0);
  5204. }
  5205. exit(1);
  5206. }
  5207. _ACEOF
  5208. if ac_fn_c_try_run "$LINENO"; then :
  5209. mr_cv_target_elf=yes
  5210. else
  5211. mr_cv_target_elf=no
  5212. fi
  5213. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5214. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5215. fi
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_target_elf" >&5
  5218. $as_echo "$mr_cv_target_elf" >&6; }
  5219. if test "$mr_cv_target_elf" = yes; then
  5220. PICFLAGS='-fPIC -DPIC'
  5221. if test "$mr_enable_gnu_names" = yes
  5222. then SHLIB_SFX='-$(VERSION).so'
  5223. else SHLIB_SFX='.so.$(VERSION)'
  5224. fi
  5225. SHLINK_SFX='.so'
  5226. SONAME_SFX='.so.$(MAJOR)'
  5227. LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)'
  5228. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  5229. DEPSHLIBS='-lc'
  5230. else
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared libraries not supported for $host" >&5
  5232. $as_echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
  5233. mr_enable_shared=no
  5234. fi
  5235. elif ${CC} -V 2>&1 | grep 'Intel(R) C++ Compiler' >/dev/null 2>&1; then
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --disable-shared if $CC fails to build the shared library" >&5
  5237. $as_echo "$as_me: WARNING: Use --disable-shared if $CC fails to build the shared library" >&2;}
  5238. PICFLAGS='-fPIC -DPIC'
  5239. if test "$mr_enable_gnu_names" = yes
  5240. then SHLIB_SFX='-$(VERSION).so'
  5241. else SHLIB_SFX='.so.$(VERSION)'
  5242. fi
  5243. SHLINK_SFX='.so'
  5244. SONAME_SFX='.so.$(MAJOR)'
  5245. LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)'
  5246. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  5247. DEPSHLIBS='-lc'
  5248. else
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU CC required for building shared libraries" >&5
  5250. $as_echo "$as_me: WARNING: GNU CC required for building shared libraries" >&2;}
  5251. mr_enable_shared=no
  5252. fi
  5253. ;;
  5254. i386-pc-nto-qnx*)
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native ELF system" >&5
  5256. $as_echo_n "checking for native ELF system... " >&6; }
  5257. if ${mr_cv_target_elf+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. if test "$cross_compiling" = yes; then :
  5261. mr_cv_target_elf=no
  5262. else
  5263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5264. /* end confdefs.h. */
  5265. #include <stdio.h>
  5266. int
  5267. main(int argc, char **argv) {
  5268. char buf[BUFSIZ];
  5269. FILE *fp;
  5270. int n;
  5271. if ((fp = fopen(*argv, "r")) == NULL) {
  5272. exit(1);
  5273. }
  5274. n = fread(buf, 1, sizeof(buf), fp);
  5275. if (n >= 52
  5276. && buf[0] == '\177'
  5277. && buf[1] == 'E'
  5278. && buf[2] == 'L'
  5279. && buf[3] == 'F') {
  5280. exit(0);
  5281. }
  5282. exit(1);
  5283. }
  5284. _ACEOF
  5285. if ac_fn_c_try_run "$LINENO"; then :
  5286. mr_cv_target_elf=yes
  5287. else
  5288. mr_cv_target_elf=no
  5289. fi
  5290. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5291. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5292. fi
  5293. fi
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mr_cv_target_elf" >&5
  5295. $as_echo "$mr_cv_target_elf" >&6; }
  5296. if test "$mr_cv_target_elf" = yes; then
  5297. PICFLAGS='-fPIC -DPIC'
  5298. if test "$mr_enable_gnu_names" = yes
  5299. then SHLIB_SFX='-$(VERSION).so'
  5300. else SHLIB_SFX='.so.$(VERSION)'
  5301. fi
  5302. SHLINK_SFX='.so'
  5303. SONAME_SFX='.so.$(MAJOR)'
  5304. LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)'
  5305. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  5306. DEPSHLIBS='-lc'
  5307. else
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared libraries not supported for $host" >&5
  5309. $as_echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
  5310. mr_enable_shared=no
  5311. fi
  5312. ;;
  5313. sparc-sun-solaris2*)
  5314. if test "$GCC" = yes; then
  5315. PICFLAGS='-fPIC -DPIC'
  5316. else
  5317. PICFLAGS='-K PIC -DPIC'
  5318. fi
  5319. if test "$mr_enable_gnu_names" = yes
  5320. then SHLIB_SFX='-$(MAJOR).so'
  5321. else SHLIB_SFX='.so.$(MAJOR)'
  5322. fi
  5323. SONAME_SFX='.so.$(MAJOR)'
  5324. SHLINK_SFX='.so'
  5325. LINK_SHLIB='$(LD) -G -z text -h $(SONAME)'
  5326. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  5327. ;;
  5328. *)
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared libraries not supported for $host" >&5
  5330. $as_echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
  5331. mr_enable_shared=no
  5332. ;;
  5333. esac
  5334. else
  5335. mr_enable_shared=no
  5336. fi
  5337. DO_SHLIB="$mr_enable_shared"
  5338. # Check whether --enable-extended-format was given.
  5339. if test "${enable_extended_format+set}" = set; then :
  5340. enableval=$enable_extended_format; mr_enable_extended_format="$enableval"
  5341. else
  5342. mr_enable_extended_format=no
  5343. fi
  5344. if test "$mr_enable_extended_format" = yes; then
  5345. $as_echo "#define ENABLE_EXTENDED_FORMAT 1" >>confdefs.h
  5346. fi
  5347. # Check whether --enable-sanity-checks was given.
  5348. if test "${enable_sanity_checks+set}" = set; then :
  5349. enableval=$enable_sanity_checks; mr_enable_sanity_checks="$enableval"
  5350. else
  5351. mr_enable_sanity_checks=yes
  5352. fi
  5353. if test "$mr_enable_sanity_checks" = yes; then
  5354. $as_echo "#define ENABLE_SANITY_CHECKS 1" >>confdefs.h
  5355. fi
  5356. # Check whether --enable-debug was given.
  5357. if test "${enable_debug+set}" = set; then :
  5358. enableval=$enable_debug; mr_enable_debug="$enableval"
  5359. else
  5360. mr_enable_debug=no
  5361. fi
  5362. if test "$mr_enable_debug" = yes; then
  5363. $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
  5364. fi
  5365. ac_config_files="$ac_config_files Makefile lib/Makefile po/Makefile libelf.pc"
  5366. ac_config_commands="$ac_config_commands default"
  5367. cat >confcache <<\_ACEOF
  5368. # This file is a shell script that caches the results of configure
  5369. # tests run on this system so they can be shared between configure
  5370. # scripts and configure runs, see configure's option --config-cache.
  5371. # It is not useful on other systems. If it contains results you don't
  5372. # want to keep, you may remove or edit it.
  5373. #
  5374. # config.status only pays attention to the cache file if you give it
  5375. # the --recheck option to rerun configure.
  5376. #
  5377. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5378. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5379. # following values.
  5380. _ACEOF
  5381. # The following way of writing the cache mishandles newlines in values,
  5382. # but we know of no workaround that is simple, portable, and efficient.
  5383. # So, we kill variables containing newlines.
  5384. # Ultrix sh set writes to stderr and can't be redirected directly,
  5385. # and sets the high bit in the cache file unless we assign to the vars.
  5386. (
  5387. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5388. eval ac_val=\$$ac_var
  5389. case $ac_val in #(
  5390. *${as_nl}*)
  5391. case $ac_var in #(
  5392. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5393. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5394. esac
  5395. case $ac_var in #(
  5396. _ | IFS | as_nl) ;; #(
  5397. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5398. *) { eval $ac_var=; unset $ac_var;} ;;
  5399. esac ;;
  5400. esac
  5401. done
  5402. (set) 2>&1 |
  5403. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5404. *${as_nl}ac_space=\ *)
  5405. # `set' does not quote correctly, so add quotes: double-quote
  5406. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5407. sed -n \
  5408. "s/'/'\\\\''/g;
  5409. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5410. ;; #(
  5411. *)
  5412. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5413. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5414. ;;
  5415. esac |
  5416. sort
  5417. ) |
  5418. sed '
  5419. /^ac_cv_env_/b end
  5420. t clear
  5421. :clear
  5422. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5423. t end
  5424. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5425. :end' >>confcache
  5426. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5427. if test -w "$cache_file"; then
  5428. if test "x$cache_file" != "x/dev/null"; then
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5430. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5431. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5432. cat confcache >"$cache_file"
  5433. else
  5434. case $cache_file in #(
  5435. */* | ?:*)
  5436. mv -f confcache "$cache_file"$$ &&
  5437. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5438. *)
  5439. mv -f confcache "$cache_file" ;;
  5440. esac
  5441. fi
  5442. fi
  5443. else
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5445. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5446. fi
  5447. fi
  5448. rm -f confcache
  5449. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5450. # Let make expand exec_prefix.
  5451. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5452. DEFS=-DHAVE_CONFIG_H
  5453. ac_libobjs=
  5454. ac_ltlibobjs=
  5455. U=
  5456. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5457. # 1. Remove the extension, and $U if already installed.
  5458. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5459. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5460. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5461. # will be set to the directory where LIBOBJS objects are built.
  5462. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5463. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5464. done
  5465. LIBOBJS=$ac_libobjs
  5466. LTLIBOBJS=$ac_ltlibobjs
  5467. : "${CONFIG_STATUS=./config.status}"
  5468. ac_write_fail=0
  5469. ac_clean_files_save=$ac_clean_files
  5470. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5472. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5473. as_write_fail=0
  5474. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5475. #! $SHELL
  5476. # Generated by $as_me.
  5477. # Run this file to recreate the current configuration.
  5478. # Compiler output produced by configure, useful for debugging
  5479. # configure, is in config.log if it exists.
  5480. debug=false
  5481. ac_cs_recheck=false
  5482. ac_cs_silent=false
  5483. SHELL=\${CONFIG_SHELL-$SHELL}
  5484. export SHELL
  5485. _ASEOF
  5486. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5487. ## -------------------- ##
  5488. ## M4sh Initialization. ##
  5489. ## -------------------- ##
  5490. # Be more Bourne compatible
  5491. DUALCASE=1; export DUALCASE # for MKS sh
  5492. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5493. emulate sh
  5494. NULLCMD=:
  5495. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5496. # is contrary to our usage. Disable this feature.
  5497. alias -g '${1+"$@"}'='"$@"'
  5498. setopt NO_GLOB_SUBST
  5499. else
  5500. case `(set -o) 2>/dev/null` in #(
  5501. *posix*) :
  5502. set -o posix ;; #(
  5503. *) :
  5504. ;;
  5505. esac
  5506. fi
  5507. as_nl='
  5508. '
  5509. export as_nl
  5510. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5511. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5512. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5513. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5514. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5515. # but without wasting forks for bash or zsh.
  5516. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5517. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5518. as_echo='print -r --'
  5519. as_echo_n='print -rn --'
  5520. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5521. as_echo='printf %s\n'
  5522. as_echo_n='printf %s'
  5523. else
  5524. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5525. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5526. as_echo_n='/usr/ucb/echo -n'
  5527. else
  5528. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5529. as_echo_n_body='eval
  5530. arg=$1;
  5531. case $arg in #(
  5532. *"$as_nl"*)
  5533. expr "X$arg" : "X\\(.*\\)$as_nl";
  5534. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5535. esac;
  5536. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5537. '
  5538. export as_echo_n_body
  5539. as_echo_n='sh -c $as_echo_n_body as_echo'
  5540. fi
  5541. export as_echo_body
  5542. as_echo='sh -c $as_echo_body as_echo'
  5543. fi
  5544. # The user is always right.
  5545. if test "${PATH_SEPARATOR+set}" != set; then
  5546. PATH_SEPARATOR=:
  5547. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5548. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5549. PATH_SEPARATOR=';'
  5550. }
  5551. fi
  5552. # IFS
  5553. # We need space, tab and new line, in precisely that order. Quoting is
  5554. # there to prevent editors from complaining about space-tab.
  5555. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5556. # splitting by setting IFS to empty value.)
  5557. IFS=" "" $as_nl"
  5558. # Find who we are. Look in the path if we contain no directory separator.
  5559. as_myself=
  5560. case $0 in #((
  5561. *[\\/]* ) as_myself=$0 ;;
  5562. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. test -z "$as_dir" && as_dir=.
  5567. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5568. done
  5569. IFS=$as_save_IFS
  5570. ;;
  5571. esac
  5572. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5573. # in which case we are not to be found in the path.
  5574. if test "x$as_myself" = x; then
  5575. as_myself=$0
  5576. fi
  5577. if test ! -f "$as_myself"; then
  5578. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5579. exit 1
  5580. fi
  5581. # Unset variables that we do not need and which cause bugs (e.g. in
  5582. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  5583. # suppresses any "Segmentation fault" message there. '((' could
  5584. # trigger a bug in pdksh 5.2.14.
  5585. for as_var in BASH_ENV ENV MAIL MAILPATH
  5586. do eval test x\${$as_var+set} = xset \
  5587. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5588. done
  5589. PS1='$ '
  5590. PS2='> '
  5591. PS4='+ '
  5592. # NLS nuisances.
  5593. LC_ALL=C
  5594. export LC_ALL
  5595. LANGUAGE=C
  5596. export LANGUAGE
  5597. # CDPATH.
  5598. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5599. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5600. # ----------------------------------------
  5601. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5602. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5603. # script with STATUS, using 1 if that was 0.
  5604. as_fn_error ()
  5605. {
  5606. as_status=$1; test $as_status -eq 0 && as_status=1
  5607. if test "$4"; then
  5608. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5609. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5610. fi
  5611. $as_echo "$as_me: error: $2" >&2
  5612. as_fn_exit $as_status
  5613. } # as_fn_error
  5614. # as_fn_set_status STATUS
  5615. # -----------------------
  5616. # Set $? to STATUS, without forking.
  5617. as_fn_set_status ()
  5618. {
  5619. return $1
  5620. } # as_fn_set_status
  5621. # as_fn_exit STATUS
  5622. # -----------------
  5623. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5624. as_fn_exit ()
  5625. {
  5626. set +e
  5627. as_fn_set_status $1
  5628. exit $1
  5629. } # as_fn_exit
  5630. # as_fn_unset VAR
  5631. # ---------------
  5632. # Portably unset VAR.
  5633. as_fn_unset ()
  5634. {
  5635. { eval $1=; unset $1;}
  5636. }
  5637. as_unset=as_fn_unset
  5638. # as_fn_append VAR VALUE
  5639. # ----------------------
  5640. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5641. # advantage of any shell optimizations that allow amortized linear growth over
  5642. # repeated appends, instead of the typical quadratic growth present in naive
  5643. # implementations.
  5644. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5645. eval 'as_fn_append ()
  5646. {
  5647. eval $1+=\$2
  5648. }'
  5649. else
  5650. as_fn_append ()
  5651. {
  5652. eval $1=\$$1\$2
  5653. }
  5654. fi # as_fn_append
  5655. # as_fn_arith ARG...
  5656. # ------------------
  5657. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5658. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5659. # must be portable across $(()) and expr.
  5660. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5661. eval 'as_fn_arith ()
  5662. {
  5663. as_val=$(( $* ))
  5664. }'
  5665. else
  5666. as_fn_arith ()
  5667. {
  5668. as_val=`expr "$@" || test $? -eq 1`
  5669. }
  5670. fi # as_fn_arith
  5671. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5672. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5673. as_expr=expr
  5674. else
  5675. as_expr=false
  5676. fi
  5677. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5678. as_basename=basename
  5679. else
  5680. as_basename=false
  5681. fi
  5682. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5683. as_dirname=dirname
  5684. else
  5685. as_dirname=false
  5686. fi
  5687. as_me=`$as_basename -- "$0" ||
  5688. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5689. X"$0" : 'X\(//\)$' \| \
  5690. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5691. $as_echo X/"$0" |
  5692. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5693. s//\1/
  5694. q
  5695. }
  5696. /^X\/\(\/\/\)$/{
  5697. s//\1/
  5698. q
  5699. }
  5700. /^X\/\(\/\).*/{
  5701. s//\1/
  5702. q
  5703. }
  5704. s/.*/./; q'`
  5705. # Avoid depending upon Character Ranges.
  5706. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5707. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5708. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5709. as_cr_digits='0123456789'
  5710. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5711. ECHO_C= ECHO_N= ECHO_T=
  5712. case `echo -n x` in #(((((
  5713. -n*)
  5714. case `echo 'xy\c'` in
  5715. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5716. xy) ECHO_C='\c';;
  5717. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5718. ECHO_T=' ';;
  5719. esac;;
  5720. *)
  5721. ECHO_N='-n';;
  5722. esac
  5723. rm -f conf$$ conf$$.exe conf$$.file
  5724. if test -d conf$$.dir; then
  5725. rm -f conf$$.dir/conf$$.file
  5726. else
  5727. rm -f conf$$.dir
  5728. mkdir conf$$.dir 2>/dev/null
  5729. fi
  5730. if (echo >conf$$.file) 2>/dev/null; then
  5731. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5732. as_ln_s='ln -s'
  5733. # ... but there are two gotchas:
  5734. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5735. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5736. # In both cases, we have to default to `cp -pR'.
  5737. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5738. as_ln_s='cp -pR'
  5739. elif ln conf$$.file conf$$ 2>/dev/null; then
  5740. as_ln_s=ln
  5741. else
  5742. as_ln_s='cp -pR'
  5743. fi
  5744. else
  5745. as_ln_s='cp -pR'
  5746. fi
  5747. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5748. rmdir conf$$.dir 2>/dev/null
  5749. # as_fn_mkdir_p
  5750. # -------------
  5751. # Create "$as_dir" as a directory, including parents if necessary.
  5752. as_fn_mkdir_p ()
  5753. {
  5754. case $as_dir in #(
  5755. -*) as_dir=./$as_dir;;
  5756. esac
  5757. test -d "$as_dir" || eval $as_mkdir_p || {
  5758. as_dirs=
  5759. while :; do
  5760. case $as_dir in #(
  5761. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5762. *) as_qdir=$as_dir;;
  5763. esac
  5764. as_dirs="'$as_qdir' $as_dirs"
  5765. as_dir=`$as_dirname -- "$as_dir" ||
  5766. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5767. X"$as_dir" : 'X\(//\)[^/]' \| \
  5768. X"$as_dir" : 'X\(//\)$' \| \
  5769. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5770. $as_echo X"$as_dir" |
  5771. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5772. s//\1/
  5773. q
  5774. }
  5775. /^X\(\/\/\)[^/].*/{
  5776. s//\1/
  5777. q
  5778. }
  5779. /^X\(\/\/\)$/{
  5780. s//\1/
  5781. q
  5782. }
  5783. /^X\(\/\).*/{
  5784. s//\1/
  5785. q
  5786. }
  5787. s/.*/./; q'`
  5788. test -d "$as_dir" && break
  5789. done
  5790. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5791. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5792. } # as_fn_mkdir_p
  5793. if mkdir -p . 2>/dev/null; then
  5794. as_mkdir_p='mkdir -p "$as_dir"'
  5795. else
  5796. test -d ./-p && rmdir ./-p
  5797. as_mkdir_p=false
  5798. fi
  5799. # as_fn_executable_p FILE
  5800. # -----------------------
  5801. # Test if FILE is an executable regular file.
  5802. as_fn_executable_p ()
  5803. {
  5804. test -f "$1" && test -x "$1"
  5805. } # as_fn_executable_p
  5806. as_test_x='test -x'
  5807. as_executable_p=as_fn_executable_p
  5808. # Sed expression to map a string onto a valid CPP name.
  5809. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5810. # Sed expression to map a string onto a valid variable name.
  5811. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5812. exec 6>&1
  5813. ## ----------------------------------- ##
  5814. ## Main body of $CONFIG_STATUS script. ##
  5815. ## ----------------------------------- ##
  5816. _ASEOF
  5817. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5818. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5819. # Save the log message, to keep $0 and so on meaningful, and to
  5820. # report actual input values of CONFIG_FILES etc. instead of their
  5821. # values after options handling.
  5822. ac_log="
  5823. This file was extended by $as_me, which was
  5824. generated by GNU Autoconf 2.69. Invocation command line was
  5825. CONFIG_FILES = $CONFIG_FILES
  5826. CONFIG_HEADERS = $CONFIG_HEADERS
  5827. CONFIG_LINKS = $CONFIG_LINKS
  5828. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5829. $ $0 $@
  5830. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5831. "
  5832. _ACEOF
  5833. case $ac_config_files in *"
  5834. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5835. esac
  5836. case $ac_config_headers in *"
  5837. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5838. esac
  5839. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5840. # Files that config.status was made for.
  5841. config_files="$ac_config_files"
  5842. config_headers="$ac_config_headers"
  5843. config_commands="$ac_config_commands"
  5844. _ACEOF
  5845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5846. ac_cs_usage="\
  5847. \`$as_me' instantiates files and other configuration actions
  5848. from templates according to the current configuration. Unless the files
  5849. and actions are specified as TAGs, all are instantiated by default.
  5850. Usage: $0 [OPTION]... [TAG]...
  5851. -h, --help print this help, then exit
  5852. -V, --version print version number and configuration settings, then exit
  5853. --config print configuration, then exit
  5854. -q, --quiet, --silent
  5855. do not print progress messages
  5856. -d, --debug don't remove temporary files
  5857. --recheck update $as_me by reconfiguring in the same conditions
  5858. --file=FILE[:TEMPLATE]
  5859. instantiate the configuration file FILE
  5860. --header=FILE[:TEMPLATE]
  5861. instantiate the configuration header FILE
  5862. Configuration files:
  5863. $config_files
  5864. Configuration headers:
  5865. $config_headers
  5866. Configuration commands:
  5867. $config_commands
  5868. Report bugs to the package provider."
  5869. _ACEOF
  5870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5871. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5872. ac_cs_version="\\
  5873. config.status
  5874. configured by $0, generated by GNU Autoconf 2.69,
  5875. with options \\"\$ac_cs_config\\"
  5876. Copyright (C) 2012 Free Software Foundation, Inc.
  5877. This config.status script is free software; the Free Software Foundation
  5878. gives unlimited permission to copy, distribute and modify it."
  5879. ac_pwd='$ac_pwd'
  5880. srcdir='$srcdir'
  5881. INSTALL='$INSTALL'
  5882. test -n "\$AWK" || AWK=awk
  5883. _ACEOF
  5884. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5885. # The default lists apply if the user does not specify any file.
  5886. ac_need_defaults=:
  5887. while test $# != 0
  5888. do
  5889. case $1 in
  5890. --*=?*)
  5891. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5892. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5893. ac_shift=:
  5894. ;;
  5895. --*=)
  5896. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5897. ac_optarg=
  5898. ac_shift=:
  5899. ;;
  5900. *)
  5901. ac_option=$1
  5902. ac_optarg=$2
  5903. ac_shift=shift
  5904. ;;
  5905. esac
  5906. case $ac_option in
  5907. # Handling of the options.
  5908. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5909. ac_cs_recheck=: ;;
  5910. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5911. $as_echo "$ac_cs_version"; exit ;;
  5912. --config | --confi | --conf | --con | --co | --c )
  5913. $as_echo "$ac_cs_config"; exit ;;
  5914. --debug | --debu | --deb | --de | --d | -d )
  5915. debug=: ;;
  5916. --file | --fil | --fi | --f )
  5917. $ac_shift
  5918. case $ac_optarg in
  5919. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5920. '') as_fn_error $? "missing file argument" ;;
  5921. esac
  5922. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5923. ac_need_defaults=false;;
  5924. --header | --heade | --head | --hea )
  5925. $ac_shift
  5926. case $ac_optarg in
  5927. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5928. esac
  5929. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5930. ac_need_defaults=false;;
  5931. --he | --h)
  5932. # Conflict between --help and --header
  5933. as_fn_error $? "ambiguous option: \`$1'
  5934. Try \`$0 --help' for more information.";;
  5935. --help | --hel | -h )
  5936. $as_echo "$ac_cs_usage"; exit ;;
  5937. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5938. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5939. ac_cs_silent=: ;;
  5940. # This is an error.
  5941. -*) as_fn_error $? "unrecognized option: \`$1'
  5942. Try \`$0 --help' for more information." ;;
  5943. *) as_fn_append ac_config_targets " $1"
  5944. ac_need_defaults=false ;;
  5945. esac
  5946. shift
  5947. done
  5948. ac_configure_extra_args=
  5949. if $ac_cs_silent; then
  5950. exec 6>/dev/null
  5951. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5952. fi
  5953. _ACEOF
  5954. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5955. if \$ac_cs_recheck; then
  5956. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5957. shift
  5958. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5959. CONFIG_SHELL='$SHELL'
  5960. export CONFIG_SHELL
  5961. exec "\$@"
  5962. fi
  5963. _ACEOF
  5964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5965. exec 5>>config.log
  5966. {
  5967. echo
  5968. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5969. ## Running $as_me. ##
  5970. _ASBOX
  5971. $as_echo "$ac_log"
  5972. } >&5
  5973. _ACEOF
  5974. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5975. _ACEOF
  5976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5977. # Handling of arguments.
  5978. for ac_config_target in $ac_config_targets
  5979. do
  5980. case $ac_config_target in
  5981. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5982. "lib/sys_elf.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/sys_elf.h" ;;
  5983. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5984. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  5985. "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
  5986. "libelf.pc") CONFIG_FILES="$CONFIG_FILES libelf.pc" ;;
  5987. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  5988. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5989. esac
  5990. done
  5991. # If the user did not use the arguments to specify the items to instantiate,
  5992. # then the envvar interface is used. Set only those that are not.
  5993. # We use the long form for the default assignment because of an extremely
  5994. # bizarre bug on SunOS 4.1.3.
  5995. if $ac_need_defaults; then
  5996. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5997. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5998. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5999. fi
  6000. # Have a temporary directory for convenience. Make it in the build tree
  6001. # simply because there is no reason against having it here, and in addition,
  6002. # creating and moving files from /tmp can sometimes cause problems.
  6003. # Hook for its removal unless debugging.
  6004. # Note that there is a small window in which the directory will not be cleaned:
  6005. # after its creation but before its name has been assigned to `$tmp'.
  6006. $debug ||
  6007. {
  6008. tmp= ac_tmp=
  6009. trap 'exit_status=$?
  6010. : "${ac_tmp:=$tmp}"
  6011. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6012. ' 0
  6013. trap 'as_fn_exit 1' 1 2 13 15
  6014. }
  6015. # Create a (secure) tmp directory for tmp files.
  6016. {
  6017. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6018. test -d "$tmp"
  6019. } ||
  6020. {
  6021. tmp=./conf$$-$RANDOM
  6022. (umask 077 && mkdir "$tmp")
  6023. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6024. ac_tmp=$tmp
  6025. # Set up the scripts for CONFIG_FILES section.
  6026. # No need to generate them if there are no CONFIG_FILES.
  6027. # This happens for instance with `./config.status config.h'.
  6028. if test -n "$CONFIG_FILES"; then
  6029. ac_cr=`echo X | tr X '\015'`
  6030. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6031. # But we know of no other shell where ac_cr would be empty at this
  6032. # point, so we can use a bashism as a fallback.
  6033. if test "x$ac_cr" = x; then
  6034. eval ac_cr=\$\'\\r\'
  6035. fi
  6036. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6037. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6038. ac_cs_awk_cr='\\r'
  6039. else
  6040. ac_cs_awk_cr=$ac_cr
  6041. fi
  6042. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6043. _ACEOF
  6044. {
  6045. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6046. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6047. echo "_ACEOF"
  6048. } >conf$$subs.sh ||
  6049. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6050. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6051. ac_delim='%!_!# '
  6052. for ac_last_try in false false false false false :; do
  6053. . ./conf$$subs.sh ||
  6054. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6055. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6056. if test $ac_delim_n = $ac_delim_num; then
  6057. break
  6058. elif $ac_last_try; then
  6059. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6060. else
  6061. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6062. fi
  6063. done
  6064. rm -f conf$$subs.sh
  6065. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6066. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6067. _ACEOF
  6068. sed -n '
  6069. h
  6070. s/^/S["/; s/!.*/"]=/
  6071. p
  6072. g
  6073. s/^[^!]*!//
  6074. :repl
  6075. t repl
  6076. s/'"$ac_delim"'$//
  6077. t delim
  6078. :nl
  6079. h
  6080. s/\(.\{148\}\)..*/\1/
  6081. t more1
  6082. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6083. p
  6084. n
  6085. b repl
  6086. :more1
  6087. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6088. p
  6089. g
  6090. s/.\{148\}//
  6091. t nl
  6092. :delim
  6093. h
  6094. s/\(.\{148\}\)..*/\1/
  6095. t more2
  6096. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6097. p
  6098. b
  6099. :more2
  6100. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6101. p
  6102. g
  6103. s/.\{148\}//
  6104. t delim
  6105. ' <conf$$subs.awk | sed '
  6106. /^[^""]/{
  6107. N
  6108. s/\n//
  6109. }
  6110. ' >>$CONFIG_STATUS || ac_write_fail=1
  6111. rm -f conf$$subs.awk
  6112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6113. _ACAWK
  6114. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6115. for (key in S) S_is_set[key] = 1
  6116. FS = ""
  6117. }
  6118. {
  6119. line = $ 0
  6120. nfields = split(line, field, "@")
  6121. substed = 0
  6122. len = length(field[1])
  6123. for (i = 2; i < nfields; i++) {
  6124. key = field[i]
  6125. keylen = length(key)
  6126. if (S_is_set[key]) {
  6127. value = S[key]
  6128. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6129. len += length(value) + length(field[++i])
  6130. substed = 1
  6131. } else
  6132. len += 1 + keylen
  6133. }
  6134. print line
  6135. }
  6136. _ACAWK
  6137. _ACEOF
  6138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6139. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6140. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6141. else
  6142. cat
  6143. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6144. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6145. _ACEOF
  6146. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6147. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6148. # trailing colons and then remove the whole line if VPATH becomes empty
  6149. # (actually we leave an empty line to preserve line numbers).
  6150. if test "x$srcdir" = x.; then
  6151. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6152. h
  6153. s///
  6154. s/^/:/
  6155. s/[ ]*$/:/
  6156. s/:\$(srcdir):/:/g
  6157. s/:\${srcdir}:/:/g
  6158. s/:@srcdir@:/:/g
  6159. s/^:*//
  6160. s/:*$//
  6161. x
  6162. s/\(=[ ]*\).*/\1/
  6163. G
  6164. s/\n//
  6165. s/^[^=]*=[ ]*$//
  6166. }'
  6167. fi
  6168. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6169. fi # test -n "$CONFIG_FILES"
  6170. # Set up the scripts for CONFIG_HEADERS section.
  6171. # No need to generate them if there are no CONFIG_HEADERS.
  6172. # This happens for instance with `./config.status Makefile'.
  6173. if test -n "$CONFIG_HEADERS"; then
  6174. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  6175. BEGIN {
  6176. _ACEOF
  6177. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6178. # here-document in config.status, that substitutes the proper values into
  6179. # config.h.in to produce config.h.
  6180. # Create a delimiter string that does not exist in confdefs.h, to ease
  6181. # handling of long lines.
  6182. ac_delim='%!_!# '
  6183. for ac_last_try in false false :; do
  6184. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  6185. if test -z "$ac_tt"; then
  6186. break
  6187. elif $ac_last_try; then
  6188. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6189. else
  6190. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6191. fi
  6192. done
  6193. # For the awk script, D is an array of macro values keyed by name,
  6194. # likewise P contains macro parameters if any. Preserve backslash
  6195. # newline sequences.
  6196. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6197. sed -n '
  6198. s/.\{148\}/&'"$ac_delim"'/g
  6199. t rset
  6200. :rset
  6201. s/^[ ]*#[ ]*define[ ][ ]*/ /
  6202. t def
  6203. d
  6204. :def
  6205. s/\\$//
  6206. t bsnl
  6207. s/["\\]/\\&/g
  6208. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6209. D["\1"]=" \3"/p
  6210. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  6211. d
  6212. :bsnl
  6213. s/["\\]/\\&/g
  6214. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6215. D["\1"]=" \3\\\\\\n"\\/p
  6216. t cont
  6217. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  6218. t cont
  6219. d
  6220. :cont
  6221. n
  6222. s/.\{148\}/&'"$ac_delim"'/g
  6223. t clear
  6224. :clear
  6225. s/\\$//
  6226. t bsnlc
  6227. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  6228. d
  6229. :bsnlc
  6230. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  6231. b cont
  6232. ' <confdefs.h | sed '
  6233. s/'"$ac_delim"'/"\\\
  6234. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  6235. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6236. for (key in D) D_is_set[key] = 1
  6237. FS = ""
  6238. }
  6239. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6240. line = \$ 0
  6241. split(line, arg, " ")
  6242. if (arg[1] == "#") {
  6243. defundef = arg[2]
  6244. mac1 = arg[3]
  6245. } else {
  6246. defundef = substr(arg[1], 2)
  6247. mac1 = arg[2]
  6248. }
  6249. split(mac1, mac2, "(") #)
  6250. macro = mac2[1]
  6251. prefix = substr(line, 1, index(line, defundef) - 1)
  6252. if (D_is_set[macro]) {
  6253. # Preserve the white space surrounding the "#".
  6254. print prefix "define", macro P[macro] D[macro]
  6255. next
  6256. } else {
  6257. # Replace #undef with comments. This is necessary, for example,
  6258. # in the case of _POSIX_SOURCE, which is predefined and required
  6259. # on some systems where configure will not decide to define it.
  6260. if (defundef == "undef") {
  6261. print "/*", prefix defundef, macro, "*/"
  6262. next
  6263. }
  6264. }
  6265. }
  6266. { print }
  6267. _ACAWK
  6268. _ACEOF
  6269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6270. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6271. fi # test -n "$CONFIG_HEADERS"
  6272. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  6273. shift
  6274. for ac_tag
  6275. do
  6276. case $ac_tag in
  6277. :[FHLC]) ac_mode=$ac_tag; continue;;
  6278. esac
  6279. case $ac_mode$ac_tag in
  6280. :[FHL]*:*);;
  6281. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6282. :[FH]-) ac_tag=-:-;;
  6283. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6284. esac
  6285. ac_save_IFS=$IFS
  6286. IFS=:
  6287. set x $ac_tag
  6288. IFS=$ac_save_IFS
  6289. shift
  6290. ac_file=$1
  6291. shift
  6292. case $ac_mode in
  6293. :L) ac_source=$1;;
  6294. :[FH])
  6295. ac_file_inputs=
  6296. for ac_f
  6297. do
  6298. case $ac_f in
  6299. -) ac_f="$ac_tmp/stdin";;
  6300. *) # Look for the file first in the build tree, then in the source tree
  6301. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6302. # because $ac_f cannot contain `:'.
  6303. test -f "$ac_f" ||
  6304. case $ac_f in
  6305. [\\/$]*) false;;
  6306. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6307. esac ||
  6308. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6309. esac
  6310. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6311. as_fn_append ac_file_inputs " '$ac_f'"
  6312. done
  6313. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6314. # use $as_me), people would be surprised to read:
  6315. # /* config.h. Generated by config.status. */
  6316. configure_input='Generated from '`
  6317. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6318. `' by configure.'
  6319. if test x"$ac_file" != x-; then
  6320. configure_input="$ac_file. $configure_input"
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6322. $as_echo "$as_me: creating $ac_file" >&6;}
  6323. fi
  6324. # Neutralize special characters interpreted by sed in replacement strings.
  6325. case $configure_input in #(
  6326. *\&* | *\|* | *\\* )
  6327. ac_sed_conf_input=`$as_echo "$configure_input" |
  6328. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6329. *) ac_sed_conf_input=$configure_input;;
  6330. esac
  6331. case $ac_tag in
  6332. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  6333. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  6334. esac
  6335. ;;
  6336. esac
  6337. ac_dir=`$as_dirname -- "$ac_file" ||
  6338. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6339. X"$ac_file" : 'X\(//\)[^/]' \| \
  6340. X"$ac_file" : 'X\(//\)$' \| \
  6341. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6342. $as_echo X"$ac_file" |
  6343. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6344. s//\1/
  6345. q
  6346. }
  6347. /^X\(\/\/\)[^/].*/{
  6348. s//\1/
  6349. q
  6350. }
  6351. /^X\(\/\/\)$/{
  6352. s//\1/
  6353. q
  6354. }
  6355. /^X\(\/\).*/{
  6356. s//\1/
  6357. q
  6358. }
  6359. s/.*/./; q'`
  6360. as_dir="$ac_dir"; as_fn_mkdir_p
  6361. ac_builddir=.
  6362. case "$ac_dir" in
  6363. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6364. *)
  6365. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6366. # A ".." for each directory in $ac_dir_suffix.
  6367. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6368. case $ac_top_builddir_sub in
  6369. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6370. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6371. esac ;;
  6372. esac
  6373. ac_abs_top_builddir=$ac_pwd
  6374. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6375. # for backward compatibility:
  6376. ac_top_builddir=$ac_top_build_prefix
  6377. case $srcdir in
  6378. .) # We are building in place.
  6379. ac_srcdir=.
  6380. ac_top_srcdir=$ac_top_builddir_sub
  6381. ac_abs_top_srcdir=$ac_pwd ;;
  6382. [\\/]* | ?:[\\/]* ) # Absolute name.
  6383. ac_srcdir=$srcdir$ac_dir_suffix;
  6384. ac_top_srcdir=$srcdir
  6385. ac_abs_top_srcdir=$srcdir ;;
  6386. *) # Relative name.
  6387. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6388. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6389. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6390. esac
  6391. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6392. case $ac_mode in
  6393. :F)
  6394. #
  6395. # CONFIG_FILE
  6396. #
  6397. case $INSTALL in
  6398. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6399. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6400. esac
  6401. _ACEOF
  6402. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6403. # If the template does not know about datarootdir, expand it.
  6404. # FIXME: This hack should be removed a few years after 2.60.
  6405. ac_datarootdir_hack=; ac_datarootdir_seen=
  6406. ac_sed_dataroot='
  6407. /datarootdir/ {
  6408. p
  6409. q
  6410. }
  6411. /@datadir@/p
  6412. /@docdir@/p
  6413. /@infodir@/p
  6414. /@localedir@/p
  6415. /@mandir@/p'
  6416. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6417. *datarootdir*) ac_datarootdir_seen=yes;;
  6418. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6420. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6421. _ACEOF
  6422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6423. ac_datarootdir_hack='
  6424. s&@datadir@&$datadir&g
  6425. s&@docdir@&$docdir&g
  6426. s&@infodir@&$infodir&g
  6427. s&@localedir@&$localedir&g
  6428. s&@mandir@&$mandir&g
  6429. s&\\\${datarootdir}&$datarootdir&g' ;;
  6430. esac
  6431. _ACEOF
  6432. # Neutralize VPATH when `$srcdir' = `.'.
  6433. # Shell code in configure.ac might set extrasub.
  6434. # FIXME: do we really want to maintain this feature?
  6435. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6436. ac_sed_extra="$ac_vpsub
  6437. $extrasub
  6438. _ACEOF
  6439. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6440. :t
  6441. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6442. s|@configure_input@|$ac_sed_conf_input|;t t
  6443. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6444. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6445. s&@srcdir@&$ac_srcdir&;t t
  6446. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6447. s&@top_srcdir@&$ac_top_srcdir&;t t
  6448. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6449. s&@builddir@&$ac_builddir&;t t
  6450. s&@abs_builddir@&$ac_abs_builddir&;t t
  6451. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6452. s&@INSTALL@&$ac_INSTALL&;t t
  6453. $ac_datarootdir_hack
  6454. "
  6455. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  6456. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6457. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6458. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  6459. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  6460. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6462. which seems to be undefined. Please make sure it is defined" >&5
  6463. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6464. which seems to be undefined. Please make sure it is defined" >&2;}
  6465. rm -f "$ac_tmp/stdin"
  6466. case $ac_file in
  6467. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  6468. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  6469. esac \
  6470. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6471. ;;
  6472. :H)
  6473. #
  6474. # CONFIG_HEADER
  6475. #
  6476. if test x"$ac_file" != x-; then
  6477. {
  6478. $as_echo "/* $configure_input */" \
  6479. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  6480. } >"$ac_tmp/config.h" \
  6481. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6482. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6484. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6485. else
  6486. rm -f "$ac_file"
  6487. mv "$ac_tmp/config.h" "$ac_file" \
  6488. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6489. fi
  6490. else
  6491. $as_echo "/* $configure_input */" \
  6492. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  6493. || as_fn_error $? "could not create -" "$LINENO" 5
  6494. fi
  6495. ;;
  6496. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  6497. $as_echo "$as_me: executing $ac_file commands" >&6;}
  6498. ;;
  6499. esac
  6500. case $ac_file$ac_mode in
  6501. "default":C) echo timestamp > stamp-h; echo timestamp > lib/stamp-h ;;
  6502. esac
  6503. done # for ac_tag
  6504. as_fn_exit 0
  6505. _ACEOF
  6506. ac_clean_files=$ac_clean_files_save
  6507. test $ac_write_fail = 0 ||
  6508. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6509. # configure is writing to config.log, and then calls config.status.
  6510. # config.status does its own redirection, appending to config.log.
  6511. # Unfortunately, on DOS this fails, as config.log is still kept open
  6512. # by configure, so config.status won't be able to write to it; its
  6513. # output is simply discarded. So we exec the FD to /dev/null,
  6514. # effectively closing config.log, so it can be properly (re)opened and
  6515. # appended to by config.status. When coming back to configure, we
  6516. # need to make the FD available again.
  6517. if test "$no_create" != yes; then
  6518. ac_cs_success=:
  6519. ac_config_status_args=
  6520. test "$silent" = yes &&
  6521. ac_config_status_args="$ac_config_status_args --quiet"
  6522. exec 5>/dev/null
  6523. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6524. exec 5>>config.log
  6525. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6526. # would make configure fail if this is the last instruction.
  6527. $ac_cs_success || as_fn_exit 1
  6528. fi
  6529. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6531. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6532. fi
  6533. # vi: set ts=8 sw=2 :