1
0

configure 185 KB

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