< prev index next >

common/autoconf/generated-configure.sh

Print this page
rev 1848 : 8146639: Fix detection of Cups headers during configuration
Reviewed-by: erikj


4784 
4785 
4786 
4787 
4788 
4789 
4790 
4791 
4792 
4793 
4794 
4795 
4796 
4797 
4798 # This line needs to be here, verbatim, after all includes and the dummy hook
4799 # definitions. It is replaced with custom functionality when building
4800 # custom sources.
4801 #CUSTOM_AUTOCONF_INCLUDE
4802 
4803 # Do not change or remove the following line, it is needed for consistency checks:
4804 DATE_WHEN_GENERATED=1450277321
4805 
4806 ###############################################################################
4807 #
4808 # Initialization / Boot-strapping
4809 #
4810 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4811 # thus it jumps back and forth, each time gaining something needed later on.
4812 #
4813 ###############################################################################
4814 
4815 # If we are requested to print additional help, do that and then exit.
4816 # This must be the very first call.
4817 
4818   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4819     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4820     $PRINTF "Which are valid to use depends on the build platform.\n"
4821     for toolchain in $VALID_TOOLCHAINS_all; do
4822       # Use indirect variable referencing
4823       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4824       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


51725 if test "${with_cups_include+set}" = set; then :
51726   withval=$with_cups_include;
51727 fi
51728 
51729 
51730   if test "x$NEEDS_LIB_CUPS" = xfalse; then
51731     if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \
51732         (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then
51733       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5
51734 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;}
51735     fi
51736     CUPS_CFLAGS=
51737   else
51738     CUPS_FOUND=no
51739 
51740     if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then
51741       as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
51742     fi
51743 
51744     if test "x${with_cups}" != x; then



51745       CUPS_CFLAGS="-I${with_cups}/include"
51746       CUPS_FOUND=yes





51747     fi
51748     if test "x${with_cups_include}" != x; then



51749       CUPS_CFLAGS="-I${with_cups_include}"
51750       CUPS_FOUND=yes





51751     fi
51752     if test "x$CUPS_FOUND" = xno; then
51753       # Are the cups headers installed in the default /usr/include location?
51754       for ac_header in cups/cups.h cups/ppd.h
51755 do :
51756   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51757 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51759   cat >>confdefs.h <<_ACEOF
51760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51761 _ACEOF
51762 
51763           CUPS_FOUND=yes
51764           CUPS_CFLAGS=
51765           DEFAULT_CUPS=yes
51766 
51767 fi
51768 
51769 done
51770 




4784 
4785 
4786 
4787 
4788 
4789 
4790 
4791 
4792 
4793 
4794 
4795 
4796 
4797 
4798 # This line needs to be here, verbatim, after all includes and the dummy hook
4799 # definitions. It is replaced with custom functionality when building
4800 # custom sources.
4801 #CUSTOM_AUTOCONF_INCLUDE
4802 
4803 # Do not change or remove the following line, it is needed for consistency checks:
4804 DATE_WHEN_GENERATED=1452193303
4805 
4806 ###############################################################################
4807 #
4808 # Initialization / Boot-strapping
4809 #
4810 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4811 # thus it jumps back and forth, each time gaining something needed later on.
4812 #
4813 ###############################################################################
4814 
4815 # If we are requested to print additional help, do that and then exit.
4816 # This must be the very first call.
4817 
4818   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4819     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4820     $PRINTF "Which are valid to use depends on the build platform.\n"
4821     for toolchain in $VALID_TOOLCHAINS_all; do
4822       # Use indirect variable referencing
4823       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4824       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


51725 if test "${with_cups_include+set}" = set; then :
51726   withval=$with_cups_include;
51727 fi
51728 
51729 
51730   if test "x$NEEDS_LIB_CUPS" = xfalse; then
51731     if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \
51732         (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then
51733       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5
51734 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;}
51735     fi
51736     CUPS_CFLAGS=
51737   else
51738     CUPS_FOUND=no
51739 
51740     if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then
51741       as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
51742     fi
51743 
51744     if test "x${with_cups}" != x; then
51745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5
51746 $as_echo_n "checking for cups headers... " >&6; }
51747       if test -s "${with_cups}/include/cups/cups.h"; then
51748         CUPS_CFLAGS="-I${with_cups}/include"
51749         CUPS_FOUND=yes
51750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
51751 $as_echo "$CUPS_FOUND" >&6; }
51752       else
51753         as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5
51754       fi
51755     fi
51756     if test "x${with_cups_include}" != x; then
51757       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5
51758 $as_echo_n "checking for cups headers... " >&6; }
51759       if test -s "${with_cups}/cups/cups.h"; then
51760         CUPS_CFLAGS="-I${with_cups_include}"
51761         CUPS_FOUND=yes
51762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
51763 $as_echo "$CUPS_FOUND" >&6; }
51764       else
51765         as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5
51766       fi
51767     fi
51768     if test "x$CUPS_FOUND" = xno; then
51769       # Are the cups headers installed in the default /usr/include location?
51770       for ac_header in cups/cups.h cups/ppd.h
51771 do :
51772   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51773 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51775   cat >>confdefs.h <<_ACEOF
51776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51777 _ACEOF
51778 
51779           CUPS_FOUND=yes
51780           CUPS_CFLAGS=
51781           DEFAULT_CUPS=yes
51782 
51783 fi
51784 
51785 done
51786 


< prev index next >