patch-configure 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675
  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:31:28.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. @@ -6392,11 +6408,11 @@ $as_echo "#define GLIBC_2_13 1" >>confde
  1652. DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  1653. DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
  1654. ;;
  1655. - 2.14)
  1656. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.14 family" >&5
  1657. -$as_echo "2.14 family" >&6; }
  1658. + 2.17)
  1659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
  1660. +$as_echo "2.17 family" >&6; }
  1661. -$as_echo "#define GLIBC_2_14 1" >>confdefs.h
  1662. +$as_echo "#define GLIBC_2_17 1" >>confdefs.h
  1663. DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
  1664. DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  1665. @@ -6422,8 +6438,8 @@ $as_echo "#define BIONIC_LIBC 1" >>confd
  1666. *)
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
  1668. $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
  1669. - as_fn_error "Valgrind requires glibc version 2.2 - 2.14" "$LINENO" 5
  1670. - as_fn_error "or Darwin libc" "$LINENO" 5
  1671. + as_fn_error $? "Valgrind requires glibc version 2.2 - 2.14" "$LINENO" 5
  1672. + as_fn_error $? "or Darwin libc" "$LINENO" 5
  1673. ;;
  1674. esac
  1675. @@ -6747,7 +6763,7 @@ rm -f core conftest.err conftest.$ac_obj
  1676. ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
  1677. "
  1678. -if test "x$ac_cv_member_pthread_mutex_t___m_kind" = x""yes; then :
  1679. +if test "x$ac_cv_member_pthread_mutex_t___m_kind" = xyes; then :
  1680. $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
  1681. @@ -6760,7 +6776,7 @@ fi
  1682. ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
  1683. "
  1684. -if test "x$ac_cv_member_pthread_mutex_t___data___kind" = x""yes; then :
  1685. +if test "x$ac_cv_member_pthread_mutex_t___data___kind" = xyes; then :
  1686. $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
  1687. @@ -7913,7 +7929,7 @@ rm -f core conftest.err conftest.$ac_obj
  1688. # Cross-compiling: check whether linking a program using TLS succeeds.
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
  1690. $as_echo_n "checking for TLS support... " >&6; }
  1691. -if test "${vg_cv_tls+set}" = set; then :
  1692. +if ${vg_cv_tls+:} false; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. # Check whether --enable-tls was given.
  1696. @@ -7962,7 +7978,7 @@ fi
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  1698. $as_echo_n "checking for ANSI C header files... " >&6; }
  1699. -if test "${ac_cv_header_stdc+set}" = set; then :
  1700. +if ${ac_cv_header_stdc+:} false; then :
  1701. $as_echo_n "(cached) " >&6
  1702. else
  1703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. @@ -8090,8 +8106,7 @@ for ac_header in \
  1705. do :
  1706. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  1707. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  1708. -eval as_val=\$$as_ac_Header
  1709. - if test "x$as_val" = x""yes; then :
  1710. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  1711. cat >>confdefs.h <<_ACEOF
  1712. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  1713. _ACEOF
  1714. @@ -8141,7 +8156,7 @@ rm -f core conftest.err conftest.$ac_obj
  1715. #----------------------------------------------------------------------------
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  1717. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  1718. -if test "${ac_cv_type_uid_t+set}" = set; then :
  1719. +if ${ac_cv_type_uid_t+:} false; then :
  1720. $as_echo_n "(cached) " >&6
  1721. else
  1722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1723. @@ -8170,7 +8185,7 @@ $as_echo "#define gid_t int" >>confdefs.
  1724. fi
  1725. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  1726. -if test "x$ac_cv_type_off_t" = x""yes; then :
  1727. +if test "x$ac_cv_type_off_t" = xyes; then :
  1728. else
  1729. @@ -8181,7 +8196,7 @@ _ACEOF
  1730. fi
  1731. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  1732. -if test "x$ac_cv_type_size_t" = x""yes; then :
  1733. +if test "x$ac_cv_type_size_t" = xyes; then :
  1734. else
  1735. @@ -8193,7 +8208,7 @@ fi
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  1737. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  1738. -if test "${ac_cv_header_time+set}" = set; then :
  1739. +if ${ac_cv_header_time+:} false; then :
  1740. $as_echo_n "(cached) " >&6
  1741. else
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. @@ -8233,7 +8248,7 @@ fi
  1744. #----------------------------------------------------------------------------
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  1746. $as_echo_n "checking for working memcmp... " >&6; }
  1747. -if test "${ac_cv_func_memcmp_working+set}" = set; then :
  1748. +if ${ac_cv_func_memcmp_working+:} false; then :
  1749. $as_echo_n "(cached) " >&6
  1750. else
  1751. if test "$cross_compiling" = yes; then :
  1752. @@ -8301,8 +8316,7 @@ do :
  1753. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  1754. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  1755. "
  1756. -eval as_val=\$$as_ac_Header
  1757. - if test "x$as_val" = x""yes; then :
  1758. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  1759. cat >>confdefs.h <<_ACEOF
  1760. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  1761. _ACEOF
  1762. @@ -8321,7 +8335,7 @@ done
  1763. for ac_func in getpagesize
  1764. do :
  1765. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  1766. -if test "x$ac_cv_func_getpagesize" = x""yes; then :
  1767. +if test "x$ac_cv_func_getpagesize" = xyes; then :
  1768. cat >>confdefs.h <<_ACEOF
  1769. #define HAVE_GETPAGESIZE 1
  1770. _ACEOF
  1771. @@ -8331,7 +8345,7 @@ done
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  1773. $as_echo_n "checking for working mmap... " >&6; }
  1774. -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  1775. +if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  1776. $as_echo_n "(cached) " >&6
  1777. else
  1778. if test "$cross_compiling" = yes; then :
  1779. @@ -8498,7 +8512,7 @@ rm -f conftest.mmap conftest.txt
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  1781. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  1782. -if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  1783. +if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  1784. $as_echo_n "(cached) " >&6
  1785. else
  1786. ac_check_lib_save_LIBS=$LIBS
  1787. @@ -8532,7 +8546,7 @@ LIBS=$ac_check_lib_save_LIBS
  1788. fi
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  1790. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  1791. -if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  1792. +if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  1793. cat >>confdefs.h <<_ACEOF
  1794. #define HAVE_LIBPTHREAD 1
  1795. _ACEOF
  1796. @@ -8543,7 +8557,7 @@ fi
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  1798. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  1799. -if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  1800. +if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  1801. $as_echo_n "(cached) " >&6
  1802. else
  1803. ac_check_lib_save_LIBS=$LIBS
  1804. @@ -8577,7 +8591,7 @@ LIBS=$ac_check_lib_save_LIBS
  1805. fi
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  1807. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  1808. -if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  1809. +if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  1810. cat >>confdefs.h <<_ACEOF
  1811. #define HAVE_LIBRT 1
  1812. _ACEOF
  1813. @@ -8620,8 +8634,7 @@ for ac_func in \
  1814. do :
  1815. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  1816. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  1817. -eval as_val=\$$as_ac_var
  1818. - if test "x$as_val" = x""yes; then :
  1819. +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  1820. cat >>confdefs.h <<_ACEOF
  1821. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  1822. _ACEOF
  1823. @@ -9133,10 +9146,21 @@ $as_echo "$as_me: WARNING: cache variabl
  1824. :end' >>confcache
  1825. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  1826. if test -w "$cache_file"; then
  1827. - test "x$cache_file" != "x/dev/null" &&
  1828. + if test "x$cache_file" != "x/dev/null"; then
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  1830. $as_echo "$as_me: updating cache $cache_file" >&6;}
  1831. - cat confcache >$cache_file
  1832. + if test ! -f "$cache_file" || test -h "$cache_file"; then
  1833. + cat confcache >"$cache_file"
  1834. + else
  1835. + case $cache_file in #(
  1836. + */* | ?:*)
  1837. + mv -f confcache "$cache_file"$$ &&
  1838. + mv -f "$cache_file"$$ "$cache_file" ;; #(
  1839. + *)
  1840. + mv -f confcache "$cache_file" ;;
  1841. + esac
  1842. + fi
  1843. + fi
  1844. else
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  1846. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  1847. @@ -9152,6 +9176,7 @@ DEFS=-DHAVE_CONFIG_H
  1848. ac_libobjs=
  1849. ac_ltlibobjs=
  1850. +U=
  1851. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  1852. # 1. Remove the extension, and $U if already installed.
  1853. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  1854. @@ -9166,180 +9191,172 @@ LIBOBJS=$ac_libobjs
  1855. LTLIBOBJS=$ac_ltlibobjs
  1856. - if test -n "$EXEEXT"; then
  1857. - am__EXEEXT_TRUE=
  1858. - am__EXEEXT_FALSE='#'
  1859. -else
  1860. - am__EXEEXT_TRUE='#'
  1861. - am__EXEEXT_FALSE=
  1862. -fi
  1863. -
  1864. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  1865. - as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  1866. + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  1867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1868. fi
  1869. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  1870. - as_fn_error "conditional \"AMDEP\" was never defined.
  1871. + as_fn_error $? "conditional \"AMDEP\" was never defined.
  1872. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1873. fi
  1874. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  1875. - as_fn_error "conditional \"am__fastdepCC\" was never defined.
  1876. + as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  1877. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1878. fi
  1879. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  1880. - as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  1881. + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  1882. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1883. fi
  1884. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  1885. - as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  1886. + as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  1887. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1888. fi
  1889. if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
  1890. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
  1891. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
  1892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1893. fi
  1894. if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
  1895. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
  1896. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
  1897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1898. fi
  1899. if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
  1900. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
  1901. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
  1902. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1903. fi
  1904. if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
  1905. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
  1906. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
  1907. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1908. fi
  1909. if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
  1910. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
  1911. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
  1912. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1913. fi
  1914. if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
  1915. - as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
  1916. + as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
  1917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1918. fi
  1919. if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
  1920. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
  1921. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
  1922. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1923. fi
  1924. if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
  1925. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
  1926. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
  1927. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1928. fi
  1929. if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
  1930. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
  1931. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
  1932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1933. fi
  1934. if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
  1935. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
  1936. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
  1937. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1938. fi
  1939. if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
  1940. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
  1941. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
  1942. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1943. fi
  1944. if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
  1945. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
  1946. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
  1947. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1948. fi
  1949. if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
  1950. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
  1951. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
  1952. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1953. fi
  1954. if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
  1955. - as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
  1956. + as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
  1957. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1958. fi
  1959. if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
  1960. - as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
  1961. + as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
  1962. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1963. fi
  1964. if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
  1965. - as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
  1966. + as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
  1967. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1968. fi
  1969. if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
  1970. - as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
  1971. + as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
  1972. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1973. fi
  1974. if test -z "${VGCONF_PLATVARIANT_IS_VANILLA_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_VANILLA_FALSE}"; then
  1975. - as_fn_error "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
  1976. + as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
  1977. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1978. fi
  1979. if test -z "${VGCONF_PLATVARIANT_IS_ANDROID_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_ANDROID_FALSE}"; then
  1980. - as_fn_error "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
  1981. + as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
  1982. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1983. fi
  1984. if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
  1985. - as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
  1986. + as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
  1987. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1988. fi
  1989. if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
  1990. - as_fn_error "conditional \"HAS_VSX\" was never defined.
  1991. + as_fn_error $? "conditional \"HAS_VSX\" was never defined.
  1992. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1993. fi
  1994. if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
  1995. - as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
  1996. + as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
  1997. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  1998. fi
  1999. if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
  2000. - as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
  2001. + as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
  2002. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2003. fi
  2004. if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
  2005. - as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
  2006. + as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
  2007. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2008. fi
  2009. if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
  2010. - as_fn_error "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
  2011. + as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
  2012. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2013. fi
  2014. if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
  2015. - as_fn_error "conditional \"BUILD_LZCNT_TESTS\" was never defined.
  2016. + as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
  2017. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2018. fi
  2019. if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
  2020. - as_fn_error "conditional \"BUILD_SSE42_TESTS\" was never defined.
  2021. + as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
  2022. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2023. fi
  2024. if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
  2025. - as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
  2026. + as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
  2027. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2028. fi
  2029. if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
  2030. - as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
  2031. + as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
  2032. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2033. fi
  2034. if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
  2035. - as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
  2036. + as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
  2037. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2038. fi
  2039. if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
  2040. - as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
  2041. + as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
  2042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2043. fi
  2044. if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
  2045. - as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
  2046. + as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
  2047. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2048. fi
  2049. if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
  2050. - as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
  2051. + as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
  2052. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2053. fi
  2054. if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
  2055. - as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
  2056. + as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
  2057. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2058. fi
  2059. if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
  2060. - as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
  2061. + as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
  2062. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2063. fi
  2064. if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
  2065. - as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
  2066. + as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
  2067. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  2068. fi
  2069. -: ${CONFIG_STATUS=./config.status}
  2070. +: "${CONFIG_STATUS=./config.status}"
  2071. ac_write_fail=0
  2072. ac_clean_files_save=$ac_clean_files
  2073. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2074. @@ -9440,6 +9457,7 @@ fi
  2075. IFS=" "" $as_nl"
  2076. # Find who we are. Look in the path if we contain no directory separator.
  2077. +as_myself=
  2078. case $0 in #((
  2079. *[\\/]* ) as_myself=$0 ;;
  2080. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2081. @@ -9485,19 +9503,19 @@ export LANGUAGE
  2082. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2083. -# as_fn_error ERROR [LINENO LOG_FD]
  2084. -# ---------------------------------
  2085. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  2086. +# ----------------------------------------
  2087. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  2088. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  2089. -# script with status $?, using 1 if that was 0.
  2090. +# script with STATUS, using 1 if that was 0.
  2091. as_fn_error ()
  2092. {
  2093. - as_status=$?; test $as_status -eq 0 && as_status=1
  2094. - if test "$3"; then
  2095. - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2096. - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  2097. + as_status=$1; test $as_status -eq 0 && as_status=1
  2098. + if test "$4"; then
  2099. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2100. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  2101. fi
  2102. - $as_echo "$as_me: error: $1" >&2
  2103. + $as_echo "$as_me: error: $2" >&2
  2104. as_fn_exit $as_status
  2105. } # as_fn_error
  2106. @@ -9635,16 +9653,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  2107. # ... but there are two gotchas:
  2108. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2109. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2110. - # In both cases, we have to default to `cp -p'.
  2111. + # In both cases, we have to default to `cp -pR'.
  2112. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2113. - as_ln_s='cp -p'
  2114. + as_ln_s='cp -pR'
  2115. elif ln conf$$.file conf$$ 2>/dev/null; then
  2116. as_ln_s=ln
  2117. else
  2118. - as_ln_s='cp -p'
  2119. + as_ln_s='cp -pR'
  2120. fi
  2121. else
  2122. - as_ln_s='cp -p'
  2123. + as_ln_s='cp -pR'
  2124. fi
  2125. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  2126. rmdir conf$$.dir 2>/dev/null
  2127. @@ -9693,7 +9711,7 @@ $as_echo X"$as_dir" |
  2128. test -d "$as_dir" && break
  2129. done
  2130. test -z "$as_dirs" || eval "mkdir $as_dirs"
  2131. - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  2132. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  2133. } # as_fn_mkdir_p
  2134. @@ -9704,28 +9722,16 @@ else
  2135. as_mkdir_p=false
  2136. fi
  2137. -if test -x / >/dev/null 2>&1; then
  2138. - as_test_x='test -x'
  2139. -else
  2140. - if ls -dL / >/dev/null 2>&1; then
  2141. - as_ls_L_option=L
  2142. - else
  2143. - as_ls_L_option=
  2144. - fi
  2145. - as_test_x='
  2146. - eval sh -c '\''
  2147. - if test -d "$1"; then
  2148. - test -d "$1/.";
  2149. - else
  2150. - case $1 in #(
  2151. - -*)set "./$1";;
  2152. - esac;
  2153. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  2154. - ???[sx]*):;;*)false;;esac;fi
  2155. - '\'' sh
  2156. - '
  2157. -fi
  2158. -as_executable_p=$as_test_x
  2159. +
  2160. +# as_fn_executable_p FILE
  2161. +# -----------------------
  2162. +# Test if FILE is an executable regular file.
  2163. +as_fn_executable_p ()
  2164. +{
  2165. + test -f "$1" && test -x "$1"
  2166. +} # as_fn_executable_p
  2167. +as_test_x='test -x'
  2168. +as_executable_p=as_fn_executable_p
  2169. # Sed expression to map a string onto a valid CPP name.
  2170. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2171. @@ -9747,7 +9753,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
  2172. # values after options handling.
  2173. ac_log="
  2174. This file was extended by Valgrind $as_me 3.7.0, which was
  2175. -generated by GNU Autoconf 2.65. Invocation command line was
  2176. +generated by GNU Autoconf 2.69. Invocation command line was
  2177. CONFIG_FILES = $CONFIG_FILES
  2178. CONFIG_HEADERS = $CONFIG_HEADERS
  2179. @@ -9813,10 +9819,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  2180. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  2181. ac_cs_version="\\
  2182. Valgrind config.status 3.7.0
  2183. -configured by $0, generated by GNU Autoconf 2.65,
  2184. +configured by $0, generated by GNU Autoconf 2.69,
  2185. with options \\"\$ac_cs_config\\"
  2186. -Copyright (C) 2009 Free Software Foundation, Inc.
  2187. +Copyright (C) 2012 Free Software Foundation, Inc.
  2188. This config.status script is free software; the Free Software Foundation
  2189. gives unlimited permission to copy, distribute and modify it."
  2190. @@ -9834,11 +9840,16 @@ ac_need_defaults=:
  2191. while test $# != 0
  2192. do
  2193. case $1 in
  2194. - --*=*)
  2195. + --*=?*)
  2196. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2197. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2198. ac_shift=:
  2199. ;;
  2200. + --*=)
  2201. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2202. + ac_optarg=
  2203. + ac_shift=:
  2204. + ;;
  2205. *)
  2206. ac_option=$1
  2207. ac_optarg=$2
  2208. @@ -9860,6 +9871,7 @@ do
  2209. $ac_shift
  2210. case $ac_optarg in
  2211. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2212. + '') as_fn_error $? "missing file argument" ;;
  2213. esac
  2214. as_fn_append CONFIG_FILES " '$ac_optarg'"
  2215. ac_need_defaults=false;;
  2216. @@ -9872,7 +9884,7 @@ do
  2217. ac_need_defaults=false;;
  2218. --he | --h)
  2219. # Conflict between --help and --header
  2220. - as_fn_error "ambiguous option: \`$1'
  2221. + as_fn_error $? "ambiguous option: \`$1'
  2222. Try \`$0 --help' for more information.";;
  2223. --help | --hel | -h )
  2224. $as_echo "$ac_cs_usage"; exit ;;
  2225. @@ -9881,7 +9893,7 @@ Try \`$0 --help' for more information.";
  2226. ac_cs_silent=: ;;
  2227. # This is an error.
  2228. - -*) as_fn_error "unrecognized option: \`$1'
  2229. + -*) as_fn_error $? "unrecognized option: \`$1'
  2230. Try \`$0 --help' for more information." ;;
  2231. *) as_fn_append ac_config_targets " $1"
  2232. @@ -9901,7 +9913,7 @@ fi
  2233. _ACEOF
  2234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2235. if \$ac_cs_recheck; then
  2236. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2237. + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2238. shift
  2239. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  2240. CONFIG_SHELL='$SHELL'
  2241. @@ -10008,7 +10020,7 @@ do
  2242. "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
  2243. "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
  2244. - *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2245. + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2246. esac
  2247. done
  2248. @@ -10031,9 +10043,10 @@ fi
  2249. # after its creation but before its name has been assigned to `$tmp'.
  2250. $debug ||
  2251. {
  2252. - tmp=
  2253. + tmp= ac_tmp=
  2254. trap 'exit_status=$?
  2255. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  2256. + : "${ac_tmp:=$tmp}"
  2257. + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  2258. ' 0
  2259. trap 'as_fn_exit 1' 1 2 13 15
  2260. }
  2261. @@ -10041,12 +10054,13 @@ $debug ||
  2262. {
  2263. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2264. - test -n "$tmp" && test -d "$tmp"
  2265. + test -d "$tmp"
  2266. } ||
  2267. {
  2268. tmp=./conf$$-$RANDOM
  2269. (umask 077 && mkdir "$tmp")
  2270. -} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  2271. +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  2272. +ac_tmp=$tmp
  2273. # Set up the scripts for CONFIG_FILES section.
  2274. # No need to generate them if there are no CONFIG_FILES.
  2275. @@ -10063,12 +10077,12 @@ if test "x$ac_cr" = x; then
  2276. fi
  2277. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  2278. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  2279. - ac_cs_awk_cr='\r'
  2280. + ac_cs_awk_cr='\\r'
  2281. else
  2282. ac_cs_awk_cr=$ac_cr
  2283. fi
  2284. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  2285. +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  2286. _ACEOF
  2287. @@ -10077,18 +10091,18 @@ _ACEOF
  2288. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  2289. echo "_ACEOF"
  2290. } >conf$$subs.sh ||
  2291. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  2292. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  2293. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2294. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  2295. ac_delim='%!_!# '
  2296. for ac_last_try in false false false false false :; do
  2297. . ./conf$$subs.sh ||
  2298. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  2299. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2300. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  2301. if test $ac_delim_n = $ac_delim_num; then
  2302. break
  2303. elif $ac_last_try; then
  2304. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  2305. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2306. else
  2307. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2308. fi
  2309. @@ -10096,7 +10110,7 @@ done
  2310. rm -f conf$$subs.sh
  2311. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2312. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  2313. +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  2314. _ACEOF
  2315. sed -n '
  2316. h
  2317. @@ -10144,7 +10158,7 @@ t delim
  2318. rm -f conf$$subs.awk
  2319. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2320. _ACAWK
  2321. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  2322. +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  2323. for (key in S) S_is_set[key] = 1
  2324. FS = ""
  2325. @@ -10176,21 +10190,29 @@ if sed "s/$ac_cr//" < /dev/null > /dev/n
  2326. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  2327. else
  2328. cat
  2329. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  2330. - || as_fn_error "could not setup config files machinery" "$LINENO" 5
  2331. +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  2332. + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  2333. _ACEOF
  2334. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  2335. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  2336. +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  2337. +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  2338. # trailing colons and then remove the whole line if VPATH becomes empty
  2339. # (actually we leave an empty line to preserve line numbers).
  2340. if test "x$srcdir" = x.; then
  2341. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  2342. -s/:*\$(srcdir):*/:/
  2343. -s/:*\${srcdir}:*/:/
  2344. -s/:*@srcdir@:*/:/
  2345. -s/^\([^=]*=[ ]*\):*/\1/
  2346. + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  2347. +h
  2348. +s///
  2349. +s/^/:/
  2350. +s/[ ]*$/:/
  2351. +s/:\$(srcdir):/:/g
  2352. +s/:\${srcdir}:/:/g
  2353. +s/:@srcdir@:/:/g
  2354. +s/^:*//
  2355. s/:*$//
  2356. +x
  2357. +s/\(=[ ]*\).*/\1/
  2358. +G
  2359. +s/\n//
  2360. s/^[^=]*=[ ]*$//
  2361. }'
  2362. fi
  2363. @@ -10202,7 +10224,7 @@ fi # test -n "$CONFIG_FILES"
  2364. # No need to generate them if there are no CONFIG_HEADERS.
  2365. # This happens for instance with `./config.status Makefile'.
  2366. if test -n "$CONFIG_HEADERS"; then
  2367. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  2368. +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  2369. BEGIN {
  2370. _ACEOF
  2371. @@ -10214,11 +10236,11 @@ _ACEOF
  2372. # handling of long lines.
  2373. ac_delim='%!_!# '
  2374. for ac_last_try in false false :; do
  2375. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  2376. - if test -z "$ac_t"; then
  2377. + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  2378. + if test -z "$ac_tt"; then
  2379. break
  2380. elif $ac_last_try; then
  2381. - as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  2382. + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  2383. else
  2384. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2385. fi
  2386. @@ -10303,7 +10325,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  2387. _ACAWK
  2388. _ACEOF
  2389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2390. - as_fn_error "could not setup config headers machinery" "$LINENO" 5
  2391. + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  2392. fi # test -n "$CONFIG_HEADERS"
  2393. @@ -10316,7 +10338,7 @@ do
  2394. esac
  2395. case $ac_mode$ac_tag in
  2396. :[FHL]*:*);;
  2397. - :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2398. + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2399. :[FH]-) ac_tag=-:-;;
  2400. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  2401. esac
  2402. @@ -10335,7 +10357,7 @@ do
  2403. for ac_f
  2404. do
  2405. case $ac_f in
  2406. - -) ac_f="$tmp/stdin";;
  2407. + -) ac_f="$ac_tmp/stdin";;
  2408. *) # Look for the file first in the build tree, then in the source tree
  2409. # (if the path is not absolute). The absolute path cannot be DOS-style,
  2410. # because $ac_f cannot contain `:'.
  2411. @@ -10344,7 +10366,7 @@ do
  2412. [\\/$]*) false;;
  2413. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  2414. esac ||
  2415. - as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2416. + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2417. esac
  2418. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  2419. as_fn_append ac_file_inputs " '$ac_f'"
  2420. @@ -10370,8 +10392,8 @@ $as_echo "$as_me: creating $ac_file" >&6
  2421. esac
  2422. case $ac_tag in
  2423. - *:-:* | *:-) cat >"$tmp/stdin" \
  2424. - || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  2425. + *:-:* | *:-) cat >"$ac_tmp/stdin" \
  2426. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  2427. esac
  2428. ;;
  2429. esac
  2430. @@ -10507,23 +10529,24 @@ s&@INSTALL@&$ac_INSTALL&;t t
  2431. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  2432. $ac_datarootdir_hack
  2433. "
  2434. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  2435. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2436. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  2437. + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2438. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  2439. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  2440. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  2441. + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  2442. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  2443. + "$ac_tmp/out"`; test -z "$ac_out"; } &&
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2445. -which seems to be undefined. Please make sure it is defined." >&5
  2446. +which seems to be undefined. Please make sure it is defined" >&5
  2447. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2448. -which seems to be undefined. Please make sure it is defined." >&2;}
  2449. +which seems to be undefined. Please make sure it is defined" >&2;}
  2450. - rm -f "$tmp/stdin"
  2451. + rm -f "$ac_tmp/stdin"
  2452. case $ac_file in
  2453. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  2454. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  2455. + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  2456. + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  2457. esac \
  2458. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2459. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2460. ;;
  2461. :H)
  2462. #
  2463. @@ -10532,21 +10555,21 @@ which seems to be undefined. Please mak
  2464. if test x"$ac_file" != x-; then
  2465. {
  2466. $as_echo "/* $configure_input */" \
  2467. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  2468. - } >"$tmp/config.h" \
  2469. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2470. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  2471. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  2472. + } >"$ac_tmp/config.h" \
  2473. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2474. + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  2476. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  2477. else
  2478. rm -f "$ac_file"
  2479. - mv "$tmp/config.h" "$ac_file" \
  2480. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  2481. + mv "$ac_tmp/config.h" "$ac_file" \
  2482. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2483. fi
  2484. else
  2485. $as_echo "/* $configure_input */" \
  2486. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  2487. - || as_fn_error "could not create -" "$LINENO" 5
  2488. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  2489. + || as_fn_error $? "could not create -" "$LINENO" 5
  2490. fi
  2491. # Compute "$ac_file"'s index in $config_headers.
  2492. _am_arg="$ac_file"
  2493. @@ -10698,7 +10721,7 @@ _ACEOF
  2494. ac_clean_files=$ac_clean_files_save
  2495. test $ac_write_fail = 0 ||
  2496. - as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2497. + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2498. # configure is writing to config.log, and then calls config.status.
  2499. @@ -10719,7 +10742,7 @@ if test "$no_create" != yes; then
  2500. exec 5>>config.log
  2501. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  2502. # would make configure fail if this is the last instruction.
  2503. - $ac_cs_success || as_fn_exit $?
  2504. + $ac_cs_success || as_fn_exit 1
  2505. fi
  2506. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5