[BACK]Return to aclocal.m4 CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/aclocal.m4, Revision 1.1.1.3

1.1.1.3 ! ohara       1: # aclocal.m4 generated automatically by aclocal 1.5
1.1       maekawa     2:
1.1.1.3 ! ohara       3: # Copyright 1996, 1997, 1998, 1999, 2000, 2001
        !             4: # Free Software Foundation, Inc.
        !             5: # This file is free software; the Free Software Foundation
        !             6: # gives unlimited permission to copy and/or distribute it,
        !             7: # with or without modifications, as long as this notice is preserved.
        !             8:
        !             9: # This program is distributed in the hope that it will be useful,
        !            10: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
        !            11: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
        !            12: # PARTICULAR PURPOSE.
        !            13:
        !            14: # Like AC_CONFIG_HEADER, but automatically create stamp file.
        !            15:
        !            16: # serial 3
        !            17:
        !            18: # When config.status generates a header, we must update the stamp-h file.
        !            19: # This file resides in the same directory as the config header
        !            20: # that is generated.  We must strip everything past the first ":",
        !            21: # and everything past the last "/".
        !            22:
        !            23: AC_PREREQ([2.12])
        !            24:
        !            25: AC_DEFUN([AM_CONFIG_HEADER],
        !            26: [ifdef([AC_FOREACH],dnl
        !            27:         [dnl init our file count if it isn't already
        !            28:         m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))
        !            29:         dnl prepare to store our destination file list for use in config.status
        !            30:         AC_FOREACH([_AM_File], [$1],
        !            31:                    [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))
        !            32:                    m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))
        !            33:                    dnl and add it to the list of files AC keeps track of, along
        !            34:                    dnl with our hook
        !            35:                    AC_CONFIG_HEADERS(_AM_File,
        !            36: dnl COMMANDS, [, INIT-CMDS]
        !            37: [# update the timestamp
        !            38: echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
        !            39: ][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
        !            40:                    m4_popdef([_AM_Dest])])],dnl
        !            41: [AC_CONFIG_HEADER([$1])
        !            42:   AC_OUTPUT_COMMANDS(
        !            43:    ifelse(patsubst([$1], [[^ ]], []),
        !            44:          [],
        !            45:          [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
        !            46:           patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl
        !            47: [am_indx=1
        !            48: for am_file in $1; do
        !            49:   case " \$CONFIG_HEADERS " in
        !            50:   *" \$am_file "*)
        !            51:     am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
        !            52:     if test -n "\$am_dir"; then
        !            53:       am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
        !            54:       for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
        !            55:         am_tmpdir=\$am_tmpdir\$am_subdir/
        !            56:         if test ! -d \$am_tmpdir; then
        !            57:           mkdir \$am_tmpdir
        !            58:         fi
        !            59:       done
        !            60:     fi
        !            61:     echo timestamp > "\$am_dir"stamp-h\$am_indx
        !            62:     ;;
        !            63:   esac
        !            64:   am_indx=\`expr \$am_indx + 1\`
        !            65: done])
        !            66: ])]) # AM_CONFIG_HEADER
        !            67:
        !            68: # _AM_DIRNAME(PATH)
        !            69: # -----------------
        !            70: # Like AS_DIRNAME, only do it during macro expansion
        !            71: AC_DEFUN([_AM_DIRNAME],
        !            72:        [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
        !            73:              m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,
        !            74:                    m4_if(m4_regexp([$1], [^/.*]), -1,
        !            75:                          [.],
        !            76:                          m4_patsubst([$1], [^\(/\).*], [\1])),
        !            77:                    m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
        !            78:              m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
        !            79: ]) # _AM_DIRNAME
1.1       maekawa    80:
                     81: # Do all the work for Automake.  This macro actually does too much --
                     82: # some checks are only needed if your package does certain things.
                     83: # But this isn't really a big deal.
                     84:
1.1.1.3 ! ohara      85: # serial 5
        !            86:
        !            87: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
        !            88: # written in clear, in which case automake, when reading aclocal.m4,
        !            89: # will think it sees a *use*, and therefore will trigger all it's
        !            90: # C support machinery.  Also note that it means that autoscan, seeing
        !            91: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1.1       maekawa    92:
                     93:
1.1.1.3 ! ohara      94: # We require 2.13 because we rely on SHELL being computed by configure.
1.1.1.2   maekawa    95: AC_PREREQ([2.13])
1.1.1.3 ! ohara      96:
        !            97: # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
        !            98: # -----------------------------------------------------------
        !            99: # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
        !           100: # The purpose of this macro is to provide the user with a means to
        !           101: # check macros which are provided without letting her know how the
        !           102: # information is coded.
        !           103: # If this macro is not defined by Autoconf, define it here.
        !           104: ifdef([AC_PROVIDE_IFELSE],
        !           105:       [],
        !           106:       [define([AC_PROVIDE_IFELSE],
        !           107:               [ifdef([AC_PROVIDE_$1],
        !           108:                      [$2], [$3])])])
        !           109:
        !           110:
        !           111: # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
        !           112: # ----------------------------------------------
        !           113: AC_DEFUN([AM_INIT_AUTOMAKE],
        !           114: [AC_REQUIRE([AC_PROG_INSTALL])dnl
        !           115: # test to see if srcdir already configured
        !           116: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
        !           117:    test -f $srcdir/config.status; then
        !           118:   AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
        !           119: fi
        !           120:
        !           121: # Define the identity of the package.
        !           122: PACKAGE=$1
        !           123: AC_SUBST(PACKAGE)dnl
        !           124: VERSION=$2
        !           125: AC_SUBST(VERSION)dnl
1.1       maekawa   126: ifelse([$3],,
1.1.1.3 ! ohara     127: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
        !           128: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
        !           129:
        !           130: # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
        !           131: # the ones we care about.
        !           132: ifdef([m4_pattern_allow],
        !           133:       [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
        !           134:
        !           135: # Autoconf 2.50 always computes EXEEXT.  However we need to be
        !           136: # compatible with 2.13, for now.  So we always define EXEEXT, but we
        !           137: # don't compute it.
        !           138: AC_SUBST(EXEEXT)
        !           139: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
        !           140: # requests that it be used.  This is a bit dumb.
        !           141: : ${OBJEXT=o}
        !           142: AC_SUBST(OBJEXT)
        !           143:
        !           144: # Some tools Automake needs.
        !           145: AC_REQUIRE([AM_SANITY_CHECK])dnl
        !           146: AC_REQUIRE([AC_ARG_PROGRAM])dnl
        !           147: AM_MISSING_PROG(ACLOCAL, aclocal)
        !           148: AM_MISSING_PROG(AUTOCONF, autoconf)
        !           149: AM_MISSING_PROG(AUTOMAKE, automake)
        !           150: AM_MISSING_PROG(AUTOHEADER, autoheader)
        !           151: AM_MISSING_PROG(MAKEINFO, makeinfo)
        !           152: AM_MISSING_PROG(AMTAR, tar)
        !           153: AM_PROG_INSTALL_SH
        !           154: AM_PROG_INSTALL_STRIP
        !           155: # We need awk for the "check" target.  The system "awk" is bad on
        !           156: # some platforms.
        !           157: AC_REQUIRE([AC_PROG_AWK])dnl
        !           158: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
        !           159: AC_REQUIRE([AM_DEP_TRACK])dnl
        !           160: AC_REQUIRE([AM_SET_DEPDIR])dnl
        !           161: AC_PROVIDE_IFELSE([AC_PROG_][CC],
        !           162:                   [_AM_DEPENDENCIES(CC)],
        !           163:                   [define([AC_PROG_][CC],
        !           164:                           defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
        !           165: AC_PROVIDE_IFELSE([AC_PROG_][CXX],
        !           166:                   [_AM_DEPENDENCIES(CXX)],
        !           167:                   [define([AC_PROG_][CXX],
        !           168:                           defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
        !           169: ])
1.1       maekawa   170:
                    171: #
                    172: # Check to make sure that the build environment is sane.
                    173: #
                    174:
1.1.1.3 ! ohara     175: # serial 3
        !           176:
        !           177: # AM_SANITY_CHECK
        !           178: # ---------------
        !           179: AC_DEFUN([AM_SANITY_CHECK],
1.1       maekawa   180: [AC_MSG_CHECKING([whether build environment is sane])
                    181: # Just in case
                    182: sleep 1
1.1.1.3 ! ohara     183: echo timestamp > conftest.file
1.1       maekawa   184: # Do `set' in a subshell so we don't clobber the current shell's
                    185: # arguments.  Must try -L first in case configure is actually a
                    186: # symlink; some systems play weird games with the mod time of symlinks
                    187: # (eg FreeBSD returns the mod time of the symlink's containing
                    188: # directory).
                    189: if (
1.1.1.3 ! ohara     190:    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
        !           191:    if test "$[*]" = "X"; then
1.1       maekawa   192:       # -L didn't work.
1.1.1.3 ! ohara     193:       set X `ls -t $srcdir/configure conftest.file`
1.1       maekawa   194:    fi
1.1.1.3 ! ohara     195:    rm -f conftest.file
        !           196:    if test "$[*]" != "X $srcdir/configure conftest.file" \
        !           197:       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.1       maekawa   198:
                    199:       # If neither matched, then we have a broken ls.  This can happen
                    200:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    201:       # broken ls alias from the environment.  This has actually
                    202:       # happened.  Such a system could not be considered "sane".
                    203:       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
                    204: alias in your environment])
                    205:    fi
                    206:
1.1.1.3 ! ohara     207:    test "$[2]" = conftest.file
1.1       maekawa   208:    )
                    209: then
                    210:    # Ok.
                    211:    :
                    212: else
                    213:    AC_MSG_ERROR([newly created file is older than distributed files!
                    214: Check your system clock])
                    215: fi
                    216: AC_MSG_RESULT(yes)])
                    217:
