URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [readline/] [configure.in] - Rev 1771
Go to most recent revision | Compare with Previous | Blame | View Log
dnldnl Configure script for readline librarydnldnl report bugs to chet@po.cwru.edudnldnl Process this file with autoconf to produce a configure script.AC_REVISION([for Readline 4.0, version 2.14, from autoconf version] AC_ACVERSION)LIBVERSION=4.0AC_INIT(readline.h)AC_CONFIG_HEADER(config.h)dnl make sure we are using a recent autoconf versionAC_PREREQ(2.10)dnl AC_CONFIG_AUX_DIR(./support)AC_CANONICAL_HOSTdnl configure defaultsopt_curses=noopt_shared=nodnl arguments to configureAC_ARG_WITH(curses, --with-curses use the curses library instead of the termcap library,opt_curses=$withval)if test "$opt_curses" = "yes"; thenprefer_curses=yesfi# We want these before the checks, so the checks can modify their values.test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1AC_PROG_CCAC_MINIXdnl BEGIN changes for CYGNUS cross-building for Cygwindnl load up the cross-building cache file -- add more cases and cachednl files as necessaryif test "x$cross_compiling" = "xyes"; thencase "${host}" in*-cygwin*)cross_cache=${srcdir}/cross-build/cygwin.cacheif test -r "${cross_cache}"; thenecho "loading cross-build cache file ${cross_cache}". ${cross_cache}fiLOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"unset cross_cache;;*) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2;;esacfiif test "x$cross_compiling" = "xyes"; thenCROSS_COMPILING_FLAG=-DCROSS_COMPILINGelseCROSS_COMPILING_FLAG=fiAC_SUBST(CROSS_COMPILING_FLAG)if test -z "$CC_FOR_BUILD"; thenif test "x$cross_compiling" = "xno"; thenCC_FOR_BUILD='$(CC)'elseCC_FOR_BUILD=gccfifiAC_SUBST(CC_FOR_BUILD)dnl END changes for CYGNUS cross-building for Cygwin# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"AC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_CHECK_PROG(AR, ar, ar)dnl Set default for ARFLAGS, since autoconf does not have a macro for it.dnl This allows people to set it when running configure or maketest -n "$ARFLAGS" || ARFLAGS="cr"AC_PROG_RANLIBMAKE_SHELL=/bin/shAC_SUBST(MAKE_SHELL)AC_RETSIGTYPEAC_HEADER_STATAC_HEADER_DIRENTAC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)AC_FUNC_STRCOLLAC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \sys/ptem.h sys/pte.h sys/stream.h sys/select.h \termcap.h termios.h termio.h sys/file.h locale.h)BASH_SIGNAL_CHECKBASH_REINSTALL_SIGHANDLERSBASH_FUNC_POSIX_SETJMPBASH_FUNC_LSTATBASH_CHECK_GETPW_FUNCSBASH_FUNC_STRCOLLBASH_TYPE_SIGHANDLERBASH_HAVE_TIOCGWINSZBASH_HAVE_TIOCSTATBASH_HAVE_FIONREADBASH_MISC_SPEED_TBASH_STRUCT_WINSIZEBASH_STRUCT_DIRENT_D_INOBASH_STRUCT_DIRENT_D_FILENOdnl yuckcase "$host_os" inaix*) prefer_curses=yes ;;esacBASH_CHECK_LIB_TERMCAPif test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; thenTERMCAP_LIB=-ltermcap #defaultficase "$host_cpu" in*cray*) LOCAL_CFLAGS=-DCRAY ;;esaccase "$host_os" inisc*) LOCAL_CFLAGS=-Disc386 ;;esac# shared library configuration section## Shared object configuration section. These values are generated by# ${srcdir}/support/shobj-conf#if test -f ${srcdir}/support/shobj-conf; thenAC_MSG_CHECKING(configuration for building shared libraries)eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}`AC_SUBST(SHOBJ_CC)AC_SUBST(SHOBJ_CFLAGS)AC_SUBST(SHOBJ_LD)AC_SUBST(SHOBJ_LDFLAGS)AC_SUBST(SHOBJ_XLDFLAGS)AC_SUBST(SHOBJ_LIBS)AC_SUBST(SHOBJ_STATUS)AC_SUBST(SHLIB_STATUS)AC_SUBST(SHLIB_XLDFLAGS)AC_SUBST(SHLIB_LIBSUFF)AC_SUBST(SHLIB_LIBVERSION)AC_SUBST(SHLIB_LIBS)AC_MSG_RESULT($SHLIB_STATUS)fiBUILD_DIR=`pwd`AC_SUBST(BUILD_DIR)AC_SUBST(CFLAGS)AC_SUBST(LOCAL_CFLAGS)AC_SUBST(LOCAL_LDFLAGS)AC_SUBST(LOCAL_DEFS)AC_SUBST(AR)AC_SUBST(ARFLAGS)AC_SUBST(host_cpu)AC_SUBST(host_os)AC_SUBST(LIBVERSION)AC_SUBST(TERMCAP_LIB)AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile],[# Makefile uses this timestamp file to record whether config.h is up to date.echo > stamp-h])
Go to most recent revision | Compare with Previous | Blame | View Log
