configure 191 KB

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