Import minor configure.in cleanup from -devel.

This commit is contained in:
Kurt Zeilenga 1999-01-24 01:47:09 +00:00
parent 57d40b71cc
commit a4f31bd5c7
3 changed files with 340 additions and 283 deletions

597
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -481,7 +481,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],,[-lexc])
],:,[-lexc])
LIBS="$save_LIBS"
fi
@ -494,7 +494,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],,[-lmach -lexc -lc_r])
],:,[-lmach -lexc -lc_r])
LIBS="$save_LIBS"
fi
@ -503,7 +503,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_create, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"])
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"],:)
LIBS="$save_LIBS"
fi
@ -512,7 +512,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
save_LIBS="$LIBS"
AC_CHECK_LIB(c_r, pthread_create, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"])
LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"],:)
LIBS="$save_LIBS"
fi
@ -521,7 +521,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_create, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"])
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"],:)
LIBS="$save_LIBS"
fi
@ -532,7 +532,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
AC_CHECK_LIB(pthreads, pthread_join, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
],[-Wl,-woff,85])
],:,[-Wl,-woff,85])
LIBS="$save_LIBS"
fi
@ -1021,8 +1021,14 @@ if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
fi
if test $ol_enable_wrappers != no ; then
AC_CHECK_LIB(wrap, main,
[have_wrappers=yes], [have_wrappers=no])
AC_CHECK_HEADERS(tcpd.h)
if test $ac_cv_header_tcpd_h != yes ; then
have_wrappers=no
else
AC_CHECK_LIB(wrap, main,
[have_wrappers=yes], [have_wrappers=no])
fi
if test $have_wrappers = yes ; then
AC_DEFINE(HAVE_TCPD)
@ -1036,7 +1042,6 @@ if test $ol_enable_wrappers != no ; then
AC_MSG_WARN(disabling wrappers support)
ol_enable_wrappers=no
fi
fi
# ud needs termcap (should insert check here)

View file

@ -545,6 +545,9 @@
/* Define if you have the <syslog.h> header file. */
#undef HAVE_SYSLOG_H
/* Define if you have the <tcpd.h> header file. */
#undef HAVE_TCPD_H
/* Define if you have the <termcap.h> header file. */
#undef HAVE_TERMCAP_H