]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/configure.in
bat: Display a nice graphic on media usage depending on the average
[bacula/bacula] / bacula / autoconf / configure.in
index 2ed5e154bf850b27ab54b5683c364adce3661359..2f1a7fe0b109b8794853516391c9bbca03054c45 100644 (file)
@@ -225,13 +225,29 @@ dnl --includedir, we set it to the package default of /usr/include.
 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
@@ -2408,7 +2424,7 @@ if test x$support_xattr = xyes -o x$support_xattr = xauto; then
       ]
    )
    
-   if test $have_xattr = yes; then
+   if test $have_xattr = no; then
       AC_CHECK_FUNCS(extattr_get_file extattr_set_file extattr_list_file,
          [
             have_xattr=yes
@@ -2419,7 +2435,6 @@ if test x$support_xattr = xyes -o x$support_xattr = xauto; then
       )
    fi
    
-   fi
    if test $have_xattr = yes; then
       have_extattr_string_in_libc=no
       AC_CHECK_FUNCS(extattr_namespace_to_string extattr_string_to_namespace,