From: Marco van Wieringen Date: Mon, 11 Apr 2011 18:31:54 +0000 (+0200) Subject: Tweak configure X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=67c9d61f307f067140486afcd2fb7b1ea9a6c33e;p=bacula%2Fbacula Tweak configure --- diff --git a/bacula/autoconf/acconfig.h b/bacula/autoconf/acconfig.h index 55a7c954ce..de62f6c49e 100644 --- a/bacula/autoconf/acconfig.h +++ b/bacula/autoconf/acconfig.h @@ -179,6 +179,7 @@ #undef HAVE_SOCKLEN_T #undef HAVE_OLD_SOCKOPT +#undef USE_THR_SETCONCURRENCY /* Defined if Gtk+-2.4 or greater is present */ #undef HAVE_GTK_2_4 diff --git a/bacula/autoconf/config.h.in b/bacula/autoconf/config.h.in index c0fe5e92a3..2b4f018fd3 100644 --- a/bacula/autoconf/config.h.in +++ b/bacula/autoconf/config.h.in @@ -179,6 +179,7 @@ #undef HAVE_SOCKLEN_T #undef HAVE_OLD_SOCKOPT +#undef USE_THR_SETCONCURRENCY /* Defined if Gtk+-2.4 or greater is present */ #undef HAVE_GTK_2_4 diff --git a/bacula/autoconf/config.h.in.save b/bacula/autoconf/config.h.in.save index 33dfaab478..3590d47c0e 100644 --- a/bacula/autoconf/config.h.in.save +++ b/bacula/autoconf/config.h.in.save @@ -176,6 +176,7 @@ #undef HAVE_SOCKLEN_T #undef HAVE_OLD_SOCKOPT +#undef USE_THR_SETCONCURRENCY /* Defined if Gtk+-2.4 or greater is present */ #undef HAVE_GTK_2_4 diff --git a/bacula/configure b/bacula/configure index 53f7c3aaf8..483d915eff 100755 --- a/bacula/configure +++ b/bacula/configure @@ -29763,10 +29763,17 @@ solaris) platforms/solaris/bacula-fd \ platforms/solaris/bacula-sd \ platforms/solaris/bacula-dir" - if test x$DISTVER = x5.6 ; then + case ${DISTVER} in + 5.5|5.6) $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h - - fi + $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h + ;; + 5.7|5.8) + $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h + ;; + *) + ;; + esac LIBS="$LIBS -lresolv -lrt" ;; suse)