home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / DOORL093.ZIP / doorlib-0.9.3.tar.bz2 / doorlib-0.9.3.tar / doorlib-0.9.3 / aclocal.m4 next >
M4 Source File  |  2003-02-21  |  5KB  |  150 lines

  1. dnl aclocal.m4 generated automatically by aclocal 1.4-p4
  2.  
  3. dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  4. dnl This file is free software; the Free Software Foundation
  5. dnl gives unlimited permission to copy and/or distribute it,
  6. dnl with or without modifications, as long as this notice is preserved.
  7.  
  8. dnl This program is distributed in the hope that it will be useful,
  9. dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  10. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. dnl PARTICULAR PURPOSE.
  12.  
  13. dnl aclocal.m4 generated automatically by aclocal 1.4
  14.  
  15. dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  16. dnl This file is free software; the Free Software Foundation
  17. dnl gives unlimited permission to copy and/or distribute it,
  18. dnl with or without modifications, as long as this notice is preserved.
  19.  
  20. dnl This program is distributed in the hope that it will be useful,
  21. dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  22. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  23. dnl PARTICULAR PURPOSE.
  24.  
  25. # Do all the work for Automake.  This macro actually does too much --
  26. # some checks are only needed if your package does certain things.
  27. # But this isn't really a big deal.
  28.  
  29. # serial 1
  30.  
  31. dnl Usage:
  32. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  33.  
  34. AC_DEFUN(AM_INIT_AUTOMAKE,
  35. [AC_REQUIRE([AC_PROG_INSTALL])
  36. PACKAGE=[$1]
  37. AC_SUBST(PACKAGE)
  38. VERSION=[$2]
  39. AC_SUBST(VERSION)
  40. dnl test to see if srcdir already configured
  41. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  42.   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  43. fi
  44. ifelse([$3],,
  45. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  46. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  47. AC_REQUIRE([AM_SANITY_CHECK])
  48. AC_REQUIRE([AC_ARG_PROGRAM])
  49. dnl FIXME This is truly gross.
  50. missing_dir=`cd $ac_aux_dir && pwd`
  51. AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  52. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  53. AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  54. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  55. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  56. AC_REQUIRE([AC_PROG_MAKE_SET])])
  57.  
  58. #
  59. # Check to make sure that the build environment is sane.
  60. #
  61.  
  62. AC_DEFUN(AM_SANITY_CHECK,
  63. [AC_MSG_CHECKING([whether build environment is sane])
  64. # Just in case
  65. sleep 1
  66. echo timestamp > conftestfile
  67. # Do `set' in a subshell so we don't clobber the current shell's
  68. # arguments.  Must try -L first in case configure is actually a
  69. # symlink; some systems play weird games with the mod time of symlinks
  70. # (eg FreeBSD returns the mod time of the symlink's containing
  71. # directory).
  72. if (
  73.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  74.    if test "[$]*" = "X"; then
  75.       # -L didn't work.
  76.       set X `ls -t $srcdir/configure conftestfile`
  77.    fi
  78.    if test "[$]*" != "X $srcdir/configure conftestfile" \
  79.       && test "[$]*" != "X conftestfile $srcdir/configure"; then
  80.  
  81.       # If neither matched, then we have a broken ls.  This can happen
  82.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  83.       # broken ls alias from the environment.  This has actually
  84.       # happened.  Such a system could not be considered "sane".
  85.       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  86. alias in your environment])
  87.    fi
  88.  
  89.    test "[$]2" = conftestfile
  90.    )
  91. then
  92.    # Ok.
  93.    :
  94. else
  95.    AC_MSG_ERROR([newly created file is older than distributed files!
  96. Check your system clock])
  97. fi
  98. rm -f conftest*
  99. AC_MSG_RESULT(yes)])
  100.  
  101. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  102. dnl The program must properly implement --version.
  103. AC_DEFUN(AM_MISSING_PROG,
  104. [AC_MSG_CHECKING(for working $2)
  105. # Run test in a subshell; some versions of sh will print an error if
  106. # an executable is not found, even if stderr is redirected.
  107. # Redirect stdin to placate older versions of autoconf.  Sigh.
  108. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  109.    $1=$2
  110.    AC_MSG_RESULT(found)
  111. else
  112.    $1="$3/missing $2"
  113.    AC_MSG_RESULT(missing)
  114. fi
  115. AC_SUBST($1)])
  116.  
  117. # Like AC_CONFIG_HEADER, but automatically create stamp file.
  118.  
  119. AC_DEFUN(AM_CONFIG_HEADER,
  120. [AC_PREREQ([2.12])
  121. AC_CONFIG_HEADER([$1])
  122. dnl When config.status generates a header, we must update the stamp-h file.
  123. dnl This file resides in the same directory as the config header
  124. dnl that is generated.  We must strip everything past the first ":",
  125. dnl and everything past the last "/".
  126. AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  127. ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  128. <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  129. <<am_indx=1
  130. for am_file in <<$1>>; do
  131.   case " <<$>>CONFIG_HEADERS " in
  132.   *" <<$>>am_file "*<<)>>
  133.     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  134.     ;;
  135.   esac
  136.   am_indx=`expr "<<$>>am_indx" + 1`
  137. done<<>>dnl>>)
  138. changequote([,]))])
  139.  
  140.  
  141. dnl AM_PROG_LEX
  142. dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
  143. AC_DEFUN(AM_PROG_LEX,
  144. [missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
  145. AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
  146. AC_PROG_LEX
  147. AC_DECL_YYTEXT])
  148.  
  149.  
  150.