patch-configure.orig 104 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659
  1. --- valgrind-3.7.0.orig/configure 2011-11-05 12:24:39.000000000 +0100
  2. +++ valgrind-3.7.0/configure 2013-07-23 12:28:16.000000000 +0200
  3. @@ -1,13 +1,11 @@
  4. #! /bin/sh
  5. # Guess values for system-dependent variables and create Makefiles.
  6. -# Generated by GNU Autoconf 2.65 for Valgrind 3.7.0.
  7. +# Generated by GNU Autoconf 2.69 for Valgrind 3.7.0.
  8. #
  9. # Report bugs to <valgrind-users@lists.sourceforge.net>.
  10. #
  11. #
  12. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  14. -# Inc.
  15. +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  16. #
  17. #
  18. # This configure script is free software; the Free Software Foundation
  19. @@ -91,6 +89,7 @@ fi
  20. IFS=" "" $as_nl"
  21. # Find who we are. Look in the path if we contain no directory separator.
  22. +as_myself=
  23. case $0 in #((
  24. *[\\/]* ) as_myself=$0 ;;
  25. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26. @@ -135,6 +134,31 @@ export LANGUAGE
  27. # CDPATH.
  28. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29. +# Use a proper internal environment variable to ensure we don't fall
  30. + # into an infinite loop, continuously re-executing ourselves.
  31. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  32. + _as_can_reexec=no; export _as_can_reexec;
  33. + # We cannot yet assume a decent shell, so we have to provide a
  34. +# neutralization value for shells without unset; and this also
  35. +# works around shells that cannot unset nonexistent variables.
  36. +# Preserve -v and -x to the replacement shell.
  37. +BASH_ENV=/dev/null
  38. +ENV=/dev/null
  39. +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  40. +case $- in # ((((
  41. + *v*x* | *x*v* ) as_opts=-vx ;;
  42. + *v* ) as_opts=-v ;;
  43. + *x* ) as_opts=-x ;;
  44. + * ) as_opts= ;;
  45. +esac
  46. +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  47. +# Admittedly, this is quite paranoid, since all the known shells bail
  48. +# out after a failed `exec'.
  49. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  50. +as_fn_exit 255
  51. + fi
  52. + # We don't want this to propagate to other subprocesses.
  53. + { _as_can_reexec=; unset _as_can_reexec;}
  54. if test "x$CONFIG_SHELL" = x; then
  55. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  56. emulate sh
  57. @@ -168,7 +192,8 @@ if ( set x; as_fn_ret_success y && test
  58. else
  59. exitcode=1; echo positional parameters were not saved.
  60. fi
  61. -test x\$exitcode = x0 || exit 1"
  62. +test x\$exitcode = x0 || exit 1
  63. +test -x / || exit 1"
  64. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  65. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  66. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  67. @@ -213,14 +238,25 @@ IFS=$as_save_IFS
  68. if test "x$CONFIG_SHELL" != x; then :
  69. - # We cannot yet assume a decent shell, so we have to provide a
  70. - # neutralization value for shells without unset; and this also
  71. - # works around shells that cannot unset nonexistent variables.
  72. - BASH_ENV=/dev/null
  73. - ENV=/dev/null
  74. - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  75. - export CONFIG_SHELL
  76. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  77. + export CONFIG_SHELL
  78. + # We cannot yet assume a decent shell, so we have to provide a
  79. +# neutralization value for shells without unset; and this also
  80. +# works around shells that cannot unset nonexistent variables.
  81. +# Preserve -v and -x to the replacement shell.
  82. +BASH_ENV=/dev/null
  83. +ENV=/dev/null
  84. +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  85. +case $- in # ((((
  86. + *v*x* | *x*v* ) as_opts=-vx ;;
  87. + *v* ) as_opts=-v ;;
  88. + *x* ) as_opts=-x ;;
  89. + * ) as_opts= ;;
  90. +esac
  91. +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  92. +# Admittedly, this is quite paranoid, since all the known shells bail
  93. +# out after a failed `exec'.
  94. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  95. +exit 255
  96. fi
  97. if test x$as_have_required = xno; then :
  98. @@ -319,10 +355,18 @@ $as_echo X"$as_dir" |
  99. test -d "$as_dir" && break
  100. done
  101. test -z "$as_dirs" || eval "mkdir $as_dirs"
  102. - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  103. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  104. } # as_fn_mkdir_p
  105. +
  106. +# as_fn_executable_p FILE
  107. +# -----------------------
  108. +# Test if FILE is an executable regular file.
  109. +as_fn_executable_p ()
  110. +{
  111. + test -f "$1" && test -x "$1"
  112. +} # as_fn_executable_p
  113. # as_fn_append VAR VALUE
  114. # ----------------------
  115. # Append the text in VALUE to the end of the definition contained in VAR. Take
  116. @@ -359,19 +403,19 @@ else
  117. fi # as_fn_arith
  118. -# as_fn_error ERROR [LINENO LOG_FD]
  119. -# ---------------------------------
  120. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  121. +# ----------------------------------------
  122. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  123. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  124. -# script with status $?, using 1 if that was 0.
  125. +# script with STATUS, using 1 if that was 0.
  126. as_fn_error ()
  127. {
  128. - as_status=$?; test $as_status -eq 0 && as_status=1
  129. - if test "$3"; then
  130. - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  131. - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  132. + as_status=$1; test $as_status -eq 0 && as_status=1
  133. + if test "$4"; then
  134. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  135. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  136. fi
  137. - $as_echo "$as_me: error: $1" >&2
  138. + $as_echo "$as_me: error: $2" >&2
  139. as_fn_exit $as_status
  140. } # as_fn_error
  141. @@ -444,6 +488,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
  142. chmod +x "$as_me.lineno" ||
  143. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  144. + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  145. + # already done that, so ensure we don't try to do so again and fall
  146. + # in an infinite loop. This has already happened in practice.
  147. + _as_can_reexec=no; export _as_can_reexec
  148. # Don't try to exec as it changes $[0], causing all sort of problems
  149. # (the dirname of $[0] is not the place where we might find the
  150. # original and so on. Autoconf is especially sensitive to this).
  151. @@ -478,16 +526,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  152. # ... but there are two gotchas:
  153. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  154. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  155. - # In both cases, we have to default to `cp -p'.
  156. + # In both cases, we have to default to `cp -pR'.
  157. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  158. - as_ln_s='cp -p'
  159. + as_ln_s='cp -pR'
  160. elif ln conf$$.file conf$$ 2>/dev/null; then
  161. as_ln_s=ln
  162. else
  163. - as_ln_s='cp -p'
  164. + as_ln_s='cp -pR'
  165. fi
  166. else
  167. - as_ln_s='cp -p'
  168. + as_ln_s='cp -pR'
  169. fi
  170. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  171. rmdir conf$$.dir 2>/dev/null
  172. @@ -499,28 +547,8 @@ else
  173. as_mkdir_p=false
  174. fi
  175. -if test -x / >/dev/null 2>&1; then
  176. - as_test_x='test -x'
  177. -else
  178. - if ls -dL / >/dev/null 2>&1; then
  179. - as_ls_L_option=L
  180. - else
  181. - as_ls_L_option=
  182. - fi
  183. - as_test_x='
  184. - eval sh -c '\''
  185. - if test -d "$1"; then
  186. - test -d "$1/.";
  187. - else
  188. - case $1 in #(
  189. - -*)set "./$1";;
  190. - esac;
  191. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  192. - ???[sx]*):;;*)false;;esac;fi
  193. - '\'' sh
  194. - '
  195. -fi
  196. -as_executable_p=$as_test_x
  197. +as_test_x='test -x'
  198. +as_executable_p=as_fn_executable_p
  199. # Sed expression to map a string onto a valid CPP name.
  200. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  201. @@ -533,7 +561,7 @@ test -n "$DJDIR" || exec 7<&0 </dev/null
  202. exec 6>&1
  203. # Name of the host.
  204. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  205. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  206. # so uname gets run too.
  207. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  208. @@ -595,9 +623,7 @@ ac_includes_default="\
  209. #endif"
  210. ac_header_list=
  211. -ac_subst_vars='am__EXEEXT_FALSE
  212. -am__EXEEXT_TRUE
  213. -LTLIBOBJS
  214. +ac_subst_vars='LTLIBOBJS
  215. HAVE_BUILTIN_ATOMIC_CXX_FALSE
  216. HAVE_BUILTIN_ATOMIC_CXX_TRUE
  217. HAVE_BUILTIN_ATOMIC_FALSE
  218. @@ -700,6 +726,7 @@ VGCONF_PLATFORM_PRI_CAPS
  219. VGCONF_ARCH_SEC
  220. VGCONF_ARCH_PRI
  221. VGCONF_OS
  222. +VGCONF_PLATFORM_ARM_ARCH
  223. host_os
  224. host_vendor
  225. host_cpu
  226. @@ -896,8 +923,9 @@ do
  227. fi
  228. case $ac_option in
  229. - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  230. - *) ac_optarg=yes ;;
  231. + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  232. + *=) ac_optarg= ;;
  233. + *) ac_optarg=yes ;;
  234. esac
  235. # Accept the important Cygnus configure options, so we can diagnose typos.
  236. @@ -942,7 +970,7 @@ do
  237. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  238. # Reject names that are not valid shell variable names.
  239. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  240. - as_fn_error "invalid feature name: $ac_useropt"
  241. + as_fn_error $? "invalid feature name: $ac_useropt"
  242. ac_useropt_orig=$ac_useropt
  243. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  244. case $ac_user_opts in
  245. @@ -968,7 +996,7 @@ do
  246. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  247. # Reject names that are not valid shell variable names.
  248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  249. - as_fn_error "invalid feature name: $ac_useropt"
  250. + as_fn_error $? "invalid feature name: $ac_useropt"
  251. ac_useropt_orig=$ac_useropt
  252. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  253. case $ac_user_opts in
  254. @@ -1172,7 +1200,7 @@ do
  255. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  256. # Reject names that are not valid shell variable names.
  257. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  258. - as_fn_error "invalid package name: $ac_useropt"
  259. + as_fn_error $? "invalid package name: $ac_useropt"
  260. ac_useropt_orig=$ac_useropt
  261. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  262. case $ac_user_opts in
  263. @@ -1188,7 +1216,7 @@ do
  264. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  265. # Reject names that are not valid shell variable names.
  266. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  267. - as_fn_error "invalid package name: $ac_useropt"
  268. + as_fn_error $? "invalid package name: $ac_useropt"
  269. ac_useropt_orig=$ac_useropt
  270. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  271. case $ac_user_opts in
  272. @@ -1218,8 +1246,8 @@ do
  273. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  274. x_libraries=$ac_optarg ;;
  275. - -*) as_fn_error "unrecognized option: \`$ac_option'
  276. -Try \`$0 --help' for more information."
  277. + -*) as_fn_error $? "unrecognized option: \`$ac_option'
  278. +Try \`$0 --help' for more information"
  279. ;;
  280. *=*)
  281. @@ -1227,7 +1255,7 @@ Try \`$0 --help' for more information."
  282. # Reject names that are not valid shell variable names.
  283. case $ac_envvar in #(
  284. '' | [0-9]* | *[!_$as_cr_alnum]* )
  285. - as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  286. + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  287. esac
  288. eval $ac_envvar=\$ac_optarg
  289. export $ac_envvar ;;
  290. @@ -1237,7 +1265,7 @@ Try \`$0 --help' for more information."
  291. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  292. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  293. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  294. - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  295. + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  296. ;;
  297. esac
  298. @@ -1245,13 +1273,13 @@ done
  299. if test -n "$ac_prev"; then
  300. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  301. - as_fn_error "missing argument to $ac_option"
  302. + as_fn_error $? "missing argument to $ac_option"
  303. fi
  304. if test -n "$ac_unrecognized_opts"; then
  305. case $enable_option_checking in
  306. no) ;;
  307. - fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  308. + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  309. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  310. esac
  311. fi
  312. @@ -1274,7 +1302,7 @@ do
  313. [\\/$]* | ?:[\\/]* ) continue;;
  314. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  315. esac
  316. - as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  317. + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  318. done
  319. # There might be people who depend on the old broken behavior: `$host'
  320. @@ -1288,8 +1316,6 @@ target=$target_alias
  321. if test "x$host_alias" != x; then
  322. if test "x$build_alias" = x; then
  323. cross_compiling=maybe
  324. - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  325. - If a cross compiler is detected then cross compile mode will be used." >&2
  326. elif test "x$build_alias" != "x$host_alias"; then
  327. cross_compiling=yes
  328. fi
  329. @@ -1304,9 +1330,9 @@ test "$silent" = yes && exec 6>/dev/null
  330. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  331. ac_ls_di=`ls -di .` &&
  332. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  333. - as_fn_error "working directory cannot be determined"
  334. + as_fn_error $? "working directory cannot be determined"
  335. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  336. - as_fn_error "pwd does not report name of working directory"
  337. + as_fn_error $? "pwd does not report name of working directory"
  338. # Find the source files, if location was not specified.
  339. @@ -1345,11 +1371,11 @@ else
  340. fi
  341. if test ! -r "$srcdir/$ac_unique_file"; then
  342. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  343. - as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  344. + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  345. fi
  346. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  347. ac_abs_confdir=`(
  348. - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  349. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  350. pwd)`
  351. # When building in place, set srcdir=.
  352. if test "$ac_abs_confdir" = "$ac_pwd"; then
  353. @@ -1389,7 +1415,7 @@ Configuration:
  354. --help=short display options specific to this package
  355. --help=recursive display the short help of all the included packages
  356. -V, --version display version information and exit
  357. - -q, --quiet, --silent do not print \`checking...' messages
  358. + -q, --quiet, --silent do not print \`checking ...' messages
  359. --cache-file=FILE cache test results in FILE [disabled]
  360. -C, --config-cache alias for \`--cache-file=config.cache'
  361. -n, --no-create do not create output files
  362. @@ -1550,9 +1576,9 @@ test -n "$ac_init_help" && exit $ac_stat
  363. if $ac_init_version; then
  364. cat <<\_ACEOF
  365. Valgrind configure 3.7.0
  366. -generated by GNU Autoconf 2.65
  367. +generated by GNU Autoconf 2.69
  368. -Copyright (C) 2009 Free Software Foundation, Inc.
  369. +Copyright (C) 2012 Free Software Foundation, Inc.
  370. This configure script is free software; the Free Software Foundation
  371. gives unlimited permission to copy, distribute and modify it.
  372. _ACEOF
  373. @@ -1596,7 +1622,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
  374. ac_retval=1
  375. fi
  376. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  377. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  378. as_fn_set_status $ac_retval
  379. } # ac_fn_c_try_compile
  380. @@ -1622,7 +1648,7 @@ $as_echo "$ac_try_echo"; } >&5
  381. mv -f conftest.er1 conftest.err
  382. fi
  383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  384. - test $ac_status = 0; } >/dev/null && {
  385. + test $ac_status = 0; } > conftest.i && {
  386. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  387. test ! -s conftest.err
  388. }; then :
  389. @@ -1633,7 +1659,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
  390. ac_retval=1
  391. fi
  392. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  393. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  394. as_fn_set_status $ac_retval
  395. } # ac_fn_c_try_cpp
  396. @@ -1671,7 +1697,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
  397. ac_retval=1
  398. fi
  399. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  400. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  401. as_fn_set_status $ac_retval
  402. } # ac_fn_cxx_try_compile
  403. @@ -1703,7 +1729,7 @@ $as_echo "$ac_try_echo"; } >&5
  404. test ! -s conftest.err
  405. } && test -s conftest$ac_exeext && {
  406. test "$cross_compiling" = yes ||
  407. - $as_test_x conftest$ac_exeext
  408. + test -x conftest$ac_exeext
  409. }; then :
  410. ac_retval=0
  411. else
  412. @@ -1717,7 +1743,7 @@ fi
  413. # interfere with the next link command; also delete a directory that is
  414. # left behind by Apple's compiler. We do this before executing the actions.
  415. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  416. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  417. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  418. as_fn_set_status $ac_retval
  419. } # ac_fn_c_try_link
  420. @@ -1730,10 +1756,10 @@ fi
  421. ac_fn_c_check_header_mongrel ()
  422. {
  423. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  424. - if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  425. + if eval \${$3+:} false; then :
  426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  427. $as_echo_n "checking for $2... " >&6; }
  428. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  429. +if eval \${$3+:} false; then :
  430. $as_echo_n "(cached) " >&6
  431. fi
  432. eval ac_res=\$$3
  433. @@ -1769,7 +1795,7 @@ if ac_fn_c_try_cpp "$LINENO"; then :
  434. else
  435. ac_header_preproc=no
  436. fi
  437. -rm -f conftest.err conftest.$ac_ext
  438. +rm -f conftest.err conftest.i conftest.$ac_ext
  439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  440. $as_echo "$ac_header_preproc" >&6; }
  441. @@ -1792,17 +1818,15 @@ $as_echo "$as_me: WARNING: $2: see the A
  442. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  444. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  445. -( cat <<\_ASBOX
  446. -## --------------------------------------------------- ##
  447. +( $as_echo "## --------------------------------------------------- ##
  448. ## Report this to valgrind-users@lists.sourceforge.net ##
  449. -## --------------------------------------------------- ##
  450. -_ASBOX
  451. +## --------------------------------------------------- ##"
  452. ) | sed "s/^/$as_me: WARNING: /" >&2
  453. ;;
  454. esac
  455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  456. $as_echo_n "checking for $2... " >&6; }
  457. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  458. +if eval \${$3+:} false; then :
  459. $as_echo_n "(cached) " >&6
  460. else
  461. eval "$3=\$ac_header_compiler"
  462. @@ -1811,7 +1835,7 @@ eval ac_res=\$$3
  463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  464. $as_echo "$ac_res" >&6; }
  465. fi
  466. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  467. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  468. } # ac_fn_c_check_header_mongrel
  469. @@ -1852,7 +1876,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
  470. ac_retval=$ac_status
  471. fi
  472. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  473. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  474. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  475. as_fn_set_status $ac_retval
  476. } # ac_fn_c_try_run
  477. @@ -1866,7 +1890,7 @@ ac_fn_c_check_header_compile ()
  478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  480. $as_echo_n "checking for $2... " >&6; }
  481. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  482. +if eval \${$3+:} false; then :
  483. $as_echo_n "(cached) " >&6
  484. else
  485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  486. @@ -1884,7 +1908,7 @@ fi
  487. eval ac_res=\$$3
  488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  489. $as_echo "$ac_res" >&6; }
  490. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  491. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  492. } # ac_fn_c_check_header_compile
  493. @@ -1897,7 +1921,7 @@ ac_fn_c_check_member ()
  494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  496. $as_echo_n "checking for $2.$3... " >&6; }
  497. -if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  498. +if eval \${$4+:} false; then :
  499. $as_echo_n "(cached) " >&6
  500. else
  501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  502. @@ -1941,7 +1965,7 @@ fi
  503. eval ac_res=\$$4
  504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  505. $as_echo "$ac_res" >&6; }
  506. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  507. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  508. } # ac_fn_c_check_member
  509. @@ -1954,7 +1978,7 @@ ac_fn_c_check_type ()
  510. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  512. $as_echo_n "checking for $2... " >&6; }
  513. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  514. +if eval \${$3+:} false; then :
  515. $as_echo_n "(cached) " >&6
  516. else
  517. eval "$3=no"
  518. @@ -1995,7 +2019,7 @@ fi
  519. eval ac_res=\$$3
  520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  521. $as_echo "$ac_res" >&6; }
  522. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  523. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  524. } # ac_fn_c_check_type
  525. @@ -2007,7 +2031,7 @@ ac_fn_c_check_func ()
  526. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  528. $as_echo_n "checking for $2... " >&6; }
  529. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  530. +if eval \${$3+:} false; then :
  531. $as_echo_n "(cached) " >&6
  532. else
  533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  534. @@ -2062,7 +2086,7 @@ fi
  535. eval ac_res=\$$3
  536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  537. $as_echo "$ac_res" >&6; }
  538. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  539. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  540. } # ac_fn_c_check_func
  541. @@ -2093,7 +2117,7 @@ $as_echo "$ac_try_echo"; } >&5
  542. test ! -s conftest.err
  543. } && test -s conftest$ac_exeext && {
  544. test "$cross_compiling" = yes ||
  545. - $as_test_x conftest$ac_exeext
  546. + test -x conftest$ac_exeext
  547. }; then :
  548. ac_retval=0
  549. else
  550. @@ -2107,7 +2131,7 @@ fi
  551. # interfere with the next link command; also delete a directory that is
  552. # left behind by Apple's compiler. We do this before executing the actions.
  553. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  554. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  555. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  556. as_fn_set_status $ac_retval
  557. } # ac_fn_cxx_try_link
  558. @@ -2116,7 +2140,7 @@ This file contains any messages produced
  559. running configure, to aid debugging if configure makes a mistake.
  560. It was created by Valgrind $as_me 3.7.0, which was
  561. -generated by GNU Autoconf 2.65. Invocation command line was
  562. +generated by GNU Autoconf 2.69. Invocation command line was
  563. $ $0 $@
  564. @@ -2226,11 +2250,9 @@ trap 'exit_status=$?
  565. {
  566. echo
  567. - cat <<\_ASBOX
  568. -## ---------------- ##
  569. + $as_echo "## ---------------- ##
  570. ## Cache variables. ##
  571. -## ---------------- ##
  572. -_ASBOX
  573. +## ---------------- ##"
  574. echo
  575. # The following way of writing the cache mishandles newlines in values,
  576. (
  577. @@ -2264,11 +2286,9 @@ $as_echo "$as_me: WARNING: cache variabl
  578. )
  579. echo
  580. - cat <<\_ASBOX
  581. -## ----------------- ##
  582. + $as_echo "## ----------------- ##
  583. ## Output variables. ##
  584. -## ----------------- ##
  585. -_ASBOX
  586. +## ----------------- ##"
  587. echo
  588. for ac_var in $ac_subst_vars
  589. do
  590. @@ -2281,11 +2301,9 @@ _ASBOX
  591. echo
  592. if test -n "$ac_subst_files"; then
  593. - cat <<\_ASBOX
  594. -## ------------------- ##
  595. + $as_echo "## ------------------- ##
  596. ## File substitutions. ##
  597. -## ------------------- ##
  598. -_ASBOX
  599. +## ------------------- ##"
  600. echo
  601. for ac_var in $ac_subst_files
  602. do
  603. @@ -2299,11 +2317,9 @@ _ASBOX
  604. fi
  605. if test -s confdefs.h; then
  606. - cat <<\_ASBOX
  607. -## ----------- ##
  608. + $as_echo "## ----------- ##
  609. ## confdefs.h. ##
  610. -## ----------- ##
  611. -_ASBOX
  612. +## ----------- ##"
  613. echo
  614. cat confdefs.h
  615. echo
  616. @@ -2358,7 +2374,12 @@ _ACEOF
  617. ac_site_file1=NONE
  618. ac_site_file2=NONE
  619. if test -n "$CONFIG_SITE"; then
  620. - ac_site_file1=$CONFIG_SITE
  621. + # We do not want a PATH search for config.site.
  622. + case $CONFIG_SITE in #((
  623. + -*) ac_site_file1=./$CONFIG_SITE;;
  624. + */*) ac_site_file1=$CONFIG_SITE;;
  625. + *) ac_site_file1=./$CONFIG_SITE;;
  626. + esac
  627. elif test "x$prefix" != xNONE; then
  628. ac_site_file1=$prefix/share/config.site
  629. ac_site_file2=$prefix/etc/config.site
  630. @@ -2373,7 +2394,11 @@ do
  631. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  632. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  633. sed 's/^/| /' "$ac_site_file" >&5
  634. - . "$ac_site_file"
  635. + . "$ac_site_file" \
  636. + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  637. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  638. +as_fn_error $? "failed to load site script $ac_site_file
  639. +See \`config.log' for more details" "$LINENO" 5; }
  640. fi
  641. done
  642. @@ -2452,7 +2477,7 @@ if $ac_cache_corrupted; then
  643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  644. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  645. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  646. - as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  647. + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  648. fi
  649. ## -------------------- ##
  650. ## Main body of script. ##
  651. @@ -2468,20 +2493,26 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  652. ac_config_headers="$ac_config_headers config.h"
  653. -am__api_version='1.11'
  654. +am__api_version='1.10'
  655. ac_aux_dir=
  656. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  657. - for ac_t in install-sh install.sh shtool; do
  658. - if test -f "$ac_dir/$ac_t"; then
  659. - ac_aux_dir=$ac_dir
  660. - ac_install_sh="$ac_aux_dir/$ac_t -c"
  661. - break 2
  662. - fi
  663. - done
  664. + if test -f "$ac_dir/install-sh"; then
  665. + ac_aux_dir=$ac_dir
  666. + ac_install_sh="$ac_aux_dir/install-sh -c"
  667. + break
  668. + elif test -f "$ac_dir/install.sh"; then
  669. + ac_aux_dir=$ac_dir
  670. + ac_install_sh="$ac_aux_dir/install.sh -c"
  671. + break
  672. + elif test -f "$ac_dir/shtool"; then
  673. + ac_aux_dir=$ac_dir
  674. + ac_install_sh="$ac_aux_dir/shtool install -c"
  675. + break
  676. + fi
  677. done
  678. if test -z "$ac_aux_dir"; then
  679. - as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  680. + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  681. fi
  682. # These three variables are undocumented and unsupported,
  683. @@ -2510,7 +2541,7 @@ ac_configure="$SHELL $ac_aux_dir/configu
  684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  685. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  686. if test -z "$INSTALL"; then
  687. -if test "${ac_cv_path_install+set}" = set; then :
  688. +if ${ac_cv_path_install+:} false; then :
  689. $as_echo_n "(cached) " >&6
  690. else
  691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  692. @@ -2530,7 +2561,7 @@ case $as_dir/ in #((
  693. # by default.
  694. for ac_prog in ginstall scoinst install; do
  695. for ac_exec_ext in '' $ac_executable_extensions; do
  696. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  697. + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  698. if test $ac_prog = install &&
  699. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  700. # AIX install. It has an incompatible calling convention.
  701. @@ -2591,29 +2622,16 @@ $as_echo_n "checking whether build envir
  702. # Just in case
  703. sleep 1
  704. echo timestamp > conftest.file
  705. -# Reject unsafe characters in $srcdir or the absolute working directory
  706. -# name. Accept space and tab only in the latter.
  707. -am_lf='
  708. -'
  709. -case `pwd` in
  710. - *[\\\"\#\$\&\'\`$am_lf]*)
  711. - as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  712. -esac
  713. -case $srcdir in
  714. - *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  715. - as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  716. -esac
  717. -
  718. # Do `set' in a subshell so we don't clobber the current shell's
  719. # arguments. Must try -L first in case configure is actually a
  720. # symlink; some systems play weird games with the mod time of symlinks
  721. # (eg FreeBSD returns the mod time of the symlink's containing
  722. # directory).
  723. if (
  724. - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  725. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  726. if test "$*" = "X"; then
  727. # -L didn't work.
  728. - set X `ls -t "$srcdir/configure" conftest.file`
  729. + set X `ls -t $srcdir/configure conftest.file`
  730. fi
  731. rm -f conftest.file
  732. if test "$*" != "X $srcdir/configure conftest.file" \
  733. @@ -2623,7 +2641,7 @@ if (
  734. # if, for instance, CONFIG_SHELL is bash and it inherits a
  735. # broken ls alias from the environment. This has actually
  736. # happened. Such a system could not be considered "sane".
  737. - as_fn_error "ls -t appears to fail. Make sure there is not a broken
  738. + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  739. alias in your environment" "$LINENO" 5
  740. fi
  741. @@ -2633,7 +2651,7 @@ then
  742. # Ok.
  743. :
  744. else
  745. - as_fn_error "newly created file is older than distributed files!
  746. + as_fn_error $? "newly created file is older than distributed files!
  747. Check your system clock" "$LINENO" 5
  748. fi
  749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  750. @@ -2651,14 +2669,7 @@ program_transform_name=`$as_echo "$progr
  751. # expand $ac_aux_dir to an absolute path
  752. am_aux_dir=`cd $ac_aux_dir && pwd`
  753. -if test x"${MISSING+set}" != xset; then
  754. - case $am_aux_dir in
  755. - *\ * | *\ *)
  756. - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  757. - *)
  758. - MISSING="\${SHELL} $am_aux_dir/missing" ;;
  759. - esac
  760. -fi
  761. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  762. # Use eval to expand $SHELL
  763. if eval "$MISSING --run true"; then
  764. am_missing_run="$MISSING --run "
  765. @@ -2668,14 +2679,7 @@ else
  766. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  767. fi
  768. -if test x"${install_sh}" != xset; then
  769. - case $am_aux_dir in
  770. - *\ * | *\ *)
  771. - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  772. - *)
  773. - install_sh="\${SHELL} $am_aux_dir/install-sh"
  774. - esac
  775. -fi
  776. +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  777. # Installed binaries are usually stripped using `strip' when the user
  778. # run `make install-strip'. However `strip' might not be the right
  779. @@ -2687,7 +2691,7 @@ if test "$cross_compiling" != no; then
  780. set dummy ${ac_tool_prefix}strip; ac_word=$2
  781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  782. $as_echo_n "checking for $ac_word... " >&6; }
  783. -if test "${ac_cv_prog_STRIP+set}" = set; then :
  784. +if ${ac_cv_prog_STRIP+:} false; then :
  785. $as_echo_n "(cached) " >&6
  786. else
  787. if test -n "$STRIP"; then
  788. @@ -2699,7 +2703,7 @@ do
  789. IFS=$as_save_IFS
  790. test -z "$as_dir" && as_dir=.
  791. for ac_exec_ext in '' $ac_executable_extensions; do
  792. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  793. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  794. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  796. break 2
  797. @@ -2727,7 +2731,7 @@ if test -z "$ac_cv_prog_STRIP"; then
  798. set dummy strip; ac_word=$2
  799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  800. $as_echo_n "checking for $ac_word... " >&6; }
  801. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  802. +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  803. $as_echo_n "(cached) " >&6
  804. else
  805. if test -n "$ac_ct_STRIP"; then
  806. @@ -2739,7 +2743,7 @@ do
  807. IFS=$as_save_IFS
  808. test -z "$as_dir" && as_dir=.
  809. for ac_exec_ext in '' $ac_executable_extensions; do
  810. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  811. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  812. ac_cv_prog_ac_ct_STRIP="strip"
  813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  814. break 2
  815. @@ -2780,7 +2784,7 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c
  816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  817. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  818. if test -z "$MKDIR_P"; then
  819. - if test "${ac_cv_path_mkdir+set}" = set; then :
  820. + if ${ac_cv_path_mkdir+:} false; then :
  821. $as_echo_n "(cached) " >&6
  822. else
  823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  824. @@ -2790,7 +2794,7 @@ do
  825. test -z "$as_dir" && as_dir=.
  826. for ac_prog in mkdir gmkdir; do
  827. for ac_exec_ext in '' $ac_executable_extensions; do
  828. - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  829. + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  830. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  831. 'mkdir (GNU coreutils) '* | \
  832. 'mkdir (coreutils) '* | \
  833. @@ -2831,7 +2835,7 @@ do
  834. set dummy $ac_prog; ac_word=$2
  835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  836. $as_echo_n "checking for $ac_word... " >&6; }
  837. -if test "${ac_cv_prog_AWK+set}" = set; then :
  838. +if ${ac_cv_prog_AWK+:} false; then :
  839. $as_echo_n "(cached) " >&6
  840. else
  841. if test -n "$AWK"; then
  842. @@ -2843,7 +2847,7 @@ do
  843. IFS=$as_save_IFS
  844. test -z "$as_dir" && as_dir=.
  845. for ac_exec_ext in '' $ac_executable_extensions; do
  846. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  847. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  848. ac_cv_prog_AWK="$ac_prog"
  849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  850. break 2
  851. @@ -2871,7 +2875,7 @@ done
  852. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  853. set x ${MAKE-make}
  854. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  855. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  856. +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  857. $as_echo_n "(cached) " >&6
  858. else
  859. cat >conftest.make <<\_ACEOF
  860. @@ -2879,7 +2883,7 @@ SHELL = /bin/sh
  861. all:
  862. @echo '@@@%%%=$(MAKE)=@@@%%%'
  863. _ACEOF
  864. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  865. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  866. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  867. *@@@%%%=?*=@@@%%%*)
  868. eval ac_cv_prog_make_${ac_make}_set=yes;;
  869. @@ -2913,7 +2917,7 @@ if test "`cd $srcdir && pwd`" != "`pwd`"
  870. am__isrc=' -I$(srcdir)'
  871. # test to see if srcdir already configured
  872. if test -f $srcdir/config.status; then
  873. - as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  874. + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  875. fi
  876. fi
  877. @@ -2970,7 +2974,6 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
  878. -
  879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  880. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  881. # Check whether --enable-maintainer-mode was given.
  882. @@ -3020,7 +3023,7 @@ if test -n "$ac_tool_prefix"; then
  883. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  885. $as_echo_n "checking for $ac_word... " >&6; }
  886. -if test "${ac_cv_prog_CC+set}" = set; then :
  887. +if ${ac_cv_prog_CC+:} false; then :
  888. $as_echo_n "(cached) " >&6
  889. else
  890. if test -n "$CC"; then
  891. @@ -3032,7 +3035,7 @@ do
  892. IFS=$as_save_IFS
  893. test -z "$as_dir" && as_dir=.
  894. for ac_exec_ext in '' $ac_executable_extensions; do
  895. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  896. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  897. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  899. break 2
  900. @@ -3060,7 +3063,7 @@ if test -z "$ac_cv_prog_CC"; then
  901. set dummy gcc; ac_word=$2
  902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  903. $as_echo_n "checking for $ac_word... " >&6; }
  904. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  905. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  906. $as_echo_n "(cached) " >&6
  907. else
  908. if test -n "$ac_ct_CC"; then
  909. @@ -3072,7 +3075,7 @@ do
  910. IFS=$as_save_IFS
  911. test -z "$as_dir" && as_dir=.
  912. for ac_exec_ext in '' $ac_executable_extensions; do
  913. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  914. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  915. ac_cv_prog_ac_ct_CC="gcc"
  916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  917. break 2
  918. @@ -3113,7 +3116,7 @@ if test -z "$CC"; then
  919. set dummy ${ac_tool_prefix}cc; ac_word=$2
  920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  921. $as_echo_n "checking for $ac_word... " >&6; }
  922. -if test "${ac_cv_prog_CC+set}" = set; then :
  923. +if ${ac_cv_prog_CC+:} false; then :
  924. $as_echo_n "(cached) " >&6
  925. else
  926. if test -n "$CC"; then
  927. @@ -3125,7 +3128,7 @@ do
  928. IFS=$as_save_IFS
  929. test -z "$as_dir" && as_dir=.
  930. for ac_exec_ext in '' $ac_executable_extensions; do
  931. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  932. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  933. ac_cv_prog_CC="${ac_tool_prefix}cc"
  934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  935. break 2
  936. @@ -3153,7 +3156,7 @@ if test -z "$CC"; then
  937. set dummy cc; ac_word=$2
  938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  939. $as_echo_n "checking for $ac_word... " >&6; }
  940. -if test "${ac_cv_prog_CC+set}" = set; then :
  941. +if ${ac_cv_prog_CC+:} false; then :
  942. $as_echo_n "(cached) " >&6
  943. else
  944. if test -n "$CC"; then
  945. @@ -3166,7 +3169,7 @@ do
  946. IFS=$as_save_IFS
  947. test -z "$as_dir" && as_dir=.
  948. for ac_exec_ext in '' $ac_executable_extensions; do
  949. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  950. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  951. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  952. ac_prog_rejected=yes
  953. continue
  954. @@ -3212,7 +3215,7 @@ if test -z "$CC"; then
  955. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  957. $as_echo_n "checking for $ac_word... " >&6; }
  958. -if test "${ac_cv_prog_CC+set}" = set; then :
  959. +if ${ac_cv_prog_CC+:} false; then :
  960. $as_echo_n "(cached) " >&6
  961. else
  962. if test -n "$CC"; then
  963. @@ -3224,7 +3227,7 @@ do
  964. IFS=$as_save_IFS
  965. test -z "$as_dir" && as_dir=.
  966. for ac_exec_ext in '' $ac_executable_extensions; do
  967. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  968. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  969. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  971. break 2
  972. @@ -3256,7 +3259,7 @@ do
  973. set dummy $ac_prog; ac_word=$2
  974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  975. $as_echo_n "checking for $ac_word... " >&6; }
  976. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  977. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  978. $as_echo_n "(cached) " >&6
  979. else
  980. if test -n "$ac_ct_CC"; then
  981. @@ -3268,7 +3271,7 @@ do
  982. IFS=$as_save_IFS
  983. test -z "$as_dir" && as_dir=.
  984. for ac_exec_ext in '' $ac_executable_extensions; do
  985. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  986. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  987. ac_cv_prog_ac_ct_CC="$ac_prog"
  988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  989. break 2
  990. @@ -3310,8 +3313,8 @@ fi
  991. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  993. -as_fn_error "no acceptable C compiler found in \$PATH
  994. -See \`config.log' for more details." "$LINENO" 5; }
  995. +as_fn_error $? "no acceptable C compiler found in \$PATH
  996. +See \`config.log' for more details" "$LINENO" 5; }
  997. # Provide some information about the compiler.
  998. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  999. @@ -3425,9 +3428,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
  1000. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1002. -{ as_fn_set_status 77
  1003. -as_fn_error "C compiler cannot create executables
  1004. -See \`config.log' for more details." "$LINENO" 5; }; }
  1005. +as_fn_error 77 "C compiler cannot create executables
  1006. +See \`config.log' for more details" "$LINENO" 5; }
  1007. else
  1008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1009. $as_echo "yes" >&6; }
  1010. @@ -3469,8 +3471,8 @@ done
  1011. else
  1012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1014. -as_fn_error "cannot compute suffix of executables: cannot compile and link
  1015. -See \`config.log' for more details." "$LINENO" 5; }
  1016. +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  1017. +See \`config.log' for more details" "$LINENO" 5; }
  1018. fi
  1019. rm -f conftest conftest$ac_cv_exeext
  1020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  1021. @@ -3527,9 +3529,9 @@ $as_echo "$ac_try_echo"; } >&5
  1022. else
  1023. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1024. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1025. -as_fn_error "cannot run C compiled programs.
  1026. +as_fn_error $? "cannot run C compiled programs.
  1027. If you meant to cross compile, use \`--host'.
  1028. -See \`config.log' for more details." "$LINENO" 5; }
  1029. +See \`config.log' for more details" "$LINENO" 5; }
  1030. fi
  1031. fi
  1032. fi
  1033. @@ -3540,7 +3542,7 @@ rm -f conftest.$ac_ext conftest$ac_cv_ex
  1034. ac_clean_files=$ac_clean_files_save
  1035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  1036. $as_echo_n "checking for suffix of object files... " >&6; }
  1037. -if test "${ac_cv_objext+set}" = set; then :
  1038. +if ${ac_cv_objext+:} false; then :
  1039. $as_echo_n "(cached) " >&6
  1040. else
  1041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1042. @@ -3580,8 +3582,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
  1043. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1045. -as_fn_error "cannot compute suffix of object files: cannot compile
  1046. -See \`config.log' for more details." "$LINENO" 5; }
  1047. +as_fn_error $? "cannot compute suffix of object files: cannot compile
  1048. +See \`config.log' for more details" "$LINENO" 5; }
  1049. fi
  1050. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1051. fi
  1052. @@ -3591,7 +3593,7 @@ OBJEXT=$ac_cv_objext
  1053. ac_objext=$OBJEXT
  1054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  1055. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  1056. -if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  1057. +if ${ac_cv_c_compiler_gnu+:} false; then :
  1058. $as_echo_n "(cached) " >&6
  1059. else
  1060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1061. @@ -3628,7 +3630,7 @@ ac_test_CFLAGS=${CFLAGS+set}
  1062. ac_save_CFLAGS=$CFLAGS
  1063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  1064. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  1065. -if test "${ac_cv_prog_cc_g+set}" = set; then :
  1066. +if ${ac_cv_prog_cc_g+:} false; then :
  1067. $as_echo_n "(cached) " >&6
  1068. else
  1069. ac_save_c_werror_flag=$ac_c_werror_flag
  1070. @@ -3706,7 +3708,7 @@ else
  1071. fi
  1072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  1073. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  1074. -if test "${ac_cv_prog_cc_c89+set}" = set; then :
  1075. +if ${ac_cv_prog_cc_c89+:} false; then :
  1076. $as_echo_n "(cached) " >&6
  1077. else
  1078. ac_cv_prog_cc_c89=no
  1079. @@ -3715,8 +3717,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
  1080. /* end confdefs.h. */
  1081. #include <stdarg.h>
  1082. #include <stdio.h>
  1083. -#include <sys/types.h>
  1084. -#include <sys/stat.h>
  1085. +struct stat;
  1086. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1087. struct buf { int x; };
  1088. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1089. @@ -3808,7 +3809,7 @@ ac_config_commands="$ac_config_commands
  1090. am_make=${MAKE-make}
  1091. cat > confinc << 'END'
  1092. am__doit:
  1093. - @echo this is the am__doit target
  1094. + @echo done
  1095. .PHONY: am__doit
  1096. END
  1097. # If we don't find an include directive, just comment out the code.
  1098. @@ -3819,24 +3820,24 @@ am__quote=
  1099. _am_result=none
  1100. # First try GNU make style include.
  1101. echo "include confinc" > confmf
  1102. -# Ignore all kinds of additional output from `make'.
  1103. -case `$am_make -s -f confmf 2> /dev/null` in #(
  1104. -*the\ am__doit\ target*)
  1105. - am__include=include
  1106. - am__quote=
  1107. - _am_result=GNU
  1108. - ;;
  1109. -esac
  1110. +# We grep out `Entering directory' and `Leaving directory'
  1111. +# messages which can occur if `w' ends up in MAKEFLAGS.
  1112. +# In particular we don't look at `^make:' because GNU make might
  1113. +# be invoked under some other name (usually "gmake"), in which
  1114. +# case it prints its new name instead of `make'.
  1115. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1116. + am__include=include
  1117. + am__quote=
  1118. + _am_result=GNU
  1119. +fi
  1120. # Now try BSD make style include.
  1121. if test "$am__include" = "#"; then
  1122. echo '.include "confinc"' > confmf
  1123. - case `$am_make -s -f confmf 2> /dev/null` in #(
  1124. - *the\ am__doit\ target*)
  1125. - am__include=.include
  1126. - am__quote="\""
  1127. - _am_result=BSD
  1128. - ;;
  1129. - esac
  1130. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1131. + am__include=.include
  1132. + am__quote="\""
  1133. + _am_result=BSD
  1134. + fi
  1135. fi
  1136. @@ -3867,7 +3868,7 @@ depcc="$CC" am_compiler_list=
  1137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  1138. $as_echo_n "checking dependency style of $depcc... " >&6; }
  1139. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  1140. +if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  1141. $as_echo_n "(cached) " >&6
  1142. else
  1143. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  1144. @@ -3999,7 +4000,7 @@ $as_echo_n "checking whether cc understa
  1145. fi
  1146. set dummy $CC; ac_cc=`$as_echo "$2" |
  1147. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  1148. -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  1149. +if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  1150. $as_echo_n "(cached) " >&6
  1151. else
  1152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1153. @@ -4128,7 +4129,7 @@ if test -n "$CPP" && test -d "$CPP"; the
  1154. CPP=
  1155. fi
  1156. if test -z "$CPP"; then
  1157. - if test "${ac_cv_prog_CPP+set}" = set; then :
  1158. + if ${ac_cv_prog_CPP+:} false; then :
  1159. $as_echo_n "(cached) " >&6
  1160. else
  1161. # Double quotes because CPP needs to be expanded
  1162. @@ -4158,7 +4159,7 @@ else
  1163. # Broken: fails on valid input.
  1164. continue
  1165. fi
  1166. -rm -f conftest.err conftest.$ac_ext
  1167. +rm -f conftest.err conftest.i conftest.$ac_ext
  1168. # OK, works on sane cases. Now check whether nonexistent headers
  1169. # can be detected and how.
  1170. @@ -4174,11 +4175,11 @@ else
  1171. ac_preproc_ok=:
  1172. break
  1173. fi
  1174. -rm -f conftest.err conftest.$ac_ext
  1175. +rm -f conftest.err conftest.i conftest.$ac_ext
  1176. done
  1177. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1178. -rm -f conftest.err conftest.$ac_ext
  1179. +rm -f conftest.i conftest.err conftest.$ac_ext
  1180. if $ac_preproc_ok; then :
  1181. break
  1182. fi
  1183. @@ -4217,7 +4218,7 @@ else
  1184. # Broken: fails on valid input.
  1185. continue
  1186. fi
  1187. -rm -f conftest.err conftest.$ac_ext
  1188. +rm -f conftest.err conftest.i conftest.$ac_ext
  1189. # OK, works on sane cases. Now check whether nonexistent headers
  1190. # can be detected and how.
  1191. @@ -4233,18 +4234,18 @@ else
  1192. ac_preproc_ok=:
  1193. break
  1194. fi
  1195. -rm -f conftest.err conftest.$ac_ext
  1196. +rm -f conftest.err conftest.i conftest.$ac_ext
  1197. done
  1198. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1199. -rm -f conftest.err conftest.$ac_ext
  1200. +rm -f conftest.i conftest.err conftest.$ac_ext
  1201. if $ac_preproc_ok; then :
  1202. else
  1203. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1205. -as_fn_error "C preprocessor \"$CPP\" fails sanity check
  1206. -See \`config.log' for more details." "$LINENO" 5; }
  1207. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  1208. +See \`config.log' for more details" "$LINENO" 5; }
  1209. fi
  1210. ac_ext=c
  1211. @@ -4269,7 +4270,7 @@ if test -z "$CXX"; then
  1212. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1214. $as_echo_n "checking for $ac_word... " >&6; }
  1215. -if test "${ac_cv_prog_CXX+set}" = set; then :
  1216. +if ${ac_cv_prog_CXX+:} false; then :
  1217. $as_echo_n "(cached) " >&6
  1218. else
  1219. if test -n "$CXX"; then
  1220. @@ -4281,7 +4282,7 @@ do
  1221. IFS=$as_save_IFS
  1222. test -z "$as_dir" && as_dir=.
  1223. for ac_exec_ext in '' $ac_executable_extensions; do
  1224. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1225. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1226. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1228. break 2
  1229. @@ -4313,7 +4314,7 @@ do
  1230. set dummy $ac_prog; ac_word=$2
  1231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1232. $as_echo_n "checking for $ac_word... " >&6; }
  1233. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  1234. +if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  1235. $as_echo_n "(cached) " >&6
  1236. else
  1237. if test -n "$ac_ct_CXX"; then
  1238. @@ -4325,7 +4326,7 @@ do
  1239. IFS=$as_save_IFS
  1240. test -z "$as_dir" && as_dir=.
  1241. for ac_exec_ext in '' $ac_executable_extensions; do
  1242. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1243. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1244. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1246. break 2
  1247. @@ -4391,7 +4392,7 @@ done
  1248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  1249. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1250. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  1251. +if ${ac_cv_cxx_compiler_gnu+:} false; then :
  1252. $as_echo_n "(cached) " >&6
  1253. else
  1254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1255. @@ -4428,7 +4429,7 @@ ac_test_CXXFLAGS=${CXXFLAGS+set}
  1256. ac_save_CXXFLAGS=$CXXFLAGS
  1257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  1258. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  1259. -if test "${ac_cv_prog_cxx_g+set}" = set; then :
  1260. +if ${ac_cv_prog_cxx_g+:} false; then :
  1261. $as_echo_n "(cached) " >&6
  1262. else
  1263. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1264. @@ -4514,7 +4515,7 @@ depcc="$CXX" am_compiler_list=
  1265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  1266. $as_echo_n "checking dependency style of $depcc... " >&6; }
  1267. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  1268. +if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  1269. $as_echo_n "(cached) " >&6
  1270. else
  1271. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  1272. @@ -4655,7 +4656,7 @@ if test -n "$ac_tool_prefix"; then
  1273. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1275. $as_echo_n "checking for $ac_word... " >&6; }
  1276. -if test "${ac_cv_prog_RANLIB+set}" = set; then :
  1277. +if ${ac_cv_prog_RANLIB+:} false; then :
  1278. $as_echo_n "(cached) " >&6
  1279. else
  1280. if test -n "$RANLIB"; then
  1281. @@ -4667,7 +4668,7 @@ do
  1282. IFS=$as_save_IFS
  1283. test -z "$as_dir" && as_dir=.
  1284. for ac_exec_ext in '' $ac_executable_extensions; do
  1285. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1286. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1287. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1289. break 2
  1290. @@ -4695,7 +4696,7 @@ if test -z "$ac_cv_prog_RANLIB"; then
  1291. set dummy ranlib; ac_word=$2
  1292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1293. $as_echo_n "checking for $ac_word... " >&6; }
  1294. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  1295. +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  1296. $as_echo_n "(cached) " >&6
  1297. else
  1298. if test -n "$ac_ct_RANLIB"; then
  1299. @@ -4707,7 +4708,7 @@ do
  1300. IFS=$as_save_IFS
  1301. test -z "$as_dir" && as_dir=.
  1302. for ac_exec_ext in '' $ac_executable_extensions; do
  1303. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1304. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1305. ac_cv_prog_ac_ct_RANLIB="ranlib"
  1306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1307. break 2
  1308. @@ -4747,7 +4748,7 @@ fi
  1309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  1310. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  1311. -if test "${ac_cv_path_SED+set}" = set; then :
  1312. +if ${ac_cv_path_SED+:} false; then :
  1313. $as_echo_n "(cached) " >&6
  1314. else
  1315. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  1316. @@ -4767,7 +4768,7 @@ do
  1317. for ac_prog in sed gsed; do
  1318. for ac_exec_ext in '' $ac_executable_extensions; do
  1319. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  1320. - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  1321. + as_fn_executable_p "$ac_path_SED" || continue
  1322. # Check for GNU ac_path_SED and select it if it is found.
  1323. # Check for GNU $ac_path_SED
  1324. case `"$ac_path_SED" --version 2>&1` in
  1325. @@ -4802,7 +4803,7 @@ esac
  1326. done
  1327. IFS=$as_save_IFS
  1328. if test -z "$ac_cv_path_SED"; then
  1329. - as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  1330. + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  1331. fi
  1332. else
  1333. ac_cv_path_SED=$SED
  1334. @@ -4824,7 +4825,7 @@ do
  1335. set dummy $ac_prog; ac_word=$2
  1336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1337. $as_echo_n "checking for $ac_word... " >&6; }
  1338. -if test "${ac_cv_path_AR+set}" = set; then :
  1339. +if ${ac_cv_path_AR+:} false; then :
  1340. $as_echo_n "(cached) " >&6
  1341. else
  1342. case $AR in
  1343. @@ -4838,7 +4839,7 @@ do
  1344. IFS=$as_save_IFS
  1345. test -z "$as_dir" && as_dir=.
  1346. for ac_exec_ext in '' $ac_executable_extensions; do
  1347. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1348. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1349. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  1350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1351. break 2
  1352. @@ -4869,7 +4870,7 @@ fi
  1353. # Check for the compiler support
  1354. if test "${GCC}" != "yes" ; then
  1355. - as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
  1356. + as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
  1357. fi
  1358. # figure out where perl lives
  1359. @@ -4877,7 +4878,7 @@ fi
  1360. set dummy perl; ac_word=$2
  1361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1362. $as_echo_n "checking for $ac_word... " >&6; }
  1363. -if test "${ac_cv_path_PERL+set}" = set; then :
  1364. +if ${ac_cv_path_PERL+:} false; then :
  1365. $as_echo_n "(cached) " >&6
  1366. else
  1367. case $PERL in
  1368. @@ -4891,7 +4892,7 @@ do
  1369. IFS=$as_save_IFS
  1370. test -z "$as_dir" && as_dir=.
  1371. for ac_exec_ext in '' $ac_executable_extensions; do
  1372. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1373. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1374. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  1375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1376. break 2
  1377. @@ -4919,7 +4920,7 @@ fi
  1378. set dummy gdb; ac_word=$2
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1380. $as_echo_n "checking for $ac_word... " >&6; }
  1381. -if test "${ac_cv_path_GDB+set}" = set; then :
  1382. +if ${ac_cv_path_GDB+:} false; then :
  1383. $as_echo_n "(cached) " >&6
  1384. else
  1385. case $GDB in
  1386. @@ -4933,7 +4934,7 @@ do
  1387. IFS=$as_save_IFS
  1388. test -z "$as_dir" && as_dir=.
  1389. for ac_exec_ext in '' $ac_executable_extensions; do
  1390. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1391. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1392. ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
  1393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1394. break 2
  1395. @@ -4974,7 +4975,7 @@ depcc="$CCAS" am_compiler_list=
  1396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  1397. $as_echo_n "checking dependency style of $depcc... " >&6; }
  1398. -if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  1399. +if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  1400. $as_echo_n "(cached) " >&6
  1401. else
  1402. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  1403. @@ -5156,7 +5157,7 @@ $as_echo "ok (clang-${gcc_version})" >&6
  1404. *)
  1405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
  1406. $as_echo "no (${gcc_version})" >&6; }
  1407. - as_fn_error "please use gcc >= 3.0 or clang >= 2.9" "$LINENO" 5
  1408. + as_fn_error $? "please use gcc >= 3.0 or clang >= 2.9" "$LINENO" 5
  1409. ;;
  1410. esac
  1411. @@ -5168,29 +5169,31 @@ esac
  1412. # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
  1413. # variables used when compiling C files.
  1414. +VGCONF_PLATFORM_ARM_ARCH=
  1415. +
  1416. # Make sure we can run config.sub.
  1417. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1418. - as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1419. + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1421. $as_echo_n "checking build system type... " >&6; }
  1422. -if test "${ac_cv_build+set}" = set; then :
  1423. +if ${ac_cv_build+:} false; then :
  1424. $as_echo_n "(cached) " >&6
  1425. else
  1426. ac_build_alias=$build_alias
  1427. test "x$ac_build_alias" = x &&
  1428. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1429. test "x$ac_build_alias" = x &&
  1430. - as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  1431. + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1432. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1433. - as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1434. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1435. fi
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1437. $as_echo "$ac_cv_build" >&6; }
  1438. case $ac_cv_build in
  1439. *-*-*) ;;
  1440. -*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  1441. +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1442. esac
  1443. build=$ac_cv_build
  1444. ac_save_IFS=$IFS; IFS='-'
  1445. @@ -5208,14 +5211,14 @@ case $build_os in *\ *) build_os=`echo "
  1446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1447. $as_echo_n "checking host system type... " >&6; }
  1448. -if test "${ac_cv_host+set}" = set; then :
  1449. +if ${ac_cv_host+:} false; then :
  1450. $as_echo_n "(cached) " >&6
  1451. else
  1452. if test "x$host_alias" = x; then
  1453. ac_cv_host=$ac_cv_build
  1454. else
  1455. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1456. - as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1457. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1458. fi
  1459. fi
  1460. @@ -5223,7 +5226,7 @@ fi
  1461. $as_echo "$ac_cv_host" >&6; }
  1462. case $ac_cv_host in
  1463. *-*-*) ;;
  1464. -*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  1465. +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1466. esac
  1467. host=$ac_cv_host
  1468. ac_save_IFS=$IFS; IFS='-'
  1469. @@ -5280,18 +5283,32 @@ $as_echo "ok (${host_cpu})" >&6; }
  1470. ;;
  1471. armv7*)
  1472. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
  1473. -$as_echo "ok (${host_cpu})" >&6; }
  1474. - ARCH_MAX="arm"
  1475. - ;;
  1476. + # This means we use a armv7 toolchain - at least Cortex-A8
  1477. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu} using armv7 codepath)" >&5
  1478. +$as_echo "ok (${host_cpu} using armv7 codepath)" >&6; }
  1479. + ARCH_MAX="arm"
  1480. + VGCONF_PLATFORM_ARM_ARCH="-march=armv7 -mcpu=cortex-a8"
  1481. + ;;
  1482. +
  1483. + arm*)
  1484. + # Generic arm toolchain - we will target armv6
  1485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (${host_cpu}) - no armv7 toolchain specified, will enforce armv6 when compiling" >&5
  1486. +$as_echo "(${host_cpu}) - no armv7 toolchain specified, will enforce armv6 when compiling" >&6; }
  1487. + ARCH_MAX="arm"
  1488. + VGCONF_PLATFORM_ARM_ARCH="-march=armv6"
  1489. +
  1490. +$as_echo "#define ARM_ARCH_V6 1" >>confdefs.h
  1491. +
  1492. + ;;
  1493. *)
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
  1495. $as_echo "no (${host_cpu})" >&6; }
  1496. - as_fn_error "Unsupported host architecture. Sorry" "$LINENO" 5
  1497. + as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
  1498. ;;
  1499. esac
  1500. +
  1501. #----------------------------------------------------------------------------
  1502. # Sometimes it's convenient to subvert the bi-arch build system and
  1503. @@ -5305,7 +5322,7 @@ esac
  1504. # Check if a 64-bit only build has been requested
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
  1506. $as_echo_n "checking for a 64-bit only build... " >&6; }
  1507. -if test "${vg_cv_only64bit+set}" = set; then :
  1508. +if ${vg_cv_only64bit+:} false; then :
  1509. $as_echo_n "(cached) " >&6
  1510. else
  1511. # Check whether --enable-only64bit was given.
  1512. @@ -5322,7 +5339,7 @@ $as_echo "$vg_cv_only64bit" >&6; }
  1513. # Check if a 32-bit only build has been requested
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
  1515. $as_echo_n "checking for a 32-bit only build... " >&6; }
  1516. -if test "${vg_cv_only32bit+set}" = set; then :
  1517. +if ${vg_cv_only32bit+:} false; then :
  1518. $as_echo_n "(cached) " >&6
  1519. else
  1520. # Check whether --enable-only32bit was given.
  1521. @@ -5338,7 +5355,7 @@ $as_echo "$vg_cv_only32bit" >&6; }
  1522. # Stay sane
  1523. if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
  1524. - as_fn_error "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
  1525. + as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
  1526. fi
  1527. #----------------------------------------------------------------------------
  1528. @@ -5384,7 +5401,7 @@ $as_echo "#define KERNEL_2_4 1" >>confde
  1529. *)
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
  1531. $as_echo "unsupported (${kernel})" >&6; }
  1532. - as_fn_error "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
  1533. + as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
  1534. ;;
  1535. esac
  1536. @@ -5456,7 +5473,7 @@ $as_echo "#define DARWIN_VERS DARWIN_10_
  1537. *)
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
  1539. $as_echo "unsupported (${kernel})" >&6; }
  1540. - as_fn_error "Valgrind works on Darwin 10.x and 11.x (Mac OS X 10.6/7)" "$LINENO" 5
  1541. + as_fn_error $? "Valgrind works on Darwin 10.x and 11.x (Mac OS X 10.6/7)" "$LINENO" 5
  1542. ;;
  1543. esac
  1544. ;;
  1545. @@ -5464,7 +5481,7 @@ $as_echo "unsupported (${kernel})" >&6;
  1546. *)
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
  1548. $as_echo "no (${host_os})" >&6; }
  1549. - as_fn_error "Valgrind is operating system specific. Sorry." "$LINENO" 5
  1550. + as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
  1551. ;;
  1552. esac
  1553. @@ -5512,7 +5529,7 @@ rm -f core conftest.err conftest.$ac_obj
  1554. esac
  1555. if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
  1556. - as_fn_error "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
  1557. + as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
  1558. fi
  1559. #----------------------------------------------------------------------------
  1560. @@ -5719,7 +5736,7 @@ $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})"
  1561. valt_load_address_sec_inner="0xUNSET"
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
  1563. $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
  1564. - as_fn_error "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
  1565. + as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
  1566. ;;
  1567. esac
  1568. @@ -5903,7 +5920,7 @@ fi
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
  1570. $as_echo_n "checking for use as an inner Valgrind... " >&6; }
  1571. -if test "${vg_cv_inner+set}" = set; then :
  1572. +if ${vg_cv_inner+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. # Check whether --enable-inner was given.
  1576. @@ -5955,7 +5972,7 @@ _ACEOF
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  1578. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  1579. -if test "${ac_cv_path_GREP+set}" = set; then :
  1580. +if ${ac_cv_path_GREP+:} false; then :
  1581. $as_echo_n "(cached) " >&6
  1582. else
  1583. if test -z "$GREP"; then
  1584. @@ -5969,7 +5986,7 @@ do
  1585. for ac_prog in grep ggrep; do
  1586. for ac_exec_ext in '' $ac_executable_extensions; do
  1587. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  1588. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  1589. + as_fn_executable_p "$ac_path_GREP" || continue
  1590. # Check for GNU ac_path_GREP and select it if it is found.
  1591. # Check for GNU $ac_path_GREP
  1592. case `"$ac_path_GREP" --version 2>&1` in
  1593. @@ -6004,7 +6021,7 @@ esac
  1594. done
  1595. IFS=$as_save_IFS
  1596. if test -z "$ac_cv_path_GREP"; then
  1597. - as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1598. + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1599. fi
  1600. else
  1601. ac_cv_path_GREP=$GREP
  1602. @@ -6018,7 +6035,7 @@ $as_echo "$ac_cv_path_GREP" >&6; }
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  1604. $as_echo_n "checking for egrep... " >&6; }
  1605. -if test "${ac_cv_path_EGREP+set}" = set; then :
  1606. +if ${ac_cv_path_EGREP+:} false; then :
  1607. $as_echo_n "(cached) " >&6
  1608. else
  1609. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  1610. @@ -6035,7 +6052,7 @@ do
  1611. for ac_prog in egrep; do
  1612. for ac_exec_ext in '' $ac_executable_extensions; do
  1613. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  1614. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  1615. + as_fn_executable_p "$ac_path_EGREP" || continue
  1616. # Check for GNU ac_path_EGREP and select it if it is found.
  1617. # Check for GNU $ac_path_EGREP
  1618. case `"$ac_path_EGREP" --version 2>&1` in
  1619. @@ -6070,7 +6087,7 @@ esac
  1620. done
  1621. IFS=$as_save_IFS
  1622. if test -z "$ac_cv_path_EGREP"; then
  1623. - as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1624. + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  1625. fi
  1626. else
  1627. ac_cv_path_EGREP=$EGREP
  1628. @@ -6085,7 +6102,7 @@ $as_echo "$ac_cv_path_EGREP" >&6; }
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  1630. $as_echo_n "checking for ANSI C header files... " >&6; }
  1631. -if test "${ac_cv_header_stdc+set}" = set; then :
  1632. +if ${ac_cv_header_stdc+:} false; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. @@ -6202,8 +6219,7 @@ do :
  1637. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  1638. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  1639. "
  1640. -eval as_val=\$$as_ac_Header
  1641. - if test "x$as_val" = x""yes; then :
  1642. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  1643. cat >>confdefs.h <<_ACEOF
  1644. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  1645. _ACEOF
  1646. @@ -6214,7 +6230,7 @@ done
  1647. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  1648. -if test "x$ac_cv_header_features_h" = x""yes; then :
  1649. +if test "x$ac_cv_header_features_h" = xyes; then :
  1650. fi
  1651. @@ -6422,8 +6438,8 @@ $as_echo "#define BIONIC_LIBC 1" >>confd
  1652. *)
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
  1654. $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
  1655. - as_fn_error "Valgrind requires glibc version 2.2 - 2.14" "$LINENO" 5
  1656. - as_fn_error "or Darwin libc" "$LINENO" 5
  1657. + as_fn_error $? "Valgrind requires glibc version 2.2 - 2.14" "$LINENO" 5
  1658. + as_fn_error $? "or Darwin libc" "$LINENO" 5
  1659. ;;
  1660. esac
  1661. @@ -6747,7 +6763,7 @@ rm -f core conftest.err conftest.$ac_obj
  1662. ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
  1663. "
  1664. -if test "x$ac_cv_member_pthread_mutex_t___m_kind" = x""yes; then :
  1665. +if test "x$ac_cv_member_pthread_mutex_t___m_kind" = xyes; then :
  1666. $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
  1667. @@ -6760,7 +6776,7 @@ fi
  1668. ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
  1669. "
  1670. -if test "x$ac_cv_member_pthread_mutex_t___data___kind" = x""yes; then :
  1671. +if test "x$ac_cv_member_pthread_mutex_t___data___kind" = xyes; then :
  1672. $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
  1673. @@ -7913,7 +7929,7 @@ rm -f core conftest.err conftest.$ac_obj
  1674. # Cross-compiling: check whether linking a program using TLS succeeds.
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
  1676. $as_echo_n "checking for TLS support... " >&6; }
  1677. -if test "${vg_cv_tls+set}" = set; then :
  1678. +if ${vg_cv_tls+:} false; then :
  1679. $as_echo_n "(cached) " >&6
  1680. else
  1681. # Check whether --enable-tls was given.
  1682. @@ -7962,7 +7978,7 @@ fi
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  1684. $as_echo_n "checking for ANSI C header files... " >&6; }
  1685. -if test "${ac_cv_header_stdc+set}" = set; then :
  1686. +if ${ac_cv_header_stdc+:} false; then :
  1687. $as_echo_n "(cached) " >&6
  1688. else
  1689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1690. @@ -8090,8 +8106,7 @@ for ac_header in \
  1691. do :
  1692. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  1693. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  1694. -eval as_val=\$$as_ac_Header
  1695. - if test "x$as_val" = x""yes; then :
  1696. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  1697. cat >>confdefs.h <<_ACEOF
  1698. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  1699. _ACEOF
  1700. @@ -8141,7 +8156,7 @@ rm -f core conftest.err conftest.$ac_obj
  1701. #----------------------------------------------------------------------------
  1702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  1703. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  1704. -if test "${ac_cv_type_uid_t+set}" = set; then :
  1705. +if ${ac_cv_type_uid_t+:} false; then :
  1706. $as_echo_n "(cached) " >&6
  1707. else
  1708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1709. @@ -8170,7 +8185,7 @@ $as_echo "#define gid_t int" >>confdefs.
  1710. fi
  1711. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  1712. -if test "x$ac_cv_type_off_t" = x""yes; then :
  1713. +if test "x$ac_cv_type_off_t" = xyes; then :
  1714. else
  1715. @@ -8181,7 +8196,7 @@ _ACEOF
  1716. fi
  1717. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  1718. -if test "x$ac_cv_type_size_t" = x""yes; then :
  1719. +if test "x$ac_cv_type_size_t" = xyes; then :
  1720. else
  1721. @@ -8193,7 +8208,7 @@ fi
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  1723. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  1724. -if test "${ac_cv_header_time+set}" = set; then :
  1725. +if ${ac_cv_header_time+:} false; then :
  1726. $as_echo_n "(cached) " >&6
  1727. else
  1728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1729. @@ -8233,7 +8248,7 @@ fi
  1730. #----------------------------------------------------------------------------
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  1732. $as_echo_n "checking for working memcmp... " >&6; }
  1733. -if test "${ac_cv_func_memcmp_working+set}" = set; then :
  1734. +if ${ac_cv_func_memcmp_working+:} false; then :
  1735. $as_echo_n "(cached) " >&6
  1736. else
  1737. if test "$cross_compiling" = yes; then :
  1738. @@ -8301,8 +8316,7 @@ do :
  1739. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  1740. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  1741. "
  1742. -eval as_val=\$$as_ac_Header
  1743. - if test "x$as_val" = x""yes; then :
  1744. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  1745. cat >>confdefs.h <<_ACEOF
  1746. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  1747. _ACEOF
  1748. @@ -8321,7 +8335,7 @@ done
  1749. for ac_func in getpagesize
  1750. do :
  1751. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  1752. -if test "x$ac_cv_func_getpagesize" = x""yes; then :
  1753. +if test "x$ac_cv_func_getpagesize" = xyes; then :
  1754. cat >>confdefs.h <<_ACEOF
  1755. #define HAVE_GETPAGESIZE 1
  1756. _ACEOF
  1757. @@ -8331,7 +8345,7 @@ done
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  1759. $as_echo_n "checking for working mmap... " >&6; }
  1760. -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  1761. +if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  1762. $as_echo_n "(cached) " >&6
  1763. else
  1764. if test "$cross_compiling" = yes; then :
  1765. @@ -8498,7 +8512,7 @@ rm -f conftest.mmap conftest.txt
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  1767. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  1768. -if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  1769. +if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  1770. $as_echo_n "(cached) " >&6
  1771. else
  1772. ac_check_lib_save_LIBS=$LIBS
  1773. @@ -8532,7 +8546,7 @@ LIBS=$ac_check_lib_save_LIBS
  1774. fi
  1775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  1776. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  1777. -if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  1778. +if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  1779. cat >>confdefs.h <<_ACEOF
  1780. #define HAVE_LIBPTHREAD 1
  1781. _ACEOF
  1782. @@ -8543,7 +8557,7 @@ fi
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  1784. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  1785. -if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  1786. +if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  1787. $as_echo_n "(cached) " >&6
  1788. else
  1789. ac_check_lib_save_LIBS=$LIBS
  1790. @@ -8577,7 +8591,7 @@ LIBS=$ac_check_lib_save_LIBS
  1791. fi
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  1793. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  1794. -if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  1795. +if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  1796. cat >>confdefs.h <<_ACEOF
  1797. #define HAVE_LIBRT 1
  1798. _ACEOF
  1799. @@ -8620,8 +8634,7 @@ for ac_func in \
  1800. do :
  1801. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  1802. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  1803. -eval as_val=\$$as_ac_var
  1804. - if test "x$as_val" = x""yes; then :
  1805. +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  1806. cat >>confdefs.h <<_ACEOF
  1807. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  1808. _ACEOF
  1809. @@ -9133,10 +9146,21 @@ $as_echo "$as_me: WARNING: cache variabl
  1810. :end' >>confcache
  1811. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  1812. if test -w "$cache_file"; then
  1813. - test "x$cache_file" != "x/dev/null" &&
  1814. + if test "x$cache_file" != "x/dev/null"; then
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  1816. $as_echo "$as_me: updating cache $cache_file" >&6;}
  1817. - cat confcache >$cache_file
  1818. + if test ! -f "$cache_file" || test -h "$cache_file"; then
  1819. + cat confcache >"$cache_file"
  1820. + else
  1821. + case $cache_file in #(
  1822. + */* | ?:*)
  1823. + mv -f confcache "$cache_file"$$ &&
  1824. + mv -f "$cache_file"$$ "$cache_file" ;; #(
  1825. + *)
  1826. + mv -f confcache "$cache_file" ;;
  1827. + esac
  1828. + fi
  1829. + fi
  1830. else
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  1832. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  1833. @@ -9152,6 +9176,7 @@ DEFS=-DHAVE_CONFIG_H
  1834. ac_libobjs=
  1835. ac_ltlibobjs=
  1836. +U=
  1837. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  1838. # 1. Remove the extension, and $U if already installed.
  1839. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  1840. @@ -9166,180 +9191,172 @@ LIBOBJS=$ac_libobjs
  1841. LTLIBOBJS=$ac_ltlibobjs
  1842. - if test -n "$EXEEXT"; then
  1843. - am__EXEEXT_TRUE=
  1844. - am__EXEEXT_FALSE='#'
  1845. -else
  1846. - am__EXEEXT_TRUE='#'
  1847. - am__EXEEXT_FALSE=
  1848. -fi
  1849. -
  1850. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  1851. - as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  1852. + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  1853. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1854. fi
  1855. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  1856. - as_fn_error "conditional \"AMDEP\" was never defined.
  1857. + as_fn_error $? "conditional \"AMDEP\" was never defined.
  1858. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1859. fi
  1860. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  1861. - as_fn_error "conditional \"am__fastdepCC\" was never defined.
  1862. + as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  1863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1864. fi
  1865. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  1866. - as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  1867. + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  1868. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1869. fi
  1870. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  1871. - as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  1872. + as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  1873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1874. fi
  1875. if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
  1876. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
  1877. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
  1878. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1879. fi
  1880. if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
  1881. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
  1882. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
  1883. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1884. fi
  1885. if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
  1886. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
  1887. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
  1888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1889. fi
  1890. if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
  1891. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
  1892. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
  1893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1894. fi
  1895. if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
  1896. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
  1897. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
  1898. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1899. fi
  1900. if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
  1901. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
  1902. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
  1903. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1904. fi
  1905. if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
  1906. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
  1907. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
  1908. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1909. fi
  1910. if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
  1911. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
  1912. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
  1913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1914. fi
  1915. if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
  1916. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
  1917. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
  1918. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1919. fi
  1920. if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
  1921. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
  1922. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
  1923. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1924. fi
  1925. if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
  1926. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
  1927. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
  1928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1929. fi
  1930. if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
  1931. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
  1932. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
  1933. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1934. fi
  1935. if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
  1936. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
  1937. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
  1938. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1939. fi
  1940. if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
  1941. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
  1942. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
  1943. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1944. fi
  1945. if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
  1946. - as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
  1947. + as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
  1948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1949. fi
  1950. if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
  1951. - as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
  1952. + as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
  1953. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1954. fi
  1955. if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
  1956. - as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
  1957. + as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
  1958. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1959. fi
  1960. if test -z "${VGCONF_PLATVARIANT_IS_VANILLA_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_VANILLA_FALSE}"; then
  1961. - as_fn_error "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
  1962. + as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
  1963. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1964. fi
  1965. if test -z "${VGCONF_PLATVARIANT_IS_ANDROID_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_ANDROID_FALSE}"; then
  1966. - as_fn_error "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
  1967. + as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
  1968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1969. fi
  1970. if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
  1971. - as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
  1972. + as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
  1973. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1974. fi
  1975. if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
  1976. - as_fn_error "conditional \"HAS_VSX\" was never defined.
  1977. + as_fn_error $? "conditional \"HAS_VSX\" was never defined.
  1978. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1979. fi
  1980. if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
  1981. - as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
  1982. + as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
  1983. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1984. fi
  1985. if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
  1986. - as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
  1987. + as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
  1988. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1989. fi
  1990. if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
  1991. - as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
  1992. + as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
  1993. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1994. fi
  1995. if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
  1996. - as_fn_error "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
  1997. + as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
  1998. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1999. fi
  2000. if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
  2001. - as_fn_error "conditional \"BUILD_LZCNT_TESTS\" was never defined.
  2002. + as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
  2003. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2004. fi
  2005. if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
  2006. - as_fn_error "conditional \"BUILD_SSE42_TESTS\" was never defined.
  2007. + as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
  2008. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2009. fi
  2010. if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
  2011. - as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
  2012. + as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
  2013. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2014. fi
  2015. if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
  2016. - as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
  2017. + as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
  2018. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2019. fi
  2020. if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
  2021. - as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
  2022. + as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
  2023. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2024. fi
  2025. if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
  2026. - as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
  2027. + as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
  2028. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2029. fi
  2030. if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
  2031. - as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
  2032. + as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
  2033. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2034. fi
  2035. if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
  2036. - as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
  2037. + as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
  2038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2039. fi
  2040. if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
  2041. - as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
  2042. + as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
  2043. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2044. fi
  2045. if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
  2046. - as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
  2047. + as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
  2048. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2049. fi
  2050. if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
  2051. - as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
  2052. + as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
  2053. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2054. fi
  2055. -: ${CONFIG_STATUS=./config.status}
  2056. +: "${CONFIG_STATUS=./config.status}"
  2057. ac_write_fail=0
  2058. ac_clean_files_save=$ac_clean_files
  2059. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2060. @@ -9440,6 +9457,7 @@ fi
  2061. IFS=" "" $as_nl"
  2062. # Find who we are. Look in the path if we contain no directory separator.
  2063. +as_myself=
  2064. case $0 in #((
  2065. *[\\/]* ) as_myself=$0 ;;
  2066. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2067. @@ -9485,19 +9503,19 @@ export LANGUAGE
  2068. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2069. -# as_fn_error ERROR [LINENO LOG_FD]
  2070. -# ---------------------------------
  2071. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  2072. +# ----------------------------------------
  2073. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  2074. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  2075. -# script with status $?, using 1 if that was 0.
  2076. +# script with STATUS, using 1 if that was 0.
  2077. as_fn_error ()
  2078. {
  2079. - as_status=$?; test $as_status -eq 0 && as_status=1
  2080. - if test "$3"; then
  2081. - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2082. - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  2083. + as_status=$1; test $as_status -eq 0 && as_status=1
  2084. + if test "$4"; then
  2085. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2086. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  2087. fi
  2088. - $as_echo "$as_me: error: $1" >&2
  2089. + $as_echo "$as_me: error: $2" >&2
  2090. as_fn_exit $as_status
  2091. } # as_fn_error
  2092. @@ -9635,16 +9653,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  2093. # ... but there are two gotchas:
  2094. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2095. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2096. - # In both cases, we have to default to `cp -p'.
  2097. + # In both cases, we have to default to `cp -pR'.
  2098. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2099. - as_ln_s='cp -p'
  2100. + as_ln_s='cp -pR'
  2101. elif ln conf$$.file conf$$ 2>/dev/null; then
  2102. as_ln_s=ln
  2103. else
  2104. - as_ln_s='cp -p'
  2105. + as_ln_s='cp -pR'
  2106. fi
  2107. else
  2108. - as_ln_s='cp -p'
  2109. + as_ln_s='cp -pR'
  2110. fi
  2111. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  2112. rmdir conf$$.dir 2>/dev/null
  2113. @@ -9693,7 +9711,7 @@ $as_echo X"$as_dir" |
  2114. test -d "$as_dir" && break
  2115. done
  2116. test -z "$as_dirs" || eval "mkdir $as_dirs"
  2117. - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  2118. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  2119. } # as_fn_mkdir_p
  2120. @@ -9704,28 +9722,16 @@ else
  2121. as_mkdir_p=false
  2122. fi
  2123. -if test -x / >/dev/null 2>&1; then
  2124. - as_test_x='test -x'
  2125. -else
  2126. - if ls -dL / >/dev/null 2>&1; then
  2127. - as_ls_L_option=L
  2128. - else
  2129. - as_ls_L_option=
  2130. - fi
  2131. - as_test_x='
  2132. - eval sh -c '\''
  2133. - if test -d "$1"; then
  2134. - test -d "$1/.";
  2135. - else
  2136. - case $1 in #(
  2137. - -*)set "./$1";;
  2138. - esac;
  2139. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  2140. - ???[sx]*):;;*)false;;esac;fi
  2141. - '\'' sh
  2142. - '
  2143. -fi
  2144. -as_executable_p=$as_test_x
  2145. +
  2146. +# as_fn_executable_p FILE
  2147. +# -----------------------
  2148. +# Test if FILE is an executable regular file.
  2149. +as_fn_executable_p ()
  2150. +{
  2151. + test -f "$1" && test -x "$1"
  2152. +} # as_fn_executable_p
  2153. +as_test_x='test -x'
  2154. +as_executable_p=as_fn_executable_p
  2155. # Sed expression to map a string onto a valid CPP name.
  2156. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2157. @@ -9747,7 +9753,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
  2158. # values after options handling.
  2159. ac_log="
  2160. This file was extended by Valgrind $as_me 3.7.0, which was
  2161. -generated by GNU Autoconf 2.65. Invocation command line was
  2162. +generated by GNU Autoconf 2.69. Invocation command line was
  2163. CONFIG_FILES = $CONFIG_FILES
  2164. CONFIG_HEADERS = $CONFIG_HEADERS
  2165. @@ -9813,10 +9819,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  2166. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  2167. ac_cs_version="\\
  2168. Valgrind config.status 3.7.0
  2169. -configured by $0, generated by GNU Autoconf 2.65,
  2170. +configured by $0, generated by GNU Autoconf 2.69,
  2171. with options \\"\$ac_cs_config\\"
  2172. -Copyright (C) 2009 Free Software Foundation, Inc.
  2173. +Copyright (C) 2012 Free Software Foundation, Inc.
  2174. This config.status script is free software; the Free Software Foundation
  2175. gives unlimited permission to copy, distribute and modify it."
  2176. @@ -9834,11 +9840,16 @@ ac_need_defaults=:
  2177. while test $# != 0
  2178. do
  2179. case $1 in
  2180. - --*=*)
  2181. + --*=?*)
  2182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2183. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2184. ac_shift=:
  2185. ;;
  2186. + --*=)
  2187. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2188. + ac_optarg=
  2189. + ac_shift=:
  2190. + ;;
  2191. *)
  2192. ac_option=$1
  2193. ac_optarg=$2
  2194. @@ -9860,6 +9871,7 @@ do
  2195. $ac_shift
  2196. case $ac_optarg in
  2197. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2198. + '') as_fn_error $? "missing file argument" ;;
  2199. esac
  2200. as_fn_append CONFIG_FILES " '$ac_optarg'"
  2201. ac_need_defaults=false;;
  2202. @@ -9872,7 +9884,7 @@ do
  2203. ac_need_defaults=false;;
  2204. --he | --h)
  2205. # Conflict between --help and --header
  2206. - as_fn_error "ambiguous option: \`$1'
  2207. + as_fn_error $? "ambiguous option: \`$1'
  2208. Try \`$0 --help' for more information.";;
  2209. --help | --hel | -h )
  2210. $as_echo "$ac_cs_usage"; exit ;;
  2211. @@ -9881,7 +9893,7 @@ Try \`$0 --help' for more information.";
  2212. ac_cs_silent=: ;;
  2213. # This is an error.
  2214. - -*) as_fn_error "unrecognized option: \`$1'
  2215. + -*) as_fn_error $? "unrecognized option: \`$1'
  2216. Try \`$0 --help' for more information." ;;
  2217. *) as_fn_append ac_config_targets " $1"
  2218. @@ -9901,7 +9913,7 @@ fi
  2219. _ACEOF
  2220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2221. if \$ac_cs_recheck; then
  2222. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2223. + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2224. shift
  2225. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  2226. CONFIG_SHELL='$SHELL'
  2227. @@ -10008,7 +10020,7 @@ do
  2228. "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
  2229. "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
  2230. - *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2231. + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2232. esac
  2233. done
  2234. @@ -10031,9 +10043,10 @@ fi
  2235. # after its creation but before its name has been assigned to `$tmp'.
  2236. $debug ||
  2237. {
  2238. - tmp=
  2239. + tmp= ac_tmp=
  2240. trap 'exit_status=$?
  2241. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  2242. + : "${ac_tmp:=$tmp}"
  2243. + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  2244. ' 0
  2245. trap 'as_fn_exit 1' 1 2 13 15
  2246. }
  2247. @@ -10041,12 +10054,13 @@ $debug ||
  2248. {
  2249. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2250. - test -n "$tmp" && test -d "$tmp"
  2251. + test -d "$tmp"
  2252. } ||
  2253. {
  2254. tmp=./conf$$-$RANDOM
  2255. (umask 077 && mkdir "$tmp")
  2256. -} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  2257. +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  2258. +ac_tmp=$tmp
  2259. # Set up the scripts for CONFIG_FILES section.
  2260. # No need to generate them if there are no CONFIG_FILES.
  2261. @@ -10063,12 +10077,12 @@ if test "x$ac_cr" = x; then
  2262. fi
  2263. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  2264. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  2265. - ac_cs_awk_cr='\r'
  2266. + ac_cs_awk_cr='\\r'
  2267. else
  2268. ac_cs_awk_cr=$ac_cr
  2269. fi
  2270. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  2271. +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  2272. _ACEOF
  2273. @@ -10077,18 +10091,18 @@ _ACEOF
  2274. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  2275. echo "_ACEOF"
  2276. } >conf$$subs.sh ||
  2277. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  2278. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  2279. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2280. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  2281. ac_delim='%!_!# '
  2282. for ac_last_try in false false false false false :; do
  2283. . ./conf$$subs.sh ||
  2284. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  2285. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2286. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  2287. if test $ac_delim_n = $ac_delim_num; then
  2288. break
  2289. elif $ac_last_try; then
  2290. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  2291. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2292. else
  2293. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2294. fi
  2295. @@ -10096,7 +10110,7 @@ done
  2296. rm -f conf$$subs.sh
  2297. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2298. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  2299. +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  2300. _ACEOF
  2301. sed -n '
  2302. h
  2303. @@ -10144,7 +10158,7 @@ t delim
  2304. rm -f conf$$subs.awk
  2305. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2306. _ACAWK
  2307. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  2308. +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  2309. for (key in S) S_is_set[key] = 1
  2310. FS = ""
  2311. @@ -10176,21 +10190,29 @@ if sed "s/$ac_cr//" < /dev/null > /dev/n
  2312. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  2313. else
  2314. cat
  2315. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  2316. - || as_fn_error "could not setup config files machinery" "$LINENO" 5
  2317. +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  2318. + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  2319. _ACEOF
  2320. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  2321. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  2322. +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  2323. +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  2324. # trailing colons and then remove the whole line if VPATH becomes empty
  2325. # (actually we leave an empty line to preserve line numbers).
  2326. if test "x$srcdir" = x.; then
  2327. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  2328. -s/:*\$(srcdir):*/:/
  2329. -s/:*\${srcdir}:*/:/
  2330. -s/:*@srcdir@:*/:/
  2331. -s/^\([^=]*=[ ]*\):*/\1/
  2332. + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  2333. +h
  2334. +s///
  2335. +s/^/:/
  2336. +s/[ ]*$/:/
  2337. +s/:\$(srcdir):/:/g
  2338. +s/:\${srcdir}:/:/g
  2339. +s/:@srcdir@:/:/g
  2340. +s/^:*//
  2341. s/:*$//
  2342. +x
  2343. +s/\(=[ ]*\).*/\1/
  2344. +G
  2345. +s/\n//
  2346. s/^[^=]*=[ ]*$//
  2347. }'
  2348. fi
  2349. @@ -10202,7 +10224,7 @@ fi # test -n "$CONFIG_FILES"
  2350. # No need to generate them if there are no CONFIG_HEADERS.
  2351. # This happens for instance with `./config.status Makefile'.
  2352. if test -n "$CONFIG_HEADERS"; then
  2353. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  2354. +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  2355. BEGIN {
  2356. _ACEOF
  2357. @@ -10214,11 +10236,11 @@ _ACEOF
  2358. # handling of long lines.
  2359. ac_delim='%!_!# '
  2360. for ac_last_try in false false :; do
  2361. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  2362. - if test -z "$ac_t"; then
  2363. + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  2364. + if test -z "$ac_tt"; then
  2365. break
  2366. elif $ac_last_try; then
  2367. - as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  2368. + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  2369. else
  2370. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2371. fi
  2372. @@ -10303,7 +10325,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  2373. _ACAWK
  2374. _ACEOF
  2375. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2376. - as_fn_error "could not setup config headers machinery" "$LINENO" 5
  2377. + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  2378. fi # test -n "$CONFIG_HEADERS"
  2379. @@ -10316,7 +10338,7 @@ do
  2380. esac
  2381. case $ac_mode$ac_tag in
  2382. :[FHL]*:*);;
  2383. - :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2384. + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2385. :[FH]-) ac_tag=-:-;;
  2386. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  2387. esac
  2388. @@ -10335,7 +10357,7 @@ do
  2389. for ac_f
  2390. do
  2391. case $ac_f in
  2392. - -) ac_f="$tmp/stdin";;
  2393. + -) ac_f="$ac_tmp/stdin";;
  2394. *) # Look for the file first in the build tree, then in the source tree
  2395. # (if the path is not absolute). The absolute path cannot be DOS-style,
  2396. # because $ac_f cannot contain `:'.
  2397. @@ -10344,7 +10366,7 @@ do
  2398. [\\/$]*) false;;
  2399. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  2400. esac ||
  2401. - as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2402. + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2403. esac
  2404. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  2405. as_fn_append ac_file_inputs " '$ac_f'"
  2406. @@ -10370,8 +10392,8 @@ $as_echo "$as_me: creating $ac_file" >&6
  2407. esac
  2408. case $ac_tag in
  2409. - *:-:* | *:-) cat >"$tmp/stdin" \
  2410. - || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  2411. + *:-:* | *:-) cat >"$ac_tmp/stdin" \
  2412. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  2413. esac
  2414. ;;
  2415. esac
  2416. @@ -10507,23 +10529,24 @@ s&@INSTALL@&$ac_INSTALL&;t t
  2417. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  2418. $ac_datarootdir_hack
  2419. "
  2420. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  2421. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2422. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  2423. + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2424. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  2425. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  2426. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  2427. + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  2428. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  2429. + "$ac_tmp/out"`; test -z "$ac_out"; } &&
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2431. -which seems to be undefined. Please make sure it is defined." >&5
  2432. +which seems to be undefined. Please make sure it is defined" >&5
  2433. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2434. -which seems to be undefined. Please make sure it is defined." >&2;}
  2435. +which seems to be undefined. Please make sure it is defined" >&2;}
  2436. - rm -f "$tmp/stdin"
  2437. + rm -f "$ac_tmp/stdin"
  2438. case $ac_file in
  2439. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  2440. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  2441. + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  2442. + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  2443. esac \
  2444. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2445. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2446. ;;
  2447. :H)
  2448. #
  2449. @@ -10532,21 +10555,21 @@ which seems to be undefined. Please mak
  2450. if test x"$ac_file" != x-; then
  2451. {
  2452. $as_echo "/* $configure_input */" \
  2453. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  2454. - } >"$tmp/config.h" \
  2455. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2456. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  2457. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  2458. + } >"$ac_tmp/config.h" \
  2459. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2460. + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  2462. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  2463. else
  2464. rm -f "$ac_file"
  2465. - mv "$tmp/config.h" "$ac_file" \
  2466. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2467. + mv "$ac_tmp/config.h" "$ac_file" \
  2468. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2469. fi
  2470. else
  2471. $as_echo "/* $configure_input */" \
  2472. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  2473. - || as_fn_error "could not create -" "$LINENO" 5
  2474. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  2475. + || as_fn_error $? "could not create -" "$LINENO" 5
  2476. fi
  2477. # Compute "$ac_file"'s index in $config_headers.
  2478. _am_arg="$ac_file"
  2479. @@ -10698,7 +10721,7 @@ _ACEOF
  2480. ac_clean_files=$ac_clean_files_save
  2481. test $ac_write_fail = 0 ||
  2482. - as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2483. + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2484. # configure is writing to config.log, and then calls config.status.
  2485. @@ -10719,7 +10742,7 @@ if test "$no_create" != yes; then
  2486. exec 5>>config.log
  2487. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  2488. # would make configure fail if this is the last instruction.
  2489. - $ac_cs_success || as_fn_exit $?
  2490. + $ac_cs_success || as_fn_exit 1
  2491. fi
  2492. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5