configure 193 KB

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