1.1.1.3 ! ohara     218:
        !           219: # serial 2
        !           220:
        !           221: # AM_MISSING_PROG(NAME, PROGRAM)
        !           222: # ------------------------------
        !           223: AC_DEFUN([AM_MISSING_PROG],
        !           224: [AC_REQUIRE([AM_MISSING_HAS_RUN])
        !           225: $1=${$1-"${am_missing_run}$2"}
        !           226: AC_SUBST($1)])
        !           227:
        !           228:
        !           229: # AM_MISSING_HAS_RUN
        !           230: # ------------------
        !           231: # Define MISSING if not defined so far and test if it supports --run.
        !           232: # If it does, set am_missing_run to use it, otherwise, to nothing.
        !           233: AC_DEFUN([AM_MISSING_HAS_RUN],
        !           234: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
        !           235: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
        !           236: # Use eval to expand $SHELL
        !           237: if eval "$MISSING --run true"; then
        !           238:   am_missing_run="$MISSING --run "
1.1       maekawa   239: else
1.1.1.3 ! ohara     240:   am_missing_run=
        !           241:   am_backtick='`'
        !           242:   AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
1.1       maekawa   243: fi
1.1.1.3 ! ohara     244: ])
        !           245:
        !           246: # AM_AUX_DIR_EXPAND
        !           247:
        !           248: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
        !           249: # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
        !           250: # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
        !           251: #
        !           252: # Of course, Automake must honor this variable whenever it calls a
        !           253: # tool from the auxiliary directory.  The problem is that $srcdir (and
        !           254: # therefore $ac_aux_dir as well) can be either absolute or relative,
        !           255: # depending on how configure is run.  This is pretty annoying, since
        !           256: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
        !           257: # source directory, any form will work fine, but in subdirectories a
        !           258: # relative path needs to be adjusted first.
        !           259: #
        !           260: # $ac_aux_dir/missing
        !           261: #    fails when called from a subdirectory if $ac_aux_dir is relative
        !           262: # $top_srcdir/$ac_aux_dir/missing
        !           263: #    fails if $ac_aux_dir is absolute,
        !           264: #    fails when called from a subdirectory in a VPATH build with
        !           265: #          a relative $ac_aux_dir
        !           266: #
        !           267: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
        !           268: # are both prefixed by $srcdir.  In an in-source build this is usually
        !           269: # harmless because $srcdir is `.', but things will broke when you
        !           270: # start a VPATH build or use an absolute $srcdir.
        !           271: #
        !           272: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
        !           273: # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
        !           274: #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
        !           275: # and then we would define $MISSING as
        !           276: #   MISSING="\${SHELL} $am_aux_dir/missing"
        !           277: # This will work as long as MISSING is not called from configure, because
        !           278: # unfortunately $(top_srcdir) has no meaning in configure.
        !           279: # However there are other variables, like CC, which are often used in
        !           280: # configure, and could therefore not use this "fixed" $ac_aux_dir.
        !           281: #
        !           282: # Another solution, used here, is to always expand $ac_aux_dir to an
        !           283: # absolute PATH.  The drawback is that using absolute paths prevent a
        !           284: # configured tree to be moved without reconfiguration.
        !           285:
        !           286: AC_DEFUN([AM_AUX_DIR_EXPAND], [
        !           287: # expand $ac_aux_dir to an absolute path
        !           288: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
        !           289: ])
        !           290:
        !           291: # AM_PROG_INSTALL_SH
        !           292: # ------------------
        !           293: # Define $install_sh.
        !           294: AC_DEFUN([AM_PROG_INSTALL_SH],
        !           295: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
        !           296: install_sh=${install_sh-"$am_aux_dir/install-sh"}
        !           297: AC_SUBST(install_sh)])
        !           298:
        !           299: # One issue with vendor `install' (even GNU) is that you can't
        !           300: # specify the program used to strip binaries.  This is especially
        !           301: # annoying in cross-compiling environments, where the build's strip
        !           302: # is unlikely to handle the host's binaries.
        !           303: # Fortunately install-sh will honor a STRIPPROG variable, so we
        !           304: # always use install-sh in `make install-strip', and initialize
        !           305: # STRIPPROG with the value of the STRIP variable (set by the user).
        !           306: AC_DEFUN([AM_PROG_INSTALL_STRIP],
        !           307: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
        !           308: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
        !           309: AC_SUBST([INSTALL_STRIP_PROGRAM])])
        !           310:
        !           311: # serial 4                                             -*- Autoconf -*-
        !           312:
        !           313:
        !           314:
        !           315: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
        !           316: # written in clear, in which case automake, when reading aclocal.m4,
        !           317: # will think it sees a *use*, and therefore will trigger all it's
        !           318: # C support machinery.  Also note that it means that autoscan, seeing
        !           319: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
        !           320:
        !           321:
        !           322:
        !           323: # _AM_DEPENDENCIES(NAME)
        !           324: # ---------------------
        !           325: # See how the compiler implements dependency checking.
        !           326: # NAME is "CC", "CXX" or "OBJC".
        !           327: # We try a few techniques and use that to set a single cache variable.
        !           328: #
        !           329: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
        !           330: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
        !           331: # dependency, and given that the user is not expected to run this macro,
        !           332: # just rely on AC_PROG_CC.
        !           333: AC_DEFUN([_AM_DEPENDENCIES],
        !           334: [AC_REQUIRE([AM_SET_DEPDIR])dnl
        !           335: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
        !           336: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
        !           337: AC_REQUIRE([AM_DEP_TRACK])dnl
        !           338:
        !           339: ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
        !           340:        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
        !           341:        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
        !           342:        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
        !           343:                    [depcc="$$1"   am_compiler_list=])
        !           344:
        !           345: AC_CACHE_CHECK([dependency style of $depcc],
        !           346:                [am_cv_$1_dependencies_compiler_type],
        !           347: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
        !           348:   # We make a subdir and do the tests there.  Otherwise we can end up
        !           349:   # making bogus files that we don't know about and never remove.  For
        !           350:   # instance it was reported that on HP-UX the gcc test will end up
        !           351:   # making a dummy file named `D' -- because `-MD' means `put the output
        !           352:   # in D'.
        !           353:   mkdir conftest.dir
        !           354:   # Copy depcomp to subdir because otherwise we won't find it if we're
        !           355:   # using a relative directory.
        !           356:   cp "$am_depcomp" conftest.dir
        !           357:   cd conftest.dir
        !           358:
        !           359:   am_cv_$1_dependencies_compiler_type=none
        !           360:   if test "$am_compiler_list" = ""; then
        !           361:      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
        !           362:   fi
        !           363:   for depmode in $am_compiler_list; do
        !           364:     # We need to recreate these files for each test, as the compiler may
        !           365:     # overwrite some of them when testing with obscure command lines.
        !           366:     # This happens at least with the AIX C compiler.
        !           367:     echo '#include "conftest.h"' > conftest.c
        !           368:     echo 'int i;' > conftest.h
        !           369:     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
        !           370:
        !           371:     case $depmode in
        !           372:     nosideeffect)
        !           373:       # after this tag, mechanisms are not by side-effect, so they'll
        !           374:       # only be used when explicitly requested
        !           375:       if test "x$enable_dependency_tracking" = xyes; then
        !           376:        continue
        !           377:       else
        !           378:        break
        !           379:       fi
        !           380:       ;;
        !           381:     none) break ;;
        !           382:     esac
        !           383:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
        !           384:     # mode.  It turns out that the SunPro C++ compiler does not properly
        !           385:     # handle `-M -o', and we need to detect this.
        !           386:     if depmode=$depmode \
        !           387:        source=conftest.c object=conftest.o \
        !           388:        depfile=conftest.Po tmpdepfile=conftest.TPo \
        !           389:        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
        !           390:        grep conftest.h conftest.Po > /dev/null 2>&1 &&
        !           391:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
        !           392:       am_cv_$1_dependencies_compiler_type=$depmode
        !           393:       break
        !           394:     fi
        !           395:   done
        !           396:
        !           397:   cd ..
        !           398:   rm -rf conftest.dir
        !           399: else
        !           400:   am_cv_$1_dependencies_compiler_type=none
        !           401: fi
        !           402: ])
        !           403: $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
        !           404: AC_SUBST([$1DEPMODE])
        !           405: ])
        !           406:
        !           407:
        !           408: # AM_SET_DEPDIR
        !           409: # -------------
        !           410: # Choose a directory name for dependency files.
        !           411: # This macro is AC_REQUIREd in _AM_DEPENDENCIES
        !           412: AC_DEFUN([AM_SET_DEPDIR],
        !           413: [rm -f .deps 2>/dev/null
        !           414: mkdir .deps 2>/dev/null
        !           415: if test -d .deps; then
        !           416:   DEPDIR=.deps
        !           417: else
        !           418:   # MS-DOS does not allow filenames that begin with a dot.
        !           419:   DEPDIR=_deps
        !           420: fi
        !           421: rmdir .deps 2>/dev/null
        !           422: AC_SUBST(DEPDIR)
        !           423: ])
        !           424:
        !           425:
        !           426: # AM_DEP_TRACK
        !           427: # ------------
        !           428: AC_DEFUN([AM_DEP_TRACK],
        !           429: [AC_ARG_ENABLE(dependency-tracking,
        !           430: [  --disable-dependency-tracking Speeds up one-time builds
        !           431:   --enable-dependency-tracking  Do not reject slow dependency extractors])
        !           432: if test "x$enable_dependency_tracking" != xno; then
        !           433:   am_depcomp="$ac_aux_dir/depcomp"
        !           434:   AMDEPBACKSLASH='\'
        !           435: fi
        !           436: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
        !           437: pushdef([subst], defn([AC_SUBST]))
        !           438: subst(AMDEPBACKSLASH)
        !           439: popdef([subst])
        !           440: ])
        !           441:
        !           442: # Generate code to set up dependency tracking.
        !           443: # This macro should only be invoked once -- use via AC_REQUIRE.
        !           444: # Usage:
        !           445: # AM_OUTPUT_DEPENDENCY_COMMANDS
        !           446:
        !           447: #
        !           448: # This code is only required when automatic dependency tracking
        !           449: # is enabled.  FIXME.  This creates each `.P' file that we will
        !           450: # need in order to bootstrap the dependency handling code.
        !           451: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
        !           452: AC_OUTPUT_COMMANDS([
        !           453: test x"$AMDEP_TRUE" != x"" ||
        !           454: for mf in $CONFIG_FILES; do
        !           455:   case "$mf" in
        !           456:   Makefile) dirpart=.;;
        !           457:   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
        !           458:   *) continue;;
        !           459:   esac
        !           460:   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
        !           461:   # Extract the definition of DEP_FILES from the Makefile without
        !           462:   # running `make'.
        !           463:   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
        !           464:   test -z "$DEPDIR" && continue
        !           465:   # When using ansi2knr, U may be empty or an underscore; expand it
        !           466:   U=`sed -n -e '/^U = / s///p' < "$mf"`
        !           467:   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
        !           468:   # We invoke sed twice because it is the simplest approach to
        !           469:   # changing $(DEPDIR) to its actual value in the expansion.
        !           470:   for file in `sed -n -e '
        !           471:     /^DEP_FILES = .*\\\\$/ {
        !           472:       s/^DEP_FILES = //
        !           473:       :loop
        !           474:        s/\\\\$//
        !           475:        p
        !           476:        n
        !           477:        /\\\\$/ b loop
        !           478:       p
        !           479:     }
        !           480:     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
        !           481:        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
        !           482:     # Make sure the directory exists.
        !           483:     test -f "$dirpart/$file" && continue
        !           484:     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
        !           485:     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
        !           486:     # echo "creating $dirpart/$file"
        !           487:     echo '# dummy' > "$dirpart/$file"
        !           488:   done
        !           489: done
        !           490: ], [AMDEP_TRUE="$AMDEP_TRUE"
        !           491: ac_aux_dir="$ac_aux_dir"])])
        !           492:
        !           493: # AM_MAKE_INCLUDE()
        !           494: # -----------------
        !           495: # Check to see how make treats includes.
        !           496: AC_DEFUN([AM_MAKE_INCLUDE],
        !           497: [am_make=${MAKE-make}
        !           498: cat > confinc << 'END'
        !           499: doit:
        !           500:        @echo done
        !           501: END
        !           502: # If we don't find an include directive, just comment out the code.
        !           503: AC_MSG_CHECKING([for style of include used by $am_make])
        !           504: am__include='#'
        !           505: am__quote=
        !           506: _am_result=none
        !           507: # First try GNU make style include.
        !           508: echo "include confinc" > confmf
        !           509: # We grep out `Entering directory' and `Leaving directory'
        !           510: # messages which can occur if `w' ends up in MAKEFLAGS.
        !           511: # In particular we don't look at `^make:' because GNU make might
        !           512: # be invoked under some other name (usually "gmake"), in which
        !           513: # case it prints its new name instead of `make'.
        !           514: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
        !           515:    am__include=include
        !           516:    am__quote=
        !           517:    _am_result=GNU
        !           518: fi
        !           519: # Now try BSD make style include.
        !           520: if test "$am__include" = "#"; then
        !           521:    echo '.include "confinc"' > confmf
        !           522:    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
        !           523:       am__include=.include
        !           524:       am__quote='"'
        !           525:       _am_result=BSD
        !           526:    fi
        !           527: fi
        !           528: AC_SUBST(am__include)
        !           529: AC_SUBST(am__quote)
        !           530: AC_MSG_RESULT($_am_result)
        !           531: rm -f confinc confmf
        !           532: ])
        !           533:
        !           534: # serial 3
        !           535:
        !           536: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
        !           537: # -------------------------------------
        !           538: # Define a conditional.
        !           539: #
        !           540: # FIXME: Once using 2.50, use this:
        !           541: # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
        !           542: AC_DEFUN([AM_CONDITIONAL],
        !           543: [ifelse([$1], [TRUE],
        !           544:         [errprint(__file__:__line__: [$0: invalid condition: $1
        !           545: ])dnl
        !           546: m4exit(1)])dnl
        !           547: ifelse([$1], [FALSE],
        !           548:        [errprint(__file__:__line__: [$0: invalid condition: $1
        !           549: ])dnl
        !           550: m4exit(1)])dnl
        !           551: AC_SUBST([$1_TRUE])
        !           552: AC_SUBST([$1_FALSE])
        !           553: if $2; then
        !           554:   $1_TRUE=
        !           555:   $1_FALSE='#'
        !           556: else
        !           557:   $1_TRUE='#'
        !           558:   $1_FALSE=
        !           559: fi])
