Ignore:
Timestamp:
Jun 29, 2011, 7:36:41 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/configure.in

    r478 r587  
    757757        if test "x$CUPS_CONFIG" != x; then
    758758
    759                 ac_save_CFLAGS=$CFLAGS
    760759                ac_save_LDFLAGS=$LDFLAGS
    761760                ac_save_PRINT_LIBS=$PRINT_LIBS
    762                 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
    763                 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
    764                 PRINT_LIBS="$PRINT_LIBS -lcups"
    765761                AC_CHECK_HEADERS(cups/cups.h cups/language.h)
     762
    766763                if test x"$ac_cv_header_cups_cups_h" = xyes -a \
    767764                        x"$ac_cv_header_cups_language_h" = xyes; then
     765                        # try linking with -lcups alone first. That should work unless libcups is
     766                        # underlinked. With cups-config --libs we pull in unwanted and unneeded
     767                        # dendencies including thread libraries - use cups-config only if really
     768                        # required.
     769                        AC_CHECK_LIB_EXT(cups, ac_save_PRINT_LIBS , httpConnect,
     770                                [PRINT_LIBS"$ac_save_PRINT_LIBS -lcups"],
     771                                [AC_MSG_WARN([your cups library doesn't link with -lcups alone, it might be underlinked.]) ;
     772                                 PRINT_LIBS="$ac_save_PRINT_LIBS `$CUPS_CONFIG --libs`"])
     773
    768774                        AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS])
    769775                        samba_cv_HAVE_CUPS=yes
Note: See TracChangeset for help on using the changeset viewer.