patch-configure 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295
  1. --- rtorrent-0.9.2.orig/configure 2012-04-20 09:00:08.000000000 +0200
  2. +++ rtorrent-0.9.2/configure 2014-01-13 12:54:25.000000000 +0100
  3. @@ -1,13 +1,11 @@
  4. #! /bin/sh
  5. # Guess values for system-dependent variables and create Makefiles.
  6. -# Generated by GNU Autoconf 2.68 for rtorrent 0.9.2.
  7. +# Generated by GNU Autoconf 2.69 for rtorrent 0.9.2.
  8. #
  9. # Report bugs to <jaris@ifi.uio.no>.
  10. #
  11. #
  12. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  14. -# Foundation, 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. @@ -136,6 +134,31 @@ export LANGUAGE
  20. # CDPATH.
  21. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22. +# Use a proper internal environment variable to ensure we don't fall
  23. + # into an infinite loop, continuously re-executing ourselves.
  24. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  25. + _as_can_reexec=no; export _as_can_reexec;
  26. + # We cannot yet assume a decent shell, so we have to provide a
  27. +# neutralization value for shells without unset; and this also
  28. +# works around shells that cannot unset nonexistent variables.
  29. +# Preserve -v and -x to the replacement shell.
  30. +BASH_ENV=/dev/null
  31. +ENV=/dev/null
  32. +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  33. +case $- in # ((((
  34. + *v*x* | *x*v* ) as_opts=-vx ;;
  35. + *v* ) as_opts=-v ;;
  36. + *x* ) as_opts=-x ;;
  37. + * ) as_opts= ;;
  38. +esac
  39. +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  40. +# Admittedly, this is quite paranoid, since all the known shells bail
  41. +# out after a failed `exec'.
  42. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  43. +as_fn_exit 255
  44. + fi
  45. + # We don't want this to propagate to other subprocesses.
  46. + { _as_can_reexec=; unset _as_can_reexec;}
  47. if test "x$CONFIG_SHELL" = x; then
  48. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  49. emulate sh
  50. @@ -169,7 +192,8 @@ if ( set x; as_fn_ret_success y && test
  51. else
  52. exitcode=1; echo positional parameters were not saved.
  53. fi
  54. -test x\$exitcode = x0 || exit 1"
  55. +test x\$exitcode = x0 || exit 1
  56. +test -x / || exit 1"
  57. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  58. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  59. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  60. @@ -222,21 +246,25 @@ IFS=$as_save_IFS
  61. if test "x$CONFIG_SHELL" != x; then :
  62. - # We cannot yet assume a decent shell, so we have to provide a
  63. - # neutralization value for shells without unset; and this also
  64. - # works around shells that cannot unset nonexistent variables.
  65. - # Preserve -v and -x to the replacement shell.
  66. - BASH_ENV=/dev/null
  67. - ENV=/dev/null
  68. - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  69. - export CONFIG_SHELL
  70. - case $- in # ((((
  71. - *v*x* | *x*v* ) as_opts=-vx ;;
  72. - *v* ) as_opts=-v ;;
  73. - *x* ) as_opts=-x ;;
  74. - * ) as_opts= ;;
  75. - esac
  76. - exec "$CONFIG_SHELL" $as_opts "$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. @@ -339,6 +367,14 @@ $as_echo X"$as_dir" |
  99. } # as_fn_mkdir_p
  100. +
  101. +# as_fn_executable_p FILE
  102. +# -----------------------
  103. +# Test if FILE is an executable regular file.
  104. +as_fn_executable_p ()
  105. +{
  106. + test -f "$1" && test -x "$1"
  107. +} # as_fn_executable_p
  108. # as_fn_append VAR VALUE
  109. # ----------------------
  110. # Append the text in VALUE to the end of the definition contained in VAR. Take
  111. @@ -460,6 +496,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
  112. chmod +x "$as_me.lineno" ||
  113. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  114. + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  115. + # already done that, so ensure we don't try to do so again and fall
  116. + # in an infinite loop. This has already happened in practice.
  117. + _as_can_reexec=no; export _as_can_reexec
  118. # Don't try to exec as it changes $[0], causing all sort of problems
  119. # (the dirname of $[0] is not the place where we might find the
  120. # original and so on. Autoconf is especially sensitive to this).
  121. @@ -494,16 +534,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  122. # ... but there are two gotchas:
  123. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  124. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  125. - # In both cases, we have to default to `cp -p'.
  126. + # In both cases, we have to default to `cp -pR'.
  127. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  128. - as_ln_s='cp -p'
  129. + as_ln_s='cp -pR'
  130. elif ln conf$$.file conf$$ 2>/dev/null; then
  131. as_ln_s=ln
  132. else
  133. - as_ln_s='cp -p'
  134. + as_ln_s='cp -pR'
  135. fi
  136. else
  137. - as_ln_s='cp -p'
  138. + as_ln_s='cp -pR'
  139. fi
  140. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  141. rmdir conf$$.dir 2>/dev/null
  142. @@ -515,28 +555,8 @@ else
  143. as_mkdir_p=false
  144. fi
  145. -if test -x / >/dev/null 2>&1; then
  146. - as_test_x='test -x'
  147. -else
  148. - if ls -dL / >/dev/null 2>&1; then
  149. - as_ls_L_option=L
  150. - else
  151. - as_ls_L_option=
  152. - fi
  153. - as_test_x='
  154. - eval sh -c '\''
  155. - if test -d "$1"; then
  156. - test -d "$1/.";
  157. - else
  158. - case $1 in #(
  159. - -*)set "./$1";;
  160. - esac;
  161. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  162. - ???[sx]*):;;*)false;;esac;fi
  163. - '\'' sh
  164. - '
  165. -fi
  166. -as_executable_p=$as_test_x
  167. +as_test_x='test -x'
  168. +as_executable_p=as_fn_executable_p
  169. # Sed expression to map a string onto a valid CPP name.
  170. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  171. @@ -683,9 +703,6 @@ CPPFLAGS
  172. LDFLAGS
  173. CXXFLAGS
  174. CXX
  175. -CPPUNIT_LIBS
  176. -CPPUNIT_CFLAGS
  177. -CPPUNIT_CONFIG
  178. am__untar
  179. am__tar
  180. AMTAR
  181. @@ -750,8 +767,6 @@ SHELL'
  182. ac_subst_files=''
  183. ac_user_opts='
  184. enable_option_checking
  185. -with_cppunit_prefix
  186. -with_cppunit_exec_prefix
  187. enable_dependency_tracking
  188. enable_shared
  189. enable_static
  190. @@ -1253,8 +1268,6 @@ target=$target_alias
  191. if test "x$host_alias" != x; then
  192. if test "x$build_alias" = x; then
  193. cross_compiling=maybe
  194. - $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  195. - If a cross compiler is detected then cross compile mode will be used" >&2
  196. elif test "x$build_alias" != "x$host_alias"; then
  197. cross_compiling=yes
  198. fi
  199. @@ -1418,8 +1431,10 @@ Optional Features:
  200. --disable-option-checking ignore unrecognized --enable/--with options
  201. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  202. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  203. - --disable-dependency-tracking speeds up one-time build
  204. - --enable-dependency-tracking do not reject slow dependency extractors
  205. + --enable-dependency-tracking
  206. + do not reject slow dependency extractors
  207. + --disable-dependency-tracking
  208. + speeds up one-time build
  209. --enable-shared[=PKGS] build shared libraries [default=yes]
  210. --enable-static[=PKGS] build static libraries [default=yes]
  211. --enable-fast-install[=PKGS]
  212. @@ -1437,8 +1452,6 @@ Optional Features:
  213. Optional Packages:
  214. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  215. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  216. - --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  217. - --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  218. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  219. both]
  220. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  221. @@ -1548,9 +1561,9 @@ test -n "$ac_init_help" && exit $ac_stat
  222. if $ac_init_version; then
  223. cat <<\_ACEOF
  224. rtorrent configure 0.9.2
  225. -generated by GNU Autoconf 2.68
  226. +generated by GNU Autoconf 2.69
  227. -Copyright (C) 2010 Free Software Foundation, Inc.
  228. +Copyright (C) 2012 Free Software Foundation, Inc.
  229. This configure script is free software; the Free Software Foundation
  230. gives unlimited permission to copy, distribute and modify it.
  231. _ACEOF
  232. @@ -1664,7 +1677,7 @@ $as_echo "$ac_try_echo"; } >&5
  233. test ! -s conftest.err
  234. } && test -s conftest$ac_exeext && {
  235. test "$cross_compiling" = yes ||
  236. - $as_test_x conftest$ac_exeext
  237. + test -x conftest$ac_exeext
  238. }; then :
  239. ac_retval=0
  240. else
  241. @@ -1924,7 +1937,7 @@ $as_echo "$ac_try_echo"; } >&5
  242. test ! -s conftest.err
  243. } && test -s conftest$ac_exeext && {
  244. test "$cross_compiling" = yes ||
  245. - $as_test_x conftest$ac_exeext
  246. + test -x conftest$ac_exeext
  247. }; then :
  248. ac_retval=0
  249. else
  250. @@ -2038,7 +2051,7 @@ This file contains any messages produced
  251. running configure, to aid debugging if configure makes a mistake.
  252. It was created by rtorrent $as_me 0.9.2, which was
  253. -generated by GNU Autoconf 2.68. Invocation command line was
  254. +generated by GNU Autoconf 2.69. Invocation command line was
  255. $ $0 $@
  256. @@ -2390,7 +2403,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  257. $as_echo "#define API_VERSION 6" >>confdefs.h
  258. -am__api_version='1.11'
  259. +am__api_version='1.12'
  260. ac_aux_dir=
  261. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  262. @@ -2458,7 +2471,7 @@ case $as_dir/ in #((
  263. # by default.
  264. for ac_prog in ginstall scoinst install; do
  265. for ac_exec_ext in '' $ac_executable_extensions; do
  266. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  267. + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  268. if test $ac_prog = install &&
  269. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  270. # AIX install. It has an incompatible calling convention.
  271. @@ -2516,9 +2529,6 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
  272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  273. $as_echo_n "checking whether build environment is sane... " >&6; }
  274. -# Just in case
  275. -sleep 1
  276. -echo timestamp > conftest.file
  277. # Reject unsafe characters in $srcdir or the absolute working directory
  278. # name. Accept space and tab only in the latter.
  279. am_lf='
  280. @@ -2529,32 +2539,40 @@ case `pwd` in
  281. esac
  282. case $srcdir in
  283. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  284. - as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  285. + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  286. esac
  287. -# Do `set' in a subshell so we don't clobber the current shell's
  288. +# Do 'set' in a subshell so we don't clobber the current shell's
  289. # arguments. Must try -L first in case configure is actually a
  290. # symlink; some systems play weird games with the mod time of symlinks
  291. # (eg FreeBSD returns the mod time of the symlink's containing
  292. # directory).
  293. if (
  294. - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  295. - if test "$*" = "X"; then
  296. - # -L didn't work.
  297. - set X `ls -t "$srcdir/configure" conftest.file`
  298. - fi
  299. - rm -f conftest.file
  300. - if test "$*" != "X $srcdir/configure conftest.file" \
  301. - && test "$*" != "X conftest.file $srcdir/configure"; then
  302. -
  303. - # If neither matched, then we have a broken ls. This can happen
  304. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  305. - # broken ls alias from the environment. This has actually
  306. - # happened. Such a system could not be considered "sane".
  307. - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  308. -alias in your environment" "$LINENO" 5
  309. - fi
  310. + am_has_slept=no
  311. + for am_try in 1 2; do
  312. + echo "timestamp, slept: $am_has_slept" > conftest.file
  313. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  314. + if test "$*" = "X"; then
  315. + # -L didn't work.
  316. + set X `ls -t "$srcdir/configure" conftest.file`
  317. + fi
  318. + if test "$*" != "X $srcdir/configure conftest.file" \
  319. + && test "$*" != "X conftest.file $srcdir/configure"; then
  320. + # If neither matched, then we have a broken ls. This can happen
  321. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  322. + # broken ls alias from the environment. This has actually
  323. + # happened. Such a system could not be considered "sane".
  324. + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  325. + alias in your environment" "$LINENO" 5
  326. + fi
  327. + if test "$2" = conftest.file || test $am_try -eq 2; then
  328. + break
  329. + fi
  330. + # Just in case.
  331. + sleep 1
  332. + am_has_slept=yes
  333. + done
  334. test "$2" = conftest.file
  335. )
  336. then
  337. @@ -2566,6 +2584,16 @@ Check your system clock" "$LINENO" 5
  338. fi
  339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  340. $as_echo "yes" >&6; }
  341. +# If we didn't sleep, we still need to ensure time stamps of config.status and
  342. +# generated files are strictly newer.
  343. +am_sleep_pid=
  344. +if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  345. + ( sleep 1 ) &
  346. + am_sleep_pid=$!
  347. +fi
  348. +
  349. +rm -f conftest.file
  350. +
  351. test "$program_prefix" != NONE &&
  352. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  353. # Use a double $ so make ignores it.
  354. @@ -2592,8 +2620,8 @@ if eval "$MISSING --run true"; then
  355. am_missing_run="$MISSING --run "
  356. else
  357. am_missing_run=
  358. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  359. -$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  360. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  361. +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  362. fi
  363. if test x"${install_sh}" != xset; then
  364. @@ -2605,10 +2633,10 @@ if test x"${install_sh}" != xset; then
  365. esac
  366. fi
  367. -# Installed binaries are usually stripped using `strip' when the user
  368. -# run `make install-strip'. However `strip' might not be the right
  369. +# Installed binaries are usually stripped using 'strip' when the user
  370. +# run "make install-strip". However 'strip' might not be the right
  371. # tool to use in cross-compilation environments, therefore Automake
  372. -# will honor the `STRIP' environment variable to overrule this program.
  373. +# will honor the 'STRIP' environment variable to overrule this program.
  374. if test "$cross_compiling" != no; then
  375. if test -n "$ac_tool_prefix"; then
  376. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  377. @@ -2627,7 +2655,7 @@ do
  378. IFS=$as_save_IFS
  379. test -z "$as_dir" && as_dir=.
  380. for ac_exec_ext in '' $ac_executable_extensions; do
  381. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  382. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  383. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  385. break 2
  386. @@ -2667,7 +2695,7 @@ do
  387. IFS=$as_save_IFS
  388. test -z "$as_dir" && as_dir=.
  389. for ac_exec_ext in '' $ac_executable_extensions; do
  390. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  391. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  392. ac_cv_prog_ac_ct_STRIP="strip"
  393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  394. break 2
  395. @@ -2718,7 +2746,7 @@ do
  396. test -z "$as_dir" && as_dir=.
  397. for ac_prog in mkdir gmkdir; do
  398. for ac_exec_ext in '' $ac_executable_extensions; do
  399. - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  400. + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  401. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  402. 'mkdir (GNU coreutils) '* | \
  403. 'mkdir (coreutils) '* | \
  404. @@ -2747,12 +2775,6 @@ fi
  405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  406. $as_echo "$MKDIR_P" >&6; }
  407. -mkdir_p="$MKDIR_P"
  408. -case $mkdir_p in
  409. - [\\/$]* | ?:[\\/]*) ;;
  410. - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  411. -esac
  412. -
  413. for ac_prog in gawk mawk nawk awk
  414. do
  415. # Extract the first word of "$ac_prog", so it can be a program name with args.
  416. @@ -2771,7 +2793,7 @@ do
  417. IFS=$as_save_IFS
  418. test -z "$as_dir" && as_dir=.
  419. for ac_exec_ext in '' $ac_executable_extensions; do
  420. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  421. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  422. ac_cv_prog_AWK="$ac_prog"
  423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  424. break 2
  425. @@ -2885,6 +2907,12 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_ru
  426. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  427. +# For better backward compatibility. To be removed once Automake 1.9.x
  428. +# dies out for good. For more background, see:
  429. +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  430. +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  431. +mkdir_p='$(MKDIR_P)'
  432. +
  433. # We need awk for the "check" target. The system "awk" is bad on
  434. # some platforms.
  435. # Always define AMTAR for backward compatibility. Yes, it's still used
  436. @@ -2899,147 +2927,7 @@ am__tar='$${TAR-tar} chof - "$$tardir"'
  437. ac_config_headers="$ac_config_headers config.h"
  438. -
  439. -
  440. -
  441. -# Check whether --with-cppunit-prefix was given.
  442. -if test "${with_cppunit_prefix+set}" = set; then :
  443. - withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  444. -else
  445. - cppunit_config_prefix=""
  446. -fi
  447. -
  448. -
  449. -# Check whether --with-cppunit-exec-prefix was given.
  450. -if test "${with_cppunit_exec_prefix+set}" = set; then :
  451. - withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  452. -else
  453. - cppunit_config_exec_prefix=""
  454. -fi
  455. -
  456. -
  457. - if test x$cppunit_config_exec_prefix != x ; then
  458. - cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  459. - if test x${CPPUNIT_CONFIG+set} != xset ; then
  460. - CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  461. - fi
  462. - fi
  463. - if test x$cppunit_config_prefix != x ; then
  464. - cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  465. - if test x${CPPUNIT_CONFIG+set} != xset ; then
  466. - CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  467. - fi
  468. - fi
  469. -
  470. - # Extract the first word of "cppunit-config", so it can be a program name with args.
  471. -set dummy cppunit-config; ac_word=$2
  472. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  473. -$as_echo_n "checking for $ac_word... " >&6; }
  474. -if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then :
  475. - $as_echo_n "(cached) " >&6
  476. -else
  477. - case $CPPUNIT_CONFIG in
  478. - [\\/]* | ?:[\\/]*)
  479. - ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  480. - ;;
  481. - *)
  482. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  483. -for as_dir in $PATH
  484. -do
  485. - IFS=$as_save_IFS
  486. - test -z "$as_dir" && as_dir=.
  487. - for ac_exec_ext in '' $ac_executable_extensions; do
  488. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  489. - ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  490. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  491. - break 2
  492. - fi
  493. -done
  494. - done
  495. -IFS=$as_save_IFS
  496. -
  497. - test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  498. - ;;
  499. -esac
  500. -fi
  501. -CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  502. -if test -n "$CPPUNIT_CONFIG"; then
  503. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  504. -$as_echo "$CPPUNIT_CONFIG" >&6; }
  505. -else
  506. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  507. -$as_echo "no" >&6; }
  508. -fi
  509. -
  510. -
  511. - cppunit_version_min=1.9.6
  512. -
  513. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  514. -$as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  515. - no_cppunit=""
  516. - if test "$CPPUNIT_CONFIG" = "no" ; then
  517. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  518. -$as_echo "no" >&6; }
  519. - no_cppunit=yes
  520. - else
  521. - CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  522. - CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  523. - cppunit_version=`$CPPUNIT_CONFIG --version`
  524. -
  525. - cppunit_major_version=`echo $cppunit_version | \
  526. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  527. - cppunit_minor_version=`echo $cppunit_version | \
  528. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  529. - cppunit_micro_version=`echo $cppunit_version | \
  530. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  531. -
  532. - cppunit_major_min=`echo $cppunit_version_min | \
  533. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  534. - if test "x${cppunit_major_min}" = "x" ; then
  535. - cppunit_major_min=0
  536. - fi
  537. -
  538. - cppunit_minor_min=`echo $cppunit_version_min | \
  539. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  540. - if test "x${cppunit_minor_min}" = "x" ; then
  541. - cppunit_minor_min=0
  542. - fi
  543. -
  544. - cppunit_micro_min=`echo $cppunit_version_min | \
  545. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  546. - if test "x${cppunit_micro_min}" = "x" ; then
  547. - cppunit_micro_min=0
  548. - fi
  549. -
  550. - cppunit_version_proper=`expr \
  551. - $cppunit_major_version \> $cppunit_major_min \| \
  552. - $cppunit_major_version \= $cppunit_major_min \& \
  553. - $cppunit_minor_version \> $cppunit_minor_min \| \
  554. - $cppunit_major_version \= $cppunit_major_min \& \
  555. - $cppunit_minor_version \= $cppunit_minor_min \& \
  556. - $cppunit_micro_version \>= $cppunit_micro_min `
  557. -
  558. - if test "$cppunit_version_proper" = "1" ; then
  559. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  560. -$as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  561. - else
  562. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  563. -$as_echo "no" >&6; }
  564. - no_cppunit=yes
  565. - fi
  566. - fi
  567. -
  568. - if test "x$no_cppunit" = x ; then
  569. - :
  570. - else
  571. - CPPUNIT_CFLAGS=""
  572. - CPPUNIT_LIBS=""
  573. - :
  574. - fi
  575. -
  576. -
  577. -
  578. -
  579. +AM_PATH_CPPUNIT(1.9.6)
  580. ac_ext=cpp
  581. ac_cpp='$CXXCPP $CPPFLAGS'
  582. @@ -3069,7 +2957,7 @@ do
  583. IFS=$as_save_IFS
  584. test -z "$as_dir" && as_dir=.
  585. for ac_exec_ext in '' $ac_executable_extensions; do
  586. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  587. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  588. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  590. break 2
  591. @@ -3113,7 +3001,7 @@ do
  592. IFS=$as_save_IFS
  593. test -z "$as_dir" && as_dir=.
  594. for ac_exec_ext in '' $ac_executable_extensions; do
  595. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  596. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  597. ac_cv_prog_ac_ct_CXX="$ac_prog"
  598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  599. break 2
  600. @@ -3566,7 +3454,7 @@ am__quote=
  601. _am_result=none
  602. # First try GNU make style include.
  603. echo "include confinc" > confmf
  604. -# Ignore all kinds of additional output from `make'.
  605. +# Ignore all kinds of additional output from 'make'.
  606. case `$am_make -s -f confmf 2> /dev/null` in #(
  607. *the\ am__doit\ target*)
  608. am__include=include
  609. @@ -3622,8 +3510,8 @@ else
  610. # We make a subdir and do the tests there. Otherwise we can end up
  611. # making bogus files that we don't know about and never remove. For
  612. # instance it was reported that on HP-UX the gcc test will end up
  613. - # making a dummy file named `D' -- because `-MD' means `put the output
  614. - # in D'.
  615. + # making a dummy file named 'D' -- because '-MD' means "put the output
  616. + # in D".
  617. rm -rf conftest.dir
  618. mkdir conftest.dir
  619. # Copy depcomp to subdir because otherwise we won't find it if we're
  620. @@ -3658,16 +3546,16 @@ else
  621. : > sub/conftest.c
  622. for i in 1 2 3 4 5 6; do
  623. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  624. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  625. - # Solaris 8's {/usr,}/bin/sh.
  626. - touch sub/conftst$i.h
  627. + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  628. + # Solaris 10 /bin/sh.
  629. + echo '/* dummy */' > sub/conftst$i.h
  630. done
  631. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  632. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  633. + # We check with '-c' and '-o' for the sake of the "dashmstdout"
  634. # mode. It turns out that the SunPro C++ compiler does not properly
  635. - # handle `-M -o', and we need to detect this. Also, some Intel
  636. - # versions had trouble with output in subdirs
  637. + # handle '-M -o', and we need to detect this. Also, some Intel
  638. + # versions had trouble with output in subdirs.
  639. am__obj=sub/conftest.${OBJEXT-o}
  640. am__minus_obj="-o $am__obj"
  641. case $depmode in
  642. @@ -3676,8 +3564,8 @@ else
  643. test "$am__universal" = false || continue
  644. ;;
  645. nosideeffect)
  646. - # after this tag, mechanisms are not by side-effect, so they'll
  647. - # only be used when explicitly requested
  648. + # After this tag, mechanisms are not by side-effect, so they'll
  649. + # only be used when explicitly requested.
  650. if test "x$enable_dependency_tracking" = xyes; then
  651. continue
  652. else
  653. @@ -3685,7 +3573,7 @@ else
  654. fi
  655. ;;
  656. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  657. - # This compiler won't grok `-c -o', but also, the minuso test has
  658. + # This compiler won't grok '-c -o', but also, the minuso test has
  659. # not run yet. These depmodes are late enough in the game, and
  660. # so weak that their functioning should not be impacted.
  661. am__obj=conftest.${OBJEXT-o}
  662. @@ -3926,7 +3814,7 @@ do
  663. IFS=$as_save_IFS
  664. test -z "$as_dir" && as_dir=.
  665. for ac_exec_ext in '' $ac_executable_extensions; do
  666. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  667. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  668. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  670. break 2
  671. @@ -3966,7 +3854,7 @@ do
  672. IFS=$as_save_IFS
  673. test -z "$as_dir" && as_dir=.
  674. for ac_exec_ext in '' $ac_executable_extensions; do
  675. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  676. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  677. ac_cv_prog_ac_ct_CC="gcc"
  678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  679. break 2
  680. @@ -4019,7 +3907,7 @@ do
  681. IFS=$as_save_IFS
  682. test -z "$as_dir" && as_dir=.
  683. for ac_exec_ext in '' $ac_executable_extensions; do
  684. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  685. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  686. ac_cv_prog_CC="${ac_tool_prefix}cc"
  687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  688. break 2
  689. @@ -4060,7 +3948,7 @@ do
  690. IFS=$as_save_IFS
  691. test -z "$as_dir" && as_dir=.
  692. for ac_exec_ext in '' $ac_executable_extensions; do
  693. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  694. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  695. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  696. ac_prog_rejected=yes
  697. continue
  698. @@ -4118,7 +4006,7 @@ do
  699. IFS=$as_save_IFS
  700. test -z "$as_dir" && as_dir=.
  701. for ac_exec_ext in '' $ac_executable_extensions; do
  702. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  703. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  704. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  706. break 2
  707. @@ -4162,7 +4050,7 @@ do
  708. IFS=$as_save_IFS
  709. test -z "$as_dir" && as_dir=.
  710. for ac_exec_ext in '' $ac_executable_extensions; do
  711. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  712. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  713. ac_cv_prog_ac_ct_CC="$ac_prog"
  714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  715. break 2
  716. @@ -4358,8 +4246,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
  717. /* end confdefs.h. */
  718. #include <stdarg.h>
  719. #include <stdio.h>
  720. -#include <sys/types.h>
  721. -#include <sys/stat.h>
  722. +struct stat;
  723. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  724. struct buf { int x; };
  725. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  726. @@ -4455,8 +4342,8 @@ else
  727. # We make a subdir and do the tests there. Otherwise we can end up
  728. # making bogus files that we don't know about and never remove. For
  729. # instance it was reported that on HP-UX the gcc test will end up
  730. - # making a dummy file named `D' -- because `-MD' means `put the output
  731. - # in D'.
  732. + # making a dummy file named 'D' -- because '-MD' means "put the output
  733. + # in D".
  734. rm -rf conftest.dir
  735. mkdir conftest.dir
  736. # Copy depcomp to subdir because otherwise we won't find it if we're
  737. @@ -4491,16 +4378,16 @@ else
  738. : > sub/conftest.c
  739. for i in 1 2 3 4 5 6; do
  740. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  741. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  742. - # Solaris 8's {/usr,}/bin/sh.
  743. - touch sub/conftst$i.h
  744. + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  745. + # Solaris 10 /bin/sh.
  746. + echo '/* dummy */' > sub/conftst$i.h
  747. done
  748. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  749. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  750. + # We check with '-c' and '-o' for the sake of the "dashmstdout"
  751. # mode. It turns out that the SunPro C++ compiler does not properly
  752. - # handle `-M -o', and we need to detect this. Also, some Intel
  753. - # versions had trouble with output in subdirs
  754. + # handle '-M -o', and we need to detect this. Also, some Intel
  755. + # versions had trouble with output in subdirs.
  756. am__obj=sub/conftest.${OBJEXT-o}
  757. am__minus_obj="-o $am__obj"
  758. case $depmode in
  759. @@ -4509,8 +4396,8 @@ else
  760. test "$am__universal" = false || continue
  761. ;;
  762. nosideeffect)
  763. - # after this tag, mechanisms are not by side-effect, so they'll
  764. - # only be used when explicitly requested
  765. + # After this tag, mechanisms are not by side-effect, so they'll
  766. + # only be used when explicitly requested.
  767. if test "x$enable_dependency_tracking" = xyes; then
  768. continue
  769. else
  770. @@ -4518,7 +4405,7 @@ else
  771. fi
  772. ;;
  773. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  774. - # This compiler won't grok `-c -o', but also, the minuso test has
  775. + # This compiler won't grok '-c -o', but also, the minuso test has
  776. # not run yet. These depmodes are late enough in the game, and
  777. # so weak that their functioning should not be impacted.
  778. am__obj=conftest.${OBJEXT-o}
  779. @@ -4594,7 +4481,7 @@ do
  780. for ac_prog in sed gsed; do
  781. for ac_exec_ext in '' $ac_executable_extensions; do
  782. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  783. - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  784. + as_fn_executable_p "$ac_path_SED" || continue
  785. # Check for GNU ac_path_SED and select it if it is found.
  786. # Check for GNU $ac_path_SED
  787. case `"$ac_path_SED" --version 2>&1` in
  788. @@ -4670,7 +4557,7 @@ do
  789. for ac_prog in grep ggrep; do
  790. for ac_exec_ext in '' $ac_executable_extensions; do
  791. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  792. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  793. + as_fn_executable_p "$ac_path_GREP" || continue
  794. # Check for GNU ac_path_GREP and select it if it is found.
  795. # Check for GNU $ac_path_GREP
  796. case `"$ac_path_GREP" --version 2>&1` in
  797. @@ -4736,7 +4623,7 @@ do
  798. for ac_prog in egrep; do
  799. for ac_exec_ext in '' $ac_executable_extensions; do
  800. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  801. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  802. + as_fn_executable_p "$ac_path_EGREP" || continue
  803. # Check for GNU ac_path_EGREP and select it if it is found.
  804. # Check for GNU $ac_path_EGREP
  805. case `"$ac_path_EGREP" --version 2>&1` in
  806. @@ -4803,7 +4690,7 @@ do
  807. for ac_prog in fgrep; do
  808. for ac_exec_ext in '' $ac_executable_extensions; do
  809. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  810. - { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  811. + as_fn_executable_p "$ac_path_FGREP" || continue
  812. # Check for GNU ac_path_FGREP and select it if it is found.
  813. # Check for GNU $ac_path_FGREP
  814. case `"$ac_path_FGREP" --version 2>&1` in
  815. @@ -5059,7 +4946,7 @@ do
  816. IFS=$as_save_IFS
  817. test -z "$as_dir" && as_dir=.
  818. for ac_exec_ext in '' $ac_executable_extensions; do
  819. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  820. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  821. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  823. break 2
  824. @@ -5103,7 +4990,7 @@ do
  825. IFS=$as_save_IFS
  826. test -z "$as_dir" && as_dir=.
  827. for ac_exec_ext in '' $ac_executable_extensions; do
  828. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  829. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  830. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  832. break 2
  833. @@ -5527,7 +5414,7 @@ do
  834. IFS=$as_save_IFS
  835. test -z "$as_dir" && as_dir=.
  836. for ac_exec_ext in '' $ac_executable_extensions; do
  837. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  838. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  839. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  841. break 2
  842. @@ -5567,7 +5454,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_ac_ct_OBJDUMP="objdump"
  849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  850. break 2
  851. @@ -5873,7 +5760,7 @@ do
  852. IFS=$as_save_IFS
  853. test -z "$as_dir" && as_dir=.
  854. for ac_exec_ext in '' $ac_executable_extensions; do
  855. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  856. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  857. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  859. break 2
  860. @@ -5913,7 +5800,7 @@ do
  861. IFS=$as_save_IFS
  862. test -z "$as_dir" && as_dir=.
  863. for ac_exec_ext in '' $ac_executable_extensions; do
  864. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  865. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  866. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  868. break 2
  869. @@ -6017,7 +5904,7 @@ do
  870. IFS=$as_save_IFS
  871. test -z "$as_dir" && as_dir=.
  872. for ac_exec_ext in '' $ac_executable_extensions; do
  873. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  874. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  875. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  877. break 2
  878. @@ -6061,7 +5948,7 @@ do
  879. IFS=$as_save_IFS
  880. test -z "$as_dir" && as_dir=.
  881. for ac_exec_ext in '' $ac_executable_extensions; do
  882. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  883. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  884. ac_cv_prog_ac_ct_AR="$ac_prog"
  885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  886. break 2
  887. @@ -6186,7 +6073,7 @@ do
  888. IFS=$as_save_IFS
  889. test -z "$as_dir" && as_dir=.
  890. for ac_exec_ext in '' $ac_executable_extensions; do
  891. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  892. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  893. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  895. break 2
  896. @@ -6226,7 +6113,7 @@ do
  897. IFS=$as_save_IFS
  898. test -z "$as_dir" && as_dir=.
  899. for ac_exec_ext in '' $ac_executable_extensions; do
  900. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  901. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  902. ac_cv_prog_ac_ct_STRIP="strip"
  903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  904. break 2
  905. @@ -6285,7 +6172,7 @@ do
  906. IFS=$as_save_IFS
  907. test -z "$as_dir" && as_dir=.
  908. for ac_exec_ext in '' $ac_executable_extensions; do
  909. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  910. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  911. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  913. break 2
  914. @@ -6325,7 +6212,7 @@ do
  915. IFS=$as_save_IFS
  916. test -z "$as_dir" && as_dir=.
  917. for ac_exec_ext in '' $ac_executable_extensions; do
  918. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  919. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  920. ac_cv_prog_ac_ct_RANLIB="ranlib"
  921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  922. break 2
  923. @@ -6974,7 +6861,7 @@ do
  924. IFS=$as_save_IFS
  925. test -z "$as_dir" && as_dir=.
  926. for ac_exec_ext in '' $ac_executable_extensions; do
  927. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  928. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  929. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  931. break 2
  932. @@ -7014,7 +6901,7 @@ do
  933. IFS=$as_save_IFS
  934. test -z "$as_dir" && as_dir=.
  935. for ac_exec_ext in '' $ac_executable_extensions; do
  936. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  937. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  938. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  940. break 2
  941. @@ -7094,7 +6981,7 @@ do
  942. IFS=$as_save_IFS
  943. test -z "$as_dir" && as_dir=.
  944. for ac_exec_ext in '' $ac_executable_extensions; do
  945. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  946. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  947. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  949. break 2
  950. @@ -7134,7 +7021,7 @@ do
  951. IFS=$as_save_IFS
  952. test -z "$as_dir" && as_dir=.
  953. for ac_exec_ext in '' $ac_executable_extensions; do
  954. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  955. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  956. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  958. break 2
  959. @@ -7186,7 +7073,7 @@ do
  960. IFS=$as_save_IFS
  961. test -z "$as_dir" && as_dir=.
  962. for ac_exec_ext in '' $ac_executable_extensions; do
  963. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  964. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  965. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  967. break 2
  968. @@ -7226,7 +7113,7 @@ do
  969. IFS=$as_save_IFS
  970. test -z "$as_dir" && as_dir=.
  971. for ac_exec_ext in '' $ac_executable_extensions; do
  972. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  973. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  974. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  976. break 2
  977. @@ -7278,7 +7165,7 @@ do
  978. IFS=$as_save_IFS
  979. test -z "$as_dir" && as_dir=.
  980. for ac_exec_ext in '' $ac_executable_extensions; do
  981. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  982. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  983. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  985. break 2
  986. @@ -7318,7 +7205,7 @@ do
  987. IFS=$as_save_IFS
  988. test -z "$as_dir" && as_dir=.
  989. for ac_exec_ext in '' $ac_executable_extensions; do
  990. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  991. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  992. ac_cv_prog_ac_ct_LIPO="lipo"
  993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  994. break 2
  995. @@ -7370,7 +7257,7 @@ do
  996. IFS=$as_save_IFS
  997. test -z "$as_dir" && as_dir=.
  998. for ac_exec_ext in '' $ac_executable_extensions; do
  999. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1000. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1001. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  1002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1003. break 2
  1004. @@ -7410,7 +7297,7 @@ do
  1005. IFS=$as_save_IFS
  1006. test -z "$as_dir" && as_dir=.
  1007. for ac_exec_ext in '' $ac_executable_extensions; do
  1008. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1009. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1010. ac_cv_prog_ac_ct_OTOOL="otool"
  1011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1012. break 2
  1013. @@ -7462,7 +7349,7 @@ do
  1014. IFS=$as_save_IFS
  1015. test -z "$as_dir" && as_dir=.
  1016. for ac_exec_ext in '' $ac_executable_extensions; do
  1017. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1018. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1019. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  1020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1021. break 2
  1022. @@ -7502,7 +7389,7 @@ do
  1023. IFS=$as_save_IFS
  1024. test -z "$as_dir" && as_dir=.
  1025. for ac_exec_ext in '' $ac_executable_extensions; do
  1026. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1027. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1028. ac_cv_prog_ac_ct_OTOOL64="otool64"
  1029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1030. break 2
  1031. @@ -9104,7 +8991,7 @@ $as_echo_n "checking whether the $compil
  1032. enable_shared_with_static_runtimes=no
  1033. export_dynamic_flag_spec=
  1034. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1035. - hardcode_automatic=no
  1036. + hardcode_automatic=yes
  1037. hardcode_direct=no
  1038. hardcode_direct_absolute=no
  1039. hardcode_libdir_flag_spec=
  1040. @@ -12136,7 +12023,7 @@ hardcode_libdir_flag_spec_CXX=
  1041. hardcode_libdir_separator_CXX=
  1042. hardcode_minus_L_CXX=no
  1043. hardcode_shlibpath_var_CXX=unsupported
  1044. -hardcode_automatic_CXX=no
  1045. +hardcode_automatic_CXX=yes
  1046. inherit_rpath_CXX=no
  1047. module_cmds_CXX=
  1048. module_expsym_cmds_CXX=
  1049. @@ -15665,42 +15552,8 @@ _ACEOF
  1050. esac
  1051. rm -rf conftest*
  1052. fi
  1053. -fi
  1054. -
  1055. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
  1056. -$as_echo_n "checking for execinfo.h... " >&6; }
  1057. -
  1058. - if test "$cross_compiling" = yes; then :
  1059. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1060. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1061. -as_fn_error $? "cannot run test program while cross compiling
  1062. -See \`config.log' for more details" "$LINENO" 5; }
  1063. -else
  1064. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1065. -/* end confdefs.h. */
  1066. -
  1067. - #include <execinfo.h>
  1068. - int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
  1069. -
  1070. -_ACEOF
  1071. -if ac_fn_c_try_run "$LINENO"; then :
  1072. -
  1073. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1074. -$as_echo "yes" >&6; }
  1075. -
  1076. -$as_echo "#define USE_EXECINFO 1" >>confdefs.h
  1077. -
  1078. -
  1079. -else
  1080. -
  1081. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1082. -$as_echo "no" >&6; }
  1083. -
  1084. -fi
  1085. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1086. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  1087. fi
  1088. @@ -16350,7 +16203,7 @@ do
  1089. IFS=$as_save_IFS
  1090. test -z "$as_dir" && as_dir=.
  1091. for ac_exec_ext in '' $ac_executable_extensions; do
  1092. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1093. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1094. ac_cv_prog_ax_pthread_config="yes"
  1095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1096. break 2
  1097. @@ -16553,7 +16406,7 @@ do
  1098. IFS=$as_save_IFS
  1099. test -z "$as_dir" && as_dir=.
  1100. for ac_exec_ext in '' $ac_executable_extensions; do
  1101. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1102. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1103. ac_cv_prog_PTHREAD_CC="$ac_prog"
  1104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1105. break 2
  1106. @@ -17514,7 +17367,7 @@ do
  1107. IFS=$as_save_IFS
  1108. test -z "$as_dir" && as_dir=.
  1109. for ac_exec_ext in '' $ac_executable_extensions; do
  1110. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1111. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1112. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1114. break 2
  1115. @@ -17557,7 +17410,7 @@ do
  1116. IFS=$as_save_IFS
  1117. test -z "$as_dir" && as_dir=.
  1118. for ac_exec_ext in '' $ac_executable_extensions; do
  1119. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1120. + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1121. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1123. break 2
  1124. @@ -18204,6 +18057,14 @@ LIBOBJS=$ac_libobjs
  1125. LTLIBOBJS=$ac_ltlibobjs
  1126. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  1127. +$as_echo_n "checking that generated files are newer than configure... " >&6; }
  1128. + if test -n "$am_sleep_pid"; then
  1129. + # Hide warnings about reused PIDs.
  1130. + wait $am_sleep_pid 2>/dev/null
  1131. + fi
  1132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  1133. +$as_echo "done" >&6; }
  1134. if test -n "$EXEEXT"; then
  1135. am__EXEEXT_TRUE=
  1136. am__EXEEXT_FALSE='#'
  1137. @@ -18522,16 +18383,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  1138. # ... but there are two gotchas:
  1139. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  1140. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  1141. - # In both cases, we have to default to `cp -p'.
  1142. + # In both cases, we have to default to `cp -pR'.
  1143. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  1144. - as_ln_s='cp -p'
  1145. + as_ln_s='cp -pR'
  1146. elif ln conf$$.file conf$$ 2>/dev/null; then
  1147. as_ln_s=ln
  1148. else
  1149. - as_ln_s='cp -p'
  1150. + as_ln_s='cp -pR'
  1151. fi
  1152. else
  1153. - as_ln_s='cp -p'
  1154. + as_ln_s='cp -pR'
  1155. fi
  1156. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  1157. rmdir conf$$.dir 2>/dev/null
  1158. @@ -18591,28 +18452,16 @@ else
  1159. as_mkdir_p=false
  1160. fi
  1161. -if test -x / >/dev/null 2>&1; then
  1162. - as_test_x='test -x'
  1163. -else
  1164. - if ls -dL / >/dev/null 2>&1; then
  1165. - as_ls_L_option=L
  1166. - else
  1167. - as_ls_L_option=
  1168. - fi
  1169. - as_test_x='
  1170. - eval sh -c '\''
  1171. - if test -d "$1"; then
  1172. - test -d "$1/.";
  1173. - else
  1174. - case $1 in #(
  1175. - -*)set "./$1";;
  1176. - esac;
  1177. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  1178. - ???[sx]*):;;*)false;;esac;fi
  1179. - '\'' sh
  1180. - '
  1181. -fi
  1182. -as_executable_p=$as_test_x
  1183. +
  1184. +# as_fn_executable_p FILE
  1185. +# -----------------------
  1186. +# Test if FILE is an executable regular file.
  1187. +as_fn_executable_p ()
  1188. +{
  1189. + test -f "$1" && test -x "$1"
  1190. +} # as_fn_executable_p
  1191. +as_test_x='test -x'
  1192. +as_executable_p=as_fn_executable_p
  1193. # Sed expression to map a string onto a valid CPP name.
  1194. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  1195. @@ -18634,7 +18483,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
  1196. # values after options handling.
  1197. ac_log="
  1198. This file was extended by rtorrent $as_me 0.9.2, which was
  1199. -generated by GNU Autoconf 2.68. Invocation command line was
  1200. +generated by GNU Autoconf 2.69. Invocation command line was
  1201. CONFIG_FILES = $CONFIG_FILES
  1202. CONFIG_HEADERS = $CONFIG_HEADERS
  1203. @@ -18700,10 +18549,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  1204. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  1205. ac_cs_version="\\
  1206. rtorrent config.status 0.9.2
  1207. -configured by $0, generated by GNU Autoconf 2.68,
  1208. +configured by $0, generated by GNU Autoconf 2.69,
  1209. with options \\"\$ac_cs_config\\"
  1210. -Copyright (C) 2010 Free Software Foundation, Inc.
  1211. +Copyright (C) 2012 Free Software Foundation, Inc.
  1212. This config.status script is free software; the Free Software Foundation
  1213. gives unlimited permission to copy, distribute and modify it."
  1214. @@ -18794,7 +18643,7 @@ fi
  1215. _ACEOF
  1216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  1217. if \$ac_cs_recheck; then
  1218. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  1219. + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  1220. shift
  1221. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  1222. CONFIG_SHELL='$SHELL'
  1223. @@ -19825,7 +19674,7 @@ $as_echo "$as_me: executing $ac_file com
  1224. # Strip MF so we end up with the name of the file.
  1225. mf=`echo "$mf" | sed -e 's/:.*$//'`
  1226. # Check whether this is an Automake generated Makefile or not.
  1227. - # We used to match only the files named `Makefile.in', but
  1228. + # We used to match only the files named 'Makefile.in', but
  1229. # some people rename them; so instead we look at the file content.
  1230. # Grep'ing the first line is not enough: some people post-process
  1231. # each Makefile.in and add a new line on top of each file to say so.
  1232. @@ -19859,21 +19708,19 @@ $as_echo X"$mf" |
  1233. continue
  1234. fi
  1235. # Extract the definition of DEPDIR, am__include, and am__quote
  1236. - # from the Makefile without running `make'.
  1237. + # from the Makefile without running 'make'.
  1238. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  1239. test -z "$DEPDIR" && continue
  1240. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  1241. test -z "am__include" && continue
  1242. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  1243. - # When using ansi2knr, U may be empty or an underscore; expand it
  1244. - U=`sed -n 's/^U = //p' < "$mf"`
  1245. # Find all dependency output files, they are included files with
  1246. # $(DEPDIR) in their names. We invoke sed twice because it is the
  1247. # simplest approach to changing $(DEPDIR) to its actual value in the
  1248. # expansion.
  1249. for file in `sed -n "
  1250. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  1251. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  1252. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  1253. # Make sure the directory exists.
  1254. test -f "$dirpart/$file" && continue
  1255. fdir=`$as_dirname -- "$file" ||