1.1       maekawa   560:
                    561:
                    562: # serial 1
                    563:
1.1.1.3 ! ohara     564: AC_DEFUN([AM_C_PROTOTYPES],
1.1       maekawa   565: [AC_REQUIRE([AM_PROG_CC_STDC])
                    566: AC_REQUIRE([AC_PROG_CPP])
                    567: AC_MSG_CHECKING([for function prototypes])
                    568: if test "$am_cv_prog_cc_stdc" != no; then
                    569:   AC_MSG_RESULT(yes)
                    570:   AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
                    571:   U= ANSI2KNR=
                    572: else
                    573:   AC_MSG_RESULT(no)
                    574:   U=_ ANSI2KNR=./ansi2knr
                    575: fi
1.1.1.3 ! ohara     576: # Ensure some checks needed by ansi2knr itself.
        !           577: AC_HEADER_STDC
        !           578: AC_CHECK_HEADERS(string.h)
1.1       maekawa   579: AC_SUBST(U)dnl
                    580: AC_SUBST(ANSI2KNR)dnl
                    581: ])
                    582:
                    583:
                    584: # serial 1
                    585:
                    586: # @defmac AC_PROG_CC_STDC
                    587: # @maindex PROG_CC_STDC
                    588: # @ovindex CC
                    589: # If the C compiler in not in ANSI C mode by default, try to add an option
                    590: # to output variable @code{CC} to make it so.  This macro tries various
                    591: # options that select ANSI C on some system or another.  It considers the
                    592: # compiler to be in ANSI C mode if it handles function prototypes correctly.
                    593: #
                    594: # If you use this macro, you should check after calling it whether the C
                    595: # compiler has been set to accept ANSI C; if not, the shell variable
                    596: # @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
                    597: # code in ANSI C, you can make an un-ANSIfied copy of it by using the
                    598: # program @code{ansi2knr}, which comes with Ghostscript.
                    599: # @end defmac
                    600:
