| 278 |
|
|
| 279 |
dnl System specific options |
dnl System specific options |
| 280 |
dnl Now that we are using autoconf, CCOPTIONS should be nuked... |
dnl Now that we are using autoconf, CCOPTIONS should be nuked... |
| 281 |
|
dnl But please report if your system needs specific settings (CCOPTIONS etc.) |
| 282 |
case $host in |
case $host in |
| 283 |
*-*-linux*) |
*-*-linux*) |
| 284 |
CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE" |
CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 324 |
*-*-aix*) |
*-*-aix*) |
| 325 |
CCOPTIONS="-DSYSV" |
CCOPTIONS="-DSYSV" |
| 326 |
;; |
;; |
|
*) |
|
|
dnl AC_MSG_WARN("It is not reported if FreeWnn works on this system. But continuing...") |
|
|
dnl AC_MSG_WARN([(It may or may not work if you set CCOPTIONS properly.)]) |
|
|
;; |
|
| 327 |
esac |
esac |
| 328 |
|
|
| 329 |
dnl Checking if we use gcc or not |
dnl Checking if we use gcc or not |
| 431 |
res="OK", res="FAIL", res="FAIL") |
res="OK", res="FAIL", res="FAIL") |
| 432 |
if test "$res" = "OK"; then |
if test "$res" = "OK"; then |
| 433 |
TERMLIB="${TERMLIB} -l${libname}" |
TERMLIB="${TERMLIB} -l${libname}" |
| 434 |
lname=translit(${libname}, 'a-z', 'A-Z') |
dnl lname=`echo ${libname} | sed 'y/termcaplibnus/TERMCAPLIBNUS/'` |
| 435 |
AC_DEFINE(HAVE_${lname}, 1, [use ${libname} for terminal control]) |
dnl AC_DEFINE_UNQUOTED(HAVE_${lname}, 1, [use ${libname} for terminal control]) |
| 436 |
|
dnl We need to define AH_TEMPLATE (if we really need this) |
| 437 |
|
dnl ex. AH_TEMPLATE(HAVE_NCURSES, [use ncurses for terminal control]) |
| 438 |
break |
break |
| 439 |
fi |
fi |
| 440 |
AC_MSG_RESULT($libname library is not usable) |
AC_MSG_RESULT($libname library is not usable) |
| 541 |
FD_SET \ |
FD_SET \ |
| 542 |
gethostname select socket closesocket setsockopt send recv \ |
gethostname select socket closesocket setsockopt send recv \ |
| 543 |
getdtablesize getrlimit syslog vsyslog setenv snprintf \ |
getdtablesize getrlimit syslog vsyslog setenv snprintf \ |
| 544 |
ptsname openpty pututxline pututline setsid) |
ptsname posix_openpt openpty pututxline pututline setsid) |
| 545 |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
| 546 |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
| 547 |
memcpy memmove memset strchr strrchr) |
memcpy memmove memset strchr strrchr) |