output.0 157 KB

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