1.1.1.3 ! ohara     601: AC_DEFUN([AM_PROG_CC_STDC],
1.1       maekawa   602: [AC_REQUIRE([AC_PROG_CC])
                    603: AC_BEFORE([$0], [AC_C_INLINE])
                    604: AC_BEFORE([$0], [AC_C_CONST])
                    605: dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
                    606: dnl a magic option to avoid problems with ANSI preprocessor commands
                    607: dnl like #elif.
                    608: dnl FIXME: can't do this because then AC_AIX won't work due to a
                    609: dnl circular dependency.
                    610: dnl AC_BEFORE([$0], [AC_PROG_CPP])
1.1.1.3 ! ohara     611: AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1.1       maekawa   612: AC_CACHE_VAL(am_cv_prog_cc_stdc,
                    613: [am_cv_prog_cc_stdc=no
                    614: ac_save_CC="$CC"
                    615: # Don't try gcc -ansi; that turns off useful extensions and
                    616: # breaks some systems' header files.
                    617: # AIX                  -qlanglvl=ansi
                    618: # Ultrix and OSF/1     -std1
1.1.1.2   maekawa   619: # HP-UX 10.20 and later        -Ae
                    620: # HP-UX older versions -Aa -D_HPUX_SOURCE
1.1       maekawa   621: # SVR4                 -Xc -D__EXTENSIONS__
1.1.1.2   maekawa   622: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1       maekawa   623: do
                    624:   CC="$ac_save_CC $ac_arg"
                    625:   AC_TRY_COMPILE(
                    626: [#include <stdarg.h>
                    627: #include <stdio.h>
                    628: #include <sys/types.h>
                    629: #include <sys/stat.h>
                    630: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                    631: struct buf { int x; };
                    632: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                    633: static char *e (p, i)
                    634:      char **p;
                    635:      int i;
                    636: {
                    637:   return p[i];
                    638: }
                    639: static char *f (char * (*g) (char **, int), char **p, ...)
                    640: {
                    641:   char *s;
                    642:   va_list v;
                    643:   va_start (v,p);
                    644:   s = g (p, va_arg (v,int));
                    645:   va_end (v);
                    646:   return s;
                    647: }
                    648: int test (int i, double x);
                    649: struct s1 {int (*f) (int a);};
                    650: struct s2 {int (*f) (double a);};
                    651: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                    652: int argc;
                    653: char **argv;
                    654: ], [
                    655: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                    656: ],
                    657: [am_cv_prog_cc_stdc="$ac_arg"; break])
                    658: done
                    659: CC="$ac_save_CC"
                    660: ])
                    661: if test -z "$am_cv_prog_cc_stdc"; then
                    662:   AC_MSG_RESULT([none needed])
                    663: else
1.1.1.3 ! ohara     664:   AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1.1       maekawa   665: fi
                    666: case "x$am_cv_prog_cc_stdc" in
                    667:   x|xno) ;;
                    668:   *) CC="$CC $am_cv_prog_cc_stdc" ;;
                    669: esac
                    670: ])
                    671:
                    672:
                    673: # serial 1
                    674:
