1 dnl Process this file with autoconf to produce a configure script.
5 AC_CONFIG_HEADER(config.h)
8 AC_ARG_ENABLE(signals,[ --enable-signals allow use of signal handling],[no_signals=no])
24 dnl Needed to build the samples.
38 AC_CHECK_HEADERS(unistd.h sys/un.h)
39 wi_HEADER_SYS_SELECT_H
40 AC_FUNC_SELECT_ARGTYPES
44 wi_SOCKADDR_UN_SUN_LEN
48 AC_CHECK_FUNCS(sigaction)
51 changequote(<<, >>)dnl
53 if test "$no_signals" = no ; then
61 if sed "s!^.*/. %config1!${dv1} /* %config1!;s!^.*/. %config2!${dv2} /* %config2!" sio.h > temp.h ; then
66 if sed "s!^.*/. %config1!${dv1} /* %config1!;s!^.*/. %config2!${dv2} /* %config2!" usio.h > temp.h ; then
72 if [ "$SYS" = solaris ] ; then
73 patterns1='s!/. %configure%.*!#define SAccept SAcceptS!'
74 patterns2='s!/. %configure%.*!#define UAccept UAcceptS!'
77 if [ "$patterns1" != "" ] ; then
78 sed "$patterns1" < sio.h > tmpfile
79 if [ $? -eq 0 ] ; then
87 if [ "$patterns2" != "" ] ; then
88 sed "$patterns2" < usio.h > tmpfile
89 if [ $? -eq 0 ] ; then
99 LIBS=`echo "$LIBS" | sed 's/^ *//;s/ *$//;s/ */ /g'`
100 LDFLAGS=`echo "$LDFLAGS" | sed 's/^ *//;s/ *$//;s/ */ /g'`
101 CPPFLAGS=`echo "$CPPFLAGS" | sed 's/^ *//;s/ *$//;s/ */ /g'`
102 CFLAGS=`echo "$CFLAGS" | sed 's/^ *//;s/ *$//;s/ */ /g'`
103 DEFS=`echo "$DEFS" | sed 's/^ *//;s/ *$//;s/ */ /g'`
105 AC_OUTPUT([Makefile ucase_c/Makefile ucase_s/Makefile time_c/Makefile time_s/Makefile srltest/Makefile sendmessage/Makefile])