home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / autoconf-1.11-src.lha / GNU / src / amiga / autoconf-1.11 / acgeneral.m4 < prev    next >
M4 Source File  |  1994-06-12  |  36KB  |  1,177 lines

  1. dnl Parameterized macros that do not check for something specific.
  2. dnl This file is part of Autoconf.
  3. dnl Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  4. dnl
  5. dnl This program is free software; you can redistribute it and/or modify
  6. dnl it under the terms of the GNU General Public License as published by
  7. dnl the Free Software Foundation; either version 2, or (at your option)
  8. dnl any later version.
  9. dnl
  10. dnl This program is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. dnl GNU General Public License for more details.
  14. dnl
  15. dnl You should have received a copy of the GNU General Public License
  16. dnl along with this program; if not, write to the Free Software
  17. dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. dnl
  19. dnl Written by David MacKenzie, with help from
  20. dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
  21. dnl Roland McGrath, Noah Friedman, and david d zuhn.
  22. dnl
  23. changequote([,])dnl
  24. undefine([eval])dnl
  25. undefine([include])dnl
  26. undefine([shift])dnl
  27. undefine([format])dnl
  28. dnl
  29. ifdef([__gnu__], , [errprint(Autoconf requires GNU m4
  30. )m4exit(2)])dnl
  31. dnl
  32. dnl
  33. dnl Utility functions for stamping the configure script.
  34. dnl
  35. dnl
  36. define(AC_ACVERSION, 1.11)dnl
  37. dnl This is defined by the --version option of the autoconf script.
  38. ifdef([AC_PRINT_VERSION], [errprint(Autoconf version AC_ACVERSION
  39. )])dnl
  40. dnl
  41. dnl These are currently not used, for the sake of people who diff
  42. dnl configure scripts and don't want spurious differences.
  43. dnl But they are too clever to just delete.
  44. dnl
  45. define(AC_USER, [esyscmd(
  46. changequote({,})dnl
  47. # Extract the user name from the first pair of parentheses.
  48. ({ac_sedcmd='s/[^(]*(\([^)]*\)).*/\1/';}
  49. changequote([,])dnl
  50. whoami || id|sed "$ac_sedcmd") 2>/dev/null|tr -d '\012')])dnl
  51. dnl
  52. define(AC_HOST, [esyscmd((hostname || uname -n) 2>/dev/null|tr -d '\012')])dnl
  53. dnl
  54. define(AC_DATE, [esyscmd(date|tr -d '\012')])dnl
  55. dnl
  56. dnl
  57. dnl Controlling Autoconf operation
  58. dnl
  59. dnl
  60. dnl This is separate from AC_INIT to prevent GNU m4 1.0 from coredumping
  61. dnl when AC_CONFIG_HEADER is used.
  62. define(AC_NOTICE,
  63. [# Guess values for system-dependent variables and create Makefiles.
  64. dnl [#] Generated automatically using autoconf.
  65. # Generated automatically using autoconf version] AC_ACVERSION [
  66. dnl [#] by AC_USER@AC_HOST on AC_DATE
  67. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  68.  
  69. # This configure script is free software; you can redistribute it and/or
  70. # modify it under the terms of the GNU General Public License as published
  71. # by the Free Software Foundation; either version 2, or (at your option)
  72. # any later version.
  73.  
  74. # This script is distributed in the hope that it will be useful, but
  75. # WITHOUT ANY WARRANTY; without even the implied warranty of
  76. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  77. # Public License for more details.
  78.  
  79. # You should have received a copy of the GNU General Public License
  80. # along with this program; if not, write to the Free Software
  81. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  82. ])dnl
  83. dnl
  84. define(AC_PARSEARGS,
  85. [# Save the original args to write them into config.status later.
  86. configure_args="[$]*"
  87.  
  88. # Only options that might do something get documented.
  89. changequote(,)dnl
  90. ac_usage="Usage: configure [options] [host]
  91. Options: [defaults in brackets after descriptions]
  92. --build=BUILD        configure for building on BUILD [BUILD=HOST]
  93. --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  94. --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  95. --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  96. --help            print this message
  97. --host=HOST        configure for HOST [guessed]
  98. --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  99. --quiet, --silent    do not print \`checking for...' messages
  100. --srcdir=DIR        find the sources in DIR [configure dir or ..]
  101. --target=TARGET        configure for TARGET [TARGET=HOST]
  102. --verbose        print results of checks
  103. --version        print the version of autoconf that created configure
  104. --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  105. --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  106. --x-includes=DIR    X include files are in DIR
  107. --x-libraries=DIR    X library files are in DIR"
  108. changequote([,])dnl
  109.  
  110. # Initialize some variables set by options.
  111. # The variables have the same names as the options, with
  112. # dashes changed to underlines.
  113. build=NONE
  114. exec_prefix=
  115. host=NONE
  116. no_create=
  117. nonopt=NONE
  118. norecursion=
  119. prefix=
  120. program_prefix=
  121. program_suffix=
  122. program_transform_name=
  123. silent=
  124. srcdir=
  125. target=NONE
  126. verbose=
  127. x_includes=
  128. x_libraries=
  129.  
  130. ac_prev=
  131. for ac_option
  132. do
  133.  
  134.   # If the previous option needs an argument, assign it.
  135.   if test -n "$ac_prev"; then
  136.     eval "$ac_prev=\$ac_option"
  137.     ac_prev=
  138.     continue
  139.   fi
  140.  
  141.   # Accept (but ignore some of) the important Cygnus configure
  142.   # options, so we can diagnose typos.
  143.  
  144.   case "$ac_option" in
  145. changequote(,)dnl
  146.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  147. changequote([,])dnl
  148.   *) ac_optarg= ;;
  149.   esac
  150.  
  151.   case "$ac_option" in
  152.  
  153.   -build | --build | --buil | --bui | --bu | --b)
  154.     ac_prev=build ;;
  155.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  156.     build="$ac_optarg" ;;
  157.  
  158.   -disable-* | --disable-*)
  159.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  160.     # Reject names that aren't valid shell variable names.
  161. changequote(,)dnl
  162.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  163. changequote([,])dnl
  164.       AC_ERROR($ac_feature: invalid feature name)
  165.     fi
  166.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  167.     eval "enable_${ac_feature}=no" ;;
  168.  
  169.   -enable-* | --enable-*)
  170.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  171.     # Reject names that aren't valid shell variable names.
  172. changequote(,)dnl
  173.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  174. changequote([,])dnl
  175.       AC_ERROR($ac_feature: invalid feature name)
  176.     fi
  177.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  178.     case "$ac_option" in
  179.       *=*) ;;
  180.       *) ac_optarg=yes ;;
  181.     esac
  182.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  183.  
  184.   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  185.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  186.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  187.   | --exec | --exe | --ex)
  188.     ac_prev=exec_prefix ;;
  189.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  190.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  191.   | --exec=* | --exe=* | --ex=*)
  192.     exec_prefix="$ac_optarg" ;;
  193.  
  194.   -gas | --gas | --ga | --g)
  195.     with_gas=yes ;; # Obsolete; use --with-gas.
  196.  
  197.   -help | --help | --hel | --he)
  198.     cat << EOF
  199. $ac_usage
  200. EOF
  201.     exit 0 ;;
  202.  
  203.   -host | --host | --hos | --ho)
  204.     ac_prev=host ;;
  205.   -host=* | --host=* | --hos=* | --ho=*)
  206.     host="$ac_optarg" ;;
  207.  
  208.   -nfp | --nfp | --nf)
  209.     with_fp=no ;; # Obsolete; use --without-fp.
  210.  
  211.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  212.   | --no-cr | --no-c)
  213.     no_create=yes ;;
  214.  
  215.   -norecursion | --norecursion | --norecursio | --norecursi \
  216.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  217.     norecursion=yes ;;
  218.  
  219.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  220.     ac_prev=prefix ;;
  221.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  222.     prefix="$ac_optarg" ;;
  223.  
  224.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  225.   | --program-pre | --program-pr | --program-p)
  226.     ac_prev=program_prefix ;;
  227.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  228.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  229.     program_prefix="$ac_optarg" ;;
  230.  
  231.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  232.   | --program-suf | --program-su | --program-s)
  233.     ac_prev=program_suffix ;;
  234.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  235.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  236.     program_suffix="$ac_optarg" ;;
  237.  
  238.   -program-transform-name | --program-transform-name \
  239.   | --program-transform-nam | -