1.1.1.2   maekawa   675: AC_DEFUN(GP_MSDOS,
1.1       maekawa   676: [AC_MSG_CHECKING(for MS-DOS/djgpp/libGRX)
                    677: AC_EGREP_CPP(yes,
                    678: [#if __DJGPP__ && __DJGPP__ == 2
                    679:   yes
                    680: #endif
1.1.1.2   maekawa   681: ],AC_MSG_RESULT(yes)
                    682:   LIBS="-lpc $LIBS"
                    683:   AC_DEFINE(MSDOS, 1,
                    684:             [ Define if this is an MSDOS system. ])
                    685:   AC_DEFINE(DOS32, 1,
                    686:             [ Define if this system uses a 32-bit DOS extender (djgpp/emx). ])
                    687:   with_linux_vga=no
1.1.1.3 ! ohara     688:   AC_CHECK_LIB(grx20,GrLine,
1.1.1.2   maekawa   689:     LIBS="-lgrx20 $LIBS"
                    690:     CFLAGS="$CFLAGS -fno-inline-functions"
                    691:     AC_DEFINE(DJSVGA, 1,
                    692:               [ Define if you want to use libgrx20 with MSDOS/djgpp. ])
1.1.1.3 ! ohara     693:     AC_CHECK_LIB(grx20,GrCustomLine,
1.1.1.2   maekawa   694:       AC_DEFINE(GRX21, 1,
                    695:                 [ Define if you want to use a newer version of libgrx under MSDOS/djgpp. ])dnl
                    696:     )dnl
1.1.1.3 ! ohara     697:   ),
1.1.1.2   maekawa   698:   AC_MSG_RESULT(no)
                    699:   )dnl
1.1       maekawa   700: ])
                    701:
                    702:
                    703:
                    704: # serial 1
                    705:
