/[pengfork]/pengfork/configure.ac
ViewVC logotype

Diff of /pengfork/configure.ac

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

revision 1.26 by chupa, Thu Jan 2 13:43:48 2003 UTC revision 1.27 by chupa, Mon Jan 6 14:50:12 2003 UTC
# Line 32  AC_CONFIG_HEADER([config.h]) Line 32  AC_CONFIG_HEADER([config.h])
32  # Auxiliary files  # Auxiliary files
33  AC_CONFIG_AUX_DIR(config)  AC_CONFIG_AUX_DIR(config)
34    
 AM_INIT_AUTOMAKE([gnu 1.6 dist-bzip2])  
 AM_MAINTAINER_MODE  
   
35  # Check host type  # Check host type
36  AC_CANONICAL_HOST  AC_CANONICAL_HOST
37    AC_CANONICAL_SYSTEM
38    
39    AM_INIT_AUTOMAKE([gnu 1.6 dist-bzip2])
40    AM_MAINTAINER_MODE
41    
42  # Look for a C compiler  # Look for a C compiler
43  # CFLAGS must be defined to avoid AC_PROG_CC adding default FLAGS  # CFLAGS must be defined to avoid AC_PROG_CC adding default FLAGS
# Line 56  if test "$GCC" = yes; then Line 57  if test "$GCC" = yes; then
57  fi  fi
58    
59  # Check arch specific source directory  # Check arch specific source directory
60  # Use @ARCH_DIR@ in Makefile.am files.  case "$target" in
 case "$host" in  
61    *-*-linux*)    *-*-linux*)
62      ARCH_DIR="linux"      AC_DEFINE([TARGET_LINUX], 1,[Are we running on Linux?])
63      ;;      ;;
64    *-*-freebsd*)    *-*-freebsd*)
65      ARCH_DIR="freebsd"      AC_DEFINE([TARGET_FREEBSD], 1, [Are we running on FreeBSD?])
66      ;;      ;;
67    *-*-openbsd*)    *-*-openbsd*)
68      ARCH_DIR="openbsd"      AC_DEFINE([TARGET_OPENBSD], 1, [Are we running on OpenBSD?])
69        ;;
70      *-*-netbsd*)
71        AC_DEFINE([TARGET_NETBSD], 1, [Are we running on NetBSD?])
72        ;;
73      *-*-darwin*)
74        AC_DEFINE([TARGET_DARWIN], 1, [Are we running on Mac OS X?])
75        CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
76        ;;
77      *-*-solaris*)
78        AC_DEFINE([TARGET_SOLARIS], 1, [Are we running on Solaris?])
79      ;;      ;;
80    *)    *)
81      # Default is linux      AC_DEFINE([TARGET_UNKNOW], 1, [Are we running on an unsupported platform?])
     ARCH_DIR="linux"  
82      ;;      ;;
83  esac  esac
 AC_SUBST([ARCH_DIR])  
84    
85  #Checks for libraries.  #Checks for libraries.
86  # FIXME: Replace `main' with a function in `-lc':  # FIXME: Replace `main' with a function in `-lc':
# Line 82  AC_CHECK_LIB([c], [main]) Line 90  AC_CHECK_LIB([c], [main])
90  # Checks for header files.  # Checks for header files.
91  AC_FUNC_ALLOCA  AC_FUNC_ALLOCA
92  AC_HEADER_STDC  AC_HEADER_STDC
93  AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h libintl.h netdb.h netinet/in.h stdio_ext.h sys/ioctl.h sys/time.h syslog.h termios.h])  AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h libintl.h netdb.h stdio_ext.h sys/ioctl.h sys/time.h syslog.h termios.h])
94    
95  # Customized checks  # Customized checks
96  AC_CHECK_HEADERS([assert.h byteswap.h ctype.h errno.h linux/if_tun.h netinet/in.h netinet/in_systm.h netinet/ip.h net/if.h net/if_tun.h net/net_globals.h net/ppp_defs.h signal.h stdarg.h stdio.h sys/byteorder.h sys/uio.h])  AC_CHECK_HEADERS([assert.h byteswap.h ctype.h errno.h linux/if_tun.h netinet/in.h netinet/in_systm.h netinet/ip.h net/if.h net/if_tun.h net/net_globals.h net/ppp_defs.h signal.h stdarg.h stdio.h sys/byteorder.h sys/uio.h])
# Line 97  AC_C_BIGENDIAN Line 105  AC_C_BIGENDIAN
105  AC_TYPE_PID_T  AC_TYPE_PID_T
106  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
107  AC_HEADER_TIME  AC_HEADER_TIME
108    AC_HEADER_SYS_WAIT
109    
110  # Checks for library functions.  # Checks for library functions.
111  AM_GNU_GETTEXT  AM_GNU_GETTEXT
# Line 176  if test "$modem" = yes; then Line 185  if test "$modem" = yes; then
185    GUILE_FLAGS    GUILE_FLAGS
186    CFLAGS="$CFLAGS $GUILE_CFLAGS"    CFLAGS="$CFLAGS $GUILE_CFLAGS"
187    LDFLAGS="$LDFLAGS $GUILE_LDFLAGS"    LDFLAGS="$LDFLAGS $GUILE_LDFLAGS"
   AC_CHECK_HEADERS([guile/gh.h libguile.h])  
