r214: Added support for mc's Virtual File System.
[rox-filer.git] / ROX-Filer / src / configure.in
blobdd416acb38b188b802be977326f658797c7a1684
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 Find GLib (needed for future tests)
19 AC_MSG_CHECKING(for GLib library)
20 GLIB_LIBS=`glib-config --libs`
21 changequote(,)dnl
22 if [ -n "$GLIB_LIBS" ]; then
23   AC_MSG_RESULT(yes - use '$GLIB_LIBS')
24 else
25   AC_MSG_ERROR(can't run 'glib-config --libs' - make sure it is in your PATH)
27 changequote([,])dnl
29 dnl Does file(1) support '-b' ?
30 AC_MSG_CHECKING(whether file -b works)
31 if file -b / > /dev/null 2> /dev/null
32 then
33   AC_DEFINE(FILE_B_FLAG)
34   AC_MSG_RESULT(yes)
35 else
36   AC_MSG_RESULT(no)
39 dnl Checks for header files.
40 AC_PATH_X
41 AC_HEADER_DIRENT
42 AC_HEADER_STDC
43 AC_HEADER_SYS_WAIT
44 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h mntent.h sys/ucred.h sys/mntent.h)
45 AC_CHECK_HEADERS(vfs.h)
47 dnl Checks for typedefs, structures, and compiler characteristics.
48 AC_C_CONST
49 AC_TYPE_UID_T
50 AC_TYPE_SIZE_T
52 dnl Checks for library functions.
53 AC_CHECK_FUNCS(gethostname mkdir rmdir strdup strtol getopt_long)
55 dnl Check for the Midnight Commander VFS library
56 AC_CHECK_LIB(vfs, mc_stat, , , $GLIB_LIBS)
58 AC_OUTPUT(Makefile)