[BACK]Return to configure.in CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfsprogs

File: [Development] / xfs-cmds / xfsprogs / configure.in (download)

Revision 1.26, Wed Apr 30 01:31:48 2003 UTC (14 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.25: +18 -274 lines

Bunch of configure updates for xfsprogs  to allow packages to better be kept
in sync in this area.
Rewrite to use local m4 macros instead of shell snippets.

AC_INIT(include/libxfs.h)
AC_CONFIG_HEADER(include/platform_defs.h)

AC_ARG_ENABLE(shared,
[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
	enable_shared=yes)
AC_SUBST(enable_shared)

AC_ARG_ENABLE(gettext,
[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
	enable_gettext=yes)
AC_SUBST(enable_gettext)

AC_ARG_ENABLE(readline,
[ --enable-readline=[yes/no] Enable readline command editing [default=no]],
	test $enable_readline = yes && libreadline="-lreadline -ltermcap",
	enable_readline=no)
AC_SUBST(libreadline)
AC_SUBST(enable_readline)

AC_ARG_ENABLE(editline,
[ --enable-editline=[yes/no] Enable editline command editing [default=no]],
	test $enable_editline = yes && libeditline="-ledit -ltermcap",
	enable_editline=no)
AC_SUBST(libeditline)
AC_SUBST(enable_editline)

AC_PACKAGE_GLOBALS(xfsprogs)
AC_PACKAGE_UTILITIES(xfsprogs)

AC_PACKAGE_NEED_UUID_UUID_H
AC_PACKAGE_NEED_UUIDPARSE_LIBUUID
AC_ARG_ENABLE(shared-uuid,
[ --enable-shared-uuid=[yes/no]	Link shared libuuid [default=no].],
	libuuid="/usr/lib/libuuid.a"
	test "$enable_shared_uuid" = yes && libuuid="-luuid",
	libuuid="/usr/lib/libuuid.a")
AC_SUBST(libuuid)

AC_TYPE_PSINT
AC_TYPE_PSUNSIGNED
AC_SIZEOF_POINTERS_AND_LONG
AC_MANUAL_FORMAT

AC_OUTPUT(include/builddefs)