configure 235 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  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. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="xmalloc.c"
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. # include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. # include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"
  542. ac_subst_vars='LTLIBOBJS
  543. INSTALL_DEST
  544. pexecute
  545. target_header_dir
  546. CHECK
  547. LIBOBJS
  548. NOASANFLAG
  549. PICFLAG
  550. INSTALL_DATA
  551. INSTALL_SCRIPT
  552. INSTALL_PROGRAM
  553. OUTPUT_OPTION
  554. NO_MINUS_C_MINUS_O
  555. ac_libiberty_warn_cflags
  556. EGREP
  557. GREP
  558. CPP
  559. OBJEXT
  560. EXEEXT
  561. ac_ct_CC
  562. CPPFLAGS
  563. LDFLAGS
  564. CFLAGS
  565. CC
  566. RANLIB
  567. AR
  568. host_os
  569. host_vendor
  570. host_cpu
  571. host
  572. build_os
  573. build_vendor
  574. build_cpu
  575. build
  576. HAVE_PERL
  577. PERL
  578. BUILD_INFO
  579. MAKEINFO
  580. NOTMAINT
  581. MAINT
  582. libiberty_topdir
  583. target_alias
  584. host_alias
  585. build_alias
  586. LIBS
  587. ECHO_T
  588. ECHO_N
  589. ECHO_C
  590. DEFS
  591. mandir
  592. localedir
  593. libdir
  594. psdir
  595. pdfdir
  596. dvidir
  597. htmldir
  598. infodir
  599. docdir
  600. oldincludedir
  601. includedir
  602. localstatedir
  603. sharedstatedir
  604. sysconfdir
  605. datadir
  606. datarootdir
  607. libexecdir
  608. sbindir
  609. bindir
  610. program_transform_name
  611. prefix
  612. exec_prefix
  613. PACKAGE_URL
  614. PACKAGE_BUGREPORT
  615. PACKAGE_STRING
  616. PACKAGE_VERSION
  617. PACKAGE_TARNAME
  618. PACKAGE_NAME
  619. PATH_SEPARATOR
  620. SHELL'
  621. ac_subst_files='host_makefile_frag'
  622. ac_user_opts='
  623. enable_option_checking
  624. with_target_subdir
  625. with_build_subdir
  626. with_cross_host
  627. with_newlib
  628. enable_maintainer_mode
  629. enable_multilib
  630. enable_install_libiberty
  631. enable_largefile
  632. '
  633. ac_precious_vars='build_alias
  634. host_alias
  635. target_alias
  636. CC
  637. CFLAGS
  638. LDFLAGS
  639. LIBS
  640. CPPFLAGS
  641. CPP'
  642. # Initialize some variables set by options.
  643. ac_init_help=
  644. ac_init_version=false
  645. ac_unrecognized_opts=
  646. ac_unrecognized_sep=
  647. # The variables have the same names as the options, with
  648. # dashes changed to underlines.
  649. cache_file=/dev/null
  650. exec_prefix=NONE
  651. no_create=
  652. no_recursion=
  653. prefix=NONE
  654. program_prefix=NONE
  655. program_suffix=NONE
  656. program_transform_name=s,x,x,
  657. silent=
  658. site=
  659. srcdir=
  660. verbose=
  661. x_includes=NONE
  662. x_libraries=NONE
  663. # Installation directory options.
  664. # These are left unexpanded so users can "make install exec_prefix=/foo"
  665. # and all the variables that are supposed to be based on exec_prefix
  666. # by default will actually change.
  667. # Use braces instead of parens because sh, perl, etc. also accept them.
  668. # (The list follows the same order as the GNU Coding Standards.)
  669. bindir='${exec_prefix}/bin'
  670. sbindir='${exec_prefix}/sbin'
  671. libexecdir='${exec_prefix}/libexec'
  672. datarootdir='${prefix}/share'
  673. datadir='${datarootdir}'
  674. sysconfdir='${prefix}/etc'
  675. sharedstatedir='${prefix}/com'
  676. localstatedir='${prefix}/var'
  677. includedir='${prefix}/include'
  678. oldincludedir='/usr/include'
  679. docdir='${datarootdir}/doc/${PACKAGE}'
  680. infodir='${datarootdir}/info'
  681. htmldir='${docdir}'
  682. dvidir='${docdir}'
  683. pdfdir='${docdir}'
  684. psdir='${docdir}'
  685. libdir='${exec_prefix}/lib'
  686. localedir='${datarootdir}/locale'
  687. mandir='${datarootdir}/man'
  688. ac_prev=
  689. ac_dashdash=
  690. for ac_option
  691. do
  692. # If the previous option needs an argument, assign it.
  693. if test -n "$ac_prev"; then
  694. eval $ac_prev=\$ac_option
  695. ac_prev=
  696. continue
  697. fi
  698. case $ac_option in
  699. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  700. *) ac_optarg=yes ;;
  701. esac
  702. # Accept the important Cygnus configure options, so we can diagnose typos.
  703. case $ac_dashdash$ac_option in
  704. --)
  705. ac_dashdash=yes ;;
  706. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  707. ac_prev=bindir ;;
  708. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  709. bindir=$ac_optarg ;;
  710. -build | --build | --buil | --bui | --bu)
  711. ac_prev=build_alias ;;
  712. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  713. build_alias=$ac_optarg ;;
  714. -cache-file | --cache-file | --cache-fil | --cache-fi \
  715. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  716. ac_prev=cache_file ;;
  717. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  718. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  719. cache_file=$ac_optarg ;;
  720. --config-cache | -C)
  721. cache_file=config.cache ;;
  722. -datadir | --datadir | --datadi | --datad)
  723. ac_prev=datadir ;;
  724. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  725. datadir=$ac_optarg ;;
  726. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  727. | --dataroo | --dataro | --datar)
  728. ac_prev=datarootdir ;;
  729. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  730. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  731. datarootdir=$ac_optarg ;;
  732. -disable-* | --disable-*)
  733. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  734. # Reject names that are not valid shell variable names.
  735. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  736. as_fn_error "invalid feature name: $ac_useropt"
  737. ac_useropt_orig=$ac_useropt
  738. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  739. case $ac_user_opts in
  740. *"
  741. "enable_$ac_useropt"
  742. "*) ;;
  743. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  744. ac_unrecognized_sep=', ';;
  745. esac
  746. eval enable_$ac_useropt=no ;;
  747. -docdir | --docdir | --docdi | --doc | --do)
  748. ac_prev=docdir ;;
  749. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  750. docdir=$ac_optarg ;;
  751. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  752. ac_prev=dvidir ;;
  753. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  754. dvidir=$ac_optarg ;;
  755. -enable-* | --enable-*)
  756. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  757. # Reject names that are not valid shell variable names.
  758. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  759. as_fn_error "invalid feature name: $ac_useropt"
  760. ac_useropt_orig=$ac_useropt
  761. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  762. case $ac_user_opts in
  763. *"
  764. "enable_$ac_useropt"
  765. "*) ;;
  766. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  767. ac_unrecognized_sep=', ';;
  768. esac
  769. eval enable_$ac_useropt=\$ac_optarg ;;
  770. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  771. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  772. | --exec | --exe | --ex)
  773. ac_prev=exec_prefix ;;
  774. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  775. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  776. | --exec=* | --exe=* | --ex=*)
  777. exec_prefix=$ac_optarg ;;
  778. -gas | --gas | --ga | --g)
  779. # Obsolete; use --with-gas.
  780. with_gas=yes ;;
  781. -help | --help | --hel | --he | -h)
  782. ac_init_help=long ;;
  783. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  784. ac_init_help=recursive ;;
  785. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  786. ac_init_help=short ;;
  787. -host | --host | --hos | --ho)
  788. ac_prev=host_alias ;;
  789. -host=* | --host=* | --hos=* | --ho=*)
  790. host_alias=$ac_optarg ;;
  791. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  792. ac_prev=htmldir ;;
  793. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  794. | --ht=*)
  795. htmldir=$ac_optarg ;;
  796. -includedir | --includedir | --includedi | --included | --include \
  797. | --includ | --inclu | --incl | --inc)
  798. ac_prev=includedir ;;
  799. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  800. | --includ=* | --inclu=* | --incl=* | --inc=*)
  801. includedir=$ac_optarg ;;
  802. -infodir | --infodir | --infodi | --infod | --info | --inf)
  803. ac_prev=infodir ;;
  804. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  805. infodir=$ac_optarg ;;
  806. -libdir | --libdir | --libdi | --libd)
  807. ac_prev=libdir ;;
  808. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  809. libdir=$ac_optarg ;;
  810. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  811. | --libexe | --libex | --libe)
  812. ac_prev=libexecdir ;;
  813. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  814. | --libexe=* | --libex=* | --libe=*)
  815. libexecdir=$ac_optarg ;;
  816. -localedir | --localedir | --localedi | --localed | --locale)
  817. ac_prev=localedir ;;
  818. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  819. localedir=$ac_optarg ;;
  820. -localstatedir | --localstatedir | --localstatedi | --localstated \
  821. | --localstate | --localstat | --localsta | --localst | --locals)
  822. ac_prev=localstatedir ;;
  823. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  824. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  825. localstatedir=$ac_optarg ;;
  826. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  827. ac_prev=mandir ;;
  828. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  829. mandir=$ac_optarg ;;
  830. -nfp | --nfp | --nf)
  831. # Obsolete; use --without-fp.
  832. with_fp=no ;;
  833. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  834. | --no-cr | --no-c | -n)
  835. no_create=yes ;;
  836. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  837. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  838. no_recursion=yes ;;
  839. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  840. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  841. | --oldin | --oldi | --old | --ol | --o)
  842. ac_prev=oldincludedir ;;
  843. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  844. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  845. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  846. oldincludedir=$ac_optarg ;;
  847. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  848. ac_prev=prefix ;;
  849. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  850. prefix=$ac_optarg ;;
  851. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  852. | --program-pre | --program-pr | --program-p)
  853. ac_prev=program_prefix ;;
  854. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  855. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  856. program_prefix=$ac_optarg ;;
  857. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  858. | --program-suf | --program-su | --program-s)
  859. ac_prev=program_suffix ;;
  860. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  861. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  862. program_suffix=$ac_optarg ;;
  863. -program-transform-name | --program-transform-name \
  864. | --program-transform-nam | --program-transform-na \
  865. | --program-transform-n | --program-transform- \
  866. | --program-transform | --program-transfor \
  867. | --program-transfo | --program-transf \
  868. | --program-trans | --program-tran \
  869. | --progr-tra | --program-tr | --program-t)
  870. ac_prev=program_transform_name ;;
  871. -program-transform-name=* | --program-transform-name=* \
  872. | --program-transform-nam=* | --program-transform-na=* \
  873. | --program-transform-n=* | --program-transform-=* \
  874. | --program-transform=* | --program-transfor=* \
  875. | --program-transfo=* | --program-transf=* \
  876. | --program-trans=* | --program-tran=* \
  877. | --progr-tra=* | --program-tr=* | --program-t=*)
  878. program_transform_name=$ac_optarg ;;
  879. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  880. ac_prev=pdfdir ;;
  881. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  882. pdfdir=$ac_optarg ;;
  883. -psdir | --psdir | --psdi | --psd | --ps)
  884. ac_prev=psdir ;;
  885. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  886. psdir=$ac_optarg ;;
  887. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  888. | -silent | --silent | --silen | --sile | --sil)
  889. silent=yes ;;
  890. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  891. ac_prev=sbindir ;;
  892. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  893. | --sbi=* | --sb=*)
  894. sbindir=$ac_optarg ;;
  895. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  896. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  897. | --sharedst | --shareds | --shared | --share | --shar \
  898. | --sha | --sh)
  899. ac_prev=sharedstatedir ;;
  900. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  901. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  902. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  903. | --sha=* | --sh=*)
  904. sharedstatedir=$ac_optarg ;;
  905. -site | --site | --sit)
  906. ac_prev=site ;;
  907. -site=* | --site=* | --sit=*)
  908. site=$ac_optarg ;;
  909. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  910. ac_prev=srcdir ;;
  911. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  912. srcdir=$ac_optarg ;;
  913. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  914. | --syscon | --sysco | --sysc | --sys | --sy)
  915. ac_prev=sysconfdir ;;
  916. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  917. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  918. sysconfdir=$ac_optarg ;;
  919. -target | --target | --targe | --targ | --tar | --ta | --t)
  920. ac_prev=target_alias ;;
  921. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  922. target_alias=$ac_optarg ;;
  923. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  924. verbose=yes ;;
  925. -version | --version | --versio | --versi | --vers | -V)
  926. ac_init_version=: ;;
  927. -with-* | --with-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid package name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "with_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval with_$ac_useropt=\$ac_optarg ;;
  942. -without-* | --without-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error "invalid package name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "with_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval with_$ac_useropt=no ;;
  957. --x)
  958. # Obsolete; use --with-x.
  959. with_x=yes ;;
  960. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  961. | --x-incl | --x-inc | --x-in | --x-i)
  962. ac_prev=x_includes ;;
  963. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  964. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  965. x_includes=$ac_optarg ;;
  966. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  967. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  968. ac_prev=x_libraries ;;
  969. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  970. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  971. x_libraries=$ac_optarg ;;
  972. -*) as_fn_error "unrecognized option: \`$ac_option'
  973. Try \`$0 --help' for more information."
  974. ;;
  975. *=*)
  976. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  977. # Reject names that are not valid shell variable names.
  978. case $ac_envvar in #(
  979. '' | [0-9]* | *[!_$as_cr_alnum]* )
  980. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  981. esac
  982. eval $ac_envvar=\$ac_optarg
  983. export $ac_envvar ;;
  984. *)
  985. # FIXME: should be removed in autoconf 3.0.
  986. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  987. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  988. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  989. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  990. ;;
  991. esac
  992. done
  993. if test -n "$ac_prev"; then
  994. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  995. as_fn_error "missing argument to $ac_option"
  996. fi
  997. if test -n "$ac_unrecognized_opts"; then
  998. case $enable_option_checking in
  999. no) ;;
  1000. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1001. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1002. esac
  1003. fi
  1004. # Check all directory arguments for consistency.
  1005. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1006. datadir sysconfdir sharedstatedir localstatedir includedir \
  1007. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1008. libdir localedir mandir
  1009. do
  1010. eval ac_val=\$$ac_var
  1011. # Remove trailing slashes.
  1012. case $ac_val in
  1013. */ )
  1014. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1015. eval $ac_var=\$ac_val;;
  1016. esac
  1017. # Be sure to have absolute directory names.
  1018. case $ac_val in
  1019. [\\/$]* | ?:[\\/]* ) continue;;
  1020. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1021. esac
  1022. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1023. done
  1024. # There might be people who depend on the old broken behavior: `$host'
  1025. # used to hold the argument of --host etc.
  1026. # FIXME: To remove some day.
  1027. build=$build_alias
  1028. host=$host_alias
  1029. target=$target_alias
  1030. # FIXME: To remove some day.
  1031. if test "x$host_alias" != x; then
  1032. if test "x$build_alias" = x; then
  1033. cross_compiling=maybe
  1034. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1035. If a cross compiler is detected then cross compile mode will be used." >&2
  1036. elif test "x$build_alias" != "x$host_alias"; then
  1037. cross_compiling=yes
  1038. fi
  1039. fi
  1040. ac_tool_prefix=
  1041. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1042. test "$silent" = yes && exec 6>/dev/null
  1043. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1044. ac_ls_di=`ls -di .` &&
  1045. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1046. as_fn_error "working directory cannot be determined"
  1047. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1048. as_fn_error "pwd does not report name of working directory"
  1049. # Find the source files, if location was not specified.
  1050. if test -z "$srcdir"; then
  1051. ac_srcdir_defaulted=yes
  1052. # Try the directory containing this script, then the parent directory.
  1053. ac_confdir=`$as_dirname -- "$as_myself" ||
  1054. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1055. X"$as_myself" : 'X\(//\)[^/]' \| \
  1056. X"$as_myself" : 'X\(//\)$' \| \
  1057. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1058. $as_echo X"$as_myself" |
  1059. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1060. s//\1/
  1061. q
  1062. }
  1063. /^X\(\/\/\)[^/].*/{
  1064. s//\1/
  1065. q
  1066. }
  1067. /^X\(\/\/\)$/{
  1068. s//\1/
  1069. q
  1070. }
  1071. /^X\(\/\).*/{
  1072. s//\1/
  1073. q
  1074. }
  1075. s/.*/./; q'`
  1076. srcdir=$ac_confdir
  1077. if test ! -r "$srcdir/$ac_unique_file"; then
  1078. srcdir=..
  1079. fi
  1080. else
  1081. ac_srcdir_defaulted=no
  1082. fi
  1083. if test ! -r "$srcdir/$ac_unique_file"; then
  1084. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1085. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1086. fi
  1087. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1088. ac_abs_confdir=`(
  1089. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1090. pwd)`
  1091. # When building in place, set srcdir=.
  1092. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1093. srcdir=.
  1094. fi
  1095. # Remove unnecessary trailing slashes from srcdir.
  1096. # Double slashes in file names in object file debugging info
  1097. # mess up M-x gdb in Emacs.
  1098. case $srcdir in
  1099. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1100. esac
  1101. for ac_var in $ac_precious_vars; do
  1102. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1103. eval ac_env_${ac_var}_value=\$${ac_var}
  1104. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1105. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1106. done
  1107. #
  1108. # Report the --help message.
  1109. #
  1110. if test "$ac_init_help" = "long"; then
  1111. # Omit some internal or obsolete options to make the list less imposing.
  1112. # This message is too long to be a string in the A/UX 3.1 sh.
  1113. cat <<_ACEOF
  1114. \`configure' configures this package to adapt to many kinds of systems.
  1115. Usage: $0 [OPTION]... [VAR=VALUE]...
  1116. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1117. VAR=VALUE. See below for descriptions of some of the useful variables.
  1118. Defaults for the options are specified in brackets.
  1119. Configuration:
  1120. -h, --help display this help and exit
  1121. --help=short display options specific to this package
  1122. --help=recursive display the short help of all the included packages
  1123. -V, --version display version information and exit
  1124. -q, --quiet, --silent do not print \`checking...' messages
  1125. --cache-file=FILE cache test results in FILE [disabled]
  1126. -C, --config-cache alias for \`--cache-file=config.cache'
  1127. -n, --no-create do not create output files
  1128. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1129. Installation directories:
  1130. --prefix=PREFIX install architecture-independent files in PREFIX
  1131. [$ac_default_prefix]
  1132. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1133. [PREFIX]
  1134. By default, \`make install' will install all the files in
  1135. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1136. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1137. for instance \`--prefix=\$HOME'.
  1138. For better control, use the options below.
  1139. Fine tuning of the installation directories:
  1140. --bindir=DIR user executables [EPREFIX/bin]
  1141. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1142. --libexecdir=DIR program executables [EPREFIX/libexec]
  1143. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1144. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1145. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1146. --libdir=DIR object code libraries [EPREFIX/lib]
  1147. --includedir=DIR C header files [PREFIX/include]
  1148. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1149. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1150. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1151. --infodir=DIR info documentation [DATAROOTDIR/info]
  1152. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1153. --mandir=DIR man documentation [DATAROOTDIR/man]
  1154. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1155. --htmldir=DIR html documentation [DOCDIR]
  1156. --dvidir=DIR dvi documentation [DOCDIR]
  1157. --pdfdir=DIR pdf documentation [DOCDIR]
  1158. --psdir=DIR ps documentation [DOCDIR]
  1159. _ACEOF
  1160. cat <<\_ACEOF
  1161. System types:
  1162. --build=BUILD configure for building on BUILD [guessed]
  1163. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1164. _ACEOF
  1165. fi
  1166. if test -n "$ac_init_help"; then
  1167. cat <<\_ACEOF
  1168. Optional Features:
  1169. --disable-option-checking ignore unrecognized --enable/--with options
  1170. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1171. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1172. --enable-maintainer-mode
  1173. enable make rules and dependencies not useful
  1174. (and sometimes confusing) to the casual installer
  1175. --enable-multilib build many library versions (default)
  1176. --enable-install-libiberty Install headers and library for end users
  1177. --disable-largefile omit support for large files
  1178. Optional Packages:
  1179. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1180. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1181. --with-target-subdir=SUBDIR Configuring in a subdirectory for target
  1182. --with-build-subdir=SUBDIR Configuring in a subdirectory for build
  1183. --with-cross-host=HOST Configuring with a cross compiler
  1184. --with-newlib Configuring with newlib
  1185. Some influential environment variables:
  1186. CC C compiler command
  1187. CFLAGS C compiler flags
  1188. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1189. nonstandard directory <lib dir>
  1190. LIBS libraries to pass to the linker, e.g. -l<library>
  1191. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1192. you have headers in a nonstandard directory <include dir>
  1193. CPP C preprocessor
  1194. Use these variables to override the choices made by `configure' or to help
  1195. it to find libraries and programs with nonstandard names/locations.
  1196. Report bugs to the package provider.
  1197. _ACEOF
  1198. ac_status=$?
  1199. fi
  1200. if test "$ac_init_help" = "recursive"; then
  1201. # If there are subdirs, report their specific --help.
  1202. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1203. test -d "$ac_dir" ||
  1204. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1205. continue
  1206. ac_builddir=.
  1207. case "$ac_dir" in
  1208. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1209. *)
  1210. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1211. # A ".." for each directory in $ac_dir_suffix.
  1212. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1213. case $ac_top_builddir_sub in
  1214. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1215. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1216. esac ;;
  1217. esac
  1218. ac_abs_top_builddir=$ac_pwd
  1219. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1220. # for backward compatibility:
  1221. ac_top_builddir=$ac_top_build_prefix
  1222. case $srcdir in
  1223. .) # We are building in place.
  1224. ac_srcdir=.
  1225. ac_top_srcdir=$ac_top_builddir_sub
  1226. ac_abs_top_srcdir=$ac_pwd ;;
  1227. [\\/]* | ?:[\\/]* ) # Absolute name.
  1228. ac_srcdir=$srcdir$ac_dir_suffix;
  1229. ac_top_srcdir=$srcdir
  1230. ac_abs_top_srcdir=$srcdir ;;
  1231. *) # Relative name.
  1232. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1233. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1234. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1235. esac
  1236. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1237. cd "$ac_dir" || { ac_status=$?; continue; }
  1238. # Check for guested configure.
  1239. if test -f "$ac_srcdir/configure.gnu"; then
  1240. echo &&
  1241. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1242. elif test -f "$ac_srcdir/configure"; then
  1243. echo &&
  1244. $SHELL "$ac_srcdir/configure" --help=recursive
  1245. else
  1246. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1247. fi || ac_status=$?
  1248. cd "$ac_pwd" || { ac_status=$?; break; }
  1249. done
  1250. fi
  1251. test -n "$ac_init_help" && exit $ac_status
  1252. if $ac_init_version; then
  1253. cat <<\_ACEOF
  1254. configure
  1255. generated by GNU Autoconf 2.64
  1256. Copyright (C) 2009 Free Software Foundation, Inc.
  1257. This configure script is free software; the Free Software Foundation
  1258. gives unlimited permission to copy, distribute and modify it.
  1259. _ACEOF
  1260. exit
  1261. fi
  1262. ## ------------------------ ##
  1263. ## Autoconf initialization. ##
  1264. ## ------------------------ ##
  1265. # ac_fn_c_try_compile LINENO
  1266. # --------------------------
  1267. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1268. ac_fn_c_try_compile ()
  1269. {
  1270. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1271. rm -f conftest.$ac_objext
  1272. if { { ac_try="$ac_compile"
  1273. case "(($ac_try" in
  1274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1275. *) ac_try_echo=$ac_try;;
  1276. esac
  1277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1278. $as_echo "$ac_try_echo"; } >&5
  1279. (eval "$ac_compile") 2>conftest.err
  1280. ac_status=$?
  1281. if test -s conftest.err; then
  1282. grep -v '^ *+' conftest.err >conftest.er1
  1283. cat conftest.er1 >&5
  1284. mv -f conftest.er1 conftest.err
  1285. fi
  1286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1287. test $ac_status = 0; } && {
  1288. test -z "$ac_c_werror_flag" ||
  1289. test ! -s conftest.err
  1290. } && test -s conftest.$ac_objext; then :
  1291. ac_retval=0
  1292. else
  1293. $as_echo "$as_me: failed program was:" >&5
  1294. sed 's/^/| /' conftest.$ac_ext >&5
  1295. ac_retval=1
  1296. fi
  1297. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1298. return $ac_retval
  1299. } # ac_fn_c_try_compile
  1300. # ac_fn_c_try_cpp LINENO
  1301. # ----------------------
  1302. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1303. ac_fn_c_try_cpp ()
  1304. {
  1305. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1306. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1307. case "(($ac_try" in
  1308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1309. *) ac_try_echo=$ac_try;;
  1310. esac
  1311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1312. $as_echo "$ac_try_echo"; } >&5
  1313. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1314. ac_status=$?
  1315. if test -s conftest.err; then
  1316. grep -v '^ *+' conftest.err >conftest.er1
  1317. cat conftest.er1 >&5
  1318. mv -f conftest.er1 conftest.err
  1319. fi
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; } >/dev/null && {
  1322. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1323. test ! -s conftest.err
  1324. }; then :
  1325. ac_retval=0
  1326. else
  1327. $as_echo "$as_me: failed program was:" >&5
  1328. sed 's/^/| /' conftest.$ac_ext >&5
  1329. ac_retval=1
  1330. fi
  1331. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1332. return $ac_retval
  1333. } # ac_fn_c_try_cpp
  1334. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1335. # -------------------------------------------------------
  1336. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1337. # the include files in INCLUDES and setting the cache variable VAR
  1338. # accordingly.
  1339. ac_fn_c_check_header_mongrel ()
  1340. {
  1341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1342. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1344. $as_echo_n "checking for $2... " >&6; }
  1345. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1346. $as_echo_n "(cached) " >&6
  1347. fi
  1348. eval ac_res=\$$3
  1349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1350. $as_echo "$ac_res" >&6; }
  1351. else
  1352. # Is the header compilable?
  1353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1354. $as_echo_n "checking $2 usability... " >&6; }
  1355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1356. /* end confdefs.h. */
  1357. $4
  1358. #include <$2>
  1359. _ACEOF
  1360. if ac_fn_c_try_compile "$LINENO"; then :
  1361. ac_header_compiler=yes
  1362. else
  1363. ac_header_compiler=no
  1364. fi
  1365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1367. $as_echo "$ac_header_compiler" >&6; }
  1368. # Is the header present?
  1369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1370. $as_echo_n "checking $2 presence... " >&6; }
  1371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1372. /* end confdefs.h. */
  1373. #include <$2>
  1374. _ACEOF
  1375. if ac_fn_c_try_cpp "$LINENO"; then :
  1376. ac_header_preproc=yes
  1377. else
  1378. ac_header_preproc=no
  1379. fi
  1380. rm -f conftest.err conftest.$ac_ext
  1381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1382. $as_echo "$ac_header_preproc" >&6; }
  1383. # So? What about this header?
  1384. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1385. yes:no: )
  1386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1387. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1389. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1390. ;;
  1391. no:yes:* )
  1392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1393. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1395. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1397. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1399. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1401. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1402. ;;
  1403. esac
  1404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1405. $as_echo_n "checking for $2... " >&6; }
  1406. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1407. $as_echo_n "(cached) " >&6
  1408. else
  1409. eval "$3=\$ac_header_compiler"
  1410. fi
  1411. eval ac_res=\$$3
  1412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1413. $as_echo "$ac_res" >&6; }
  1414. fi
  1415. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1416. } # ac_fn_c_check_header_mongrel
  1417. # ac_fn_c_try_run LINENO
  1418. # ----------------------
  1419. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1420. # that executables *can* be run.
  1421. ac_fn_c_try_run ()
  1422. {
  1423. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1424. if { { ac_try="$ac_link"
  1425. case "(($ac_try" in
  1426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1427. *) ac_try_echo=$ac_try;;
  1428. esac
  1429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1430. $as_echo "$ac_try_echo"; } >&5
  1431. (eval "$ac_link") 2>&5
  1432. ac_status=$?
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1435. { { case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. $as_echo "$ac_try_echo"; } >&5
  1441. (eval "$ac_try") 2>&5
  1442. ac_status=$?
  1443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1444. test $ac_status = 0; }; }; then :
  1445. ac_retval=0
  1446. else
  1447. $as_echo "$as_me: program exited with status $ac_status" >&5
  1448. $as_echo "$as_me: failed program was:" >&5
  1449. sed 's/^/| /' conftest.$ac_ext >&5
  1450. ac_retval=$ac_status
  1451. fi
  1452. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1453. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1454. return $ac_retval
  1455. } # ac_fn_c_try_run
  1456. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1457. # -------------------------------------------------------
  1458. # Tests whether HEADER exists and can be compiled using the include files in
  1459. # INCLUDES, setting the cache variable VAR accordingly.
  1460. ac_fn_c_check_header_compile ()
  1461. {
  1462. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1464. $as_echo_n "checking for $2... " >&6; }
  1465. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1466. $as_echo_n "(cached) " >&6
  1467. else
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. eval "$3=yes"
  1475. else
  1476. eval "$3=no"
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. fi
  1480. eval ac_res=\$$3
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1482. $as_echo "$ac_res" >&6; }
  1483. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1484. } # ac_fn_c_check_header_compile
  1485. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  1486. # ----------------------------------------------
  1487. # Tests whether HEADER is present, setting the cache variable VAR accordingly.
  1488. ac_fn_c_check_header_preproc ()
  1489. {
  1490. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1492. $as_echo_n "checking for $2... " >&6; }
  1493. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1494. $as_echo_n "(cached) " >&6
  1495. else
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. #include <$2>
  1499. _ACEOF
  1500. if ac_fn_c_try_cpp "$LINENO"; then :
  1501. eval "$3=yes"
  1502. else
  1503. eval "$3=no"
  1504. fi
  1505. rm -f conftest.err conftest.$ac_ext
  1506. fi
  1507. eval ac_res=\$$3
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1509. $as_echo "$ac_res" >&6; }
  1510. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1511. } # ac_fn_c_check_header_preproc
  1512. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1513. # --------------------------------------------
  1514. # Tries to find the compile-time value of EXPR in a program that includes
  1515. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1516. # computed
  1517. ac_fn_c_compute_int ()
  1518. {
  1519. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1520. if test "$cross_compiling" = yes; then
  1521. # Depending upon the size, compute the lo and hi bounds.
  1522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1523. /* end confdefs.h. */
  1524. $4
  1525. int
  1526. main ()
  1527. {
  1528. static int test_array [1 - 2 * !(($2) >= 0)];
  1529. test_array [0] = 0
  1530. ;
  1531. return 0;
  1532. }
  1533. _ACEOF
  1534. if ac_fn_c_try_compile "$LINENO"; then :
  1535. ac_lo=0 ac_mid=0
  1536. while :; do
  1537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1538. /* end confdefs.h. */
  1539. $4
  1540. int
  1541. main ()
  1542. {
  1543. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1544. test_array [0] = 0
  1545. ;
  1546. return 0;
  1547. }
  1548. _ACEOF
  1549. if ac_fn_c_try_compile "$LINENO"; then :
  1550. ac_hi=$ac_mid; break
  1551. else
  1552. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1553. if test $ac_lo -le $ac_mid; then
  1554. ac_lo= ac_hi=
  1555. break
  1556. fi
  1557. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1558. fi
  1559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1560. done
  1561. else
  1562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1563. /* end confdefs.h. */
  1564. $4
  1565. int
  1566. main ()
  1567. {
  1568. static int test_array [1 - 2 * !(($2) < 0)];
  1569. test_array [0] = 0
  1570. ;
  1571. return 0;
  1572. }
  1573. _ACEOF
  1574. if ac_fn_c_try_compile "$LINENO"; then :
  1575. ac_hi=-1 ac_mid=-1
  1576. while :; do
  1577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end confdefs.h. */
  1579. $4
  1580. int
  1581. main ()
  1582. {
  1583. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1584. test_array [0] = 0
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. if ac_fn_c_try_compile "$LINENO"; then :
  1590. ac_lo=$ac_mid; break
  1591. else
  1592. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1593. if test $ac_mid -le $ac_hi; then
  1594. ac_lo= ac_hi=
  1595. break
  1596. fi
  1597. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1598. fi
  1599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1600. done
  1601. else
  1602. ac_lo= ac_hi=
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. # Binary search between lo and hi bounds.
  1608. while test "x$ac_lo" != "x$ac_hi"; do
  1609. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1611. /* end confdefs.h. */
  1612. $4
  1613. int
  1614. main ()
  1615. {
  1616. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1617. test_array [0] = 0
  1618. ;
  1619. return 0;
  1620. }
  1621. _ACEOF
  1622. if ac_fn_c_try_compile "$LINENO"; then :
  1623. ac_hi=$ac_mid
  1624. else
  1625. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1626. fi
  1627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1628. done
  1629. case $ac_lo in #((
  1630. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1631. '') ac_retval=1 ;;
  1632. esac
  1633. else
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. static long int longval () { return $2; }
  1638. static unsigned long int ulongval () { return $2; }
  1639. #include <stdio.h>
  1640. #include <stdlib.h>
  1641. int
  1642. main ()
  1643. {
  1644. FILE *f = fopen ("conftest.val", "w");
  1645. if (! f)
  1646. return 1;
  1647. if (($2) < 0)
  1648. {
  1649. long int i = longval ();
  1650. if (i != ($2))
  1651. return 1;
  1652. fprintf (f, "%ld", i);
  1653. }
  1654. else
  1655. {
  1656. unsigned long int i = ulongval ();
  1657. if (i != ($2))
  1658. return 1;
  1659. fprintf (f, "%lu", i);
  1660. }
  1661. /* Do not output a trailing newline, as this causes \r\n confusion
  1662. on some platforms. */
  1663. return ferror (f) || fclose (f) != 0;
  1664. ;
  1665. return 0;
  1666. }
  1667. _ACEOF
  1668. if ac_fn_c_try_run "$LINENO"; then :
  1669. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1670. else
  1671. ac_retval=1
  1672. fi
  1673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1675. rm -f conftest.val
  1676. fi
  1677. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1678. return $ac_retval
  1679. } # ac_fn_c_compute_int
  1680. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1681. # -------------------------------------------
  1682. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1683. # variable VAR accordingly.
  1684. ac_fn_c_check_type ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1688. $as_echo_n "checking for $2... " >&6; }
  1689. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1690. $as_echo_n "(cached) " >&6
  1691. else
  1692. eval "$3=no"
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. $4
  1696. int
  1697. main ()
  1698. {
  1699. if (sizeof ($2))
  1700. return 0;
  1701. ;
  1702. return 0;
  1703. }
  1704. _ACEOF
  1705. if ac_fn_c_try_compile "$LINENO"; then :
  1706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1707. /* end confdefs.h. */
  1708. $4
  1709. int
  1710. main ()
  1711. {
  1712. if (sizeof (($2)))
  1713. return 0;
  1714. ;
  1715. return 0;
  1716. }
  1717. _ACEOF
  1718. if ac_fn_c_try_compile "$LINENO"; then :
  1719. else
  1720. eval "$3=yes"
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. fi
  1724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1725. fi
  1726. eval ac_res=\$$3
  1727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1728. $as_echo "$ac_res" >&6; }
  1729. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1730. } # ac_fn_c_check_type
  1731. # ac_fn_c_try_link LINENO
  1732. # -----------------------
  1733. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1734. ac_fn_c_try_link ()
  1735. {
  1736. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1737. rm -f conftest.$ac_objext conftest$ac_exeext
  1738. if { { ac_try="$ac_link"
  1739. case "(($ac_try" in
  1740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1741. *) ac_try_echo=$ac_try;;
  1742. esac
  1743. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1744. $as_echo "$ac_try_echo"; } >&5
  1745. (eval "$ac_link") 2>conftest.err
  1746. ac_status=$?
  1747. if test -s conftest.err; then
  1748. grep -v '^ *+' conftest.err >conftest.er1
  1749. cat conftest.er1 >&5
  1750. mv -f conftest.er1 conftest.err
  1751. fi
  1752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1753. test $ac_status = 0; } && {
  1754. test -z "$ac_c_werror_flag" ||
  1755. test ! -s conftest.err
  1756. } && test -s conftest$ac_exeext && {
  1757. test "$cross_compiling" = yes ||
  1758. $as_test_x conftest$ac_exeext
  1759. }; then :
  1760. ac_retval=0
  1761. else
  1762. $as_echo "$as_me: failed program was:" >&5
  1763. sed 's/^/| /' conftest.$ac_ext >&5
  1764. ac_retval=1
  1765. fi
  1766. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1767. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1768. # interfere with the next link command; also delete a directory that is
  1769. # left behind by Apple's compiler. We do this before executing the actions.
  1770. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1771. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1772. return $ac_retval
  1773. } # ac_fn_c_try_link
  1774. # ac_fn_c_check_func LINENO FUNC VAR
  1775. # ----------------------------------
  1776. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1777. ac_fn_c_check_func ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1781. $as_echo_n "checking for $2... " >&6; }
  1782. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1783. $as_echo_n "(cached) " >&6
  1784. else
  1785. if test x$gcc_no_link = xyes; then
  1786. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1787. fi
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1791. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1792. #define $2 innocuous_$2
  1793. /* System header to define __stub macros and hopefully few prototypes,
  1794. which can conflict with char $2 (); below.
  1795. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1796. <limits.h> exists even on freestanding compilers. */
  1797. #ifdef __STDC__
  1798. # include <limits.h>
  1799. #else
  1800. # include <assert.h>
  1801. #endif
  1802. #undef $2
  1803. /* Override any GCC internal prototype to avoid an error.
  1804. Use char because int might match the return type of a GCC
  1805. builtin and then its argument prototype would still apply. */
  1806. #ifdef __cplusplus
  1807. extern "C"
  1808. #endif
  1809. char $2 ();
  1810. /* The GNU C library defines this for functions which it implements
  1811. to always fail with ENOSYS. Some functions are actually named
  1812. something starting with __ and the normal name is an alias. */
  1813. #if defined __stub_$2 || defined __stub___$2
  1814. choke me
  1815. #endif
  1816. int
  1817. main ()
  1818. {
  1819. return $2 ();
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_link "$LINENO"; then :
  1825. eval "$3=yes"
  1826. else
  1827. eval "$3=no"
  1828. fi
  1829. rm -f core conftest.err conftest.$ac_objext \
  1830. conftest$ac_exeext conftest.$ac_ext
  1831. fi
  1832. eval ac_res=\$$3
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1834. $as_echo "$ac_res" >&6; }
  1835. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1836. } # ac_fn_c_check_func
  1837. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1838. # ------------------------------------
  1839. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1840. ac_fn_c_check_decl ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1844. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1846. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1847. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1848. $as_echo_n "(cached) " >&6
  1849. else
  1850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1851. /* end confdefs.h. */
  1852. $4
  1853. int
  1854. main ()
  1855. {
  1856. #ifndef $as_decl_name
  1857. #ifdef __cplusplus
  1858. (void) $as_decl_use;
  1859. #else
  1860. (void) $as_decl_name;
  1861. #endif
  1862. #endif
  1863. ;
  1864. return 0;
  1865. }
  1866. _ACEOF
  1867. if ac_fn_c_try_compile "$LINENO"; then :
  1868. eval "$3=yes"
  1869. else
  1870. eval "$3=no"
  1871. fi
  1872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1873. fi
  1874. eval ac_res=\$$3
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1876. $as_echo "$ac_res" >&6; }
  1877. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1878. } # ac_fn_c_check_decl
  1879. cat >config.log <<_ACEOF
  1880. This file contains any messages produced by compilers while
  1881. running configure, to aid debugging if configure makes a mistake.
  1882. It was created by $as_me, which was
  1883. generated by GNU Autoconf 2.64. Invocation command line was
  1884. $ $0 $@
  1885. _ACEOF
  1886. exec 5>>config.log
  1887. {
  1888. cat <<_ASUNAME
  1889. ## --------- ##
  1890. ## Platform. ##
  1891. ## --------- ##
  1892. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1893. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1894. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1895. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1896. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1897. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1898. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1899. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1900. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1901. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1902. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1903. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1904. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1905. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1906. _ASUNAME
  1907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1908. for as_dir in $PATH
  1909. do
  1910. IFS=$as_save_IFS
  1911. test -z "$as_dir" && as_dir=.
  1912. $as_echo "PATH: $as_dir"
  1913. done
  1914. IFS=$as_save_IFS
  1915. } >&5
  1916. cat >&5 <<_ACEOF
  1917. ## ----------- ##
  1918. ## Core tests. ##
  1919. ## ----------- ##
  1920. _ACEOF
  1921. # Keep a trace of the command line.
  1922. # Strip out --no-create and --no-recursion so they do not pile up.
  1923. # Strip out --silent because we don't want to record it for future runs.
  1924. # Also quote any args containing shell meta-characters.
  1925. # Make two passes to allow for proper duplicate-argument suppression.
  1926. ac_configure_args=
  1927. ac_configure_args0=
  1928. ac_configure_args1=
  1929. ac_must_keep_next=false
  1930. for ac_pass in 1 2
  1931. do
  1932. for ac_arg
  1933. do
  1934. case $ac_arg in
  1935. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1936. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1937. | -silent | --silent | --silen | --sile | --sil)
  1938. continue ;;
  1939. *\'*)
  1940. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1941. esac
  1942. case $ac_pass in
  1943. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1944. 2)
  1945. as_fn_append ac_configure_args1 " '$ac_arg'"
  1946. if test $ac_must_keep_next = true; then
  1947. ac_must_keep_next=false # Got value, back to normal.
  1948. else
  1949. case $ac_arg in
  1950. *=* | --config-cache | -C | -disable-* | --disable-* \
  1951. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1952. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1953. | -with-* | --with-* | -without-* | --without-* | --x)
  1954. case "$ac_configure_args0 " in
  1955. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1956. esac
  1957. ;;
  1958. -* ) ac_must_keep_next=true ;;
  1959. esac
  1960. fi
  1961. as_fn_append ac_configure_args " '$ac_arg'"
  1962. ;;
  1963. esac
  1964. done
  1965. done
  1966. { ac_configure_args0=; unset ac_configure_args0;}
  1967. { ac_configure_args1=; unset ac_configure_args1;}
  1968. # When interrupted or exit'd, cleanup temporary files, and complete
  1969. # config.log. We remove comments because anyway the quotes in there
  1970. # would cause problems or look ugly.
  1971. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1972. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1973. trap 'exit_status=$?
  1974. # Save into config.log some information that might help in debugging.
  1975. {
  1976. echo
  1977. cat <<\_ASBOX
  1978. ## ---------------- ##
  1979. ## Cache variables. ##
  1980. ## ---------------- ##
  1981. _ASBOX
  1982. echo
  1983. # The following way of writing the cache mishandles newlines in values,
  1984. (
  1985. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1986. eval ac_val=\$$ac_var
  1987. case $ac_val in #(
  1988. *${as_nl}*)
  1989. case $ac_var in #(
  1990. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1991. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1992. esac
  1993. case $ac_var in #(
  1994. _ | IFS | as_nl) ;; #(
  1995. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1996. *) { eval $ac_var=; unset $ac_var;} ;;
  1997. esac ;;
  1998. esac
  1999. done
  2000. (set) 2>&1 |
  2001. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2002. *${as_nl}ac_space=\ *)
  2003. sed -n \
  2004. "s/'\''/'\''\\\\'\'''\''/g;
  2005. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2006. ;; #(
  2007. *)
  2008. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2009. ;;
  2010. esac |
  2011. sort
  2012. )
  2013. echo
  2014. cat <<\_ASBOX
  2015. ## ----------------- ##
  2016. ## Output variables. ##
  2017. ## ----------------- ##
  2018. _ASBOX
  2019. echo
  2020. for ac_var in $ac_subst_vars
  2021. do
  2022. eval ac_val=\$$ac_var
  2023. case $ac_val in
  2024. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2025. esac
  2026. $as_echo "$ac_var='\''$ac_val'\''"
  2027. done | sort
  2028. echo
  2029. if test -n "$ac_subst_files"; then
  2030. cat <<\_ASBOX
  2031. ## ------------------- ##
  2032. ## File substitutions. ##
  2033. ## ------------------- ##
  2034. _ASBOX
  2035. echo
  2036. for ac_var in $ac_subst_files
  2037. do
  2038. eval ac_val=\$$ac_var
  2039. case $ac_val in
  2040. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2041. esac
  2042. $as_echo "$ac_var='\''$ac_val'\''"
  2043. done | sort
  2044. echo
  2045. fi
  2046. if test -s confdefs.h; then
  2047. cat <<\_ASBOX
  2048. ## ----------- ##
  2049. ## confdefs.h. ##
  2050. ## ----------- ##
  2051. _ASBOX
  2052. echo
  2053. cat confdefs.h
  2054. echo
  2055. fi
  2056. test "$ac_signal" != 0 &&
  2057. $as_echo "$as_me: caught signal $ac_signal"
  2058. $as_echo "$as_me: exit $exit_status"
  2059. } >&5
  2060. rm -f core *.core core.conftest.* &&
  2061. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2062. exit $exit_status
  2063. ' 0
  2064. for ac_signal in 1 2 13 15; do
  2065. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2066. done
  2067. ac_signal=0
  2068. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2069. rm -f -r conftest* confdefs.h
  2070. $as_echo "/* confdefs.h */" > confdefs.h
  2071. # Predefined preprocessor variables.
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_NAME "$PACKAGE_NAME"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2080. _ACEOF
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_STRING "$PACKAGE_STRING"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_URL "$PACKAGE_URL"
  2089. _ACEOF
  2090. # Let the site file select an alternate cache file if it wants to.
  2091. # Prefer an explicitly selected file to automatically selected ones.
  2092. ac_site_file1=NONE
  2093. ac_site_file2=NONE
  2094. if test -n "$CONFIG_SITE"; then
  2095. ac_site_file1=$CONFIG_SITE
  2096. elif test "x$prefix" != xNONE; then
  2097. ac_site_file1=$prefix/share/config.site
  2098. ac_site_file2=$prefix/etc/config.site
  2099. else
  2100. ac_site_file1=$ac_default_prefix/share/config.site
  2101. ac_site_file2=$ac_default_prefix/etc/config.site
  2102. fi
  2103. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2104. do
  2105. test "x$ac_site_file" = xNONE && continue
  2106. if test -r "$ac_site_file"; then
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2108. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2109. sed 's/^/| /' "$ac_site_file" >&5
  2110. . "$ac_site_file"
  2111. fi
  2112. done
  2113. if test -r "$cache_file"; then
  2114. # Some versions of bash will fail to source /dev/null (special
  2115. # files actually), so we avoid doing that.
  2116. if test -f "$cache_file"; then
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2118. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2119. case $cache_file in
  2120. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2121. *) . "./$cache_file";;
  2122. esac
  2123. fi
  2124. else
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2126. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2127. >$cache_file
  2128. fi
  2129. # Check that the precious variables saved in the cache have kept the same
  2130. # value.
  2131. ac_cache_corrupted=false
  2132. for ac_var in $ac_precious_vars; do
  2133. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2134. eval ac_new_set=\$ac_env_${ac_var}_set
  2135. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2136. eval ac_new_val=\$ac_env_${ac_var}_value
  2137. case $ac_old_set,$ac_new_set in
  2138. set,)
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2140. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2141. ac_cache_corrupted=: ;;
  2142. ,set)
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2144. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2145. ac_cache_corrupted=: ;;
  2146. ,);;
  2147. *)
  2148. if test "x$ac_old_val" != "x$ac_new_val"; then
  2149. # differences in whitespace do not lead to failure.
  2150. ac_old_val_w=`echo x $ac_old_val`
  2151. ac_new_val_w=`echo x $ac_new_val`
  2152. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2154. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2155. ac_cache_corrupted=:
  2156. else
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2158. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2159. eval $ac_var=\$ac_old_val
  2160. fi
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2162. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2164. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2165. fi;;
  2166. esac
  2167. # Pass precious variables to config.status.
  2168. if test "$ac_new_set" = set; then
  2169. case $ac_new_val in
  2170. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2171. *) ac_arg=$ac_var=$ac_new_val ;;
  2172. esac
  2173. case " $ac_configure_args " in
  2174. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2175. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2176. esac
  2177. fi
  2178. done
  2179. if $ac_cache_corrupted; then
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2183. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2184. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2185. fi
  2186. ## -------------------- ##
  2187. ## Main body of script. ##
  2188. ## -------------------- ##
  2189. ac_ext=c
  2190. ac_cpp='$CPP $CPPFLAGS'
  2191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2194. # This works around the fact that libtool configuration may change LD
  2195. # for this particular configuration, but some shells, instead of
  2196. # keeping the changes in LD private, export them just because LD is
  2197. # exported. We don't use libtool yet, but some day we might, so...
  2198. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2199. # Check whether --with-target-subdir was given.
  2200. if test "${with_target_subdir+set}" = set; then :
  2201. withval=$with_target_subdir;
  2202. fi
  2203. # Check whether --with-build-subdir was given.
  2204. if test "${with_build_subdir+set}" = set; then :
  2205. withval=$with_build_subdir;
  2206. fi
  2207. # Check whether --with-cross-host was given.
  2208. if test "${with_cross_host+set}" = set; then :
  2209. withval=$with_cross_host;
  2210. fi
  2211. # Check whether --with-newlib was given.
  2212. if test "${with_newlib+set}" = set; then :
  2213. withval=$with_newlib;
  2214. fi
  2215. if test "${srcdir}" = "."; then
  2216. if test -n "${with_build_subdir}"; then
  2217. libiberty_topdir="${srcdir}/../.."
  2218. with_target_subdir=
  2219. elif test -z "${with_target_subdir}"; then
  2220. libiberty_topdir="${srcdir}/.."
  2221. else
  2222. if test "${with_target_subdir}" != "."; then
  2223. libiberty_topdir="${srcdir}/${with_multisrctop}../.."
  2224. else
  2225. libiberty_topdir="${srcdir}/${with_multisrctop}.."
  2226. fi
  2227. fi
  2228. else
  2229. libiberty_topdir="${srcdir}/.."
  2230. fi
  2231. ac_aux_dir=
  2232. for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
  2233. for ac_t in install-sh install.sh shtool; do
  2234. if test -f "$ac_dir/$ac_t"; then
  2235. ac_aux_dir=$ac_dir
  2236. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2237. break 2
  2238. fi
  2239. done
  2240. done
  2241. if test -z "$ac_aux_dir"; then
  2242. as_fn_error "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
  2243. fi
  2244. # These three variables are undocumented and unsupported,
  2245. # and are intended to be withdrawn in a future Autoconf release.
  2246. # They can cause serious problems if a builder's source tree is in a directory
  2247. # whose full name contains unusual characters.
  2248. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2249. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2250. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2252. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2253. # Check whether --enable-maintainer-mode was given.
  2254. if test "${enable_maintainer_mode+set}" = set; then :
  2255. enableval=$enable_maintainer_mode; maintainer_mode=$enableval
  2256. else
  2257. maintainer_mode=no
  2258. fi
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
  2260. $as_echo "$maintainer_mode" >&6; }
  2261. if test "$maintainer_mode" = "yes"; then
  2262. MAINT=''
  2263. NOTMAINT='#'
  2264. else
  2265. MAINT='#'
  2266. NOTMAINT=''
  2267. fi
  2268. # Do we have a single-tree copy of texinfo? Even if we do, we can't
  2269. # rely on it - libiberty is built before texinfo.
  2270. # Extract the first word of "makeinfo", so it can be a program name with args.
  2271. set dummy makeinfo; ac_word=$2
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2273. $as_echo_n "checking for $ac_word... " >&6; }
  2274. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test -n "$MAKEINFO"; then
  2278. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  2279. else
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283. IFS=$as_save_IFS
  2284. test -z "$as_dir" && as_dir=.
  2285. for ac_exec_ext in '' $ac_executable_extensions; do
  2286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2287. ac_cv_prog_MAKEINFO="makeinfo"
  2288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2289. break 2
  2290. fi
  2291. done
  2292. done
  2293. IFS=$as_save_IFS
  2294. fi
  2295. fi
  2296. MAKEINFO=$ac_cv_prog_MAKEINFO
  2297. if test -n "$MAKEINFO"; then
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  2299. $as_echo "$MAKEINFO" >&6; }
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2302. $as_echo "no" >&6; }
  2303. fi
  2304. if test "x$MAKEINFO" = "x"; then
  2305. MAKEINFO="@echo makeinfo missing; true"
  2306. BUILD_INFO=
  2307. else
  2308. BUILD_INFO=info
  2309. case "$MAKEINFO" in
  2310. */missing\ makeinfo*)
  2311. BUILD_INFO=
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  2313. *** Makeinfo is missing. Info documentation will not be built." >&5
  2314. $as_echo "$as_me: WARNING:
  2315. *** Makeinfo is missing. Info documentation will not be built." >&2;}
  2316. ;;
  2317. *)
  2318. case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
  2319. x*\ [1-3].* )
  2320. MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
  2321. BUILD_INFO=
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  2323. *** Makeinfo is too old. Info documentation will not be built." >&5
  2324. $as_echo "$as_me: WARNING:
  2325. *** Makeinfo is too old. Info documentation will not be built." >&2;}
  2326. ;;
  2327. esac
  2328. ;;
  2329. esac
  2330. fi
  2331. # Extract the first word of "perl", so it can be a program name with args.
  2332. set dummy perl; ac_word=$2
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2334. $as_echo_n "checking for $ac_word... " >&6; }
  2335. if test "${ac_cv_prog_PERL+set}" = set; then :
  2336. $as_echo_n "(cached) " >&6
  2337. else
  2338. if test -n "$PERL"; then
  2339. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  2340. else
  2341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2342. for as_dir in $PATH
  2343. do
  2344. IFS=$as_save_IFS
  2345. test -z "$as_dir" && as_dir=.
  2346. for ac_exec_ext in '' $ac_executable_extensions; do
  2347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2348. ac_cv_prog_PERL="perl"
  2349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. fi
  2357. PERL=$ac_cv_prog_PERL
  2358. if test -n "$PERL"; then
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  2360. $as_echo "$PERL" >&6; }
  2361. else
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2363. $as_echo "no" >&6; }
  2364. fi
  2365. if test x"$PERL" = x""; then
  2366. HAVE_PERL='#'
  2367. else
  2368. HAVE_PERL=''
  2369. fi
  2370. # Make sure we can run config.sub.
  2371. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2372. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2374. $as_echo_n "checking build system type... " >&6; }
  2375. if test "${ac_cv_build+set}" = set; then :
  2376. $as_echo_n "(cached) " >&6
  2377. else
  2378. ac_build_alias=$build_alias
  2379. test "x$ac_build_alias" = x &&
  2380. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2381. test "x$ac_build_alias" = x &&
  2382. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2383. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2384. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2385. fi
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2387. $as_echo "$ac_cv_build" >&6; }
  2388. case $ac_cv_build in
  2389. *-*-*) ;;
  2390. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2391. esac
  2392. build=$ac_cv_build
  2393. ac_save_IFS=$IFS; IFS='-'
  2394. set x $ac_cv_build
  2395. shift
  2396. build_cpu=$1
  2397. build_vendor=$2
  2398. shift; shift
  2399. # Remember, the first character of IFS is used to create $*,
  2400. # except with old shells:
  2401. build_os=$*
  2402. IFS=$ac_save_IFS
  2403. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2405. $as_echo_n "checking host system type... " >&6; }
  2406. if test "${ac_cv_host+set}" = set; then :
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. if test "x$host_alias" = x; then
  2410. ac_cv_host=$ac_cv_build
  2411. else
  2412. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2413. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2414. fi
  2415. fi
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2417. $as_echo "$ac_cv_host" >&6; }
  2418. case $ac_cv_host in
  2419. *-*-*) ;;
  2420. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2421. esac
  2422. host=$ac_cv_host
  2423. ac_save_IFS=$IFS; IFS='-'
  2424. set x $ac_cv_host
  2425. shift
  2426. host_cpu=$1
  2427. host_vendor=$2
  2428. shift; shift
  2429. # Remember, the first character of IFS is used to create $*,
  2430. # except with old shells:
  2431. host_os=$*
  2432. IFS=$ac_save_IFS
  2433. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2434. if test -n "$ac_tool_prefix"; then
  2435. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2436. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2438. $as_echo_n "checking for $ac_word... " >&6; }
  2439. if test "${ac_cv_prog_AR+set}" = set; then :
  2440. $as_echo_n "(cached) " >&6
  2441. else
  2442. if test -n "$AR"; then
  2443. ac_cv_prog_AR="$AR" # Let the user override the test.
  2444. else
  2445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446. for as_dir in $PATH
  2447. do
  2448. IFS=$as_save_IFS
  2449. test -z "$as_dir" && as_dir=.
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454. break 2
  2455. fi
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. fi
  2461. AR=$ac_cv_prog_AR
  2462. if test -n "$AR"; then
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  2464. $as_echo "$AR" >&6; }
  2465. else
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2467. $as_echo "no" >&6; }
  2468. fi
  2469. fi
  2470. if test -z "$ac_cv_prog_AR"; then
  2471. ac_ct_AR=$AR
  2472. # Extract the first word of "ar", so it can be a program name with args.
  2473. set dummy ar; ac_word=$2
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2475. $as_echo_n "checking for $ac_word... " >&6; }
  2476. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. if test -n "$ac_ct_AR"; then
  2480. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2481. else
  2482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2483. for as_dir in $PATH
  2484. do
  2485. IFS=$as_save_IFS
  2486. test -z "$as_dir" && as_dir=.
  2487. for ac_exec_ext in '' $ac_executable_extensions; do
  2488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2489. ac_cv_prog_ac_ct_AR="ar"
  2490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2491. break 2
  2492. fi
  2493. done
  2494. done
  2495. IFS=$as_save_IFS
  2496. fi
  2497. fi
  2498. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2499. if test -n "$ac_ct_AR"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  2501. $as_echo "$ac_ct_AR" >&6; }
  2502. else
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2504. $as_echo "no" >&6; }
  2505. fi
  2506. if test "x$ac_ct_AR" = x; then
  2507. AR=""
  2508. else
  2509. case $cross_compiling:$ac_tool_warned in
  2510. yes:)
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2513. ac_tool_warned=yes ;;
  2514. esac
  2515. AR=$ac_ct_AR
  2516. fi
  2517. else
  2518. AR="$ac_cv_prog_AR"
  2519. fi
  2520. if test -n "$ac_tool_prefix"; then
  2521. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2522. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2524. $as_echo_n "checking for $ac_word... " >&6; }
  2525. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  2526. $as_echo_n "(cached) " >&6
  2527. else
  2528. if test -n "$RANLIB"; then
  2529. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2530. else
  2531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2532. for as_dir in $PATH
  2533. do
  2534. IFS=$as_save_IFS
  2535. test -z "$as_dir" && as_dir=.
  2536. for ac_exec_ext in '' $ac_executable_extensions; do
  2537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2538. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2540. break 2
  2541. fi
  2542. done
  2543. done
  2544. IFS=$as_save_IFS
  2545. fi
  2546. fi
  2547. RANLIB=$ac_cv_prog_RANLIB
  2548. if test -n "$RANLIB"; then
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  2550. $as_echo "$RANLIB" >&6; }
  2551. else
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2553. $as_echo "no" >&6; }
  2554. fi
  2555. fi
  2556. if test -z "$ac_cv_prog_RANLIB"; then
  2557. ac_ct_RANLIB=$RANLIB
  2558. # Extract the first word of "ranlib", so it can be a program name with args.
  2559. set dummy ranlib; ac_word=$2
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. $as_echo_n "checking for $ac_word... " >&6; }
  2562. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  2563. $as_echo_n "(cached) " >&6
  2564. else
  2565. if test -n "$ac_ct_RANLIB"; then
  2566. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2567. else
  2568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2569. for as_dir in $PATH
  2570. do
  2571. IFS=$as_save_IFS
  2572. test -z "$as_dir" && as_dir=.
  2573. for ac_exec_ext in '' $ac_executable_extensions; do
  2574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2575. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2577. break 2
  2578. fi
  2579. done
  2580. done
  2581. IFS=$as_save_IFS
  2582. fi
  2583. fi
  2584. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2585. if test -n "$ac_ct_RANLIB"; then
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  2587. $as_echo "$ac_ct_RANLIB" >&6; }
  2588. else
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2590. $as_echo "no" >&6; }
  2591. fi
  2592. if test "x$ac_ct_RANLIB" = x; then
  2593. RANLIB=":"
  2594. else
  2595. case $cross_compiling:$ac_tool_warned in
  2596. yes:)
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2599. ac_tool_warned=yes ;;
  2600. esac
  2601. RANLIB=$ac_ct_RANLIB
  2602. fi
  2603. else
  2604. RANLIB="$ac_cv_prog_RANLIB"
  2605. fi
  2606. # Add --enable-multilib to configure.
  2607. # Default to --enable-multilib
  2608. # Check whether --enable-multilib was given.
  2609. if test "${enable_multilib+set}" = set; then :
  2610. enableval=$enable_multilib; case "$enableval" in
  2611. yes) multilib=yes ;;
  2612. no) multilib=no ;;
  2613. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2614. esac
  2615. else
  2616. multilib=yes
  2617. fi
  2618. # Even if the default multilib is not a cross compilation,
  2619. # it may be that some of the other multilibs are.
  2620. if test $cross_compiling = no && test $multilib = yes \
  2621. && test "x${with_multisubdir}" != x ; then
  2622. cross_compiling=maybe
  2623. fi
  2624. # We may wish to install the target headers somewhere.
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
  2626. $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
  2627. # Check whether --enable-install-libiberty was given.
  2628. if test "${enable_install_libiberty+set}" = set; then :
  2629. enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
  2630. else
  2631. enable_install_libiberty=no
  2632. fi
  2633. # Option parsed, now set things appropriately.
  2634. case x"$enable_install_libiberty" in
  2635. xyes|x)
  2636. target_header_dir=libiberty
  2637. ;;
  2638. xno)
  2639. target_header_dir=
  2640. ;;
  2641. *)
  2642. # This could be sanity-checked in various ways...
  2643. target_header_dir="${enable_install_libiberty}"
  2644. ;;
  2645. esac
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
  2647. $as_echo "$enable_install_libiberty" >&6; }
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
  2649. $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
  2650. ac_ext=c
  2651. ac_cpp='$CPP $CPPFLAGS'
  2652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2655. if test -n "$ac_tool_prefix"; then
  2656. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2657. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2659. $as_echo_n "checking for $ac_word... " >&6; }
  2660. if test "${ac_cv_prog_CC+set}" = set; then :
  2661. $as_echo_n "(cached) " >&6
  2662. else
  2663. if test -n "$CC"; then
  2664. ac_cv_prog_CC="$CC" # Let the user override the test.
  2665. else
  2666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2667. for as_dir in $PATH
  2668. do
  2669. IFS=$as_save_IFS
  2670. test -z "$as_dir" && as_dir=.
  2671. for ac_exec_ext in '' $ac_executable_extensions; do
  2672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2673. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2675. break 2
  2676. fi
  2677. done
  2678. done
  2679. IFS=$as_save_IFS
  2680. fi
  2681. fi
  2682. CC=$ac_cv_prog_CC
  2683. if test -n "$CC"; then
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2685. $as_echo "$CC" >&6; }
  2686. else
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2688. $as_echo "no" >&6; }
  2689. fi
  2690. fi
  2691. if test -z "$ac_cv_prog_CC"; then
  2692. ac_ct_CC=$CC
  2693. # Extract the first word of "gcc", so it can be a program name with args.
  2694. set dummy gcc; ac_word=$2
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2696. $as_echo_n "checking for $ac_word... " >&6; }
  2697. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. if test -n "$ac_ct_CC"; then
  2701. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2702. else
  2703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2704. for as_dir in $PATH
  2705. do
  2706. IFS=$as_save_IFS
  2707. test -z "$as_dir" && as_dir=.
  2708. for ac_exec_ext in '' $ac_executable_extensions; do
  2709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2710. ac_cv_prog_ac_ct_CC="gcc"
  2711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2712. break 2
  2713. fi
  2714. done
  2715. done
  2716. IFS=$as_save_IFS
  2717. fi
  2718. fi
  2719. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2720. if test -n "$ac_ct_CC"; then
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2722. $as_echo "$ac_ct_CC" >&6; }
  2723. else
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2725. $as_echo "no" >&6; }
  2726. fi
  2727. if test "x$ac_ct_CC" = x; then
  2728. CC=""
  2729. else
  2730. case $cross_compiling:$ac_tool_warned in
  2731. yes:)
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2734. ac_tool_warned=yes ;;
  2735. esac
  2736. CC=$ac_ct_CC
  2737. fi
  2738. else
  2739. CC="$ac_cv_prog_CC"
  2740. fi
  2741. if test -z "$CC"; then
  2742. if test -n "$ac_tool_prefix"; then
  2743. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2744. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2746. $as_echo_n "checking for $ac_word... " >&6; }
  2747. if test "${ac_cv_prog_CC+set}" = set; then :
  2748. $as_echo_n "(cached) " >&6
  2749. else
  2750. if test -n "$CC"; then
  2751. ac_cv_prog_CC="$CC" # Let the user override the test.
  2752. else
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. test -z "$as_dir" && as_dir=.
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2760. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. break 2
  2763. fi
  2764. done
  2765. done
  2766. IFS=$as_save_IFS
  2767. fi
  2768. fi
  2769. CC=$ac_cv_prog_CC
  2770. if test -n "$CC"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2772. $as_echo "$CC" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. fi
  2778. fi
  2779. if test -z "$CC"; then
  2780. # Extract the first word of "cc", so it can be a program name with args.
  2781. set dummy cc; ac_word=$2
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2783. $as_echo_n "checking for $ac_word... " >&6; }
  2784. if test "${ac_cv_prog_CC+set}" = set; then :
  2785. $as_echo_n "(cached) " >&6
  2786. else
  2787. if test -n "$CC"; then
  2788. ac_cv_prog_CC="$CC" # Let the user override the test.
  2789. else
  2790. ac_prog_rejected=no
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2798. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2799. ac_prog_rejected=yes
  2800. continue
  2801. fi
  2802. ac_cv_prog_CC="cc"
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2804. break 2
  2805. fi
  2806. done
  2807. done
  2808. IFS=$as_save_IFS
  2809. if test $ac_prog_rejected = yes; then
  2810. # We found a bogon in the path, so make sure we never use it.
  2811. set dummy $ac_cv_prog_CC
  2812. shift
  2813. if test $# != 0; then
  2814. # We chose a different compiler from the bogus one.
  2815. # However, it has the same basename, so the bogon will be chosen
  2816. # first if we set CC to just the basename; use the full file name.
  2817. shift
  2818. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2819. fi
  2820. fi
  2821. fi
  2822. fi
  2823. CC=$ac_cv_prog_CC
  2824. if test -n "$CC"; then
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2826. $as_echo "$CC" >&6; }
  2827. else
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831. fi
  2832. if test -z "$CC"; then
  2833. if test -n "$ac_tool_prefix"; then
  2834. for ac_prog in cl.exe
  2835. do
  2836. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2837. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2839. $as_echo_n "checking for $ac_word... " >&6; }
  2840. if test "${ac_cv_prog_CC+set}" = set; then :
  2841. $as_echo_n "(cached) " >&6
  2842. else
  2843. if test -n "$CC"; then
  2844. ac_cv_prog_CC="$CC" # Let the user override the test.
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_exec_ext in '' $ac_executable_extensions; do
  2852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2853. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2855. break 2
  2856. fi
  2857. done
  2858. done
  2859. IFS=$as_save_IFS
  2860. fi
  2861. fi
  2862. CC=$ac_cv_prog_CC
  2863. if test -n "$CC"; then
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2865. $as_echo "$CC" >&6; }
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2868. $as_echo "no" >&6; }
  2869. fi
  2870. test -n "$CC" && break
  2871. done
  2872. fi
  2873. if test -z "$CC"; then
  2874. ac_ct_CC=$CC
  2875. for ac_prog in cl.exe
  2876. do
  2877. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2878. set dummy $ac_prog; ac_word=$2
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2880. $as_echo_n "checking for $ac_word... " >&6; }
  2881. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2882. $as_echo_n "(cached) " >&6
  2883. else
  2884. if test -n "$ac_ct_CC"; then
  2885. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2886. else
  2887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2888. for as_dir in $PATH
  2889. do
  2890. IFS=$as_save_IFS
  2891. test -z "$as_dir" && as_dir=.
  2892. for ac_exec_ext in '' $ac_executable_extensions; do
  2893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2894. ac_cv_prog_ac_ct_CC="$ac_prog"
  2895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2896. break 2
  2897. fi
  2898. done
  2899. done
  2900. IFS=$as_save_IFS
  2901. fi
  2902. fi
  2903. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2904. if test -n "$ac_ct_CC"; then
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2906. $as_echo "$ac_ct_CC" >&6; }
  2907. else
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2909. $as_echo "no" >&6; }
  2910. fi
  2911. test -n "$ac_ct_CC" && break
  2912. done
  2913. if test "x$ac_ct_CC" = x; then
  2914. CC=""
  2915. else
  2916. case $cross_compiling:$ac_tool_warned in
  2917. yes:)
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2920. ac_tool_warned=yes ;;
  2921. esac
  2922. CC=$ac_ct_CC
  2923. fi
  2924. fi
  2925. fi
  2926. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2927. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2928. as_fn_error "no acceptable C compiler found in \$PATH
  2929. See \`config.log' for more details." "$LINENO" 5; }
  2930. # Provide some information about the compiler.
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2932. set X $ac_compile
  2933. ac_compiler=$2
  2934. for ac_option in --version -v -V -qversion; do
  2935. { { ac_try="$ac_compiler $ac_option >&5"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2941. $as_echo "$ac_try_echo"; } >&5
  2942. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2943. ac_status=$?
  2944. if test -s conftest.err; then
  2945. sed '10a\
  2946. ... rest of stderr output deleted ...
  2947. 10q' conftest.err >conftest.er1
  2948. cat conftest.er1 >&5
  2949. rm -f conftest.er1 conftest.err
  2950. fi
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2952. test $ac_status = 0; }
  2953. done
  2954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2955. /* end confdefs.h. */
  2956. int
  2957. main ()
  2958. {
  2959. ;
  2960. return 0;
  2961. }
  2962. _ACEOF
  2963. # FIXME: Cleanup?
  2964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2965. (eval $ac_link) 2>&5
  2966. ac_status=$?
  2967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2968. test $ac_status = 0; }; then :
  2969. gcc_no_link=no
  2970. else
  2971. gcc_no_link=yes
  2972. fi
  2973. if test x$gcc_no_link = xyes; then
  2974. # Setting cross_compile will disable run tests; it will
  2975. # also disable AC_CHECK_FILE but that's generally
  2976. # correct if we can't link.
  2977. cross_compiling=yes
  2978. EXEEXT=
  2979. else
  2980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2981. /* end confdefs.h. */
  2982. int
  2983. main ()
  2984. {
  2985. ;
  2986. return 0;
  2987. }
  2988. _ACEOF
  2989. ac_clean_files_save=$ac_clean_files
  2990. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2991. # Try to create an executable without -o first, disregard a.out.
  2992. # It will help us diagnose broken compilers, and finding out an intuition
  2993. # of exeext.
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2995. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2996. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2997. # The possible output files:
  2998. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2999. ac_rmfiles=
  3000. for ac_file in $ac_files
  3001. do
  3002. case $ac_file in
  3003. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3004. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3005. esac
  3006. done
  3007. rm -f $ac_rmfiles
  3008. if { { ac_try="$ac_link_default"
  3009. case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3014. $as_echo "$ac_try_echo"; } >&5
  3015. (eval "$ac_link_default") 2>&5
  3016. ac_status=$?
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }; then :
  3019. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3020. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3021. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3022. # so that the user can short-circuit this test for compilers unknown to
  3023. # Autoconf.
  3024. for ac_file in $ac_files ''
  3025. do
  3026. test -f "$ac_file" || continue
  3027. case $ac_file in
  3028. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3029. ;;
  3030. [ab].out )
  3031. # We found the default executable, but exeext='' is most
  3032. # certainly right.
  3033. break;;
  3034. *.* )
  3035. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3036. then :; else
  3037. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3038. fi
  3039. # We set ac_cv_exeext here because the later test for it is not
  3040. # safe: cross compilers may not add the suffix if given an `-o'
  3041. # argument, so we may need to know it at that point already.
  3042. # Even if this section looks crufty: it has the advantage of
  3043. # actually working.
  3044. break;;
  3045. * )
  3046. break;;
  3047. esac
  3048. done
  3049. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3050. else
  3051. ac_file=''
  3052. fi
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3054. $as_echo "$ac_file" >&6; }
  3055. if test -z "$ac_file"; then :
  3056. $as_echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3060. { as_fn_set_status 77
  3061. as_fn_error "C compiler cannot create executables
  3062. See \`config.log' for more details." "$LINENO" 5; }; }
  3063. fi
  3064. ac_exeext=$ac_cv_exeext
  3065. # Check that the compiler produces executables we can run. If not, either
  3066. # the compiler is broken, or we cross compile.
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3068. $as_echo_n "checking whether the C compiler works... " >&6; }
  3069. # If not cross compiling, check that we can run a simple program.
  3070. if test "$cross_compiling" != yes; then
  3071. if { ac_try='./$ac_file'
  3072. { { case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078. (eval "$ac_try") 2>&5
  3079. ac_status=$?
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081. test $ac_status = 0; }; }; then
  3082. cross_compiling=no
  3083. else
  3084. if test "$cross_compiling" = maybe; then
  3085. cross_compiling=yes
  3086. else
  3087. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3088. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3089. as_fn_error "cannot run C compiled programs.
  3090. If you meant to cross compile, use \`--host'.
  3091. See \`config.log' for more details." "$LINENO" 5; }
  3092. fi
  3093. fi
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3096. $as_echo "yes" >&6; }
  3097. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3098. ac_clean_files=$ac_clean_files_save
  3099. # Check that the compiler produces executables we can run. If not, either
  3100. # the compiler is broken, or we cross compile.
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3102. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3104. $as_echo "$cross_compiling" >&6; }
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3106. $as_echo_n "checking for suffix of executables... " >&6; }
  3107. if { { ac_try="$ac_link"
  3108. case "(($ac_try" in
  3109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3110. *) ac_try_echo=$ac_try;;
  3111. esac
  3112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3113. $as_echo "$ac_try_echo"; } >&5
  3114. (eval "$ac_link") 2>&5
  3115. ac_status=$?
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3117. test $ac_status = 0; }; then :
  3118. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3119. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3120. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3121. # `rm'.
  3122. for ac_file in conftest.exe conftest conftest.*; do
  3123. test -f "$ac_file" || continue
  3124. case $ac_file in
  3125. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3126. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3127. break;;
  3128. * ) break;;
  3129. esac
  3130. done
  3131. else
  3132. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3133. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3134. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3135. See \`config.log' for more details." "$LINENO" 5; }
  3136. fi
  3137. rm -f conftest$ac_cv_exeext
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3139. $as_echo "$ac_cv_exeext" >&6; }
  3140. rm -f conftest.$ac_ext
  3141. EXEEXT=$ac_cv_exeext
  3142. ac_exeext=$EXEEXT
  3143. fi
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3145. $as_echo_n "checking for suffix of object files... " >&6; }
  3146. if test "${ac_cv_objext+set}" = set; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. rm -f conftest.o conftest.obj
  3159. if { { ac_try="$ac_compile"
  3160. case "(($ac_try" in
  3161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3162. *) ac_try_echo=$ac_try;;
  3163. esac
  3164. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3165. $as_echo "$ac_try_echo"; } >&5
  3166. (eval "$ac_compile") 2>&5
  3167. ac_status=$?
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3169. test $ac_status = 0; }; then :
  3170. for ac_file in conftest.o conftest.obj conftest.*; do
  3171. test -f "$ac_file" || continue;
  3172. case $ac_file in
  3173. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3174. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3175. break;;
  3176. esac
  3177. done
  3178. else
  3179. $as_echo "$as_me: failed program was:" >&5
  3180. sed 's/^/| /' conftest.$ac_ext >&5
  3181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3183. as_fn_error "cannot compute suffix of object files: cannot compile
  3184. See \`config.log' for more details." "$LINENO" 5; }
  3185. fi
  3186. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3187. fi
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3189. $as_echo "$ac_cv_objext" >&6; }
  3190. OBJEXT=$ac_cv_objext
  3191. ac_objext=$OBJEXT
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3193. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3194. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. #ifndef __GNUC__
  3203. choke me
  3204. #endif
  3205. ;
  3206. return 0;
  3207. }
  3208. _ACEOF
  3209. if ac_fn_c_try_compile "$LINENO"; then :
  3210. ac_compiler_gnu=yes
  3211. else
  3212. ac_compiler_gnu=no
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3218. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3219. if test $ac_compiler_gnu = yes; then
  3220. GCC=yes
  3221. else
  3222. GCC=
  3223. fi
  3224. ac_test_CFLAGS=${CFLAGS+set}
  3225. ac_save_CFLAGS=$CFLAGS
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3227. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3228. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. ac_save_c_werror_flag=$ac_c_werror_flag
  3232. ac_c_werror_flag=yes
  3233. ac_cv_prog_cc_g=no
  3234. CFLAGS="-g"
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. int
  3238. main ()
  3239. {
  3240. ;
  3241. return 0;
  3242. }
  3243. _ACEOF
  3244. if ac_fn_c_try_compile "$LINENO"; then :
  3245. ac_cv_prog_cc_g=yes
  3246. else
  3247. CFLAGS=""
  3248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3249. /* end confdefs.h. */
  3250. int
  3251. main ()
  3252. {
  3253. ;
  3254. return 0;
  3255. }
  3256. _ACEOF
  3257. if ac_fn_c_try_compile "$LINENO"; then :
  3258. else
  3259. ac_c_werror_flag=$ac_save_c_werror_flag
  3260. CFLAGS="-g"
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. if ac_fn_c_try_compile "$LINENO"; then :
  3271. ac_cv_prog_cc_g=yes
  3272. fi
  3273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. fi
  3277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3278. ac_c_werror_flag=$ac_save_c_werror_flag
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3281. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3282. if test "$ac_test_CFLAGS" = set; then
  3283. CFLAGS=$ac_save_CFLAGS
  3284. elif test $ac_cv_prog_cc_g = yes; then
  3285. if test "$GCC" = yes; then
  3286. CFLAGS="-g -O2"
  3287. else
  3288. CFLAGS="-g"
  3289. fi
  3290. else
  3291. if test "$GCC" = yes; then
  3292. CFLAGS="-O2"
  3293. else
  3294. CFLAGS=
  3295. fi
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3298. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3299. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. ac_cv_prog_cc_c89=no
  3303. ac_save_CC=$CC
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. #include <stdarg.h>
  3307. #include <stdio.h>
  3308. #include <sys/types.h>
  3309. #include <sys/stat.h>
  3310. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3311. struct buf { int x; };
  3312. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3313. static char *e (p, i)
  3314. char **p;
  3315. int i;
  3316. {
  3317. return p[i];
  3318. }
  3319. static char *f (char * (*g) (char **, int), char **p, ...)
  3320. {
  3321. char *s;
  3322. va_list v;
  3323. va_start (v,p);
  3324. s = g (p, va_arg (v,int));
  3325. va_end (v);
  3326. return s;
  3327. }
  3328. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3329. function prototypes and stuff, but not '\xHH' hex character constants.
  3330. These don't provoke an error unfortunately, instead are silently treated
  3331. as 'x'. The following induces an error, until -std is added to get
  3332. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3333. array size at least. It's necessary to write '\x00'==0 to get something
  3334. that's true only with -std. */
  3335. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3336. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3337. inside strings and character constants. */
  3338. #define FOO(x) 'x'
  3339. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3340. int test (int i, double x);
  3341. struct s1 {int (*f) (int a);};
  3342. struct s2 {int (*f) (double a);};
  3343. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3344. int argc;
  3345. char **argv;
  3346. int
  3347. main ()
  3348. {
  3349. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3350. ;
  3351. return 0;
  3352. }
  3353. _ACEOF
  3354. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3355. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3356. do
  3357. CC="$ac_save_CC $ac_arg"
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359. ac_cv_prog_cc_c89=$ac_arg
  3360. fi
  3361. rm -f core conftest.err conftest.$ac_objext
  3362. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3363. done
  3364. rm -f conftest.$ac_ext
  3365. CC=$ac_save_CC
  3366. fi
  3367. # AC_CACHE_VAL
  3368. case "x$ac_cv_prog_cc_c89" in
  3369. x)
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3371. $as_echo "none needed" >&6; } ;;
  3372. xno)
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3374. $as_echo "unsupported" >&6; } ;;
  3375. *)
  3376. CC="$CC $ac_cv_prog_cc_c89"
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3378. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3379. esac
  3380. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3381. fi
  3382. ac_ext=c
  3383. ac_cpp='$CPP $CPPFLAGS'
  3384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3387. ac_ext=c
  3388. ac_cpp='$CPP $CPPFLAGS'
  3389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3393. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3394. # On Suns, sometimes $CPP names a directory.
  3395. if test -n "$CPP" && test -d "$CPP"; then
  3396. CPP=
  3397. fi
  3398. if test -z "$CPP"; then
  3399. if test "${ac_cv_prog_CPP+set}" = set; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. # Double quotes because CPP needs to be expanded
  3403. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3404. do
  3405. ac_preproc_ok=false
  3406. for ac_c_preproc_warn_flag in '' yes
  3407. do
  3408. # Use a header file that comes with gcc, so configuring glibc
  3409. # with a fresh cross-compiler works.
  3410. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3411. # <limits.h> exists even on freestanding compilers.
  3412. # On the NeXT, cc -E runs the code through the compiler's parser,
  3413. # not just through cpp. "Syntax error" is here to catch this case.
  3414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3415. /* end confdefs.h. */
  3416. #ifdef __STDC__
  3417. # include <limits.h>
  3418. #else
  3419. # include <assert.h>
  3420. #endif
  3421. Syntax error
  3422. _ACEOF
  3423. if ac_fn_c_try_cpp "$LINENO"; then :
  3424. else
  3425. # Broken: fails on valid input.
  3426. continue
  3427. fi
  3428. rm -f conftest.err conftest.$ac_ext
  3429. # OK, works on sane cases. Now check whether nonexistent headers
  3430. # can be detected and how.
  3431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3432. /* end confdefs.h. */
  3433. #include <ac_nonexistent.h>
  3434. _ACEOF
  3435. if ac_fn_c_try_cpp "$LINENO"; then :
  3436. # Broken: success on invalid input.
  3437. continue
  3438. else
  3439. # Passes both tests.
  3440. ac_preproc_ok=:
  3441. break
  3442. fi
  3443. rm -f conftest.err conftest.$ac_ext
  3444. done
  3445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3446. rm -f conftest.err conftest.$ac_ext
  3447. if $ac_preproc_ok; then :
  3448. break
  3449. fi
  3450. done
  3451. ac_cv_prog_CPP=$CPP
  3452. fi
  3453. CPP=$ac_cv_prog_CPP
  3454. else
  3455. ac_cv_prog_CPP=$CPP
  3456. fi
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3458. $as_echo "$CPP" >&6; }
  3459. ac_preproc_ok=false
  3460. for ac_c_preproc_warn_flag in '' yes
  3461. do
  3462. # Use a header file that comes with gcc, so configuring glibc
  3463. # with a fresh cross-compiler works.
  3464. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3465. # <limits.h> exists even on freestanding compilers.
  3466. # On the NeXT, cc -E runs the code through the compiler's parser,
  3467. # not just through cpp. "Syntax error" is here to catch this case.
  3468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3469. /* end confdefs.h. */
  3470. #ifdef __STDC__
  3471. # include <limits.h>
  3472. #else
  3473. # include <assert.h>
  3474. #endif
  3475. Syntax error
  3476. _ACEOF
  3477. if ac_fn_c_try_cpp "$LINENO"; then :
  3478. else
  3479. # Broken: fails on valid input.
  3480. continue
  3481. fi
  3482. rm -f conftest.err conftest.$ac_ext
  3483. # OK, works on sane cases. Now check whether nonexistent headers
  3484. # can be detected and how.
  3485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3486. /* end confdefs.h. */
  3487. #include <ac_nonexistent.h>
  3488. _ACEOF
  3489. if ac_fn_c_try_cpp "$LINENO"; then :
  3490. # Broken: success on invalid input.
  3491. continue
  3492. else
  3493. # Passes both tests.
  3494. ac_preproc_ok=:
  3495. break
  3496. fi
  3497. rm -f conftest.err conftest.$ac_ext
  3498. done
  3499. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3500. rm -f conftest.err conftest.$ac_ext
  3501. if $ac_preproc_ok; then :
  3502. else
  3503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3505. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3506. See \`config.log' for more details." "$LINENO" 5; }
  3507. fi
  3508. ac_ext=c
  3509. ac_cpp='$CPP $CPPFLAGS'
  3510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3514. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3515. if test "${ac_cv_path_GREP+set}" = set; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. if test -z "$GREP"; then
  3519. ac_path_GREP_found=false
  3520. # Loop through the user's path and test for each of PROGNAME-LIST
  3521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3522. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3523. do
  3524. IFS=$as_save_IFS
  3525. test -z "$as_dir" && as_dir=.
  3526. for ac_prog in grep ggrep; do
  3527. for ac_exec_ext in '' $ac_executable_extensions; do
  3528. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3529. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3530. # Check for GNU ac_path_GREP and select it if it is found.
  3531. # Check for GNU $ac_path_GREP
  3532. case `"$ac_path_GREP" --version 2>&1` in
  3533. *GNU*)
  3534. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3535. *)
  3536. ac_count=0
  3537. $as_echo_n 0123456789 >"conftest.in"
  3538. while :
  3539. do
  3540. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3541. mv "conftest.tmp" "conftest.in"
  3542. cp "conftest.in" "conftest.nl"
  3543. $as_echo 'GREP' >> "conftest.nl"
  3544. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3545. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3546. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3547. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3548. # Best one so far, save it but keep looking for a better one
  3549. ac_cv_path_GREP="$ac_path_GREP"
  3550. ac_path_GREP_max=$ac_count
  3551. fi
  3552. # 10*(2^10) chars as input seems more than enough
  3553. test $ac_count -gt 10 && break
  3554. done
  3555. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3556. esac
  3557. $ac_path_GREP_found && break 3
  3558. done
  3559. done
  3560. done
  3561. IFS=$as_save_IFS
  3562. if test -z "$ac_cv_path_GREP"; then
  3563. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3564. fi
  3565. else
  3566. ac_cv_path_GREP=$GREP
  3567. fi
  3568. fi
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3570. $as_echo "$ac_cv_path_GREP" >&6; }
  3571. GREP="$ac_cv_path_GREP"
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3573. $as_echo_n "checking for egrep... " >&6; }
  3574. if test "${ac_cv_path_EGREP+set}" = set; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3578. then ac_cv_path_EGREP="$GREP -E"
  3579. else
  3580. if test -z "$EGREP"; then
  3581. ac_path_EGREP_found=false
  3582. # Loop through the user's path and test for each of PROGNAME-LIST
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3585. do
  3586. IFS=$as_save_IFS
  3587. test -z "$as_dir" && as_dir=.
  3588. for ac_prog in egrep; do
  3589. for ac_exec_ext in '' $ac_executable_extensions; do
  3590. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3591. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3592. # Check for GNU ac_path_EGREP and select it if it is found.
  3593. # Check for GNU $ac_path_EGREP
  3594. case `"$ac_path_EGREP" --version 2>&1` in
  3595. *GNU*)
  3596. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3597. *)
  3598. ac_count=0
  3599. $as_echo_n 0123456789 >"conftest.in"
  3600. while :
  3601. do
  3602. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3603. mv "conftest.tmp" "conftest.in"
  3604. cp "conftest.in" "conftest.nl"
  3605. $as_echo 'EGREP' >> "conftest.nl"
  3606. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3607. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3608. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3609. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3610. # Best one so far, save it but keep looking for a better one
  3611. ac_cv_path_EGREP="$ac_path_EGREP"
  3612. ac_path_EGREP_max=$ac_count
  3613. fi
  3614. # 10*(2^10) chars as input seems more than enough
  3615. test $ac_count -gt 10 && break
  3616. done
  3617. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3618. esac
  3619. $ac_path_EGREP_found && break 3
  3620. done
  3621. done
  3622. done
  3623. IFS=$as_save_IFS
  3624. if test -z "$ac_cv_path_EGREP"; then
  3625. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3626. fi
  3627. else
  3628. ac_cv_path_EGREP=$EGREP
  3629. fi
  3630. fi
  3631. fi
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3633. $as_echo "$ac_cv_path_EGREP" >&6; }
  3634. EGREP="$ac_cv_path_EGREP"
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3636. $as_echo_n "checking for ANSI C header files... " >&6; }
  3637. if test "${ac_cv_header_stdc+set}" = set; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3641. /* end confdefs.h. */
  3642. #include <stdlib.h>
  3643. #include <stdarg.h>
  3644. #include <string.h>
  3645. #include <float.h>
  3646. int
  3647. main ()
  3648. {
  3649. ;
  3650. return 0;
  3651. }
  3652. _ACEOF
  3653. if ac_fn_c_try_compile "$LINENO"; then :
  3654. ac_cv_header_stdc=yes
  3655. else
  3656. ac_cv_header_stdc=no
  3657. fi
  3658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3659. if test $ac_cv_header_stdc = yes; then
  3660. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. #include <string.h>
  3664. _ACEOF
  3665. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3666. $EGREP "memchr" >/dev/null 2>&1; then :
  3667. else
  3668. ac_cv_header_stdc=no
  3669. fi
  3670. rm -f conftest*
  3671. fi
  3672. if test $ac_cv_header_stdc = yes; then
  3673. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3675. /* end confdefs.h. */
  3676. #include <stdlib.h>
  3677. _ACEOF
  3678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3679. $EGREP "free" >/dev/null 2>&1; then :
  3680. else
  3681. ac_cv_header_stdc=no
  3682. fi
  3683. rm -f conftest*
  3684. fi
  3685. if test $ac_cv_header_stdc = yes; then
  3686. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3687. if test "$cross_compiling" = yes; then :
  3688. :
  3689. else
  3690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3691. /* end confdefs.h. */
  3692. #include <ctype.h>
  3693. #include <stdlib.h>
  3694. #if ((' ' & 0x0FF) == 0x020)
  3695. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3696. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3697. #else
  3698. # define ISLOWER(c) \
  3699. (('a' <= (c) && (c) <= 'i') \
  3700. || ('j' <= (c) && (c) <= 'r') \
  3701. || ('s' <= (c) && (c) <= 'z'))
  3702. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3703. #endif
  3704. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3705. int
  3706. main ()
  3707. {
  3708. int i;
  3709. for (i = 0; i < 256; i++)
  3710. if (XOR (islower (i), ISLOWER (i))
  3711. || toupper (i) != TOUPPER (i))
  3712. return 2;
  3713. return 0;
  3714. }
  3715. _ACEOF
  3716. if ac_fn_c_try_run "$LINENO"; then :
  3717. else
  3718. ac_cv_header_stdc=no
  3719. fi
  3720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3721. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3722. fi
  3723. fi
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3726. $as_echo "$ac_cv_header_stdc" >&6; }
  3727. if test $ac_cv_header_stdc = yes; then
  3728. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3729. fi
  3730. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3731. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3732. inttypes.h stdint.h unistd.h
  3733. do :
  3734. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3735. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3736. "
  3737. eval as_val=\$$as_ac_Header
  3738. if test "x$as_val" = x""yes; then :
  3739. cat >>confdefs.h <<_ACEOF
  3740. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3741. _ACEOF
  3742. fi
  3743. done
  3744. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3745. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3746. MINIX=yes
  3747. else
  3748. MINIX=
  3749. fi
  3750. if test "$MINIX" = yes; then
  3751. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3752. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3753. $as_echo "#define _MINIX 1" >>confdefs.h
  3754. fi
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3756. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3757. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. # define __EXTENSIONS__ 1
  3763. $ac_includes_default
  3764. int
  3765. main ()
  3766. {
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_c_try_compile "$LINENO"; then :
  3772. ac_cv_safe_to_define___extensions__=yes
  3773. else
  3774. ac_cv_safe_to_define___extensions__=no
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. fi
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3779. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3780. test $ac_cv_safe_to_define___extensions__ = yes &&
  3781. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3782. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3783. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3784. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3785. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3786. # Check whether --enable-largefile was given.
  3787. if test "${enable_largefile+set}" = set; then :
  3788. enableval=$enable_largefile;
  3789. fi
  3790. if test "$enable_largefile" != no; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3792. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3793. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. ac_cv_sys_largefile_CC=no
  3797. if test "$GCC" != yes; then
  3798. ac_save_CC=$CC
  3799. while :; do
  3800. # IRIX 6.2 and later do not support large files by default,
  3801. # so use the C compiler's -n32 option if that helps.
  3802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3803. /* end confdefs.h. */
  3804. #include <sys/types.h>
  3805. /* Check that off_t can represent 2**63 - 1 correctly.
  3806. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3807. since some C++ compilers masquerading as C compilers
  3808. incorrectly reject 9223372036854775807. */
  3809. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3810. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3811. && LARGE_OFF_T % 2147483647 == 1)
  3812. ? 1 : -1];
  3813. int
  3814. main ()
  3815. {
  3816. ;
  3817. return 0;
  3818. }
  3819. _ACEOF
  3820. if ac_fn_c_try_compile "$LINENO"; then :
  3821. break
  3822. fi
  3823. rm -f core conftest.err conftest.$ac_objext
  3824. CC="$CC -n32"
  3825. if ac_fn_c_try_compile "$LINENO"; then :
  3826. ac_cv_sys_largefile_CC=' -n32'; break
  3827. fi
  3828. rm -f core conftest.err conftest.$ac_objext
  3829. break
  3830. done
  3831. CC=$ac_save_CC
  3832. rm -f conftest.$ac_ext
  3833. fi
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3836. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3837. if test "$ac_cv_sys_largefile_CC" != no; then
  3838. CC=$CC$ac_cv_sys_largefile_CC
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3841. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3842. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. while :; do
  3846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3847. /* end confdefs.h. */
  3848. #include <sys/types.h>
  3849. /* Check that off_t can represent 2**63 - 1 correctly.
  3850. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3851. since some C++ compilers masquerading as C compilers
  3852. incorrectly reject 9223372036854775807. */
  3853. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3854. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3855. && LARGE_OFF_T % 2147483647 == 1)
  3856. ? 1 : -1];
  3857. int
  3858. main ()
  3859. {
  3860. ;
  3861. return 0;
  3862. }
  3863. _ACEOF
  3864. if ac_fn_c_try_compile "$LINENO"; then :
  3865. ac_cv_sys_file_offset_bits=no; break
  3866. fi
  3867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3869. /* end confdefs.h. */
  3870. #define _FILE_OFFSET_BITS 64
  3871. #include <sys/types.h>
  3872. /* Check that off_t can represent 2**63 - 1 correctly.
  3873. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3874. since some C++ compilers masquerading as C compilers
  3875. incorrectly reject 9223372036854775807. */
  3876. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3877. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3878. && LARGE_OFF_T % 2147483647 == 1)
  3879. ? 1 : -1];
  3880. int
  3881. main ()
  3882. {
  3883. ;
  3884. return 0;
  3885. }
  3886. _ACEOF
  3887. if ac_fn_c_try_compile "$LINENO"; then :
  3888. ac_cv_sys_file_offset_bits=64; break
  3889. fi
  3890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3891. ac_cv_sys_file_offset_bits=unknown
  3892. break
  3893. done
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3896. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3897. case $ac_cv_sys_file_offset_bits in #(
  3898. no | unknown) ;;
  3899. *)
  3900. cat >>confdefs.h <<_ACEOF
  3901. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3902. _ACEOF
  3903. ;;
  3904. esac
  3905. rm -rf conftest*
  3906. if test $ac_cv_sys_file_offset_bits = unknown; then
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3908. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3909. if test "${ac_cv_sys_large_files+set}" = set; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. while :; do
  3913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3914. /* end confdefs.h. */
  3915. #include <sys/types.h>
  3916. /* Check that off_t can represent 2**63 - 1 correctly.
  3917. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3918. since some C++ compilers masquerading as C compilers
  3919. incorrectly reject 9223372036854775807. */
  3920. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3921. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3922. && LARGE_OFF_T % 2147483647 == 1)
  3923. ? 1 : -1];
  3924. int
  3925. main ()
  3926. {
  3927. ;
  3928. return 0;
  3929. }
  3930. _ACEOF
  3931. if ac_fn_c_try_compile "$LINENO"; then :
  3932. ac_cv_sys_large_files=no; break
  3933. fi
  3934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3936. /* end confdefs.h. */
  3937. #define _LARGE_FILES 1
  3938. #include <sys/types.h>
  3939. /* Check that off_t can represent 2**63 - 1 correctly.
  3940. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3941. since some C++ compilers masquerading as C compilers
  3942. incorrectly reject 9223372036854775807. */
  3943. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3944. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3945. && LARGE_OFF_T % 2147483647 == 1)
  3946. ? 1 : -1];
  3947. int
  3948. main ()
  3949. {
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. if ac_fn_c_try_compile "$LINENO"; then :
  3955. ac_cv_sys_large_files=1; break
  3956. fi
  3957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3958. ac_cv_sys_large_files=unknown
  3959. break
  3960. done
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3963. $as_echo "$ac_cv_sys_large_files" >&6; }
  3964. case $ac_cv_sys_large_files in #(
  3965. no | unknown) ;;
  3966. *)
  3967. cat >>confdefs.h <<_ACEOF
  3968. #define _LARGE_FILES $ac_cv_sys_large_files
  3969. _ACEOF
  3970. ;;
  3971. esac
  3972. rm -rf conftest*
  3973. fi
  3974. fi
  3975. ac_c_preproc_warn_flag=yes
  3976. ac_ext=c
  3977. ac_cpp='$CPP $CPPFLAGS'
  3978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3981. ac_libiberty_warn_cflags=
  3982. save_CFLAGS="$CFLAGS"
  3983. for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
  3984. -Wstrict-prototypes; do
  3985. # Do the check with the no- prefix removed since gcc silently
  3986. # accepts any -Wno-* option on purpose
  3987. case $real_option in
  3988. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  3989. *) option=$real_option ;;
  3990. esac
  3991. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  3993. $as_echo_n "checking whether $CC supports $option... " >&6; }
  3994. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  3995. $as_echo_n "(cached) " >&6
  3996. else
  3997. CFLAGS="$option"
  3998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3999. /* end confdefs.h. */
  4000. int
  4001. main ()
  4002. {
  4003. ;
  4004. return 0;
  4005. }
  4006. _ACEOF
  4007. if ac_fn_c_try_compile "$LINENO"; then :
  4008. eval "$as_acx_Woption=yes"
  4009. else
  4010. eval "$as_acx_Woption=no"
  4011. fi
  4012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4013. fi
  4014. eval ac_res=\$$as_acx_Woption
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4016. $as_echo "$ac_res" >&6; }
  4017. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  4018. ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
  4019. fi
  4020. done
  4021. CFLAGS="$save_CFLAGS"
  4022. ac_ext=c
  4023. ac_cpp='$CPP $CPPFLAGS'
  4024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4027. ac_ext=c
  4028. ac_cpp='$CPP $CPPFLAGS'
  4029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4032. # Do the check with the no- prefix removed from the warning options
  4033. # since gcc silently accepts any -Wno-* option on purpose
  4034. if test "$GCC" = yes; then :
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
  4036. $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
  4037. if test "${acx_cv_prog_cc_pedantic_+set}" = set; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. save_CFLAGS="$CFLAGS"
  4041. CFLAGS="-pedantic "
  4042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4043. /* end confdefs.h. */
  4044. int
  4045. main ()
  4046. {
  4047. ;
  4048. return 0;
  4049. }
  4050. _ACEOF
  4051. if ac_fn_c_try_compile "$LINENO"; then :
  4052. acx_cv_prog_cc_pedantic_=yes
  4053. else
  4054. acx_cv_prog_cc_pedantic_=no
  4055. fi
  4056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4057. CFLAGS="$save_CFLAGS"
  4058. fi
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
  4060. $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
  4061. if test $acx_cv_prog_cc_pedantic_ = yes; then :
  4062. ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
  4063. fi
  4064. fi
  4065. ac_ext=c
  4066. ac_cpp='$CPP $CPPFLAGS'
  4067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4070. if test "x$CC" != xcc; then
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4072. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4073. else
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4075. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4076. fi
  4077. set dummy $CC; ac_cc=`$as_echo "$2" |
  4078. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4079. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4083. /* end confdefs.h. */
  4084. int
  4085. main ()
  4086. {
  4087. ;
  4088. return 0;
  4089. }
  4090. _ACEOF
  4091. # Make sure it works both with $CC and with simple cc.
  4092. # We do the test twice because some compilers refuse to overwrite an
  4093. # existing .o file with -o, though they will create one.
  4094. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4095. rm -f conftest2.*
  4096. if { { case "(($ac_try" in
  4097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4098. *) ac_try_echo=$ac_try;;
  4099. esac
  4100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4101. $as_echo "$ac_try_echo"; } >&5
  4102. (eval "$ac_try") 2>&5
  4103. ac_status=$?
  4104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4105. test $ac_status = 0; } &&
  4106. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4108. *) ac_try_echo=$ac_try;;
  4109. esac
  4110. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4111. $as_echo "$ac_try_echo"; } >&5
  4112. (eval "$ac_try") 2>&5
  4113. ac_status=$?
  4114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4115. test $ac_status = 0; };
  4116. then
  4117. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4118. if test "x$CC" != xcc; then
  4119. # Test first that cc exists at all.
  4120. if { ac_try='cc -c conftest.$ac_ext >&5'
  4121. { { case "(($ac_try" in
  4122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4123. *) ac_try_echo=$ac_try;;
  4124. esac
  4125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4126. $as_echo "$ac_try_echo"; } >&5
  4127. (eval "$ac_try") 2>&5
  4128. ac_status=$?
  4129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4130. test $ac_status = 0; }; }; then
  4131. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4132. rm -f conftest2.*
  4133. if { { case "(($ac_try" in
  4134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4135. *) ac_try_echo=$ac_try;;
  4136. esac
  4137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4138. $as_echo "$ac_try_echo"; } >&5
  4139. (eval "$ac_try") 2>&5
  4140. ac_status=$?
  4141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4142. test $ac_status = 0; } &&
  4143. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4145. *) ac_try_echo=$ac_try;;
  4146. esac
  4147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4148. $as_echo "$ac_try_echo"; } >&5
  4149. (eval "$ac_try") 2>&5
  4150. ac_status=$?
  4151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4152. test $ac_status = 0; };
  4153. then
  4154. # cc works too.
  4155. :
  4156. else
  4157. # cc exists but doesn't like -o.
  4158. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4159. fi
  4160. fi
  4161. fi
  4162. else
  4163. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4164. fi
  4165. rm -f core conftest*
  4166. fi
  4167. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4169. $as_echo "yes" >&6; }
  4170. else
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4172. $as_echo "no" >&6; }
  4173. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4174. fi
  4175. # autoconf is lame and doesn't give us any substitution variable for this.
  4176. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
  4177. NO_MINUS_C_MINUS_O=yes
  4178. else
  4179. OUTPUT_OPTION='-o $@'
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4182. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4183. if test "${ac_cv_c_const+set}" = set; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4187. /* end confdefs.h. */
  4188. int
  4189. main ()
  4190. {
  4191. /* FIXME: Include the comments suggested by Paul. */
  4192. #ifndef __cplusplus
  4193. /* Ultrix mips cc rejects this. */
  4194. typedef int charset[2];
  4195. const charset cs;
  4196. /* SunOS 4.1.1 cc rejects this. */
  4197. char const *const *pcpcc;
  4198. char **ppc;
  4199. /* NEC SVR4.0.2 mips cc rejects this. */
  4200. struct point {int x, y;};
  4201. static struct point const zero = {0,0};
  4202. /* AIX XL C 1.02.0.0 rejects this.
  4203. It does not let you subtract one const X* pointer from another in
  4204. an arm of an if-expression whose if-part is not a constant
  4205. expression */
  4206. const char *g = "string";
  4207. pcpcc = &g + (g ? g-g : 0);
  4208. /* HPUX 7.0 cc rejects these. */
  4209. ++pcpcc;
  4210. ppc = (char**) pcpcc;
  4211. pcpcc = (char const *const *) ppc;
  4212. { /* SCO 3.2v4 cc rejects this. */
  4213. char *t;
  4214. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4215. *t++ = 0;
  4216. if (s) return 0;
  4217. }
  4218. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4219. int x[] = {25, 17};
  4220. const int *foo = &x[0];
  4221. ++foo;
  4222. }
  4223. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4224. typedef const int *iptr;
  4225. iptr p = 0;
  4226. ++p;
  4227. }
  4228. { /* AIX XL C 1.02.0.0 rejects this saying
  4229. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4230. struct s { int j; const int *ap[3]; };
  4231. struct s *b; b->j = 5;
  4232. }
  4233. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4234. const int foo = 10;
  4235. if (!foo) return 0;
  4236. }
  4237. return !cs[0] && !zero.x;
  4238. #endif
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_c_try_compile "$LINENO"; then :
  4244. ac_cv_c_const=yes
  4245. else
  4246. ac_cv_c_const=no
  4247. fi
  4248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4251. $as_echo "$ac_cv_c_const" >&6; }
  4252. if test $ac_cv_c_const = no; then
  4253. $as_echo "#define const /**/" >>confdefs.h
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4256. $as_echo_n "checking for inline... " >&6; }
  4257. if test "${ac_cv_c_inline+set}" = set; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. ac_cv_c_inline=no
  4261. for ac_kw in inline __inline__ __inline; do
  4262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4263. /* end confdefs.h. */
  4264. #ifndef __cplusplus
  4265. typedef int foo_t;
  4266. static $ac_kw foo_t static_foo () {return 0; }
  4267. $ac_kw foo_t foo () {return 0; }
  4268. #endif
  4269. _ACEOF
  4270. if ac_fn_c_try_compile "$LINENO"; then :
  4271. ac_cv_c_inline=$ac_kw
  4272. fi
  4273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4274. test "$ac_cv_c_inline" != no && break
  4275. done
  4276. fi
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4278. $as_echo "$ac_cv_c_inline" >&6; }
  4279. case $ac_cv_c_inline in
  4280. inline | yes) ;;
  4281. *)
  4282. case $ac_cv_c_inline in
  4283. no) ac_val=;;
  4284. *) ac_val=$ac_cv_c_inline;;
  4285. esac
  4286. cat >>confdefs.h <<_ACEOF
  4287. #ifndef __cplusplus
  4288. #define inline $ac_val
  4289. #endif
  4290. _ACEOF
  4291. ;;
  4292. esac
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4294. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4295. if test "${ac_cv_c_bigendian+set}" = set; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. ac_cv_c_bigendian=unknown
  4299. # See if we're dealing with a universal compiler.
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. #ifndef __APPLE_CC__
  4303. not a universal capable compiler
  4304. #endif
  4305. typedef int dummy;
  4306. _ACEOF
  4307. if ac_fn_c_try_compile "$LINENO"; then :
  4308. # Check for potential -arch flags. It is not universal unless
  4309. # there are at least two -arch flags with different values.
  4310. ac_arch=
  4311. ac_prev=
  4312. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4313. if test -n "$ac_prev"; then
  4314. case $ac_word in
  4315. i?86 | x86_64 | ppc | ppc64)
  4316. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4317. ac_arch=$ac_word
  4318. else
  4319. ac_cv_c_bigendian=universal
  4320. break
  4321. fi
  4322. ;;
  4323. esac
  4324. ac_prev=
  4325. elif test "x$ac_word" = "x-arch"; then
  4326. ac_prev=arch
  4327. fi
  4328. done
  4329. fi
  4330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4331. if test $ac_cv_c_bigendian = unknown; then
  4332. # See if sys/param.h defines the BYTE_ORDER macro.
  4333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4334. /* end confdefs.h. */
  4335. #include <sys/types.h>
  4336. #include <sys/param.h>
  4337. int
  4338. main ()
  4339. {
  4340. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4341. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4342. && LITTLE_ENDIAN)
  4343. bogus endian macros
  4344. #endif
  4345. ;
  4346. return 0;
  4347. }
  4348. _ACEOF
  4349. if ac_fn_c_try_compile "$LINENO"; then :
  4350. # It does; now see whether it defined to BIG_ENDIAN or not.
  4351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4352. /* end confdefs.h. */
  4353. #include <sys/types.h>
  4354. #include <sys/param.h>
  4355. int
  4356. main ()
  4357. {
  4358. #if BYTE_ORDER != BIG_ENDIAN
  4359. not big endian
  4360. #endif
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"; then :
  4366. ac_cv_c_bigendian=yes
  4367. else
  4368. ac_cv_c_bigendian=no
  4369. fi
  4370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4371. fi
  4372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4373. fi
  4374. if test $ac_cv_c_bigendian = unknown; then
  4375. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4377. /* end confdefs.h. */
  4378. #include <limits.h>
  4379. int
  4380. main ()
  4381. {
  4382. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4383. bogus endian macros
  4384. #endif
  4385. ;
  4386. return 0;
  4387. }
  4388. _ACEOF
  4389. if ac_fn_c_try_compile "$LINENO"; then :
  4390. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4392. /* end confdefs.h. */
  4393. #include <limits.h>
  4394. int
  4395. main ()
  4396. {
  4397. #ifndef _BIG_ENDIAN
  4398. not big endian
  4399. #endif
  4400. ;
  4401. return 0;
  4402. }
  4403. _ACEOF
  4404. if ac_fn_c_try_compile "$LINENO"; then :
  4405. ac_cv_c_bigendian=yes
  4406. else
  4407. ac_cv_c_bigendian=no
  4408. fi
  4409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4410. fi
  4411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4412. fi
  4413. if test $ac_cv_c_bigendian = unknown; then
  4414. # Compile a test program.
  4415. if test "$cross_compiling" = yes; then :
  4416. # Try to guess by grepping values from an object file.
  4417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4418. /* end confdefs.h. */
  4419. short int ascii_mm[] =
  4420. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4421. short int ascii_ii[] =
  4422. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4423. int use_ascii (int i) {
  4424. return ascii_mm[i] + ascii_ii[i];
  4425. }
  4426. short int ebcdic_ii[] =
  4427. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4428. short int ebcdic_mm[] =
  4429. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4430. int use_ebcdic (int i) {
  4431. return ebcdic_mm[i] + ebcdic_ii[i];
  4432. }
  4433. extern int foo;
  4434. int
  4435. main ()
  4436. {
  4437. return use_ascii (foo) == use_ebcdic (foo);
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. if ac_fn_c_try_compile "$LINENO"; then :
  4443. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4444. ac_cv_c_bigendian=yes
  4445. fi
  4446. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4447. if test "$ac_cv_c_bigendian" = unknown; then
  4448. ac_cv_c_bigendian=no
  4449. else
  4450. # finding both strings is unlikely to happen, but who knows?
  4451. ac_cv_c_bigendian=unknown
  4452. fi
  4453. fi
  4454. fi
  4455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4456. else
  4457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4458. /* end confdefs.h. */
  4459. $ac_includes_default
  4460. int
  4461. main ()
  4462. {
  4463. /* Are we little or big endian? From Harbison&Steele. */
  4464. union
  4465. {
  4466. long int l;
  4467. char c[sizeof (long int)];
  4468. } u;
  4469. u.l = 1;
  4470. return u.c[sizeof (long int) - 1] == 1;
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_c_try_run "$LINENO"; then :
  4476. ac_cv_c_bigendian=no
  4477. else
  4478. ac_cv_c_bigendian=yes
  4479. fi
  4480. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4481. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4482. fi
  4483. fi
  4484. fi
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4486. $as_echo "$ac_cv_c_bigendian" >&6; }
  4487. case $ac_cv_c_bigendian in #(
  4488. yes)
  4489. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4490. ;; #(
  4491. no)
  4492. ;; #(
  4493. universal)
  4494. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4495. ;; #(
  4496. *)
  4497. as_fn_error "unknown endianness
  4498. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4499. esac
  4500. ac_config_headers="$ac_config_headers config.h:config.in"
  4501. # Find a good install program. We prefer a C program (faster),
  4502. # so one script is as good as another. But avoid the broken or
  4503. # incompatible versions:
  4504. # SysV /etc/install, /usr/sbin/install
  4505. # SunOS /usr/etc/install
  4506. # IRIX /sbin/install
  4507. # AIX /bin/install
  4508. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4509. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4510. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4511. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4512. # OS/2's system install, which has a completely different semantic
  4513. # ./install, which can be erroneously created by make from ./install.sh.
  4514. # Reject install programs that cannot install multiple files.
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4516. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4517. if test -z "$INSTALL"; then
  4518. if test "${ac_cv_path_install+set}" = set; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4522. for as_dir in $PATH
  4523. do
  4524. IFS=$as_save_IFS
  4525. test -z "$as_dir" && as_dir=.
  4526. # Account for people who put trailing slashes in PATH elements.
  4527. case $as_dir/ in #((
  4528. ./ | .// | /[cC]/* | \
  4529. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4530. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4531. /usr/ucb/* ) ;;
  4532. *)
  4533. # OSF1 and SCO ODT 3.0 have their own names for install.
  4534. # Don't use installbsd from OSF since it installs stuff as root
  4535. # by default.
  4536. for ac_prog in ginstall scoinst install; do
  4537. for ac_exec_ext in '' $ac_executable_extensions; do
  4538. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4539. if test $ac_prog = install &&
  4540. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4541. # AIX install. It has an incompatible calling convention.
  4542. :
  4543. elif test $ac_prog = install &&
  4544. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4545. # program-specific install script used by HP pwplus--don't use.
  4546. :
  4547. else
  4548. rm -rf conftest.one conftest.two conftest.dir
  4549. echo one > conftest.one
  4550. echo two > conftest.two
  4551. mkdir conftest.dir
  4552. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4553. test -s conftest.one && test -s conftest.two &&
  4554. test -s conftest.dir/conftest.one &&
  4555. test -s conftest.dir/conftest.two
  4556. then
  4557. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4558. break 3
  4559. fi
  4560. fi
  4561. fi
  4562. done
  4563. done
  4564. ;;
  4565. esac
  4566. done
  4567. IFS=$as_save_IFS
  4568. rm -rf conftest.one conftest.two conftest.dir
  4569. fi
  4570. if test "${ac_cv_path_install+set}" = set; then
  4571. INSTALL=$ac_cv_path_install
  4572. else
  4573. # As a last resort, use the slow shell script. Don't cache a
  4574. # value for INSTALL within a source directory, because that will
  4575. # break other packages using the cache if that directory is
  4576. # removed, or if the value is a relative name.
  4577. INSTALL=$ac_install_sh
  4578. fi
  4579. fi
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4581. $as_echo "$INSTALL" >&6; }
  4582. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4583. # It thinks the first close brace ends the variable substitution.
  4584. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4585. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4586. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4587. # Don't build the shared library for build.
  4588. if [ -n "${with_build_subdir}" ]; then
  4589. enable_shared=no
  4590. fi
  4591. frag=
  4592. case "${host}" in
  4593. rs6000-ibm-aix3.1 | rs6000-ibm-aix)
  4594. frag=mh-aix ;;
  4595. *-*-cxux7*) frag=mh-cxux7 ;;
  4596. *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
  4597. *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
  4598. i370-*-opened*) frag=mh-openedition ;;
  4599. i[34567]86-*-windows*) frag=mh-windows ;;
  4600. esac
  4601. if [ -n "${frag}" ]; then
  4602. frag=${libiberty_topdir}/libiberty/config/$frag
  4603. fi
  4604. case "${host}" in
  4605. # PIC is the default on some targets or must not be used.
  4606. *-*-darwin*)
  4607. # For darwin, common symbols are not allowed in MH_DYLIB files
  4608. case "${CFLAGS}" in
  4609. # If we are using a compiler supporting mdynamic-no-pic
  4610. # and the option has been tested as safe to add, then cancel
  4611. # it here, since the code generated is incompatible with shared
  4612. # libs.
  4613. *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
  4614. *) PICFLAG=-fno-common ;;
  4615. esac
  4616. ;;
  4617. alpha*-dec-osf5*)
  4618. # PIC is the default.
  4619. ;;
  4620. hppa*64*-*-hpux*)
  4621. # PIC is the default for 64-bit PA HP-UX.
  4622. ;;
  4623. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  4624. ;;
  4625. i[34567]86-*-mingw* | x86_64-*-mingw*)
  4626. ;;
  4627. i[34567]86-*-interix[3-9]*)
  4628. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4629. # Instead, we relocate shared libraries at runtime.
  4630. ;;
  4631. i[34567]86-*-nto-qnx*)
  4632. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4633. # it will coredump.
  4634. PICFLAG='-fPIC -shared'
  4635. ;;
  4636. i[34567]86-pc-msdosdjgpp*)
  4637. # DJGPP does not support shared libraries at all.
  4638. ;;
  4639. ia64*-*-hpux*)
  4640. # On IA64 HP-UX, PIC is the default but the pic flag
  4641. # sets the default TLS model and affects inlining.
  4642. PICFLAG=-fPIC
  4643. ;;
  4644. mips-sgi-irix6*)
  4645. # PIC is the default.
  4646. ;;
  4647. rs6000-ibm-aix* | powerpc-ibm-aix*)
  4648. # All AIX code is PIC.
  4649. ;;
  4650. # Some targets support both -fPIC and -fpic, but prefer the latter.
  4651. # FIXME: Why?
  4652. i[34567]86-*-* | x86_64-*-*)
  4653. PICFLAG=-fpic
  4654. ;;
  4655. # FIXME: Override -fPIC default in libgcc only?
  4656. sh-*-linux* | sh[2346lbe]*-*-linux*)
  4657. PICFLAG=-fpic
  4658. ;;
  4659. # FIXME: Simplify to sh*-*-netbsd*?
  4660. sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  4661. sh64-*-netbsd* | sh64l*-*-netbsd*)
  4662. PICFLAG=-fpic
  4663. ;;
  4664. # Default to -fPIC unless specified otherwise.
  4665. *)
  4666. PICFLAG=-fPIC
  4667. ;;
  4668. esac
  4669. # If the user explicitly uses -fpic/-fPIC, keep that.
  4670. case "${CFLAGS}" in
  4671. *-fpic*)
  4672. PICFLAG=-fpic
  4673. ;;
  4674. *-fPIC*)
  4675. PICFLAG=-fPIC
  4676. ;;
  4677. esac
  4678. # If they didn't specify --enable-shared, don't generate shared libs.
  4679. case "${enable_shared}" in
  4680. yes) shared=yes ;;
  4681. no) shared=no ;;
  4682. "") shared=no ;;
  4683. *) shared=yes ;;
  4684. esac
  4685. # ...unless --enable-host-shared was passed from top-level config:
  4686. if [ "${enable_host_shared}" = "yes" ]; then
  4687. shared=yes
  4688. fi
  4689. if [ "${shared}" != "yes" ]; then
  4690. PICFLAG=
  4691. fi
  4692. NOASANFLAG=
  4693. case " ${CFLAGS} " in
  4694. *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
  4695. esac
  4696. echo "# Warning: this fragment is automatically generated" > temp-frag
  4697. if [ -n "${frag}" ] && [ -f "${frag}" ]; then
  4698. echo "Appending ${frag} to xhost-mkfrag"
  4699. echo "# Following fragment copied from ${frag}" >> temp-frag
  4700. cat ${frag} >> temp-frag
  4701. fi
  4702. # record if we want to build shared libs.
  4703. if [ "${shared}" = "yes" ]; then
  4704. echo enable_shared = yes >> temp-frag
  4705. else
  4706. echo enable_shared = no >> temp-frag
  4707. fi
  4708. frag=xhost-mkfrag
  4709. ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
  4710. host_makefile_frag=${frag}
  4711. # It's OK to check for header files. Although the compiler may not be
  4712. # able to link anything, it had better be able to at least compile
  4713. # something.
  4714. for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
  4715. do :
  4716. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4717. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  4718. eval as_val=\$$as_ac_Header
  4719. if test "x$as_val" = x""yes; then :
  4720. cat >>confdefs.h <<_ACEOF
  4721. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4722. _ACEOF
  4723. fi
  4724. done
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4726. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4727. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4731. /* end confdefs.h. */
  4732. #include <sys/types.h>
  4733. #include <sys/wait.h>
  4734. #ifndef WEXITSTATUS
  4735. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4736. #endif
  4737. #ifndef WIFEXITED
  4738. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4739. #endif
  4740. int
  4741. main ()
  4742. {
  4743. int s;
  4744. wait (&s);
  4745. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4746. ;
  4747. return 0;
  4748. }
  4749. _ACEOF
  4750. if ac_fn_c_try_compile "$LINENO"; then :
  4751. ac_cv_header_sys_wait_h=yes
  4752. else
  4753. ac_cv_header_sys_wait_h=no
  4754. fi
  4755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4758. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4759. if test $ac_cv_header_sys_wait_h = yes; then
  4760. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4761. fi
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4763. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4764. if test "${ac_cv_header_time+set}" = set; then :
  4765. $as_echo_n "(cached) " >&6
  4766. else
  4767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4768. /* end confdefs.h. */
  4769. #include <sys/types.h>
  4770. #include <sys/time.h>
  4771. #include <time.h>
  4772. int
  4773. main ()
  4774. {
  4775. if ((struct tm *) 0)
  4776. return 0;
  4777. ;
  4778. return 0;
  4779. }
  4780. _ACEOF
  4781. if ac_fn_c_try_compile "$LINENO"; then :
  4782. ac_cv_header_time=yes
  4783. else
  4784. ac_cv_header_time=no
  4785. fi
  4786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4789. $as_echo "$ac_cv_header_time" >&6; }
  4790. if test $ac_cv_header_time = yes; then
  4791. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4792. fi
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
  4794. $as_echo_n "checking whether errno must be declared... " >&6; }
  4795. if test "${libiberty_cv_declare_errno+set}" = set; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. #include <errno.h>
  4801. int
  4802. main ()
  4803. {
  4804. int x = errno;
  4805. ;
  4806. return 0;
  4807. }
  4808. _ACEOF
  4809. if ac_fn_c_try_compile "$LINENO"; then :
  4810. libiberty_cv_declare_errno=no
  4811. else
  4812. libiberty_cv_declare_errno=yes
  4813. fi
  4814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4815. fi
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
  4817. $as_echo "$libiberty_cv_declare_errno" >&6; }
  4818. if test $libiberty_cv_declare_errno = yes
  4819. then
  4820. $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
  4821. fi
  4822. # Determine sizes of some types.
  4823. # The cast to long int works around a bug in the HP C Compiler
  4824. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4825. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4826. # This bug is HP SR number 8606223364.
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4828. $as_echo_n "checking size of int... " >&6; }
  4829. if test "${ac_cv_sizeof_int+set}" = set; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  4833. else
  4834. if test "$ac_cv_type_int" = yes; then
  4835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4837. { as_fn_set_status 77
  4838. as_fn_error "cannot compute sizeof (int)
  4839. See \`config.log' for more details." "$LINENO" 5; }; }
  4840. else
  4841. ac_cv_sizeof_int=0
  4842. fi
  4843. fi
  4844. fi
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4846. $as_echo "$ac_cv_sizeof_int" >&6; }
  4847. cat >>confdefs.h <<_ACEOF
  4848. #define SIZEOF_INT $ac_cv_sizeof_int
  4849. _ACEOF
  4850. # The cast to long int works around a bug in the HP C Compiler
  4851. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4852. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4853. # This bug is HP SR number 8606223364.
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4855. $as_echo_n "checking size of long... " >&6; }
  4856. if test "${ac_cv_sizeof_long+set}" = set; then :
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  4860. else
  4861. if test "$ac_cv_type_long" = yes; then
  4862. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4864. { as_fn_set_status 77
  4865. as_fn_error "cannot compute sizeof (long)
  4866. See \`config.log' for more details." "$LINENO" 5; }; }
  4867. else
  4868. ac_cv_sizeof_long=0
  4869. fi
  4870. fi
  4871. fi
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4873. $as_echo "$ac_cv_sizeof_long" >&6; }
  4874. cat >>confdefs.h <<_ACEOF
  4875. #define SIZEOF_LONG $ac_cv_sizeof_long
  4876. _ACEOF
  4877. # Check for presense of long long
  4878. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  4879. if test "x$ac_cv_type_long_long" = x""yes; then :
  4880. $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
  4881. # The cast to long int works around a bug in the HP C Compiler
  4882. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4883. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4884. # This bug is HP SR number 8606223364.
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  4886. $as_echo_n "checking size of long long... " >&6; }
  4887. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  4891. else
  4892. if test "$ac_cv_type_long_long" = yes; then
  4893. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4895. { as_fn_set_status 77
  4896. as_fn_error "cannot compute sizeof (long long)
  4897. See \`config.log' for more details." "$LINENO" 5; }; }
  4898. else
  4899. ac_cv_sizeof_long_long=0
  4900. fi
  4901. fi
  4902. fi
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  4904. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  4905. cat >>confdefs.h <<_ACEOF
  4906. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  4907. _ACEOF
  4908. fi
  4909. # Look for a 64-bit type.
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
  4911. $as_echo_n "checking for a 64-bit type... " >&6; }
  4912. if test "${liberty_cv_uint64+set}" = set; then :
  4913. $as_echo_n "(cached) " >&6
  4914. else
  4915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4916. /* end confdefs.h. */
  4917. #ifdef HAVE_STDINT_H
  4918. #include <stdint.h>
  4919. #endif
  4920. int
  4921. main ()
  4922. {
  4923. extern uint64_t foo;
  4924. ;
  4925. return 0;
  4926. }
  4927. _ACEOF
  4928. if ac_fn_c_try_compile "$LINENO"; then :
  4929. liberty_cv_uint64=uint64_t
  4930. else
  4931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4932. /* end confdefs.h. */
  4933. #ifdef HAVE_LIMITS_H
  4934. #include <limits.h>
  4935. #endif
  4936. #ifndef CHAR_BIT
  4937. #define CHAR_BIT 8
  4938. #endif
  4939. int
  4940. main ()
  4941. {
  4942. extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
  4943. ;
  4944. return 0;
  4945. }
  4946. _ACEOF
  4947. if ac_fn_c_try_compile "$LINENO"; then :
  4948. liberty_cv_uint64="unsigned long"
  4949. else
  4950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4951. /* end confdefs.h. */
  4952. #ifdef HAVE_LIMITS_H
  4953. #include <limits.h>
  4954. #endif
  4955. #ifndef CHAR_BIT
  4956. #define CHAR_BIT 8
  4957. #endif
  4958. int
  4959. main ()
  4960. {
  4961. extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
  4962. ;
  4963. return 0;
  4964. }
  4965. _ACEOF
  4966. if ac_fn_c_try_compile "$LINENO"; then :
  4967. liberty_cv_uint64="unsigned long long"
  4968. else
  4969. liberty_cv_uint64=none
  4970. fi
  4971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4972. fi
  4973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4974. fi
  4975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4976. fi
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
  4978. $as_echo "$liberty_cv_uint64" >&6; }
  4979. if test "$liberty_cv_uint64" != none; then
  4980. cat >>confdefs.h <<_ACEOF
  4981. #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
  4982. _ACEOF
  4983. fi
  4984. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  4985. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  4986. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  4987. else
  4988. for ac_type in 'int' 'long int' 'long long int'; do
  4989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4990. /* end confdefs.h. */
  4991. $ac_includes_default
  4992. int
  4993. main ()
  4994. {
  4995. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  4996. test_array [0] = 0
  4997. ;
  4998. return 0;
  4999. }
  5000. _ACEOF
  5001. if ac_fn_c_try_compile "$LINENO"; then :
  5002. cat >>confdefs.h <<_ACEOF
  5003. #define intptr_t $ac_type
  5004. _ACEOF
  5005. ac_type=
  5006. fi
  5007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5008. test -z "$ac_type" && break
  5009. done
  5010. fi
  5011. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  5012. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  5013. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  5014. else
  5015. for ac_type in 'unsigned int' 'unsigned long int' \
  5016. 'unsigned long long int'; do
  5017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5018. /* end confdefs.h. */
  5019. $ac_includes_default
  5020. int
  5021. main ()
  5022. {
  5023. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  5024. test_array [0] = 0
  5025. ;
  5026. return 0;
  5027. }
  5028. _ACEOF
  5029. if ac_fn_c_try_compile "$LINENO"; then :
  5030. cat >>confdefs.h <<_ACEOF
  5031. #define uintptr_t $ac_type
  5032. _ACEOF
  5033. ac_type=
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5036. test -z "$ac_type" && break
  5037. done
  5038. fi
  5039. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  5040. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  5041. else
  5042. cat >>confdefs.h <<_ACEOF
  5043. #define ssize_t int
  5044. _ACEOF
  5045. fi
  5046. # Given the above check, we always have uintptr_t or a fallback
  5047. # definition. So define HAVE_UINTPTR_T in case any imported code
  5048. # relies on it.
  5049. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  5050. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5051. if test "x$ac_cv_type_pid_t" = x""yes; then :
  5052. else
  5053. cat >>confdefs.h <<_ACEOF
  5054. #define pid_t int
  5055. _ACEOF
  5056. fi
  5057. # This is the list of functions which libiberty will provide if they
  5058. # are not available on the host.
  5059. funcs="asprintf"
  5060. funcs="$funcs atexit"
  5061. funcs="$funcs basename"
  5062. funcs="$funcs bcmp"
  5063. funcs="$funcs bcopy"
  5064. funcs="$funcs bsearch"
  5065. funcs="$funcs bzero"
  5066. funcs="$funcs calloc"
  5067. funcs="$funcs clock"
  5068. funcs="$funcs ffs"
  5069. funcs="$funcs getcwd"
  5070. funcs="$funcs getpagesize"
  5071. funcs="$funcs gettimeofday"
  5072. funcs="$funcs index"
  5073. funcs="$funcs insque"
  5074. funcs="$funcs memchr"
  5075. funcs="$funcs memcmp"
  5076. funcs="$funcs memcpy"
  5077. funcs="$funcs memmem"
  5078. funcs="$funcs memmove"
  5079. funcs="$funcs mempcpy"
  5080. funcs="$funcs memset"
  5081. funcs="$funcs mkstemps"
  5082. funcs="$funcs putenv"
  5083. funcs="$funcs random"
  5084. funcs="$funcs rename"
  5085. funcs="$funcs rindex"
  5086. funcs="$funcs setenv"
  5087. funcs="$funcs snprintf"
  5088. funcs="$funcs sigsetmask"
  5089. funcs="$funcs stpcpy"
  5090. funcs="$funcs stpncpy"
  5091. funcs="$funcs strcasecmp"
  5092. funcs="$funcs strchr"
  5093. funcs="$funcs strdup"
  5094. funcs="$funcs strncasecmp"
  5095. funcs="$funcs strndup"
  5096. funcs="$funcs strnlen"
  5097. funcs="$funcs strrchr"
  5098. funcs="$funcs strstr"
  5099. funcs="$funcs strtod"
  5100. funcs="$funcs strtol"
  5101. funcs="$funcs strtoul"
  5102. funcs="$funcs strtoll"
  5103. funcs="$funcs strtoull"
  5104. funcs="$funcs strverscmp"
  5105. funcs="$funcs tmpnam"
  5106. funcs="$funcs vasprintf"
  5107. funcs="$funcs vfprintf"
  5108. funcs="$funcs vprintf"
  5109. funcs="$funcs vsnprintf"
  5110. funcs="$funcs vsprintf"
  5111. funcs="$funcs waitpid"
  5112. funcs="$funcs setproctitle"
  5113. # Also in the old function.def file: alloca, vfork, getopt.
  5114. vars="sys_errlist sys_nerr sys_siglist"
  5115. checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
  5116. getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \
  5117. realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \
  5118. sysmp table times wait3 wait4"
  5119. # These are neither executed nor required, but they help keep
  5120. # autoheader happy without adding a bunch of text to acconfig.h.
  5121. if test "x" = "y"; then
  5122. for ac_func in asprintf atexit \
  5123. basename bcmp bcopy bsearch bzero \
  5124. calloc canonicalize_file_name clock \
  5125. dup3 \
  5126. ffs __fsetlocking \
  5127. getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
  5128. index insque \
  5129. memchr memcmp memcpy memmem memmove memset mkstemps \
  5130. on_exit \
  5131. psignal pstat_getdynamic pstat_getstatic putenv \
  5132. random realpath rename rindex \
  5133. sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
  5134. stpcpy stpncpy strcasecmp strchr strdup \
  5135. strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
  5136. strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
  5137. table times tmpnam \
  5138. vasprintf vfprintf vprintf vsprintf \
  5139. wait3 wait4 waitpid
  5140. do :
  5141. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5142. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5143. eval as_val=\$$as_ac_var
  5144. if test "x$as_val" = x""yes; then :
  5145. cat >>confdefs.h <<_ACEOF
  5146. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5147. _ACEOF
  5148. fi
  5149. done
  5150. ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
  5151. if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
  5152. ac_have_decl=1
  5153. else
  5154. ac_have_decl=0
  5155. fi
  5156. cat >>confdefs.h <<_ACEOF
  5157. #define HAVE_DECL_BASENAME $ac_have_decl
  5158. _ACEOF
  5159. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  5160. if test "x$ac_cv_have_decl_ffs" = x""yes; then :
  5161. ac_have_decl=1
  5162. else
  5163. ac_have_decl=0
  5164. fi
  5165. cat >>confdefs.h <<_ACEOF
  5166. #define HAVE_DECL_FFS $ac_have_decl
  5167. _ACEOF
  5168. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  5169. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  5170. ac_have_decl=1
  5171. else
  5172. ac_have_decl=0
  5173. fi
  5174. cat >>confdefs.h <<_ACEOF
  5175. #define HAVE_DECL_ASPRINTF $ac_have_decl
  5176. _ACEOF
  5177. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  5178. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  5179. ac_have_decl=1
  5180. else
  5181. ac_have_decl=0
  5182. fi
  5183. cat >>confdefs.h <<_ACEOF
  5184. #define HAVE_DECL_VASPRINTF $ac_have_decl
  5185. _ACEOF
  5186. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  5187. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  5188. ac_have_decl=1
  5189. else
  5190. ac_have_decl=0
  5191. fi
  5192. cat >>confdefs.h <<_ACEOF
  5193. #define HAVE_DECL_SNPRINTF $ac_have_decl
  5194. _ACEOF
  5195. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  5196. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  5197. ac_have_decl=1
  5198. else
  5199. ac_have_decl=0
  5200. fi
  5201. cat >>confdefs.h <<_ACEOF
  5202. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  5203. _ACEOF
  5204. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  5205. if test "x$ac_cv_have_decl_strtol" = x""yes; then :
  5206. ac_have_decl=1
  5207. else
  5208. ac_have_decl=0
  5209. fi
  5210. cat >>confdefs.h <<_ACEOF
  5211. #define HAVE_DECL_STRTOL $ac_have_decl
  5212. _ACEOF
  5213. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  5214. if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
  5215. ac_have_decl=1
  5216. else
  5217. ac_have_decl=0
  5218. fi
  5219. cat >>confdefs.h <<_ACEOF
  5220. #define HAVE_DECL_STRTOUL $ac_have_decl
  5221. _ACEOF
  5222. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  5223. if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
  5224. ac_have_decl=1
  5225. else
  5226. ac_have_decl=0
  5227. fi
  5228. cat >>confdefs.h <<_ACEOF
  5229. #define HAVE_DECL_STRTOLL $ac_have_decl
  5230. _ACEOF
  5231. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  5232. if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
  5233. ac_have_decl=1
  5234. else
  5235. ac_have_decl=0
  5236. fi
  5237. cat >>confdefs.h <<_ACEOF
  5238. #define HAVE_DECL_STRTOULL $ac_have_decl
  5239. _ACEOF
  5240. $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
  5241. $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
  5242. $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
  5243. fi
  5244. # For each of these functions, if the host does not provide the
  5245. # function we want to put FN.o in LIBOBJS, and if the host does
  5246. # provide the function, we want to define HAVE_FN in config.h.
  5247. setobjs=
  5248. CHECK=
  5249. if test -n "${with_target_subdir}"; then
  5250. # We are being configured as a target library. AC_REPLACE_FUNCS
  5251. # may not work correctly, because the compiler may not be able to
  5252. # link executables. Note that we may still be being configured
  5253. # native.
  5254. # If we are being configured for newlib, we know which functions
  5255. # newlib provide and which ones we will be expected to provide.
  5256. if test "x${with_newlib}" = "xyes"; then
  5257. case " $LIBOBJS " in
  5258. *" asprintf.$ac_objext "* ) ;;
  5259. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5260. ;;
  5261. esac
  5262. case " $LIBOBJS " in
  5263. *" basename.$ac_objext "* ) ;;
  5264. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5265. ;;
  5266. esac
  5267. case " $LIBOBJS " in
  5268. *" insque.$ac_objext "* ) ;;
  5269. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5270. ;;
  5271. esac
  5272. case " $LIBOBJS " in
  5273. *" random.$ac_objext "* ) ;;
  5274. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5275. ;;
  5276. esac
  5277. case " $LIBOBJS " in
  5278. *" strdup.$ac_objext "* ) ;;
  5279. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  5280. ;;
  5281. esac
  5282. case " $LIBOBJS " in
  5283. *" vasprintf.$ac_objext "* ) ;;
  5284. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5285. ;;
  5286. esac
  5287. for f in $funcs; do
  5288. case "$f" in
  5289. asprintf | basename | insque | random | strdup | vasprintf)
  5290. ;;
  5291. *)
  5292. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5293. cat >>confdefs.h <<_ACEOF
  5294. #define $n 1
  5295. _ACEOF
  5296. ;;
  5297. esac
  5298. done
  5299. # newlib doesnt provide any of the variables in $vars, so we
  5300. # dont have to check them here.
  5301. # Of the functions in $checkfuncs, newlib only has strerror.
  5302. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5303. setobjs=yes
  5304. fi
  5305. # If we are being configured for Mingw, we know which functions
  5306. # Mingw provides and which ones we will be expected to provide.
  5307. case "${host}" in
  5308. *-*-mingw*)
  5309. case " $LIBOBJS " in
  5310. *" asprintf.$ac_objext "* ) ;;
  5311. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5312. ;;
  5313. esac
  5314. case " $LIBOBJS " in
  5315. *" basename.$ac_objext "* ) ;;
  5316. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5317. ;;
  5318. esac
  5319. case " $LIBOBJS " in
  5320. *" bcmp.$ac_objext "* ) ;;
  5321. *) LIBOBJS="$LIBOBJS bcmp.$ac_objext"
  5322. ;;
  5323. esac
  5324. case " $LIBOBJS " in
  5325. *" bcopy.$ac_objext "* ) ;;
  5326. *) LIBOBJS="$LIBOBJS bcopy.$ac_objext"
  5327. ;;
  5328. esac
  5329. case " $LIBOBJS " in
  5330. *" bzero.$ac_objext "* ) ;;
  5331. *) LIBOBJS="$LIBOBJS bzero.$ac_objext"
  5332. ;;
  5333. esac
  5334. case " $LIBOBJS " in
  5335. *" clock.$ac_objext "* ) ;;
  5336. *) LIBOBJS="$LIBOBJS clock.$ac_objext"
  5337. ;;
  5338. esac
  5339. case " $LIBOBJS " in
  5340. *" ffs.$ac_objext "* ) ;;
  5341. *) LIBOBJS="$LIBOBJS ffs.$ac_objext"
  5342. ;;
  5343. esac
  5344. case " $LIBOBJS " in
  5345. *" getpagesize.$ac_objext "* ) ;;
  5346. *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
  5347. ;;
  5348. esac
  5349. case " $LIBOBJS " in
  5350. *" index.$ac_objext "* ) ;;
  5351. *) LIBOBJS="$LIBOBJS index.$ac_objext"
  5352. ;;
  5353. esac
  5354. case " $LIBOBJS " in
  5355. *" insque.$ac_objext "* ) ;;
  5356. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5357. ;;
  5358. esac
  5359. case " $LIBOBJS " in
  5360. *" mempcpy.$ac_objext "* ) ;;
  5361. *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
  5362. ;;
  5363. esac
  5364. case " $LIBOBJS " in
  5365. *" mkstemps.$ac_objext "* ) ;;
  5366. *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext"
  5367. ;;
  5368. esac
  5369. case " $LIBOBJS " in
  5370. *" random.$ac_objext "* ) ;;
  5371. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5372. ;;
  5373. esac
  5374. case " $LIBOBJS " in
  5375. *" rindex.$ac_objext "* ) ;;
  5376. *) LIBOBJS="$LIBOBJS rindex.$ac_objext"
  5377. ;;
  5378. esac
  5379. case " $LIBOBJS " in
  5380. *" sigsetmask.$ac_objext "* ) ;;
  5381. *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext"
  5382. ;;
  5383. esac
  5384. case " $LIBOBJS " in
  5385. *" stpcpy.$ac_objext "* ) ;;
  5386. *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
  5387. ;;
  5388. esac
  5389. case " $LIBOBJS " in
  5390. *" stpncpy.$ac_objext "* ) ;;
  5391. *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
  5392. ;;
  5393. esac
  5394. case " $LIBOBJS " in
  5395. *" strndup.$ac_objext "* ) ;;
  5396. *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
  5397. ;;
  5398. esac
  5399. case " $LIBOBJS " in
  5400. *" strnlen.$ac_objext "* ) ;;
  5401. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  5402. ;;
  5403. esac
  5404. case " $LIBOBJS " in
  5405. *" strverscmp.$ac_objext "* ) ;;
  5406. *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext"
  5407. ;;
  5408. esac
  5409. case " $LIBOBJS " in
  5410. *" vasprintf.$ac_objext "* ) ;;
  5411. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5412. ;;
  5413. esac
  5414. case " $LIBOBJS " in
  5415. *" waitpid.$ac_objext "* ) ;;
  5416. *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
  5417. ;;
  5418. esac
  5419. for f in $funcs; do
  5420. case "$f" in
  5421. asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid)
  5422. ;;
  5423. *)
  5424. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5425. cat >>confdefs.h <<_ACEOF
  5426. #define $n 1
  5427. _ACEOF
  5428. ;;
  5429. esac
  5430. done
  5431. # Mingw doesnt provide any of the variables in $vars, so we
  5432. # dont have to check them here.
  5433. # Of the functions in $checkfuncs, Mingw only has strerror.
  5434. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5435. setobjs=yes
  5436. ;;
  5437. *-*-msdosdjgpp)
  5438. case " $LIBOBJS " in
  5439. *" vasprintf.$ac_objext "* ) ;;
  5440. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5441. ;;
  5442. esac
  5443. case " $LIBOBJS " in
  5444. *" vsnprintf.$ac_objext "* ) ;;
  5445. *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
  5446. ;;
  5447. esac
  5448. case " $LIBOBJS " in
  5449. *" snprintf.$ac_objext "* ) ;;
  5450. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  5451. ;;
  5452. esac
  5453. case " $LIBOBJS " in
  5454. *" asprintf.$ac_objext "* ) ;;
  5455. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5456. ;;
  5457. esac
  5458. for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
  5459. getcwd getpagesize getrusage gettimeofday \
  5460. index insque memchr memcmp memcpy memmove memset psignal \
  5461. putenv random rename rindex sbrk setenv stpcpy strcasecmp \
  5462. strchr strdup strerror strncasecmp strrchr strstr strtod \
  5463. strtol strtoul sysconf times tmpnam vfprintf vprintf \
  5464. vsprintf waitpid
  5465. do
  5466. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5467. cat >>confdefs.h <<_ACEOF
  5468. #define $n 1
  5469. _ACEOF
  5470. done
  5471. setobjs=yes
  5472. ;;
  5473. esac
  5474. else
  5475. # Not a target library, so we set things up to run the test suite.
  5476. CHECK=really-check
  5477. fi
  5478. case "${host}" in
  5479. *-*-cygwin* | *-*-mingw*)
  5480. $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
  5481. $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
  5482. ;;
  5483. esac
  5484. if test -z "${setobjs}"; then
  5485. case "${host}" in
  5486. *-*-vxworks*)
  5487. # Handle VxWorks configuration specially, since on VxWorks the
  5488. # libraries are actually on the target board, not in the file
  5489. # system.
  5490. case " $LIBOBJS " in
  5491. *" basename.$ac_objext "* ) ;;
  5492. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5493. ;;
  5494. esac
  5495. case " $LIBOBJS " in
  5496. *" getpagesize.$ac_objext "* ) ;;
  5497. *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
  5498. ;;
  5499. esac
  5500. case " $LIBOBJS " in
  5501. *" insque.$ac_objext "* ) ;;
  5502. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5503. ;;
  5504. esac
  5505. case " $LIBOBJS " in
  5506. *" random.$ac_objext "* ) ;;
  5507. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5508. ;;
  5509. esac
  5510. case " $LIBOBJS " in
  5511. *" strcasecmp.$ac_objext "* ) ;;
  5512. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  5513. ;;
  5514. esac
  5515. case " $LIBOBJS " in
  5516. *" strncasecmp.$ac_objext "* ) ;;
  5517. *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
  5518. ;;
  5519. esac
  5520. case " $LIBOBJS " in
  5521. *" strdup.$ac_objext "* ) ;;
  5522. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  5523. ;;
  5524. esac
  5525. case " $LIBOBJS " in
  5526. *" vfork.$ac_objext "* ) ;;
  5527. *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
  5528. ;;
  5529. esac
  5530. case " $LIBOBJS " in
  5531. *" waitpid.$ac_objext "* ) ;;
  5532. *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
  5533. ;;
  5534. esac
  5535. case " $LIBOBJS " in
  5536. *" vasprintf.$ac_objext "* ) ;;
  5537. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5538. ;;
  5539. esac
  5540. for f in $funcs; do
  5541. case "$f" in
  5542. basename | getpagesize | insque | random | strcasecmp)
  5543. ;;
  5544. strncasecmp | strdup | vfork | waitpid | vasprintf)
  5545. ;;
  5546. *)
  5547. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5548. cat >>confdefs.h <<_ACEOF
  5549. #define $n 1
  5550. _ACEOF
  5551. ;;
  5552. esac
  5553. done
  5554. # VxWorks doesn't provide any of the variables in $vars, so we
  5555. # don't have to check them here.
  5556. # Of the functions in $checkfuncs, VxWorks only has strerror.
  5557. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5558. setobjs=yes
  5559. ;;
  5560. esac
  5561. fi
  5562. if test -z "${setobjs}"; then
  5563. case "${host}" in
  5564. *-*-mingw32*)
  5565. # Under mingw32, sys_nerr and sys_errlist exist, but they are
  5566. # macros, so the test below won't find them.
  5567. libiberty_cv_var_sys_nerr=yes
  5568. libiberty_cv_var_sys_errlist=yes
  5569. ;;
  5570. *-*-msdosdjgpp*)
  5571. # vfork and fork are stubs.
  5572. ac_cv_func_vfork_works=no
  5573. ;;
  5574. *-*-uwin*)
  5575. # Under some versions of uwin, vfork is notoriously buggy and the test
  5576. # can hang configure; on other versions, vfork exists just as a stub.
  5577. # FIXME: This should be removed once vfork in uwin's runtime is fixed.
  5578. ac_cv_func_vfork_works=no
  5579. # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
  5580. # macros (actually, these are imported from a DLL, but the end effect
  5581. # is the same), so the test below won't find them.
  5582. libiberty_cv_var_sys_nerr=yes
  5583. libiberty_cv_var_sys_errlist=yes
  5584. ;;
  5585. *-*-*vms*)
  5586. # Under VMS, vfork works very different than on Unix. The standard test
  5587. # won't work, and it isn't easily adaptable. It makes more sense to
  5588. # just force it.
  5589. ac_cv_func_vfork_works=yes
  5590. ;;
  5591. esac
  5592. # We haven't set the list of objects yet. Use the standard autoconf
  5593. # tests. This will only work if the compiler works.
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  5595. $as_echo_n "checking for library containing strerror... " >&6; }
  5596. if test "${ac_cv_search_strerror+set}" = set; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. ac_func_search_save_LIBS=$LIBS
  5600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5601. /* end confdefs.h. */
  5602. /* Override any GCC internal prototype to avoid an error.
  5603. Use char because int might match the return type of a GCC
  5604. builtin and then its argument prototype would still apply. */
  5605. #ifdef __cplusplus
  5606. extern "C"
  5607. #endif
  5608. char strerror ();
  5609. int
  5610. main ()
  5611. {
  5612. return strerror ();
  5613. ;
  5614. return 0;
  5615. }
  5616. _ACEOF
  5617. for ac_lib in '' cposix; do
  5618. if test -z "$ac_lib"; then
  5619. ac_res="none required"
  5620. else
  5621. ac_res=-l$ac_lib
  5622. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5623. fi
  5624. if test x$gcc_no_link = xyes; then
  5625. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5626. fi
  5627. if ac_fn_c_try_link "$LINENO"; then :
  5628. ac_cv_search_strerror=$ac_res
  5629. fi
  5630. rm -f core conftest.err conftest.$ac_objext \
  5631. conftest$ac_exeext
  5632. if test "${ac_cv_search_strerror+set}" = set; then :
  5633. break
  5634. fi
  5635. done
  5636. if test "${ac_cv_search_strerror+set}" = set; then :
  5637. else
  5638. ac_cv_search_strerror=no
  5639. fi
  5640. rm conftest.$ac_ext
  5641. LIBS=$ac_func_search_save_LIBS
  5642. fi
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  5644. $as_echo "$ac_cv_search_strerror" >&6; }
  5645. ac_res=$ac_cv_search_strerror
  5646. if test "$ac_res" != no; then :
  5647. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5648. fi
  5649. for ac_func in $funcs
  5650. do :
  5651. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5652. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5653. eval as_val=\$$as_ac_var
  5654. if test "x$as_val" = x""yes; then :
  5655. cat >>confdefs.h <<_ACEOF
  5656. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5657. _ACEOF
  5658. else
  5659. case " $LIBOBJS " in
  5660. *" $ac_func.$ac_objext "* ) ;;
  5661. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  5662. ;;
  5663. esac
  5664. fi
  5665. done
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
  5667. $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
  5668. if test "${ac_cv_os_cray+set}" = set; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5672. /* end confdefs.h. */
  5673. #if defined(CRAY) && ! defined(CRAY2)
  5674. webecray
  5675. #else
  5676. wenotbecray
  5677. #endif
  5678. _ACEOF
  5679. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5680. $EGREP "webecray" >/dev/null 2>&1; then :
  5681. ac_cv_os_cray=yes
  5682. else
  5683. ac_cv_os_cray=no
  5684. fi
  5685. rm -f conftest*
  5686. fi
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  5688. $as_echo "$ac_cv_os_cray" >&6; }
  5689. if test $ac_cv_os_cray = yes; then
  5690. for ac_func in _getb67 GETB67 getb67; do
  5691. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5692. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5693. eval as_val=\$$as_ac_var
  5694. if test "x$as_val" = x""yes; then :
  5695. cat >>confdefs.h <<_ACEOF
  5696. #define CRAY_STACKSEG_END $ac_func
  5697. _ACEOF
  5698. break
  5699. fi
  5700. done
  5701. fi
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  5703. $as_echo_n "checking stack direction for C alloca... " >&6; }
  5704. if test "${ac_cv_c_stack_direction+set}" = set; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test "$cross_compiling" = yes; then :
  5708. ac_cv_c_stack_direction=0
  5709. else
  5710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5711. /* end confdefs.h. */
  5712. find_stack_direction ()
  5713. {
  5714. static char *addr = 0;
  5715. auto char dummy;
  5716. if (addr == 0)
  5717. {
  5718. addr = &dummy;
  5719. return find_stack_direction ();
  5720. }
  5721. else
  5722. return (&dummy > addr) ? 1 : -1;
  5723. }
  5724. main ()
  5725. {
  5726. exit (find_stack_direction() < 0);
  5727. }
  5728. _ACEOF
  5729. if ac_fn_c_try_run "$LINENO"; then :
  5730. ac_cv_c_stack_direction=1
  5731. else
  5732. ac_cv_c_stack_direction=-1
  5733. fi
  5734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5735. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5736. fi
  5737. fi
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  5739. $as_echo "$ac_cv_c_stack_direction" >&6; }
  5740. cat >>confdefs.h <<_ACEOF
  5741. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5742. _ACEOF
  5743. for ac_header in vfork.h
  5744. do :
  5745. ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
  5746. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5747. cat >>confdefs.h <<_ACEOF
  5748. #define HAVE_VFORK_H 1
  5749. _ACEOF
  5750. fi
  5751. done
  5752. for ac_func in fork vfork
  5753. do :
  5754. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5755. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5756. eval as_val=\$$as_ac_var
  5757. if test "x$as_val" = x""yes; then :
  5758. cat >>confdefs.h <<_ACEOF
  5759. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5760. _ACEOF
  5761. fi
  5762. done
  5763. if test "x$ac_cv_func_fork" = xyes; then
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5765. $as_echo_n "checking for working fork... " >&6; }
  5766. if test "${ac_cv_func_fork_works+set}" = set; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. if test "$cross_compiling" = yes; then :
  5770. ac_cv_func_fork_works=cross
  5771. else
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. $ac_includes_default
  5775. int
  5776. main ()
  5777. {
  5778. /* By Ruediger Kuhlmann. */
  5779. return fork () < 0;
  5780. ;
  5781. return 0;
  5782. }
  5783. _ACEOF
  5784. if ac_fn_c_try_run "$LINENO"; then :
  5785. ac_cv_func_fork_works=yes
  5786. else
  5787. ac_cv_func_fork_works=no
  5788. fi
  5789. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5790. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5791. fi
  5792. fi
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5794. $as_echo "$ac_cv_func_fork_works" >&6; }
  5795. else
  5796. ac_cv_func_fork_works=$ac_cv_func_fork
  5797. fi
  5798. if test "x$ac_cv_func_fork_works" = xcross; then
  5799. case $host in
  5800. *-*-amigaos* | *-*-msdosdjgpp*)
  5801. # Override, as these systems have only a dummy fork() stub
  5802. ac_cv_func_fork_works=no
  5803. ;;
  5804. *)
  5805. ac_cv_func_fork_works=yes
  5806. ;;
  5807. esac
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5809. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5810. fi
  5811. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5812. if test "x$ac_cv_func_vfork" = xyes; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5814. $as_echo_n "checking for working vfork... " >&6; }
  5815. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test "$cross_compiling" = yes; then :
  5819. ac_cv_func_vfork_works=cross
  5820. else
  5821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5822. /* end confdefs.h. */
  5823. /* Thanks to Paul Eggert for this test. */
  5824. $ac_includes_default
  5825. #include <sys/wait.h>
  5826. #ifdef HAVE_VFORK_H
  5827. # include <vfork.h>
  5828. #endif
  5829. /* On some sparc systems, changes by the child to local and incoming
  5830. argument registers are propagated back to the parent. The compiler
  5831. is told about this with #include <vfork.h>, but some compilers
  5832. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5833. static variable whose address is put into a register that is
  5834. clobbered by the vfork. */
  5835. static void
  5836. #ifdef __cplusplus
  5837. sparc_address_test (int arg)
  5838. # else
  5839. sparc_address_test (arg) int arg;
  5840. #endif
  5841. {
  5842. static pid_t child;
  5843. if (!child) {
  5844. child = vfork ();
  5845. if (child < 0) {
  5846. perror ("vfork");
  5847. _exit(2);
  5848. }
  5849. if (!child) {
  5850. arg = getpid();
  5851. write(-1, "", 0);
  5852. _exit (arg);
  5853. }
  5854. }
  5855. }
  5856. int
  5857. main ()
  5858. {
  5859. pid_t parent = getpid ();
  5860. pid_t child;
  5861. sparc_address_test (0);
  5862. child = vfork ();
  5863. if (child == 0) {
  5864. /* Here is another test for sparc vfork register problems. This
  5865. test uses lots of local variables, at least as many local
  5866. variables as main has allocated so far including compiler
  5867. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5868. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5869. reuse the register of parent for one of the local variables,
  5870. since it will think that parent can't possibly be used any more
  5871. in this routine. Assigning to the local variable will thus
  5872. munge parent in the parent process. */
  5873. pid_t
  5874. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5875. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5876. /* Convince the compiler that p..p7 are live; otherwise, it might
  5877. use the same hardware register for all 8 local variables. */
  5878. if (p != p1 || p != p2 || p != p3 || p != p4
  5879. || p != p5 || p != p6 || p != p7)
  5880. _exit(1);
  5881. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5882. from child file descriptors. If the child closes a descriptor
  5883. before it execs or exits, this munges the parent's descriptor
  5884. as well. Test for this by closing stdout in the child. */
  5885. _exit(close(fileno(stdout)) != 0);
  5886. } else {
  5887. int status;
  5888. struct stat st;
  5889. while (wait(&status) != child)
  5890. ;
  5891. return (
  5892. /* Was there some problem with vforking? */
  5893. child < 0
  5894. /* Did the child fail? (This shouldn't happen.) */
  5895. || status
  5896. /* Did the vfork/compiler bug occur? */
  5897. || parent != getpid()
  5898. /* Did the file descriptor bug occur? */
  5899. || fstat(fileno(stdout), &st) != 0
  5900. );
  5901. }
  5902. }
  5903. _ACEOF
  5904. if ac_fn_c_try_run "$LINENO"; then :
  5905. ac_cv_func_vfork_works=yes
  5906. else
  5907. ac_cv_func_vfork_works=no
  5908. fi
  5909. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5910. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5911. fi
  5912. fi
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5914. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5915. fi;
  5916. if test "x$ac_cv_func_fork_works" = xcross; then
  5917. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5919. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5920. fi
  5921. if test "x$ac_cv_func_vfork_works" = xyes; then
  5922. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5923. else
  5924. $as_echo "#define vfork fork" >>confdefs.h
  5925. fi
  5926. if test "x$ac_cv_func_fork_works" = xyes; then
  5927. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5928. fi
  5929. if test $ac_cv_func_vfork_works = no; then
  5930. case " $LIBOBJS " in
  5931. *" vfork.$ac_objext "* ) ;;
  5932. *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
  5933. ;;
  5934. esac
  5935. fi
  5936. # We only need _doprnt if we might use it to implement v*printf.
  5937. if test $ac_cv_func_vprintf != yes \
  5938. || test $ac_cv_func_vfprintf != yes \
  5939. || test $ac_cv_func_vsprintf != yes; then
  5940. for ac_func in _doprnt
  5941. do :
  5942. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  5943. if test "x$ac_cv_func__doprnt" = x""yes; then :
  5944. cat >>confdefs.h <<_ACEOF
  5945. #define HAVE__DOPRNT 1
  5946. _ACEOF
  5947. else
  5948. case " $LIBOBJS " in
  5949. *" $ac_func.$ac_objext "* ) ;;
  5950. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  5951. ;;
  5952. esac
  5953. fi
  5954. done
  5955. else
  5956. for ac_func in _doprnt
  5957. do :
  5958. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  5959. if test "x$ac_cv_func__doprnt" = x""yes; then :
  5960. cat >>confdefs.h <<_ACEOF
  5961. #define HAVE__DOPRNT 1
  5962. _ACEOF
  5963. fi
  5964. done
  5965. fi
  5966. for v in $vars; do
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
  5968. $as_echo_n "checking for $v... " >&6; }
  5969. if { as_var=libiberty_cv_var_$v; eval "test \"\${$as_var+set}\" = set"; }; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. if test x$gcc_no_link = xyes; then
  5973. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5974. fi
  5975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5976. /* end confdefs.h. */
  5977. int *p;
  5978. int
  5979. main ()
  5980. {
  5981. extern int $v []; p = $v;
  5982. ;
  5983. return 0;
  5984. }
  5985. _ACEOF
  5986. if ac_fn_c_try_link "$LINENO"; then :
  5987. eval "libiberty_cv_var_$v=yes"
  5988. else
  5989. eval "libiberty_cv_var_$v=no"
  5990. fi
  5991. rm -f core conftest.err conftest.$ac_objext \
  5992. conftest$ac_exeext conftest.$ac_ext
  5993. fi
  5994. if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5996. $as_echo "yes" >&6; }
  5997. n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5998. cat >>confdefs.h <<_ACEOF
  5999. #define $n 1
  6000. _ACEOF
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. done
  6006. # special check for _system_configuration because AIX <4.3.2 do not
  6007. # contain the `physmem' member.
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
  6009. $as_echo_n "checking for external symbol _system_configuration... " >&6; }
  6010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end confdefs.h. */
  6012. #include <sys/systemcfg.h>
  6013. int
  6014. main ()
  6015. {
  6016. double x = _system_configuration.physmem;
  6017. ;
  6018. return 0;
  6019. }
  6020. _ACEOF
  6021. if ac_fn_c_try_compile "$LINENO"; then :
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6023. $as_echo "yes" >&6; }
  6024. $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6027. $as_echo "no" >&6; }
  6028. fi
  6029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6030. for ac_func in $checkfuncs
  6031. do :
  6032. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6033. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6034. eval as_val=\$$as_ac_var
  6035. if test "x$as_val" = x""yes; then :
  6036. cat >>confdefs.h <<_ACEOF
  6037. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6038. _ACEOF
  6039. fi
  6040. done
  6041. ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
  6042. if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
  6043. ac_have_decl=1
  6044. else
  6045. ac_have_decl=0
  6046. fi
  6047. cat >>confdefs.h <<_ACEOF
  6048. #define HAVE_DECL_BASENAME $ac_have_decl
  6049. _ACEOF
  6050. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  6051. if test "x$ac_cv_have_decl_ffs" = x""yes; then :
  6052. ac_have_decl=1
  6053. else
  6054. ac_have_decl=0
  6055. fi
  6056. cat >>confdefs.h <<_ACEOF
  6057. #define HAVE_DECL_FFS $ac_have_decl
  6058. _ACEOF
  6059. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  6060. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  6061. ac_have_decl=1
  6062. else
  6063. ac_have_decl=0
  6064. fi
  6065. cat >>confdefs.h <<_ACEOF
  6066. #define HAVE_DECL_ASPRINTF $ac_have_decl
  6067. _ACEOF
  6068. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  6069. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  6070. ac_have_decl=1
  6071. else
  6072. ac_have_decl=0
  6073. fi
  6074. cat >>confdefs.h <<_ACEOF
  6075. #define HAVE_DECL_VASPRINTF $ac_have_decl
  6076. _ACEOF
  6077. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  6078. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  6079. ac_have_decl=1
  6080. else
  6081. ac_have_decl=0
  6082. fi
  6083. cat >>confdefs.h <<_ACEOF
  6084. #define HAVE_DECL_SNPRINTF $ac_have_decl
  6085. _ACEOF
  6086. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  6087. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  6088. ac_have_decl=1
  6089. else
  6090. ac_have_decl=0
  6091. fi
  6092. cat >>confdefs.h <<_ACEOF
  6093. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  6094. _ACEOF
  6095. ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
  6096. if test "x$ac_cv_have_decl_calloc" = x""yes; then :
  6097. ac_have_decl=1
  6098. else
  6099. ac_have_decl=0
  6100. fi
  6101. cat >>confdefs.h <<_ACEOF
  6102. #define HAVE_DECL_CALLOC $ac_have_decl
  6103. _ACEOF
  6104. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  6105. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  6106. ac_have_decl=1
  6107. else
  6108. ac_have_decl=0
  6109. fi
  6110. cat >>confdefs.h <<_ACEOF
  6111. #define HAVE_DECL_GETENV $ac_have_decl
  6112. _ACEOF
  6113. ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
  6114. if test "x$ac_cv_have_decl_getopt" = x""yes; then :
  6115. ac_have_decl=1
  6116. else
  6117. ac_have_decl=0
  6118. fi
  6119. cat >>confdefs.h <<_ACEOF
  6120. #define HAVE_DECL_GETOPT $ac_have_decl
  6121. _ACEOF
  6122. ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
  6123. if test "x$ac_cv_have_decl_malloc" = x""yes; then :
  6124. ac_have_decl=1
  6125. else
  6126. ac_have_decl=0
  6127. fi
  6128. cat >>confdefs.h <<_ACEOF
  6129. #define HAVE_DECL_MALLOC $ac_have_decl
  6130. _ACEOF
  6131. ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
  6132. if test "x$ac_cv_have_decl_realloc" = x""yes; then :
  6133. ac_have_decl=1
  6134. else
  6135. ac_have_decl=0
  6136. fi
  6137. cat >>confdefs.h <<_ACEOF
  6138. #define HAVE_DECL_REALLOC $ac_have_decl
  6139. _ACEOF
  6140. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  6141. if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
  6142. ac_have_decl=1
  6143. else
  6144. ac_have_decl=0
  6145. fi
  6146. cat >>confdefs.h <<_ACEOF
  6147. #define HAVE_DECL_SBRK $ac_have_decl
  6148. _ACEOF
  6149. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  6150. if test "x$ac_cv_have_decl_strtol" = x""yes; then :
  6151. ac_have_decl=1
  6152. else
  6153. ac_have_decl=0
  6154. fi
  6155. cat >>confdefs.h <<_ACEOF
  6156. #define HAVE_DECL_STRTOL $ac_have_decl
  6157. _ACEOF
  6158. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  6159. if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
  6160. ac_have_decl=1
  6161. else
  6162. ac_have_decl=0
  6163. fi
  6164. cat >>confdefs.h <<_ACEOF
  6165. #define HAVE_DECL_STRTOUL $ac_have_decl
  6166. _ACEOF
  6167. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  6168. if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
  6169. ac_have_decl=1
  6170. else
  6171. ac_have_decl=0
  6172. fi
  6173. cat >>confdefs.h <<_ACEOF
  6174. #define HAVE_DECL_STRTOLL $ac_have_decl
  6175. _ACEOF
  6176. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  6177. if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
  6178. ac_have_decl=1
  6179. else
  6180. ac_have_decl=0
  6181. fi
  6182. cat >>confdefs.h <<_ACEOF
  6183. #define HAVE_DECL_STRTOULL $ac_have_decl
  6184. _ACEOF
  6185. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  6186. if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
  6187. ac_have_decl=1
  6188. else
  6189. ac_have_decl=0
  6190. fi
  6191. cat >>confdefs.h <<_ACEOF
  6192. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  6193. _ACEOF
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
  6195. $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
  6196. if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. #include "confdefs.h"
  6202. #include <stdio.h>
  6203. #ifdef HAVE_STRING_H
  6204. #include <string.h>
  6205. #else
  6206. #ifdef HAVE_STRINGS_H
  6207. #include <strings.h>
  6208. #endif
  6209. #endif
  6210. #ifdef HAVE_STDLIB_H
  6211. #include <stdlib.h>
  6212. #endif
  6213. #ifdef HAVE_UNISTD_H
  6214. #include <unistd.h>
  6215. #endif
  6216. int
  6217. main ()
  6218. {
  6219. char *(*pfn) = (char *(*)) canonicalize_file_name
  6220. ;
  6221. return 0;
  6222. }
  6223. _ACEOF
  6224. if ac_fn_c_try_compile "$LINENO"; then :
  6225. libiberty_cv_decl_needed_canonicalize_file_name=no
  6226. else
  6227. libiberty_cv_decl_needed_canonicalize_file_name=yes
  6228. fi
  6229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
  6232. $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
  6233. if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
  6234. $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
  6235. fi
  6236. fi
  6237. # Figure out which version of pexecute to use.
  6238. case "${host}" in
  6239. *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;;
  6240. *-*-msdosdjgpp*) pexecute=pex-djgpp ;;
  6241. *-*-msdos*) pexecute=pex-msdos ;;
  6242. *) pexecute=pex-unix ;;
  6243. esac
  6244. if test x$gcc_no_link = xyes; then
  6245. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  6246. ac_cv_func_mmap_fixed_mapped=no
  6247. fi
  6248. fi
  6249. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  6250. for ac_header in stdlib.h unistd.h
  6251. do :
  6252. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6253. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  6254. eval as_val=\$$as_ac_Header
  6255. if test "x$as_val" = x""yes; then :
  6256. cat >>confdefs.h <<_ACEOF
  6257. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6258. _ACEOF
  6259. fi
  6260. done
  6261. for ac_func in getpagesize
  6262. do :
  6263. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6264. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  6265. cat >>confdefs.h <<_ACEOF
  6266. #define HAVE_GETPAGESIZE 1
  6267. _ACEOF
  6268. fi
  6269. done
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6271. $as_echo_n "checking for working mmap... " >&6; }
  6272. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. if test "$cross_compiling" = yes; then :
  6276. ac_cv_func_mmap_fixed_mapped=no
  6277. else
  6278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6279. /* end confdefs.h. */
  6280. $ac_includes_default
  6281. /* malloc might have been renamed as rpl_malloc. */
  6282. #undef malloc
  6283. /* Thanks to Mike Haertel and Jim Avera for this test.
  6284. Here is a matrix of mmap possibilities:
  6285. mmap private not fixed
  6286. mmap private fixed at somewhere currently unmapped
  6287. mmap private fixed at somewhere already mapped
  6288. mmap shared not fixed
  6289. mmap shared fixed at somewhere currently unmapped
  6290. mmap shared fixed at somewhere already mapped
  6291. For private mappings, we should verify that changes cannot be read()
  6292. back from the file, nor mmap's back from the file at a different
  6293. address. (There have been systems where private was not correctly
  6294. implemented like the infamous i386 svr4.0, and systems where the
  6295. VM page cache was not coherent with the file system buffer cache
  6296. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6297. For shared mappings, we should conversely verify that changes get
  6298. propagated back to all the places they're supposed to be.
  6299. Grep wants private fixed already mapped.
  6300. The main things grep needs to know about mmap are:
  6301. * does it exist and is it safe to write into the mmap'd area
  6302. * how to use it (BSD variants) */
  6303. #include <fcntl.h>
  6304. #include <sys/mman.h>
  6305. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6306. char *malloc ();
  6307. #endif
  6308. /* This mess was copied from the GNU getpagesize.h. */
  6309. #ifndef HAVE_GETPAGESIZE
  6310. /* Assume that all systems that can run configure have sys/param.h. */
  6311. # ifndef HAVE_SYS_PARAM_H
  6312. # define HAVE_SYS_PARAM_H 1
  6313. # endif
  6314. # ifdef _SC_PAGESIZE
  6315. # define getpagesize() sysconf(_SC_PAGESIZE)
  6316. # else /* no _SC_PAGESIZE */
  6317. # ifdef HAVE_SYS_PARAM_H
  6318. # include <sys/param.h>
  6319. # ifdef EXEC_PAGESIZE
  6320. # define getpagesize() EXEC_PAGESIZE
  6321. # else /* no EXEC_PAGESIZE */
  6322. # ifdef NBPG
  6323. # define getpagesize() NBPG * CLSIZE
  6324. # ifndef CLSIZE
  6325. # define CLSIZE 1
  6326. # endif /* no CLSIZE */
  6327. # else /* no NBPG */
  6328. # ifdef NBPC
  6329. # define getpagesize() NBPC
  6330. # else /* no NBPC */
  6331. # ifdef PAGESIZE
  6332. # define getpagesize() PAGESIZE
  6333. # endif /* PAGESIZE */
  6334. # endif /* no NBPC */
  6335. # endif /* no NBPG */
  6336. # endif /* no EXEC_PAGESIZE */
  6337. # else /* no HAVE_SYS_PARAM_H */
  6338. # define getpagesize() 8192 /* punt totally */
  6339. # endif /* no HAVE_SYS_PARAM_H */
  6340. # endif /* no _SC_PAGESIZE */
  6341. #endif /* no HAVE_GETPAGESIZE */
  6342. int
  6343. main ()
  6344. {
  6345. char *data, *data2, *data3;
  6346. int i, pagesize;
  6347. int fd;
  6348. pagesize = getpagesize ();
  6349. /* First, make a file with some known garbage in it. */
  6350. data = (char *) malloc (pagesize);
  6351. if (!data)
  6352. return 1;
  6353. for (i = 0; i < pagesize; ++i)
  6354. *(data + i) = rand ();
  6355. umask (0);
  6356. fd = creat ("conftest.mmap", 0600);
  6357. if (fd < 0)
  6358. return 1;
  6359. if (write (fd, data, pagesize) != pagesize)
  6360. return 1;
  6361. close (fd);
  6362. /* Next, try to mmap the file at a fixed address which already has
  6363. something else allocated at it. If we can, also make sure that
  6364. we see the same garbage. */
  6365. fd = open ("conftest.mmap", O_RDWR);
  6366. if (fd < 0)
  6367. return 1;
  6368. data2 = (char *) malloc (2 * pagesize);
  6369. if (!data2)
  6370. return 1;
  6371. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  6372. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6373. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6374. return 1;
  6375. for (i = 0; i < pagesize; ++i)
  6376. if (*(data + i) != *(data2 + i))
  6377. return 1;
  6378. /* Finally, make sure that changes to the mapped area do not
  6379. percolate back to the file as seen by read(). (This is a bug on
  6380. some variants of i386 svr4.0.) */
  6381. for (i = 0; i < pagesize; ++i)
  6382. *(data2 + i) = *(data2 + i) + 1;
  6383. data3 = (char *) malloc (pagesize);
  6384. if (!data3)
  6385. return 1;
  6386. if (read (fd, data3, pagesize) != pagesize)
  6387. return 1;
  6388. for (i = 0; i < pagesize; ++i)
  6389. if (*(data + i) != *(data3 + i))
  6390. return 1;
  6391. close (fd);
  6392. return 0;
  6393. }
  6394. _ACEOF
  6395. if ac_fn_c_try_run "$LINENO"; then :
  6396. ac_cv_func_mmap_fixed_mapped=yes
  6397. else
  6398. ac_cv_func_mmap_fixed_mapped=no
  6399. fi
  6400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6402. fi
  6403. fi
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6405. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6406. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6407. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6408. fi
  6409. rm -f conftest.mmap
  6410. fi
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
  6412. $as_echo_n "checking for working strncmp... " >&6; }
  6413. if test "${ac_cv_func_strncmp_works+set}" = set; then :
  6414. $as_echo_n "(cached) " >&6
  6415. else
  6416. if test "$cross_compiling" = yes; then :
  6417. ac_cv_func_strncmp_works=yes
  6418. else
  6419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6420. /* end confdefs.h. */
  6421. /* Test by Jim Wilson and Kaveh Ghazi.
  6422. Check whether strncmp reads past the end of its string parameters. */
  6423. #include <sys/types.h>
  6424. #ifdef HAVE_FCNTL_H
  6425. #include <fcntl.h>
  6426. #endif
  6427. #ifdef HAVE_SYS_MMAN_H
  6428. #include <sys/mman.h>
  6429. #endif
  6430. #ifndef MAP_ANON
  6431. #ifdef MAP_ANONYMOUS
  6432. #define MAP_ANON MAP_ANONYMOUS
  6433. #else
  6434. #define MAP_ANON MAP_FILE
  6435. #endif
  6436. #endif
  6437. #ifndef MAP_FILE
  6438. #define MAP_FILE 0
  6439. #endif
  6440. #ifndef O_RDONLY
  6441. #define O_RDONLY 0
  6442. #endif
  6443. #define MAP_LEN 0x10000
  6444. main ()
  6445. {
  6446. #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
  6447. char *p;
  6448. int dev_zero;
  6449. dev_zero = open ("/dev/zero", O_RDONLY);
  6450. if (dev_zero < 0)
  6451. exit (1);
  6452. p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
  6453. MAP_ANON|MAP_PRIVATE, dev_zero, 0);
  6454. if (p == (char *)-1)
  6455. p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
  6456. MAP_ANON|MAP_PRIVATE, -1, 0);
  6457. if (p == (char *)-1)
  6458. exit (2);
  6459. else
  6460. {
  6461. char *string = "__si_type_info";
  6462. char *q = (char *) p + MAP_LEN - strlen (string) - 2;
  6463. char *r = (char *) p + 0xe;
  6464. strcpy (q, string);
  6465. strcpy (r, string);
  6466. strncmp (r, q, 14);
  6467. }
  6468. #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
  6469. exit (0);
  6470. }
  6471. _ACEOF
  6472. if ac_fn_c_try_run "$LINENO"; then :
  6473. ac_cv_func_strncmp_works=yes
  6474. else
  6475. ac_cv_func_strncmp_works=no
  6476. fi
  6477. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6478. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6479. fi
  6480. rm -f core core.* *.core
  6481. fi
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
  6483. $as_echo "$ac_cv_func_strncmp_works" >&6; }
  6484. if test $ac_cv_func_strncmp_works = no ; then
  6485. case " $LIBOBJS " in
  6486. *" strncmp.$ac_objext "* ) ;;
  6487. *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
  6488. ;;
  6489. esac
  6490. fi
  6491. # Install a library built with a cross compiler in $(tooldir) rather
  6492. # than $(libdir).
  6493. if test -z "${with_cross_host}"; then
  6494. INSTALL_DEST=libdir
  6495. else
  6496. INSTALL_DEST=tooldir
  6497. fi
  6498. L=""
  6499. for l in x $LIBOBJS; do
  6500. case $l in
  6501. x) ;;
  6502. *) L="$L ./$l" ;;
  6503. esac
  6504. done
  6505. LIBOBJS="$L"
  6506. # We need multilib support, but only if configuring for the target.
  6507. ac_config_files="$ac_config_files Makefile testsuite/Makefile"
  6508. ac_config_commands="$ac_config_commands default"
  6509. cat >confcache <<\_ACEOF
  6510. # This file is a shell script that caches the results of configure
  6511. # tests run on this system so they can be shared between configure
  6512. # scripts and configure runs, see configure's option --config-cache.
  6513. # It is not useful on other systems. If it contains results you don't
  6514. # want to keep, you may remove or edit it.
  6515. #
  6516. # config.status only pays attention to the cache file if you give it
  6517. # the --recheck option to rerun configure.
  6518. #
  6519. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6520. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6521. # following values.
  6522. _ACEOF
  6523. # The following way of writing the cache mishandles newlines in values,
  6524. # but we know of no workaround that is simple, portable, and efficient.
  6525. # So, we kill variables containing newlines.
  6526. # Ultrix sh set writes to stderr and can't be redirected directly,
  6527. # and sets the high bit in the cache file unless we assign to the vars.
  6528. (
  6529. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6530. eval ac_val=\$$ac_var
  6531. case $ac_val in #(
  6532. *${as_nl}*)
  6533. case $ac_var in #(
  6534. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6535. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6536. esac
  6537. case $ac_var in #(
  6538. _ | IFS | as_nl) ;; #(
  6539. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6540. *) { eval $ac_var=; unset $ac_var;} ;;
  6541. esac ;;
  6542. esac
  6543. done
  6544. (set) 2>&1 |
  6545. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6546. *${as_nl}ac_space=\ *)
  6547. # `set' does not quote correctly, so add quotes: double-quote
  6548. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6549. sed -n \
  6550. "s/'/'\\\\''/g;
  6551. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6552. ;; #(
  6553. *)
  6554. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6555. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6556. ;;
  6557. esac |
  6558. sort
  6559. ) |
  6560. sed '
  6561. /^ac_cv_env_/b end
  6562. t clear
  6563. :clear
  6564. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6565. t end
  6566. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6567. :end' >>confcache
  6568. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6569. if test -w "$cache_file"; then
  6570. test "x$cache_file" != "x/dev/null" &&
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6572. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6573. cat confcache >$cache_file
  6574. else
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6576. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6577. fi
  6578. fi
  6579. rm -f confcache
  6580. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6581. # Let make expand exec_prefix.
  6582. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6583. DEFS=-DHAVE_CONFIG_H
  6584. ac_libobjs=
  6585. ac_ltlibobjs=
  6586. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6587. # 1. Remove the extension, and $U if already installed.
  6588. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6589. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6590. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6591. # will be set to the directory where LIBOBJS objects are built.
  6592. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6593. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6594. done
  6595. LIBOBJS=$ac_libobjs
  6596. LTLIBOBJS=$ac_ltlibobjs
  6597. : ${CONFIG_STATUS=./config.status}
  6598. ac_write_fail=0
  6599. ac_clean_files_save=$ac_clean_files
  6600. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6602. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6603. as_write_fail=0
  6604. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6605. #! $SHELL
  6606. # Generated by $as_me.
  6607. # Run this file to recreate the current configuration.
  6608. # Compiler output produced by configure, useful for debugging
  6609. # configure, is in config.log if it exists.
  6610. debug=false
  6611. ac_cs_recheck=false
  6612. ac_cs_silent=false
  6613. SHELL=\${CONFIG_SHELL-$SHELL}
  6614. export SHELL
  6615. _ASEOF
  6616. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6617. ## -------------------- ##
  6618. ## M4sh Initialization. ##
  6619. ## -------------------- ##
  6620. # Be more Bourne compatible
  6621. DUALCASE=1; export DUALCASE # for MKS sh
  6622. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6623. emulate sh
  6624. NULLCMD=:
  6625. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6626. # is contrary to our usage. Disable this feature.
  6627. alias -g '${1+"$@"}'='"$@"'
  6628. setopt NO_GLOB_SUBST
  6629. else
  6630. case `(set -o) 2>/dev/null` in #(
  6631. *posix*) :
  6632. set -o posix ;; #(
  6633. *) :
  6634. ;;
  6635. esac
  6636. fi
  6637. as_nl='
  6638. '
  6639. export as_nl
  6640. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6641. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6642. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6643. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6644. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6645. # but without wasting forks for bash or zsh.
  6646. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6647. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6648. as_echo='print -r --'
  6649. as_echo_n='print -rn --'
  6650. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6651. as_echo='printf %s\n'
  6652. as_echo_n='printf %s'
  6653. else
  6654. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6655. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6656. as_echo_n='/usr/ucb/echo -n'
  6657. else
  6658. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6659. as_echo_n_body='eval
  6660. arg=$1;
  6661. case $arg in #(
  6662. *"$as_nl"*)
  6663. expr "X$arg" : "X\\(.*\\)$as_nl";
  6664. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6665. esac;
  6666. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6667. '
  6668. export as_echo_n_body
  6669. as_echo_n='sh -c $as_echo_n_body as_echo'
  6670. fi
  6671. export as_echo_body
  6672. as_echo='sh -c $as_echo_body as_echo'
  6673. fi
  6674. # The user is always right.
  6675. if test "${PATH_SEPARATOR+set}" != set; then
  6676. PATH_SEPARATOR=:
  6677. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6678. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6679. PATH_SEPARATOR=';'
  6680. }
  6681. fi
  6682. # IFS
  6683. # We need space, tab and new line, in precisely that order. Quoting is
  6684. # there to prevent editors from complaining about space-tab.
  6685. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6686. # splitting by setting IFS to empty value.)
  6687. IFS=" "" $as_nl"
  6688. # Find who we are. Look in the path if we contain no directory separator.
  6689. case $0 in #((
  6690. *[\\/]* ) as_myself=$0 ;;
  6691. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6697. done
  6698. IFS=$as_save_IFS
  6699. ;;
  6700. esac
  6701. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6702. # in which case we are not to be found in the path.
  6703. if test "x$as_myself" = x; then
  6704. as_myself=$0
  6705. fi
  6706. if test ! -f "$as_myself"; then
  6707. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6708. exit 1
  6709. fi
  6710. # Unset variables that we do not need and which cause bugs (e.g. in
  6711. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6712. # suppresses any "Segmentation fault" message there. '((' could
  6713. # trigger a bug in pdksh 5.2.14.
  6714. for as_var in BASH_ENV ENV MAIL MAILPATH
  6715. do eval test x\${$as_var+set} = xset \
  6716. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6717. done
  6718. PS1='$ '
  6719. PS2='> '
  6720. PS4='+ '
  6721. # NLS nuisances.
  6722. LC_ALL=C
  6723. export LC_ALL
  6724. LANGUAGE=C
  6725. export LANGUAGE
  6726. # CDPATH.
  6727. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6728. # as_fn_error ERROR [LINENO LOG_FD]
  6729. # ---------------------------------
  6730. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6731. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6732. # script with status $?, using 1 if that was 0.
  6733. as_fn_error ()
  6734. {
  6735. as_status=$?; test $as_status -eq 0 && as_status=1
  6736. if test "$3"; then
  6737. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6738. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  6739. fi
  6740. $as_echo "$as_me: error: $1" >&2
  6741. as_fn_exit $as_status
  6742. } # as_fn_error
  6743. # as_fn_set_status STATUS
  6744. # -----------------------
  6745. # Set $? to STATUS, without forking.
  6746. as_fn_set_status ()
  6747. {
  6748. return $1
  6749. } # as_fn_set_status
  6750. # as_fn_exit STATUS
  6751. # -----------------
  6752. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6753. as_fn_exit ()
  6754. {
  6755. set +e
  6756. as_fn_set_status $1
  6757. exit $1
  6758. } # as_fn_exit
  6759. # as_fn_unset VAR
  6760. # ---------------
  6761. # Portably unset VAR.
  6762. as_fn_unset ()
  6763. {
  6764. { eval $1=; unset $1;}
  6765. }
  6766. as_unset=as_fn_unset
  6767. # as_fn_append VAR VALUE
  6768. # ----------------------
  6769. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6770. # advantage of any shell optimizations that allow amortized linear growth over
  6771. # repeated appends, instead of the typical quadratic growth present in naive
  6772. # implementations.
  6773. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6774. eval 'as_fn_append ()
  6775. {
  6776. eval $1+=\$2
  6777. }'
  6778. else
  6779. as_fn_append ()
  6780. {
  6781. eval $1=\$$1\$2
  6782. }
  6783. fi # as_fn_append
  6784. # as_fn_arith ARG...
  6785. # ------------------
  6786. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6787. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6788. # must be portable across $(()) and expr.
  6789. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6790. eval 'as_fn_arith ()
  6791. {
  6792. as_val=$(( $* ))
  6793. }'
  6794. else
  6795. as_fn_arith ()
  6796. {
  6797. as_val=`expr "$@" || test $? -eq 1`
  6798. }
  6799. fi # as_fn_arith
  6800. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6801. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6802. as_expr=expr
  6803. else
  6804. as_expr=false
  6805. fi
  6806. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6807. as_basename=basename
  6808. else
  6809. as_basename=false
  6810. fi
  6811. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6812. as_dirname=dirname
  6813. else
  6814. as_dirname=false
  6815. fi
  6816. as_me=`$as_basename -- "$0" ||
  6817. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6818. X"$0" : 'X\(//\)$' \| \
  6819. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6820. $as_echo X/"$0" |
  6821. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6822. s//\1/
  6823. q
  6824. }
  6825. /^X\/\(\/\/\)$/{
  6826. s//\1/
  6827. q
  6828. }
  6829. /^X\/\(\/\).*/{
  6830. s//\1/
  6831. q
  6832. }
  6833. s/.*/./; q'`
  6834. # Avoid depending upon Character Ranges.
  6835. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6836. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6837. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6838. as_cr_digits='0123456789'
  6839. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6840. ECHO_C= ECHO_N= ECHO_T=
  6841. case `echo -n x` in #(((((
  6842. -n*)
  6843. case `echo 'xy\c'` in
  6844. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6845. xy) ECHO_C='\c';;
  6846. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6847. ECHO_T=' ';;
  6848. esac;;
  6849. *)
  6850. ECHO_N='-n';;
  6851. esac
  6852. rm -f conf$$ conf$$.exe conf$$.file
  6853. if test -d conf$$.dir; then
  6854. rm -f conf$$.dir/conf$$.file
  6855. else
  6856. rm -f conf$$.dir
  6857. mkdir conf$$.dir 2>/dev/null
  6858. fi
  6859. if (echo >conf$$.file) 2>/dev/null; then
  6860. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6861. as_ln_s='ln -s'
  6862. # ... but there are two gotchas:
  6863. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6864. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6865. # In both cases, we have to default to `cp -p'.
  6866. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6867. as_ln_s='cp -p'
  6868. elif ln conf$$.file conf$$ 2>/dev/null; then
  6869. as_ln_s=ln
  6870. else
  6871. as_ln_s='cp -p'
  6872. fi
  6873. else
  6874. as_ln_s='cp -p'
  6875. fi
  6876. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6877. rmdir conf$$.dir 2>/dev/null
  6878. # as_fn_mkdir_p
  6879. # -------------
  6880. # Create "$as_dir" as a directory, including parents if necessary.
  6881. as_fn_mkdir_p ()
  6882. {
  6883. case $as_dir in #(
  6884. -*) as_dir=./$as_dir;;
  6885. esac
  6886. test -d "$as_dir" || eval $as_mkdir_p || {
  6887. as_dirs=
  6888. while :; do
  6889. case $as_dir in #(
  6890. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6891. *) as_qdir=$as_dir;;
  6892. esac
  6893. as_dirs="'$as_qdir' $as_dirs"
  6894. as_dir=`$as_dirname -- "$as_dir" ||
  6895. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6896. X"$as_dir" : 'X\(//\)[^/]' \| \
  6897. X"$as_dir" : 'X\(//\)$' \| \
  6898. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6899. $as_echo X"$as_dir" |
  6900. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6901. s//\1/
  6902. q
  6903. }
  6904. /^X\(\/\/\)[^/].*/{
  6905. s//\1/
  6906. q
  6907. }
  6908. /^X\(\/\/\)$/{
  6909. s//\1/
  6910. q
  6911. }
  6912. /^X\(\/\).*/{
  6913. s//\1/
  6914. q
  6915. }
  6916. s/.*/./; q'`
  6917. test -d "$as_dir" && break
  6918. done
  6919. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6920. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  6921. } # as_fn_mkdir_p
  6922. if mkdir -p . 2>/dev/null; then
  6923. as_mkdir_p='mkdir -p "$as_dir"'
  6924. else
  6925. test -d ./-p && rmdir ./-p
  6926. as_mkdir_p=false
  6927. fi
  6928. if test -x / >/dev/null 2>&1; then
  6929. as_test_x='test -x'
  6930. else
  6931. if ls -dL / >/dev/null 2>&1; then
  6932. as_ls_L_option=L
  6933. else
  6934. as_ls_L_option=
  6935. fi
  6936. as_test_x='
  6937. eval sh -c '\''
  6938. if test -d "$1"; then
  6939. test -d "$1/.";
  6940. else
  6941. case $1 in #(
  6942. -*)set "./$1";;
  6943. esac;
  6944. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6945. ???[sx]*):;;*)false;;esac;fi
  6946. '\'' sh
  6947. '
  6948. fi
  6949. as_executable_p=$as_test_x
  6950. # Sed expression to map a string onto a valid CPP name.
  6951. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6952. # Sed expression to map a string onto a valid variable name.
  6953. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6954. exec 6>&1
  6955. ## ----------------------------------- ##
  6956. ## Main body of $CONFIG_STATUS script. ##
  6957. ## ----------------------------------- ##
  6958. _ASEOF
  6959. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6960. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6961. # Save the log message, to keep $0 and so on meaningful, and to
  6962. # report actual input values of CONFIG_FILES etc. instead of their
  6963. # values after options handling.
  6964. ac_log="
  6965. This file was extended by $as_me, which was
  6966. generated by GNU Autoconf 2.64. Invocation command line was
  6967. CONFIG_FILES = $CONFIG_FILES
  6968. CONFIG_HEADERS = $CONFIG_HEADERS
  6969. CONFIG_LINKS = $CONFIG_LINKS
  6970. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6971. $ $0 $@
  6972. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6973. "
  6974. _ACEOF
  6975. case $ac_config_files in *"
  6976. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6977. esac
  6978. case $ac_config_headers in *"
  6979. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6980. esac
  6981. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6982. # Files that config.status was made for.
  6983. config_files="$ac_config_files"
  6984. config_headers="$ac_config_headers"
  6985. config_commands="$ac_config_commands"
  6986. _ACEOF
  6987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6988. ac_cs_usage="\
  6989. \`$as_me' instantiates files and other configuration actions
  6990. from templates according to the current configuration. Unless the files
  6991. and actions are specified as TAGs, all are instantiated by default.
  6992. Usage: $0 [OPTION]... [TAG]...
  6993. -h, --help print this help, then exit
  6994. -V, --version print version number and configuration settings, then exit
  6995. -q, --quiet, --silent
  6996. do not print progress messages
  6997. -d, --debug don't remove temporary files
  6998. --recheck update $as_me by reconfiguring in the same conditions
  6999. --file=FILE[:TEMPLATE]
  7000. instantiate the configuration file FILE
  7001. --header=FILE[:TEMPLATE]
  7002. instantiate the configuration header FILE
  7003. Configuration files:
  7004. $config_files
  7005. Configuration headers:
  7006. $config_headers
  7007. Configuration commands:
  7008. $config_commands
  7009. Report bugs to the package provider."
  7010. _ACEOF
  7011. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7012. ac_cs_version="\\
  7013. config.status
  7014. configured by $0, generated by GNU Autoconf 2.64,
  7015. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  7016. Copyright (C) 2009 Free Software Foundation, Inc.
  7017. This config.status script is free software; the Free Software Foundation
  7018. gives unlimited permission to copy, distribute and modify it."
  7019. ac_pwd='$ac_pwd'
  7020. srcdir='$srcdir'
  7021. INSTALL='$INSTALL'
  7022. test -n "\$AWK" || AWK=awk
  7023. _ACEOF
  7024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7025. # The default lists apply if the user does not specify any file.
  7026. ac_need_defaults=:
  7027. while test $# != 0
  7028. do
  7029. case $1 in
  7030. --*=*)
  7031. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7032. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7033. ac_shift=:
  7034. ;;
  7035. *)
  7036. ac_option=$1
  7037. ac_optarg=$2
  7038. ac_shift=shift
  7039. ;;
  7040. esac
  7041. case $ac_option in
  7042. # Handling of the options.
  7043. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7044. ac_cs_recheck=: ;;
  7045. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7046. $as_echo "$ac_cs_version"; exit ;;
  7047. --debug | --debu | --deb | --de | --d | -d )
  7048. debug=: ;;
  7049. --file | --fil | --fi | --f )
  7050. $ac_shift
  7051. case $ac_optarg in
  7052. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7053. esac
  7054. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7055. ac_need_defaults=false;;
  7056. --header | --heade | --head | --hea )
  7057. $ac_shift
  7058. case $ac_optarg in
  7059. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7060. esac
  7061. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7062. ac_need_defaults=false;;
  7063. --he | --h)
  7064. # Conflict between --help and --header
  7065. as_fn_error "ambiguous option: \`$1'
  7066. Try \`$0 --help' for more information.";;
  7067. --help | --hel | -h )
  7068. $as_echo "$ac_cs_usage"; exit ;;
  7069. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7070. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7071. ac_cs_silent=: ;;
  7072. # This is an error.
  7073. -*) as_fn_error "unrecognized option: \`$1'
  7074. Try \`$0 --help' for more information." ;;
  7075. *) as_fn_append ac_config_targets " $1"
  7076. ac_need_defaults=false ;;
  7077. esac
  7078. shift
  7079. done
  7080. ac_configure_extra_args=
  7081. if $ac_cs_silent; then
  7082. exec 6>/dev/null
  7083. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7084. fi
  7085. _ACEOF
  7086. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7087. if \$ac_cs_recheck; then
  7088. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7089. shift
  7090. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7091. CONFIG_SHELL='$SHELL'
  7092. export CONFIG_SHELL
  7093. exec "\$@"
  7094. fi
  7095. _ACEOF
  7096. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7097. exec 5>>config.log
  7098. {
  7099. echo
  7100. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7101. ## Running $as_me. ##
  7102. _ASBOX
  7103. $as_echo "$ac_log"
  7104. } >&5
  7105. _ACEOF
  7106. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7107. #
  7108. # INIT-COMMANDS
  7109. #
  7110. srcdir=${srcdir}
  7111. host=${host}
  7112. target=${target}
  7113. with_target_subdir=${with_target_subdir}
  7114. with_multisubdir=${with_multisubdir}
  7115. ac_configure_args="--enable-multilib ${ac_configure_args}"
  7116. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  7117. ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
  7118. libiberty_topdir=${libiberty_topdir}
  7119. _ACEOF
  7120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7121. # Handling of arguments.
  7122. for ac_config_target in $ac_config_targets
  7123. do
  7124. case $ac_config_target in
  7125. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  7126. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7127. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  7128. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  7129. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7130. esac
  7131. done
  7132. # If the user did not use the arguments to specify the items to instantiate,
  7133. # then the envvar interface is used. Set only those that are not.
  7134. # We use the long form for the default assignment because of an extremely
  7135. # bizarre bug on SunOS 4.1.3.
  7136. if $ac_need_defaults; then
  7137. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7138. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7139. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7140. fi
  7141. # Have a temporary directory for convenience. Make it in the build tree
  7142. # simply because there is no reason against having it here, and in addition,
  7143. # creating and moving files from /tmp can sometimes cause problems.
  7144. # Hook for its removal unless debugging.
  7145. # Note that there is a small window in which the directory will not be cleaned:
  7146. # after its creation but before its name has been assigned to `$tmp'.
  7147. $debug ||
  7148. {
  7149. tmp=
  7150. trap 'exit_status=$?
  7151. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  7152. ' 0
  7153. trap 'as_fn_exit 1' 1 2 13 15
  7154. }
  7155. # Create a (secure) tmp directory for tmp files.
  7156. {
  7157. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7158. test -n "$tmp" && test -d "$tmp"
  7159. } ||
  7160. {
  7161. tmp=./conf$$-$RANDOM
  7162. (umask 077 && mkdir "$tmp")
  7163. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  7164. # Set up the scripts for CONFIG_FILES section.
  7165. # No need to generate them if there are no CONFIG_FILES.
  7166. # This happens for instance with `./config.status config.h'.
  7167. if test -n "$CONFIG_FILES"; then
  7168. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  7169. ac_cs_awk_getline=:
  7170. ac_cs_awk_pipe_init=
  7171. ac_cs_awk_read_file='
  7172. while ((getline aline < (F[key])) > 0)
  7173. print(aline)
  7174. close(F[key])'
  7175. ac_cs_awk_pipe_fini=
  7176. else
  7177. ac_cs_awk_getline=false
  7178. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  7179. ac_cs_awk_read_file='
  7180. print "|#_!!_#|"
  7181. print "cat " F[key] " &&"
  7182. '$ac_cs_awk_pipe_init
  7183. # The final `:' finishes the AND list.
  7184. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  7185. fi
  7186. ac_cr=`echo X | tr X '\015'`
  7187. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7188. # But we know of no other shell where ac_cr would be empty at this
  7189. # point, so we can use a bashism as a fallback.
  7190. if test "x$ac_cr" = x; then
  7191. eval ac_cr=\$\'\\r\'
  7192. fi
  7193. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7194. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7195. ac_cs_awk_cr='\r'
  7196. else
  7197. ac_cs_awk_cr=$ac_cr
  7198. fi
  7199. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7200. _ACEOF
  7201. # Create commands to substitute file output variables.
  7202. {
  7203. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  7204. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  7205. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  7206. echo "_ACAWK" &&
  7207. echo "_ACEOF"
  7208. } >conf$$files.sh &&
  7209. . ./conf$$files.sh ||
  7210. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7211. rm -f conf$$files.sh
  7212. {
  7213. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7214. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7215. echo "_ACEOF"
  7216. } >conf$$subs.sh ||
  7217. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7218. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  7219. ac_delim='%!_!# '
  7220. for ac_last_try in false false false false false :; do
  7221. . ./conf$$subs.sh ||
  7222. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7223. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7224. if test $ac_delim_n = $ac_delim_num; then
  7225. break
  7226. elif $ac_last_try; then
  7227. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7228. else
  7229. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7230. fi
  7231. done
  7232. rm -f conf$$subs.sh
  7233. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7234. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7235. _ACEOF
  7236. sed -n '
  7237. h
  7238. s/^/S["/; s/!.*/"]=/
  7239. p
  7240. g
  7241. s/^[^!]*!//
  7242. :repl
  7243. t repl
  7244. s/'"$ac_delim"'$//
  7245. t delim
  7246. :nl
  7247. h
  7248. s/\(.\{148\}\).*/\1/
  7249. t more1
  7250. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7251. p
  7252. n
  7253. b repl
  7254. :more1
  7255. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7256. p
  7257. g
  7258. s/.\{148\}//
  7259. t nl
  7260. :delim
  7261. h
  7262. s/\(.\{148\}\).*/\1/
  7263. t more2
  7264. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7265. p
  7266. b
  7267. :more2
  7268. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7269. p
  7270. g
  7271. s/.\{148\}//
  7272. t delim
  7273. ' <conf$$subs.awk | sed '
  7274. /^[^""]/{
  7275. N
  7276. s/\n//
  7277. }
  7278. ' >>$CONFIG_STATUS || ac_write_fail=1
  7279. rm -f conf$$subs.awk
  7280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7281. _ACAWK
  7282. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7283. for (key in S) S_is_set[key] = 1
  7284. FS = ""
  7285. \$ac_cs_awk_pipe_init
  7286. }
  7287. {
  7288. line = $ 0
  7289. nfields = split(line, field, "@")
  7290. substed = 0
  7291. len = length(field[1])
  7292. for (i = 2; i < nfields; i++) {
  7293. key = field[i]
  7294. keylen = length(key)
  7295. if (S_is_set[key]) {
  7296. value = S[key]
  7297. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7298. len += length(value) + length(field[++i])
  7299. substed = 1
  7300. } else
  7301. len += 1 + keylen
  7302. }
  7303. if (nfields == 3 && !substed) {
  7304. key = field[2]
  7305. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  7306. \$ac_cs_awk_read_file
  7307. next
  7308. }
  7309. }
  7310. print line
  7311. }
  7312. \$ac_cs_awk_pipe_fini
  7313. _ACAWK
  7314. _ACEOF
  7315. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7316. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7317. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7318. else
  7319. cat
  7320. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7321. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  7322. _ACEOF
  7323. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7324. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7325. # trailing colons and then remove the whole line if VPATH becomes empty
  7326. # (actually we leave an empty line to preserve line numbers).
  7327. if test "x$srcdir" = x.; then
  7328. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7329. s/:*\$(srcdir):*/:/
  7330. s/:*\${srcdir}:*/:/
  7331. s/:*@srcdir@:*/:/
  7332. s/^\([^=]*=[ ]*\):*/\1/
  7333. s/:*$//
  7334. s/^[^=]*=[ ]*$//
  7335. }'
  7336. fi
  7337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7338. fi # test -n "$CONFIG_FILES"
  7339. # Set up the scripts for CONFIG_HEADERS section.
  7340. # No need to generate them if there are no CONFIG_HEADERS.
  7341. # This happens for instance with `./config.status Makefile'.
  7342. if test -n "$CONFIG_HEADERS"; then
  7343. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7344. BEGIN {
  7345. _ACEOF
  7346. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7347. # here-document in config.status, that substitutes the proper values into
  7348. # config.h.in to produce config.h.
  7349. # Create a delimiter string that does not exist in confdefs.h, to ease
  7350. # handling of long lines.
  7351. ac_delim='%!_!# '
  7352. for ac_last_try in false false :; do
  7353. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7354. if test -z "$ac_t"; then
  7355. break
  7356. elif $ac_last_try; then
  7357. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  7358. else
  7359. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7360. fi
  7361. done
  7362. # For the awk script, D is an array of macro values keyed by name,
  7363. # likewise P contains macro parameters if any. Preserve backslash
  7364. # newline sequences.
  7365. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7366. sed -n '
  7367. s/.\{148\}/&'"$ac_delim"'/g
  7368. t rset
  7369. :rset
  7370. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7371. t def
  7372. d
  7373. :def
  7374. s/\\$//
  7375. t bsnl
  7376. s/["\\]/\\&/g
  7377. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7378. D["\1"]=" \3"/p
  7379. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7380. d
  7381. :bsnl
  7382. s/["\\]/\\&/g
  7383. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7384. D["\1"]=" \3\\\\\\n"\\/p
  7385. t cont
  7386. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7387. t cont
  7388. d
  7389. :cont
  7390. n
  7391. s/.\{148\}/&'"$ac_delim"'/g
  7392. t clear
  7393. :clear
  7394. s/\\$//
  7395. t bsnlc
  7396. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7397. d
  7398. :bsnlc
  7399. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7400. b cont
  7401. ' <confdefs.h | sed '
  7402. s/'"$ac_delim"'/"\\\
  7403. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7404. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7405. for (key in D) D_is_set[key] = 1
  7406. FS = ""
  7407. }
  7408. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7409. line = \$ 0
  7410. split(line, arg, " ")
  7411. if (arg[1] == "#") {
  7412. defundef = arg[2]
  7413. mac1 = arg[3]
  7414. } else {
  7415. defundef = substr(arg[1], 2)
  7416. mac1 = arg[2]
  7417. }
  7418. split(mac1, mac2, "(") #)
  7419. macro = mac2[1]
  7420. prefix = substr(line, 1, index(line, defundef) - 1)
  7421. if (D_is_set[macro]) {
  7422. # Preserve the white space surrounding the "#".
  7423. print prefix "define", macro P[macro] D[macro]
  7424. next
  7425. } else {
  7426. # Replace #undef with comments. This is necessary, for example,
  7427. # in the case of _POSIX_SOURCE, which is predefined and required
  7428. # on some systems where configure will not decide to define it.
  7429. if (defundef == "undef") {
  7430. print "/*", prefix defundef, macro, "*/"
  7431. next
  7432. }
  7433. }
  7434. }
  7435. { print }
  7436. _ACAWK
  7437. _ACEOF
  7438. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7439. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  7440. fi # test -n "$CONFIG_HEADERS"
  7441. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7442. shift
  7443. for ac_tag
  7444. do
  7445. case $ac_tag in
  7446. :[FHLC]) ac_mode=$ac_tag; continue;;
  7447. esac
  7448. case $ac_mode$ac_tag in
  7449. :[FHL]*:*);;
  7450. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7451. :[FH]-) ac_tag=-:-;;
  7452. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7453. esac
  7454. ac_save_IFS=$IFS
  7455. IFS=:
  7456. set x $ac_tag
  7457. IFS=$ac_save_IFS
  7458. shift
  7459. ac_file=$1
  7460. shift
  7461. case $ac_mode in
  7462. :L) ac_source=$1;;
  7463. :[FH])
  7464. ac_file_inputs=
  7465. for ac_f
  7466. do
  7467. case $ac_f in
  7468. -) ac_f="$tmp/stdin";;
  7469. *) # Look for the file first in the build tree, then in the source tree
  7470. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7471. # because $ac_f cannot contain `:'.
  7472. test -f "$ac_f" ||
  7473. case $ac_f in
  7474. [\\/$]*) false;;
  7475. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7476. esac ||
  7477. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7478. esac
  7479. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7480. as_fn_append ac_file_inputs " '$ac_f'"
  7481. done
  7482. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7483. # use $as_me), people would be surprised to read:
  7484. # /* config.h. Generated by config.status. */
  7485. configure_input='Generated from '`
  7486. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7487. `' by configure.'
  7488. if test x"$ac_file" != x-; then
  7489. configure_input="$ac_file. $configure_input"
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7491. $as_echo "$as_me: creating $ac_file" >&6;}
  7492. fi
  7493. # Neutralize special characters interpreted by sed in replacement strings.
  7494. case $configure_input in #(
  7495. *\&* | *\|* | *\\* )
  7496. ac_sed_conf_input=`$as_echo "$configure_input" |
  7497. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7498. *) ac_sed_conf_input=$configure_input;;
  7499. esac
  7500. case $ac_tag in
  7501. *:-:* | *:-) cat >"$tmp/stdin" \
  7502. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  7503. esac
  7504. ;;
  7505. esac
  7506. ac_dir=`$as_dirname -- "$ac_file" ||
  7507. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7508. X"$ac_file" : 'X\(//\)[^/]' \| \
  7509. X"$ac_file" : 'X\(//\)$' \| \
  7510. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7511. $as_echo X"$ac_file" |
  7512. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7513. s//\1/
  7514. q
  7515. }
  7516. /^X\(\/\/\)[^/].*/{
  7517. s//\1/
  7518. q
  7519. }
  7520. /^X\(\/\/\)$/{
  7521. s//\1/
  7522. q
  7523. }
  7524. /^X\(\/\).*/{
  7525. s//\1/
  7526. q
  7527. }
  7528. s/.*/./; q'`
  7529. as_dir="$ac_dir"; as_fn_mkdir_p
  7530. ac_builddir=.
  7531. case "$ac_dir" in
  7532. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7533. *)
  7534. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7535. # A ".." for each directory in $ac_dir_suffix.
  7536. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7537. case $ac_top_builddir_sub in
  7538. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7539. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7540. esac ;;
  7541. esac
  7542. ac_abs_top_builddir=$ac_pwd
  7543. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7544. # for backward compatibility:
  7545. ac_top_builddir=$ac_top_build_prefix
  7546. case $srcdir in
  7547. .) # We are building in place.
  7548. ac_srcdir=.
  7549. ac_top_srcdir=$ac_top_builddir_sub
  7550. ac_abs_top_srcdir=$ac_pwd ;;
  7551. [\\/]* | ?:[\\/]* ) # Absolute name.
  7552. ac_srcdir=$srcdir$ac_dir_suffix;
  7553. ac_top_srcdir=$srcdir
  7554. ac_abs_top_srcdir=$srcdir ;;
  7555. *) # Relative name.
  7556. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7557. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7558. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7559. esac
  7560. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7561. case $ac_mode in
  7562. :F)
  7563. #
  7564. # CONFIG_FILE
  7565. #
  7566. case $INSTALL in
  7567. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7568. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7569. esac
  7570. _ACEOF
  7571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7572. # If the template does not know about datarootdir, expand it.
  7573. # FIXME: This hack should be removed a few years after 2.60.
  7574. ac_datarootdir_hack=; ac_datarootdir_seen=
  7575. ac_sed_dataroot='
  7576. /datarootdir/ {
  7577. p
  7578. q
  7579. }
  7580. /@datadir@/p
  7581. /@docdir@/p
  7582. /@infodir@/p
  7583. /@localedir@/p
  7584. /@mandir@/p'
  7585. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7586. *datarootdir*) ac_datarootdir_seen=yes;;
  7587. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7589. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7590. _ACEOF
  7591. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7592. ac_datarootdir_hack='
  7593. s&@datadir@&$datadir&g
  7594. s&@docdir@&$docdir&g
  7595. s&@infodir@&$infodir&g
  7596. s&@localedir@&$localedir&g
  7597. s&@mandir@&$mandir&g
  7598. s&\\\${datarootdir}&$datarootdir&g' ;;
  7599. esac
  7600. _ACEOF
  7601. # Neutralize VPATH when `$srcdir' = `.'.
  7602. # Shell code in configure.ac might set extrasub.
  7603. # FIXME: do we really want to maintain this feature?
  7604. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7605. ac_sed_extra="$ac_vpsub
  7606. $extrasub
  7607. _ACEOF
  7608. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7609. :t
  7610. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7611. s|@configure_input@|$ac_sed_conf_input|;t t
  7612. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7613. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7614. s&@srcdir@&$ac_srcdir&;t t
  7615. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7616. s&@top_srcdir@&$ac_top_srcdir&;t t
  7617. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7618. s&@builddir@&$ac_builddir&;t t
  7619. s&@abs_builddir@&$ac_abs_builddir&;t t
  7620. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7621. s&@INSTALL@&$ac_INSTALL&;t t
  7622. $ac_datarootdir_hack
  7623. "
  7624. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  7625. if $ac_cs_awk_getline; then
  7626. $AWK -f "$tmp/subs.awk"
  7627. else
  7628. $AWK -f "$tmp/subs.awk" | $SHELL
  7629. fi >$tmp/out \
  7630. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7631. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7632. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7633. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7635. which seems to be undefined. Please make sure it is defined." >&5
  7636. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7637. which seems to be undefined. Please make sure it is defined." >&2;}
  7638. rm -f "$tmp/stdin"
  7639. case $ac_file in
  7640. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7641. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7642. esac \
  7643. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7644. ;;
  7645. :H)
  7646. #
  7647. # CONFIG_HEADER
  7648. #
  7649. if test x"$ac_file" != x-; then
  7650. {
  7651. $as_echo "/* $configure_input */" \
  7652. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7653. } >"$tmp/config.h" \
  7654. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7655. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7657. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7658. else
  7659. rm -f "$ac_file"
  7660. mv "$tmp/config.h" "$ac_file" \
  7661. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7662. fi
  7663. else
  7664. $as_echo "/* $configure_input */" \
  7665. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7666. || as_fn_error "could not create -" "$LINENO" 5
  7667. fi
  7668. ;;
  7669. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7670. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7671. ;;
  7672. esac
  7673. case $ac_file$ac_mode in
  7674. "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  7675. if test -n "$CONFIG_FILES"; then
  7676. if test -n "${with_target_subdir}"; then
  7677. # FIXME: We shouldn't need to set ac_file
  7678. ac_file=Makefile
  7679. LD="${ORIGINAL_LD_FOR_MULTILIBS}"
  7680. . ${libiberty_topdir}/config-ml.in
  7681. fi
  7682. fi ;;
  7683. esac
  7684. done # for ac_tag
  7685. as_fn_exit 0
  7686. _ACEOF
  7687. ac_clean_files=$ac_clean_files_save
  7688. test $ac_write_fail = 0 ||
  7689. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7690. # configure is writing to config.log, and then calls config.status.
  7691. # config.status does its own redirection, appending to config.log.
  7692. # Unfortunately, on DOS this fails, as config.log is still kept open
  7693. # by configure, so config.status won't be able to write to it; its
  7694. # output is simply discarded. So we exec the FD to /dev/null,
  7695. # effectively closing config.log, so it can be properly (re)opened and
  7696. # appended to by config.status. When coming back to configure, we
  7697. # need to make the FD available again.
  7698. if test "$no_create" != yes; then
  7699. ac_cs_success=:
  7700. ac_config_status_args=
  7701. test "$silent" = yes &&
  7702. ac_config_status_args="$ac_config_status_args --quiet"
  7703. exec 5>/dev/null
  7704. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7705. exec 5>>config.log
  7706. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7707. # would make configure fail if this is the last instruction.
  7708. $ac_cs_success || as_fn_exit $?
  7709. fi
  7710. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7712. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7713. fi