diff options
author | Loïc Minier <lool@dooz.org> | 2009-04-14 23:42:19 +0200 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2009-04-14 23:42:19 +0200 |
commit | 57e531b852e2fc3fd9c82fe0617dd34075703f13 (patch) | |
tree | 535b1d3ecc71829e7bb4a7f89ba56f2bc99f98f5 /configure | |
parent | 966f990f0b25352fd4f9c7f9beb844c5d94f9408 (diff) |
Imported Upstream version 1.2.4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2372 |
1 files changed, 2113 insertions, 259 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.60 for cairo 1.2.2. +# Generated by GNU Autoconf 2.60 for cairo 1.2.4. # # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>. # @@ -713,8 +713,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='cairo' PACKAGE_TARNAME='cairo' -PACKAGE_VERSION='1.2.2' -PACKAGE_STRING='cairo 1.2.2' +PACKAGE_VERSION='1.2.4' +PACKAGE_STRING='cairo 1.2.4' PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=cairo' ac_unique_file="src/cairo.h" @@ -863,6 +863,8 @@ FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG +xlib_CFLAGS +xlib_LIBS XMKMF X_CFLAGS X_PRE_LIBS @@ -886,6 +888,7 @@ CAIRO_HAS_WIN32_FONT_TRUE CAIRO_HAS_WIN32_FONT_FALSE CAIRO_HAS_BEOS_SURFACE_TRUE CAIRO_HAS_BEOS_SURFACE_FALSE +png_REQUIRES png_CFLAGS png_LIBS CAIRO_HAS_PNG_FUNCTIONS_TRUE @@ -978,11 +981,14 @@ CXXCPP F77 FFLAGS PKG_CONFIG +xlib_CFLAGS +xlib_LIBS XMKMF xlib_xrender_CFLAGS xlib_xrender_LIBS xcb_CFLAGS xcb_LIBS +png_REQUIRES png_CFLAGS png_LIBS glitz_CFLAGS @@ -1507,7 +1513,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures cairo 1.2.2 to adapt to many kinds of systems. +\`configure' configures cairo 1.2.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1581,7 +1587,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of cairo 1.2.2:";; + short | recursive ) echo "Configuration of cairo 1.2.4:";; esac cat <<\_ACEOF @@ -1658,6 +1664,8 @@ Some influential environment variables: F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility + xlib_CFLAGS C compiler flags for xlib, overriding pkg-config + xlib_LIBS linker flags for xlib, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System xlib_xrender_CFLAGS C compiler flags for xlib_xrender, overriding pkg-config @@ -1665,6 +1673,8 @@ Some influential environment variables: linker flags for xlib_xrender, overriding pkg-config xcb_CFLAGS C compiler flags for xcb, overriding pkg-config xcb_LIBS linker flags for xcb, overriding pkg-config + png_REQUIRES + module name for libpng to search for using pkg-config png_CFLAGS C compiler flags for png, overriding pkg-config png_LIBS linker flags for png, overriding pkg-config glitz_CFLAGS @@ -1771,7 +1781,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -cairo configure 1.2.2 +cairo configure 1.2.4 generated by GNU Autoconf 2.60 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1785,7 +1795,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by cairo $as_me 1.2.2, which was +It was created by cairo $as_me 1.2.4, which was generated by GNU Autoconf 2.60. Invocation command line was $ $0 $@ @@ -2458,7 +2468,7 @@ fi # Define the identity of the package. PACKAGE='cairo' - VERSION='1.2.2' + VERSION='1.2.4' cat >>confdefs.h <<_ACEOF @@ -2613,7 +2623,7 @@ LT_CURRENT=11 # Increment any time the source changes; set to # 0 if you increment CURRENT -LT_REVISION=1 +LT_REVISION=2 # Increment if any interfaces have been added; set to 0 # if any interfaces have been removed. removal has @@ -2629,7 +2639,7 @@ LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE` CAIRO_VERSION_MAJOR=1 CAIRO_VERSION_MINOR=2 -CAIRO_VERSION_MICRO=2 +CAIRO_VERSION_MICRO=4 @@ -4887,7 +4897,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 4890 "configure"' > conftest.$ac_ext + echo '#line 4900 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -7593,11 +7603,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7596: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7606: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7600: \$? = $ac_status" >&5 + echo "$as_me:7610: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7861,11 +7871,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7864: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7874: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7868: \$? = $ac_status" >&5 + echo "$as_me:7878: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7965,11 +7975,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7968: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7978: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:7972: \$? = $ac_status" >&5 + echo "$as_me:7982: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -10406,7 +10416,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 10409 "configure" +#line 10419 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10506,7 +10516,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 10509 "configure" +#line 10519 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12874,11 +12884,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12877: $lt_compile\"" >&5) + (eval echo "\"\$as_me:12887: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:12881: \$? = $ac_status" >&5 + echo "$as_me:12891: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -12978,11 +12988,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12981: $lt_compile\"" >&5) + (eval echo "\"\$as_me:12991: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:12985: \$? = $ac_status" >&5 + echo "$as_me:12995: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -14539,11 +14549,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14542: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14552: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14546: \$? = $ac_status" >&5 + echo "$as_me:14556: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -14643,11 +14653,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14646: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14656: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14650: \$? = $ac_status" >&5 + echo "$as_me:14660: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -16862,11 +16872,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16865: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16875: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:16869: \$? = $ac_status" >&5 + echo "$as_me:16879: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -17130,11 +17140,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17133: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17143: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:17137: \$? = $ac_status" >&5 + echo "$as_me:17147: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -17234,11 +17244,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17237: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17247: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:17241: \$? = $ac_status" >&5 + echo "$as_me:17251: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -20768,9 +20778,252 @@ fi ;; esac - LIBS="$LIBS $LIBM" +{ echo "$as_me:$LINENO: checking for compress in -lz" >&5 +echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; } +if test "${ac_cv_lib_z_compress+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char compress (); +int +main () +{ +return compress (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_z_compress=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_z_compress=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 +echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; } +if test $ac_cv_lib_z_compress = yes; then + if test "${ac_cv_header_zlib_h+set}" = set; then + { echo "$as_me:$LINENO: checking for zlib.h" >&5 +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } +if test "${ac_cv_header_zlib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 +echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <zlib.h> +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 +echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <zlib.h> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} + ( cat <<\_ASBOX +## ---------------------------------------------------------------------- ## +## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=cairo ## +## ---------------------------------------------------------------------- ## +_ASBOX + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +{ echo "$as_me:$LINENO: checking for zlib.h" >&5 +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } +if test "${ac_cv_header_zlib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_zlib_h=$ac_header_preproc +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } + +fi +if test $ac_cv_header_zlib_h = yes; then + have_libz=yes +else + have_libz="no (requires zlib http://www.gzip.org/zlib/)" +fi + + +else + have_libz="no (requires zlib http://www.gzip.org/zlib/)" +fi + + @@ -20895,10 +21148,12 @@ fi + + CAIRO_FEATURES="" CAIRO_REQUIRES="" CAIRO_NONPKGCONFIG_CFLAGS="" -CAIRO_NONPKGCONFIG_LIBS="-lm" +CAIRO_NONPKGCONFIG_LIBS="$LIBM" CAIRO_CFLAGS=$CAIRO_NONPKGCONFIG_CFLAGS CAIRO_LIBS=$CAIRO_NONPKGCONFIG_LIBS @@ -21175,6 +21430,10 @@ fi if test "x$enable_xlib" = xno; then use_xlib="no (disabled, use --enable-xlib to enable)" else + if test "x$cairo_cv_backend_xlib_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_xlib_use + fi { echo "$as_me:$LINENO: checking for cairo's Xlib backend" >&5 echo $ECHO_N "checking for cairo's Xlib backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_xlib_use+set}" = set; then @@ -21182,14 +21441,75 @@ if test "${cairo_cv_backend_xlib_use+set}" = set; then else echo use_xlib=yes - xlib_REQUIRES="" - xlib_CFLAGS="" - xlib_LIBS="" - xlib_NONPKGCONFIG_CFLAGS="" - xlib_NONPKGCONFIG_LIBS="" + xlib_REQUIRES=$ac_env_xlib_REQUIRES_value + xlib_CFLAGS=$ac_env_xlib_CFLAGS_value + xlib_LIBS=$ac_env_xlib_LIBS_value + xlib_NONPKGCONFIG_CFLAGS=$ac_env_xlib_NONPKGCONFIG_CFLAGS_value + xlib_NONPKGCONFIG_LIBS=$ac_env_xlib_NONPKGCONFIG_LIBS_value xlib_BASE=cairo - if test "$no_x" = yes; then + xlib_REQUIRES="x11" + +pkg_failed=no +{ echo "$as_me:$LINENO: checking for xlib" >&5 +echo $ECHO_N "checking for xlib... $ECHO_C" >&6; } + +if test -n "$PKG_CONFIG"; then + if test -n "$xlib_CFLAGS"; then + pkg_cv_xlib_CFLAGS="$xlib_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\"") >&5 + ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + pkg_cv_xlib_CFLAGS=`$PKG_CONFIG --cflags "$xlib_REQUIRES" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi +if test -n "$PKG_CONFIG"; then + if test -n "$xlib_LIBS"; then + pkg_cv_xlib_LIBS="$xlib_LIBS" + else + if test -n "$PKG_CONFIG" && \ + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\"") >&5 + ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + pkg_cv_xlib_LIBS=`$PKG_CONFIG --libs "$xlib_REQUIRES" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$xlib_REQUIRES"` + else + xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$xlib_REQUIRES"` + fi + # Put the nasty error message in config.log where it belongs + echo "$xlib_PKG_ERRORS" >&5 + + xlib_REQUIRES="" + if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >>confdefs.h <<\_ACEOF @@ -22514,14 +22834,1355 @@ fi fi - if test "x$no_x" = xyes; then - use_xlib="no (requires Xlib)" + if test "x$no_x" = xyes; then + use_xlib="no (requires X development libraries)" + else + xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" + xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS + fi +elif test $pkg_failed = untried; then + xlib_REQUIRES="" + if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +cat >>confdefs.h <<\_ACEOF +#define X_DISPLAY_MISSING 1 +_ACEOF + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + case `(uname -sr) 2>/dev/null` in + "SunOS 5"*) + { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 +echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_R_nospace=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_R_nospace=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $ac_R_nospace = yes; then + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" + else + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_R_space=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_R_space=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $ac_R_space = yes; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" + else + { echo "$as_me:$LINENO: result: neither works" >&5 +echo "${ECHO_T}neither works" >&6; } + fi + fi + LIBS=$ac_xsave_LIBS + esac + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else - xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" - xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XOpenDisplay (); +int +main () +{ +return XOpenDisplay (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dnet_dnet_ntoa=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dnet_dnet_ntoa=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 +echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dnet_stub_dnet_ntoa=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dnet_stub_dnet_ntoa=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + { echo "$as_me:$LINENO: checking for gethostbyname" >&5 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } +if test "${ac_cv_func_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define gethostbyname innocuous_gethostbyname + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef gethostbyname + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_gethostbyname || defined __stub___gethostbyname +choke me +#endif + +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_gethostbyname=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } + + if test $ac_cv_func_gethostbyname = no; then + { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_nsl_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_nsl_gethostbyname=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } +if test $ac_cv_lib_nsl_gethostbyname = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 +echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_bsd_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_bsd_gethostbyname=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } +if test $ac_cv_lib_bsd_gethostbyname = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + { echo "$as_me:$LINENO: checking for connect" >&5 +echo $ECHO_N "checking for connect... $ECHO_C" >&6; } +if test "${ac_cv_func_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define connect to an innocuous variant, in case <limits.h> declares connect. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define connect innocuous_connect + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char connect (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef connect + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_connect || defined __stub___connect +choke me +#endif + +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_connect=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_connect=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 +echo "${ECHO_T}$ac_cv_func_connect" >&6; } + + if test $ac_cv_func_connect = no; then + { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } +if test "${ac_cv_lib_socket_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_socket_connect=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_socket_connect=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } +if test $ac_cv_lib_socket_connect = yes; then + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + { echo "$as_me:$LINENO: checking for remove" >&5 +echo $ECHO_N "checking for remove... $ECHO_C" >&6; } +if test "${ac_cv_func_remove+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define remove to an innocuous variant, in case <limits.h> declares remove. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define remove innocuous_remove + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char remove (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef remove + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char remove (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_remove || defined __stub___remove +choke me +#endif + +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_remove=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_remove=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 +echo "${ECHO_T}$ac_cv_func_remove" >&6; } + + if test $ac_cv_func_remove = no; then + { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 +echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } +if test "${ac_cv_lib_posix_remove+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char remove (); +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_posix_remove=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_posix_remove=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 +echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } +if test $ac_cv_lib_posix_remove = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + { echo "$as_me:$LINENO: checking for shmat" >&5 +echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } +if test "${ac_cv_func_shmat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define shmat innocuous_shmat + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmat (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef shmat + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shmat (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_shmat || defined __stub___shmat +choke me +#endif + +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_shmat=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_shmat=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 +echo "${ECHO_T}$ac_cv_func_shmat" >&6; } + + if test $ac_cv_func_shmat = no; then + { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 +echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } +if test "${ac_cv_lib_ipc_shmat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shmat (); +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_ipc_shmat=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_ipc_shmat=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 +echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } +if test $ac_cv_lib_ipc_shmat = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi fi + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 +echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char IceConnectionNumber (); +int +main () +{ +return IceConnectionNumber (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_ICE_IceConnectionNumber=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_ICE_IceConnectionNumber=no +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + + if test "x$no_x" = xyes; then + use_xlib="no (requires X development libraries)" + else + xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" + xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS + fi +else + xlib_CFLAGS=$pkg_cv_xlib_CFLAGS + xlib_LIBS=$pkg_cv_xlib_LIBS + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + : +fi + cairo_cv_backend_xlib_use=$use_xlib + cairo_cv_backend_xlib_cache_version=3 cairo_cv_backend_xlib_requires=$xlib_REQUIRES cairo_cv_backend_xlib_cflags=$xlib_CFLAGS cairo_cv_backend_xlib_libs=$xlib_LIBS @@ -22534,7 +24195,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_xlib_use" >&5 echo "${ECHO_T}$cairo_cv_backend_xlib_use" >&6; } - # split the backend spec into its components use_xlib=$cairo_cv_backend_xlib_use xlib_BASE=$cairo_cv_backend_xlib_base @@ -22751,6 +24411,10 @@ fi if test "x$enable_xlib_xrender" = xno; then use_xlib_xrender="no (disabled, use --enable-xlib-xrender to enable)" else + if test "x$cairo_cv_backend_xlib_xrender_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_xlib_xrender_use + fi { echo "$as_me:$LINENO: checking for cairo's Xlib Xrender backend" >&5 echo $ECHO_N "checking for cairo's Xlib Xrender backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_xlib_xrender_use+set}" = set; then @@ -22758,15 +24422,16 @@ if test "${cairo_cv_backend_xlib_xrender_use+set}" = set; then else echo use_xlib_xrender=yes - xlib_xrender_REQUIRES="" - xlib_xrender_CFLAGS="" - xlib_xrender_LIBS="" - xlib_xrender_NONPKGCONFIG_CFLAGS="" - xlib_xrender_NONPKGCONFIG_LIBS="" + xlib_xrender_REQUIRES=$ac_env_xlib_xrender_REQUIRES_value + xlib_xrender_CFLAGS=$ac_env_xlib_xrender_CFLAGS_value + xlib_xrender_LIBS=$ac_env_xlib_xrender_LIBS_value + xlib_xrender_NONPKGCONFIG_CFLAGS=$ac_env_xlib_xrender_NONPKGCONFIG_CFLAGS_value + xlib_xrender_NONPKGCONFIG_LIBS=$ac_env_xlib_xrender_NONPKGCONFIG_LIBS_value xlib_xrender_BASE=cairo - use_xlib_xrender=$use_xlib - if test "x$use_xlib_xrender" = xyes; then + if test "x$use_xlib" != "xyes"; then + use_xlib_xrender="no (requires --enable-xlib)" + else xlib_xrender_BASE=cairo-xlib xlib_xrender_REQUIRES="xrender >= 0.6" @@ -22984,7 +24649,7 @@ echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrender_h" >&6; } fi if test $ac_cv_header_X11_extensions_Xrender_h = yes; then - xlib_xrender_LIBS="-lXrender" + xlib_xrender_NONPKGCONFIG_LIBS="-lXrender" else use_xlib_xrender="no (requires Xrender http://freedesktop.org/Software/xlibs)" fi @@ -23147,7 +24812,7 @@ echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrender_h" >&6; } fi if test $ac_cv_header_X11_extensions_Xrender_h = yes; then - xlib_xrender_LIBS="-lXrender" + xlib_xrender_NONPKGCONFIG_LIBS="-lXrender" else use_xlib_xrender="no (requires Xrender http://freedesktop.org/Software/xlibs)" fi @@ -23163,6 +24828,7 @@ fi fi cairo_cv_backend_xlib_xrender_use=$use_xlib_xrender + cairo_cv_backend_xlib_xrender_cache_version=3 cairo_cv_backend_xlib_xrender_requires=$xlib_xrender_REQUIRES cairo_cv_backend_xlib_xrender_cflags=$xlib_xrender_CFLAGS cairo_cv_backend_xlib_xrender_libs=$xlib_xrender_LIBS @@ -23175,7 +24841,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_xlib_xrender_use" >&5 echo "${ECHO_T}$cairo_cv_backend_xlib_xrender_use" >&6; } - # split the backend spec into its components use_xlib_xrender=$cairo_cv_backend_xlib_xrender_use xlib_xrender_BASE=$cairo_cv_backend_xlib_xrender_base @@ -23272,6 +24937,10 @@ fi if test "x$enable_quartz" = xno; then use_quartz="no (disabled, use --enable-quartz to enable)" else + if test "x$cairo_cv_backend_quartz_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_quartz_use + fi { echo "$as_me:$LINENO: checking for cairo's Quartz backend" >&5 echo $ECHO_N "checking for cairo's Quartz backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_quartz_use+set}" = set; then @@ -23279,11 +24948,11 @@ if test "${cairo_cv_backend_quartz_use+set}" = set; then else echo use_quartz=yes - quartz_REQUIRES="" - quartz_CFLAGS="" - quartz_LIBS="" - quartz_NONPKGCONFIG_CFLAGS="" - quartz_NONPKGCONFIG_LIBS="" + quartz_REQUIRES=$ac_env_quartz_REQUIRES_value + quartz_CFLAGS=$ac_env_quartz_CFLAGS_value + quartz_LIBS=$ac_env_quartz_LIBS_value + quartz_NONPKGCONFIG_CFLAGS=$ac_env_quartz_NONPKGCONFIG_CFLAGS_value + quartz_NONPKGCONFIG_LIBS=$ac_env_quartz_NONPKGCONFIG_LIBS_value quartz_BASE=cairo if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then @@ -23450,6 +25119,7 @@ fi quartz_LIBS="-Xlinker -framework -Xlinker Carbon" cairo_cv_backend_quartz_use=$use_quartz + cairo_cv_backend_quartz_cache_version=3 cairo_cv_backend_quartz_requires=$quartz_REQUIRES cairo_cv_backend_quartz_cflags=$quartz_CFLAGS cairo_cv_backend_quartz_libs=$quartz_LIBS @@ -23462,7 +25132,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_quartz_use" >&5 echo "${ECHO_T}$cairo_cv_backend_quartz_use" >&6; } - # split the backend spec into its components use_quartz=$cairo_cv_backend_quartz_use quartz_BASE=$cairo_cv_backend_quartz_base @@ -23559,6 +25228,10 @@ fi if test "x$enable_xcb" = xno; then use_xcb="no (disabled, use --enable-xcb to enable)" else + if test "x$cairo_cv_backend_xcb_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_xcb_use + fi { echo "$as_me:$LINENO: checking for cairo's XCB backend" >&5 echo $ECHO_N "checking for cairo's XCB backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_xcb_use+set}" = set; then @@ -23566,11 +25239,11 @@ if test "${cairo_cv_backend_xcb_use+set}" = set; then else echo use_xcb=yes - xcb_REQUIRES="" - xcb_CFLAGS="" - xcb_LIBS="" - xcb_NONPKGCONFIG_CFLAGS="" - xcb_NONPKGCONFIG_LIBS="" + xcb_REQUIRES=$ac_env_xcb_REQUIRES_value + xcb_CFLAGS=$ac_env_xcb_CFLAGS_value + xcb_LIBS=$ac_env_xcb_LIBS_value + xcb_NONPKGCONFIG_CFLAGS=$ac_env_xcb_NONPKGCONFIG_CFLAGS_value + xcb_NONPKGCONFIG_LIBS=$ac_env_xcb_NONPKGCONFIG_LIBS_value xcb_BASE=cairo xcb_REQUIRES="xcb xcb-render xcb-renderutil" @@ -23647,6 +25320,7 @@ echo "${ECHO_T}yes" >&6; } fi cairo_cv_backend_xcb_use=$use_xcb + cairo_cv_backend_xcb_cache_version=3 cairo_cv_backend_xcb_requires=$xcb_REQUIRES cairo_cv_backend_xcb_cflags=$xcb_CFLAGS cairo_cv_backend_xcb_libs=$xcb_LIBS @@ -23659,7 +25333,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_xcb_use" >&5 echo "${ECHO_T}$cairo_cv_backend_xcb_use" >&6; } - # split the backend spec into its components use_xcb=$cairo_cv_backend_xcb_use xcb_BASE=$cairo_cv_backend_xcb_base @@ -23756,6 +25429,10 @@ fi if test "x$enable_win32" = xno; then use_win32="no (disabled, use --enable-win32 to enable)" else + if test "x$cairo_cv_backend_win32_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_win32_use + fi { echo "$as_me:$LINENO: checking for cairo's Microsoft Windows backend" >&5 echo $ECHO_N "checking for cairo's Microsoft Windows backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_win32_use+set}" = set; then @@ -23763,11 +25440,11 @@ if test "${cairo_cv_backend_win32_use+set}" = set; then else echo use_win32=yes - win32_REQUIRES="" - win32_CFLAGS="" - win32_LIBS="" - win32_NONPKGCONFIG_CFLAGS="" - win32_NONPKGCONFIG_LIBS="" + win32_REQUIRES=$ac_env_win32_REQUIRES_value + win32_CFLAGS=$ac_env_win32_CFLAGS_value + win32_LIBS=$ac_env_win32_LIBS_value + win32_NONPKGCONFIG_CFLAGS=$ac_env_win32_NONPKGCONFIG_CFLAGS_value + win32_NONPKGCONFIG_LIBS=$ac_env_win32_NONPKGCONFIG_LIBS_value win32_BASE=cairo case "$host" in @@ -23781,6 +25458,7 @@ else win32_LIBS="-lgdi32 -lmsimg32" cairo_cv_backend_win32_use=$use_win32 + cairo_cv_backend_win32_cache_version=3 cairo_cv_backend_win32_requires=$win32_REQUIRES cairo_cv_backend_win32_cflags=$win32_CFLAGS cairo_cv_backend_win32_libs=$win32_LIBS @@ -23793,7 +25471,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_win32_use" >&5 echo "${ECHO_T}$cairo_cv_backend_win32_use" >&6; } - # split the backend spec into its components use_win32=$cairo_cv_backend_win32_use win32_BASE=$cairo_cv_backend_win32_base @@ -23889,6 +25566,10 @@ fi if test "x$enable_win32_font" = xno; then use_win32_font="no (disabled, use --enable-win32-font to enable)" else + if test "x$cairo_cv_backend_win32_font_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_win32_font_use + fi { echo "$as_me:$LINENO: checking for cairo's Microsoft Windows font backend" >&5 echo $ECHO_N "checking for cairo's Microsoft Windows font backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_win32_font_use+set}" = set; then @@ -23896,16 +25577,17 @@ if test "${cairo_cv_backend_win32_font_use+set}" = set; then else echo use_win32_font=yes - win32_font_REQUIRES="" - win32_font_CFLAGS="" - win32_font_LIBS="" - win32_font_NONPKGCONFIG_CFLAGS="" - win32_font_NONPKGCONFIG_LIBS="" + win32_font_REQUIRES=$ac_env_win32_font_REQUIRES_value + win32_font_CFLAGS=$ac_env_win32_font_CFLAGS_value + win32_font_LIBS=$ac_env_win32_font_LIBS_value + win32_font_NONPKGCONFIG_CFLAGS=$ac_env_win32_font_NONPKGCONFIG_CFLAGS_value + win32_font_NONPKGCONFIG_LIBS=$ac_env_win32_font_NONPKGCONFIG_LIBS_value win32_font_BASE=cairo use_win32_font=$use_win32 cairo_cv_backend_win32_font_use=$use_win32_font + cairo_cv_backend_win32_font_cache_version=3 cairo_cv_backend_win32_font_requires=$win32_font_REQUIRES cairo_cv_backend_win32_font_cflags=$win32_font_CFLAGS cairo_cv_backend_win32_font_libs=$win32_font_LIBS @@ -23918,7 +25600,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_win32_font_use" >&5 echo "${ECHO_T}$cairo_cv_backend_win32_font_use" >&6; } - # split the backend spec into its components use_win32_font=$cairo_cv_backend_win32_font_use win32_font_BASE=$cairo_cv_backend_win32_font_base @@ -24015,6 +25696,10 @@ fi if test "x$enable_beos" = xno; then use_beos="no (disabled, use --enable-beos to enable)" else + if test "x$cairo_cv_backend_beos_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_beos_use + fi { echo "$as_me:$LINENO: checking for cairo's BeOS/Zeta backend" >&5 echo $ECHO_N "checking for cairo's BeOS/Zeta backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_beos_use+set}" = set; then @@ -24022,11 +25707,11 @@ if test "${cairo_cv_backend_beos_use+set}" = set; then else echo use_beos=yes - beos_REQUIRES="" - beos_CFLAGS="" - beos_LIBS="" - beos_NONPKGCONFIG_CFLAGS="" - beos_NONPKGCONFIG_LIBS="" + beos_REQUIRES=$ac_env_beos_REQUIRES_value + beos_CFLAGS=$ac_env_beos_CFLAGS_value + beos_LIBS=$ac_env_beos_LIBS_value + beos_NONPKGCONFIG_CFLAGS=$ac_env_beos_NONPKGCONFIG_CFLAGS_value + beos_NONPKGCONFIG_LIBS=$ac_env_beos_NONPKGCONFIG_LIBS_value beos_BASE=cairo case "$host" in @@ -24188,6 +25873,7 @@ fi esac cairo_cv_backend_beos_use=$use_beos + cairo_cv_backend_beos_cache_version=3 cairo_cv_backend_beos_requires=$beos_REQUIRES cairo_cv_backend_beos_cflags=$beos_CFLAGS cairo_cv_backend_beos_libs=$beos_LIBS @@ -24200,7 +25886,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_beos_use" >&5 echo "${ECHO_T}$cairo_cv_backend_beos_use" >&6; } - # split the backend spec into its components use_beos=$cairo_cv_backend_beos_use beos_BASE=$cairo_cv_backend_beos_base @@ -24841,6 +26526,10 @@ fi if test "x$enable_png" = xno; then use_png="no (disabled, use --enable-png to enable)" else + if test "x$cairo_cv_backend_png_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_png_use + fi { echo "$as_me:$LINENO: checking for cairo's PNG backend" >&5 echo $ECHO_N "checking for cairo's PNG backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_png_use+set}" = set; then @@ -24848,22 +26537,27 @@ if test "${cairo_cv_backend_png_use+set}" = set; then else echo use_png=yes - png_REQUIRES="" - png_CFLAGS="" - png_LIBS="" - png_NONPKGCONFIG_CFLAGS="" - png_NONPKGCONFIG_LIBS="" + png_REQUIRES=$ac_env_png_REQUIRES_value + png_CFLAGS=$ac_env_png_CFLAGS_value + png_LIBS=$ac_env_png_LIBS_value + png_NONPKGCONFIG_CFLAGS=$ac_env_png_NONPKGCONFIG_CFLAGS_value + png_NONPKGCONFIG_LIBS=$ac_env_png_NONPKGCONFIG_LIBS_value png_BASE=cairo use_png=no - # libpng13 is GnuWin32's libpng-1.2.8 :-( - for l in libpng12 libpng13 libpng10 ; do - if $PKG_CONFIG --exists $l ; then - png_REQUIRES=$l - use_png=yes - break - fi - done + + if test "x$png_REQUIRES" = x; then + # libpng13 is GnuWin32's libpng-1.2.8 :-( + for l in libpng12 libpng13 libpng10 ; do + if $PKG_CONFIG --exists $l ; then + png_REQUIRES=$l + use_png=yes + break + fi + done + else + use_png=yes + fi if test "x$use_png" = "xyes" ; then @@ -24983,6 +26677,7 @@ echo "$as_me: WARNING: Could not find libpng in the pkg-config search path" >&2; fi cairo_cv_backend_png_use=$use_png + cairo_cv_backend_png_cache_version=3 cairo_cv_backend_png_requires=$png_REQUIRES cairo_cv_backend_png_cflags=$png_CFLAGS cairo_cv_backend_png_libs=$png_LIBS @@ -24995,7 +26690,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_png_use" >&5 echo "${ECHO_T}$cairo_cv_backend_png_use" >&6; } - # split the backend spec into its components use_png=$cairo_cv_backend_png_use png_BASE=$cairo_cv_backend_png_base @@ -25100,6 +26794,10 @@ fi if test "x$enable_glitz" = xno; then use_glitz="no (disabled, use --enable-glitz to enable)" else + if test "x$cairo_cv_backend_glitz_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_glitz_use + fi { echo "$as_me:$LINENO: checking for cairo's glitz backend" >&5 echo $ECHO_N "checking for cairo's glitz backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_glitz_use+set}" = set; then @@ -25107,11 +26805,11 @@ if test "${cairo_cv_backend_glitz_use+set}" = set; then else echo use_glitz=yes - glitz_REQUIRES="" - glitz_CFLAGS="" - glitz_LIBS="" - glitz_NONPKGCONFIG_CFLAGS="" - glitz_NONPKGCONFIG_LIBS="" + glitz_REQUIRES=$ac_env_glitz_REQUIRES_value + glitz_CFLAGS=$ac_env_glitz_CFLAGS_value + glitz_LIBS=$ac_env_glitz_LIBS_value + glitz_NONPKGCONFIG_CFLAGS=$ac_env_glitz_NONPKGCONFIG_CFLAGS_value + glitz_NONPKGCONFIG_LIBS=$ac_env_glitz_NONPKGCONFIG_LIBS_value glitz_BASE=cairo glitz_REQUIRES="glitz >= $GLITZ_MIN_VERSION" @@ -25188,6 +26886,7 @@ echo "${ECHO_T}yes" >&6; } fi cairo_cv_backend_glitz_use=$use_glitz + cairo_cv_backend_glitz_cache_version=3 cairo_cv_backend_glitz_requires=$glitz_REQUIRES cairo_cv_backend_glitz_cflags=$glitz_CFLAGS cairo_cv_backend_glitz_libs=$glitz_LIBS @@ -25200,7 +26899,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_glitz_use" >&5 echo "${ECHO_T}$cairo_cv_backend_glitz_use" >&6; } - # split the backend spec into its components use_glitz=$cairo_cv_backend_glitz_use glitz_BASE=$cairo_cv_backend_glitz_base @@ -25646,6 +27344,10 @@ fi if test "x$enable_directfb" = xno; then use_directfb="no (disabled, use --enable-directfb to enable)" else + if test "x$cairo_cv_backend_directfb_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_directfb_use + fi { echo "$as_me:$LINENO: checking for cairo's directfb backend" >&5 echo $ECHO_N "checking for cairo's directfb backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_directfb_use+set}" = set; then @@ -25653,11 +27355,11 @@ if test "${cairo_cv_backend_directfb_use+set}" = set; then else echo use_directfb=yes - directfb_REQUIRES="" - directfb_CFLAGS="" - directfb_LIBS="" - directfb_NONPKGCONFIG_CFLAGS="" - directfb_NONPKGCONFIG_LIBS="" + directfb_REQUIRES=$ac_env_directfb_REQUIRES_value + directfb_CFLAGS=$ac_env_directfb_CFLAGS_value + directfb_LIBS=$ac_env_directfb_LIBS_value + directfb_NONPKGCONFIG_CFLAGS=$ac_env_directfb_NONPKGCONFIG_CFLAGS_value + directfb_NONPKGCONFIG_LIBS=$ac_env_directfb_NONPKGCONFIG_LIBS_value directfb_BASE=cairo directfb_REQUIRES=directfb @@ -25732,6 +27434,7 @@ echo "${ECHO_T}yes" >&6; } fi cairo_cv_backend_directfb_use=$use_directfb + cairo_cv_backend_directfb_cache_version=3 cairo_cv_backend_directfb_requires=$directfb_REQUIRES cairo_cv_backend_directfb_cflags=$directfb_CFLAGS cairo_cv_backend_directfb_libs=$directfb_LIBS @@ -25744,7 +27447,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_directfb_use" >&5 echo "${ECHO_T}$cairo_cv_backend_directfb_use" >&6; } - # split the backend spec into its components use_directfb=$cairo_cv_backend_directfb_use directfb_BASE=$cairo_cv_backend_directfb_base @@ -25861,6 +27563,10 @@ fi if test "x$enable_ft" = xno; then use_ft="no (disabled, use --enable-freetype to enable)" else + if test "x$cairo_cv_backend_ft_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_ft_use + fi { echo "$as_me:$LINENO: checking for cairo's FreeType font backend" >&5 echo $ECHO_N "checking for cairo's FreeType font backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_ft_use+set}" = set; then @@ -25868,11 +27574,11 @@ if test "${cairo_cv_backend_ft_use+set}" = set; then else echo use_ft=yes - ft_REQUIRES="" - ft_CFLAGS="" - ft_LIBS="" - ft_NONPKGCONFIG_CFLAGS="" - ft_NONPKGCONFIG_LIBS="" + ft_REQUIRES=$ac_env_ft_REQUIRES_value + ft_CFLAGS=$ac_env_ft_CFLAGS_value + ft_LIBS=$ac_env_ft_LIBS_value + ft_NONPKGCONFIG_CFLAGS=$ac_env_ft_NONPKGCONFIG_CFLAGS_value + ft_NONPKGCONFIG_LIBS=$ac_env_ft_NONPKGCONFIG_LIBS_value ft_BASE=cairo ft_REQUIRES="fontconfig" @@ -26209,6 +27915,7 @@ echo "${ECHO_T}$FREETYPE_VERSION - OK" >&6; } ft_LIBS="$FREETYPE_LIBS $FONTCONFIG_LIBS" cairo_cv_backend_ft_use=$use_ft + cairo_cv_backend_ft_cache_version=3 cairo_cv_backend_ft_requires=$ft_REQUIRES cairo_cv_backend_ft_cflags=$ft_CFLAGS cairo_cv_backend_ft_libs=$ft_LIBS @@ -26221,7 +27928,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_ft_use" >&5 echo "${ECHO_T}$cairo_cv_backend_ft_use" >&6; } - # split the backend spec into its components use_ft=$cairo_cv_backend_ft_use ft_BASE=$cairo_cv_backend_ft_base @@ -26307,8 +28013,6 @@ fi -have_ft_load_sfnt_table=no - if test "x$use_ft" = "xyes"; then temp_save_libs="$LIBS" temp_save_cflags="$CFLAGS" @@ -26457,109 +28161,9 @@ cat >>confdefs.h <<_ACEOF _ACEOF - { echo "$as_me:$LINENO: checking for FT_Load_Sfnt_Table" >&5 -echo $ECHO_N "checking for FT_Load_Sfnt_Table... $ECHO_C" >&6; } -if test "${ac_cv_func_FT_Load_Sfnt_Table+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define FT_Load_Sfnt_Table to an innocuous variant, in case <limits.h> declares FT_Load_Sfnt_Table. - For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define FT_Load_Sfnt_Table innocuous_FT_Load_Sfnt_Table - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char FT_Load_Sfnt_Table (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - -#undef FT_Load_Sfnt_Table - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char FT_Load_Sfnt_Table (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_FT_Load_Sfnt_Table || defined __stub___FT_Load_Sfnt_Table -choke me -#endif - -int -main () -{ -return FT_Load_Sfnt_Table (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_FT_Load_Sfnt_Table=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_FT_Load_Sfnt_Table=no -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_FT_Load_Sfnt_Table" >&5 -echo "${ECHO_T}$ac_cv_func_FT_Load_Sfnt_Table" >&6; } -if test $ac_cv_func_FT_Load_Sfnt_Table = yes; then - have_ft_load_sfnt_table=yes -fi -for ac_func in FT_GlyphSlot_Embolden +for ac_func in FT_GlyphSlot_Embolden FT_Load_Sfnt_Table do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -26867,6 +28471,10 @@ fi if test "x$enable_ps" = xno; then use_ps="no (disabled, use --enable-ps to enable)" else + if test "x$cairo_cv_backend_ps_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_ps_use + fi { echo "$as_me:$LINENO: checking for cairo's PostScript backend" >&5 echo $ECHO_N "checking for cairo's PostScript backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_ps_use+set}" = set; then @@ -26874,14 +28482,19 @@ if test "${cairo_cv_backend_ps_use+set}" = set; then else echo use_ps=yes - ps_REQUIRES="" - ps_CFLAGS="" - ps_LIBS="" - ps_NONPKGCONFIG_CFLAGS="" - ps_NONPKGCONFIG_LIBS="" + ps_REQUIRES=$ac_env_ps_REQUIRES_value + ps_CFLAGS=$ac_env_ps_CFLAGS_value + ps_LIBS=$ac_env_ps_LIBS_value + ps_NONPKGCONFIG_CFLAGS=$ac_env_ps_NONPKGCONFIG_CFLAGS_value + ps_NONPKGCONFIG_LIBS=$ac_env_ps_NONPKGCONFIG_LIBS_value ps_BASE=cairo + # The postscript backend requires zlib. + use_ps=$have_libz + ps_NONPKGCONFIG_LIBS=-lz + cairo_cv_backend_ps_use=$use_ps + cairo_cv_backend_ps_cache_version=3 cairo_cv_backend_ps_requires=$ps_REQUIRES cairo_cv_backend_ps_cflags=$ps_CFLAGS cairo_cv_backend_ps_libs=$ps_LIBS @@ -26894,7 +28507,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_ps_use" >&5 echo "${ECHO_T}$cairo_cv_backend_ps_use" >&6; } - # split the backend spec into its components use_ps=$cairo_cv_backend_ps_use ps_BASE=$cairo_cv_backend_ps_base @@ -26991,6 +28603,10 @@ fi if test "x$enable_pdf" = xno; then use_pdf="no (disabled, use --enable-pdf to enable)" else + if test "x$cairo_cv_backend_pdf_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_pdf_use + fi { echo "$as_me:$LINENO: checking for cairo's PDF backend" >&5 echo $ECHO_N "checking for cairo's PDF backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_pdf_use+set}" = set; then @@ -26998,14 +28614,19 @@ if test "${cairo_cv_backend_pdf_use+set}" = set; then else echo use_pdf=yes - pdf_REQUIRES="" - pdf_CFLAGS="" - pdf_LIBS="" - pdf_NONPKGCONFIG_CFLAGS="" - pdf_NONPKGCONFIG_LIBS="" + pdf_REQUIRES=$ac_env_pdf_REQUIRES_value + pdf_CFLAGS=$ac_env_pdf_CFLAGS_value + pdf_LIBS=$ac_env_pdf_LIBS_value + pdf_NONPKGCONFIG_CFLAGS=$ac_env_pdf_NONPKGCONFIG_CFLAGS_value + pdf_NONPKGCONFIG_LIBS=$ac_env_pdf_NONPKGCONFIG_LIBS_value pdf_BASE=cairo + # The pdf backend requires zlib. + use_pdf=$have_libz + pdf_NONPKGCONFIG_LIBS=-lz + cairo_cv_backend_pdf_use=$use_pdf + cairo_cv_backend_pdf_cache_version=3 cairo_cv_backend_pdf_requires=$pdf_REQUIRES cairo_cv_backend_pdf_cflags=$pdf_CFLAGS cairo_cv_backend_pdf_libs=$pdf_LIBS @@ -27018,7 +28639,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_pdf_use" >&5 echo "${ECHO_T}$cairo_cv_backend_pdf_use" >&6; } - # split the backend spec into its components use_pdf=$cairo_cv_backend_pdf_use pdf_BASE=$cairo_cv_backend_pdf_base @@ -27222,6 +28842,10 @@ fi if test "x$enable_svg" = xno; then use_svg="no (disabled, use --enable-svg to enable)" else + if test "x$cairo_cv_backend_svg_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_svg_use + fi { echo "$as_me:$LINENO: checking for cairo's SVG backend" >&5 echo $ECHO_N "checking for cairo's SVG backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_svg_use+set}" = set; then @@ -27229,14 +28853,19 @@ if test "${cairo_cv_backend_svg_use+set}" = set; then else echo use_svg=yes - svg_REQUIRES="" - svg_CFLAGS="" - svg_LIBS="" - svg_NONPKGCONFIG_CFLAGS="" - svg_NONPKGCONFIG_LIBS="" + svg_REQUIRES=$ac_env_svg_REQUIRES_value + svg_CFLAGS=$ac_env_svg_CFLAGS_value + svg_LIBS=$ac_env_svg_LIBS_value + svg_NONPKGCONFIG_CFLAGS=$ac_env_svg_NONPKGCONFIG_CFLAGS_value + svg_NONPKGCONFIG_LIBS=$ac_env_svg_NONPKGCONFIG_LIBS_value svg_BASE=cairo + if test "x$use_png" != "xyes"; then + use_svg="no (requires --enable-png)" + fi + cairo_cv_backend_svg_use=$use_svg + cairo_cv_backend_svg_cache_version=3 cairo_cv_backend_svg_requires=$svg_REQUIRES cairo_cv_backend_svg_cflags=$svg_CFLAGS cairo_cv_backend_svg_libs=$svg_LIBS @@ -27249,7 +28878,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_svg_use" >&5 echo "${ECHO_T}$cairo_cv_backend_svg_use" >&6; } - # split the backend spec into its components use_svg=$cairo_cv_backend_svg_use svg_BASE=$cairo_cv_backend_svg_base @@ -27442,6 +29070,10 @@ fi if test "x$enable_atsui" = xno; then use_atsui="no (disabled, use --enable-atsui to enable)" else + if test "x$cairo_cv_backend_atsui_cache_version" != "x3"; then + # cached results for this backend (if any) are stale. force rechecking. + unset cairo_cv_backend_atsui_use + fi { echo "$as_me:$LINENO: checking for cairo's ATSUI font backend" >&5 echo $ECHO_N "checking for cairo's ATSUI font backend... $ECHO_C" >&6; } if test "${cairo_cv_backend_atsui_use+set}" = set; then @@ -27449,11 +29081,11 @@ if test "${cairo_cv_backend_atsui_use+set}" = set; then else echo use_atsui=yes - atsui_REQUIRES="" - atsui_CFLAGS="" - atsui_LIBS="" - atsui_NONPKGCONFIG_CFLAGS="" - atsui_NONPKGCONFIG_LIBS="" + atsui_REQUIRES=$ac_env_atsui_REQUIRES_value + atsui_CFLAGS=$ac_env_atsui_CFLAGS_value + atsui_LIBS=$ac_env_atsui_LIBS_value + atsui_NONPKGCONFIG_CFLAGS=$ac_env_atsui_NONPKGCONFIG_CFLAGS_value + atsui_NONPKGCONFIG_LIBS=$ac_env_atsui_NONPKGCONFIG_LIBS_value atsui_BASE=cairo if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then @@ -27619,6 +29251,7 @@ fi cairo_cv_backend_atsui_use=$use_atsui + cairo_cv_backend_atsui_cache_version=3 cairo_cv_backend_atsui_requires=$atsui_REQUIRES cairo_cv_backend_atsui_cflags=$atsui_CFLAGS cairo_cv_backend_atsui_libs=$atsui_LIBS @@ -27631,7 +29264,6 @@ fi { echo "$as_me:$LINENO: result: $cairo_cv_backend_atsui_use" >&5 echo "${ECHO_T}$cairo_cv_backend_atsui_use" >&6; } - # split the backend spec into its components use_atsui=$cairo_cv_backend_atsui_use atsui_BASE=$cairo_cv_backend_atsui_base @@ -27717,10 +29349,85 @@ fi +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_unset $ac_var ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 +echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + + -for ac_header in stdint.h inttypes.h sys/int_types.h +for ac_header in stdint.h signal.h inttypes.h sys/int_types.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then @@ -28047,22 +29754,166 @@ fi -WARN_CFLAGS="" +{ echo "$as_me:$LINENO: checking for supported warning flags" >&5 +echo $ECHO_N "checking for supported warning flags... $ECHO_C" >&6; } +if test "${cairo_cv_warn_cflags+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + echo + WARN_CFLAGS="" + + # some warnings are not supported by all versions of gcc + MAYBE_WARN="-Wall -Wsign-compare -Werror-implicit-function-declaration \ + -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ + -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ + -Wpacked -Wswitch-enum -Wmissing-format-attribute \ + -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \ + -Wdeclaration-after-statement -Wold-style-definition" + + for W in $MAYBE_WARN; do + + { echo "$as_me:$LINENO: checking whether $CC supports $W" >&5 +echo $ECHO_N "checking whether $CC supports $W... $ECHO_C" >&6; } + + cairo_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $W" -if test "x$GCC" = "xyes"; then - WARN_CFLAGS="-Wall -Wsign-compare -Werror-implicit-function-declaration \ - -Wpointer-arith -Wwrite-strings -Wswitch-enum \ - -Wpacked -Wmissing-format-attribute -Wstrict-prototypes \ - -Wmissing-prototypes -Wmissing-declarations \ - -Wnested-externs -fno-strict-aliasing" + cat >conftest.$ac_ext <<_ACEOF + +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cairo_cc_flag=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cairo_cc_flag=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$cairo_save_CFLAGS" + + if test "x$cairo_cc_flag" = "xyes"; then + WARN_CFLAGS="$WARN_CFLAGS $W" + else + : + fi + { echo "$as_me:$LINENO: result: $cairo_cc_flag" >&5 +echo "${ECHO_T}$cairo_cc_flag" >&6; } + + done + cairo_cv_warn_cflags=$WARN_CFLAGS + + { echo "$as_me:$LINENO: checking which warning flags were supported" >&5 +echo $ECHO_N "checking which warning flags were supported... $ECHO_C" >&6; } +fi +{ echo "$as_me:$LINENO: result: $cairo_cv_warn_cflags" >&5 +echo "${ECHO_T}$cairo_cv_warn_cflags" >&6; } +WARN_CFLAGS=$cairo_cv_warn_cflags CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS" + { echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5 +echo $ECHO_N "checking whether $CC supports -fno-strict-aliasing... $ECHO_C" >&6; } + + cairo_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-strict-aliasing" + + cat >conftest.$ac_ext <<_ACEOF + +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cairo_cc_flag=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cairo_cc_flag=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$cairo_save_CFLAGS" + + if test "x$cairo_cc_flag" = "xyes"; then + CAIRO_CFLAGS="$CAIRO_CFLAGS -fno-strict-aliasing" + else + : + fi + { echo "$as_me:$LINENO: result: $cairo_cc_flag" >&5 +echo "${ECHO_T}$cairo_cc_flag" >&6; } + + + @@ -29074,7 +30925,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by cairo $as_me 1.2.2, which was +This file was extended by cairo $as_me 1.2.4, which was generated by GNU Autoconf 2.60. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -29127,7 +30978,7 @@ Report bugs to <bug-autoconf@gnu.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -cairo config.status 1.2.2 +cairo config.status 1.2.4 configured by $0, generated by GNU Autoconf 2.60, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" @@ -29470,6 +31321,8 @@ FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim +xlib_CFLAGS!$xlib_CFLAGS$ac_delim +xlib_LIBS!$xlib_LIBS$ac_delim XMKMF!$XMKMF$ac_delim X_CFLAGS!$X_CFLAGS$ac_delim X_PRE_LIBS!$X_PRE_LIBS$ac_delim @@ -29493,6 +31346,7 @@ CAIRO_HAS_WIN32_FONT_TRUE!$CAIRO_HAS_WIN32_FONT_TRUE$ac_delim CAIRO_HAS_WIN32_FONT_FALSE!$CAIRO_HAS_WIN32_FONT_FALSE$ac_delim CAIRO_HAS_BEOS_SURFACE_TRUE!$CAIRO_HAS_BEOS_SURFACE_TRUE$ac_delim CAIRO_HAS_BEOS_SURFACE_FALSE!$CAIRO_HAS_BEOS_SURFACE_FALSE$ac_delim +png_REQUIRES!$png_REQUIRES$ac_delim png_CFLAGS!$png_CFLAGS$ac_delim png_LIBS!$png_LIBS$ac_delim CAIRO_HAS_PNG_FUNCTIONS_TRUE!$CAIRO_HAS_PNG_FUNCTIONS_TRUE$ac_delim @@ -29552,9 +31406,6 @@ WARN_CFLAGS!$WARN_CFLAGS$ac_delim CAIRO_REQUIRES!$CAIRO_REQUIRES$ac_delim CAIRO_NONPKGCONFIG_CFLAGS!$CAIRO_NONPKGCONFIG_CFLAGS$ac_delim CAIRO_NONPKGCONFIG_LIBS!$CAIRO_NONPKGCONFIG_LIBS$ac_delim -CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim -CAIRO_LIBS!$CAIRO_LIBS$ac_delim -HTML_DIR!$HTML_DIR$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then @@ -29596,6 +31447,9 @@ _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF +CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim +CAIRO_LIBS!$CAIRO_LIBS$ac_delim +HTML_DIR!$HTML_DIR$ac_delim ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim @@ -29612,7 +31466,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |