r113: Added a check for getopt_long() functions. Uses short options only if
[rox-filer.git] / ROX-Filer / src / configure.in
blobcaa430539f96c70a3fe8f371c6c0bb29cd48cd1a
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(main.c)
3 AC_CONFIG_HEADER(config.h)
5 dnl Checks for programs.
6 AC_PROG_CC
8 dnl Use -Wall if possible
9 changequote(,)dnl
10 if test "x$GCC" = "xyes"; then
11   case " $CFLAGS " in
12   *[\ \ ]-Wall[\ \      ]*) ;;
13   *) CFLAGS="$CFLAGS -Wall" ;;
14   esac
16 changequote([,])dnl
18 dnl Checks for header files.
19 AC_PATH_X
20 AC_HEADER_DIRENT
21 AC_HEADER_STDC
22 AC_HEADER_SYS_WAIT
23 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h mntent.h sys/ucred.h)
25 dnl Checks for typedefs, structures, and compiler characteristics.
26 AC_C_CONST
27 AC_TYPE_UID_T
28 AC_TYPE_SIZE_T
30 dnl Checks for library functions.
31 AC_CHECK_FUNCS(gethostname mkdir rmdir strdup strtol getopt_long)
33 AC_OUTPUT(Makefile)