AC_CONFIG_HEADER(config.h)
AC_PREREQ(2.7)
-vers="0.9.2.1"
+vers="1.0.0"
vers_quoted="\"$vers\""
AC_DEFINE_UNQUOTED(VERSION, $vers)
AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted)
fi
;;
*)
- if test -d "$withval"; then
- etcdir="$withval"
- AC_MSG_RESULT($withval)
- else
- AC_MSG_ERROR(directory $withval does not exist)
- fi
+ etcdir="$withval"
+ AC_MSG_RESULT($withval)
;;
esac ],
if test -d "/etc"; then
fi
;;
*)
- if test -d "$withval"; then
- sp="$withval"
- AC_MSG_RESULT($withval)
- else
- AC_MSG_ERROR(directory $withval does not exist)
- fi
+ sp="$withval"
+ AC_MSG_RESULT($withval)
;;
esac ],
if test -d /var/spool/fcron ; then
AC_MSG_CHECKING(location of man directory)
-AC_ARG_WITH(MANDIR,
+AC_ARG_WITH(mandir,
[ --with-mandir=PATH Root directory for manual pages.],
[ case "$withval" in
no)
mandir="$prefix/local/share/man"
AC_MSG_RESULT($prefix/local/share/man)
else
- AC_MSG_ERROR(Cannot determine value for man directory: try option --with-man=PATH)
+ AC_MSG_ERROR(Cannot determine value for man directory: try option --with-mandir=PATH)
fi
;;
*)
- if test -d "$withval"; then
- mandir="$withval"
- AC_MSG_RESULT($withval)
- else
- AC_MSG_ERROR(directory $withval does not exist)
- fi
+ mandir="$withval"
+ AC_MSG_RESULT($withval)
;;
esac ],
if test -d "$prefix/man" ; then
mandir="$prefix/local/share/man"
AC_MSG_RESULT($prefix/local/share/man)
else
- AC_MSG_ERROR(Cannot determine value for man directory: try option --with-man=PATH)
+ AC_MSG_ERROR(Cannot determine value for man directory: try option --with-mandir=PATH)
fi
)
MANDIR="$mandir"
AC_MSG_CHECKING(location of doc directory)
-AC_ARG_WITH(DOCDIR,
+AC_ARG_WITH(docdir,
[ --with-docdir=PATH Directory containing documentation.],
[ case "$withval" in
no)
docdir="$prefix/local/share/doc"
AC_MSG_RESULT($prefix/local/share/doc)
else
- AC_MSG_ERROR(Cannot determine value for doc directory: try option --with-doc=PATH)
+ AC_MSG_ERROR(Cannot determine value for doc directory: try option --with-docdir=PATH)
fi
;;
*)
- if test -d "$withval"; then
- docdir="$withval"
- AC_MSG_RESULT($withval)
- else
- AC_MSG_ERROR(directory $withval does not exist)
- fi
+ docdir="$withval"
+ AC_MSG_RESULT($withval)
;;
esac ],
if test -d "$prefix/doc" ; then
docdir="$prefix/local/share/doc"
AC_MSG_RESULT($prefix/local/share/doc)
else
- AC_MSG_ERROR(Cannot determine value for doc directory: try option --with-doc=PATH)
+ AC_MSG_ERROR(Cannot determine value for doc directory: try option --with-docdir=PATH)
fi
)
DOCDIR="$docdir"