PageRenderTime 46ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/start/alsaplayer/aclocal.m4

#
m4 | 2089 lines | 1514 code | 225 blank | 350 comment | 0 complexity | 14904d27e0a46f959aeda9c8dea2f7a0 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. dnl aclocal.m4 generated automatically by aclocal 1.4-p4
  2. dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl This program is distributed in the hope that it will be useful,
  7. dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. dnl PARTICULAR PURPOSE.
  10. # Do all the work for Automake. This macro actually does too much --
  11. # some checks are only needed if your package does certain things.
  12. # But this isn't really a big deal.
  13. # serial 1
  14. dnl Usage:
  15. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  16. AC_DEFUN(AM_INIT_AUTOMAKE,
  17. [AC_REQUIRE([AC_PROG_INSTALL])
  18. PACKAGE=[$1]
  19. AC_SUBST(PACKAGE)
  20. VERSION=[$2]
  21. AC_SUBST(VERSION)
  22. dnl test to see if srcdir already configured
  23. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  24. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  25. fi
  26. ifelse([$3],,
  27. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  28. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  29. AC_REQUIRE([AM_SANITY_CHECK])
  30. AC_REQUIRE([AC_ARG_PROGRAM])
  31. dnl FIXME This is truly gross.
  32. missing_dir=`cd $ac_aux_dir && pwd`
  33. AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  34. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  35. AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  36. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  37. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  38. AC_REQUIRE([AC_PROG_MAKE_SET])])
  39. #
  40. # Check to make sure that the build environment is sane.
  41. #
  42. AC_DEFUN(AM_SANITY_CHECK,
  43. [AC_MSG_CHECKING([whether build environment is sane])
  44. # Just in case
  45. sleep 1
  46. echo timestamp > conftestfile
  47. # Do `set' in a subshell so we don't clobber the current shell's
  48. # arguments. Must try -L first in case configure is actually a
  49. # symlink; some systems play weird games with the mod time of symlinks
  50. # (eg FreeBSD returns the mod time of the symlink's containing
  51. # directory).
  52. if (
  53. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  54. if test "[$]*" = "X"; then
  55. # -L didn't work.
  56. set X `ls -t $srcdir/configure conftestfile`
  57. fi
  58. if test "[$]*" != "X $srcdir/configure conftestfile" \
  59. && test "[$]*" != "X conftestfile $srcdir/configure"; then
  60. # If neither matched, then we have a broken ls. This can happen
  61. # if, for instance, CONFIG_SHELL is bash and it inherits a
  62. # broken ls alias from the environment. This has actually
  63. # happened. Such a system could not be considered "sane".
  64. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  65. alias in your environment])
  66. fi
  67. test "[$]2" = conftestfile
  68. )
  69. then
  70. # Ok.
  71. :
  72. else
  73. AC_MSG_ERROR([newly created file is older than distributed files!
  74. Check your system clock])
  75. fi
  76. rm -f conftest*
  77. AC_MSG_RESULT(yes)])
  78. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  79. dnl The program must properly implement --version.
  80. AC_DEFUN(AM_MISSING_PROG,
  81. [AC_MSG_CHECKING(for working $2)
  82. # Run test in a subshell; some versions of sh will print an error if
  83. # an executable is not found, even if stderr is redirected.
  84. # Redirect stdin to placate older versions of autoconf. Sigh.
  85. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  86. $1=$2
  87. AC_MSG_RESULT(found)
  88. else
  89. $1="$3/missing $2"
  90. AC_MSG_RESULT(missing)
  91. fi
  92. AC_SUBST($1)])
  93. # Like AC_CONFIG_HEADER, but automatically create stamp file.
  94. AC_DEFUN(AM_CONFIG_HEADER,
  95. [AC_PREREQ([2.12])
  96. AC_CONFIG_HEADER([$1])
  97. dnl When config.status generates a header, we must update the stamp-h file.
  98. dnl This file resides in the same directory as the config header
  99. dnl that is generated. We must strip everything past the first ":",
  100. dnl and everything past the last "/".
  101. AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  102. ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  103. <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  104. <<am_indx=1
  105. for am_file in <<$1>>; do
  106. case " <<$>>CONFIG_HEADERS " in
  107. *" <<$>>am_file "*<<)>>
  108. echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  109. ;;
  110. esac
  111. am_indx=`expr "<<$>>am_indx" + 1`
  112. done<<>>dnl>>)
  113. changequote([,]))])
  114. # Add --enable-maintainer-mode option to configure.
  115. # From Jim Meyering
  116. # serial 1
  117. AC_DEFUN(AM_MAINTAINER_MODE,
  118. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  119. dnl maintainer-mode is disabled by default
  120. AC_ARG_ENABLE(maintainer-mode,
  121. [ --enable-maintainer-mode enable make rules and dependencies not useful
  122. (and sometimes confusing) to the casual installer],
  123. USE_MAINTAINER_MODE=$enableval,
  124. USE_MAINTAINER_MODE=no)
  125. AC_MSG_RESULT($USE_MAINTAINER_MODE)
  126. AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
  127. MAINT=$MAINTAINER_MODE_TRUE
  128. AC_SUBST(MAINT)dnl
  129. ]
  130. )
  131. # Define a conditional.
  132. AC_DEFUN(AM_CONDITIONAL,
  133. [AC_SUBST($1_TRUE)
  134. AC_SUBST($1_FALSE)
  135. if $2; then
  136. $1_TRUE=
  137. $1_FALSE='#'
  138. else
  139. $1_TRUE='#'
  140. $1_FALSE=
  141. fi])
  142. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  143. # serial 47 AC_PROG_LIBTOOL
  144. builtin([undefine],[symbols])
  145. # AC_PROG_LIBTOOL
  146. # ---------------
  147. AC_DEFUN([AC_PROG_LIBTOOL],
  148. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  149. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  150. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  151. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  152. [AC_LIBTOOL_CXX],
  153. [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  154. ])])
  155. dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  156. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  157. dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  158. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  159. [AC_LIBTOOL_GCJ],
  160. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  161. [AC_LIBTOOL_GCJ],
  162. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  163. [AC_LIBTOOL_GCJ],
  164. [ifdef([AC_PROG_GCJ],
  165. [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  166. ifdef([A][M_PROG_GCJ],
  167. [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  168. ifdef([LT_AC_PROG_GCJ],
  169. [define([LT_AC_PROG_GCJ],
  170. defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  171. ])])# AC_PROG_LIBTOOL
  172. # _AC_PROG_LIBTOOL
  173. # ----------------
  174. AC_DEFUN([_AC_PROG_LIBTOOL],
  175. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  176. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  177. AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  178. # This can be used to rebuild libtool when needed
  179. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  180. # Always use our own libtool.
  181. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  182. AC_SUBST(LIBTOOL)dnl
  183. # Prevent multiple expansion
  184. define([AC_PROG_LIBTOOL], [])
  185. ])# _AC_PROG_LIBTOOL
  186. # AC_LIBTOOL_SETUP
  187. # ----------------
  188. AC_DEFUN([AC_LIBTOOL_SETUP],
  189. [AC_PREREQ(2.50)dnl
  190. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  191. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  192. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  193. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  194. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  195. AC_REQUIRE([AC_PROG_CC])dnl
  196. AC_REQUIRE([AC_PROG_LD])dnl
  197. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  198. AC_REQUIRE([AC_PROG_NM])dnl
  199. AC_REQUIRE([AC_PROG_LN_S])dnl
  200. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  201. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  202. AC_REQUIRE([AC_OBJEXT])dnl
  203. AC_REQUIRE([AC_EXEEXT])dnl
  204. dnl
  205. AC_LIBTOOL_SYS_MAX_CMD_LEN
  206. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  207. AC_LIBTOOL_OBJDIR
  208. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  209. _LT_AC_PROG_ECHO_BACKSLASH
  210. case $host_os in
  211. aix3*)
  212. # AIX sometimes has problems with the GCC collect2 program. For some
  213. # reason, if we set the COLLECT_NAMES environment variable, the problems
  214. # vanish in a puff of smoke.
  215. if test "X${COLLECT_NAMES+set}" != Xset; then
  216. COLLECT_NAMES=
  217. export COLLECT_NAMES
  218. fi
  219. ;;
  220. esac
  221. # Sed substitution that helps us do robust quoting. It backslashifies
  222. # metacharacters that are still active within double-quoted strings.
  223. Xsed='sed -e s/^X//'
  224. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  225. # Same as above, but do not quote variable references.
  226. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  227. # Sed substitution to delay expansion of an escaped shell variable in a
  228. # double_quote_subst'ed string.
  229. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  230. # Sed substitution to avoid accidental globbing in evaled expressions
  231. no_glob_subst='s/\*/\\\*/g'
  232. # Constants:
  233. rm="rm -f"
  234. # Global variables:
  235. default_ofile=libtool
  236. can_build_shared=yes
  237. # All known linkers require a `.a' archive for static linking (except M$VC,
  238. # which needs '.lib').
  239. libext=a
  240. ltmain="$ac_aux_dir/ltmain.sh"
  241. ofile="$default_ofile"
  242. with_gnu_ld="$lt_cv_prog_gnu_ld"
  243. AC_CHECK_TOOL(RANLIB, ranlib, :)
  244. AC_CHECK_TOOL(STRIP, strip, :)
  245. old_CC="$CC"
  246. old_CFLAGS="$CFLAGS"
  247. # Set sane defaults for various variables
  248. test -z "$AR" && AR=ar
  249. test -z "$AR_FLAGS" && AR_FLAGS=cru
  250. test -z "$AS" && AS=as
  251. test -z "$CC" && CC=cc
  252. test -z "$LTCC" && LTCC=$CC
  253. test -z "$DLLTOOL" && DLLTOOL=dlltool
  254. test -z "$LD" && LD=ld
  255. test -z "$LN_S" && LN_S="ln -s"
  256. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  257. test -z "$NM" && NM=nm
  258. test -z "$OBJDUMP" && OBJDUMP=objdump
  259. test -z "$RANLIB" && RANLIB=:
  260. test -z "$STRIP" && STRIP=:
  261. test -z "$ac_objext" && ac_objext=o
  262. # Determine commands to create old-style static archives.
  263. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  264. old_postinstall_cmds='chmod 644 $oldlib'
  265. old_postuninstall_cmds=
  266. if test -n "$RANLIB"; then
  267. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  268. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  269. fi
  270. # Only perform the check for file, if the check method requires it
  271. case $deplibs_check_method in
  272. file_magic*)
  273. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  274. AC_PATH_MAGIC
  275. fi
  276. ;;
  277. esac
  278. ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  279. ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  280. enable_win32_dll=yes, enable_win32_dll=no)
  281. AC_ARG_ENABLE([libtool-lock],
  282. [AC_HELP_STRING([--disable-libtool-lock],
  283. [avoid locking (might break parallel builds)])])
  284. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  285. AC_ARG_WITH([pic],
  286. [AC_HELP_STRING([--with-pic],
  287. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  288. [pic_mode="$withval"],
  289. [pic_mode=default])
  290. test -z "$pic_mode" && pic_mode=default
  291. # Use C for the default configuration in the libtool script
  292. tagname=
  293. AC_LIBTOOL_LANG_C_CONFIG
  294. _LT_AC_TAGCONFIG
  295. ])# AC_LIBTOOL_SETUP
  296. # _LT_AC_SYS_COMPILER
  297. # -------------------
  298. AC_DEFUN([_LT_AC_SYS_COMPILER],
  299. [AC_REQUIRE([AC_PROG_CC])dnl
  300. # If no C compiler was specified, use CC.
  301. LTCC=${LTCC-"$CC"}
  302. # Allow CC to be a program name with arguments.
  303. set dummy $CC
  304. compiler="[$]2"
  305. ])# _LT_AC_SYS_COMPILER
  306. # _LT_AC_SYS_LIBPATH_AIX
  307. # ----------------------
  308. # Links a minimal program and checks the executable
  309. # for the system default hardcoded library path. In most cases,
  310. # this is /usr/lib:/lib, but when the MPI compilers are used
  311. # the location of the communication and MPI libs are included too.
  312. # If we don't find anything, use the default library path according
  313. # to the aix ld manual.
  314. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  315. [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  316. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($[2] ~ /^\//) print $[2] }'`
  317. # Check for a 64-bit object if we didn't find anything.
  318. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($[2] ~ /^\//) print $[2] }'`; fi],[])
  319. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  320. ])# _LT_AC_SYS_LIBPATH_AIX
  321. # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  322. # ---------------------------------
  323. AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  324. [# Find the correct PATH separator. Usually this is `:', but
  325. # DJGPP uses `;' like DOS.
  326. if test "X${PATH_SEPARATOR+set}" != Xset; then
  327. UNAME=${UNAME-`uname 2>/dev/null`}
  328. case X$UNAME in
  329. *-DOS) PATH_SEPARATOR=';' ;;
  330. *) PATH_SEPARATOR=':' ;;
  331. esac
  332. fi
  333. ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  334. # _LT_AC_PROG_ECHO_BACKSLASH
  335. # --------------------------
  336. # Add some code to the start of the generated configure script which
  337. # will find an echo command which doesn't interpret backslashes.
  338. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  339. [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  340. [AC_DIVERT_PUSH(NOTICE)])
  341. _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  342. # Check that we are running under the correct shell.
  343. SHELL=${CONFIG_SHELL-/bin/sh}
  344. case X$ECHO in
  345. X*--fallback-echo)
  346. # Remove one level of quotation (which was required for Make).
  347. ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  348. ;;
  349. esac
  350. echo=${ECHO-echo}
  351. if test "X[$]1" = X--no-reexec; then
  352. # Discard the --no-reexec flag, and continue.
  353. shift
  354. elif test "X[$]1" = X--fallback-echo; then
  355. # Avoid inline document here, it may be left over
  356. :
  357. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  358. # Yippee, $echo works!
  359. :
  360. else
  361. # Restart under the correct shell.
  362. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  363. fi
  364. if test "X[$]1" = X--fallback-echo; then
  365. # used as fallback echo
  366. shift
  367. cat <<EOF
  368. [$]*
  369. EOF
  370. exit 0
  371. fi
  372. # The HP-UX ksh and POSIX shell print the target directory to stdout
  373. # if CDPATH is set.
  374. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  375. if test -z "$ECHO"; then
  376. if test "X${echo_test_string+set}" != Xset; then
  377. # find a string as large as possible, as long as the shell can cope with it
  378. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  379. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  380. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  381. echo_test_string="`eval $cmd`" &&
  382. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  383. then
  384. break
  385. fi
  386. done
  387. fi
  388. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  389. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  390. test "X$echo_testing_string" = "X$echo_test_string"; then
  391. :
  392. else
  393. # The Solaris, AIX, and Digital Unix default echo programs unquote
  394. # backslashes. This makes it impossible to quote backslashes using
  395. # echo "$something" | sed 's/\\/\\\\/g'
  396. #
  397. # So, first we look for a working echo in the user's PATH.
  398. IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  399. for dir in $PATH /usr/ucb; do
  400. IFS="$lt_save_ifs"
  401. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  402. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  403. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  404. test "X$echo_testing_string" = "X$echo_test_string"; then
  405. echo="$dir/echo"
  406. break
  407. fi
  408. done
  409. IFS="$lt_save_ifs"
  410. if test "X$echo" = Xecho; then
  411. # We didn't find a better echo, so look for alternatives.
  412. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  413. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  414. test "X$echo_testing_string" = "X$echo_test_string"; then
  415. # This shell has a builtin print -r that does the trick.
  416. echo='print -r'
  417. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  418. test "X$CONFIG_SHELL" != X/bin/ksh; then
  419. # If we have ksh, try running configure again with it.
  420. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  421. export ORIGINAL_CONFIG_SHELL
  422. CONFIG_SHELL=/bin/ksh
  423. export CONFIG_SHELL
  424. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  425. else
  426. # Try using printf.
  427. echo='printf %s\n'
  428. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  429. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  430. test "X$echo_testing_string" = "X$echo_test_string"; then
  431. # Cool, printf works
  432. :
  433. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  434. test "X$echo_testing_string" = 'X\t' &&
  435. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  436. test "X$echo_testing_string" = "X$echo_test_string"; then
  437. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  438. export CONFIG_SHELL
  439. SHELL="$CONFIG_SHELL"
  440. export SHELL
  441. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  442. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  443. test "X$echo_testing_string" = 'X\t' &&
  444. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  445. test "X$echo_testing_string" = "X$echo_test_string"; then
  446. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  447. else
  448. # maybe with a smaller string...
  449. prev=:
  450. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  451. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  452. then
  453. break
  454. fi
  455. prev="$cmd"
  456. done
  457. if test "$prev" != 'sed 50q "[$]0"'; then
  458. echo_test_string=`eval $prev`
  459. export echo_test_string
  460. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  461. else
  462. # Oops. We lost completely, so just stick with echo.
  463. echo=echo
  464. fi
  465. fi
  466. fi
  467. fi
  468. fi
  469. fi
  470. # Copy echo and quote the copy suitably for passing to libtool from
  471. # the Makefile, instead of quoting the original, which is used later.
  472. ECHO=$echo
  473. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  474. ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  475. fi
  476. AC_SUBST(ECHO)
  477. AC_DIVERT_POP
  478. ])# _LT_AC_PROG_ECHO_BACKSLASH
  479. # _LT_AC_LOCK
  480. # -----------
  481. AC_DEFUN([_LT_AC_LOCK],
  482. [AC_ARG_ENABLE([libtool-lock],
  483. [AC_HELP_STRING([--disable-libtool-lock],
  484. [avoid locking (might break parallel builds)])])
  485. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  486. # Some flags need to be propagated to the compiler or linker for good
  487. # libtool support.
  488. case $host in
  489. ia64-*-hpux*)
  490. # Find out which ABI we are using.
  491. echo 'int i;' > conftest.$ac_ext
  492. if AC_TRY_EVAL(ac_compile); then
  493. case `/usr/bin/file conftest.$ac_objext` in
  494. *ELF-32*)
  495. HPUX_IA64_MODE="32"
  496. ;;
  497. *ELF-64*)
  498. HPUX_IA64_MODE="64"
  499. ;;
  500. esac
  501. fi
  502. rm -rf conftest*
  503. ;;
  504. *-*-irix6*)
  505. # Find out which ABI we are using.
  506. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  507. if AC_TRY_EVAL(ac_compile); then
  508. case `/usr/bin/file conftest.$ac_objext` in
  509. *32-bit*)
  510. LD="${LD-ld} -32"
  511. ;;
  512. *N32*)
  513. LD="${LD-ld} -n32"
  514. ;;
  515. *64-bit*)
  516. LD="${LD-ld} -64"
  517. ;;
  518. esac
  519. fi
  520. rm -rf conftest*
  521. ;;
  522. *-*-sco3.2v5*)
  523. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  524. SAVE_CFLAGS="$CFLAGS"
  525. CFLAGS="$CFLAGS -belf"
  526. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  527. [AC_LANG_PUSH(C)
  528. AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  529. AC_LANG_POP])
  530. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  531. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  532. CFLAGS="$SAVE_CFLAGS"
  533. fi
  534. ;;
  535. ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  536. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  537. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  538. AC_CHECK_TOOL(AS, as, false)
  539. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  540. # recent cygwin and mingw systems supply a stub DllMain which the user
  541. # can override, but on older systems we have to supply one
  542. AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  543. [AC_TRY_LINK([],
  544. [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  545. DllMain (0, 0, 0);],
  546. [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  547. case $host/$CC in
  548. *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  549. # old mingw systems require "-dll" to link a DLL, while more recent ones
  550. # require "-mdll"
  551. SAVE_CFLAGS="$CFLAGS"
  552. CFLAGS="$CFLAGS -mdll"
  553. AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  554. [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  555. CFLAGS="$SAVE_CFLAGS" ;;
  556. *-*-cygwin* | *-*-pw32*)
  557. # cygwin systems need to pass --dll to the linker, and not link
  558. # crt.o which will require a WinMain@16 definition.
  559. lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  560. esac
  561. ;;
  562. ])
  563. esac
  564. need_locks="$enable_libtool_lock"
  565. ])# _LT_AC_LOCK
  566. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  567. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  568. # ----------------------------------------------------------------
  569. # Check whether the given compiler option works
  570. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  571. [AC_CACHE_CHECK([$1], [$2],
  572. [$2=no
  573. ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  574. save_CFLAGS="$CFLAGS"
  575. CFLAGS="$CFLAGS $3"
  576. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  577. if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
  578. # The compiler can only warn and ignore the option if not recognized
  579. # So say no if there are warnings
  580. if test -s conftest.err; then
  581. # Append any errors to the config.log.
  582. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  583. else
  584. $2=yes
  585. fi
  586. fi
  587. $rm conftest*
  588. CFLAGS="$save_CFLAGS"
  589. ])
  590. if test x"[$]$2" = xyes; then
  591. ifelse([$5], , :, [$5])
  592. else
  593. ifelse([$6], , :, [$6])
  594. fi
  595. ])# AC_LIBTOOL_COMPILER_OPTION
  596. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  597. # [ACTION-SUCCESS], [ACTION-FAILURE])
  598. # ------------------------------------------------------------
  599. # Check whether the given compiler option works
  600. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  601. [AC_CACHE_CHECK([$1], [$2],
  602. [$2=no
  603. save_LDFLAGS="$LDFLAGS"
  604. LDFLAGS="$LDFLAGS $3"
  605. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  606. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  607. # The compiler can only warn and ignore the option if not recognized
  608. # So say no if there are warnings
  609. if test -s conftest.err; then
  610. # Append any errors to the config.log.
  611. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  612. else
  613. $2=yes
  614. fi
  615. fi
  616. $rm conftest*
  617. LDFLAGS="$save_LDFLAGS"
  618. ])
  619. if test x"[$]$2" = xyes; then
  620. ifelse([$4], , :, [$4])
  621. else
  622. ifelse([$5], , :, [$5])
  623. fi
  624. ])# AC_LIBTOOL_LINKER_OPTION
  625. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  626. # --------------------------
  627. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  628. [# find the maximum length of command line arguments
  629. AC_MSG_CHECKING([the maximum length of command line arguments])
  630. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  631. i=0
  632. testring="ABCD"
  633. case $host_os in
  634. msdosdjgpp*)
  635. # On DJGPP, this test can blow up pretty badly due to problems in libc
  636. # (any single argument exceeding 2000 bytes causes a buffer overrun
  637. # during glob expansion). Even if it were fixed, the result of this
  638. # check would be larger than it should be.
  639. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  640. ;;
  641. gnu*)
  642. # Under GNU Hurd, this test is not required because there is
  643. # no limit to the length of command line arguments.
  644. # Libtool will interpret -1 as no limit whatsoever
  645. lt_cv_sys_max_cmd_len=-1;
  646. ;;
  647. *)
  648. # If test is not a shell built-in, we'll probably end up computing a
  649. # maximum length that is only half of the actual maximum length, but
  650. # we can't tell.
  651. while test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
  652. = "XX$testring" &&
  653. new_result=`expr "X$testring" : ".*" 2>&1` &&
  654. lt_cv_sys_max_cmd_len=$new_result &&
  655. test $i != 17 # 1/2 MB should be enough
  656. do
  657. i=`expr $i + 1`
  658. testring=$testring$testring
  659. done
  660. testring=
  661. # add a significant safety factor because C++ compilers can tack on massive
  662. # amounts of additional arguments before passing them to the linker. 1/4
  663. # should be good.
  664. len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  665. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
  666. ;;
  667. esac
  668. ])
  669. if test -n $lt_cv_sys_max_cmd_len ; then
  670. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  671. else
  672. AC_MSG_RESULT(none)
  673. fi
  674. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  675. # _LT_AC_CHECK_DLFCN
  676. # --------------------
  677. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  678. [AC_CHECK_HEADERS(dlfcn.h)dnl
  679. ])# _LT_AC_CHECK_DLFCN
  680. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  681. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  682. # ------------------------------------------------------------------
  683. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  684. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  685. if test "$cross_compiling" = yes; then :
  686. [$4]
  687. else
  688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  689. lt_status=$lt_dlunknown
  690. cat > conftest.$ac_ext <<EOF
  691. [#line __oline__ "configure"
  692. #include "confdefs.h"
  693. #if HAVE_DLFCN_H
  694. #include <dlfcn.h>
  695. #endif
  696. #include <stdio.h>
  697. #ifdef RTLD_GLOBAL
  698. # define LT_DLGLOBAL RTLD_GLOBAL
  699. #else
  700. # ifdef DL_GLOBAL
  701. # define LT_DLGLOBAL DL_GLOBAL
  702. # else
  703. # define LT_DLGLOBAL 0
  704. # endif
  705. #endif
  706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  707. find out it does not work in some platform. */
  708. #ifndef LT_DLLAZY_OR_NOW
  709. # ifdef RTLD_LAZY
  710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  711. # else
  712. # ifdef DL_LAZY
  713. # define LT_DLLAZY_OR_NOW DL_LAZY
  714. # else
  715. # ifdef RTLD_NOW
  716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  717. # else
  718. # ifdef DL_NOW
  719. # define LT_DLLAZY_OR_NOW DL_NOW
  720. # else
  721. # define LT_DLLAZY_OR_NOW 0
  722. # endif
  723. # endif
  724. # endif
  725. # endif
  726. #endif
  727. #ifdef __cplusplus
  728. extern "C" void exit (int);
  729. #endif
  730. void fnord() { int i=42;}
  731. int main ()
  732. {
  733. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  734. int status = $lt_dlunknown;
  735. if (self)
  736. {
  737. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  738. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  739. /* dlclose (self); */
  740. }
  741. exit (status);
  742. }]
  743. EOF
  744. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  745. (./conftest; exit; ) 2>/dev/null
  746. lt_status=$?
  747. case x$lt_status in
  748. x$lt_dlno_uscore) $1 ;;
  749. x$lt_dlneed_uscore) $2 ;;
  750. x$lt_unknown|x*) $3 ;;
  751. esac
  752. else :
  753. # compilation failed
  754. $3
  755. fi
  756. fi
  757. rm -fr conftest*
  758. ])# _LT_AC_TRY_DLOPEN_SELF
  759. # AC_LIBTOOL_DLOPEN_SELF
  760. # -------------------
  761. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  762. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  763. if test "x$enable_dlopen" != xyes; then
  764. enable_dlopen=unknown
  765. enable_dlopen_self=unknown
  766. enable_dlopen_self_static=unknown
  767. else
  768. lt_cv_dlopen=no
  769. lt_cv_dlopen_libs=
  770. case $host_os in
  771. beos*)
  772. lt_cv_dlopen="load_add_on"
  773. lt_cv_dlopen_libs=
  774. lt_cv_dlopen_self=yes
  775. ;;
  776. cygwin* | mingw* | pw32*)
  777. lt_cv_dlopen="LoadLibrary"
  778. lt_cv_dlopen_libs=
  779. ;;
  780. *)
  781. AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
  782. [AC_CHECK_LIB(dld, shl_load,
  783. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  784. [AC_CHECK_LIB(dl, dlopen,
  785. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  786. [AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
  787. [AC_CHECK_LIB(svld, dlopen,
  788. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"])
  789. ])
  790. ])
  791. ])
  792. ])
  793. ;;
  794. esac
  795. if test "x$lt_cv_dlopen" != xno; then
  796. enable_dlopen=yes
  797. else
  798. enable_dlopen=no
  799. fi
  800. case $lt_cv_dlopen in
  801. dlopen)
  802. save_CPPFLAGS="$CPPFLAGS"
  803. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  804. save_LDFLAGS="$LDFLAGS"
  805. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  806. save_LIBS="$LIBS"
  807. LIBS="$lt_cv_dlopen_libs $LIBS"
  808. AC_CACHE_CHECK([whether a program can dlopen itself],
  809. lt_cv_dlopen_self, [dnl
  810. _LT_AC_TRY_DLOPEN_SELF(
  811. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  812. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  813. ])
  814. if test "x$lt_cv_dlopen_self" = xyes; then
  815. LDFLAGS="$LDFLAGS $link_static_flag"
  816. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  817. lt_cv_dlopen_self_static, [dnl
  818. _LT_AC_TRY_DLOPEN_SELF(
  819. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  820. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  821. ])
  822. fi
  823. CPPFLAGS="$save_CPPFLAGS"
  824. LDFLAGS="$save_LDFLAGS"
  825. LIBS="$save_LIBS"
  826. ;;
  827. esac
  828. case $lt_cv_dlopen_self in
  829. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  830. *) enable_dlopen_self=unknown ;;
  831. esac
  832. case $lt_cv_dlopen_self_static in
  833. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  834. *) enable_dlopen_self_static=unknown ;;
  835. esac
  836. fi
  837. ])# AC_LIBTOOL_DLOPEN_SELF
  838. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  839. # ---------------------------------
  840. # Check to see if options -c and -o are simultaneously supported by compiler
  841. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  842. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  843. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  844. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  845. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  846. $rm -r conftest 2>/dev/null
  847. mkdir conftest
  848. cd conftest
  849. mkdir out
  850. ifelse([$1],[],[save_CFLAGS="$CFLAGS"
  851. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"],
  852. [$1],[CXX],[save_CXXFLAGS="$CXXFLAGS"
  853. CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"],
  854. [$1],[GCJ],[save_GCJFLAGS="$GCJFLAGS"
  855. GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"])
  856. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  857. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  858. # that will create temporary files in the current directory regardless of
  859. # the output directory. Thus, making CWD read-only will cause this test
  860. # to fail, enabling locking or at least warning the user not to do parallel
  861. # builds.
  862. chmod -w .
  863. if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
  864. then
  865. # The compiler can only warn and ignore the option if not recognized
  866. # So say no if there are warnings
  867. if test -s out/conftest.err; then
  868. # Append any errors to the config.log.
  869. cat out/conftest.err 1>&AS_MESSAGE_LOG_FD
  870. else
  871. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  872. fi
  873. fi
  874. ifelse([$1],[],[CFLAGS="$save_CFLAGS"],
  875. [$1],[CXX],[CXXFLAGS="$save_CXXFLAGS"],
  876. [$1],[GCJ],[GCJFLAGS="$save_GCJFLAGS"])
  877. chmod u+w .
  878. $rm conftest* out/*
  879. rmdir out
  880. cd ..
  881. rmdir conftest
  882. $rm conftest*
  883. ])
  884. ])# AC_LIBTOOL_PROG_CC_C_O
  885. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  886. # -----------------------------------------
  887. # Check to see if we can do hard links to lock some files if needed
  888. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  889. [AC_REQUIRE([_LT_AC_LOCK])dnl
  890. hard_links="nottested"
  891. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  892. # do not overwrite the value of need_locks provided by the user
  893. AC_MSG_CHECKING([if we can lock with hard links])
  894. hard_links=yes
  895. $rm conftest*
  896. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  897. touch conftest.a
  898. ln conftest.a conftest.b 2>&5 || hard_links=no
  899. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  900. AC_MSG_RESULT([$hard_links])
  901. if test "$hard_links" = no; then
  902. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  903. need_locks=warn
  904. fi
  905. else
  906. need_locks=no
  907. fi
  908. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  909. # AC_LIBTOOL_OBJDIR
  910. # -----------------
  911. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  912. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  913. [rm -f .libs 2>/dev/null
  914. mkdir .libs 2>/dev/null
  915. if test -d .libs; then
  916. lt_cv_objdir=.libs
  917. else
  918. # MS-DOS does not allow filenames that begin with a dot.
  919. lt_cv_objdir=_libs
  920. fi
  921. rmdir .libs 2>/dev/null])
  922. objdir=$lt_cv_objdir
  923. ])# AC_LIBTOOL_OBJDIR
  924. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  925. # ----------------------------------------------
  926. # Check hardcoding attributes.
  927. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  928. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  929. _LT_AC_TAGVAR(hardcode_action, $1)=
  930. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  931. test -n "$_LT_AC_TAGVAR(runpath_var $1)"; then
  932. # We can hardcode non-existant directories.
  933. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  934. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  935. # have to relink, otherwise we might link with an installed library
  936. # when we should be linking with a yet-to-be-installed one
  937. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  938. test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  939. # Linking always hardcodes the temporary library directory.
  940. _LT_AC_TAGVAR(hardcode_action, $1)=relink
  941. else
  942. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  943. _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  944. fi
  945. else
  946. # We cannot hardcode anything, or else we can only hardcode existing
  947. # directories.
  948. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  949. fi
  950. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  951. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  952. # Fast installation is not supported
  953. enable_fast_install=no
  954. elif test "$shlibpath_overrides_runpath" = yes ||
  955. test "$enable_shared" = no; then
  956. # Fast installation is not necessary
  957. enable_fast_install=needless
  958. fi
  959. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  960. # AC_LIBTOOL_SYS_LIB_STRIP
  961. # ------------------------
  962. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  963. [striplib=
  964. old_striplib=
  965. AC_MSG_CHECKING([whether stripping libraries is possible])
  966. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  967. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  968. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  969. AC_MSG_RESULT([yes])
  970. else
  971. AC_MSG_RESULT([no])
  972. fi
  973. ])# AC_LIBTOOL_SYS_LIB_STRIP
  974. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  975. # -----------------------------
  976. # PORTME Fill in your ld.so characteristics
  977. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  978. [AC_MSG_CHECKING([dynamic linker characteristics])
  979. library_names_spec=
  980. libname_spec='lib$name'
  981. soname_spec=
  982. postinstall_cmds=
  983. postuninstall_cmds=
  984. finish_cmds=
  985. finish_eval=
  986. shlibpath_var=
  987. shlibpath_overrides_runpath=unknown
  988. version_type=none
  989. dynamic_linker="$host_os ld.so"
  990. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  991. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  992. need_lib_prefix=unknown
  993. hardcode_into_libs=no
  994. # when you set need_version to no, make sure it does not cause -set_version
  995. # flags to be left without arguments
  996. need_version=unknown
  997. case $host_os in
  998. aix3*)
  999. version_type=linux
  1000. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  1001. shlibpath_var=LIBPATH
  1002. # AIX 3 has no versioning support, so we append a major version to the name.
  1003. soname_spec='${libname}${release}.so$major'
  1004. ;;
  1005. aix4* | aix5*)
  1006. version_type=linux
  1007. if test "$host_cpu" = ia64; then
  1008. # AIX 5 supports IA64
  1009. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  1010. shlibpath_var=LD_LIBRARY_PATH
  1011. else
  1012. # With GCC up to 2.95.x, collect2 would create an import file
  1013. # for dependence libraries. The import file would start with
  1014. # the line `#! .'. This would cause the generated library to
  1015. # depend on `.', always an invalid library. This was fixed in
  1016. # development snapshots of GCC prior to 3.0.
  1017. case $host_os in
  1018. [ aix4 | aix4.[01] | aix4.[01].*)]
  1019. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1020. echo ' yes '
  1021. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1022. :
  1023. else
  1024. can_build_shared=no
  1025. fi
  1026. ;;
  1027. esac
  1028. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1029. # soname into executable. Probably we can add versioning support to
  1030. # collect2, so additional links can be useful in future.
  1031. if test "$aix_use_runtimelinking" = yes; then
  1032. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1033. # instead of lib<name>.a to let people know that these are not
  1034. # typical AIX shared libraries.
  1035. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1036. else
  1037. # We preserve .a as extension for shared libraries through AIX4.2
  1038. # and later when we are not doing run time linking.
  1039. library_names_spec='${libname}${release}.a $libname.a'
  1040. soname_spec='${libname}${release}.so$major'
  1041. fi
  1042. shlibpath_var=LIBPATH
  1043. deplibs_check_method=pass_all
  1044. fi
  1045. ;;
  1046. amigaos*)
  1047. library_names_spec='$libname.ixlibrary $libname.a'
  1048. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1049. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | [$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  1050. ;;
  1051. beos*)
  1052. library_names_spec='${libname}.so'
  1053. dynamic_linker="$host_os ld.so"
  1054. shlibpath_var=LIBRARY_PATH
  1055. ;;
  1056. bsdi4*)
  1057. version_type=linux
  1058. need_version=no
  1059. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1060. soname_spec='${libname}${release}.so$major'
  1061. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1062. shlibpath_var=LD_LIBRARY_PATH
  1063. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1064. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1065. # the default ld.so.conf also contains /usr/contrib/lib and
  1066. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1067. # libtool to hard-code these into programs
  1068. ;;
  1069. cygwin* | mingw* | pw32*)
  1070. version_type=windows
  1071. need_version=no
  1072. need_lib_prefix=no
  1073. case $GCC,$host_os in
  1074. yes,cygwin*)
  1075. library_names_spec='$libname.dll.a'
  1076. sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  1077. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
  1078. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  1079. dldir=$destdir/`dirname \$dlpath`~
  1080. test -d \$dldir || mkdir -p \$dldir~
  1081. $install_prog .libs/$dlname \$dldir/$dlname'
  1082. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1083. dlpath=$dir/\$dldll~
  1084. $rm \$dlpath'
  1085. ;;
  1086. yes,mingw*)
  1087. library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
  1088. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
  1089. ;;
  1090. yes,pw32*)
  1091. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  1092. ;;
  1093. *)
  1094. library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib'
  1095. ;;
  1096. esac
  1097. dynamic_linker='Win32 ld.exe'
  1098. # FIXME: first we should search . and the directory the executable is in
  1099. shlibpath_var=PATH
  1100. ;;
  1101. darwin* | rhapsody*)
  1102. dynamic_linker="$host_os dyld"
  1103. version_type=darwin
  1104. need_lib_prefix=no
  1105. need_version=no
  1106. # FIXME: Relying on posixy $() will cause problems for
  1107. # cross-compilation, but unfortunately the echo tests do not
  1108. # yet detect zsh echo's removal of \ escapes.
  1109. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  1110. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  1111. shlibpath_overrides_runpath=yes
  1112. shlibpath_var=DYLD_LIBRARY_PATH
  1113. ;;
  1114. dgux*)
  1115. version_type=linux
  1116. need_lib_prefix=no
  1117. need_version=no
  1118. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1119. soname_spec='${libname}${release}.so$major'
  1120. shlibpath_var=LD_LIBRARY_PATH
  1121. ;;
  1122. freebsd1*)
  1123. dynamic_linker=no
  1124. ;;
  1125. freebsd*)
  1126. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  1127. version_type=freebsd-$objformat
  1128. case $version_type in
  1129. freebsd-elf*)
  1130. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  1131. need_version=no
  1132. need_lib_prefix=no
  1133. ;;
  1134. freebsd-*)
  1135. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  1136. need_version=yes
  1137. ;;
  1138. esac
  1139. shlibpath_var=LD_LIBRARY_PATH
  1140. case $host_os in
  1141. freebsd2*)
  1142. shlibpath_overrides_runpath=yes
  1143. ;;
  1144. freebsd3.[01]* | freebsdelf3.[01]*)
  1145. shlibpath_overrides_runpath=yes
  1146. hardcode_into_libs=yes
  1147. ;;
  1148. *) # from 3.2 on
  1149. shlibpath_overrides_runpath=no
  1150. hardcode_into_libs=yes
  1151. ;;
  1152. esac
  1153. ;;
  1154. gnu*)
  1155. version_type=linux
  1156. need_lib_prefix=no
  1157. need_version=no
  1158. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  1159. soname_spec='${libname}${release}.so$major'
  1160. shlibpath_var=LD_LIBRARY_PATH
  1161. hardcode_into_libs=yes
  1162. ;;
  1163. hpux9* | hpux10* | hpux11*)
  1164. # Give a soname corresponding to the major version so that dld.sl refuses to
  1165. # link against other versions.
  1166. version_type=sunos
  1167. need_lib_prefix=no
  1168. need_version=no
  1169. if test "$host_cpu" = ia64; then
  1170. hardcode_into_libs=yes
  1171. dynamic_linker="$host_os dld.so"
  1172. shlibpath_var=LD_LIBRARY_PATH
  1173. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1174. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1175. soname_spec='${libname}${release}.so$major'
  1176. if test "X$HPUX_IA64_MODE" = X32; then
  1177. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1178. else
  1179. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1180. fi
  1181. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1182. else
  1183. dynamic_linker="$host_os dld.sl"
  1184. shlibpath_var=SHLIB_PATH
  1185. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1186. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  1187. soname_spec='${libname}${release}.sl$major'
  1188. fi
  1189. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1190. postinstall_cmds='chmod 555 $lib'
  1191. ;;
  1192. irix5* | irix6*)
  1193. version_type=irix
  1194. need_lib_prefix=no
  1195. need_version=no
  1196. soname_spec='${libname}${release}.so$major'
  1197. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  1198. case $host_os in
  1199. irix5*)
  1200. libsuff= shlibsuff=
  1201. ;;
  1202. *)
  1203. case $LD in # libtool.m4 will add one of these switches to LD
  1204. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  1205. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  1206. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1207. *) libsuff= shlibsuff= libmagic=never-match;;
  1208. esac
  1209. ;;
  1210. esac
  1211. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1212. shlibpath_overrides_runpath=no
  1213. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1214. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1215. ;;
  1216. # No shared lib support for Linux oldld, aout, or coff.
  1217. linux*oldld* | linux*aout* | linux*coff*)
  1218. dynamic_linker=no
  1219. ;;
  1220. # This must be Linux ELF.
  1221. linux*)
  1222. version_type=linux
  1223. need_lib_prefix=no
  1224. need_version=no
  1225. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1226. soname_spec='${libname}${release}.so$major'
  1227. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1228. shlibpath_var=LD_LIBRARY_PATH
  1229. shlibpath_overrides_runpath=no
  1230. # This implies no fast_install, which is unacceptable.
  1231. # Some rework will be needed to allow for fast_install
  1232. # before this can be enabled.
  1233. hardcode_into_libs=yes
  1234. # We used to test for /lib/ld.so.1 and disable shared libraries on
  1235. # powerpc, because MkLinux only supported shared libraries with the
  1236. # GNU dynamic linker. Since this was broken with cross compilers,
  1237. # most powerpc-linux boxes support dynamic linking these days and
  1238. # people can always --disable-shared, the test was removed, and we
  1239. # assume the GNU/Linux dynamic linker is in use.
  1240. dynamic_linker='GNU/Linux ld.so'
  1241. ;;
  1242. netbsd*)
  1243. version_type=sunos
  1244. need_lib_prefix=no
  1245. need_version=no
  1246. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1247. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1248. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1249. dynamic_linker='NetBSD (a.out) ld.so'
  1250. else
  1251. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  1252. soname_spec='${libname}${release}.so$major'
  1253. dynamic_linker='NetBSD ld.elf_so'
  1254. fi
  1255. shlibpath_var=LD_LIBRARY_PATH
  1256. shlibpath_overrides_runpath=yes
  1257. hardcode_into_libs=yes
  1258. ;;
  1259. newsos6)
  1260. version_type=linux
  1261. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1262. shlibpath_var=LD_LIBRARY_PATH
  1263. shlibpath_overrides_runpath=yes
  1264. ;;
  1265. nto-qnx)
  1266. version_type=linux
  1267. need_lib_prefix=no
  1268. need_version=no
  1269. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1270. soname_spec='${libname}${release}.so$major'
  1271. shlibpath_var=LD_LIBRARY_PATH
  1272. shlibpath_overrides_runpath=yes
  1273. ;;
  1274. openbsd*)
  1275. version_type=sunos
  1276. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1277. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1278. shlibpath_var=LD_LIBRARY_PATH
  1279. file_magic_cmd=/usr/bin/file
  1280. file_magic_test_file=`echo /usr/lib/libc.so.*`
  1281. if [ "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ]; then
  1282. deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  1283. else
  1284. deplibs_check_method='file_magic OpenBSD.* shared library'
  1285. fi
  1286. ;;
  1287. os2*)
  1288. libname_spec='$name'
  1289. need_lib_prefix=no
  1290. library_names_spec='$libname.dll $libname.a'
  1291. dynamic_linker='OS/2 ld.exe'
  1292. shlibpath_var=LIBPATH
  1293. ;;
  1294. osf3* | osf4* | osf5*)
  1295. version_type=osf
  1296. need_version=no
  1297. soname_spec='${libname}${release}.so'
  1298. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  1299. shlibpath_var=LD_LIBRARY_PATH
  1300. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1301. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1302. ;;
  1303. sco3.2v5*)
  1304. version_type=osf
  1305. soname_spec='${libname}${release}.so$major'
  1306. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1307. shlibpath_var=LD_LIBRARY_PATH
  1308. ;;
  1309. solaris*)
  1310. version_type=linux
  1311. need_lib_prefix=no
  1312. need_version=no
  1313. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1314. soname_spec='${libname}${release}.so$major'
  1315. shlibpath_var=LD_LIBRARY_PATH
  1316. shlibpath_overrides_runpath=yes
  1317. hardcode_into_libs=yes
  1318. # ldd complains unless libraries are executable
  1319. postinstall_cmds='chmod +x $lib'
  1320. ;;
  1321. sunos4*)
  1322. version_type=sunos
  1323. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1324. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1325. shlibpath_var=LD_LIBRARY_PATH
  1326. shlibpath_overrides_runpath=yes
  1327. if test "$with_gnu_ld" = yes; then
  1328. need_lib_prefix=no
  1329. fi
  1330. need_version=yes
  1331. ;;
  1332. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1333. version_type=linux
  1334. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1335. soname_spec='${libname}${release}.so$major'
  1336. shlibpath_var=LD_LIBRARY_PATH
  1337. case $host_vendor in
  1338. sni)
  1339. shlibpath_overrides_runpath=no
  1340. ;;
  1341. motorola)
  1342. need_lib_prefix=no
  1343. need_version=no
  1344. shlibpath_overrides_runpath=no
  1345. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1346. ;;
  1347. esac
  1348. ;;
  1349. sysv4*MP*)
  1350. if test -d /usr/nec ;then
  1351. version_type=linux
  1352. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  1353. soname_spec='$libname.so.$major'
  1354. shlibpath_var=LD_LIBRARY_PATH
  1355. fi
  1356. ;;
  1357. uts4*)
  1358. version_type=linux
  1359. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1360. soname_spec='${libname}${release}.so$major'
  1361. shlibpath_var=LD_LIBRARY_PATH
  1362. ;;
  1363. *)
  1364. dynamic_linker=no
  1365. ;;
  1366. esac
  1367. AC_MSG_RESULT([$dynamic_linker])
  1368. test "$dynamic_linker" = no && can_build_shared=no
  1369. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1370. # _LT_AC_TAGCONFIG
  1371. # ----------------
  1372. AC_DEFUN([_LT_AC_TAGCONFIG],
  1373. [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  1374. AC_ARG_WITH([tags],
  1375. [AC_HELP_STRING([--with-tags=TAGS],
  1376. [include additional configurations @<:@CXX,GCJ@:>@])],
  1377. [tagnames="$withval"],
  1378. [tagnames="CXX,GCJ"])
  1379. if test -f "$ltmain" && test -n "$tagnames"; then
  1380. if test ! -f "${ofile}"; then
  1381. AC_MSG_WARN([output file `$ofile' does not exist])
  1382. fi
  1383. if test -z "$LTCC"; then
  1384. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1385. if test -z "$LTCC"; then
  1386. AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1387. else
  1388. AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1389. fi
  1390. fi
  1391. # Extract list of available tagged configurations in $ofile.
  1392. # Note that this assumes the entire list is on one line.
  1393. available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1394. IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
  1395. for tagname in $tagnames; do
  1396. IFS="$lt_save_ifs"
  1397. # Check whether tagname contains only valid characters
  1398. [case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in]
  1399. "") ;;
  1400. *) AC_MSG_ERROR([invalid tag name: $tagname])
  1401. ;;
  1402. esac
  1403. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1404. then

Large files files are truncated, but you can click here to view the full file