Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.36 by hiroo, Sat Jun 7 13:04:31 2003 UTC revision 1.37 by hiroo, Sun Jun 8 03:09:48 2003 UTC
# Line 365  AC_PATH_X Line 365  AC_PATH_X
365  AC_HEADER_STDC  AC_HEADER_STDC
366  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
367  AC_HEADER_TIME  AC_HEADER_TIME
368  AC_CHECK_HEADERS(fcntl.h syslog.h unistd.h utmp.h \  AC_CHECK_HEADERS(fcntl.h syslog.h unistd.h utmp.h utmpx.h \
369          sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \          sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \
370          malloc.h strings.h memory.h \          malloc.h strings.h memory.h \
371          curses.h ncurses.h sgtty.h term.h termio.h termios.h \          curses.h ncurses.h sgtty.h term.h termio.h termios.h \
# Line 379  dnl Line 379  dnl
379  AC_TYPE_MODE_T  AC_TYPE_MODE_T
380  AC_HEADER_TIME  AC_HEADER_TIME
381    
382  AC_CHECK_TYPES(time_t, AC_DEFINE(time_t, long, [Define missing time_t.]))  dnl AC_CHECK_TYPES(time_t,
383    dnl     AC_DEFINE(time_t, long, [Define missing time_t.]),
384    dnl             [INCLUDES = time.h])
385  AC_CHECK_TYPES(socklen_t,  AC_CHECK_TYPES(socklen_t,
386          AC_DEFINE(socklen_t, int, [Define missing socklen_t.]), [INCLUDES = sys/socket.h])                  AC_DEFINE(socklen_t, int, [Define missing socklen_t.]),
387                    [INCLUDES = sys/socket.h])
388    
389  dnl  dnl
390  dnl Checks for symbol  dnl Checks for symbol
# Line 399  if test "$ac_cv_type_signal" = void; the Line 402  if test "$ac_cv_type_signal" = void; the
402  fi  fi
403    
404  AC_FUNC_MEMCMP  AC_FUNC_MEMCMP
405  AC_CHECK_FUNCS(wait3 setpgrp)  AC_CHECK_FUNCS(getpgid getpgrp setpgrp wait3)
406    AC_FUNC_GETPGRP
407  AC_FUNC_SETPGRP  AC_FUNC_SETPGRP
408  dnl FreeWnn do not use the 3rd parameter of wait3().  dnl FreeWnn do not use the 3rd parameter of wait3().
409  dnl AC_FUNC_WAIT3  dnl AC_FUNC_WAIT3
410    
411  AC_CHECK_FUNCS(random drand48 fchmod getopt \  AC_CHECK_FUNCS(random drand48 fchmod getopt killpg \
         gethostname select socket closesocket setsockopt send recv \  
412          FD_SET \          FD_SET \
413            gethostname select socket closesocket setsockopt send recv \
414          getdtablesize getrlimit syslog vsyslog setenv snprintf)          getdtablesize getrlimit syslog vsyslog setenv snprintf)
415  dnl for bcopy/index -> memcpy/strchr conversion (preparation):  dnl for bcopy/index -> memcpy/strchr conversion (preparation):
416  AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \  AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \
# Line 420  AC_SUBST(JS_SUPPORTOBJS) Line 424  AC_SUBST(JS_SUPPORTOBJS)
424    
425    
426  dnl  dnl
427    dnl TCP Wrapper.
428    dnl
429    AC_MSG_CHECKING(whether to use libwrap)
430    AC_ARG_WITH(libwrap,
431            [  --with-libwrap[=PATH]   Compile in libwrap (tcp_wrappers) support.],
432            [ case "$withval" in
433              no)
434                AC_MSG_RESULT(no)
435                ;;
436              yes)
437                AC_MSG_RESULT(yes)
438                AC_CHECK_LIB(wrap, request_init, [
439                  LIBS="-lwrap $LIBS"
440                  AC_DEFINE(HAVE_LIBWRAP, 1,
441                            [Define libwrap (TCP Wrapper) support.]) ])
442                CFLAGS="-DHAVE_LIBWRAP $CFLAGS"
443                ;;
444              *)
445                AC_MSG_RESULT(yes)
446                if test -d "$withval"; then
447                  WRAPINCLUDES="-I$withval"
448                  WRAPLIBS="-L$withval -lwrap"
449                else
450                  WRAPINCLUDES="$withval"
451                fi
452                OLDLIBS="$LIBS"
453                CFLAGS="-DHAVE_LIBWRAP $WRAPINCLUDES $CFLAGS"
454                LIBS="$WRAPLIBS $LIBS"
455    
456                AC_TRY_LINK([ int allow_severity; int deny_severity; ],
457                            [ hosts_access(); ],
458                            [],
459                            [ AC_MSG_ERROR(Could not find the $withval library. You must first install tcp_wrappers.) ])
460                ;;
461            esac ],
462            AC_MSG_RESULT(no)
463    )
464    
465    
466    dnl
467  dnl Creating Makefiles.  dnl Creating Makefiles.
468  dnl  dnl
469  # mkdir -p Contrib/dic/gerodic in case builddir != srcdir  # mkdir -p Contrib/dic/gerodic in case builddir != srcdir

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26