1.1.1.2   maekawa   706: AC_DEFUN(GP_NEXT,
1.1       maekawa   707: [AC_MSG_CHECKING(for NeXT)
                    708: AC_EGREP_CPP(yes,
                    709: [#if __NeXT__
                    710:   yes
                    711: #endif
                    712: ], AC_MSG_RESULT(yes)
                    713:    LIBS="$LIBS -lsys_s -lNeXT_s"
1.1.1.3 ! ohara     714:    CFLAGS="$CFLAGS -ObjC",
        !           715:    AC_MSG_RESULT(no))
        !           716: ])
        !           717:
        !           718:
        !           719:
        !           720: # serial 1
        !           721:
        !           722: AC_DEFUN(GP_APPLE,
        !           723: [AC_MSG_CHECKING(for Apple MacOS X)
        !           724: AC_EGREP_CPP(yes,
        !           725: [#if defined(__APPLE__) && defined(__MACH__)
        !           726:   yes
        !           727: #endif
        !           728: ], AC_MSG_RESULT(yes)
        !           729:    LIBS="$LIBS -framework Foundation -framework AppKit"
        !           730:    CFLAGS="$CFLAGS -ObjC",
        !           731:    AC_MSG_RESULT(no))
        !           732: ])
        !           733:
        !           734:
        !           735:
        !           736: # serial 1
        !           737:
        !           738: AC_DEFUN(GP_BEOS,
        !           739: [AC_MSG_CHECKING(for BeOS)
        !           740: AC_EGREP_CPP(yes,
        !           741: [#if __BEOS__
        !           742:   yes
        !           743: #endif
        !           744: ], AC_MSG_RESULT(yes)
        !           745:    build_src_beos_subdir=yes,
        !           746:    build_src_beos_subdir=no
1.1       maekawa   747:    AC_MSG_RESULT(no))
                    748: ])
                    749:
                    750:
