dnl --------------------------------------------------
dnl Libtool config
dnl --------------------------------------------------
+use_libtool=yes
AC_ARG_ENABLE(libtool,
AC_HELP_STRING([--enable-libtool], [enable building using GNU libtool @<:@default=yes@:>@]),
[
dnl If either --prefix or --includedir is set, we leave includedir
dnl alone except to eval it
dnl ------------------------------------------------------------------
+os_name=`uname -s 2>/dev/null`
if test x${prefix} = xNONE ; then
if test `eval echo ${sysconfdir}` = NONE/etc ; then
sysconfdir=/etc/bacula
fi
if test `eval echo ${libdir}` = NONE/lib ; then
- libdir=/usr/lib
+ case ${os_name} in
+ Linux)
+ os_processor=`uname -p 2>/dev/null`
+ case ${os_processor} in
+ x86_64)
+ libdir=/usr/lib64
+ ;;
+ *)
+ libdir=/usr/lib
+ ;;
+ esac
+ ;;
+ *)
+ libdir=/usr/lib
+ ;;
+ esac
fi
if test `eval echo ${includedir}` = NONE/include ; then
BA_CHECK_SQLITE3_DB
-BA_CHECK_SQLITE_DB
+# BA_CHECK_SQLITE_DB
BA_CHECK_DBI_DB
if test $have_xattr = no; then
AC_CHECK_FUNCS(extattr_get_file extattr_set_file extattr_list_file,
- [
+ [
have_xattr=yes
AC_DEFINE([HAVE_EXTATTR_GET_FILE],1,[Define to 1 if you have the 'extattr_get_file' function.])
AC_DEFINE([HAVE_EXTATTR_SET_FILE],1,[Define to 1 if you have the 'extattr_set_file' function.])
AC_DEFINE([HAVE_EXTATTR_LIST_FILE],1,[Define to 1 if you have the 'extattr_list_file' function.])
- ]
+ ]
)
fi
if test $have_xattr = yes; then
have_extattr_string_in_libc=no
AC_CHECK_FUNCS(extattr_namespace_to_string extattr_string_to_namespace,
- [
- have_extattr_string_in_libc=yes
+ [
+ have_extattr_string_in_libc=yes
AC_DEFINE([HAVE_EXTATTR_NAMESPACE_TO_STRING],1,[Define to 1 if you have the 'extattr_namespace_to_string' function.])
AC_DEFINE([HAVE_EXTATTR_STRING_TO_NAMESPACE],1,[Define to 1 if you have the 'extattr_string_to_namespace' function.])
- ]
+ ]
)
dnl
dnl If extattr_namespace_to_string and extattr_string_to_namespace are not in libc see if they are in libutil
dnl
if test $have_extattr_string_in_libc = no; then
- AC_CHECK_LIB(util, extattr_namespace_to_string extattr_string_to_namespace,
- [
- AC_DEFINE([HAVE_EXTATTR_NAMESPACE_TO_STRING],1,[Define to 1 if you have the 'extattr_namespace_to_string' function.])
- AC_DEFINE([HAVE_EXTATTR_STRING_TO_NAMESPACE],1,[Define to 1 if you have the 'extattr_string_to_namespace' function.])
- FDLIBS="-lutil $FDLIBS"
- ]
- )
+ AC_CHECK_LIB(util, extattr_namespace_to_string extattr_string_to_namespace,
+ [
+ AC_DEFINE([HAVE_EXTATTR_NAMESPACE_TO_STRING],1,[Define to 1 if you have the 'extattr_namespace_to_string' function.])
+ AC_DEFINE([HAVE_EXTATTR_STRING_TO_NAMESPACE],1,[Define to 1 if you have the 'extattr_string_to_namespace' function.])
+ FDLIBS="-lutil $FDLIBS"
+ ]
+ )
fi
fi
if test $have_xattr = no; then
AC_CHECK_HEADER(sys/xattr.h, [ AC_DEFINE(HAVE_SYS_XATTR_H,1,[Defines if your system have the sys/xattr.h header file])] , )
AC_CHECK_FUNCS(llistxattr lgetxattr lsetxattr,
- [
+ [
have_xattr=yes
AC_DEFINE([HAVE_LLISTXATTR],1,[Define to 1 if you have the 'llistxattr' function.])
AC_DEFINE([HAVE_LGETXATTR],1,[Define to 1 if you have the 'lgetxattr' function.])
AC_DEFINE([HAVE_LSETXATTR],1,[Define to 1 if you have the 'lsetxattr' function.])
- ]
+ ]
)
if test $have_xattr = no; then
- AC_CHECK_FUNCS(listxattr getxattr setxattr,
+ AC_CHECK_FUNCS(listxattr getxattr setxattr,
[
- have_xattr=yes
- AC_DEFINE([HAVE_LISTXATTR],1,[Define to 1 if you have the 'listxattr' function.])
- AC_DEFINE([HAVE_GETXATTR],1,[Define to 1 if you have the 'getxattr' function.])
- AC_DEFINE([HAVE_SETXATTR],1,[Define to 1 if you have the 'setxattr' function.])
+ have_xattr=yes
+ AC_DEFINE([HAVE_LISTXATTR],1,[Define to 1 if you have the 'listxattr' function.])
+ AC_DEFINE([HAVE_GETXATTR],1,[Define to 1 if you have the 'getxattr' function.])
+ AC_DEFINE([HAVE_SETXATTR],1,[Define to 1 if you have the 'setxattr' function.])
]
- )
+ )
fi
fi
AC_CHECK_FUNCS(openat fstatat unlinkat fchownat futimesat,
[
have_xattr=yes
- AC_DEFINE([HAVE_OPENAT],1,[Define to 1 if you have the 'openat' function.])
- AC_DEFINE([HAVE_FSTATAT],1,[Define to 1 if you have the 'fstatat' function.])
- AC_DEFINE([HAVE_UNLINKAT],1,[Define to 1 if you have the 'unlinkat' function.])
- AC_DEFINE([HAVE_FCHOWNAT],1,[Define to 1 if you have the 'fchownat' function.])
- AC_DEFINE([HAVE_FUTIMESAT],1,[Define to 1 if you have the 'futimesat' function.])
+ AC_DEFINE([HAVE_OPENAT],1,[Define to 1 if you have the 'openat' function.])
+ AC_DEFINE([HAVE_FSTATAT],1,[Define to 1 if you have the 'fstatat' function.])
+ AC_DEFINE([HAVE_UNLINKAT],1,[Define to 1 if you have the 'unlinkat' function.])
+ AC_DEFINE([HAVE_FCHOWNAT],1,[Define to 1 if you have the 'fchownat' function.])
+ AC_DEFINE([HAVE_FUTIMESAT],1,[Define to 1 if you have the 'futimesat' function.])
]
)
if test $have_xattr = yes; then
AC_CHECK_LIB(nvpair, nvlist_next_nvpair,
[
- AC_DEFINE([HAVE_NVLIST_NEXT_NVPAIR],1,[Define to 1 if you have the 'nvlist_next_nvpair' function.])
+ AC_DEFINE([HAVE_NVLIST_NEXT_NVPAIR],1,[Define to 1 if you have the 'nvlist_next_nvpair' function.])
FDLIBS="-lnvpair $FDLIBS"
]
)
please either load the xattr libraries or rerun configure without --enable-xattr])
else
if test $have_xattr = yes; then
- AC_DEFINE([HAVE_XATTR],1,[Extended Attributes support])
+ AC_DEFINE([HAVE_XATTR],1,[Extended Attributes support])
fi
fi
fi
src/cats/grant_mysql_privileges \
src/cats/drop_mysql_tables \
src/cats/drop_mysql_database \
- src/cats/create_sqlite_database \
- src/cats/update_sqlite_tables \
- src/cats/make_sqlite_tables \
- src/cats/grant_sqlite_privileges \
- src/cats/drop_sqlite_tables \
- src/cats/drop_sqlite_database \
src/cats/create_sqlite3_database \
src/cats/update_sqlite3_tables \
src/cats/make_sqlite3_tables \
updatedb/update_mysql_tables_9_to_10 \
updatedb/update_sqlite3_tables_9_to_10 \
updatedb/update_postgresql_tables_9_to_10 \
- updatedb/update_sqlite_tables_9_to_10 \
updatedb/update_mysql_tables_10_to_11 \
updatedb/update_sqlite3_tables_10_to_11 \
updatedb/update_postgresql_tables_10_to_11 \
- updatedb/update_sqlite_tables_10_to_11 \
+ examples/nagios/check_bacula/Makefile \
$PFILES ],
[ ]
)
c=updatedb
chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
-chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
+chmod 755 $c/update_postgresql_tables_10_to_11
c=src/cats
chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
-chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
-chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
-
chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database