aclocal.m4
上传用户:fbh598
上传日期:2007-07-05
资源大小:5960k
文件大小:6k
源码类别:

Java编程

开发平台:

Unix_Linux

  1. dnl aclocal.m4 generated automatically by aclocal 1.4
  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. # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
  11. # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
  12. # are probably using a cross compiler, which will not be able to fully
  13. # link an executable.  This should really be fixed in autoconf
  14. # itself.
  15. AC_DEFUN(LIB_AC_PROG_CC,
  16. [AC_BEFORE([$0], [AC_PROG_CPP])dnl
  17. dnl Fool anybody using AC_PROG_CC.
  18. AC_PROVIDE([AC_PROG_CC])
  19. AC_CHECK_PROG(CC, gcc, gcc)
  20. if test -z "$CC"; then
  21.   AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
  22.   test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in $PATH])
  23. fi
  24. AC_PROG_CC_GNU
  25. if test $ac_cv_prog_gcc = yes; then
  26.   GCC=yes
  27. dnl Check whether -g works, even if CFLAGS is set, in case the package
  28. dnl plays around with CFLAGS (such as to build both debugging and
  29. dnl normal versions of a library), tasteless as that idea is.
  30.   ac_test_CFLAGS="${CFLAGS+set}"
  31.   ac_save_CFLAGS="$CFLAGS"
  32.   CFLAGS=
  33.   AC_PROG_CC_G
  34.   if test "$ac_test_CFLAGS" = set; then
  35.     CFLAGS="$ac_save_CFLAGS"
  36.   elif test $ac_cv_prog_cc_g = yes; then
  37.     CFLAGS="-g -O2"
  38.   else
  39.     CFLAGS="-O2"
  40.   fi
  41. else
  42.   GCC=
  43.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  44. fi
  45. ])
  46. sinclude(../libtool.m4)
  47. dnl The lines below arrange for aclocal not to bring libtool.m4
  48. dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
  49. dnl to add a definition of LIBTOOL to Makefile.in.
  50. ifelse(yes,no,[
  51. AC_DEFUN([AM_PROG_LIBTOOL],)
  52. AC_SUBST(LIBTOOL)
  53. ])
  54. # Do all the work for Automake.  This macro actually does too much --
  55. # some checks are only needed if your package does certain things.
  56. # But this isn't really a big deal.
  57. # serial 1
  58. dnl Usage:
  59. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  60. AC_DEFUN(AM_INIT_AUTOMAKE,
  61. [AC_REQUIRE([AC_PROG_INSTALL])
  62. PACKAGE=[$1]
  63. AC_SUBST(PACKAGE)
  64. VERSION=[$2]
  65. AC_SUBST(VERSION)
  66. dnl test to see if srcdir already configured
  67. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  68.   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  69. fi
  70. ifelse([$3],,
  71. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  72. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  73. AC_REQUIRE([AM_SANITY_CHECK])
  74. AC_REQUIRE([AC_ARG_PROGRAM])
  75. dnl FIXME This is truly gross.
  76. missing_dir=`cd $ac_aux_dir && pwd`
  77. AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  78. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  79. AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  80. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  81. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  82. AC_REQUIRE([AC_PROG_MAKE_SET])])
  83. #
  84. # Check to make sure that the build environment is sane.
  85. #
  86. AC_DEFUN(AM_SANITY_CHECK,
  87. [AC_MSG_CHECKING([whether build environment is sane])
  88. # Just in case
  89. sleep 1
  90. echo timestamp > conftestfile
  91. # Do `set' in a subshell so we don't clobber the current shell's
  92. # arguments.  Must try -L first in case configure is actually a
  93. # symlink; some systems play weird games with the mod time of symlinks
  94. # (eg FreeBSD returns the mod time of the symlink's containing
  95. # directory).
  96. if (
  97.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  98.    if test "[$]*" = "X"; then
  99.       # -L didn't work.
  100.       set X `ls -t $srcdir/configure conftestfile`
  101.    fi
  102.    if test "[$]*" != "X $srcdir/configure conftestfile" 
  103.       && test "[$]*" != "X conftestfile $srcdir/configure"; then
  104.       # If neither matched, then we have a broken ls.  This can happen
  105.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  106.       # broken ls alias from the environment.  This has actually
  107.       # happened.  Such a system could not be considered "sane".
  108.       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  109. alias in your environment])
  110.    fi
  111.    test "[$]2" = conftestfile
  112.    )
  113. then
  114.    # Ok.
  115.    :
  116. else
  117.    AC_MSG_ERROR([newly created file is older than distributed files!
  118. Check your system clock])
  119. fi
  120. rm -f conftest*
  121. AC_MSG_RESULT(yes)])
  122. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  123. dnl The program must properly implement --version.
  124. AC_DEFUN(AM_MISSING_PROG,
  125. [AC_MSG_CHECKING(for working $2)
  126. # Run test in a subshell; some versions of sh will print an error if
  127. # an executable is not found, even if stderr is redirected.
  128. # Redirect stdin to placate older versions of autoconf.  Sigh.
  129. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  130.    $1=$2
  131.    AC_MSG_RESULT(found)
  132. else
  133.    $1="$3/missing $2"
  134.    AC_MSG_RESULT(missing)
  135. fi
  136. AC_SUBST($1)])
  137. # Add --enable-maintainer-mode option to configure.
  138. # From Jim Meyering
  139. # serial 1
  140. AC_DEFUN(AM_MAINTAINER_MODE,
  141. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  142.   dnl maintainer-mode is disabled by default
  143.   AC_ARG_ENABLE(maintainer-mode,
  144. [  --enable-maintainer-mode enable make rules and dependencies not useful
  145.                           (and sometimes confusing) to the casual installer],
  146.       USE_MAINTAINER_MODE=$enableval,
  147.       USE_MAINTAINER_MODE=no)
  148.   AC_MSG_RESULT($USE_MAINTAINER_MODE)
  149.   AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
  150.   MAINT=$MAINTAINER_MODE_TRUE
  151.   AC_SUBST(MAINT)dnl
  152. ]
  153. )
  154. # Define a conditional.
  155. AC_DEFUN(AM_CONDITIONAL,
  156. [AC_SUBST($1_TRUE)
  157. AC_SUBST($1_FALSE)
  158. if $2; then
  159.   $1_TRUE=
  160.   $1_FALSE='#'
  161. else
  162.   $1_TRUE='#'
  163.   $1_FALSE=
  164. fi])