1.1.1.2   maekawa   751: dnl testing new version of FUNC_SELECT
                    752:
                    753: AC_DEFUN(AC_FUNC_SELECT,
                    754: [AC_CHECK_FUNCS(select)
                    755: if test "$ac_cv_func_select" = yes; then
                    756:   AC_CHECK_HEADERS(unistd.h sys/types.h sys/time.h sys/select.h sys/socket.h)
                    757:   AC_MSG_CHECKING([argument types of select()])
1.1.1.3 ! ohara     758:   AC_CACHE_VAL(ac_cv_type_fd_set_size_t,
        !           759:     [AC_CACHE_VAL(ac_cv_type_fd_set,
1.1.1.2   maekawa   760:       [for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do
                    761:         for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do
                    762:          for ac_type_timeval in 'struct timeval' 'const struct timeval'; do
1.1.1.3 ! ohara     763:             AC_TRY_COMPILE(
1.1.1.2   maekawa   764: [#ifdef HAVE_SYS_TIME_H
1.1.1.3 ! ohara     765: # include <sys/time.h>
1.1.1.2   maekawa   766: #endif
                    767: #ifdef HAVE_SYS_TYPES_H
1.1.1.3 ! ohara     768: # include <sys/types.h>
1.1.1.2   maekawa   769: #endif
                    770: #ifdef HAVE_UNISTD_H
1.1.1.3 ! ohara     771: # include <unistd.h>
1.1.1.2   maekawa   772: #endif
                    773: #ifdef HAVE_SYS_SELECT_H
1.1.1.3 ! ohara     774: # include <sys/select.h>
1.1.1.2   maekawa   775: #endif
                    776: #ifdef HAVE_SYS_SOCKET_H
1.1.1.3 ! ohara     777: # include <sys/socket.h>
        !           778: #endif
        !           779: ],
1.1.1.2   maekawa   780: [#ifdef __STDC__
                    781: extern int select ($ac_cv_type_fd_set_size_t,
                    782:  $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, $ac_cv_type_fd_set *,
                    783:  $ac_type_timeval *);
                    784: #else
                    785: extern int select ();
                    786:   $ac_cv_type_fd_set_size_t s;
                    787:   $ac_cv_type_fd_set *p;
                    788:   $ac_type_timeval *t;
1.1.1.3 ! ohara     789: #endif
        !           790: ],
1.1.1.2   maekawa   791: [ac_found=yes ; break 3],ac_found=no)
                    792:           done
                    793:         done
                    794:       done
                    795:     ])dnl AC_CACHE_VAL
                    796:   ])dnl AC_CACHE_VAL
                    797:   if test "$ac_found" = no; then
                    798:     AC_MSG_ERROR([can't determine argument types])
                    799:   fi
                    800:
                    801:   AC_MSG_RESULT([select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)])
                    802:   AC_DEFINE_UNQUOTED(fd_set_size_t, $ac_cv_type_fd_set_size_t,
1.1.1.3 ! ohara     803:                      [ First arg for select. ])
1.1.1.2   maekawa   804:   ac_cast=
                    805:   if test "$ac_cv_type_fd_set" != fd_set; then
                    806:     # Arguments 2-4 are not fd_set.  Some weirdo systems use fd_set type for
                    807:     # FD_SET macros, but insist that you cast the argument to select.  I don't
                    808:     # understand why that might be, but it means we cannot define fd_set.
1.1.1.3 ! ohara     809:     AC_EGREP_CPP(
1.1.1.2   maekawa   810: changequote(<<,>>)dnl
                    811: <<(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]>>dnl
                    812: changequote([,]),dnl
                    813: [#ifdef HAVE_SYS_TIME_H
1.1.1.3 ! ohara     814: # include <sys/time.h>
1.1.1.2   maekawa   815: #endif
                    816: #ifdef HAVE_SYS_TYPES_H
1.1.1.3 ! ohara     817: # include <sys/types.h>
1.1.1.2   maekawa   818: #endif
                    819: #ifdef HAVE_UNISTD_H
1.1.1.3 ! ohara     820: # include <unistd.h>
1.1.1.2   maekawa   821: #endif
                    822: #ifdef HAVE_SYS_SELECT_H
1.1.1.3 ! ohara     823: # include <sys/select.h>
1.1.1.2   maekawa   824: #endif
                    825: #ifdef HAVE_SYS_SOCKET_H
1.1.1.3 ! ohara     826: # include <sys/socket.h>
        !           827: #endif
        !           828: ],
1.1.1.2   maekawa   829:     # We found fd_set type in a header, need special cast
                    830:     ac_cast="($ac_cv_type_fd_set *)",dnl
                    831:     # No fd_set type; it is safe to define it
                    832:     AC_DEFINE_UNQUOTED(fd_set,$ac_cv_type_fd_set,
1.1.1.3 ! ohara     833:                        [ Define if the type in arguments 2-4 to select is fd_set. ]))
1.1.1.2   maekawa   834:   fi
                    835:   AC_DEFINE_UNQUOTED(SELECT_FD_SET_CAST,$ac_cast,
1.1.1.3 ! ohara     836:                      [ Define if the type in arguments 2-4 to select is fd_set. ])
1.1       maekawa   837: fi
                    838: ])
                    839:
                    840:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>