< prev index next >

common/autoconf/lib-cups.m4

Print this page




  55         AC_MSG_RESULT([$CUPS_FOUND])
  56       else
  57         AC_MSG_ERROR([Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option.])
  58       fi
  59     fi
  60     if test "x${with_cups_include}" != x; then
  61       AC_MSG_CHECKING([for cups headers])
  62       if test -s "${with_cups_include}/cups/cups.h"; then
  63         CUPS_CFLAGS="-I${with_cups_include}"
  64         CUPS_FOUND=yes
  65         AC_MSG_RESULT([$CUPS_FOUND])
  66       else
  67         AC_MSG_ERROR([Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option.])
  68       fi
  69     fi
  70     if test "x$CUPS_FOUND" = xno; then
  71       # Are the cups headers installed in the default /usr/include location?
  72       AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
  73           CUPS_FOUND=yes
  74           CUPS_CFLAGS=
  75           DEFAULT_CUPS=yes
  76       ])
  77     fi
  78     if test "x$CUPS_FOUND" = xno; then
  79       # Getting nervous now? Lets poke around for standard Solaris third-party
  80       # package installation locations.
  81       AC_MSG_CHECKING([for cups headers])
  82       if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then
  83         # An SFW package seems to be installed!
  84         CUPS_FOUND=yes
  85         CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include"
  86       elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then
  87         # A CSW package seems to be installed!
  88         CUPS_FOUND=yes
  89         CUPS_CFLAGS="-I$SYSROOT/opt/csw/include"








  90       fi
  91       AC_MSG_RESULT([$CUPS_FOUND])

  92     fi
  93     if test "x$CUPS_FOUND" = xno; then
  94       HELP_MSG_MISSING_DEPENDENCY([cups])
  95       AC_MSG_ERROR([Could not find cups! $HELP_MSG ])
  96     fi
  97   fi
  98 
  99   AC_SUBST(CUPS_CFLAGS)
 100 ])


  55         AC_MSG_RESULT([$CUPS_FOUND])
  56       else
  57         AC_MSG_ERROR([Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option.])
  58       fi
  59     fi
  60     if test "x${with_cups_include}" != x; then
  61       AC_MSG_CHECKING([for cups headers])
  62       if test -s "${with_cups_include}/cups/cups.h"; then
  63         CUPS_CFLAGS="-I${with_cups_include}"
  64         CUPS_FOUND=yes
  65         AC_MSG_RESULT([$CUPS_FOUND])
  66       else
  67         AC_MSG_ERROR([Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option.])
  68       fi
  69     fi
  70     if test "x$CUPS_FOUND" = xno; then
  71       # Are the cups headers installed in the default /usr/include location?
  72       AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
  73           CUPS_FOUND=yes
  74           CUPS_CFLAGS=

  75       ])
  76     fi
  77     if test "x$CUPS_FOUND" = xno; then
  78       # Getting nervous now? Lets poke around for standard Solaris third-party
  79       # package installation locations.
  80       AC_MSG_CHECKING([for cups headers])
  81       if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then
  82         # An SFW package seems to be installed!
  83         CUPS_FOUND=yes
  84         CUPS_PATH="$SYSROOT/opt/sfw/cups/include"
  85       elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then
  86         # A CSW package seems to be installed!
  87         CUPS_FOUND=yes
  88         CUPS_PATH="$SYSROOT/opt/csw/include"
  89       elif test -s /usr/local/include/cups/cups.h; then
  90         # Default FreeBSD/OpenBSD location
  91         CUPS_FOUND=yes
  92         CUPS_PATH="/usr/local/include"
  93       elif test -s /usr/pkg/include/cups/cups.h; then
  94         # Default NetBSD location
  95         CUPS_FOUND=yes
  96         CUPS_PATH="/usr/pkg/include"
  97       fi
  98       AC_MSG_RESULT([$CUPS_FOUND, at $CUPS_PATH])
  99       CUPS_CFLAGS="-I$CUPS_PATH"
 100     fi
 101     if test "x$CUPS_FOUND" = xno; then
 102       HELP_MSG_MISSING_DEPENDENCY([cups])
 103       AC_MSG_ERROR([Could not find cups! $HELP_MSG ])
 104     fi
 105   fi
 106 
 107   AC_SUBST(CUPS_CFLAGS)
 108 ])
< prev index next >