OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [fixincludes/] [configure.ac] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
AC_PREREQ(2.59)
AC_PREREQ(2.59)
AC_INIT(fixincludes, [ ])
AC_INIT(fixincludes, [ ])
AC_CONFIG_SRCDIR(inclhack.def)
AC_CONFIG_SRCDIR(inclhack.def)
AC_CONFIG_AUX_DIR(..)
AC_CONFIG_AUX_DIR(..)
AC_CANONICAL_SYSTEM
AC_CANONICAL_SYSTEM
AC_PROG_CC
AC_PROG_CC
# Figure out what compiler warnings we can enable.
# Figure out what compiler warnings we can enable.
# See config/warnings.m4 for details.
# See config/warnings.m4 for details.
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
                          -Wmissing-prototypes -Wold-style-definition \
                          -Wmissing-prototypes -Wold-style-definition \
                          -Wmissing-format-attribute -Wno-overlength-strings])
                          -Wmissing-format-attribute -Wno-overlength-strings])
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
# Only enable with --enable-werror-always until existing warnings are
# Only enable with --enable-werror-always until existing warnings are
# corrected.
# corrected.
ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
# Determine the noncanonical target name, for directory use.
# Determine the noncanonical target name, for directory use.
ACX_NONCANONICAL_TARGET
ACX_NONCANONICAL_TARGET
# Specify the local prefix
# Specify the local prefix
local_prefix=
local_prefix=
AC_ARG_WITH(local-prefix,
AC_ARG_WITH(local-prefix,
[  --with-local-prefix=DIR specifies directory to put local include],
[  --with-local-prefix=DIR specifies directory to put local include],
[case "${withval}" in
[case "${withval}" in
yes)    AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
yes)    AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
no)     ;;
no)     ;;
*)      local_prefix=$with_local_prefix ;;
*)      local_prefix=$with_local_prefix ;;
esac])
esac])
# Default local prefix if it is empty
# Default local prefix if it is empty
if test x$local_prefix = x; then
if test x$local_prefix = x; then
        local_prefix=/usr/local
        local_prefix=/usr/local
fi
fi
# Choose one or two-process fix methodology.  Systems that cannot handle
# Choose one or two-process fix methodology.  Systems that cannot handle
# bi-directional pipes must use the two process method.
# bi-directional pipes must use the two process method.
#
#
AC_ARG_ENABLE([twoprocess],
AC_ARG_ENABLE([twoprocess],
[  --enable-twoprocess       Use a separate process to apply the fixes],
[  --enable-twoprocess       Use a separate process to apply the fixes],
[if test "x$enable_twoprocess" = xyes; then
[if test "x$enable_twoprocess" = xyes; then
        TARGET=twoprocess
        TARGET=twoprocess
else
else
        TARGET=oneprocess
        TARGET=oneprocess
fi],
fi],
[case $host in
[case $host in
        i?86-*-msdosdjgpp* | \
        i?86-*-msdosdjgpp* | \
        i?86-*-mingw32* | \
        i?86-*-mingw32* | \
        *-*-beos* )
        *-*-beos* )
                TARGET=twoprocess
                TARGET=twoprocess
                ;;
                ;;
        * )
        * )
                TARGET=oneprocess
                TARGET=oneprocess
                ;;
                ;;
esac])
esac])
AC_SUBST(TARGET)
AC_SUBST(TARGET)
if test $TARGET = twoprocess; then
if test $TARGET = twoprocess; then
        AC_DEFINE(SEPARATE_FIX_PROC, 1,
        AC_DEFINE(SEPARATE_FIX_PROC, 1,
                  [Define if testing and fixing are done by separate process])
                  [Define if testing and fixing are done by separate process])
fi
fi
case $host in
case $host in
        vax-dec-bsd* )
        vax-dec-bsd* )
                AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit])
                AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit])
                AC_DEFINE(atexit, xatexit, [Define to xatexit if the host system does not support atexit])
                AC_DEFINE(atexit, xatexit, [Define to xatexit if the host system does not support atexit])
                ;;
                ;;
esac
esac
AC_DEFINE_UNQUOTED([EXE_EXT], "$ac_exeext",
AC_DEFINE_UNQUOTED([EXE_EXT], "$ac_exeext",
  [Defined to the executable file extension on the host system])
  [Defined to the executable file extension on the host system])
# Checks for header files.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_STDC
AC_CHECK_HEADERS([stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
AC_CHECK_HEADERS([stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
        sys/stat.h])
        sys/stat.h])
define(fixincludes_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
define(fixincludes_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
  ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked dnl
  ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked dnl
  fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
  fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
  fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
  fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
  putchar_unlocked putc_unlocked)
  putchar_unlocked putc_unlocked)
AC_CHECK_FUNCS(fixincludes_UNLOCKED_FUNCS)
AC_CHECK_FUNCS(fixincludes_UNLOCKED_FUNCS)
AC_CHECK_DECLS(m4_split(m4_normalize(abort asprintf basename errno vasprintf fixincludes_UNLOCKED_FUNCS)))
AC_CHECK_DECLS(m4_split(m4_normalize(abort asprintf basename errno vasprintf fixincludes_UNLOCKED_FUNCS)))
# Checks for typedefs, structures, and compiler characteristics.
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_CONST
# Checks for library functions.
# Checks for library functions.
gcc_AC_FUNC_MMAP_BLACKLIST
gcc_AC_FUNC_MMAP_BLACKLIST
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
AC_ARG_ENABLE(maintainer-mode,
AC_ARG_ENABLE(maintainer-mode,
[  --enable-maintainer-mode enable make rules and dependencies not useful
[  --enable-maintainer-mode enable make rules and dependencies not useful
                          (and sometimes confusing) to the casual installer],
                          (and sometimes confusing) to the casual installer],
      USE_MAINTAINER_MODE=$enableval,
      USE_MAINTAINER_MODE=$enableval,
      USE_MAINTAINER_MODE=no)
      USE_MAINTAINER_MODE=no)
AC_MSG_RESULT($USE_MAINTAINER_MODE)
AC_MSG_RESULT($USE_MAINTAINER_MODE)
if test "$USE_MAINTAINER_MODE" = yes; then
if test "$USE_MAINTAINER_MODE" = yes; then
  MAINT=
  MAINT=
else
else
  MAINT='#'
  MAINT='#'
fi
fi
AC_SUBST(MAINT)
AC_SUBST(MAINT)
AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h])
AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h])
AC_CONFIG_FILES(Makefile mkheaders.almost:mkheaders.in)
AC_CONFIG_FILES(Makefile mkheaders.almost:mkheaders.in)
AC_OUTPUT
AC_OUTPUT
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.