source: trunk/third/readline/configure.in @ 12992

Revision 12992, 3.2 KB checked in by kcr, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12991, which included commits to RCS files with non-trunk default branches.
Line 
1dnl
2dnl Configure script for readline library
3dnl
4dnl report bugs to chet@po.cwru.edu
5dnl
6dnl Process this file with autoconf to produce a configure script.
7AC_REVISION([for Readline 4.0, version 2.14, from autoconf version] AC_ACVERSION)
8LIBVERSION=4.0
9
10AC_INIT(readline.h)
11AC_CONFIG_HEADER(config.h)
12
13dnl make sure we are using a recent autoconf version
14AC_PREREQ(2.10)
15
16AC_CONFIG_AUX_DIR(./support)
17
18AC_CANONICAL_HOST
19
20dnl configure defaults
21opt_curses=no
22opt_shared=no
23
24dnl arguments to configure
25AC_ARG_WITH(curses, --with-curses               use the curses library instead of the termcap library,opt_curses=$withval)
26
27if test "$opt_curses" = "yes"; then
28        prefer_curses=yes
29fi
30
31# We want these before the checks, so the checks can modify their values.
32test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
33
34AC_PROG_CC
35AC_MINIX
36
37# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
38test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
39
40AC_PROG_GCC_TRADITIONAL
41AC_PROG_INSTALL
42AC_CHECK_PROG(AR, ar, ar)
43dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
44dnl This allows people to set it when running configure or make
45test -n "$ARFLAGS" || ARFLAGS="cr"
46AC_PROG_RANLIB
47
48MAKE_SHELL=/bin/sh
49AC_SUBST(MAKE_SHELL)
50
51AC_RETSIGTYPE
52
53AC_HEADER_STAT
54AC_HEADER_DIRENT
55
56AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
57
58AC_FUNC_STRCOLL
59
60AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
61                sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
62                termcap.h termios.h termio.h sys/file.h locale.h)
63
64BASH_SIGNAL_CHECK
65BASH_REINSTALL_SIGHANDLERS
66
67BASH_FUNC_POSIX_SETJMP
68BASH_FUNC_LSTAT
69BASH_CHECK_GETPW_FUNCS
70BASH_FUNC_STRCOLL
71
72BASH_TYPE_SIGHANDLER
73BASH_HAVE_TIOCGWINSZ
74BASH_HAVE_TIOCSTAT
75BASH_HAVE_FIONREAD
76BASH_MISC_SPEED_T
77BASH_STRUCT_WINSIZE
78BASH_STRUCT_DIRENT_D_INO
79BASH_STRUCT_DIRENT_D_FILENO
80
81dnl yuck
82case "$host_os" in
83aix*)   prefer_curses=yes ;;
84esac
85BASH_CHECK_LIB_TERMCAP
86if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
87        TERMCAP_LIB=-ltermcap   #default
88fi
89
90case "$host_cpu" in
91*cray*) LOCAL_CFLAGS=-DCRAY ;;
92esac
93
94case "$host_os" in
95isc*)   LOCAL_CFLAGS=-Disc386 ;;
96esac
97
98# shared library configuration section
99#
100# Shared object configuration section.  These values are generated by
101# ${srcdir}/support/shobj-conf
102#
103if test -f ${srcdir}/support/shobj-conf; then
104        AC_MSG_CHECKING(configuration for building shared libraries)
105        eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
106        AC_SUBST(SHOBJ_CC)
107        AC_SUBST(SHOBJ_CFLAGS)
108        AC_SUBST(SHOBJ_LD)
109        AC_SUBST(SHOBJ_LDFLAGS)
110        AC_SUBST(SHOBJ_XLDFLAGS)
111        AC_SUBST(SHOBJ_LIBS)
112        AC_SUBST(SHOBJ_STATUS)
113        AC_SUBST(SHLIB_STATUS)
114        AC_SUBST(SHLIB_XLDFLAGS)
115        AC_SUBST(SHLIB_LIBSUFF)
116        AC_SUBST(SHLIB_LIBVERSION)
117        AC_SUBST(SHLIB_LIBS)
118        AC_MSG_RESULT($SHLIB_STATUS)
119fi
120
121BUILD_DIR=`pwd`
122AC_SUBST(BUILD_DIR)
123
124AC_SUBST(CFLAGS)
125AC_SUBST(LOCAL_CFLAGS)
126AC_SUBST(LOCAL_LDFLAGS)
127AC_SUBST(LOCAL_DEFS)
128
129AC_SUBST(AR)
130AC_SUBST(ARFLAGS)
131
132AC_SUBST(host_cpu)
133AC_SUBST(host_os)
134
135AC_SUBST(LIBVERSION)
136
137AC_SUBST(TERMCAP_LIB)
138
139AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile],
140[
141# Makefile uses this timestamp file to record whether config.h is up to date.
142echo > stamp-h
143])
Note: See TracBrowser for help on using the repository browser.