188    AC_MSG_CHECKING(whether scm_eval conforms to R5RS)    AC_MSG_CHECKING(whether scm_eval conforms to R5RS)
189    AC_CACHE_VAL(guile_r5rs_eval, [    AC_CACHE_VAL(guile_r5rs_eval, [
190      AC_TRY_COMPILE([#include <guile/gh.h>], [SCM e, m; scm_eval(e, m);],      AC_TRY_COMPILE([#include <guile/gh.h>], [SCM e, m; scm_eval(e, m);],
# Line 346  CPPFLAGS="$CPPFLAGS    -DPKGDATADIR=\\\"\$( Line 354  CPPFLAGS="$CPPFLAGS    -DPKGDATADIR=\\\"\$(
354  CPPFLAGS="$CPPFLAGS -DSYSCONFDIR=\\\"\$(sysconfdir)\\\""  CPPFLAGS="$CPPFLAGS -DSYSCONFDIR=\\\"\$(sysconfdir)\\\""
355  CPPFLAGS="$CPPFLAGS     -DLOCALSTATEDIR=\\\"\$(localstatedir)\\\""  CPPFLAGS="$CPPFLAGS     -DLOCALSTATEDIR=\\\"\$(localstatedir)\\\""
356    
 AC_DEFINE_UNQUOTED(COMPILATION_HOST, "$host", [System where the build has occured])  
   
357  # Output Files  # Output Files
358  AC_CONFIG_FILES([Makefile  AC_CONFIG_FILES([Makefile
359                   config/Makefile                   config/Makefile
                  doc/Makefile  
                  doc/config/Makefile  
360                   include/Makefile                   include/Makefile
361                   include/cable/Makefile                   include/cable/Makefile
362                   include/dsl/Makefile                   include/dsl/Makefile
363                   include/fdo/Makefile                   include/fdo/Makefile
364                   include/fdo/atoms/Makefile                   include/fdo/atoms/Makefile
365                   include/iptunnel/Makefile                   include/iptunnel/Makefile
366                   include/l2tp/Makefile                   include/l2tp/Makefile
367                   include/modem/Makefile                   include/modem/Makefile
# Line 371  AC_CONFIG_FILES([Makefile Line 375  AC_CONFIG_FILES([Makefile
375                   src/cable/Makefile                   src/cable/Makefile
376                   src/dsl/Makefile                   src/dsl/Makefile
377                   src/fdo/Makefile                   src/fdo/Makefile
378                   src/fdo/atoms/Makefile                   src/fdo/atoms/Makefile
379                   src/iptunnel/Makefile                   src/iptunnel/Makefile
380                   src/l2tp/Makefile                   src/l2tp/Makefile
381                   src/modem/Makefile                   src/modem/Makefile
382                   src/p3/Makefile                   src/p3/Makefile
383                   src/tcpip/Makefile                   src/tcpip/Makefile
384                   src/tun/Makefile                   src/tun/Makefile
385                   src/tun/freebsd/Makefile                   po/Makefile.in
386                   src/tun/linux/Makefile                   doc/Makefile
387                   src/tun/openbsd/Makefile                   doc/config/Makefile])
                  po/Makefile.in])  
388  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26