002-fix-kernel-version-detection.patch 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954
  1. --- a/configure
  2. +++ b/configure
  3. @@ -1,9 +1,11 @@
  4. #! /bin/sh
  5. # Guess values for system-dependent variables and create Makefiles.
  6. -# Generated by GNU Autoconf 2.69 for xtables-addons 2.5.
  7. +# Generated by GNU Autoconf 2.68 for xtables-addons 2.5.
  8. #
  9. #
  10. -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  11. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  13. +# Foundation, Inc.
  14. #
  15. #
  16. # This configure script is free software; the Free Software Foundation
  17. @@ -132,31 +134,6 @@ export LANGUAGE
  18. # CDPATH.
  19. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20. -# Use a proper internal environment variable to ensure we don't fall
  21. - # into an infinite loop, continuously re-executing ourselves.
  22. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  23. - _as_can_reexec=no; export _as_can_reexec;
  24. - # We cannot yet assume a decent shell, so we have to provide a
  25. -# neutralization value for shells without unset; and this also
  26. -# works around shells that cannot unset nonexistent variables.
  27. -# Preserve -v and -x to the replacement shell.
  28. -BASH_ENV=/dev/null
  29. -ENV=/dev/null
  30. -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  31. -case $- in # ((((
  32. - *v*x* | *x*v* ) as_opts=-vx ;;
  33. - *v* ) as_opts=-v ;;
  34. - *x* ) as_opts=-x ;;
  35. - * ) as_opts= ;;
  36. -esac
  37. -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  38. -# Admittedly, this is quite paranoid, since all the known shells bail
  39. -# out after a failed `exec'.
  40. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  41. -as_fn_exit 255
  42. - fi
  43. - # We don't want this to propagate to other subprocesses.
  44. - { _as_can_reexec=; unset _as_can_reexec;}
  45. if test "x$CONFIG_SHELL" = x; then
  46. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  47. emulate sh
  48. @@ -190,8 +167,7 @@ if ( set x; as_fn_ret_success y && test
  49. else
  50. exitcode=1; echo positional parameters were not saved.
  51. fi
  52. -test x\$exitcode = x0 || exit 1
  53. -test -x / || exit 1"
  54. +test x\$exitcode = x0 || exit 1"
  55. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  56. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  57. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  58. @@ -244,25 +220,21 @@ IFS=$as_save_IFS
  59. if test "x$CONFIG_SHELL" != x; then :
  60. - export CONFIG_SHELL
  61. - # We cannot yet assume a decent shell, so we have to provide a
  62. -# neutralization value for shells without unset; and this also
  63. -# works around shells that cannot unset nonexistent variables.
  64. -# Preserve -v and -x to the replacement shell.
  65. -BASH_ENV=/dev/null
  66. -ENV=/dev/null
  67. -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  68. -case $- in # ((((
  69. - *v*x* | *x*v* ) as_opts=-vx ;;
  70. - *v* ) as_opts=-v ;;
  71. - *x* ) as_opts=-x ;;
  72. - * ) as_opts= ;;
  73. -esac
  74. -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  75. -# Admittedly, this is quite paranoid, since all the known shells bail
  76. -# out after a failed `exec'.
  77. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  78. -exit 255
  79. + # We cannot yet assume a decent shell, so we have to provide a
  80. + # neutralization value for shells without unset; and this also
  81. + # works around shells that cannot unset nonexistent variables.
  82. + # Preserve -v and -x to the replacement shell.
  83. + BASH_ENV=/dev/null
  84. + ENV=/dev/null
  85. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  86. + export CONFIG_SHELL
  87. + case $- in # ((((
  88. + *v*x* | *x*v* ) as_opts=-vx ;;
  89. + *v* ) as_opts=-v ;;
  90. + *x* ) as_opts=-x ;;
  91. + * ) as_opts= ;;
  92. + esac
  93. + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  94. fi
  95. if test x$as_have_required = xno; then :
  96. @@ -364,14 +336,6 @@ $as_echo X"$as_dir" |
  97. } # as_fn_mkdir_p
  98. -
  99. -# as_fn_executable_p FILE
  100. -# -----------------------
  101. -# Test if FILE is an executable regular file.
  102. -as_fn_executable_p ()
  103. -{
  104. - test -f "$1" && test -x "$1"
  105. -} # as_fn_executable_p
  106. # as_fn_append VAR VALUE
  107. # ----------------------
  108. # Append the text in VALUE to the end of the definition contained in VAR. Take
  109. @@ -493,10 +457,6 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
  110. chmod +x "$as_me.lineno" ||
  111. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  112. - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  113. - # already done that, so ensure we don't try to do so again and fall
  114. - # in an infinite loop. This has already happened in practice.
  115. - _as_can_reexec=no; export _as_can_reexec
  116. # Don't try to exec as it changes $[0], causing all sort of problems
  117. # (the dirname of $[0] is not the place where we might find the
  118. # original and so on. Autoconf is especially sensitive to this).
  119. @@ -531,16 +491,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  120. # ... but there are two gotchas:
  121. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  122. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  123. - # In both cases, we have to default to `cp -pR'.
  124. + # In both cases, we have to default to `cp -p'.
  125. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  126. - as_ln_s='cp -pR'
  127. + as_ln_s='cp -p'
  128. elif ln conf$$.file conf$$ 2>/dev/null; then
  129. as_ln_s=ln
  130. else
  131. - as_ln_s='cp -pR'
  132. + as_ln_s='cp -p'
  133. fi
  134. else
  135. - as_ln_s='cp -pR'
  136. + as_ln_s='cp -p'
  137. fi
  138. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  139. rmdir conf$$.dir 2>/dev/null
  140. @@ -552,8 +512,28 @@ else
  141. as_mkdir_p=false
  142. fi
  143. -as_test_x='test -x'
  144. -as_executable_p=as_fn_executable_p
  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. # Sed expression to map a string onto a valid CPP name.
  168. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  169. @@ -688,10 +668,6 @@ CPPFLAGS
  170. LDFLAGS
  171. CFLAGS
  172. CC
  173. -AM_BACKSLASH
  174. -AM_DEFAULT_VERBOSITY
  175. -AM_DEFAULT_V
  176. -AM_V
  177. am__untar
  178. am__tar
  179. AMTAR
  180. @@ -756,7 +732,6 @@ SHELL'
  181. ac_subst_files=''
  182. ac_user_opts='
  183. enable_option_checking
  184. -enable_silent_rules
  185. enable_dependency_tracking
  186. enable_static
  187. enable_shared
  188. @@ -1237,6 +1212,8 @@ target=$target_alias
  189. if test "x$host_alias" != x; then
  190. if test "x$build_alias" = x; then
  191. cross_compiling=maybe
  192. + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  193. + If a cross compiler is detected then cross compile mode will be used" >&2
  194. elif test "x$build_alias" != "x$host_alias"; then
  195. cross_compiling=yes
  196. fi
  197. @@ -1400,12 +1377,8 @@ Optional Features:
  198. --disable-option-checking ignore unrecognized --enable/--with options
  199. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  200. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  201. - --enable-silent-rules less verbose build output (undo: "make V=1")
  202. - --disable-silent-rules verbose build output (undo: "make V=0")
  203. - --enable-dependency-tracking
  204. - do not reject slow dependency extractors
  205. - --disable-dependency-tracking
  206. - speeds up one-time build
  207. + --disable-dependency-tracking speeds up one-time build
  208. + --enable-dependency-tracking do not reject slow dependency extractors
  209. --enable-static[=PKGS] build static libraries [default=no]
  210. --enable-shared[=PKGS] build shared libraries [default=yes]
  211. --enable-fast-install[=PKGS]
  212. @@ -1415,7 +1388,7 @@ 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-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  217. + --with-pic try to use only PIC/non-PIC objects [default=use
  218. both]
  219. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  220. --with-sysroot=DIR Search for dependent libraries within DIR
  221. @@ -1512,9 +1485,9 @@ test -n "$ac_init_help" && exit $ac_stat
  222. if $ac_init_version; then
  223. cat <<\_ACEOF
  224. xtables-addons configure 2.5
  225. -generated by GNU Autoconf 2.69
  226. +generated by GNU Autoconf 2.68
  227. -Copyright (C) 2012 Free Software Foundation, Inc.
  228. +Copyright (C) 2010 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. @@ -1590,7 +1563,7 @@ $as_echo "$ac_try_echo"; } >&5
  233. test ! -s conftest.err
  234. } && test -s conftest$ac_exeext && {
  235. test "$cross_compiling" = yes ||
  236. - test -x conftest$ac_exeext
  237. + $as_test_x conftest$ac_exeext
  238. }; then :
  239. ac_retval=0
  240. else
  241. @@ -1877,7 +1850,7 @@ This file contains any messages produced
  242. running configure, to aid debugging if configure makes a mistake.
  243. It was created by xtables-addons $as_me 2.5, which was
  244. -generated by GNU Autoconf 2.69. Invocation command line was
  245. +generated by GNU Autoconf 2.68. Invocation command line was
  246. $ $0 $@
  247. @@ -2293,7 +2266,7 @@ case $as_dir/ in #((
  248. # by default.
  249. for ac_prog in ginstall scoinst install; do
  250. for ac_exec_ext in '' $ac_executable_extensions; do
  251. - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  252. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  253. if test $ac_prog = install &&
  254. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  255. # AIX install. It has an incompatible calling convention.
  256. @@ -2349,10 +2322,13 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
  257. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  258. -am__api_version='1.14'
  259. +am__api_version='1.11'
  260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  261. $as_echo_n "checking whether build environment is sane... " >&6; }
  262. +# Just in case
  263. +sleep 1
  264. +echo timestamp > conftest.file
  265. # Reject unsafe characters in $srcdir or the absolute working directory
  266. # name. Accept space and tab only in the latter.
  267. am_lf='
  268. @@ -2363,40 +2339,32 @@ case `pwd` in
  269. esac
  270. case $srcdir in
  271. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  272. - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  273. + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  274. esac
  275. -# Do 'set' in a subshell so we don't clobber the current shell's
  276. +# Do `set' in a subshell so we don't clobber the current shell's
  277. # arguments. Must try -L first in case configure is actually a
  278. # symlink; some systems play weird games with the mod time of symlinks
  279. # (eg FreeBSD returns the mod time of the symlink's containing
  280. # directory).
  281. if (
  282. - am_has_slept=no
  283. - for am_try in 1 2; do
  284. - echo "timestamp, slept: $am_has_slept" > conftest.file
  285. - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  286. - if test "$*" = "X"; then
  287. - # -L didn't work.
  288. - set X `ls -t "$srcdir/configure" conftest.file`
  289. - fi
  290. - if test "$*" != "X $srcdir/configure conftest.file" \
  291. - && test "$*" != "X conftest.file $srcdir/configure"; then
  292. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  293. + if test "$*" = "X"; then
  294. + # -L didn't work.
  295. + set X `ls -t "$srcdir/configure" conftest.file`
  296. + fi
  297. + rm -f conftest.file
  298. + if test "$*" != "X $srcdir/configure conftest.file" \
  299. + && test "$*" != "X conftest.file $srcdir/configure"; then
  300. +
  301. + # If neither matched, then we have a broken ls. This can happen
  302. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  303. + # broken ls alias from the environment. This has actually
  304. + # happened. Such a system could not be considered "sane".
  305. + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  306. +alias in your environment" "$LINENO" 5
  307. + fi
  308. - # If neither matched, then we have a broken ls. This can happen
  309. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  310. - # broken ls alias from the environment. This has actually
  311. - # happened. Such a system could not be considered "sane".
  312. - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  313. - alias in your environment" "$LINENO" 5
  314. - fi
  315. - if test "$2" = conftest.file || test $am_try -eq 2; then
  316. - break
  317. - fi
  318. - # Just in case.
  319. - sleep 1
  320. - am_has_slept=yes
  321. - done
  322. test "$2" = conftest.file
  323. )
  324. then
  325. @@ -2408,16 +2376,6 @@ Check your system clock" "$LINENO" 5
  326. fi
  327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  328. $as_echo "yes" >&6; }
  329. -# If we didn't sleep, we still need to ensure time stamps of config.status and
  330. -# generated files are strictly newer.
  331. -am_sleep_pid=
  332. -if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  333. - ( sleep 1 ) &
  334. - am_sleep_pid=$!
  335. -fi
  336. -
  337. -rm -f conftest.file
  338. -
  339. test "$program_prefix" != NONE &&
  340. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  341. # Use a double $ so make ignores it.
  342. @@ -2440,12 +2398,12 @@ if test x"${MISSING+set}" != xset; then
  343. esac
  344. fi
  345. # Use eval to expand $SHELL
  346. -if eval "$MISSING --is-lightweight"; then
  347. - am_missing_run="$MISSING "
  348. +if eval "$MISSING --run true"; then
  349. + am_missing_run="$MISSING --run "
  350. else
  351. am_missing_run=
  352. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  353. -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  354. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  355. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  356. fi
  357. if test x"${install_sh}" != xset; then
  358. @@ -2457,10 +2415,10 @@ if test x"${install_sh}" != xset; then
  359. esac
  360. fi
  361. -# Installed binaries are usually stripped using 'strip' when the user
  362. -# run "make install-strip". However 'strip' might not be the right
  363. +# Installed binaries are usually stripped using `strip' when the user
  364. +# run `make install-strip'. However `strip' might not be the right
  365. # tool to use in cross-compilation environments, therefore Automake
  366. -# will honor the 'STRIP' environment variable to overrule this program.
  367. +# will honor the `STRIP' environment variable to overrule this program.
  368. if test "$cross_compiling" != no; then
  369. if test -n "$ac_tool_prefix"; then
  370. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  371. @@ -2479,7 +2437,7 @@ do
  372. IFS=$as_save_IFS
  373. test -z "$as_dir" && as_dir=.
  374. for ac_exec_ext in '' $ac_executable_extensions; do
  375. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  376. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  377. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  379. break 2
  380. @@ -2519,7 +2477,7 @@ do
  381. IFS=$as_save_IFS
  382. test -z "$as_dir" && as_dir=.
  383. for ac_exec_ext in '' $ac_executable_extensions; do
  384. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  385. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  386. ac_cv_prog_ac_ct_STRIP="strip"
  387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  388. break 2
  389. @@ -2570,7 +2528,7 @@ do
  390. test -z "$as_dir" && as_dir=.
  391. for ac_prog in mkdir gmkdir; do
  392. for ac_exec_ext in '' $ac_executable_extensions; do
  393. - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  394. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  395. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  396. 'mkdir (GNU coreutils) '* | \
  397. 'mkdir (coreutils) '* | \
  398. @@ -2599,6 +2557,12 @@ fi
  399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  400. $as_echo "$MKDIR_P" >&6; }
  401. +mkdir_p="$MKDIR_P"
  402. +case $mkdir_p in
  403. + [\\/$]* | ?:[\\/]*) ;;
  404. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  405. +esac
  406. +
  407. for ac_prog in gawk mawk nawk awk
  408. do
  409. # Extract the first word of "$ac_prog", so it can be a program name with args.
  410. @@ -2617,7 +2581,7 @@ do
  411. IFS=$as_save_IFS
  412. test -z "$as_dir" && as_dir=.
  413. for ac_exec_ext in '' $ac_executable_extensions; do
  414. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  415. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  416. ac_cv_prog_AWK="$ac_prog"
  417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  418. break 2
  419. @@ -2681,45 +2645,6 @@ else
  420. fi
  421. rmdir .tst 2>/dev/null
  422. -# Check whether --enable-silent-rules was given.
  423. -if test "${enable_silent_rules+set}" = set; then :
  424. - enableval=$enable_silent_rules;
  425. -fi
  426. -
  427. -case $enable_silent_rules in # (((
  428. - yes) AM_DEFAULT_VERBOSITY=0;;
  429. - no) AM_DEFAULT_VERBOSITY=1;;
  430. - *) AM_DEFAULT_VERBOSITY=1;;
  431. -esac
  432. -am_make=${MAKE-make}
  433. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  434. -$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  435. -if ${am_cv_make_support_nested_variables+:} false; then :
  436. - $as_echo_n "(cached) " >&6
  437. -else
  438. - if $as_echo 'TRUE=$(BAR$(V))
  439. -BAR0=false
  440. -BAR1=true
  441. -V=1
  442. -am__doit:
  443. - @$(TRUE)
  444. -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  445. - am_cv_make_support_nested_variables=yes
  446. -else
  447. - am_cv_make_support_nested_variables=no
  448. -fi
  449. -fi
  450. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  451. -$as_echo "$am_cv_make_support_nested_variables" >&6; }
  452. -if test $am_cv_make_support_nested_variables = yes; then
  453. - AM_V='$(V)'
  454. - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  455. -else
  456. - AM_V=$AM_DEFAULT_VERBOSITY
  457. - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  458. -fi
  459. -AM_BACKSLASH='\'
  460. -
  461. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  462. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  463. # is not polluted with repeated "-I."
  464. @@ -2770,111 +2695,18 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_ru
  465. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  466. -# For better backward compatibility. To be removed once Automake 1.9.x
  467. -# dies out for good. For more background, see:
  468. -# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  469. -# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  470. -mkdir_p='$(MKDIR_P)'
  471. -
  472. # We need awk for the "check" target. The system "awk" is bad on
  473. # some platforms.
  474. # Always define AMTAR for backward compatibility. Yes, it's still used
  475. # in the wild :-( We should find a proper way to deprecate it ...
  476. AMTAR='$${TAR-tar}'
  477. -
  478. -# We'll loop over all known methods to create a tar archive until one works.
  479. -_am_tools='gnutar pax cpio none'
  480. -
  481. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  482. -
  483. -# POSIX will say in a future version that running "rm -f" with no argument
  484. -# is OK; and we want to be able to make that assumption in our Makefile
  485. -# recipes. So use an aggressive probe to check that the usage we want is
  486. -# actually supported "in the wild" to an acceptable degree.
  487. -# See automake bug#10828.
  488. -# To make any issue more visible, cause the running configure to be aborted
  489. -# by default if the 'rm' program in use doesn't match our expectations; the
  490. -# user can still override this though.
  491. -if rm -f && rm -fr && rm -rf; then : OK; else
  492. - cat >&2 <<'END'
  493. -Oops!
  494. -
  495. -Your 'rm' program seems unable to run without file operands specified
  496. -on the command line, even when the '-f' option is present. This is contrary
  497. -to the behaviour of most rm programs out there, and not conforming with
  498. -the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  499. -
  500. -Please tell bug-automake@gnu.org about your system, including the value
  501. -of your $PATH and any error possibly output before this message. This
  502. -can help us improve future automake versions.
  503. -
  504. -END
  505. - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  506. - echo 'Configuration will proceed anyway, since you have set the' >&2
  507. - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  508. - echo >&2
  509. - else
  510. - cat >&2 <<'END'
  511. -Aborting the configuration process, to ensure you take notice of the issue.
  512. -
  513. -You can download and install GNU coreutils to get an 'rm' implementation
  514. -that behaves properly: <http://www.gnu.org/software/coreutils/>.
  515. -
  516. -If you want to complete the configuration process using your problematic
  517. -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  518. -to "yes", and re-run configure.
  519. -
  520. -END
  521. - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  522. - fi
  523. -fi
  524. -
  525. -# Check whether --enable-silent-rules was given.
  526. -if test "${enable_silent_rules+set}" = set; then :
  527. - enableval=$enable_silent_rules;
  528. -fi
  529. -
  530. -case $enable_silent_rules in # (((
  531. - yes) AM_DEFAULT_VERBOSITY=0;;
  532. - no) AM_DEFAULT_VERBOSITY=1;;
  533. - *) AM_DEFAULT_VERBOSITY=0;;
  534. -esac
  535. -am_make=${MAKE-make}
  536. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  537. -$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  538. -if ${am_cv_make_support_nested_variables+:} false; then :
  539. - $as_echo_n "(cached) " >&6
  540. -else
  541. - if $as_echo 'TRUE=$(BAR$(V))
  542. -BAR0=false
  543. -BAR1=true
  544. -V=1
  545. -am__doit:
  546. - @$(TRUE)
  547. -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  548. - am_cv_make_support_nested_variables=yes
  549. -else
  550. - am_cv_make_support_nested_variables=no
  551. -fi
  552. -fi
  553. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  554. -$as_echo "$am_cv_make_support_nested_variables" >&6; }
  555. -if test $am_cv_make_support_nested_variables = yes; then
  556. - AM_V='$(V)'
  557. - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  558. -else
  559. - AM_V=$AM_DEFAULT_VERBOSITY
  560. - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  561. -fi
  562. -AM_BACKSLASH='\'
  563. -
  564. -
  565. ac_ext=c
  566. ac_cpp='$CPP $CPPFLAGS'
  567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  568. @@ -2897,7 +2729,7 @@ do
  569. IFS=$as_save_IFS
  570. test -z "$as_dir" && as_dir=.
  571. for ac_exec_ext in '' $ac_executable_extensions; do
  572. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  573. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  574. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  576. break 2
  577. @@ -2937,7 +2769,7 @@ do
  578. IFS=$as_save_IFS
  579. test -z "$as_dir" && as_dir=.
  580. for ac_exec_ext in '' $ac_executable_extensions; do
  581. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  582. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  583. ac_cv_prog_ac_ct_CC="gcc"
  584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  585. break 2
  586. @@ -2990,7 +2822,7 @@ do
  587. IFS=$as_save_IFS
  588. test -z "$as_dir" && as_dir=.
  589. for ac_exec_ext in '' $ac_executable_extensions; do
  590. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  591. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  592. ac_cv_prog_CC="${ac_tool_prefix}cc"
  593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  594. break 2
  595. @@ -3031,7 +2863,7 @@ do
  596. IFS=$as_save_IFS
  597. test -z "$as_dir" && as_dir=.
  598. for ac_exec_ext in '' $ac_executable_extensions; do
  599. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  600. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  601. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  602. ac_prog_rejected=yes
  603. continue
  604. @@ -3089,7 +2921,7 @@ do
  605. IFS=$as_save_IFS
  606. test -z "$as_dir" && as_dir=.
  607. for ac_exec_ext in '' $ac_executable_extensions; do
  608. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  609. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  610. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  612. break 2
  613. @@ -3133,7 +2965,7 @@ do
  614. IFS=$as_save_IFS
  615. test -z "$as_dir" && as_dir=.
  616. for ac_exec_ext in '' $ac_executable_extensions; do
  617. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  618. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  619. ac_cv_prog_ac_ct_CC="$ac_prog"
  620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  621. break 2
  622. @@ -3579,7 +3411,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
  623. /* end confdefs.h. */
  624. #include <stdarg.h>
  625. #include <stdio.h>
  626. -struct stat;
  627. +#include <sys/types.h>
  628. +#include <sys/stat.h>
  629. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  630. struct buf { int x; };
  631. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  632. @@ -3663,65 +3496,6 @@ ac_cpp='$CPP $CPPFLAGS'
  633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  636. -
  637. -ac_ext=c
  638. -ac_cpp='$CPP $CPPFLAGS'
  639. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  640. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  641. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  642. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  643. -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  644. -if ${am_cv_prog_cc_c_o+:} false; then :
  645. - $as_echo_n "(cached) " >&6
  646. -else
  647. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  648. -/* end confdefs.h. */
  649. -
  650. -int
  651. -main ()
  652. -{
  653. -
  654. - ;
  655. - return 0;
  656. -}
  657. -_ACEOF
  658. - # Make sure it works both with $CC and with simple cc.
  659. - # Following AC_PROG_CC_C_O, we do the test twice because some
  660. - # compilers refuse to overwrite an existing .o file with -o,
  661. - # though they will create one.
  662. - am_cv_prog_cc_c_o=yes
  663. - for am_i in 1 2; do
  664. - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  665. - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  666. - ac_status=$?
  667. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  668. - (exit $ac_status); } \
  669. - && test -f conftest2.$ac_objext; then
  670. - : OK
  671. - else
  672. - am_cv_prog_cc_c_o=no
  673. - break
  674. - fi
  675. - done
  676. - rm -f core conftest*
  677. - unset am_i
  678. -fi
  679. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  680. -$as_echo "$am_cv_prog_cc_c_o" >&6; }
  681. -if test "$am_cv_prog_cc_c_o" != yes; then
  682. - # Losing compiler, so override with the script.
  683. - # FIXME: It is wrong to rewrite CC.
  684. - # But if we don't then we get into trouble of one sort or another.
  685. - # A longer-term fix would be to have automake use am__CC in this case,
  686. - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  687. - CC="$am_aux_dir/compile $CC"
  688. -fi
  689. -ac_ext=c
  690. -ac_cpp='$CPP $CPPFLAGS'
  691. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  692. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  693. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  694. -
  695. DEPDIR="${am__leading_dot}deps"
  696. ac_config_commands="$ac_config_commands depfiles"
  697. @@ -3741,7 +3515,7 @@ am__quote=
  698. _am_result=none
  699. # First try GNU make style include.
  700. echo "include confinc" > confmf
  701. -# Ignore all kinds of additional output from 'make'.
  702. +# Ignore all kinds of additional output from `make'.
  703. case `$am_make -s -f confmf 2> /dev/null` in #(
  704. *the\ am__doit\ target*)
  705. am__include=include
  706. @@ -3797,8 +3571,8 @@ else
  707. # We make a subdir and do the tests there. Otherwise we can end up
  708. # making bogus files that we don't know about and never remove. For
  709. # instance it was reported that on HP-UX the gcc test will end up
  710. - # making a dummy file named 'D' -- because '-MD' means "put the output
  711. - # in D".
  712. + # making a dummy file named `D' -- because `-MD' means `put the output
  713. + # in D'.
  714. rm -rf conftest.dir
  715. mkdir conftest.dir
  716. # Copy depcomp to subdir because otherwise we won't find it if we're
  717. @@ -3833,16 +3607,16 @@ else
  718. : > sub/conftest.c
  719. for i in 1 2 3 4 5 6; do
  720. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  721. - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  722. - # Solaris 10 /bin/sh.
  723. - echo '/* dummy */' > sub/conftst$i.h
  724. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  725. + # Solaris 8's {/usr,}/bin/sh.
  726. + touch sub/conftst$i.h
  727. done
  728. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  729. - # We check with '-c' and '-o' for the sake of the "dashmstdout"
  730. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  731. # mode. It turns out that the SunPro C++ compiler does not properly
  732. - # handle '-M -o', and we need to detect this. Also, some Intel
  733. - # versions had trouble with output in subdirs.
  734. + # handle `-M -o', and we need to detect this. Also, some Intel
  735. + # versions had trouble with output in subdirs
  736. am__obj=sub/conftest.${OBJEXT-o}
  737. am__minus_obj="-o $am__obj"
  738. case $depmode in
  739. @@ -3851,8 +3625,8 @@ else
  740. test "$am__universal" = false || continue
  741. ;;
  742. nosideeffect)
  743. - # After this tag, mechanisms are not by side-effect, so they'll
  744. - # only be used when explicitly requested.
  745. + # after this tag, mechanisms are not by side-effect, so they'll
  746. + # only be used when explicitly requested
  747. if test "x$enable_dependency_tracking" = xyes; then
  748. continue
  749. else
  750. @@ -3860,7 +3634,7 @@ else
  751. fi
  752. ;;
  753. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  754. - # This compiler won't grok '-c -o', but also, the minuso test has
  755. + # This compiler won't grok `-c -o', but also, the minuso test has
  756. # not run yet. These depmodes are late enough in the game, and
  757. # so weak that their functioning should not be impacted.
  758. am__obj=conftest.${OBJEXT-o}
  759. @@ -3914,6 +3688,131 @@ else
  760. fi
  761. +if test "x$CC" != xcc; then
  762. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  763. +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  764. +else
  765. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  766. +$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  767. +fi
  768. +set dummy $CC; ac_cc=`$as_echo "$2" |
  769. + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  770. +if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  771. + $as_echo_n "(cached) " >&6
  772. +else
  773. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  774. +/* end confdefs.h. */
  775. +
  776. +int
  777. +main ()
  778. +{
  779. +
  780. + ;
  781. + return 0;
  782. +}
  783. +_ACEOF
  784. +# Make sure it works both with $CC and with simple cc.
  785. +# We do the test twice because some compilers refuse to overwrite an
  786. +# existing .o file with -o, though they will create one.
  787. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  788. +rm -f conftest2.*
  789. +if { { case "(($ac_try" in
  790. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  791. + *) ac_try_echo=$ac_try;;
  792. +esac
  793. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  794. +$as_echo "$ac_try_echo"; } >&5
  795. + (eval "$ac_try") 2>&5
  796. + ac_status=$?
  797. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  798. + test $ac_status = 0; } &&
  799. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  800. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  801. + *) ac_try_echo=$ac_try;;
  802. +esac
  803. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  804. +$as_echo "$ac_try_echo"; } >&5
  805. + (eval "$ac_try") 2>&5
  806. + ac_status=$?
  807. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  808. + test $ac_status = 0; };
  809. +then
  810. + eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  811. + if test "x$CC" != xcc; then
  812. + # Test first that cc exists at all.
  813. + if { ac_try='cc -c conftest.$ac_ext >&5'
  814. + { { case "(($ac_try" in
  815. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  816. + *) ac_try_echo=$ac_try;;
  817. +esac
  818. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  819. +$as_echo "$ac_try_echo"; } >&5
  820. + (eval "$ac_try") 2>&5
  821. + ac_status=$?
  822. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  823. + test $ac_status = 0; }; }; then
  824. + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  825. + rm -f conftest2.*
  826. + if { { case "(($ac_try" in
  827. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  828. + *) ac_try_echo=$ac_try;;
  829. +esac
  830. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  831. +$as_echo "$ac_try_echo"; } >&5
  832. + (eval "$ac_try") 2>&5
  833. + ac_status=$?
  834. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  835. + test $ac_status = 0; } &&
  836. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  837. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  838. + *) ac_try_echo=$ac_try;;
  839. +esac
  840. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  841. +$as_echo "$ac_try_echo"; } >&5
  842. + (eval "$ac_try") 2>&5
  843. + ac_status=$?
  844. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  845. + test $ac_status = 0; };
  846. + then
  847. + # cc works too.
  848. + :
  849. + else
  850. + # cc exists but doesn't like -o.
  851. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  852. + fi
  853. + fi
  854. + fi
  855. +else
  856. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  857. +fi
  858. +rm -f core conftest*
  859. +
  860. +fi
  861. +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  862. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  863. +$as_echo "yes" >&6; }
  864. +else
  865. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  866. +$as_echo "no" >&6; }
  867. +
  868. +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  869. +
  870. +fi
  871. +
  872. +# FIXME: we rely on the cache variable name because
  873. +# there is no other way.
  874. +set dummy $CC
  875. +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  876. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  877. +if test "$am_t" != yes; then
  878. + # Losing compiler, so override with the script.
  879. + # FIXME: It is wrong to rewrite CC.
  880. + # But if we don't then we get into trouble of one sort or another.
  881. + # A longer-term fix would be to have automake use am__CC in this case,
  882. + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  883. + CC="$am_aux_dir/compile $CC"
  884. +fi
  885. +
  886. if test -n "$ac_tool_prefix"; then
  887. @@ -3935,7 +3834,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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  892. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  893. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  895. break 2
  896. @@ -3979,7 +3878,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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  901. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  902. ac_cv_prog_ac_ct_AR="$ac_prog"
  903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  904. break 2
  905. @@ -4023,13 +3922,7 @@ $as_echo_n "checking the archiver ($AR)
  906. if ${am_cv_ar_interface+:} false; then :
  907. $as_echo_n "(cached) " >&6
  908. else
  909. - ac_ext=c
  910. -ac_cpp='$CPP $CPPFLAGS'
  911. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  912. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  913. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  914. -
  915. - am_cv_ar_interface=ar
  916. + am_cv_ar_interface=ar
  917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  918. /* end confdefs.h. */
  919. int some_variable = 0;
  920. @@ -4060,11 +3953,6 @@ if ac_fn_c_try_compile "$LINENO"; then :
  921. fi
  922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  923. - ac_ext=c
  924. -ac_cpp='$CPP $CPPFLAGS'
  925. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  926. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  927. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  928. fi
  929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  930. @@ -4126,8 +4014,8 @@ esac
  931. -macro_version='2.4.2'
  932. -macro_revision='1.3337'
  933. +macro_version='2.4'
  934. +macro_revision='1.3293'
  935. @@ -4305,7 +4193,7 @@ do
  936. for ac_prog in sed gsed; do
  937. for ac_exec_ext in '' $ac_executable_extensions; do
  938. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  939. - as_fn_executable_p "$ac_path_SED" || continue
  940. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  941. # Check for GNU ac_path_SED and select it if it is found.
  942. # Check for GNU $ac_path_SED
  943. case `"$ac_path_SED" --version 2>&1` in
  944. @@ -4381,7 +4269,7 @@ do
  945. for ac_prog in grep ggrep; do
  946. for ac_exec_ext in '' $ac_executable_extensions; do
  947. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  948. - as_fn_executable_p "$ac_path_GREP" || continue
  949. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  950. # Check for GNU ac_path_GREP and select it if it is found.
  951. # Check for GNU $ac_path_GREP
  952. case `"$ac_path_GREP" --version 2>&1` in
  953. @@ -4447,7 +4335,7 @@ do
  954. for ac_prog in egrep; do
  955. for ac_exec_ext in '' $ac_executable_extensions; do
  956. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  957. - as_fn_executable_p "$ac_path_EGREP" || continue
  958. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  959. # Check for GNU ac_path_EGREP and select it if it is found.
  960. # Check for GNU $ac_path_EGREP
  961. case `"$ac_path_EGREP" --version 2>&1` in
  962. @@ -4514,7 +4402,7 @@ do
  963. for ac_prog in fgrep; do
  964. for ac_exec_ext in '' $ac_executable_extensions; do
  965. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  966. - as_fn_executable_p "$ac_path_FGREP" || continue
  967. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  968. # Check for GNU ac_path_FGREP and select it if it is found.
  969. # Check for GNU $ac_path_FGREP
  970. case `"$ac_path_FGREP" --version 2>&1` in
  971. @@ -4770,7 +4658,7 @@ do
  972. IFS=$as_save_IFS
  973. test -z "$as_dir" && as_dir=.
  974. for ac_exec_ext in '' $ac_executable_extensions; do
  975. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  976. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  977. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  979. break 2
  980. @@ -4814,7 +4702,7 @@ do
  981. IFS=$as_save_IFS
  982. test -z "$as_dir" && as_dir=.
  983. for ac_exec_ext in '' $ac_executable_extensions; do
  984. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  985. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  986. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  988. break 2
  989. @@ -4972,11 +4860,6 @@ else
  990. lt_cv_sys_max_cmd_len=196608
  991. ;;
  992. - os2*)
  993. - # The test takes a long time on OS/2.
  994. - lt_cv_sys_max_cmd_len=8192
  995. - ;;
  996. -
  997. osf*)
  998. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  999. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1000. @@ -5016,7 +4899,7 @@ else
  1001. # If test is not a shell built-in, we'll probably end up computing a
  1002. # maximum length that is only half of the actual maximum length, but
  1003. # we can't tell.
  1004. - while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1005. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  1006. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1007. test $i != 17 # 1/2 MB should be enough
  1008. do
  1009. @@ -5238,7 +5121,7 @@ do
  1010. IFS=$as_save_IFS
  1011. test -z "$as_dir" && as_dir=.
  1012. for ac_exec_ext in '' $ac_executable_extensions; do
  1013. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1014. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1015. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  1016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1017. break 2
  1018. @@ -5278,7 +5161,7 @@ do
  1019. IFS=$as_save_IFS
  1020. test -z "$as_dir" && as_dir=.
  1021. for ac_exec_ext in '' $ac_executable_extensions; do
  1022. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1023. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1024. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  1025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1026. break 2
  1027. @@ -5445,7 +5328,7 @@ irix5* | irix6* | nonstopux*)
  1028. lt_cv_deplibs_check_method=pass_all
  1029. ;;
  1030. -# This must be glibc/ELF.
  1031. +# This must be Linux ELF.
  1032. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1033. lt_cv_deplibs_check_method=pass_all
  1034. ;;
  1035. @@ -5584,7 +5467,7 @@ do
  1036. IFS=$as_save_IFS
  1037. test -z "$as_dir" && as_dir=.
  1038. for ac_exec_ext in '' $ac_executable_extensions; do
  1039. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1040. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1041. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  1042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1043. break 2
  1044. @@ -5624,7 +5507,7 @@ do
  1045. IFS=$as_save_IFS
  1046. test -z "$as_dir" && as_dir=.
  1047. for ac_exec_ext in '' $ac_executable_extensions; do
  1048. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1049. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1050. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  1051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1052. break 2
  1053. @@ -5727,7 +5610,7 @@ do
  1054. IFS=$as_save_IFS
  1055. test -z "$as_dir" && as_dir=.
  1056. for ac_exec_ext in '' $ac_executable_extensions; do
  1057. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1058. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1059. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  1060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1061. break 2
  1062. @@ -5771,7 +5654,7 @@ do
  1063. IFS=$as_save_IFS
  1064. test -z "$as_dir" && as_dir=.
  1065. for ac_exec_ext in '' $ac_executable_extensions; do
  1066. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1067. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1068. ac_cv_prog_ac_ct_AR="$ac_prog"
  1069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1070. break 2
  1071. @@ -5896,7 +5779,7 @@ do
  1072. IFS=$as_save_IFS
  1073. test -z "$as_dir" && as_dir=.
  1074. for ac_exec_ext in '' $ac_executable_extensions; do
  1075. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1076. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1077. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1079. break 2
  1080. @@ -5936,7 +5819,7 @@ do
  1081. IFS=$as_save_IFS
  1082. test -z "$as_dir" && as_dir=.
  1083. for ac_exec_ext in '' $ac_executable_extensions; do
  1084. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1085. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1086. ac_cv_prog_ac_ct_STRIP="strip"
  1087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1088. break 2
  1089. @@ -5995,7 +5878,7 @@ do
  1090. IFS=$as_save_IFS
  1091. test -z "$as_dir" && as_dir=.
  1092. for ac_exec_ext in '' $ac_executable_extensions; do
  1093. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1094. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1095. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1097. break 2
  1098. @@ -6035,7 +5918,7 @@ do
  1099. IFS=$as_save_IFS
  1100. test -z "$as_dir" && as_dir=.
  1101. for ac_exec_ext in '' $ac_executable_extensions; do
  1102. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1103. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1104. ac_cv_prog_ac_ct_RANLIB="ranlib"
  1105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1106. break 2
  1107. @@ -6085,13 +5968,13 @@ old_postuninstall_cmds=
  1108. if test -n "$RANLIB"; then
  1109. case $host_os in
  1110. openbsd*)
  1111. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1112. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1113. ;;
  1114. *)
  1115. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1116. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1117. ;;
  1118. esac
  1119. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1120. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1121. fi
  1122. case $host_os in
  1123. @@ -6238,7 +6121,6 @@ for ac_symprfx in "" "_"; do
  1124. # which start with @ or ?.
  1125. lt_cv_sys_global_symbol_pipe="$AWK '"\
  1126. " {last_section=section; section=\$ 3};"\
  1127. -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  1128. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1129. " \$ 0!~/External *\|/{next};"\
  1130. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1131. @@ -6627,7 +6509,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
  1132. CFLAGS="$SAVE_CFLAGS"
  1133. fi
  1134. ;;
  1135. -*-*solaris*)
  1136. +sparc*-*solaris*)
  1137. # Find out which ABI we are using.
  1138. echo 'int i;' > conftest.$ac_ext
  1139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  1140. @@ -6638,20 +6520,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
  1141. case `/usr/bin/file conftest.o` in
  1142. *64-bit*)
  1143. case $lt_cv_prog_gnu_ld in
  1144. - yes*)
  1145. - case $host in
  1146. - i?86-*-solaris*)
  1147. - LD="${LD-ld} -m elf_x86_64"
  1148. - ;;
  1149. - sparc*-*-solaris*)
  1150. - LD="${LD-ld} -m elf64_sparc"
  1151. - ;;
  1152. - esac
  1153. - # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1154. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1155. - LD="${LD-ld}_sol2"
  1156. - fi
  1157. - ;;
  1158. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1159. *)
  1160. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1161. LD="${LD-ld} -64"
  1162. @@ -6684,7 +6553,7 @@ do
  1163. IFS=$as_save_IFS
  1164. test -z "$as_dir" && as_dir=.
  1165. for ac_exec_ext in '' $ac_executable_extensions; do
  1166. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1167. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1168. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  1169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1170. break 2
  1171. @@ -6724,7 +6593,7 @@ do
  1172. IFS=$as_save_IFS
  1173. test -z "$as_dir" && as_dir=.
  1174. for ac_exec_ext in '' $ac_executable_extensions; do
  1175. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1176. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1177. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  1178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1179. break 2
  1180. @@ -6804,7 +6673,7 @@ do
  1181. IFS=$as_save_IFS
  1182. test -z "$as_dir" && as_dir=.
  1183. for ac_exec_ext in '' $ac_executable_extensions; do
  1184. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1185. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1186. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  1187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1188. break 2
  1189. @@ -6844,7 +6713,7 @@ do
  1190. IFS=$as_save_IFS
  1191. test -z "$as_dir" && as_dir=.
  1192. for ac_exec_ext in '' $ac_executable_extensions; do
  1193. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1194. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1195. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  1196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1197. break 2
  1198. @@ -6896,7 +6765,7 @@ do
  1199. IFS=$as_save_IFS
  1200. test -z "$as_dir" && as_dir=.
  1201. for ac_exec_ext in '' $ac_executable_extensions; do
  1202. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1203. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1204. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  1205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1206. break 2
  1207. @@ -6936,7 +6805,7 @@ do
  1208. IFS=$as_save_IFS
  1209. test -z "$as_dir" && as_dir=.
  1210. for ac_exec_ext in '' $ac_executable_extensions; do
  1211. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1212. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1213. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  1214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1215. break 2
  1216. @@ -6988,7 +6857,7 @@ do
  1217. IFS=$as_save_IFS
  1218. test -z "$as_dir" && as_dir=.
  1219. for ac_exec_ext in '' $ac_executable_extensions; do
  1220. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1221. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1222. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  1223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1224. break 2
  1225. @@ -7028,7 +6897,7 @@ do
  1226. IFS=$as_save_IFS
  1227. test -z "$as_dir" && as_dir=.
  1228. for ac_exec_ext in '' $ac_executable_extensions; do
  1229. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1230. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1231. ac_cv_prog_ac_ct_LIPO="lipo"
  1232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1233. break 2
  1234. @@ -7080,7 +6949,7 @@ do
  1235. IFS=$as_save_IFS
  1236. test -z "$as_dir" && as_dir=.
  1237. for ac_exec_ext in '' $ac_executable_extensions; do
  1238. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1239. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1240. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  1241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1242. break 2
  1243. @@ -7120,7 +6989,7 @@ do
  1244. IFS=$as_save_IFS
  1245. test -z "$as_dir" && as_dir=.
  1246. for ac_exec_ext in '' $ac_executable_extensions; do
  1247. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1248. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1249. ac_cv_prog_ac_ct_OTOOL="otool"
  1250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1251. break 2
  1252. @@ -7172,7 +7041,7 @@ do
  1253. IFS=$as_save_IFS
  1254. test -z "$as_dir" && as_dir=.
  1255. for ac_exec_ext in '' $ac_executable_extensions; do
  1256. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1257. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1258. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  1259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1260. break 2
  1261. @@ -7212,7 +7081,7 @@ do
  1262. IFS=$as_save_IFS
  1263. test -z "$as_dir" && as_dir=.
  1264. for ac_exec_ext in '' $ac_executable_extensions; do
  1265. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1266. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1267. ac_cv_prog_ac_ct_OTOOL64="otool64"
  1268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1269. break 2
  1270. @@ -7291,13 +7160,7 @@ else
  1271. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1272. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1273. _lt_result=$?
  1274. - # If there is a non-empty error log, and "single_module"
  1275. - # appears in it, assume the flag caused a linker warning
  1276. - if test -s conftest.err && $GREP single_module conftest.err; then
  1277. - cat conftest.err >&5
  1278. - # Otherwise, if the output was created with a 0 exit code from
  1279. - # the compiler, it worked.
  1280. - elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  1281. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1282. lt_cv_apple_cc_single_mod=yes
  1283. else
  1284. cat conftest.err >&5
  1285. @@ -7308,7 +7171,6 @@ else
  1286. fi
  1287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  1288. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  1289. -
  1290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  1291. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  1292. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  1293. @@ -7341,7 +7203,6 @@ rm -f core conftest.err conftest.$ac_obj
  1294. fi
  1295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  1296. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  1297. -
  1298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  1299. $as_echo_n "checking for -force_load linker flag... " >&6; }
  1300. if ${lt_cv_ld_force_load+:} false; then :
  1301. @@ -7363,9 +7224,7 @@ _LT_EOF
  1302. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  1303. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1304. _lt_result=$?
  1305. - if test -s conftest.err && $GREP force_load conftest.err; then
  1306. - cat conftest.err >&5
  1307. - elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  1308. + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  1309. lt_cv_ld_force_load=yes
  1310. else
  1311. cat conftest.err >&5
  1312. @@ -7740,22 +7599,7 @@ fi
  1313. # Check whether --with-pic was given.
  1314. if test "${with_pic+set}" = set; then :
  1315. - withval=$with_pic; lt_p=${PACKAGE-default}
  1316. - case $withval in
  1317. - yes|no) pic_mode=$withval ;;
  1318. - *)
  1319. - pic_mode=default
  1320. - # Look at the argument we got. We use all the common list separators.
  1321. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1322. - for lt_pkg in $withval; do
  1323. - IFS="$lt_save_ifs"
  1324. - if test "X$lt_pkg" = "X$lt_p"; then
  1325. - pic_mode=yes
  1326. - fi
  1327. - done
  1328. - IFS="$lt_save_ifs"
  1329. - ;;
  1330. - esac
  1331. + withval=$with_pic; pic_mode="$withval"
  1332. else
  1333. pic_mode=default
  1334. fi
  1335. @@ -7833,10 +7677,6 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtoo
  1336. -
  1337. -
  1338. -
  1339. -
  1340. test -z "$LN_S" && LN_S="ln -s"
  1341. @@ -8126,10 +7966,6 @@ _lt_linker_boilerplate=`cat conftest.err
  1342. $RM -r conftest*
  1343. -## CAVEAT EMPTOR:
  1344. -## There is no encapsulation within the following macros, do not change
  1345. -## the running order or otherwise move them around unless you know exactly
  1346. -## what you are doing...
  1347. if test -n "$compiler"; then
  1348. lt_prog_compiler_no_builtin_flag=
  1349. @@ -8296,9 +8132,7 @@ lt_prog_compiler_static=
  1350. case $cc_basename in
  1351. nvcc*) # Cuda Compiler Driver 2.2
  1352. lt_prog_compiler_wl='-Xlinker '
  1353. - if test -n "$lt_prog_compiler_pic"; then
  1354. - lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  1355. - fi
  1356. + lt_prog_compiler_pic='-Xcompiler -fPIC'
  1357. ;;
  1358. esac
  1359. else
  1360. @@ -8389,33 +8223,18 @@ lt_prog_compiler_static=
  1361. ;;
  1362. *)
  1363. case `$CC -V 2>&1 | sed 5q` in
  1364. - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  1365. + *Sun\ F* | *Sun*Fortran*)
  1366. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1367. lt_prog_compiler_pic='-KPIC'
  1368. lt_prog_compiler_static='-Bstatic'
  1369. lt_prog_compiler_wl=''
  1370. ;;
  1371. - *Sun\ F* | *Sun*Fortran*)
  1372. - lt_prog_compiler_pic='-KPIC'
  1373. - lt_prog_compiler_static='-Bstatic'
  1374. - lt_prog_compiler_wl='-Qoption ld '
  1375. - ;;
  1376. *Sun\ C*)
  1377. # Sun C 5.9
  1378. lt_prog_compiler_pic='-KPIC'
  1379. lt_prog_compiler_static='-Bstatic'
  1380. lt_prog_compiler_wl='-Wl,'
  1381. ;;
  1382. - *Intel*\ [CF]*Compiler*)
  1383. - lt_prog_compiler_wl='-Wl,'
  1384. - lt_prog_compiler_pic='-fPIC'
  1385. - lt_prog_compiler_static='-static'
  1386. - ;;
  1387. - *Portland\ Group*)
  1388. - lt_prog_compiler_wl='-Wl,'
  1389. - lt_prog_compiler_pic='-fpic'
  1390. - lt_prog_compiler_static='-Bstatic'
  1391. - ;;
  1392. esac
  1393. ;;
  1394. esac
  1395. @@ -8777,6 +8596,7 @@ $as_echo_n "checking whether the $compil
  1396. hardcode_direct=no
  1397. hardcode_direct_absolute=no
  1398. hardcode_libdir_flag_spec=
  1399. + hardcode_libdir_flag_spec_ld=
  1400. hardcode_libdir_separator=
  1401. hardcode_minus_L=no
  1402. hardcode_shlibpath_var=unsupported
  1403. @@ -9026,7 +8846,8 @@ _LT_EOF
  1404. xlf* | bgf* | bgxlf* | mpixlf*)
  1405. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  1406. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  1407. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1408. + hardcode_libdir_flag_spec=
  1409. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  1410. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  1411. if test "x$supports_anon_versioning" = xyes; then
  1412. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  1413. @@ -9405,7 +9226,6 @@ fi
  1414. # The linker will not automatically build a static lib if we build a DLL.
  1415. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  1416. enable_shared_with_static_runtimes=yes
  1417. - exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1418. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  1419. # Don't use ranlib
  1420. old_postinstall_cmds='chmod 644 $oldlib'
  1421. @@ -9451,7 +9271,6 @@ fi
  1422. hardcode_shlibpath_var=unsupported
  1423. if test "$lt_cv_ld_force_load" = "yes"; then
  1424. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  1425. -
  1426. else
  1427. whole_archive_flag_spec=''
  1428. fi
  1429. @@ -9480,6 +9299,10 @@ fi
  1430. hardcode_shlibpath_var=no
  1431. ;;
  1432. + freebsd1*)
  1433. + ld_shlibs=no
  1434. + ;;
  1435. +
  1436. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1437. # support. Future versions do this automatically, but an explicit c++rt0.o
  1438. # does not break anything, and helps significantly (at the cost of a little
  1439. @@ -9492,7 +9315,7 @@ fi
  1440. ;;
  1441. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1442. - freebsd2.*)
  1443. + freebsd2*)
  1444. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1445. hardcode_direct=yes
  1446. hardcode_minus_L=yes
  1447. @@ -9531,6 +9354,7 @@ fi
  1448. fi
  1449. if test "$with_gnu_ld" = no; then
  1450. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1451. + hardcode_libdir_flag_spec_ld='+b $libdir'
  1452. hardcode_libdir_separator=:
  1453. hardcode_direct=yes
  1454. hardcode_direct_absolute=yes
  1455. @@ -10154,6 +9978,11 @@ esac
  1456. +
  1457. +
  1458. +
  1459. +
  1460. +
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  1462. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  1463. @@ -10243,7 +10072,7 @@ need_version=unknown
  1464. case $host_os in
  1465. aix3*)
  1466. - version_type=linux # correct to gnu/linux during the next big refactor
  1467. + version_type=linux
  1468. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1469. shlibpath_var=LIBPATH
  1470. @@ -10252,7 +10081,7 @@ aix3*)
  1471. ;;
  1472. aix[4-9]*)
  1473. - version_type=linux # correct to gnu/linux during the next big refactor
  1474. + version_type=linux
  1475. need_lib_prefix=no
  1476. need_version=no
  1477. hardcode_into_libs=yes
  1478. @@ -10317,7 +10146,7 @@ beos*)
  1479. ;;
  1480. bsdi[45]*)
  1481. - version_type=linux # correct to gnu/linux during the next big refactor
  1482. + version_type=linux
  1483. need_version=no
  1484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1485. soname_spec='${libname}${release}${shared_ext}$major'
  1486. @@ -10456,7 +10285,7 @@ darwin* | rhapsody*)
  1487. ;;
  1488. dgux*)
  1489. - version_type=linux # correct to gnu/linux during the next big refactor
  1490. + version_type=linux
  1491. need_lib_prefix=no
  1492. need_version=no
  1493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1494. @@ -10464,6 +10293,10 @@ dgux*)
  1495. shlibpath_var=LD_LIBRARY_PATH
  1496. ;;
  1497. +freebsd1*)
  1498. + dynamic_linker=no
  1499. + ;;
  1500. +
  1501. freebsd* | dragonfly*)
  1502. # DragonFly does not have aout. When/if they implement a new
  1503. # versioning mechanism, adjust this.
  1504. @@ -10471,7 +10304,7 @@ freebsd* | dragonfly*)
  1505. objformat=`/usr/bin/objformat`
  1506. else
  1507. case $host_os in
  1508. - freebsd[23].*) objformat=aout ;;
  1509. + freebsd[123]*) objformat=aout ;;
  1510. *) objformat=elf ;;
  1511. esac
  1512. fi
  1513. @@ -10489,7 +10322,7 @@ freebsd* | dragonfly*)
  1514. esac
  1515. shlibpath_var=LD_LIBRARY_PATH
  1516. case $host_os in
  1517. - freebsd2.*)
  1518. + freebsd2*)
  1519. shlibpath_overrides_runpath=yes
  1520. ;;
  1521. freebsd3.[01]* | freebsdelf3.[01]*)
  1522. @@ -10509,18 +10342,17 @@ freebsd* | dragonfly*)
  1523. ;;
  1524. gnu*)
  1525. - version_type=linux # correct to gnu/linux during the next big refactor
  1526. + version_type=linux
  1527. need_lib_prefix=no
  1528. need_version=no
  1529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1530. soname_spec='${libname}${release}${shared_ext}$major'
  1531. shlibpath_var=LD_LIBRARY_PATH
  1532. - shlibpath_overrides_runpath=no
  1533. hardcode_into_libs=yes
  1534. ;;
  1535. haiku*)
  1536. - version_type=linux # correct to gnu/linux during the next big refactor
  1537. + version_type=linux
  1538. need_lib_prefix=no
  1539. need_version=no
  1540. dynamic_linker="$host_os runtime_loader"
  1541. @@ -10581,7 +10413,7 @@ hpux9* | hpux10* | hpux11*)
  1542. ;;
  1543. interix[3-9]*)
  1544. - version_type=linux # correct to gnu/linux during the next big refactor
  1545. + version_type=linux
  1546. need_lib_prefix=no
  1547. need_version=no
  1548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1549. @@ -10597,7 +10429,7 @@ irix5* | irix6* | nonstopux*)
  1550. nonstopux*) version_type=nonstopux ;;
  1551. *)
  1552. if test "$lt_cv_prog_gnu_ld" = yes; then
  1553. - version_type=linux # correct to gnu/linux during the next big refactor
  1554. + version_type=linux
  1555. else
  1556. version_type=irix
  1557. fi ;;
  1558. @@ -10634,9 +10466,9 @@ linux*oldld* | linux*aout* | linux*coff*
  1559. dynamic_linker=no
  1560. ;;
  1561. -# This must be glibc/ELF.
  1562. +# This must be Linux ELF.
  1563. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1564. - version_type=linux # correct to gnu/linux during the next big refactor
  1565. + version_type=linux
  1566. need_lib_prefix=no
  1567. need_version=no
  1568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1569. @@ -10718,7 +10550,7 @@ netbsd*)
  1570. ;;
  1571. newsos6)
  1572. - version_type=linux # correct to gnu/linux during the next big refactor
  1573. + version_type=linux
  1574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1575. shlibpath_var=LD_LIBRARY_PATH
  1576. shlibpath_overrides_runpath=yes
  1577. @@ -10787,7 +10619,7 @@ rdos*)
  1578. ;;
  1579. solaris*)
  1580. - version_type=linux # correct to gnu/linux during the next big refactor
  1581. + version_type=linux
  1582. need_lib_prefix=no
  1583. need_version=no
  1584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1585. @@ -10812,7 +10644,7 @@ sunos4*)
  1586. ;;
  1587. sysv4 | sysv4.3*)
  1588. - version_type=linux # correct to gnu/linux during the next big refactor
  1589. + version_type=linux
  1590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1591. soname_spec='${libname}${release}${shared_ext}$major'
  1592. shlibpath_var=LD_LIBRARY_PATH
  1593. @@ -10836,7 +10668,7 @@ sysv4 | sysv4.3*)
  1594. sysv4*MP*)
  1595. if test -d /usr/nec ;then
  1596. - version_type=linux # correct to gnu/linux during the next big refactor
  1597. + version_type=linux
  1598. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1599. soname_spec='$libname${shared_ext}.$major'
  1600. shlibpath_var=LD_LIBRARY_PATH
  1601. @@ -10867,7 +10699,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware*
  1602. tpf*)
  1603. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  1604. - version_type=linux # correct to gnu/linux during the next big refactor
  1605. + version_type=linux
  1606. need_lib_prefix=no
  1607. need_version=no
  1608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1609. @@ -10877,7 +10709,7 @@ tpf*)
  1610. ;;
  1611. uts4*)
  1612. - version_type=linux # correct to gnu/linux during the next big refactor
  1613. + version_type=linux
  1614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1615. soname_spec='${libname}${release}${shared_ext}$major'
  1616. shlibpath_var=LD_LIBRARY_PATH
  1617. @@ -11659,8 +11491,6 @@ CC="$lt_save_CC"
  1618. -
  1619. -
  1620. ac_config_commands="$ac_config_commands libtool"
  1621. @@ -11726,7 +11556,7 @@ do
  1622. IFS=$as_save_IFS
  1623. test -z "$as_dir" && as_dir=.
  1624. for ac_exec_ext in '' $ac_executable_extensions; do
  1625. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1626. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1627. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1629. break 2
  1630. @@ -11769,7 +11599,7 @@ do
  1631. IFS=$as_save_IFS
  1632. test -z "$as_dir" && as_dir=.
  1633. for ac_exec_ext in '' $ac_executable_extensions; do
  1634. - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1635. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1636. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1638. break 2
  1639. @@ -11932,7 +11762,7 @@ regular_CFLAGS="-Wall -Waggregate-return
  1640. if test -n "$kbuilddir"; then
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel version that we will build against" >&5
  1642. $as_echo_n "checking kernel version that we will build against... " >&6; }
  1643. - krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)";
  1644. + krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)";
  1645. kmajor="${krel%%[^0-9]*}";
  1646. kmajor="$(($kmajor+0))";
  1647. krel="${krel:${#kmajor}}";
  1648. @@ -12076,14 +11906,6 @@ LIBOBJS=$ac_libobjs
  1649. LTLIBOBJS=$ac_ltlibobjs
  1650. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  1651. -$as_echo_n "checking that generated files are newer than configure... " >&6; }
  1652. - if test -n "$am_sleep_pid"; then
  1653. - # Hide warnings about reused PIDs.
  1654. - wait $am_sleep_pid 2>/dev/null
  1655. - fi
  1656. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  1657. -$as_echo "done" >&6; }
  1658. if test -n "$EXEEXT"; then
  1659. am__EXEEXT_TRUE=
  1660. am__EXEEXT_FALSE='#'
  1661. @@ -12398,16 +12220,16 @@ if (echo >conf$$.file) 2>/dev/null; then
  1662. # ... but there are two gotchas:
  1663. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  1664. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  1665. - # In both cases, we have to default to `cp -pR'.
  1666. + # In both cases, we have to default to `cp -p'.
  1667. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  1668. - as_ln_s='cp -pR'
  1669. + as_ln_s='cp -p'
  1670. elif ln conf$$.file conf$$ 2>/dev/null; then
  1671. as_ln_s=ln
  1672. else
  1673. - as_ln_s='cp -pR'
  1674. + as_ln_s='cp -p'
  1675. fi
  1676. else
  1677. - as_ln_s='cp -pR'
  1678. + as_ln_s='cp -p'
  1679. fi
  1680. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  1681. rmdir conf$$.dir 2>/dev/null
  1682. @@ -12467,16 +12289,28 @@ else
  1683. as_mkdir_p=false
  1684. fi
  1685. -
  1686. -# as_fn_executable_p FILE
  1687. -# -----------------------
  1688. -# Test if FILE is an executable regular file.
  1689. -as_fn_executable_p ()
  1690. -{
  1691. - test -f "$1" && test -x "$1"
  1692. -} # as_fn_executable_p
  1693. -as_test_x='test -x'
  1694. -as_executable_p=as_fn_executable_p
  1695. +if test -x / >/dev/null 2>&1; then
  1696. + as_test_x='test -x'
  1697. +else
  1698. + if ls -dL / >/dev/null 2>&1; then
  1699. + as_ls_L_option=L
  1700. + else
  1701. + as_ls_L_option=
  1702. + fi
  1703. + as_test_x='
  1704. + eval sh -c '\''
  1705. + if test -d "$1"; then
  1706. + test -d "$1/.";
  1707. + else
  1708. + case $1 in #(
  1709. + -*)set "./$1";;
  1710. + esac;
  1711. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  1712. + ???[sx]*):;;*)false;;esac;fi
  1713. + '\'' sh
  1714. + '
  1715. +fi
  1716. +as_executable_p=$as_test_x
  1717. # Sed expression to map a string onto a valid CPP name.
  1718. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  1719. @@ -12498,7 +12332,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
  1720. # values after options handling.
  1721. ac_log="
  1722. This file was extended by xtables-addons $as_me 2.5, which was
  1723. -generated by GNU Autoconf 2.69. Invocation command line was
  1724. +generated by GNU Autoconf 2.68. Invocation command line was
  1725. CONFIG_FILES = $CONFIG_FILES
  1726. CONFIG_HEADERS = $CONFIG_HEADERS
  1727. @@ -12564,10 +12398,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  1728. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  1729. ac_cs_version="\\
  1730. xtables-addons config.status 2.5
  1731. -configured by $0, generated by GNU Autoconf 2.69,
  1732. +configured by $0, generated by GNU Autoconf 2.68,
  1733. with options \\"\$ac_cs_config\\"
  1734. -Copyright (C) 2012 Free Software Foundation, Inc.
  1735. +Copyright (C) 2010 Free Software Foundation, Inc.
  1736. This config.status script is free software; the Free Software Foundation
  1737. gives unlimited permission to copy, distribute and modify it."
  1738. @@ -12658,7 +12492,7 @@ fi
  1739. _ACEOF
  1740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  1741. if \$ac_cs_recheck; then
  1742. - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  1743. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  1744. shift
  1745. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  1746. CONFIG_SHELL='$SHELL'
  1747. @@ -12700,7 +12534,6 @@ pic_mode='`$ECHO "$pic_mode" | $SED "$de
  1748. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  1749. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  1750. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  1751. -PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  1752. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  1753. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  1754. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  1755. @@ -12783,6 +12616,7 @@ with_gnu_ld='`$ECHO "$with_gnu_ld" | $SE
  1756. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  1757. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  1758. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  1759. +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  1760. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  1761. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  1762. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  1763. @@ -12838,7 +12672,6 @@ _LTECHO_EOF'
  1764. # Quote evaled strings.
  1765. for var in SHELL \
  1766. ECHO \
  1767. -PATH_SEPARATOR \
  1768. SED \
  1769. GREP \
  1770. EGREP \
  1771. @@ -12889,6 +12722,7 @@ with_gnu_ld \
  1772. allow_undefined_flag \
  1773. no_undefined_flag \
  1774. hardcode_libdir_flag_spec \
  1775. +hardcode_libdir_flag_spec_ld \
  1776. hardcode_libdir_separator \
  1777. exclude_expsyms \
  1778. include_expsyms \
  1779. @@ -13575,7 +13409,7 @@ $as_echo "$as_me: executing $ac_file com
  1780. case $ac_file$ac_mode in
  1781. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  1782. - # Older Autoconf quotes --file arguments for eval, but not when files
  1783. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  1784. # are listed without --file. Let's play safe and only enable the eval
  1785. # if we detect the quoting.
  1786. case $CONFIG_FILES in
  1787. @@ -13588,7 +13422,7 @@ $as_echo "$as_me: executing $ac_file com
  1788. # Strip MF so we end up with the name of the file.
  1789. mf=`echo "$mf" | sed -e 's/:.*$//'`
  1790. # Check whether this is an Automake generated Makefile or not.
  1791. - # We used to match only the files named 'Makefile.in', but
  1792. + # We used to match only the files named `Makefile.in', but
  1793. # some people rename them; so instead we look at the file content.
  1794. # Grep'ing the first line is not enough: some people post-process
  1795. # each Makefile.in and add a new line on top of each file to say so.
  1796. @@ -13622,19 +13456,21 @@ $as_echo X"$mf" |
  1797. continue
  1798. fi
  1799. # Extract the definition of DEPDIR, am__include, and am__quote
  1800. - # from the Makefile without running 'make'.
  1801. + # from the Makefile without running `make'.
  1802. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  1803. test -z "$DEPDIR" && continue
  1804. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  1805. - test -z "$am__include" && continue
  1806. + test -z "am__include" && continue
  1807. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  1808. + # When using ansi2knr, U may be empty or an underscore; expand it
  1809. + U=`sed -n 's/^U = //p' < "$mf"`
  1810. # Find all dependency output files, they are included files with
  1811. # $(DEPDIR) in their names. We invoke sed twice because it is the
  1812. # simplest approach to changing $(DEPDIR) to its actual value in the
  1813. # expansion.
  1814. for file in `sed -n "
  1815. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  1816. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  1817. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  1818. # Make sure the directory exists.
  1819. test -f "$dirpart/$file" && continue
  1820. fdir=`$as_dirname -- "$file" ||
  1821. @@ -13688,8 +13524,8 @@ $as_echo X"$file" |
  1822. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1823. #
  1824. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  1825. -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  1826. -# Foundation, Inc.
  1827. +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  1828. +# Inc.
  1829. # Written by Gordon Matzigkeit, 1996
  1830. #
  1831. # This file is part of GNU Libtool.
  1832. @@ -13743,9 +13579,6 @@ SHELL=$lt_SHELL
  1833. # An echo program that protects backslashes.
  1834. ECHO=$lt_ECHO
  1835. -# The PATH separator for the build system.
  1836. -PATH_SEPARATOR=$lt_PATH_SEPARATOR
  1837. -
  1838. # The host system.
  1839. host_alias=$host_alias
  1840. host=$host
  1841. @@ -14047,6 +13880,10 @@ no_undefined_flag=$lt_no_undefined_flag
  1842. # This must work even if \$libdir does not exist
  1843. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  1844. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  1845. +# during linking. This must work even if \$libdir does not exist.
  1846. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  1847. +
  1848. # Whether we need a single "-rpath" flag with a separated argument.
  1849. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  1850. --- a/configure.ac
  1851. +++ b/configure.ac
  1852. @@ -44,7 +44,7 @@ regular_CFLAGS="-Wall -Waggregate-return
  1853. if test -n "$kbuilddir"; then
  1854. AC_MSG_CHECKING([kernel version that we will build against])
  1855. - krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)";
  1856. + krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)";
  1857. kmajor="${krel%%[[^0-9]]*}";
  1858. kmajor="$(($kmajor+0))";
  1859. krel="${krel:${#kmajor}}";