home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / libstock.zip / configure.in < prev    next >
Text File  |  2000-09-05  |  1KB  |  50 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(lib/csv.h)
  3. AM_INIT_AUTOMAKE(libstocks, 0.5.0)
  4.  
  5. AC_PREFIX_DEFAULT(/usr)
  6.  
  7. dnl Checks for programs.
  8. AC_PROG_CC
  9. AC_PROG_RANLIB
  10.  
  11. AC_PROG_AWK
  12. AC_PROG_INSTALL
  13. AC_PROG_LN_S
  14. dnl AC_PROG_MAKE_SET
  15. dnl Checks for libraries.
  16.  
  17. AC_CHECK_LIB(socket, connect)
  18. AC_CHECK_LIB(nsl, gethostbyname)
  19.  
  20. dnl Checks for header files.
  21. AC_HEADER_STDC
  22. AC_CHECK_HEADERS(malloc.h unistd.h)
  23.  
  24. dnl Checks for typedefs, structures, and compiler characteristics.
  25.  
  26. dnl Checks for library functions.
  27. AC_CHECK_FUNCS(socket strdup strstr)
  28.  
  29.  
  30. AC_ARG_ENABLE(debug,
  31. [  --enable-debug    Turn on debugging],
  32. [case "${enableval}" in
  33.   yes) debug=true ;;
  34.   no)  debug=false ;;
  35.   *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
  36. esac],[debug=false])
  37.  
  38. AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
  39.  
  40. dnl Use -Wall if we have gcc.
  41. changequote(,)dnl
  42. if test "x$GCC" = "xyes"; then
  43.   case " $CFLAGS " in
  44.   *[\ \ ]-Wall[\ \    ]*) ;;
  45.   *) CFLAGS="$CFLAGS -Wall" ;;
  46.   esac
  47. fi
  48.  
  49. AC_OUTPUT(lib/Makefile client/Makefile Makefile)
  50.