1 dnl aclocal.m4 generated automatically by aclocal 1.2
3 # Check to see if we're running under Cygwin32, without using
4 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
5 # Otherwise set it to "no".
9 [AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
10 [AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }],
11 am_cv_cygwin32=yes, am_cv_cygwin32=no)
14 test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
16 # Check to see if we're running under Win32, without using
17 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
18 # Otherwise set it to "".
21 dnl This knows we add .exe if we're building in the Cygwin32
22 dnl environment. But if we're not, then it compiles a test program
23 dnl to see if there is a suffix for executables.
25 dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32])
26 AC_MSG_CHECKING([for executable suffix])
27 [AC_CACHE_VAL(am_cv_exeext,
28 [if test "$CYGWIN32" = yes; then
31 cat > am_c_test.c << 'EOF'
33 /* Nothing needed here */
36 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
37 am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
39 test x"${am_cv_exeext}" = x && am_cv_exeext=no
42 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
43 AC_MSG_RESULT(${am_cv_exeext})
46 AC_DEFUN(EGCS_PROG_INSTALL,
47 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
48 # Find a good install program. We prefer a C program (faster),
49 # so one script is as good as another. But avoid the broken or
50 # incompatible versions:
51 # SysV /etc/install, /usr/sbin/install
52 # SunOS /usr/etc/install
55 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
56 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
57 # ./install, which can be erroneously created by make from ./install.sh.
58 AC_MSG_CHECKING(for a BSD compatible install)
59 if test -z "$INSTALL"; then
60 AC_CACHE_VAL(ac_cv_path_install,
61 [ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
62 for ac_dir in $PATH; do
63 # Account for people who put trailing slashes in PATH elements.
65 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
67 # OSF1 and SCO ODT 3.0 have their own names for install.
68 for ac_prog in ginstall scoinst install; do
69 if test -f $ac_dir/$ac_prog; then
70 if test $ac_prog = install &&
71 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
72 # AIX install. It has an incompatible calling convention.
73 # OSF/1 installbsd also uses dspmsg, but is usable.
76 ac_cv_path_install="$ac_dir/$ac_prog -c"
86 if test "${ac_cv_path_install+set}" = set; then
87 INSTALL="$ac_cv_path_install"
89 # As a last resort, use the slow shell script. We don't cache a
90 # path for INSTALL within a source directory, because that will
91 # break other packages using the cache if that directory is
92 # removed, or if the path is relative.
93 INSTALL="$ac_install_sh"
96 dnl We do special magic for INSTALL instead of AC_SUBST, to get
97 dnl relative paths right.
98 AC_MSG_RESULT($INSTALL)
101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
102 # It thinks the first close brace ends the variable substitution.
103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
104 AC_SUBST(INSTALL_PROGRAM)dnl
106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
107 AC_SUBST(INSTALL_DATA)dnl