URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [fixincludes/] [configure.ac] - Rev 266
Compare with Previous | Blame | View Log
AC_PREREQ(2.64)AC_INIT(fixincludes, [ ])AC_CONFIG_SRCDIR(inclhack.def)AC_CONFIG_AUX_DIR(..)m4_sinclude(../libtool.m4)AC_CANONICAL_SYSTEMAC_PROG_CCAC_PROG_SED# Figure out what compiler warnings we can enable.# See config/warnings.m4 for details.ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \-Wmissing-prototypes -Wold-style-definition \-Wmissing-format-attribute -Wno-overlength-strings])ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])# Only enable with --enable-werror-always until existing warnings are# corrected.ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])# Determine the noncanonical target name, for directory use.ACX_NONCANONICAL_TARGET# Specify the local prefixlocal_prefix=AC_ARG_WITH(local-prefix,[ --with-local-prefix=DIR specifies directory to put local include],[case "${withval}" inyes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;no) ;;*) local_prefix=$with_local_prefix ;;esac])# Default local prefix if it is emptyif test x$local_prefix = x; thenlocal_prefix=/usr/localfi# Choose one or two-process fix methodology. Systems that cannot handle# bi-directional pipes must use the two process method.#AC_ARG_ENABLE([twoprocess],[ --enable-twoprocess Use a separate process to apply the fixes],[if test "x$enable_twoprocess" = xyes; thenTARGET=twoprocesselseTARGET=oneprocessfi],[case $host ini?86-*-msdosdjgpp* | \i?86-*-mingw32* | \x86_64-*-mingw32* | \*-*-beos* )TARGET=twoprocess;;* )TARGET=oneprocess;;esac])AC_SUBST(TARGET)if test $TARGET = twoprocess; thenAC_DEFINE(SEPARATE_FIX_PROC, 1,[Define if testing and fixing are done by separate process])ficase $host invax-dec-bsd* )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]);;esacAC_DEFINE_UNQUOTED([EXE_EXT], "$ac_exeext",[Defined to the executable file extension on the host system])# Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS([stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \sys/stat.h])define(fixincludes_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnlferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked dnlfileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnlfread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnlputchar_unlocked putc_unlocked)AC_CHECK_FUNCS(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.AC_C_CONST# Checks for library functions.gcc_AC_FUNC_MMAP_BLACKLISTAC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])AC_ARG_ENABLE(maintainer-mode,[ --enable-maintainer-mode enable make rules and dependencies not useful(and sometimes confusing) to the casual installer],USE_MAINTAINER_MODE=$enableval,USE_MAINTAINER_MODE=no)AC_MSG_RESULT($USE_MAINTAINER_MODE)if test "$USE_MAINTAINER_MODE" = yes; thenMAINT=elseMAINT='#'fiAC_SUBST(MAINT)AC_DEFINE_UNQUOTED([SED_PROGRAM], "${SED}",[Defined to the best working sed program on the host system])AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h])AC_CONFIG_FILES(Makefile mkheaders.almost:mkheaders.in)AC_OUTPUT
