diff --git a/mozilla/configure b/mozilla/configure index 61caeeb7b7b..3c4c957b70d 100755 --- a/mozilla/configure +++ b/mozilla/configure @@ -1084,7 +1084,7 @@ LIBGNOME_VERSION=2.0 MSMANIFEST_TOOL= MISSING_X= -for ac_prog in gawk mawk nawk awk +for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -1924,57 +1924,6 @@ else fi fi -for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat > conftest.$ac_ext < -$ac_declaration -int main() { -exit (42); -; return 0; } -EOF -if { (eval echo configure:1946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - continue -fi -rm -f conftest* - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - break -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -done -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - - case "$build:$target" in powerpc-apple-darwin8*:i?86-apple-darwin*) @@ -1988,7 +1937,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1992: checking for $ac_word" >&5 +echo "configure:1941: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2023,7 +1972,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2027: checking for $ac_word" >&5 +echo "configure:1976: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2058,7 +2007,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2062: checking for $ac_word" >&5 +echo "configure:2011: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2099,7 +2048,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2103: checking for $ac_word" >&5 +echo "configure:2052: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2134,7 +2083,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2138: checking for $ac_word" >&5 +echo "configure:2087: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2169,7 +2118,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2173: checking for $ac_word" >&5 +echo "configure:2122: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2207,7 +2156,7 @@ else # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2211: checking for $ac_word" >&5 +echo "configure:2160: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2237,7 +2186,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2241: checking for $ac_word" >&5 +echo "configure:2190: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2288,7 +2237,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2292: checking for $ac_word" >&5 +echo "configure:2241: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2320,7 +2269,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2324: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:2273: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -2331,12 +2280,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 2335 "configure" +#line 2284 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -2362,12 +2311,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:2366: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2315: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:2371: checking whether we are using GNU C" >&5 +echo "configure:2320: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2376,7 +2325,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -2395,7 +2344,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:2399: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:2348: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2431,7 +2380,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2435: checking for $ac_word" >&5 +echo "configure:2384: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2463,7 +2412,7 @@ test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2467: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +echo "configure:2416: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -2474,12 +2423,12 @@ cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF -#line 2478 "configure" +#line 2427 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -2505,12 +2454,12 @@ if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:2509: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2458: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:2514: checking whether we are using GNU C++" >&5 +echo "configure:2463: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2519,7 +2468,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no @@ -2538,7 +2487,7 @@ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:2542: checking whether ${CXX-g++} accepts -g" >&5 +echo "configure:2491: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2569,61 +2518,10 @@ else fi fi -for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat > conftest.$ac_ext < -$ac_declaration -int main() { -exit (42); -; return 0; } -EOF -if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - continue -fi -rm -f conftest* - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - break -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -done -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - - # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2627: checking for $ac_word" >&5 +echo "configure:2525: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2655,7 +2553,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2659: checking for $ac_word" >&5 +echo "configure:2557: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2696,7 +2594,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2700: checking for $ac_word" >&5 +echo "configure:2598: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2731,7 +2629,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2735: checking for $ac_word" >&5 +echo "configure:2633: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2766,7 +2664,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2770: checking for $ac_word" >&5 +echo "configure:2668: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2801,7 +2699,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2805: checking for $ac_word" >&5 +echo "configure:2703: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2890,7 +2788,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2894: checking for $ac_word" >&5 +echo "configure:2792: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MIDL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2932,14 +2830,14 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext < int main() { printf("Hello World\n"); ; return 0; } EOF -if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -2957,14 +2855,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { unsigned *test = new unsigned(42); ; return 0; } EOF -if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3051,7 +2949,7 @@ EOF _MIDL_REV_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $3 }'` # Add flags if necessary echo $ac_n "checking for midl flags""... $ac_c" 1>&6 -echo "configure:3055: checking for midl flags" >&5 +echo "configure:2953: checking for midl flags" >&5 if test \( "$_MIDL_MAJOR_VERSION" -gt "6" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" -gt "0" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" = "00" -a "$_MIDL_REV_VERSION" -gt "359" \); then # Starting with MIDL version 6.0.359, the MIDL compiler # generates /Oicf /robust stubs by default, which is not @@ -3073,9 +2971,9 @@ echo "configure:3055: checking for midl flags" >&5 _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'` _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'` echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6 -echo "configure:3077: checking for w32api version >= $W32API_VERSION" >&5 +echo "configure:2975: checking for w32api version >= $W32API_VERSION" >&5 cat > conftest.$ac_ext < int main() { @@ -3087,7 +2985,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* res=yes else @@ -3103,7 +3001,7 @@ rm -f conftest* fi # Check windres version echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6 -echo "configure:3107: checking for windres version >= $WINDRES_VERSION" >&5 +echo "configure:3005: checking for windres version >= $WINDRES_VERSION" >&5 _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'` echo "$ac_t""$_WINDRES_VERSION" 1>&6 _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'` @@ -3130,7 +3028,7 @@ if test -n "$_WIN32_MSVC"; then SKIP_COMPILER_CHECKS=1 SKIP_LIBRARY_CHECKS=1 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:3134: checking how to run the C preprocessor" >&5 +echo "configure:3032: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -3145,13 +3043,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3162,13 +3060,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3179,13 +3077,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3213,17 +3111,17 @@ for ac_hdr in mmintrin.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3217: checking for $ac_hdr" >&5 +echo "configure:3115: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3254,10 +3152,10 @@ fi if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then if test "x$CC" != xcc; then echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 -echo "configure:3258: checking whether $CC and cc understand -c and -o together" >&5 +echo "configure:3156: checking whether $CC and cc understand -c and -o together" >&5 else echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 -echo "configure:3261: checking whether cc understands -c and -o together" >&5 +echo "configure:3159: checking whether cc understands -c and -o together" >&5 fi set dummy $CC; ac_cc="`echo $2 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" @@ -3269,16 +3167,16 @@ else # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' -if { (eval echo configure:3273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && - test -f conftest.o && { (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; +if { (eval echo configure:3171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && + test -f conftest.o && { (eval echo configure:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. - if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:3279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then + if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:3177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then ac_try='cc -c conftest.c -o conftest.o 1>&5' - if { (eval echo configure:3281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && - test -f conftest.o && { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; + if { (eval echo configure:3179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && + test -f conftest.o && { (eval echo configure:3180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then # cc works too. : @@ -3314,7 +3212,7 @@ fi fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:3318: checking how to run the C preprocessor" >&5 +echo "configure:3216: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -3329,13 +3227,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3346,13 +3244,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3363,13 +3261,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3394,7 +3292,7 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:3398: checking how to run the C++ preprocessor" >&5 +echo "configure:3296: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3407,12 +3305,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3459,7 +3357,7 @@ fi # COMPILE_ENVIRONMENT # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:3463: checking for a BSD compatible install" >&5 +echo "configure:3361: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3512,7 +3410,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:3516: checking whether ln -s works" >&5 +echo "configure:3414: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3537,7 +3435,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3541: checking for $ac_word" >&5 +echo "configure:3439: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3577,7 +3475,7 @@ if test -z "$PERL" || test "$PERL" = ":"; then fi echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6 -echo "configure:3581: checking for minimum required perl version >= $PERL_VERSION" >&5 +echo "configure:3479: checking for minimum required perl version >= $PERL_VERSION" >&5 _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5` _perl_res=$? echo "$ac_t""$_perl_version" 1>&6 @@ -3587,7 +3485,7 @@ if test "$_perl_res" != 0; then fi echo $ac_n "checking for full perl installation""... $ac_c" 1>&6 -echo "configure:3591: checking for full perl installation" >&5 +echo "configure:3489: checking for full perl installation" >&5 _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5` _perl_res=$? if test "$_perl_res" != 0; then @@ -3600,7 +3498,7 @@ fi # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3604: checking for $ac_word" >&5 +echo "configure:3502: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3636,7 +3534,7 @@ fi # Extract the first word of "whoami", so it can be a program name with args. set dummy whoami; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3640: checking for $ac_word" >&5 +echo "configure:3538: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3672,7 +3570,7 @@ fi # Extract the first word of "autoconf", so it can be a program name with args. set dummy autoconf; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3676: checking for $ac_word" >&5 +echo "configure:3574: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3708,7 +3606,7 @@ fi # Extract the first word of "unzip", so it can be a program name with args. set dummy unzip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3712: checking for $ac_word" >&5 +echo "configure:3610: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3746,7 +3644,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3750: checking for $ac_word" >&5 +echo "configure:3648: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3787,7 +3685,7 @@ fi # Extract the first word of "makedepend", so it can be a program name with args. set dummy makedepend; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3791: checking for $ac_word" >&5 +echo "configure:3689: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3822,7 +3720,7 @@ fi # Extract the first word of "xargs", so it can be a program name with args. set dummy xargs; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3826: checking for $ac_word" >&5 +echo "configure:3724: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XARGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3885,7 +3783,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3889: checking for $ac_word" >&5 +echo "configure:3787: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PBBUILD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3935,7 +3833,7 @@ done # Extract the first word of "sdp", so it can be a program name with args. set dummy sdp; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3939: checking for $ac_word" >&5 +echo "configure:3837: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_SDP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4031,7 +3929,7 @@ tools are selected during the Xcode/Developer Tools installation." 1>&2; exit 1; fi echo $ac_n "checking for valid compiler/Mac OS X SDK combination""... $ac_c" 1>&6 -echo "configure:4035: checking for valid compiler/Mac OS X SDK combination" >&5 +echo "configure:3933: checking for valid compiler/Mac OS X SDK combination" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' @@ -4040,7 +3938,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { return 0; } @@ -4048,7 +3946,7 @@ int main() { result=yes ; return 0; } EOF -if { (eval echo configure:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* result=no else @@ -4073,7 +3971,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4077: checking for $ac_word" >&5 +echo "configure:3975: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4116,7 +4014,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4120: checking for $ac_word" >&5 +echo "configure:4018: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4184,7 +4082,7 @@ if test "$COMPILE_ENVIRONMENT"; then # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:4188: checking for X" >&5 +echo "configure:4086: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then @@ -4246,12 +4144,12 @@ if test "$ac_x_includes" = NO; then # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4320,14 +4218,14 @@ if test "$ac_x_libraries" = NO; then ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -4433,17 +4331,17 @@ else case "`(uname -sr) 2>/dev/null`" in "SunOS 5"*) echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 -echo "configure:4437: checking whether -R must be followed by a space" >&5 +echo "configure:4335: checking whether -R must be followed by a space" >&5 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_nospace=yes else @@ -4459,14 +4357,14 @@ rm -f conftest* else LIBS="$ac_xsave_LIBS -R $x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_space=yes else @@ -4498,7 +4396,7 @@ rm -f conftest* # libraries were built with DECnet support. And karl@cs.umb.edu says # the Alpha needs dnet_stub (dnet does not exist). echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 -echo "configure:4502: checking for dnet_ntoa in -ldnet" >&5 +echo "configure:4400: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4506,7 +4404,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4542,7 +4440,7 @@ fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 -echo "configure:4546: checking for dnet_ntoa in -ldnet_stub" >&5 +echo "configure:4444: checking for dnet_ntoa in -ldnet_stub" >&5 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4550,7 +4448,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4593,12 +4491,12 @@ fi # The nsl library prevents programs from opening the X display # on Irix 5.2, according to dickey@clark.net. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:4597: checking for gethostbyname" >&5 +echo "configure:4495: checking for gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else @@ -4645,7 +4543,7 @@ fi if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:4649: checking for gethostbyname in -lnsl" >&5 +echo "configure:4547: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4653,7 +4551,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4697,12 +4595,12 @@ fi # -lsocket must be given before -lnsl if both are needed. # We assume that if connect needs -lnsl, so does gethostbyname. echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:4701: checking for connect" >&5 +echo "configure:4599: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else @@ -4749,7 +4647,7 @@ fi if test $ac_cv_func_connect = no; then echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:4753: checking for connect in -lsocket" >&5 +echo "configure:4651: checking for connect in -lsocket" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4757,7 +4655,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4795,12 +4693,12 @@ fi # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. echo $ac_n "checking for remove""... $ac_c" 1>&6 -echo "configure:4799: checking for remove" >&5 +echo "configure:4697: checking for remove" >&5 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_remove=yes" else @@ -4847,7 +4745,7 @@ fi if test $ac_cv_func_remove = no; then echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 -echo "configure:4851: checking for remove in -lposix" >&5 +echo "configure:4749: checking for remove in -lposix" >&5 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4855,7 +4753,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4893,12 +4791,12 @@ fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo $ac_n "checking for shmat""... $ac_c" 1>&6 -echo "configure:4897: checking for shmat" >&5 +echo "configure:4795: checking for shmat" >&5 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shmat=yes" else @@ -4945,7 +4843,7 @@ fi if test $ac_cv_func_shmat = no; then echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 -echo "configure:4949: checking for shmat in -lipc" >&5 +echo "configure:4847: checking for shmat in -lipc" >&5 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4953,7 +4851,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lipc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5000,7 +4898,7 @@ fi # libraries we check for below, so use a different variable. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 -echo "configure:5004: checking for IceConnectionNumber in -lICE" >&5 +echo "configure:4902: checking for IceConnectionNumber in -lICE" >&5 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5008,7 +4906,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5454,7 +5352,7 @@ MKSHLIB_UNFORCE_ALL= if test "$COMPILE_ENVIRONMENT"; then if test "$GNU_CC"; then echo $ac_n "checking whether ld has archive extraction flags""... $ac_c" 1>&6 -echo "configure:5458: checking whether ld has archive extraction flags" >&5 +echo "configure:5356: checking whether ld has archive extraction flags" >&5 if eval "test \"`echo '$''{'ac_cv_mkshlib_force_and_unforce'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5471,14 +5369,14 @@ LOOP_INPUT LDFLAGS=$force LIBS=$unforce cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_mkshlib_force_and_unforce=$line; break else @@ -5513,17 +5411,17 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for 64-bit OS""... $ac_c" 1>&6 -echo "configure:5517: checking for 64-bit OS" >&5 +echo "configure:5415: checking for 64-bit OS" >&5 if test "$cross_compiling" = yes; then result="maybe" else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then result="yes" else @@ -5676,9 +5574,9 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for VisualAge C++ compiler version >= 5.0.2.0""... $ac_c" 1>&6 -echo "configure:5680: checking for VisualAge C++ compiler version >= 5.0.2.0" >&5 +echo "configure:5578: checking for VisualAge C++ compiler version >= 5.0.2.0" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _BAD_COMPILER= else @@ -5725,17 +5623,17 @@ cross_compiling=$ac_cv_prog_cxx_cross do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5729: checking for $ac_hdr" >&5 +echo "configure:5627: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5777,7 +5675,7 @@ EOF LIBS="$LIBS -lbe" if test "$COMPILE_ENVIRONMENT"; then echo $ac_n "checking for main in -lbind""... $ac_c" 1>&6 -echo "configure:5781: checking for main in -lbind" >&5 +echo "configure:5679: checking for main in -lbind" >&5 ac_lib_var=`echo bind'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5785,14 +5683,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lbind $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5813,7 +5711,7 @@ else fi echo $ac_n "checking for main in -lzeta""... $ac_c" 1>&6 -echo "configure:5817: checking for main in -lzeta" >&5 +echo "configure:5715: checking for main in -lzeta" >&5 ac_lib_var=`echo zeta'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5821,14 +5719,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lzeta $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5892,18 +5790,18 @@ fi MACOSX=1 echo $ac_n "checking for -dead_strip option to ld""... $ac_c" 1>&6 -echo "configure:5896: checking for -dead_strip option to ld" >&5 +echo "configure:5794: checking for -dead_strip option to ld" >&5 _SAVE_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-dead_strip" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* _HAVE_DEAD_STRIP=1 else @@ -6771,14 +6669,14 @@ EOF _SAVE_LDFLAGS=$LDFLAGS LDFLAGS="-M /usr/lib/ld/map.noexstk $LDFLAGS" cat > conftest.$ac_ext < int main() { printf("Hello World\n"); ; return 0; } EOF -if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 @@ -6806,7 +6704,7 @@ rm -f conftest* CC_VERSION=`$CC -V 2>&1 | grep '^cc:' 2>/dev/null | $AWK -F\: '{ print $2 }'` CXX_VERSION=`$CXX -V 2>&1 | grep '^CC:' 2>/dev/null | $AWK -F\: '{ print $2 }'` echo $ac_n "checking for Forte compiler version >= WS6U2""... $ac_c" 1>&6 -echo "configure:6810: checking for Forte compiler version >= WS6U2" >&5 +echo "configure:6708: checking for Forte compiler version >= WS6U2" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -6816,7 +6714,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _BAD_COMPILER= else @@ -6954,7 +6852,7 @@ case "$target" in ;; *-darwin*) echo $ac_n "checking for -exported_symbols_list option to ld""... $ac_c" 1>&6 -echo "configure:6958: checking for -exported_symbols_list option to ld" >&5 +echo "configure:6856: checking for -exported_symbols_list option to ld" >&5 if eval "test \"`echo '$''{'ac_cv_exported_symbols_list'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6994,12 +6892,12 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:6998: checking for ANSI C header files" >&5 +echo "configure:6896: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7007,7 +6905,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7024,7 +6922,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -7042,7 +6940,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -7063,7 +6961,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -7074,7 +6972,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -7098,12 +6996,12 @@ EOF fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:7102: checking for working const" >&5 +echo "configure:7000: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -7173,12 +7071,12 @@ EOF fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:7177: checking for mode_t" >&5 +echo "configure:7075: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -7206,12 +7104,12 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:7210: checking for off_t" >&5 +echo "configure:7108: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -7239,12 +7137,12 @@ EOF fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:7243: checking for pid_t" >&5 +echo "configure:7141: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -7272,12 +7170,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:7276: checking for size_t" >&5 +echo "configure:7174: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -7305,12 +7203,12 @@ EOF fi echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:7309: checking for uid_t in sys/types.h" >&5 +echo "configure:7207: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -7339,12 +7237,12 @@ EOF fi echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 -echo "configure:7343: checking for st_blksize in struct stat" >&5 +echo "configure:7241: checking for st_blksize in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7352,7 +7250,7 @@ int main() { struct stat s; s.st_blksize; ; return 0; } EOF -if { (eval echo configure:7356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_st_blksize=yes else @@ -7373,12 +7271,12 @@ EOF fi echo $ac_n "checking for siginfo_t""... $ac_c" 1>&6 -echo "configure:7377: checking for siginfo_t" >&5 +echo "configure:7275: checking for siginfo_t" >&5 if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -7386,7 +7284,7 @@ int main() { siginfo_t* info; ; return 0; } EOF -if { (eval echo configure:7390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_siginfo_t=true else @@ -7420,12 +7318,12 @@ EOF fi echo $ac_n "checking for int16_t""... $ac_c" 1>&6 -echo "configure:7424: checking for int16_t" >&5 +echo "configure:7322: checking for int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7433,7 +7331,7 @@ int main() { int16_t foo = 0; ; return 0; } EOF -if { (eval echo configure:7437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_int16_t=true else @@ -7455,12 +7353,12 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for int32_t""... $ac_c" 1>&6 -echo "configure:7459: checking for int32_t" >&5 +echo "configure:7357: checking for int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7468,7 +7366,7 @@ int main() { int32_t foo = 0; ; return 0; } EOF -if { (eval echo configure:7472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_int32_t=true else @@ -7490,12 +7388,12 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for int64_t""... $ac_c" 1>&6 -echo "configure:7494: checking for int64_t" >&5 +echo "configure:7392: checking for int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7503,7 +7401,7 @@ int main() { int64_t foo = 0; ; return 0; } EOF -if { (eval echo configure:7507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_int64_t=true else @@ -7525,12 +7423,12 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for int64""... $ac_c" 1>&6 -echo "configure:7529: checking for int64" >&5 +echo "configure:7427: checking for int64" >&5 if eval "test \"`echo '$''{'ac_cv_int64'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7538,7 +7436,7 @@ int main() { int64 foo = 0; ; return 0; } EOF -if { (eval echo configure:7542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_int64=true else @@ -7560,12 +7458,12 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for uint""... $ac_c" 1>&6 -echo "configure:7564: checking for uint" >&5 +echo "configure:7462: checking for uint" >&5 if eval "test \"`echo '$''{'ac_cv_uint'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7573,7 +7471,7 @@ int main() { uint foo = 0; ; return 0; } EOF -if { (eval echo configure:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_uint=true else @@ -7595,12 +7493,12 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for uint_t""... $ac_c" 1>&6 -echo "configure:7599: checking for uint_t" >&5 +echo "configure:7497: checking for uint_t" >&5 if eval "test \"`echo '$''{'ac_cv_uint_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7608,7 +7506,7 @@ int main() { uint_t foo = 0; ; return 0; } EOF -if { (eval echo configure:7612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_uint_t=true else @@ -7630,12 +7528,12 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 -echo "configure:7634: checking for uint16_t" >&5 +echo "configure:7532: checking for uint16_t" >&5 if eval "test \"`echo '$''{'ac_cv_uint16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -7643,7 +7541,7 @@ int main() { uint16_t foo = 0; ; return 0; } EOF -if { (eval echo configure:7647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_uint16_t=true else @@ -7674,12 +7572,12 @@ cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for uname.domainname""... $ac_c" 1>&6 -echo "configure:7678: checking for uname.domainname" >&5 +echo "configure:7576: checking for uname.domainname" >&5 if eval "test \"`echo '$''{'ac_cv_have_uname_domainname_field'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -7687,7 +7585,7 @@ int main() { (void)uname(res); if (res != 0) { domain = res->domainname; } ; return 0; } EOF -if { (eval echo configure:7691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_uname_domainname_field=true else @@ -7711,12 +7609,12 @@ else fi echo $ac_n "checking for uname.__domainname""... $ac_c" 1>&6 -echo "configure:7715: checking for uname.__domainname" >&5 +echo "configure:7613: checking for uname.__domainname" >&5 if eval "test \"`echo '$''{'ac_cv_have_uname_us_domainname_field'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -7724,7 +7622,7 @@ int main() { (void)uname(res); if (res != 0) { domain = res->__domainname; } ; return 0; } EOF -if { (eval echo configure:7728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_uname_us_domainname_field=true else @@ -7757,7 +7655,7 @@ cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for usable wchar_t (2 bytes, unsigned)""... $ac_c" 1>&6 -echo "configure:7761: checking for usable wchar_t (2 bytes, unsigned)" >&5 +echo "configure:7659: checking for usable wchar_t (2 bytes, unsigned)" >&5 if eval "test \"`echo '$''{'ac_cv_have_usable_wchar'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7765,14 +7663,14 @@ else ac_cv_have_usable_wchar="maybe" else cat > conftest.$ac_ext < int main () { return (sizeof(wchar_t) != 2) || (wchar_t)-1 < (wchar_t) 0 ; } EOF -if { (eval echo configure:7776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_have_usable_wchar="yes" else @@ -7807,7 +7705,7 @@ cross_compiling=$ac_cv_prog_cxx_cross CXXFLAGS="$CXXFLAGS -fshort-wchar" echo $ac_n "checking for compiler -fshort-wchar option""... $ac_c" 1>&6 -echo "configure:7811: checking for compiler -fshort-wchar option" >&5 +echo "configure:7709: checking for compiler -fshort-wchar option" >&5 if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_option'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7815,14 +7713,17 @@ else ac_cv_have_usable_wchar_option="maybe" else cat > conftest.$ac_ext < int main () { return (sizeof(wchar_t) != 2) || (wchar_t)-1 < (wchar_t) 0 ; } EOF -if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_have_usable_wchar_option="yes" else @@ -7858,7 +7759,7 @@ fi if test "$GNU_CC"; then echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6 -echo "configure:7862: checking for visibility(hidden) attribute" >&5 +echo "configure:7763: checking for visibility(hidden) attribute" >&5 if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7883,7 +7784,7 @@ EOF echo $ac_n "checking for visibility(default) attribute""... $ac_c" 1>&6 -echo "configure:7887: checking for visibility(default) attribute" >&5 +echo "configure:7788: checking for visibility(default) attribute" >&5 if eval "test \"`echo '$''{'ac_cv_visibility_default'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7908,7 +7809,7 @@ EOF echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6 -echo "configure:7912: checking for visibility pragma support" >&5 +echo "configure:7813: checking for visibility pragma support" >&5 if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7933,7 +7834,7 @@ fi echo "$ac_t""$ac_cv_visibility_pragma" 1>&6 if test "$ac_cv_visibility_pragma" = "yes"; then echo $ac_n "checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)""... $ac_c" 1>&6 -echo "configure:7937: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5 +echo "configure:7838: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5 if eval "test \"`echo '$''{'ac_cv_have_visibility_builtin_bug'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7976,12 +7877,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:7980: checking for $ac_hdr that defines DIR" >&5 +echo "configure:7881: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include <$ac_hdr> @@ -7989,7 +7890,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:7993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -8014,7 +7915,7 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:8018: checking for opendir in -ldir" >&5 +echo "configure:7919: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8022,7 +7923,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8055,7 +7956,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:8059: checking for opendir in -lx" >&5 +echo "configure:7960: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8063,7 +7964,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8106,17 +8007,17 @@ for ac_hdr in sys/byteorder.h compat.h getopt.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8110: checking for $ac_hdr" >&5 +echo "configure:8011: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8146,17 +8047,17 @@ for ac_hdr in sys/bitypes.h memory.h unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8150: checking for $ac_hdr" >&5 +echo "configure:8051: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8186,17 +8087,17 @@ for ac_hdr in gnu/libc-version.h nl_types.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8190: checking for $ac_hdr" >&5 +echo "configure:8091: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8226,17 +8127,17 @@ for ac_hdr in malloc.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8230: checking for $ac_hdr" >&5 +echo "configure:8131: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8266,17 +8167,17 @@ for ac_hdr in X11/XKBlib.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8270: checking for $ac_hdr" >&5 +echo "configure:8171: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8307,17 +8208,17 @@ for ac_hdr in sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8311: checking for $ac_hdr" >&5 +echo "configure:8212: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8348,17 +8249,17 @@ for ac_hdr in mmintrin.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8352: checking for $ac_hdr" >&5 +echo "configure:8253: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8395,17 +8296,17 @@ cross_compiling=$ac_cv_prog_cxx_cross NEW_H=new.h ac_safe=`echo "new" | sed 'y%./+-%__p_%'` echo $ac_n "checking for new""... $ac_c" 1>&6 -echo "configure:8399: checking for new" >&5 +echo "configure:8300: checking for new" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8446,17 +8347,17 @@ case $target in do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8450: checking for $ac_hdr" >&5 +echo "configure:8351: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8490,7 +8391,7 @@ case $target in ;; *) echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6 -echo "configure:8494: checking for gethostbyname_r in -lc_r" >&5 +echo "configure:8395: checking for gethostbyname_r in -lc_r" >&5 ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8498,7 +8399,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lc_r $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8546,7 +8447,7 @@ case $target in ;; *) echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6 -echo "configure:8550: checking for atan in -lm" >&5 +echo "configure:8451: checking for atan in -lm" >&5 ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8554,7 +8455,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8593,7 +8494,7 @@ else fi echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:8597: checking for dlopen in -ldl" >&5 +echo "configure:8498: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8601,7 +8502,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8629,17 +8530,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 -echo "configure:8633: checking for dlfcn.h" >&5 +echo "configure:8534: checking for dlfcn.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8675,7 +8576,7 @@ if test ! "$GNU_CXX"; then case $target in *-aix*) echo $ac_n "checking for demangle in -lC_r""... $ac_c" 1>&6 -echo "configure:8679: checking for demangle in -lC_r" >&5 +echo "configure:8580: checking for demangle in -lC_r" >&5 ac_lib_var=`echo C_r'_'demangle | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8683,7 +8584,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lC_r $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8724,7 +8625,7 @@ fi ;; *) echo $ac_n "checking for demangle in -lC""... $ac_c" 1>&6 -echo "configure:8728: checking for demangle in -lC" >&5 +echo "configure:8629: checking for demangle in -lC" >&5 ac_lib_var=`echo C'_'demangle | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8732,7 +8633,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lC $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8774,7 +8675,7 @@ fi esac fi echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:8778: checking for socket in -lsocket" >&5 +echo "configure:8679: checking for socket in -lsocket" >&5 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8782,7 +8683,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8838,7 +8739,7 @@ EOF _SAVE_LDFLAGS="$LDFLAGS" LDFLAGS="$XLDFLAGS $LDFLAGS" echo $ac_n "checking for XDrawLines in -lX11""... $ac_c" 1>&6 -echo "configure:8842: checking for XDrawLines in -lX11" >&5 +echo "configure:8743: checking for XDrawLines in -lX11" >&5 ac_lib_var=`echo X11'_'XDrawLines | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8846,7 +8747,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lX11 $XLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8879,7 +8780,7 @@ MISSING_X="$MISSING_X -lX11" fi echo $ac_n "checking for XextAddDisplay in -lXext""... $ac_c" 1>&6 -echo "configure:8883: checking for XextAddDisplay in -lXext" >&5 +echo "configure:8784: checking for XextAddDisplay in -lXext" >&5 ac_lib_var=`echo Xext'_'XextAddDisplay | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8887,7 +8788,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXext $XLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8922,7 +8823,7 @@ fi echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6 -echo "configure:8926: checking for XtFree in -lXt" >&5 +echo "configure:8827: checking for XtFree in -lXt" >&5 ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8930,7 +8831,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8962,7 +8863,7 @@ else unset ac_cv_lib_Xt_XtFree echo $ac_n "checking for IceFlush in -lICE""... $ac_c" 1>&6 -echo "configure:8966: checking for IceFlush in -lICE" >&5 +echo "configure:8867: checking for IceFlush in -lICE" >&5 ac_lib_var=`echo ICE'_'IceFlush | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8970,7 +8871,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lICE $XT_LIBS $XLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9002,7 +8903,7 @@ else fi echo $ac_n "checking for SmcCloseConnection in -lSM""... $ac_c" 1>&6 -echo "configure:9006: checking for SmcCloseConnection in -lSM" >&5 +echo "configure:8907: checking for SmcCloseConnection in -lSM" >&5 ac_lib_var=`echo SM'_'SmcCloseConnection | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -9010,7 +8911,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lSM $XT_LIBS $XLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9042,7 +8943,7 @@ else fi echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6 -echo "configure:9046: checking for XtFree in -lXt" >&5 +echo "configure:8947: checking for XtFree in -lXt" >&5 ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -9050,7 +8951,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXt $X_PRE_LIBS $XT_LIBS $XLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9095,7 +8996,7 @@ fi esac echo $ac_n "checking for XineramaIsActive in -lXinerama""... $ac_c" 1>&6 -echo "configure:9099: checking for XineramaIsActive in -lXinerama" >&5 +echo "configure:9000: checking for XineramaIsActive in -lXinerama" >&5 ac_lib_var=`echo Xinerama'_'XineramaIsActive | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -9103,7 +9004,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXinerama $XLIBS $XEXT_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9136,17 +9037,17 @@ fi ac_safe=`echo "X11/extensions/Xinerama.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/extensions/Xinerama.h""... $ac_c" 1>&6 -echo "configure:9140: checking for X11/extensions/Xinerama.h" >&5 +echo "configure:9041: checking for X11/extensions/Xinerama.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9169,7 +9070,7 @@ fi echo $ac_n "checking for XShmCreateImage in -lXext""... $ac_c" 1>&6 -echo "configure:9173: checking for XShmCreateImage in -lXext" >&5 +echo "configure:9074: checking for XShmCreateImage in -lXext" >&5 ac_lib_var=`echo Xext'_'XShmCreateImage | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -9177,7 +9078,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXext $XLIBS $XEXT_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9210,17 +9111,17 @@ fi ac_safe=`echo "X11/extensions/XShm.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/extensions/XShm.h""... $ac_c" 1>&6 -echo "configure:9214: checking for X11/extensions/XShm.h" >&5 +echo "configure:9115: checking for X11/extensions/XShm.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9250,7 +9151,7 @@ EOF fi echo $ac_n "checking for XieFloGeometry in -lXIE""... $ac_c" 1>&6 -echo "configure:9254: checking for XieFloGeometry in -lXIE" >&5 +echo "configure:9155: checking for XieFloGeometry in -lXIE" >&5 ac_lib_var=`echo XIE'_'XieFloGeometry | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -9258,7 +9159,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXIE $XLIBS $XEXT_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9291,17 +9192,17 @@ fi ac_safe=`echo "X11/extensions/XIElib.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/extensions/XIElib.h""... $ac_c" 1>&6 -echo "configure:9295: checking for X11/extensions/XIElib.h" >&5 +echo "configure:9196: checking for X11/extensions/XIElib.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9375,7 +9276,7 @@ fi # Extract the first word of "freetype-config", so it can be a program name with args. set dummy freetype-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:9379: checking for $ac_word" >&5 +echo "configure:9280: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_FT2_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9411,7 +9312,7 @@ fi min_ft_version=6.1.0 echo $ac_n "checking for FreeType - version >= $min_ft_version""... $ac_c" 1>&6 -echo "configure:9415: checking for FreeType - version >= $min_ft_version" >&5 +echo "configure:9316: checking for FreeType - version >= $min_ft_version" >&5 no_ft="" if test "$FT2_CONFIG" = "no" ; then no_ft=yes @@ -9459,7 +9360,7 @@ else echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -9485,7 +9386,7 @@ main() } EOF -if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -9542,7 +9443,7 @@ darwin*) *) echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:9546: checking for pthread_create in -lpthreads" >&5 +echo "configure:9447: checking for pthread_create in -lpthreads" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -9564,7 +9465,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:9568: checking for pthread_create in -lpthread" >&5 +echo "configure:9469: checking for pthread_create in -lpthread" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -9586,7 +9487,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:9590: checking for pthread_create in -lc_r" >&5 +echo "configure:9491: checking for pthread_create in -lc_r" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -9608,7 +9509,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:9612: checking for pthread_create in -lc" >&5 +echo "configure:9513: checking for pthread_create in -lc" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -9666,7 +9567,7 @@ then rm -f conftest* ac_cv_have_dash_pthread=no echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 -echo "configure:9670: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:9571: checking whether ${CC-cc} accepts -pthread" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then @@ -9689,7 +9590,7 @@ echo "configure:9670: checking whether ${CC-cc} accepts -pthread" >&5 ac_cv_have_dash_pthreads=no if test "$ac_cv_have_dash_pthread" = "no"; then echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 -echo "configure:9693: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:9594: checking whether ${CC-cc} accepts -pthreads" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then @@ -9811,7 +9712,7 @@ esac echo $ac_n "checking whether mmap() sees write()s""... $ac_c" 1>&6 -echo "configure:9815: checking whether mmap() sees write()s" >&5 +echo "configure:9716: checking whether mmap() sees write()s" >&5 mmap_test_prog=' @@ -9850,11 +9751,11 @@ if test "$cross_compiling" = yes; then result="yes" else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:9759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then result="yes" else @@ -9879,13 +9780,13 @@ fi if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:9883: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:9784: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < Autoconf TIOCGETP @@ -9903,7 +9804,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA @@ -9925,7 +9826,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 fi echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 -echo "configure:9929: checking for 8-bit clean memcmp" >&5 +echo "configure:9830: checking for 8-bit clean memcmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9933,7 +9834,7 @@ else ac_cv_func_memcmp_clean=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_memcmp_clean=yes else @@ -9963,12 +9864,12 @@ test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" for ac_func in random strerror lchown fchmod snprintf statvfs memmove rint stat64 lstat64 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9967: checking for $ac_func" >&5 +echo "configure:9868: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10018,12 +9919,12 @@ done for ac_func in flockfile getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10022: checking for $ac_func" >&5 +echo "configure:9923: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10075,12 +9976,12 @@ if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "10 for ac_func in localtime_r strtok_r do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10079: checking for $ac_func" >&5 +echo "configure:9980: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10139,19 +10040,19 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for wcrtomb""... $ac_c" 1>&6 -echo "configure:10143: checking for wcrtomb" >&5 +echo "configure:10044: checking for wcrtomb" >&5 if eval "test \"`echo '$''{'ac_cv_have_wcrtomb'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { mbstate_t ps={0};wcrtomb(0,'f',&ps); ; return 0; } EOF -if { (eval echo configure:10155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_have_wcrtomb="yes" else @@ -10171,19 +10072,19 @@ EOF fi echo $ac_n "checking for mbrtowc""... $ac_c" 1>&6 -echo "configure:10175: checking for mbrtowc" >&5 +echo "configure:10076: checking for mbrtowc" >&5 if eval "test \"`echo '$''{'ac_cv_have_mbrtowc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { mbstate_t ps={0};mbrtowc(0,0,0,&ps); ; return 0; } EOF -if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_have_mbrtowc="yes" else @@ -10212,12 +10113,12 @@ cross_compiling=$ac_cv_prog_cc_cross fi echo $ac_n "checking for res_ninit()""... $ac_c" 1>&6 -echo "configure:10216: checking for res_ninit()" >&5 +echo "configure:10117: checking for res_ninit()" >&5 if eval "test \"`echo '$''{'ac_cv_func_res_ninit'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_res_ninit=yes else @@ -10259,12 +10160,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for gnu_get_libc_version()""... $ac_c" 1>&6 -echo "configure:10263: checking for gnu_get_libc_version()" >&5 +echo "configure:10164: checking for gnu_get_libc_version()" >&5 if eval "test \"`echo '$''{'ac_cv_func_gnu_get_libc_version'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_gnu_get_libc_version=yes else @@ -10304,7 +10205,7 @@ case $target_os in *) echo $ac_n "checking for iconv in -lc""... $ac_c" 1>&6 -echo "configure:10308: checking for iconv in -lc" >&5 +echo "configure:10209: checking for iconv in -lc" >&5 ac_lib_var=`echo c'_'iconv | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -10312,7 +10213,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10345,7 +10246,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 -echo "configure:10349: checking for iconv in -liconv" >&5 +echo "configure:10250: checking for iconv in -liconv" >&5 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -10353,7 +10254,7 @@ else ac_save_LIBS="$LIBS" LIBS="-liconv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10386,7 +10287,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6 -echo "configure:10390: checking for libiconv in -liconv" >&5 +echo "configure:10291: checking for libiconv in -liconv" >&5 ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -10394,7 +10295,7 @@ else ac_save_LIBS="$LIBS" LIBS="-liconv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10435,12 +10336,12 @@ fi _SAVE_LIBS=$LIBS LIBS="$LIBS $_ICONV_LIBS" echo $ac_n "checking for iconv()""... $ac_c" 1>&6 -echo "configure:10439: checking for iconv()" >&5 +echo "configure:10340: checking for iconv()" >&5 if eval "test \"`echo '$''{'ac_cv_func_iconv'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -10454,7 +10355,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_iconv=yes else @@ -10478,12 +10379,12 @@ EOF LIBXUL_LIBS="$LIBXUL_LIBS $_ICONV_LIBS" LIBICONV="$_ICONV_LIBS" echo $ac_n "checking for iconv() with const input""... $ac_c" 1>&6 -echo "configure:10482: checking for iconv() with const input" >&5 +echo "configure:10383: checking for iconv() with const input" >&5 if eval "test \"`echo '$''{'ac_cv_func_const_iconv'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -10498,7 +10399,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:10502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_const_iconv=yes else @@ -10527,19 +10428,19 @@ esac echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 -echo "configure:10531: checking for nl_langinfo and CODESET" >&5 +echo "configure:10432: checking for nl_langinfo and CODESET" >&5 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char* cs = nl_langinfo(CODESET); ; return 0; } EOF -if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_langinfo_codeset=yes else @@ -10571,7 +10472,7 @@ cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6 -echo "configure:10575: checking for an implementation of va_copy()" >&5 +echo "configure:10476: checking for an implementation of va_copy()" >&5 if eval "test \"`echo '$''{'ac_cv_va_copy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10581,7 +10482,7 @@ else else cat > conftest.$ac_ext < @@ -10595,7 +10496,7 @@ else } int main() { f (0, 42); return 0; } EOF -if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_va_copy=yes else @@ -10612,7 +10513,7 @@ fi echo "$ac_t""$ac_cv_va_copy" 1>&6 echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6 -echo "configure:10616: checking for an implementation of __va_copy()" >&5 +echo "configure:10517: checking for an implementation of __va_copy()" >&5 if eval "test \"`echo '$''{'ac_cv___va_copy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10622,7 +10523,7 @@ else else cat > conftest.$ac_ext < @@ -10636,7 +10537,7 @@ else } int main() { f (0, 42); return 0; } EOF -if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv___va_copy=yes else @@ -10653,7 +10554,7 @@ fi echo "$ac_t""$ac_cv___va_copy" 1>&6 echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6 -echo "configure:10657: checking whether va_lists can be copied by value" >&5 +echo "configure:10558: checking whether va_lists can be copied by value" >&5 if eval "test \"`echo '$''{'ac_cv_va_val_copy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10663,7 +10564,7 @@ else else cat > conftest.$ac_ext < @@ -10677,7 +10578,7 @@ else } int main() { f (0, 42); return 0; } EOF -if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_va_val_copy=yes else @@ -10776,7 +10677,7 @@ esac if test "$GNU_CXX"; then echo $ac_n "checking for C++ exceptions flag""... $ac_c" 1>&6 -echo "configure:10780: checking for C++ exceptions flag" >&5 +echo "configure:10681: checking for C++ exceptions flag" >&5 if eval "test \"`echo '$''{'ac_cv_cxx_exceptions_flags'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -10811,12 +10712,12 @@ cross_compiling=$ac_cv_prog_cxx_cross HAVE_GCC3_ABI= if test "$GNU_CC"; then echo $ac_n "checking for gcc 3.0 ABI""... $ac_c" 1>&6 -echo "configure:10815: checking for gcc 3.0 ABI" >&5 +echo "configure:10716: checking for gcc 3.0 ABI" >&5 if eval "test \"`echo '$''{'ac_cv_gcc_three_abi'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_gcc_three_abi="yes" else @@ -10853,12 +10754,12 @@ fi echo $ac_n "checking for C++ \"explicit\" keyword""... $ac_c" 1>&6 -echo "configure:10857: checking for C++ \"explicit\" keyword" >&5 +echo "configure:10758: checking for C++ \"explicit\" keyword" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_explicit'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_explicit=yes else @@ -10889,12 +10790,12 @@ EOF fi echo $ac_n "checking for C++ \"typename\" keyword""... $ac_c" 1>&6 -echo "configure:10893: checking for C++ \"typename\" keyword" >&5 +echo "configure:10794: checking for C++ \"typename\" keyword" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_typename'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < A; A.foo(0); ; return 0; } EOF -if { (eval echo configure:10917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_typename=yes else @@ -10934,12 +10835,12 @@ EOF fi echo $ac_n "checking for modern C++ template specialization syntax support""... $ac_c" 1>&6 -echo "configure:10938: checking for modern C++ template specialization syntax support" >&5 +echo "configure:10839: checking for modern C++ template specialization syntax support" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_modern_specialize_template_syntax'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < struct X { int a; }; class Y {}; @@ -10949,7 +10850,7 @@ X int_x; X y_x; ; return 0; } EOF -if { (eval echo configure:10953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_modern_specialize_template_syntax=yes else @@ -10971,12 +10872,12 @@ fi echo $ac_n "checking whether partial template specialization works""... $ac_c" 1>&6 -echo "configure:10975: checking whether partial template specialization works" >&5 +echo "configure:10876: checking whether partial template specialization works" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_partial_specialization'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < class Foo {}; template class Foo {}; @@ -10984,7 +10885,7 @@ int main() { return 0; ; return 0; } EOF -if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_partial_specialization=yes else @@ -11005,12 +10906,12 @@ EOF fi echo $ac_n "checking whether operators must be re-defined for templates derived from templates""... $ac_c" 1>&6 -echo "configure:11009: checking whether operators must be re-defined for templates derived from templates" >&5 +echo "configure:10910: checking whether operators must be re-defined for templates derived from templates" >&5 if eval "test \"`echo '$''{'ac_cv_need_derived_template_operators'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < class Base { }; template @@ -11022,7 +10923,7 @@ Derived a, b; return 0; ; return 0; } EOF -if { (eval echo configure:11026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_need_derived_template_operators=no else @@ -11044,12 +10945,12 @@ fi echo $ac_n "checking whether we need to cast a derived template to pass as its base class""... $ac_c" 1>&6 -echo "configure:11048: checking whether we need to cast a derived template to pass as its base class" >&5 +echo "configure:10949: checking whether we need to cast a derived template to pass as its base class" >&5 if eval "test \"`echo '$''{'ac_cv_need_cpp_template_cast_to_base'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < class Base { }; template class Derived : public Base { }; @@ -11058,7 +10959,7 @@ int main() { Derived bar; return foo(bar); ; return 0; } EOF -if { (eval echo configure:11062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_need_cpp_template_cast_to_base=no else @@ -11079,12 +10980,12 @@ EOF fi echo $ac_n "checking whether the compiler can resolve const ambiguities for templates""... $ac_c" 1>&6 -echo "configure:11083: checking whether the compiler can resolve const ambiguities for templates" >&5 +echo "configure:10984: checking whether the compiler can resolve const ambiguities for templates" >&5 if eval "test \"`echo '$''{'ac_cv_can_resolve_const_ambiguity'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < class ptrClass { @@ -11105,7 +11006,7 @@ int main() { a(&i); ; return 0; } EOF -if { (eval echo configure:11109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_can_resolve_const_ambiguity=yes else @@ -11127,12 +11028,12 @@ fi echo $ac_n "checking whether the C++ \"using\" keyword can change access""... $ac_c" 1>&6 -echo "configure:11131: checking whether the C++ \"using\" keyword can change access" >&5 +echo "configure:11032: checking whether the C++ \"using\" keyword can change access" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_access_changing_using2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_access_changing_using2=no else @@ -11179,12 +11080,12 @@ EOF fi echo $ac_n "checking whether the C++ \"using\" keyword resolves ambiguity""... $ac_c" 1>&6 -echo "configure:11183: checking whether the C++ \"using\" keyword resolves ambiguity" >&5 +echo "configure:11084: checking whether the C++ \"using\" keyword resolves ambiguity" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_ambiguity_resolving_using'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_ambiguity_resolving_using=yes else @@ -11221,19 +11122,19 @@ EOF fi echo $ac_n "checking for \"std::\" namespace""... $ac_c" 1>&6 -echo "configure:11225: checking for \"std::\" namespace" >&5 +echo "configure:11126: checking for \"std::\" namespace" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_namespace_std'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return std::min(0, 1); ; return 0; } EOF -if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_namespace_std=yes else @@ -11254,12 +11155,12 @@ EOF fi echo $ac_n "checking whether standard template operator!=() is ambiguous""... $ac_c" 1>&6 -echo "configure:11258: checking whether standard template operator!=() is ambiguous" >&5 +echo "configure:11159: checking whether standard template operator!=() is ambiguous" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_unambiguous_std_notequal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < struct T1 {}; @@ -11269,7 +11170,7 @@ int main() { T1 a,b; return a != b; ; return 0; } EOF -if { (eval echo configure:11273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_unambiguous_std_notequal=unambiguous else @@ -11291,12 +11192,12 @@ fi echo $ac_n "checking for C++ reinterpret_cast""... $ac_c" 1>&6 -echo "configure:11295: checking for C++ reinterpret_cast" >&5 +echo "configure:11196: checking for C++ reinterpret_cast" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_reinterpret_cast'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <(z); ; return 0; } EOF -if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_reinterpret_cast=yes else @@ -11325,7 +11226,7 @@ EOF fi echo $ac_n "checking for C++ dynamic_cast to void*""... $ac_c" 1>&6 -echo "configure:11329: checking for C++ dynamic_cast to void*" >&5 +echo "configure:11230: checking for C++ dynamic_cast to void*" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_dynamic_cast_void_ptr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11333,8 +11234,11 @@ else ac_cv_cpp_dynamic_cast_void_ptr=no else cat > conftest.$ac_ext <(suby)))); } EOF -if { (eval echo configure:11353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:11257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_cpp_dynamic_cast_void_ptr=yes else @@ -11373,19 +11277,19 @@ fi echo $ac_n "checking whether C++ requires implementation of unused virtual methods""... $ac_c" 1>&6 -echo "configure:11377: checking whether C++ requires implementation of unused virtual methods" >&5 +echo "configure:11281: checking whether C++ requires implementation of unused virtual methods" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_unused_required'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_cpp_unused_required=no else @@ -11408,12 +11312,12 @@ fi echo $ac_n "checking for trouble comparing to zero near std::operator!=()""... $ac_c" 1>&6 -echo "configure:11412: checking for trouble comparing to zero near std::operator!=()" >&5 +echo "configure:11316: checking for trouble comparing to zero near std::operator!=()" >&5 if eval "test \"`echo '$''{'ac_cv_trouble_comparing_to_zero'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < template class Foo {}; @@ -11424,7 +11328,7 @@ int main() { Foo f; return (0 != f); ; return 0; } EOF -if { (eval echo configure:11428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_trouble_comparing_to_zero=no else @@ -11456,19 +11360,19 @@ cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:11460: checking for LC_MESSAGES" >&5 +echo "configure:11364: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'ac_cv_i18n_lc_messages'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { int category = LC_MESSAGES; ; return 0; } EOF -if { (eval echo configure:11472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_i18n_lc_messages=yes else @@ -11571,7 +11475,7 @@ fi # Extract the first word of "nspr-config", so it can be a program name with args. set dummy nspr-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:11575: checking for $ac_word" >&5 +echo "configure:11479: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11606,7 +11510,7 @@ fi min_nspr_version=4.0.0 echo $ac_n "checking for NSPR - version >= $min_nspr_version (skipping)""... $ac_c" 1>&6 -echo "configure:11610: checking for NSPR - version >= $min_nspr_version (skipping)" >&5 +echo "configure:11514: checking for NSPR - version >= $min_nspr_version (skipping)" >&5 no_nspr="" if test "$NSPR_CONFIG" = "no"; then @@ -11708,7 +11612,7 @@ fi # Extract the first word of "nss-config", so it can be a program name with args. set dummy nss-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:11712: checking for $ac_word" >&5 +echo "configure:11616: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_NSS_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11743,7 +11647,7 @@ fi min_nss_version=3.0.0 echo $ac_n "checking for NSS - version >= $min_nss_version (skipping)""... $ac_c" 1>&6 -echo "configure:11747: checking for NSS - version >= $min_nss_version (skipping)" >&5 +echo "configure:11651: checking for NSS - version >= $min_nss_version (skipping)" >&5 no_nss="" if test "$NSS_CONFIG" = "no"; then @@ -11816,7 +11720,7 @@ if test -z "$JPEG_DIR" -o "$JPEG_DIR" = no; then SYSTEM_JPEG= else echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 -echo "configure:11820: checking for jpeg_destroy_compress in -ljpeg" >&5 +echo "configure:11724: checking for jpeg_destroy_compress in -ljpeg" >&5 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -11824,7 +11728,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ljpeg $JPEG_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -11864,7 +11768,7 @@ if test "$SYSTEM_JPEG" = 1; then SYSTEM_JPEG= else cat > conftest.$ac_ext < #include @@ -11878,7 +11782,7 @@ else } EOF -if { (eval echo configure:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SYSTEM_JPEG=1 else @@ -11919,7 +11823,7 @@ if test -z "$ZLIB_DIR" -o "$ZLIB_DIR" = no; then SYSTEM_ZLIB= else echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6 -echo "configure:11923: checking for gzread in -lz" >&5 +echo "configure:11827: checking for gzread in -lz" >&5 ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -11927,7 +11831,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lz $ZLIB_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -11966,7 +11870,7 @@ if test "$SYSTEM_ZLIB" = 1; then SYSTEM_ZLIB= else cat > conftest.$ac_ext < @@ -11987,7 +11891,7 @@ else } EOF -if { (eval echo configure:11991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SYSTEM_ZLIB=1 else @@ -12030,7 +11934,7 @@ if test -z "$PNG_DIR" -o "$PNG_DIR" = no; then SYSTEM_PNG= else echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6 -echo "configure:12034: checking for png_get_valid in -lpng" >&5 +echo "configure:11938: checking for png_get_valid in -lpng" >&5 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -12038,7 +11942,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpng $PNG_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12077,7 +11981,7 @@ if test "$SYSTEM_PNG" = 1; then SYSTEM_PNG= else cat > conftest.$ac_ext < #include @@ -12091,7 +11995,7 @@ else } EOF -if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SYSTEM_PNG=1 else @@ -12193,7 +12097,9 @@ fi -o "$_DEFAULT_TOOLKIT" = "cocoa" \ -o "$_DEFAULT_TOOLKIT" = "cairo-windows" \ -o "$_DEFAULT_TOOLKIT" = "cairo-gtk2" \ - -o "$_DEFAULT_TOOLKIT" = "cairo-xlib" + -o "$_DEFAULT_TOOLKIT" = "cairo-xlib" \ + -o "$_DEFAULT_TOOLKIT" = "cairo-mac" \ + -o "$_DEFAULT_TOOLKIT" = "cairo-cocoa" then MOZ_WIDGET_TOOLKIT=`echo "$_DEFAULT_TOOLKIT" | sed -e "s/,.*$//"` else @@ -12330,6 +12236,37 @@ cairo-xlib) #define MOZ_WIDGET_XLIB 1 EOF + ;; +cairo-mac|cairo-cocoa) + if test "$MOZ_WIDGET_TOOLKIT" = "cairo-cocoa"; then + MOZ_WIDGET_TOOLKIT=cocoa + cat >> confdefs.h <<\EOF +#define MOZ_WIDGET_COCOA 1 +EOF + + MOZ_ENABLE_COCOA=1 + else + MOZ_WIDGET_TOOLKIT=mac + fi + MOZ_ENABLE_CAIRO_GFX=1 + MOZ_GFX_TOOLKIT=cairo + MOZ_USER_DIR="Mozilla" + cat >> confdefs.h <<\EOF +#define XP_MACOSX 1 +EOF + + cat >> confdefs.h <<\EOF +#define TARGET_CARBON 1 +EOF + + cat >> confdefs.h <<\EOF +#define TARGET_API_MAC_CARBON 1 +EOF + + TK_LIBS='-framework Carbon' + TK_CFLAGS="-I${MACOS_SDK_DIR}/Developer/Headers/FlatCarbon" + CFLAGS="$CFLAGS $TK_CFLAGS" + CXXFLAGS="$CXXFLAGS $TK_CFLAGS" ;; esac @@ -12386,7 +12323,7 @@ fi # Extract the first word of "gtk-config", so it can be a program name with args. set dummy gtk-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:12390: checking for $ac_word" >&5 +echo "configure:12327: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12421,7 +12358,7 @@ fi min_gtk_version=$GTK_VERSION echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 -echo "configure:12425: checking for GTK - version >= $min_gtk_version" >&5 +echo "configure:12362: checking for GTK - version >= $min_gtk_version" >&5 no_gtk="" if test "$GTK_CONFIG" = "no" ; then no_gtk=yes @@ -12444,7 +12381,7 @@ echo "configure:12425: checking for GTK - version >= $min_gtk_version" >&5 echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -12522,7 +12459,7 @@ main () } EOF -if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -12557,7 +12494,7 @@ fi CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat > conftest.$ac_ext < @@ -12567,7 +12504,7 @@ int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } EOF -if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" @@ -12618,7 +12555,7 @@ then # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:12622: checking for $ac_word" >&5 +echo "configure:12559: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12662,19 +12599,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0""... $ac_c" 1>&6 -echo "configure:12666: checking for gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0" >&5 +echo "configure:12603: checking for gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0" >&5 if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_GTK2_CFLAGS""... $ac_c" 1>&6 -echo "configure:12673: checking MOZ_GTK2_CFLAGS" >&5 +echo "configure:12610: checking MOZ_GTK2_CFLAGS" >&5 MOZ_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0"` echo "$ac_t""$MOZ_GTK2_CFLAGS" 1>&6 echo $ac_n "checking MOZ_GTK2_LIBS""... $ac_c" 1>&6 -echo "configure:12678: checking MOZ_GTK2_LIBS" >&5 +echo "configure:12615: checking MOZ_GTK2_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_GTK2_LIBS="`$PKG_CONFIG --libs \"gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_GTK2_LIBS" 1>&6 @@ -12738,7 +12675,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:12742: checking for $ac_word" >&5 +echo "configure:12679: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_HOST_MOC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12790,7 +12727,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for main in -lqt""... $ac_c" 1>&6 -echo "configure:12794: checking for main in -lqt" >&5 +echo "configure:12731: checking for main in -lqt" >&5 ac_lib_var=`echo qt'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -12798,14 +12735,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lqt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12824,7 +12761,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for main in -lqt-mt""... $ac_c" 1>&6 -echo "configure:12828: checking for main in -lqt-mt" >&5 +echo "configure:12765: checking for main in -lqt-mt" >&5 ac_lib_var=`echo qt-mt'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -12832,14 +12769,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lqt-mt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12875,9 +12812,9 @@ fi LIBS="$LIBS $QT_LIBS" echo $ac_n "checking Qt - version >= $QT_VERSION""... $ac_c" 1>&6 -echo "configure:12879: checking Qt - version >= $QT_VERSION" >&5 +echo "configure:12816: checking Qt - version >= $QT_VERSION" >&5 cat > conftest.$ac_ext < int main() { @@ -12888,7 +12825,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:12892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* result="yes" else @@ -13467,7 +13404,7 @@ EOF # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:13471: checking for $ac_word" >&5 +echo "configure:13408: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13511,19 +13448,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for xft""... $ac_c" 1>&6 -echo "configure:13515: checking for xft" >&5 +echo "configure:13452: checking for xft" >&5 if $PKG_CONFIG --exists "xft" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_XFT_CFLAGS""... $ac_c" 1>&6 -echo "configure:13522: checking MOZ_XFT_CFLAGS" >&5 +echo "configure:13459: checking MOZ_XFT_CFLAGS" >&5 MOZ_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft"` echo "$ac_t""$MOZ_XFT_CFLAGS" 1>&6 echo $ac_n "checking MOZ_XFT_LIBS""... $ac_c" 1>&6 -echo "configure:13527: checking MOZ_XFT_LIBS" >&5 +echo "configure:13464: checking MOZ_XFT_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_XFT_LIBS="`$PKG_CONFIG --libs \"xft\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_XFT_LIBS" 1>&6 @@ -13556,7 +13493,7 @@ echo "configure:13527: checking MOZ_XFT_LIBS" >&5 # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:13560: checking for $ac_word" >&5 +echo "configure:13497: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13600,19 +13537,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for pango >= 1.1.0""... $ac_c" 1>&6 -echo "configure:13604: checking for pango >= 1.1.0" >&5 +echo "configure:13541: checking for pango >= 1.1.0" >&5 if $PKG_CONFIG --exists "pango >= 1.1.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking _PANGOCHK_CFLAGS""... $ac_c" 1>&6 -echo "configure:13611: checking _PANGOCHK_CFLAGS" >&5 +echo "configure:13548: checking _PANGOCHK_CFLAGS" >&5 _PANGOCHK_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.1.0"` echo "$ac_t""$_PANGOCHK_CFLAGS" 1>&6 echo $ac_n "checking _PANGOCHK_LIBS""... $ac_c" 1>&6 -echo "configure:13616: checking _PANGOCHK_LIBS" >&5 +echo "configure:13553: checking _PANGOCHK_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic _PANGOCHK_LIBS="`$PKG_CONFIG --libs \"pango >= 1.1.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$_PANGOCHK_LIBS" 1>&6 @@ -13670,7 +13607,7 @@ EOF # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:13674: checking for $ac_word" >&5 +echo "configure:13611: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13714,19 +13651,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for pango >= 1.6.0 pangoft2 >= 1.6.0""... $ac_c" 1>&6 -echo "configure:13718: checking for pango >= 1.6.0 pangoft2 >= 1.6.0" >&5 +echo "configure:13655: checking for pango >= 1.6.0 pangoft2 >= 1.6.0" >&5 if $PKG_CONFIG --exists "pango >= 1.6.0 pangoft2 >= 1.6.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_PANGO_CFLAGS""... $ac_c" 1>&6 -echo "configure:13725: checking MOZ_PANGO_CFLAGS" >&5 +echo "configure:13662: checking MOZ_PANGO_CFLAGS" >&5 MOZ_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.6.0 pangoft2 >= 1.6.0"` echo "$ac_t""$MOZ_PANGO_CFLAGS" 1>&6 echo $ac_n "checking MOZ_PANGO_LIBS""... $ac_c" 1>&6 -echo "configure:13730: checking MOZ_PANGO_LIBS" >&5 +echo "configure:13667: checking MOZ_PANGO_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_PANGO_LIBS="`$PKG_CONFIG --libs \"pango >= 1.6.0 pangoft2 >= 1.6.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_PANGO_LIBS" 1>&6 @@ -13771,7 +13708,7 @@ EOF # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:13775: checking for $ac_word" >&5 +echo "configure:13712: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13815,19 +13752,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for pango >= 1.6.0 pangoft2 >= 1.6.0 pangoxft >= 1.6.0""... $ac_c" 1>&6 -echo "configure:13819: checking for pango >= 1.6.0 pangoft2 >= 1.6.0 pangoxft >= 1.6.0" >&5 +echo "configure:13756: checking for pango >= 1.6.0 pangoft2 >= 1.6.0 pangoxft >= 1.6.0" >&5 if $PKG_CONFIG --exists "pango >= 1.6.0 pangoft2 >= 1.6.0 pangoxft >= 1.6.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_PANGO_CFLAGS""... $ac_c" 1>&6 -echo "configure:13826: checking MOZ_PANGO_CFLAGS" >&5 +echo "configure:13763: checking MOZ_PANGO_CFLAGS" >&5 MOZ_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.6.0 pangoft2 >= 1.6.0 pangoxft >= 1.6.0"` echo "$ac_t""$MOZ_PANGO_CFLAGS" 1>&6 echo $ac_n "checking MOZ_PANGO_LIBS""... $ac_c" 1>&6 -echo "configure:13831: checking MOZ_PANGO_LIBS" >&5 +echo "configure:13768: checking MOZ_PANGO_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_PANGO_LIBS="`$PKG_CONFIG --libs \"pango >= 1.6.0 pangoft2 >= 1.6.0 pangoxft >= 1.6.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_PANGO_LIBS" 1>&6 @@ -13894,7 +13831,7 @@ then _SAVE_LDFLAGS="$LDFLAGS" LDFLAGS="$XLDFLAGS $LDFLAGS" echo $ac_n "checking for XpGetPrinterList in -lXp""... $ac_c" 1>&6 -echo "configure:13898: checking for XpGetPrinterList in -lXp" >&5 +echo "configure:13835: checking for XpGetPrinterList in -lXp" >&5 ac_lib_var=`echo Xp'_'XpGetPrinterList | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -13902,7 +13839,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXp $XEXT_LIBS $XLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13985,7 +13922,7 @@ fi # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:13989: checking for $ac_word" >&5 +echo "configure:13926: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -14029,19 +13966,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION""... $ac_c" 1>&6 -echo "configure:14033: checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" >&5 +echo "configure:13970: checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" >&5 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_GNOMEVFS_CFLAGS""... $ac_c" 1>&6 -echo "configure:14040: checking MOZ_GNOMEVFS_CFLAGS" >&5 +echo "configure:13977: checking MOZ_GNOMEVFS_CFLAGS" >&5 MOZ_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION"` echo "$ac_t""$MOZ_GNOMEVFS_CFLAGS" 1>&6 echo $ac_n "checking MOZ_GNOMEVFS_LIBS""... $ac_c" 1>&6 -echo "configure:14045: checking MOZ_GNOMEVFS_LIBS" >&5 +echo "configure:13982: checking MOZ_GNOMEVFS_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_GNOMEVFS_LIBS="`$PKG_CONFIG --libs \"gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_GNOMEVFS_LIBS" 1>&6 @@ -14089,7 +14026,7 @@ echo "configure:14045: checking MOZ_GNOMEVFS_LIBS" >&5 # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:14093: checking for $ac_word" >&5 +echo "configure:14030: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -14133,19 +14070,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for gconf-2.0 >= $GCONF_VERSION""... $ac_c" 1>&6 -echo "configure:14137: checking for gconf-2.0 >= $GCONF_VERSION" >&5 +echo "configure:14074: checking for gconf-2.0 >= $GCONF_VERSION" >&5 if $PKG_CONFIG --exists "gconf-2.0 >= $GCONF_VERSION" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_GCONF_CFLAGS""... $ac_c" 1>&6 -echo "configure:14144: checking MOZ_GCONF_CFLAGS" >&5 +echo "configure:14081: checking MOZ_GCONF_CFLAGS" >&5 MOZ_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= $GCONF_VERSION"` echo "$ac_t""$MOZ_GCONF_CFLAGS" 1>&6 echo $ac_n "checking MOZ_GCONF_LIBS""... $ac_c" 1>&6 -echo "configure:14149: checking MOZ_GCONF_LIBS" >&5 +echo "configure:14086: checking MOZ_GCONF_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_GCONF_LIBS="`$PKG_CONFIG --libs \"gconf-2.0 >= $GCONF_VERSION\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_GCONF_LIBS" 1>&6 @@ -14189,7 +14126,7 @@ echo "configure:14149: checking MOZ_GCONF_LIBS" >&5 # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:14193: checking for $ac_word" >&5 +echo "configure:14130: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -14233,19 +14170,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for libgnome-2.0 >= $LIBGNOME_VERSION""... $ac_c" 1>&6 -echo "configure:14237: checking for libgnome-2.0 >= $LIBGNOME_VERSION" >&5 +echo "configure:14174: checking for libgnome-2.0 >= $LIBGNOME_VERSION" >&5 if $PKG_CONFIG --exists "libgnome-2.0 >= $LIBGNOME_VERSION" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_LIBGNOME_CFLAGS""... $ac_c" 1>&6 -echo "configure:14244: checking MOZ_LIBGNOME_CFLAGS" >&5 +echo "configure:14181: checking MOZ_LIBGNOME_CFLAGS" >&5 MOZ_LIBGNOME_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= $LIBGNOME_VERSION"` echo "$ac_t""$MOZ_LIBGNOME_CFLAGS" 1>&6 echo $ac_n "checking MOZ_LIBGNOME_LIBS""... $ac_c" 1>&6 -echo "configure:14249: checking MOZ_LIBGNOME_LIBS" >&5 +echo "configure:14186: checking MOZ_LIBGNOME_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_LIBGNOME_LIBS="`$PKG_CONFIG --libs \"libgnome-2.0 >= $LIBGNOME_VERSION\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_LIBGNOME_LIBS" 1>&6 @@ -14320,7 +14257,7 @@ fi # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:14324: checking for $ac_word" >&5 +echo "configure:14261: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -14364,19 +14301,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for libgnomeui-2.0 >= $GNOMEUI_VERSION""... $ac_c" 1>&6 -echo "configure:14368: checking for libgnomeui-2.0 >= $GNOMEUI_VERSION" >&5 +echo "configure:14305: checking for libgnomeui-2.0 >= $GNOMEUI_VERSION" >&5 if $PKG_CONFIG --exists "libgnomeui-2.0 >= $GNOMEUI_VERSION" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking MOZ_GNOMEUI_CFLAGS""... $ac_c" 1>&6 -echo "configure:14375: checking MOZ_GNOMEUI_CFLAGS" >&5 +echo "configure:14312: checking MOZ_GNOMEUI_CFLAGS" >&5 MOZ_GNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= $GNOMEUI_VERSION"` echo "$ac_t""$MOZ_GNOMEUI_CFLAGS" 1>&6 echo $ac_n "checking MOZ_GNOMEUI_LIBS""... $ac_c" 1>&6 -echo "configure:14380: checking MOZ_GNOMEUI_LIBS" >&5 +echo "configure:14317: checking MOZ_GNOMEUI_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic MOZ_GNOMEUI_LIBS="`$PKG_CONFIG --libs \"libgnomeui-2.0 >= $GNOMEUI_VERSION\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$MOZ_GNOMEUI_LIBS" 1>&6 @@ -14906,7 +14843,7 @@ if test -n "${MOZ_JAVAXPCOM}"; then # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:14910: checking for $ac_word" >&5 +echo "configure:14847: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_JAVAC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -14942,7 +14879,7 @@ fi # Extract the first word of "jar", so it can be a program name with args. set dummy jar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:14946: checking for $ac_word" >&5 +echo "configure:14883: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_JAR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -15206,7 +15143,7 @@ fi gdiplus) MOZ_SVG_RENDERER_GDIPLUS=1 echo $ac_n "checking for Gdiplus.h""... $ac_c" 1>&6 -echo "configure:15210: checking for Gdiplus.h" >&5 +echo "configure:15147: checking for Gdiplus.h" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -15216,7 +15153,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #include @@ -15225,7 +15162,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:15229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -15336,13 +15273,13 @@ case "$target_os" in msvc*|mks*|cygwin*|mingw*|wince*) if test -n "$MOZ_UPDATER"; then echo $ac_n "checking for iconv""... $ac_c" 1>&6 -echo "configure:15340: checking for iconv" >&5 +echo "configure:15277: checking for iconv" >&5 for ac_prog in $HOST_ICONV "iconv" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:15346: checking for $ac_word" >&5 +echo "configure:15283: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_HOST_ICONV'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -15644,18 +15581,18 @@ MOZ_DEBUG_DISABLE_DEFS="-DNDEBUG -DTRIMMED" if test -n "$MOZ_DEBUG"; then echo $ac_n "checking for valid debug flags""... $ac_c" 1>&6 -echo "configure:15648: checking for valid debug flags" >&5 +echo "configure:15585: checking for valid debug flags" >&5 _SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS" cat > conftest.$ac_ext < int main() { printf("Hello World\n"); ; return 0; } EOF -if { (eval echo configure:15659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _results=yes else @@ -15696,18 +15633,18 @@ fi if test "$COMPILE_ENVIRONMENT"; then if test -n "$MOZ_OPTIMIZE"; then echo $ac_n "checking for valid optimization flags""... $ac_c" 1>&6 -echo "configure:15700: checking for valid optimization flags" >&5 +echo "configure:15637: checking for valid optimization flags" >&5 _SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $MOZ_OPTIMIZE_FLAGS" cat > conftest.$ac_ext < int main() { printf("Hello World\n"); ; return 0; } EOF -if { (eval echo configure:15711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _results=yes else @@ -15905,7 +15842,7 @@ fi if test -n "$_ENABLE_EFENCE"; then echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6 -echo "configure:15909: checking for malloc in -lefence" >&5 +echo "configure:15846: checking for malloc in -lefence" >&5 ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -15913,7 +15850,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lefence $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -16025,12 +15962,12 @@ cross_compiling=$ac_cv_prog_cxx_cross for ac_func in __builtin_vec_new __builtin_vec_delete __builtin_new __builtin_delete __pure_virtual do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:16029: checking for $ac_func" >&5 +echo "configure:15966: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -16299,12 +16236,12 @@ cross_compiling=$ac_cv_prog_cxx_cross for ac_func in __cxa_demangle do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:16303: checking for $ac_func" >&5 +echo "configure:16240: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -16468,7 +16405,7 @@ if test -z "$SKIP_COMPILER_CHECKS"; then # Compiler Options echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6 -echo "configure:16472: checking for gcc -pipe support" >&5 +echo "configure:16409: checking for gcc -pipe support" >&5 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then echo '#include ' > dummy-hello.c echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c @@ -16483,14 +16420,14 @@ if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then _SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -pipe" cat > conftest.$ac_ext < int main() { printf("Hello World\n"); ; return 0; } EOF -if { (eval echo configure:16494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _res_gcc_pipe="yes" else @@ -16532,16 +16469,16 @@ if test "$_IGNORE_LONG_LONG_WARNINGS"; then _SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS ${_COMPILER_PREFIX}-Wno-long-long" echo $ac_n "checking whether compiler supports -Wno-long-long""... $ac_c" 1>&6 -echo "configure:16536: checking whether compiler supports -Wno-long-long" >&5 +echo "configure:16473: checking whether compiler supports -Wno-long-long" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} ${_COMPILER_PREFIX}-Wno-long-long" _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-long-long" @@ -16562,16 +16499,16 @@ _SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fprofile-generate" echo $ac_n "checking whether C compiler supports -fprofile-generate""... $ac_c" 1>&6 -echo "configure:16566: checking whether C compiler supports -fprofile-generate" >&5 +echo "configure:16503: checking whether C compiler supports -fprofile-generate" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* PROFILE_GEN_CFLAGS="-fprofile-generate" result="yes" @@ -16589,16 +16526,16 @@ if test $result = "yes"; then else CFLAGS="$_SAVE_CFLAGS -fprofile-arcs" echo $ac_n "checking whether C compiler supports -fprofile-arcs""... $ac_c" 1>&6 -echo "configure:16593: checking whether C compiler supports -fprofile-arcs" >&5 +echo "configure:16530: checking whether C compiler supports -fprofile-arcs" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* PROFILE_GEN_CFLAGS="-fprofile-arcs" result="yes" @@ -16644,18 +16581,21 @@ if test "$_PEDANTIC"; then _SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="$CXXFLAGS ${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-pedantic" echo $ac_n "checking whether C++ compiler has -pedantic long long bug""... $ac_c" 1>&6 -echo "configure:16648: checking whether C++ compiler has -pedantic long long bug" >&5 +echo "configure:16585: checking whether C++ compiler has -pedantic long long bug" >&5 if test "$cross_compiling" = yes; then result="maybe" else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:16599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then result="no" else @@ -16685,13 +16625,16 @@ fi fi echo $ac_n "checking for correct temporary object destruction order""... $ac_c" 1>&6 -echo "configure:16689: checking for correct temporary object destruction order" >&5 +echo "configure:16629: checking for correct temporary object destruction order" >&5 if test "$cross_compiling" = yes; then result="maybe" else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:16657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then result="yes" else @@ -16731,12 +16674,12 @@ fi _SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="$CXXFLAGS ${_WARNINGS_CXXFLAGS}" echo $ac_n "checking for correct overload resolution with const and templates""... $ac_c" 1>&6 -echo "configure:16735: checking for correct overload resolution with const and templates" >&5 +echo "configure:16678: checking for correct overload resolution with const and templates" >&5 if eval "test \"`echo '$''{'ac_nscap_nonconst_opeq_bug'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -16766,7 +16709,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:16770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_nscap_nonconst_opeq_bug="no" else @@ -17039,7 +16982,7 @@ then # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:17043: checking for $ac_word" >&5 +echo "configure:16986: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -17083,19 +17026,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0""... $ac_c" 1>&6 -echo "configure:17087: checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0" >&5 +echo "configure:17030: checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0" >&5 if $PKG_CONFIG --exists "libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking LIBIDL_CFLAGS""... $ac_c" 1>&6 -echo "configure:17094: checking LIBIDL_CFLAGS" >&5 +echo "configure:17037: checking LIBIDL_CFLAGS" >&5 LIBIDL_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0"` echo "$ac_t""$LIBIDL_CFLAGS" 1>&6 echo $ac_n "checking LIBIDL_LIBS""... $ac_c" 1>&6 -echo "configure:17099: checking LIBIDL_LIBS" >&5 +echo "configure:17042: checking LIBIDL_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic LIBIDL_LIBS="`$PKG_CONFIG --libs \"libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$LIBIDL_LIBS" 1>&6 @@ -17217,7 +17160,7 @@ fi # Extract the first word of "glib-config", so it can be a program name with args. set dummy glib-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:17221: checking for $ac_word" >&5 +echo "configure:17164: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -17252,7 +17195,7 @@ fi min_glib_version=1.2.0 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6 -echo "configure:17256: checking for GLIB - version >= $min_glib_version" >&5 +echo "configure:17199: checking for GLIB - version >= $min_glib_version" >&5 no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes @@ -17275,7 +17218,7 @@ echo "configure:17256: checking for GLIB - version >= $min_glib_version" >&5 echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -17351,7 +17294,7 @@ main () } EOF -if { (eval echo configure:17355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:17298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -17385,7 +17328,7 @@ fi CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat > conftest.$ac_ext < @@ -17395,7 +17338,7 @@ int main() { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } EOF -if { (eval echo configure:17399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" @@ -17439,7 +17382,7 @@ rm -f conftest* # Extract the first word of "libIDL-config", so it can be a program name with args. set dummy libIDL-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:17443: checking for $ac_word" >&5 +echo "configure:17386: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_LIBIDL_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -17474,7 +17417,7 @@ fi min_libIDL_version=$LIBIDL_VERSION echo $ac_n "checking for libIDL - version >= $min_libIDL_version""... $ac_c" 1>&6 -echo "configure:17478: checking for libIDL - version >= $min_libIDL_version" >&5 +echo "configure:17421: checking for libIDL - version >= $min_libIDL_version" >&5 no_libIDL="" if test "$LIBIDL_CONFIG" = "no" ; then no_libIDL=yes @@ -17501,7 +17444,7 @@ echo "configure:17478: checking for libIDL - version >= $min_libIDL_version" >&5 echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -17587,7 +17530,7 @@ main () } EOF -if { (eval echo configure:17591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:17534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -17621,7 +17564,7 @@ fi CFLAGS="$CFLAGS $LIBIDL_CFLAGS" LIBS="$LIBS $LIBIDL_LIBS" cat > conftest.$ac_ext < @@ -17632,7 +17575,7 @@ int main() { return IDL_get_libver_string ? 1 : 0; ; return 0; } EOF -if { (eval echo configure:17636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding libIDL or finding the wrong" @@ -17760,7 +17703,7 @@ fi # Extract the first word of "glib-config", so it can be a program name with args. set dummy glib-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:17764: checking for $ac_word" >&5 +echo "configure:17707: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -17795,7 +17738,7 @@ fi min_glib_version=1.2.0 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6 -echo "configure:17799: checking for GLIB - version >= $min_glib_version" >&5 +echo "configure:17742: checking for GLIB - version >= $min_glib_version" >&5 no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes @@ -17818,7 +17761,7 @@ echo "configure:17799: checking for GLIB - version >= $min_glib_version" >&5 echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -17894,7 +17837,7 @@ main () } EOF -if { (eval echo configure:17898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:17841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -17928,7 +17871,7 @@ fi CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat > conftest.$ac_ext < @@ -17938,7 +17881,7 @@ int main() { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } EOF -if { (eval echo configure:17942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" @@ -17982,7 +17925,7 @@ rm -f conftest* # Extract the first word of "libIDL-config", so it can be a program name with args. set dummy libIDL-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:17986: checking for $ac_word" >&5 +echo "configure:17929: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_LIBIDL_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -18017,7 +17960,7 @@ fi min_libIDL_version=$LIBIDL_VERSION echo $ac_n "checking for libIDL - version >= $min_libIDL_version""... $ac_c" 1>&6 -echo "configure:18021: checking for libIDL - version >= $min_libIDL_version" >&5 +echo "configure:17964: checking for libIDL - version >= $min_libIDL_version" >&5 no_libIDL="" if test "$LIBIDL_CONFIG" = "no" ; then no_libIDL=yes @@ -18044,7 +17987,7 @@ echo "configure:18021: checking for libIDL - version >= $min_libIDL_version" >&5 echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -18130,7 +18073,7 @@ main () } EOF -if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:18077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -18164,7 +18107,7 @@ fi CFLAGS="$CFLAGS $LIBIDL_CFLAGS" LIBS="$LIBS $LIBIDL_LIBS" cat > conftest.$ac_ext < @@ -18175,7 +18118,7 @@ int main() { return IDL_get_libver_string ? 1 : 0; ; return 0; } EOF -if { (eval echo configure:18179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding libIDL or finding the wrong" @@ -18215,7 +18158,7 @@ rm -f conftest* # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:18219: checking for $ac_word" >&5 +echo "configure:18162: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -18259,19 +18202,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for libIDL-2.0 >= 0.8.0""... $ac_c" 1>&6 -echo "configure:18263: checking for libIDL-2.0 >= 0.8.0" >&5 +echo "configure:18206: checking for libIDL-2.0 >= 0.8.0" >&5 if $PKG_CONFIG --exists "libIDL-2.0 >= 0.8.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking LIBIDL_CFLAGS""... $ac_c" 1>&6 -echo "configure:18270: checking LIBIDL_CFLAGS" >&5 +echo "configure:18213: checking LIBIDL_CFLAGS" >&5 LIBIDL_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0"` echo "$ac_t""$LIBIDL_CFLAGS" 1>&6 echo $ac_n "checking LIBIDL_LIBS""... $ac_c" 1>&6 -echo "configure:18275: checking LIBIDL_LIBS" >&5 +echo "configure:18218: checking LIBIDL_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic LIBIDL_LIBS="`$PKG_CONFIG --libs \"libIDL-2.0 >= 0.8.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$LIBIDL_LIBS" 1>&6 @@ -18306,7 +18249,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:18310: checking for $ac_word" >&5 +echo "configure:18253: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -18343,7 +18286,7 @@ done if test -n "$ORBIT_CONFIG"; then echo $ac_n "checking for ORBit libIDL usability""... $ac_c" 1>&6 -echo "configure:18347: checking for ORBit libIDL usability" >&5 +echo "configure:18290: checking for ORBit libIDL usability" >&5 _ORBIT_CFLAGS=`${ORBIT_CONFIG} client --cflags` _ORBIT_LIBS=`${ORBIT_CONFIG} client --libs` _ORBIT_INC_PATH=`${PERL} -e '{ for $f (@ARGV) { print "$f " if ($f =~ m/^-I/); } }' -- ${_ORBIT_CFLAGS}` @@ -18360,7 +18303,7 @@ echo "configure:18347: checking for ORBit libIDL usability" >&5 result="maybe" else cat > conftest.$ac_ext < @@ -18375,7 +18318,7 @@ int main() { } EOF -if { (eval echo configure:18379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:18322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then _LIBIDL_FOUND=1 result="yes" @@ -18431,7 +18374,7 @@ if test -z "${GLIB_CFLAGS}" || test -z "${GLIB_LIBS}" ; then # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:18435: checking for $ac_word" >&5 +echo "configure:18378: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -18475,19 +18418,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for glib-2.0 >= 1.3.7 gobject-2.0""... $ac_c" 1>&6 -echo "configure:18479: checking for glib-2.0 >= 1.3.7 gobject-2.0" >&5 +echo "configure:18422: checking for glib-2.0 >= 1.3.7 gobject-2.0" >&5 if $PKG_CONFIG --exists "glib-2.0 >= 1.3.7 gobject-2.0" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6 -echo "configure:18486: checking GLIB_CFLAGS" >&5 +echo "configure:18429: checking GLIB_CFLAGS" >&5 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.7 gobject-2.0"` echo "$ac_t""$GLIB_CFLAGS" 1>&6 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6 -echo "configure:18491: checking GLIB_LIBS" >&5 +echo "configure:18434: checking GLIB_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic GLIB_LIBS="`$PKG_CONFIG --libs \"glib-2.0 >= 1.3.7 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$GLIB_LIBS" 1>&6 @@ -18570,7 +18513,7 @@ fi # Extract the first word of "glib-config", so it can be a program name with args. set dummy glib-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:18574: checking for $ac_word" >&5 +echo "configure:18517: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -18605,7 +18548,7 @@ fi min_glib_version=${GLIB_VERSION} echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6 -echo "configure:18609: checking for GLIB - version >= $min_glib_version" >&5 +echo "configure:18552: checking for GLIB - version >= $min_glib_version" >&5 no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes @@ -18628,7 +18571,7 @@ echo "configure:18609: checking for GLIB - version >= $min_glib_version" >&5 echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -18704,7 +18647,7 @@ main () } EOF -if { (eval echo configure:18708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:18651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -18738,7 +18681,7 @@ fi CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat > conftest.$ac_ext < @@ -18748,7 +18691,7 @@ int main() { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } EOF -if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" @@ -18828,19 +18771,19 @@ mk_add_options MOZ_CO_MODULE=mozilla/other-licenses/libart_lgpl" 1>&2; exit 1; } # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:18832: checking for working alloca.h" >&5 +echo "configure:18775: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:18844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -18861,12 +18804,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:18865: checking for alloca" >&5 +echo "configure:18808: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -18926,12 +18869,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:18930: checking whether alloca needs Cray hooks" >&5 +echo "configure:18873: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:18960: checking for $ac_func" >&5 +echo "configure:18903: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -19011,7 +18954,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:19015: checking stack direction for C alloca" >&5 +echo "configure:18958: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -19019,7 +18962,7 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -19087,17 +19030,17 @@ fi do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:19091: checking for $ac_hdr" >&5 +echo "configure:19034: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:19101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:19044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -19142,6 +19085,7 @@ EOF fi if test "$MOZ_WIDGET_TOOLKIT" = "mac" -o "$MOZ_WIDGET_TOOLKIT" = "cocoa"; then QUARTZ_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZ_SURFACE 1" + QUARTZGL_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZGL_SURFACE 1" ATSUI_FONT_FEATURE="#define CAIRO_HAS_ATSUI_FONT 1" fi if test "$MOZ_WIDGET_TOOLKIT" = "windows"; then @@ -19165,7 +19109,7 @@ EOF # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:19169: checking for $ac_word" >&5 +echo "configure:19113: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -19209,19 +19153,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for fontconfig freetype2""... $ac_c" 1>&6 -echo "configure:19213: checking for fontconfig freetype2" >&5 +echo "configure:19157: checking for fontconfig freetype2" >&5 if $PKG_CONFIG --exists "fontconfig freetype2" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking CAIRO_FT_CFLAGS""... $ac_c" 1>&6 -echo "configure:19220: checking CAIRO_FT_CFLAGS" >&5 +echo "configure:19164: checking CAIRO_FT_CFLAGS" >&5 CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "fontconfig freetype2"` echo "$ac_t""$CAIRO_FT_CFLAGS" 1>&6 echo $ac_n "checking CAIRO_FT_LIBS""... $ac_c" 1>&6 -echo "configure:19225: checking CAIRO_FT_LIBS" >&5 +echo "configure:19169: checking CAIRO_FT_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic CAIRO_FT_LIBS="`$PKG_CONFIG --libs \"fontconfig freetype2\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$CAIRO_FT_LIBS" 1>&6 @@ -19278,6 +19222,7 @@ echo "configure:19225: checking CAIRO_FT_LIBS" >&5 + if test "$_WIN32_MSVC"; then MOZ_CAIRO_LIBS='$(LIBXUL_DIST)/lib/mozcairo.lib $(LIBXUL_DIST)/lib/mozlibpixman.lib' @@ -19312,7 +19257,7 @@ echo "configure:19225: checking CAIRO_FT_LIBS" >&5 # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:19316: checking for $ac_word" >&5 +echo "configure:19261: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -19356,19 +19301,19 @@ fi PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for cairo >= $CAIRO_VERSION""... $ac_c" 1>&6 -echo "configure:19360: checking for cairo >= $CAIRO_VERSION" >&5 +echo "configure:19305: checking for cairo >= $CAIRO_VERSION" >&5 if $PKG_CONFIG --exists "cairo >= $CAIRO_VERSION" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6 -echo "configure:19367: checking CAIRO_CFLAGS" >&5 +echo "configure:19312: checking CAIRO_CFLAGS" >&5 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION"` echo "$ac_t""$CAIRO_CFLAGS" 1>&6 echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6 -echo "configure:19372: checking CAIRO_LIBS" >&5 +echo "configure:19317: checking CAIRO_LIBS" >&5 ## Remove evil flags like -Wl,--export-dynamic CAIRO_LIBS="`$PKG_CONFIG --libs \"cairo >= $CAIRO_VERSION\" |sed s/-Wl,--export-dynamic//g`" echo "$ac_t""$CAIRO_LIBS" 1>&6 @@ -19432,7 +19377,7 @@ if test `echo "$MOZ_EXTENSIONS" | grep -c python/xpcom` -ne 0; then # Extract the first word of "python", so it can be a program name with args. set dummy python; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:19436: checking for $ac_word" >&5 +echo "configure:19381: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -19719,14 +19664,14 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext < int main() { int x = 1; x++; ; return 0; } EOF -if { (eval echo configure:19730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -20036,7 +19981,7 @@ if test "$MOZ_X11"; then _SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $XCFLAGS" cat > conftest.$ac_ext < @@ -20052,7 +19997,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:20056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -20259,34 +20204,15 @@ egrep -v "$_EGREP_PATTERN" confdefs.h.save > confdefs.h # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs MOZ_DEFINES=$DEFS @@ -20641,6 +20567,7 @@ s%@PDF_SURFACE_FEATURE@%$PDF_SURFACE_FEATURE%g s%@SVG_SURFACE_FEATURE@%$SVG_SURFACE_FEATURE%g s%@XLIB_SURFACE_FEATURE@%$XLIB_SURFACE_FEATURE%g s%@QUARTZ_SURFACE_FEATURE@%$QUARTZ_SURFACE_FEATURE%g +s%@QUARTZGL_SURFACE_FEATURE@%$QUARTZGL_SURFACE_FEATURE%g s%@XCB_SURFACE_FEATURE@%$XCB_SURFACE_FEATURE%g s%@WIN32_SURFACE_FEATURE@%$WIN32_SURFACE_FEATURE%g s%@OS2_SURFACE_FEATURE@%$OS2_SURFACE_FEATURE%g diff --git a/mozilla/configure.in b/mozilla/configure.in index 2af9e8bcbce..8da4afb8dc2 100644 --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -3944,7 +3944,9 @@ MOZ_ARG_HEADER(Toolkit Options) -o "$_DEFAULT_TOOLKIT" = "cocoa" \ -o "$_DEFAULT_TOOLKIT" = "cairo-windows" \ -o "$_DEFAULT_TOOLKIT" = "cairo-gtk2" \ - -o "$_DEFAULT_TOOLKIT" = "cairo-xlib" + -o "$_DEFAULT_TOOLKIT" = "cairo-xlib" \ + -o "$_DEFAULT_TOOLKIT" = "cairo-mac" \ + -o "$_DEFAULT_TOOLKIT" = "cairo-cocoa" then dnl nglayout only supports building with one toolkit, dnl so ignore everything after the first comma (","). @@ -4051,6 +4053,25 @@ cairo-xlib) TK_LIBS='$(MOZ_XLIB_LDFLAGS) $(MOZ_CAIRO_LIBS)' AC_DEFINE(MOZ_WIDGET_XLIB) ;; +cairo-mac|cairo-cocoa) + if test "$MOZ_WIDGET_TOOLKIT" = "cairo-cocoa"; then + MOZ_WIDGET_TOOLKIT=cocoa + AC_DEFINE(MOZ_WIDGET_COCOA) + MOZ_ENABLE_COCOA=1 + else + MOZ_WIDGET_TOOLKIT=mac + fi + MOZ_ENABLE_CAIRO_GFX=1 + MOZ_GFX_TOOLKIT=cairo + MOZ_USER_DIR="Mozilla" + AC_DEFINE(XP_MACOSX) + AC_DEFINE(TARGET_CARBON) + AC_DEFINE(TARGET_API_MAC_CARBON) + TK_LIBS='-framework Carbon' + TK_CFLAGS="-I${MACOS_SDK_DIR}/Developer/Headers/FlatCarbon" + CFLAGS="$CFLAGS $TK_CFLAGS" + CXXFLAGS="$CXXFLAGS $TK_CFLAGS" + ;; esac if test "$MOZ_ENABLE_XREMOTE"; then @@ -6717,6 +6738,7 @@ if test "$MOZ_SVG_RENDERER_CAIRO" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_ fi if test "$MOZ_WIDGET_TOOLKIT" = "mac" -o "$MOZ_WIDGET_TOOLKIT" = "cocoa"; then QUARTZ_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZ_SURFACE 1" + QUARTZGL_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZGL_SURFACE 1" ATSUI_FONT_FEATURE="#define CAIRO_HAS_ATSUI_FONT 1" fi if test "$MOZ_WIDGET_TOOLKIT" = "windows"; then @@ -6755,6 +6777,7 @@ if test "$MOZ_SVG_RENDERER_CAIRO" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_ AC_SUBST(SVG_SURFACE_FEATURE) AC_SUBST(XLIB_SURFACE_FEATURE) AC_SUBST(QUARTZ_SURFACE_FEATURE) + AC_SUBST(QUARTZGL_SURFACE_FEATURE) AC_SUBST(XCB_SURFACE_FEATURE) AC_SUBST(WIN32_SURFACE_FEATURE) AC_SUBST(OS2_SURFACE_FEATURE) diff --git a/mozilla/gfx/cairo/cairo/src/Makefile.in b/mozilla/gfx/cairo/cairo/src/Makefile.in index c8c1481677c..0de12d09ed9 100644 --- a/mozilla/gfx/cairo/cairo/src/Makefile.in +++ b/mozilla/gfx/cairo/cairo/src/Makefile.in @@ -43,6 +43,8 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk +SUBMAKEFILES += cairo-features.h + VISIBILITY_FLAGS = MODULE = cairo @@ -109,8 +111,9 @@ endif ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) CSRCS += cairo-quartz-surface.c \ + cairo-quartz2-surface.c \ cairo-atsui-font.c -EXPORTS += cairo-quartz.h cairo-atsui.h +EXPORTS += cairo-quartz.h cairo-quartz2.h cairo-atsui.h endif ifeq ($(MOZ_WIDGET_TOOLKIT),beos) diff --git a/mozilla/gfx/cairo/cairo/src/cairo-atsui-font.c b/mozilla/gfx/cairo/cairo/src/cairo-atsui-font.c index b27a2eeee9f..b075ff22347 100644 --- a/mozilla/gfx/cairo/cairo/src/cairo-atsui-font.c +++ b/mozilla/gfx/cairo/cairo/src/cairo-atsui-font.c @@ -307,9 +307,12 @@ _cairo_atsui_font_create_toy(cairo_toy_font_face_t *toy_face, kFontNoLanguageCode, &fontID); } + /* Need to specify more tags, e.g. kATSUHangingInhibitFactorTag */ + /* Should use ATSU Variations to exactly specify weight and slant */ ATSUAttributeTag styleTags[] = { kATSUQDItalicTag, kATSUQDBoldfaceTag, kATSUFontTag }; - ATSUAttributeValuePtr styleValues[] = { &isItalic, &isBold, &fontID }; + ATSUAttributeValuePtr styleValues[] = + { &isItalic, &isBold, &fontID }; ByteCount styleSizes[] = { sizeof(Boolean), sizeof(Boolean), sizeof(ATSUFontID) }; @@ -317,7 +320,6 @@ _cairo_atsui_font_create_toy(cairo_toy_font_face_t *toy_face, sizeof(styleTags) / sizeof(styleTags[0]), styleTags, styleSizes, styleValues); - return _cairo_atsui_font_create_scaled (&toy_face->base, fontID, style, font_matrix, ctm, options, font_out); } @@ -336,6 +338,28 @@ _cairo_atsui_font_fini(void *abstract_font) ATSUDisposeStyle(font->unscaled_style); } +cairo_bool_t +_cairo_scaled_font_is_atsui (cairo_scaled_font_t *sfont) +{ + return (sfont->backend == &cairo_atsui_scaled_font_backend); +} + +ATSUStyle +_cairo_atsui_scaled_font_get_atsu_style (cairo_scaled_font_t *sfont) +{ + cairo_atsui_font_t *afont = (cairo_atsui_font_t *) sfont; + + return afont->style; +} + +ATSUFontID +_cairo_atsui_scaled_font_get_atsu_font_id (cairo_scaled_font_t *sfont) +{ + cairo_atsui_font_t *afont = (cairo_atsui_font_t *) sfont; + + return afont->fontID; +} + static cairo_status_t _cairo_atsui_font_init_glyph_metrics (cairo_atsui_font_t *font, cairo_scaled_glyph_t *scaled_glyph) @@ -565,7 +589,7 @@ _cairo_atsui_font_old_show_glyphs (void *abstract_font, CGContextRef myBitmapContext; CGColorSpaceRef colorSpace; cairo_image_surface_t *destImageSurface; - int i; + int i, bits_per_comp, alpha; void *extra = NULL; cairo_rectangle_t rect = {dest_x, dest_y, width, height}; @@ -576,15 +600,34 @@ _cairo_atsui_font_old_show_glyphs (void *abstract_font, &extra); // Create a CGBitmapContext for the dest surface for drawing into - colorSpace = CGColorSpaceCreateDeviceRGB(); + if (destImageSurface->depth == 1) { + colorSpace = CGColorSpaceCreateDeviceGray(); + bits_per_comp = 1; + alpha = kCGImageAlphaNone; + } else if (destImageSurface->depth == 8) { + colorSpace = CGColorSpaceCreateDeviceGray(); + bits_per_comp = 8; + alpha = kCGImageAlphaNone; + } else if (destImageSurface->depth == 24) { + colorSpace = CGColorSpaceCreateDeviceRGB(); + bits_per_comp = 8; + alpha = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Host; + } else if (destImageSurface->depth == 32) { + colorSpace = CGColorSpaceCreateDeviceRGB(); + bits_per_comp = 8; + alpha = kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host; + } else { + // not reached + return CAIRO_INT_STATUS_UNSUPPORTED; + } myBitmapContext = CGBitmapContextCreate(destImageSurface->data, destImageSurface->width, destImageSurface->height, - destImageSurface->depth / 4, + bits_per_comp, destImageSurface->stride, colorSpace, - kCGImageAlphaPremultipliedFirst); + alpha); CGContextTranslateCTM(myBitmapContext, 0, destImageSurface->height); CGContextScaleCTM(myBitmapContext, 1.0f, -1.0f); diff --git a/mozilla/gfx/cairo/cairo/src/cairo-features.h.in b/mozilla/gfx/cairo/cairo/src/cairo-features.h.in index 7234ee6711e..28d183e631d 100644 --- a/mozilla/gfx/cairo/cairo/src/cairo-features.h.in +++ b/mozilla/gfx/cairo/cairo/src/cairo-features.h.in @@ -67,6 +67,8 @@ @QUARTZ_SURFACE_FEATURE@ +@QUARTZGL_SURFACE_FEATURE@ + @XCB_SURFACE_FEATURE@ @WIN32_SURFACE_FEATURE@ diff --git a/mozilla/gfx/cairo/cairo/src/cairo-quartz-private.h b/mozilla/gfx/cairo/cairo/src/cairo-quartz-private.h index d291c766687..de6b9153142 100644 --- a/mozilla/gfx/cairo/cairo/src/cairo-quartz-private.h +++ b/mozilla/gfx/cairo/cairo/src/cairo-quartz-private.h @@ -58,4 +58,13 @@ typedef struct cairo_quartz_surface { cairo_bool_t _cairo_surface_is_quartz (cairo_surface_t *surface); +cairo_bool_t +_cairo_scaled_font_is_atsui (cairo_scaled_font_t *sfont); + +ATSUStyle +_cairo_atsui_scaled_font_get_atsu_style (cairo_scaled_font_t *sfont); + +ATSUFontID +_cairo_atsui_scaled_font_get_atsu_font_id (cairo_scaled_font_t *sfont); + #endif /* CAIRO_QUARTZ_PRIVATE_H */ diff --git a/mozilla/gfx/cairo/cairo/src/cairo-quartz2-surface.c b/mozilla/gfx/cairo/cairo/src/cairo-quartz2-surface.c new file mode 100644 index 00000000000..22042197b68 --- /dev/null +++ b/mozilla/gfx/cairo/cairo/src/cairo-quartz2-surface.c @@ -0,0 +1,1611 @@ +/* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2006 Mozilla Corporation + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * + * Contributor(s): + * Vladimir Vukicevic + */ + +#include + +#include +#include + +#include "cairoint.h" +#include "cairo-private.h" +#include "cairo-quartz2.h" + +#include "cairo-quartz-private.h" + +/* This method is private, but it exists. Its params are are exposed + * as args to the NS* method, but not as CG. + */ +enum PrivateCGCompositeMode { + kPrivateCGCompositeClear = 0, + kPrivateCGCompositeCopy = 1, + kPrivateCGCompositeSourceOver = 2, + kPrivateCGCompositeSourceIn = 3, + kPrivateCGCompositeSourceOut = 4, + kPrivateCGCompositeSourceAtop = 5, + kPrivateCGCompositeDestinationOver = 6, + kPrivateCGCompositeDestinationIn = 7, + kPrivateCGCompositeDestinationOut = 8, + kPrivateCGCompositeDestinationAtop = 9, + kPrivateCGCompositeXOR = 10, + kPrivateCGCompositePlusDarker = 11, // (max (0, (1-d) + (1-s))) + kPrivateCGCompositePlusLighter = 12, // (min (1, s + d)) +}; +typedef enum PrivateCGCompositeMode PrivateCGCompositeMode; +CG_EXTERN void CGContextSetCompositeOperation (CGContextRef, PrivateCGCompositeMode); +CG_EXTERN void CGContextResetCTM (CGContextRef); +CG_EXTERN void CGContextSetCTM (CGContextRef, CGAffineTransform); +CG_EXTERN void CGContextResetClip (CGContextRef); +CG_EXTERN CGSize CGContextGetPatternPhase (CGContextRef); + +typedef struct cairo_quartzgl_surface { + cairo_surface_t base; + + void *imageData; + + cairo_bool_t y_grows_down; + + AGLContext aglContext; + CGContextRef cgContext; + + cairo_rectangle_t extents; + + /* These are stored while drawing operations are in place, set up + * by quartzgl_setup_source() and quartzgl_finish_source() + */ + CGImageRef sourceImage; + CGShadingRef sourceShading; + CGPatternRef sourcePattern; +} cairo_quartzgl_surface_t; + +/** + ** Utility functions + **/ + +/* + * Cairo path -> Quartz path conversion helpers + */ + +/* cairo path -> mutable path */ +static cairo_status_t +_cairo_path_to_quartz_path_move_to (void *closure, cairo_point_t *point) +{ + CGPathMoveToPoint ((CGMutablePathRef) closure, NULL, _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_path_to_quartz_path_line_to (void *closure, cairo_point_t *point) +{ + CGPathAddLineToPoint ((CGMutablePathRef) closure, NULL, _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_path_to_quartz_path_curve_to (void *closure, cairo_point_t *p0, cairo_point_t *p1, cairo_point_t *p2) +{ + CGPathAddCurveToPoint ((CGMutablePathRef) closure, NULL, + _cairo_fixed_to_double(p0->x), _cairo_fixed_to_double(p0->y), + _cairo_fixed_to_double(p1->x), _cairo_fixed_to_double(p1->y), + _cairo_fixed_to_double(p2->x), _cairo_fixed_to_double(p2->y)); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_path_to_quartz_path_close_path (void *closure) +{ + CGPathCloseSubpath ((CGMutablePathRef) closure); + return CAIRO_STATUS_SUCCESS; +} + +/* cairo path -> execute in context */ +static cairo_status_t +_cairo_path_to_quartz_context_move_to (void *closure, cairo_point_t *point) +{ + //fprintf (stderr, "moveto: %f %f\n", _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + CGContextMoveToPoint ((CGContextRef) closure, _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_path_to_quartz_context_line_to (void *closure, cairo_point_t *point) +{ + //fprintf (stderr, "lineto: %f %f\n", _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + if (CGContextIsPathEmpty ((CGContextRef) closure)) + CGContextMoveToPoint ((CGContextRef) closure, _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + else + CGContextAddLineToPoint ((CGContextRef) closure, _cairo_fixed_to_double(point->x), _cairo_fixed_to_double(point->y)); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_path_to_quartz_context_curve_to (void *closure, cairo_point_t *p0, cairo_point_t *p1, cairo_point_t *p2) +{ + //fprintf (stderr, "curveto: %f,%f %f,%f %f,%f\n", + // _cairo_fixed_to_double(p0->x), _cairo_fixed_to_double(p0->y), + // _cairo_fixed_to_double(p1->x), _cairo_fixed_to_double(p1->y), + // _cairo_fixed_to_double(p2->x), _cairo_fixed_to_double(p2->y)); + + CGContextAddCurveToPoint ((CGContextRef) closure, + _cairo_fixed_to_double(p0->x), _cairo_fixed_to_double(p0->y), + _cairo_fixed_to_double(p1->x), _cairo_fixed_to_double(p1->y), + _cairo_fixed_to_double(p2->x), _cairo_fixed_to_double(p2->y)); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_path_to_quartz_context_close_path (void *closure) +{ + //fprintf (stderr, "closepath\n"); + CGContextClosePath ((CGContextRef) closure); + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_quartzgl_cairo_path_to_quartz_path (cairo_path_fixed_t *path, + CGMutablePathRef cgPath) +{ + return _cairo_path_fixed_interpret (path, + CAIRO_DIRECTION_FORWARD, + _cairo_path_to_quartz_path_move_to, + _cairo_path_to_quartz_path_line_to, + _cairo_path_to_quartz_path_curve_to, + _cairo_path_to_quartz_path_close_path, + cgPath); +} + +static cairo_status_t +_cairo_quartzgl_cairo_path_to_quartz_context (cairo_path_fixed_t *path, + CGContextRef cgc) +{ + return _cairo_path_fixed_interpret (path, + CAIRO_DIRECTION_FORWARD, + _cairo_path_to_quartz_context_move_to, + _cairo_path_to_quartz_context_line_to, + _cairo_path_to_quartz_context_curve_to, + _cairo_path_to_quartz_context_close_path, + cgc); +} + +/* + * Misc helpers/callbacks + */ + +static PrivateCGCompositeMode +_cairo_quartzgl_cairo_operator_to_quartz (cairo_operator_t op) +{ + switch (op) { + case CAIRO_OPERATOR_CLEAR: + return kPrivateCGCompositeClear; + case CAIRO_OPERATOR_SOURCE: + return kPrivateCGCompositeCopy; + case CAIRO_OPERATOR_OVER: + return kPrivateCGCompositeSourceOver; + case CAIRO_OPERATOR_IN: + /* XXX This doesn't match image output */ + return kPrivateCGCompositeSourceIn; + case CAIRO_OPERATOR_OUT: + /* XXX This doesn't match image output */ + return kPrivateCGCompositeSourceOut; + case CAIRO_OPERATOR_ATOP: + return kPrivateCGCompositeSourceAtop; + + case CAIRO_OPERATOR_DEST: + /* XXX this is handled specially (noop)! */ + return kPrivateCGCompositeCopy; + case CAIRO_OPERATOR_DEST_OVER: + return kPrivateCGCompositeDestinationOver; + case CAIRO_OPERATOR_DEST_IN: + /* XXX This doesn't match image output */ + return kPrivateCGCompositeDestinationIn; + case CAIRO_OPERATOR_DEST_OUT: + return kPrivateCGCompositeDestinationOut; + case CAIRO_OPERATOR_DEST_ATOP: + /* XXX This doesn't match image output */ + return kPrivateCGCompositeDestinationAtop; + + case CAIRO_OPERATOR_XOR: + return kPrivateCGCompositeXOR; /* This will generate strange results */ + case CAIRO_OPERATOR_ADD: + return kPrivateCGCompositePlusLighter; + case CAIRO_OPERATOR_SATURATE: + /* XXX This doesn't match image output for SATURATE; there's no equivalent */ + return kPrivateCGCompositePlusDarker; /* ??? */ + } + + + return kPrivateCGCompositeCopy; +} + +static CGLineCap +_cairo_quartzgl_cairo_line_cap_to_quartz (cairo_line_cap_t ccap) +{ + switch (ccap) { + case CAIRO_LINE_CAP_BUTT: return kCGLineCapButt; break; + case CAIRO_LINE_CAP_ROUND: return kCGLineCapRound; break; + case CAIRO_LINE_CAP_SQUARE: return kCGLineCapSquare; break; + } + + return kCGLineCapButt; +} + +static CGLineJoin +_cairo_quartzgl_cairo_line_join_to_quartz (cairo_line_join_t cjoin) +{ + switch (cjoin) { + case CAIRO_LINE_JOIN_MITER: return kCGLineJoinMiter; break; + case CAIRO_LINE_JOIN_ROUND: return kCGLineJoinRound; break; + case CAIRO_LINE_JOIN_BEVEL: return kCGLineJoinBevel; break; + } + + return kCGLineJoinMiter; +} + +static void +_cairo_quartzgl_cairo_matrix_to_quartz (const cairo_matrix_t *src, + CGAffineTransform *dst) +{ + dst->a = src->xx; + dst->b = src->xy; + dst->c = src->yx; + dst->d = src->yy; + dst->tx = src->x0; + dst->ty = src->y0; +} + +/** + ** Source -> Quartz setup and finish functions + **/ + +static void +ComputeGradientValue (void *info, const float *in, float *out) +{ + float fdist = *in; /* 0.0 .. 1.0 */ + cairo_fixed_16_16_t fdist_fix = _cairo_fixed_from_double(*in); + cairo_gradient_pattern_t *grad = (cairo_gradient_pattern_t*) info; + int i; + + for (i = 0; i < grad->n_stops; i++) { + if (grad->stops[i].x > fdist_fix) + break; + } + + //fprintf (stderr, "in: %f i: %d n_stops: %d\n", fdist, i, grad->n_stops); + + if (i == 0 || i == grad->n_stops) { + if (i == grad->n_stops) + --i; + out[0] = grad->stops[i].color.red / 65535.; + out[1] = grad->stops[i].color.green / 65535.; + out[2] = grad->stops[i].color.blue / 65535.; + out[3] = grad->stops[i].color.alpha / 65535.; + } else { + float ax = _cairo_fixed_to_double(grad->stops[i-1].x); + float bx = _cairo_fixed_to_double(grad->stops[i].x) - ax; + fdist -= ax; + + float bp = fdist/bx; + float ap = 1.0 - bp; + + //fprintf (stderr, "ax: %f bx: %f fdist: %f bp: %f ap: %f\n", ax, bx, fdist, bp, ap); + out[0] = + (grad->stops[i-1].color.red / 65535.) * ap + + (grad->stops[i].color.red / 65535.) * bp; + out[1] = + (grad->stops[i-1].color.green / 65535.) * ap + + (grad->stops[i].color.green / 65535.) * bp; + out[2] = + (grad->stops[i-1].color.blue / 65535.) * ap + + (grad->stops[i].color.blue / 65535.) * bp; + out[3] = + (grad->stops[i-1].color.alpha / 65535.) * ap + + (grad->stops[i].color.alpha / 65535.) * bp; + } + + //fprintf (stderr, "out: %f %f %f %f\n", out[0], out[1], out[2], out[3]); +} + +static CGFunctionRef +CreateGradientFunction (cairo_gradient_pattern_t *gpat) +{ + static const float input_value_range[2] = { 0.f, 1.f }; + static const float output_value_ranges[8] = { 0.f, 1.f, 0.f, 1.f, 0.f, 1.f, 0.f, 1.f }; + static const CGFunctionCallbacks callbacks = { + 0, ComputeGradientValue, (CGFunctionReleaseInfoCallback) cairo_pattern_destroy + }; + + return CGFunctionCreate (gpat, + 1, + input_value_range, + 4, + output_value_ranges, + &callbacks); +} + +static CGShadingRef +_cairo_quartzgl_cairo_gradient_pattern_to_quartz (cairo_pattern_t *abspat) +{ + cairo_matrix_t mat; + double x0, y0; + + if (abspat->type != CAIRO_PATTERN_LINEAR && + abspat->type != CAIRO_PATTERN_RADIAL) + return NULL; + + /* We can only do this if we have an identity pattern matrix; + * otherwise fall back through to the generic pattern case. + * XXXperf we could optimize this by creating a pattern with the shading; + * but we'd need to know the extents to do that. + */ + cairo_pattern_get_matrix (abspat, &mat); + if (mat.xx != 1.0 || mat.yy != 1.0 || mat.xy != 0.0 || mat.yx != 0.0) + return NULL; + + x0 = mat.x0; + y0 = mat.y0; + + if (abspat->type == CAIRO_PATTERN_LINEAR) { + cairo_linear_pattern_t *lpat = (cairo_linear_pattern_t*) abspat; + CGShadingRef shading; + CGPoint start, end; + CGFunctionRef gradFunc; + CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB(); + + start = CGPointMake (_cairo_fixed_to_double (lpat->gradient.p1.x) - x0, + _cairo_fixed_to_double (lpat->gradient.p1.y) - y0); + end = CGPointMake (_cairo_fixed_to_double (lpat->gradient.p2.x) - x0, + _cairo_fixed_to_double (lpat->gradient.p2.y) - y0); + + cairo_pattern_reference (abspat); + gradFunc = CreateGradientFunction ((cairo_gradient_pattern_t*) lpat); + shading = CGShadingCreateAxial (rgb, + start, end, + gradFunc, + true, true); + CGColorSpaceRelease(rgb); + CGFunctionRelease(gradFunc); + + return shading; + } + + if (abspat->type == CAIRO_PATTERN_RADIAL) { + cairo_radial_pattern_t *rpat = (cairo_radial_pattern_t*) abspat; + CGShadingRef shading; + CGPoint start, end; + CGFunctionRef gradFunc; + CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB(); + + start = CGPointMake (_cairo_fixed_to_double (rpat->gradient.inner.x) - x0, + _cairo_fixed_to_double (rpat->gradient.inner.y) - y0); + end = CGPointMake (_cairo_fixed_to_double (rpat->gradient.outer.x) - x0, + _cairo_fixed_to_double (rpat->gradient.outer.y) - y0); + + cairo_pattern_reference (abspat); + gradFunc = CreateGradientFunction ((cairo_gradient_pattern_t*) rpat); + shading = CGShadingCreateRadial (rgb, + start, + _cairo_fixed_to_double (rpat->gradient.inner.radius), + end, + _cairo_fixed_to_double (rpat->gradient.outer.radius), + gradFunc, + true, true); + CGColorSpaceRelease(rgb); + CGFunctionRelease(gradFunc); + + return shading; + } + + /* Shouldn't be reached */ + return NULL; +} + + +/* Generic cairo_pattern -> CGPattern function */ +static void +SurfacePatternDrawFunc (void *info, CGContextRef context) +{ + cairo_surface_pattern_t *spat = (cairo_surface_pattern_t *) info; + cairo_surface_t *pat_surf = spat->surface; + cairo_rectangle_t extents; + cairo_status_t status; + + cairo_quartzgl_surface_t *quartz_surf = NULL; + + /* Coordinates in this function are always in pattern space, which + * uses the opengl Y axis orientation. + */ + CGImageRef img; + + if (!cairo_surface_is_quartzgl (pat_surf)) { + //fprintf (stderr, "-- source is not quartzgl surface\n"); + /* This sucks; we should really store a dummy quartzgl surface + * for passing in here */ + + cairo_surface_t *dummy = cairo_quartzgl_surface_create (CAIRO_FORMAT_ARGB32, 1, 1, TRUE); + + cairo_rectangle_t rect; + _cairo_surface_get_extents (pat_surf, &rect); + + cairo_surface_t *new_surf = NULL; + + _cairo_surface_clone_similar (dummy, pat_surf, &new_surf); + + cairo_surface_destroy(dummy); + + quartz_surf = (cairo_quartzgl_surface_t *) new_surf; + } else { + //fprintf (stderr, "-- source is quartzgl surface\n"); + /* If it's a quartzgl surface, we can try to see if it's a CGBitmapContext; + * we do this when we call CGBitmapContextCreateImage below. + */ + cairo_surface_reference (pat_surf); + quartz_surf = (cairo_quartzgl_surface_t*) pat_surf; + } + + /* this is a 10.4 API */ + img = CGBitmapContextCreateImage (quartz_surf->cgContext); + if (!img) + //fprintf (stderr, "CGBitmapContextCreateImage failed\n"); + + { + CGAffineTransform xform = CGContextGetCTM(context); + //fprintf (stderr, " pattern draw xform: t: %f %f xx: %f xy: %f yx: %f yy: %f\n", xform.tx, xform.ty, xform.a, xform.b, xform.c, xform.d); + } + + CGRect imageBounds; + imageBounds.size = CGSizeMake (CGImageGetWidth(img), CGImageGetHeight(img)); + imageBounds.origin.x = 0; + imageBounds.origin.y = 0; + + //fprintf (stderr, "bounds: %f %f\n", imageBounds.size.width, imageBounds.size.height); + CGContextDrawImage (context, imageBounds, img); + + //CGContextSetRGBFillColor (context, 0, 1, 1, 1); + //CGContextFillRect (context, imageBounds); + + CGImageRelease (img); + + cairo_surface_destroy ((cairo_surface_t*) quartz_surf); +} + +static CGPatternRef +_cairo_quartzgl_cairo_repeating_surface_pattern_to_quartz (cairo_quartzgl_surface_t *dest, + cairo_pattern_t *abspat) +{ + cairo_surface_pattern_t *spat; + cairo_surface_t *pat_surf; + cairo_rectangle_t extents; + + CGRect pbounds; + CGAffineTransform ptransform, stransform; + CGPatternCallbacks cb = { 0, + SurfacePatternDrawFunc, + (CGFunctionReleaseInfoCallback) cairo_pattern_destroy }; + CGPatternRef cgpat; + float rw, rh; + + /* SURFACE is the only type we'll handle here */ + if (abspat->type != CAIRO_PATTERN_SURFACE) + return NULL; + + spat = (cairo_surface_pattern_t *) abspat; + pat_surf = spat->surface; + + _cairo_surface_get_extents (pat_surf, &extents); + pbounds.origin.x = 0; + pbounds.origin.y = 0; + pbounds.size.width = extents.width; + pbounds.size.height = extents.height; + + cairo_matrix_t m = spat->base.matrix; + cairo_matrix_invert(&m); + _cairo_quartzgl_cairo_matrix_to_quartz (&m, &stransform); + + //fprintf (stderr, " cairo inv pattern xform: t: %f %f xx: %f xy: %f yx: %f yy: %f\n", + // stransform.tx, stransform.ty, stransform.a, stransform.b, stransform.c, stransform.d); + + ptransform = CGContextGetCTM (dest->cgContext); + ptransform = CGAffineTransformConcat (stransform, ptransform); + + //fprintf (stderr, " pattern xform: t: %f %f xx: %f xy: %f yx: %f yy: %f\n", + // ptransform.tx, ptransform.ty, ptransform.a, ptransform.b, ptransform.c, ptransform.d); + + // kjs seems to indicate this should work (setting to 0,0 to avoid tiling); however, + // the pattern CTM scaling ends up being NaN in the pattern draw function if + // either rw or rh are 0. +#if 0 + if (spat->base.extend == CAIRO_EXTEND_NONE) { + /* XXX wasteful; this will keep drawing the pattern in the original + * location. We need to set up the clip region instead to do this right. + */ + rw = 0; + rh = 0; + } else if (spat->base.extend == CAIRO_EXTEND_REPEAT) { + rw = extents.width; + rh = extents.height; + } else if (spat->base.extend == CAIRO_EXTEND_REFLECT) { + /* XXX broken; need to emulate by reflecting the image into 4 quadrants + * and then tiling that + */ + rw = extents.width; + rh = extents.height; + } else { + /* CAIRO_EXTEND_PAD */ + /* XXX broken. */ + rw = 0; + rh = 0; + } +#else + rw = extents.width; + rh = extents.height; +#endif + + cairo_pattern_reference (abspat); + cgpat = CGPatternCreate (abspat, + pbounds, + ptransform, + rw, rh, + kCGPatternTilingConstantSpacing, /* kCGPatternTilingNoDistortion, */ + TRUE, + &cb); + return cgpat; +} + +typedef enum { + DO_SOLID, + DO_SHADING, + DO_PATTERN, + DO_UNSUPPORTED +} cairo_quartzgl_action_t; + +static cairo_quartzgl_action_t +_cairo_quartzgl_setup_source (cairo_quartzgl_surface_t *surface, + cairo_pattern_t *source) +{ + assert (!(surface->sourceImage || surface->sourceShading || surface->sourcePattern)); + + if (source->type == CAIRO_PATTERN_SOLID) { + cairo_solid_pattern_t *solid = (cairo_solid_pattern_t *) source; + + CGContextSetRGBStrokeColor (surface->cgContext, + solid->color.red, + solid->color.green, + solid->color.blue, + solid->color.alpha); + CGContextSetRGBFillColor (surface->cgContext, + solid->color.red, + solid->color.green, + solid->color.blue, + solid->color.alpha); + } else if (source->type == CAIRO_PATTERN_LINEAR || + source->type == CAIRO_PATTERN_RADIAL) + { + CGShadingRef shading = _cairo_quartzgl_cairo_gradient_pattern_to_quartz (source); + if (!shading) + return CAIRO_INT_STATUS_UNSUPPORTED; + + surface->sourceShading = shading; + } else if (source->type == CAIRO_PATTERN_SURFACE) { + CGPatternRef pattern = _cairo_quartzgl_cairo_repeating_surface_pattern_to_quartz (surface, source); + if (!pattern) + return CAIRO_INT_STATUS_UNSUPPORTED; + + float patternAlpha = 1.0; + CGColorSpaceRef patternSpace = CGColorSpaceCreatePattern(NULL); + CGContextSetFillColorSpace (surface->cgContext, patternSpace); + CGContextSetFillPattern (surface->cgContext, pattern, &patternAlpha); + CGColorSpaceRelease (patternSpace); + + /* Quartz likes to munge the pattern phase (as yet unexplained why); force + * it to 0,0 otherwise things break badly. */ + + CGContextSetPatternPhase (surface->cgContext, CGSizeMake(0,0)); + surface->sourcePattern = pattern; + } else { + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + return CAIRO_STATUS_SUCCESS; +} + +static void +_cairo_quartzgl_teardown_source (cairo_quartzgl_surface_t *surface, + cairo_pattern_t *source) +{ + if (surface->sourceImage) { + // nothing to do; we don't use sourceImage yet + } + + if (surface->sourceShading) { + CGShadingRelease(surface->sourceShading); + surface->sourceShading = NULL; + } + + if (surface->sourcePattern) { + CGPatternRelease(surface->sourcePattern); + surface->sourcePattern = NULL; + } +} + +/** + ** get source/dest image implementation + **/ + +static void +ImageDataReleaseFunc(void *info, const void *data, size_t size) +{ + if (data != NULL) { + free((void *) data); + } +} + +/* Read the image from the surface's front buffer */ +static cairo_int_status_t +_cairo_quartzgl_get_image (cairo_quartzgl_surface_t *surface, + cairo_image_surface_t **image_out, + unsigned char **data_out) +{ + unsigned char *imageData; + cairo_image_surface_t *isurf; + + /* If we weren't constructed with an AGL Context + * or a CCGBitmapContext, then we have no way + * of doing this + */ + if (surface->aglContext) { + AGLContext oldContext; + cairo_format_masks_t masks = { 32, 0xff << 24, 0xff << 16, 0xff << 8, 0xff << 0 }; + unsigned int i; + + oldContext = aglGetCurrentContext(); + if (oldContext != surface->aglContext) + aglSetCurrentContext(surface->aglContext); + + imageData = (unsigned char *) malloc (surface->extents.width * surface->extents.height * 4); + if (!imageData) + return CAIRO_STATUS_NO_MEMORY; + + glReadBuffer (GL_FRONT); + glReadPixels (0, 0, surface->extents.width, surface->extents.height, + GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, + imageData); + + /* swap lines */ + /* XXX find some fast code to do this */ + unsigned int lineSize = surface->extents.width * 4; + unsigned char *tmpLine = malloc(lineSize); + for (i = 0; i < surface->extents.height / 2; i++) { + unsigned char *l0 = imageData + lineSize * i; + unsigned char *l1 = imageData + (lineSize * (surface->extents.height - i - 1)); + memcpy (tmpLine, l0, lineSize); + memcpy (l0, l1, lineSize); + memcpy (l1, tmpLine, lineSize); + } + free (tmpLine); + + if (oldContext && oldContext != surface->aglContext) + aglSetCurrentContext(oldContext); + + isurf = (cairo_image_surface_t *)_cairo_image_surface_create_with_masks + (imageData, + &masks, + surface->extents.width, + surface->extents.height, + surface->extents.width * 4); + + if (data_out) + *data_out = imageData; + else + _cairo_image_surface_assume_ownership_of_data (isurf); + } else if (CGBitmapContextGetBitmapInfo(surface->cgContext) != 0) { + unsigned int stride; + unsigned int bitinfo; + unsigned int bpc, bpp; + CGColorSpaceRef colorspace; + unsigned int color_comps; + + imageData = (unsigned char *) CGBitmapContextGetData(surface->cgContext); + bitinfo = CGBitmapContextGetBitmapInfo (surface->cgContext); + stride = CGBitmapContextGetBytesPerRow (surface->cgContext); + bpp = CGBitmapContextGetBitsPerPixel (surface->cgContext); + bpc = CGBitmapContextGetBitsPerComponent (surface->cgContext); + + // let's hope they don't add YUV under us + colorspace = CGBitmapContextGetColorSpace (surface->cgContext); + color_comps = CGColorSpaceGetNumberOfComponents(colorspace); + + // XXX TODO: We can handle all of these by converting to + // pixman masks, including non-native-endian masks + if (bpc != 8) + return CAIRO_INT_STATUS_UNSUPPORTED; + + if (bpp != 32 && bpp != 8) + return CAIRO_INT_STATUS_UNSUPPORTED; + + if (color_comps != 3 && color_comps != 1) + return CAIRO_INT_STATUS_UNSUPPORTED; + + if (bpp == 32 && color_comps == 3 && + (bitinfo & kCGBitmapAlphaInfoMask) == kCGImageAlphaPremultipliedFirst && + (bitinfo & kCGBitmapByteOrderMask) == kCGBitmapByteOrder32Host) + { + isurf = (cairo_image_surface_t *) + cairo_image_surface_create_for_data (imageData, + CAIRO_FORMAT_ARGB32, + surface->extents.width, + surface->extents.height, + stride); + } else if (bpp == 32 && color_comps == 3 && + (bitinfo & kCGBitmapAlphaInfoMask) == kCGImageAlphaNoneSkipFirst && + (bitinfo & kCGBitmapByteOrderMask) == kCGBitmapByteOrder32Host) + { + isurf = (cairo_image_surface_t *) + cairo_image_surface_create_for_data (imageData, + CAIRO_FORMAT_RGB24, + surface->extents.width, + surface->extents.height, + stride); + } else if (bpp == 8 && color_comps == 1) + { + isurf = (cairo_image_surface_t *) + cairo_image_surface_create_for_data (imageData, + CAIRO_FORMAT_A8, + surface->extents.width, + surface->extents.height, + stride); + } else { + return CAIRO_INT_STATUS_UNSUPPORTED; + } + } else { + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + *image_out = isurf; + return CAIRO_STATUS_SUCCESS; +} + +/** + ** Cairo surface backend implementations + **/ + +static cairo_status_t +_cairo_quartzgl_surface_finish (void *abstract_surface) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_finish\n", surface); + + if (surface->aglContext) + aglSetCurrentContext(surface->aglContext); + + CGContextFlush (surface->cgContext); + CGContextRelease (surface->cgContext); + surface->cgContext = NULL; + + if (surface->aglContext) + glFlush(); + + surface->aglContext = NULL; + + if (surface->imageData) { + free (surface->imageData); + surface->imageData = NULL; + } + + return CAIRO_STATUS_SUCCESS; +} + +static cairo_status_t +_cairo_quartzgl_surface_acquire_source_image (void *abstract_surface, + cairo_image_surface_t **image_out, + void **image_extra) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_acquire_source_image\n", surface); + + *image_extra = NULL; + + return _cairo_quartzgl_get_image (surface, image_out, NULL); +} + +static cairo_status_t +_cairo_quartzgl_surface_acquire_dest_image (void *abstract_surface, + cairo_rectangle_t *interest_rect, + cairo_image_surface_t **image_out, + cairo_rectangle_t *image_rect, + void **image_extra) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + cairo_int_status_t status; + unsigned char *data; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_acquire_dest_image\n", surface); + + *image_rect = surface->extents; + + status = _cairo_quartzgl_get_image (surface, image_out, &data); + if (status) + return status; + + *image_extra = data; + + return CAIRO_STATUS_SUCCESS; +} + +static void +_cairo_quartzgl_surface_release_dest_image (void *abstract_surface, + cairo_rectangle_t *interest_rect, + cairo_image_surface_t *image, + cairo_rectangle_t *image_rect, + void *image_extra) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + unsigned char *imageData = (unsigned char *) image_extra; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_release_dest_image\n", surface); + + if (!CGBitmapContextGetData (surface->cgContext)) { + CGDataProviderRef dataProvider; + CGImageRef img; + + dataProvider = CGDataProviderCreateWithData (NULL, imageData, + surface->extents.width * surface->extents.height * 4, + ImageDataReleaseFunc); + + img = CGImageCreate (surface->extents.width, surface->extents.height, + 8, 32, + surface->extents.width * 4, + CGColorSpaceCreateDeviceRGB(), + kCGImageAlphaPremultipliedFirst, + dataProvider, + NULL, + false, + kCGRenderingIntentDefault); + + /* Insert screaming here */ + /* We have a y-inverting CTM set on the cgContext. However, + * images are still drawn top-down, and we can't flip an image + * by drawing a negative width or height. We need to undo + * that transform so that we can draw our image back sanely. + */ + if (surface->y_grows_down) { + CGContextSaveGState (surface->cgContext); + CGContextScaleCTM (surface->cgContext, 1.0, -1.0); + CGContextTranslateCTM (surface->cgContext, 0.0, -surface->extents.height); + } + + CGContextSetCompositeOperation (surface->cgContext, kPrivateCGCompositeCopy); + + CGContextDrawImage (surface->cgContext, + CGRectMake (0, 0, surface->extents.width, surface->extents.height), + img); + + if (surface->y_grows_down) { + CGContextRestoreGState (surface->cgContext); + } + + CGImageRelease (img); + CGDataProviderRelease (dataProvider); + } + + cairo_surface_destroy ((cairo_surface_t *) image); +} + +static cairo_surface_t * +_cairo_quartzgl_surface_create_similar (void *abstract_surface, + cairo_content_t content, + int width, + int height) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + + cairo_format_t format; + + if (content == CAIRO_CONTENT_COLOR_ALPHA) + format = CAIRO_FORMAT_ARGB32; + else if (content == CAIRO_CONTENT_COLOR) + format = CAIRO_FORMAT_RGB24; + else if (content == CAIRO_CONTENT_ALPHA) + format = CAIRO_FORMAT_A8; + else + return NULL; + + return cairo_quartzgl_surface_create (format, width, height, surface->y_grows_down); +} + +static cairo_status_t +_cairo_quartzgl_surface_clone_similar (void *abstract_surface, + cairo_surface_t *src, + cairo_surface_t **clone_out) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + cairo_quartzgl_surface_t *new_surface = NULL; + cairo_format_t new_format; + + CGImageRef quartz_image = NULL; + cairo_surface_t *surface_to_release = NULL; + + if (cairo_surface_is_quartzgl (src)) { + cairo_quartzgl_surface_t *qsurf = (cairo_quartzgl_surface_t *) src; + quartz_image = CGBitmapContextCreateImage (qsurf->cgContext); + new_format = CAIRO_FORMAT_ARGB32; /* XXX bogus; recover a real format from the image */ + } else if (_cairo_surface_is_image (src)) { + cairo_image_surface_t *isurf = (cairo_image_surface_t *) src; + CGDataProviderRef dataProvider; + CGColorSpaceRef cgColorspace; + CGBitmapInfo bitinfo; + int bitsPerComponent, bitsPerPixel; + + if (isurf->format == CAIRO_FORMAT_ARGB32) { + cgColorspace = CGColorSpaceCreateDeviceRGB(); + bitinfo = kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host; + bitsPerComponent = 8; + bitsPerPixel = 32; + } else if (isurf->format == CAIRO_FORMAT_RGB24) { + cgColorspace = CGColorSpaceCreateDeviceRGB(); + bitinfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Host; + bitsPerComponent = 8; + bitsPerPixel = 32; + } else if (isurf->format == CAIRO_FORMAT_A8) { + cgColorspace = CGColorSpaceCreateDeviceGray(); + bitinfo = kCGImageAlphaNone; + bitsPerComponent = 8; + bitsPerPixel = 8; + } else { + /* SUPPORT A1, maybe */ + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + new_format = isurf->format; + + dataProvider = CGDataProviderCreateWithData (NULL, + isurf->data, + isurf->height * isurf->stride, + NULL); + + quartz_image = CGImageCreate (isurf->width, isurf->height, + bitsPerComponent, + bitsPerPixel, + isurf->stride, + cgColorspace, + bitinfo, + dataProvider, + NULL, + false, + kCGRenderingIntentDefault); + CGDataProviderRelease (dataProvider); + CGColorSpaceRelease (cgColorspace); + } else { + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + if (!quartz_image) + return CAIRO_INT_STATUS_UNSUPPORTED; + + new_surface = (cairo_quartzgl_surface_t *) + cairo_quartzgl_surface_create (new_format, + CGImageGetWidth (quartz_image), + CGImageGetHeight (quartz_image), + surface->y_grows_down); + if (!new_surface || new_surface->base.status) + return CAIRO_INT_STATUS_UNSUPPORTED; + + CGContextSetCompositeOperation (new_surface->cgContext, + kPrivateCGCompositeCopy); + + CGContextTranslateCTM (new_surface->cgContext, 0.0, new_surface->extents.height); + CGContextScaleCTM (new_surface->cgContext, 1.0, -1.0); + + CGContextDrawImage (new_surface->cgContext, + CGRectMake (0, 0, CGImageGetWidth (quartz_image), CGImageGetHeight (quartz_image)), + quartz_image); + CGImageRelease (quartz_image); + + *clone_out = (cairo_surface_t*) new_surface; + + return CAIRO_STATUS_SUCCESS; +} + +static cairo_int_status_t +_cairo_quartzgl_surface_get_extents (void *abstract_surface, + cairo_rectangle_t *extents) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + + *extents = surface->extents; + + return CAIRO_STATUS_SUCCESS; +} + +static cairo_int_status_t +_cairo_quartzgl_surface_paint (void *abstract_surface, + cairo_operator_t op, + cairo_pattern_t *source) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + cairo_int_status_t rv = CAIRO_STATUS_SUCCESS; + cairo_quartzgl_action_t action; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_paint op %d source->type %d\n", surface, op, source->type); + + if (op == CAIRO_OPERATOR_DEST) + return CAIRO_STATUS_SUCCESS; + + CGContextSetCompositeOperation (surface->cgContext, _cairo_quartzgl_cairo_operator_to_quartz (op)); + + CGRect bounds = CGContextGetClipBoundingBox (surface->cgContext); + + action = _cairo_quartzgl_setup_source (surface, source); + + if (action == DO_SOLID || action == DO_PATTERN) { + CGContextFillRect (surface->cgContext, bounds); + } else if (action == DO_SHADING) { + CGContextDrawShading (surface->cgContext, surface->sourceShading); + } else { + rv = CAIRO_INT_STATUS_UNSUPPORTED; + } + + _cairo_quartzgl_teardown_source (surface, source); + + return rv; +} + +static cairo_int_status_t +_cairo_quartzgl_surface_fill (void *abstract_surface, + cairo_operator_t op, + cairo_pattern_t *source, + cairo_path_fixed_t *path, + cairo_fill_rule_t fill_rule, + double tolerance, + cairo_antialias_t antialias) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + cairo_int_status_t rv = CAIRO_STATUS_SUCCESS; + cairo_quartzgl_action_t action; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_fill op %d source->type %d\n", surface, op, source->type); + + if (op == CAIRO_OPERATOR_DEST) + return CAIRO_STATUS_SUCCESS; + + CGContextSaveGState (surface->cgContext); + + CGContextSetShouldAntialias (surface->cgContext, (antialias != CAIRO_ANTIALIAS_NONE)); + CGContextSetCompositeOperation (surface->cgContext, _cairo_quartzgl_cairo_operator_to_quartz (op)); + + action = _cairo_quartzgl_setup_source (surface, source); + if (action == DO_UNSUPPORTED) { + CGContextRestoreGState (surface->cgContext); + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + CGContextBeginPath (surface->cgContext); + _cairo_quartzgl_cairo_path_to_quartz_context (path, surface->cgContext); + + if (action == DO_SOLID || action == DO_PATTERN) { + if (fill_rule == CAIRO_FILL_RULE_WINDING) + CGContextFillPath (surface->cgContext); + else + CGContextEOFillPath (surface->cgContext); + } else if (action == DO_SHADING) { + + // we have to clip and then paint the shading; we can't fill + // with the shading + if (fill_rule == CAIRO_FILL_RULE_WINDING) + CGContextClip (surface->cgContext); + else + CGContextEOClip (surface->cgContext); + + CGContextDrawShading (surface->cgContext, surface->sourceShading); + } else { + rv = CAIRO_INT_STATUS_UNSUPPORTED; + } + + _cairo_quartzgl_teardown_source (surface, source); + + CGContextRestoreGState (surface->cgContext); + + return rv; +} + +static cairo_int_status_t +_cairo_quartzgl_surface_stroke (void *abstract_surface, + cairo_operator_t op, + cairo_pattern_t *source, + cairo_path_fixed_t *path, + cairo_stroke_style_t *style, + cairo_matrix_t *ctm, + cairo_matrix_t *ctm_inverse, + double tolerance, + cairo_antialias_t antialias) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + cairo_int_status_t rv = CAIRO_STATUS_SUCCESS; + cairo_quartzgl_action_t action; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_stroke op %d source->type %d\n", surface, op, source->type); + + if (op == CAIRO_OPERATOR_DEST) + return CAIRO_STATUS_SUCCESS; + + CGContextSaveGState (surface->cgContext); + + CGContextSetShouldAntialias (surface->cgContext, (antialias != CAIRO_ANTIALIAS_NONE)); + CGContextSetLineWidth (surface->cgContext, style->line_width); + CGContextSetLineCap (surface->cgContext, _cairo_quartzgl_cairo_line_cap_to_quartz (style->line_cap)); + CGContextSetLineJoin (surface->cgContext, _cairo_quartzgl_cairo_line_join_to_quartz (style->line_join)); + CGContextSetMiterLimit (surface->cgContext, style->miter_limit); + + if (style->dash && style->num_dashes) { +#define STATIC_DASH 32 + float sdash[STATIC_DASH]; + float *fdash = sdash; + int k; + if (style->num_dashes > STATIC_DASH) + fdash = malloc (sizeof(float)*style->num_dashes); + + for (k = 0; k < style->num_dashes; k++) + fdash[k] = (float) style->dash[k]; + + CGContextSetLineDash (surface->cgContext, style->dash_offset, fdash, style->num_dashes); + + if (fdash != sdash) + free (fdash); + } + + CGContextSetCompositeOperation (surface->cgContext, _cairo_quartzgl_cairo_operator_to_quartz (op)); + + action = _cairo_quartzgl_setup_source (surface, source); + if (action == DO_UNSUPPORTED) { + CGContextRestoreGState (surface->cgContext); + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + CGContextBeginPath (surface->cgContext); + _cairo_quartzgl_cairo_path_to_quartz_context (path, surface->cgContext); + + if (action == DO_SOLID || action == DO_PATTERN) { + CGContextStrokePath (surface->cgContext); + } else if (action == DO_SHADING) { + // we have to clip and then paint the shading; first we have to convert + // the stroke to a path that we can fill + + // this is a 10.4-only method; we could probably fall back to + // CGPattern usage if it's not available + CGContextReplacePathWithStrokedPath (surface->cgContext); + CGContextClip (surface->cgContext); + + CGContextDrawShading (surface->cgContext, surface->sourceShading); + } else { + rv = CAIRO_INT_STATUS_UNSUPPORTED; + } + + CGContextRestoreGState (surface->cgContext); + return rv; +} + +static cairo_int_status_t +_cairo_quartzgl_surface_show_glyphs (void *abstract_surface, + cairo_operator_t op, + cairo_pattern_t *source, + const cairo_glyph_t *glyphs, + int num_glyphs, + cairo_scaled_font_t *scaled_font) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + cairo_int_status_t rv = CAIRO_STATUS_SUCCESS; + cairo_quartzgl_action_t action; + + if (num_glyphs <= 0) + return CAIRO_STATUS_SUCCESS; + + if (op == CAIRO_OPERATOR_DEST) + return CAIRO_STATUS_SUCCESS; + + if (!_cairo_scaled_font_is_atsui (scaled_font)) + return CAIRO_INT_STATUS_UNSUPPORTED; + + CGContextSaveGState (surface->cgContext); + + action = _cairo_quartzgl_setup_source (surface, source); + if (action == DO_SOLID || action == DO_PATTERN) { + CGContextSetTextDrawingMode (surface->cgContext, kCGTextFill); + } else if (action == DO_SHADING) { + CGContextSetTextDrawingMode (surface->cgContext, kCGTextClip); + } else { + /* Unsupported */ + CGContextRestoreGState (surface->cgContext); + return CAIRO_INT_STATUS_UNSUPPORTED; + } + + double y_height = surface->extents.height; +#if 0 + if (surface->y_grows_down) { + /* Undo this, because we can just fix the glyph offsets ourselves, + * and it's a pain to manage both coodinate spaces in my head */ + CGContextScaleCTM (surface->cgContext, 1.0, -1.0); + CGContextTranslateCTM (surface->cgContext, 0.0, - y_height); + } +#endif + + CGContextSetCompositeOperation (surface->cgContext, _cairo_quartzgl_cairo_operator_to_quartz (op)); + + ATSUFontID fid = _cairo_atsui_scaled_font_get_atsu_font_id (scaled_font); + ATSFontRef atsfref = FMGetATSFontRefFromFont (fid); + CGFontRef cgfref = CGFontCreateWithPlatformFont (&atsfref); + + CGContextSetFont (surface->cgContext, cgfref); + CGFontRelease (cgfref); + + /* So this should include the size; I don't know if I need to extract the + * size from this and call CGContextSetFontSize.. will I get crappy hinting + * with this 1.0 size business? Or will CG just multiply that size into the + * text matrix? + */ + //fprintf (stderr, "show_glyphs: glyph 0 at: %f, %f\n", glyphs[0].x, glyphs[0].y); + CGAffineTransform textTransform; + _cairo_quartzgl_cairo_matrix_to_quartz (&scaled_font->font_matrix, &textTransform); + + if (surface->y_grows_down) { + textTransform = CGAffineTransformTranslate (textTransform, glyphs[0].x, y_height - glyphs[0].y); + } else { + textTransform = CGAffineTransformTranslate (textTransform, glyphs[0].x, glyphs[0].y); + // Uhh, this is just straight up broken. No idea why this is needed + // for the cocoa non-y-grows-down business. + textTransform = CGAffineTransformScale (textTransform, 1.0, -1.0); + } + + CGContextSetTextMatrix (surface->cgContext, textTransform); + CGContextSetFontSize (surface->cgContext, 1.0); + +#if 1 + /* We should be using the ShowGlyphsWithAdvances version, + * but I'm clearly not smart enough for it */ + if (surface->y_grows_down) { + int i; + for (i = 0; i < num_glyphs; i++) { + CGGlyph g = glyphs[i].index; + CGContextShowGlyphsAtPoint (surface->cgContext, + glyphs[i].x, y_height - glyphs[i].y, + &g, + 1); + } + } else { + int i; + for (i = 0; i < num_glyphs; i++) { + CGGlyph g = glyphs[i].index; + CGContextShowGlyphsAtPoint (surface->cgContext, + glyphs[i].x, glyphs[i].y, + &g, + 1); + } + } + +#else + // XXX stack storage + CGGlyph *cg_glyphs = (CGGlyph*) malloc(sizeof(CGGlyph) * num_glyphs); + CGSize *cg_advances = (CGSize*) malloc(sizeof(CGSize) * num_glyphs); + + double xprev = 0.0, yprev = 0.0; + + for (i = 0; i < num_glyphs; i++) { + //fprintf (stderr, "%d: gx: %f gy: %f xp: %f yp: %f\n", i, glyphs[i].x, glyphs[i].y, xprev, yprev); + cg_glyphs[i] = glyphs[i].index; + if (i) { + cg_advances[i-1].width = glyphs[i].x - xprev; + cg_advances[i-1].height = - (glyphs[i].y - yprev); + } else { + cg_advances[i].width = 0; + cg_advances[i].height = 0; + } + xprev = glyphs[i].x; + yprev = glyphs[i].y; + } + + cg_advances[num_glyphs-1].width = 0; + cg_advances[num_glyphs-1].height = 0; + + for (i = 0; i < num_glyphs; i++) { + //fprintf (stderr, "[%d: %d %f,%f]\n", i, cg_glyphs[i], cg_advances[i].width, cg_advances[i].height); + } + + CGContextShowGlyphsWithAdvances (surface->cgContext, + cg_glyphs, + cg_advances, + num_glyphs); + + free (cg_glyphs); + free (cg_advances); +#endif + + if (action == DO_SHADING) + CGContextDrawShading (surface->cgContext, surface->sourceShading); + + _cairo_quartzgl_teardown_source (surface, source); + + CGContextRestoreGState (surface->cgContext); + + return rv; +} + +static cairo_int_status_t +_cairo_quartzgl_surface_mask (void *abstract_surface, + cairo_operator_t op, + cairo_pattern_t *source, + cairo_pattern_t *mask) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + + return CAIRO_STATUS_SUCCESS; + /*return CAIRO_INT_STATUS_UNSUPPORTED;*/ +} + +static cairo_int_status_t +_cairo_quartzgl_surface_intersect_clip_path (void *abstract_surface, + cairo_path_fixed_t *path, + cairo_fill_rule_t fill_rule, + double tolerance, + cairo_antialias_t antialias) +{ + cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface; + + //fprintf (stderr, "%p _cairo_quartzgl_surface_intersect_clip_path path: %p\n", surface, path); + + if (path == NULL) { + /* If we're being asked to reset the clip, we can only do it by + * restoring the gstate to our previous saved one, and saving it again + */ + + CGContextRestoreGState (surface->cgContext); + CGContextSaveGState (surface->cgContext); + + return CAIRO_STATUS_SUCCESS; + } + +#if 0 + CGContextSetRGBStrokeColor (surface->cgContext, 1.0, 0.0, 0.0, 1.0); + CGContextBeginPath (surface->cgContext); + _cairo_quartzgl_cairo_path_to_quartz_context (path, surface->cgContext); + CGContextStrokePath (surface->cgContext); +#endif + + CGContextBeginPath (surface->cgContext); + _cairo_quartzgl_cairo_path_to_quartz_context (path, surface->cgContext); + if (fill_rule == CAIRO_FILL_RULE_WINDING) + CGContextClip (surface->cgContext); + else + CGContextEOClip (surface->cgContext); + + return CAIRO_STATUS_SUCCESS; +} + +static const struct _cairo_surface_backend cairo_quartzgl_surface_backend = { + _cairo_quartzgl_surface_create_similar, + _cairo_quartzgl_surface_finish, + _cairo_quartzgl_surface_acquire_source_image, + NULL, /* release_source_image */ + _cairo_quartzgl_surface_acquire_dest_image, + _cairo_quartzgl_surface_release_dest_image, + _cairo_quartzgl_surface_clone_similar, + NULL, /* composite */ + NULL, /* fill_rectangles */ + NULL, /* composite_trapezoids */ + NULL, /* copy_page */ + NULL, /* show_page */ + NULL, /* set_clip_region */ + _cairo_quartzgl_surface_intersect_clip_path, + _cairo_quartzgl_surface_get_extents, + NULL, /* old_show_glyphs */ + NULL, /* get_font_options */ + NULL, /* flush */ + NULL, /* mark_dirty_rectangle */ + NULL, /* scaled_font_fini */ + NULL, /* scaled_glyph_fini */ + + _cairo_quartzgl_surface_paint, + _cairo_quartzgl_surface_mask, + _cairo_quartzgl_surface_stroke, + _cairo_quartzgl_surface_fill, + _cairo_quartzgl_surface_show_glyphs, + + NULL, /* snapshot */ +}; + +cairo_bool_t +cairo_surface_is_quartzgl (cairo_surface_t *surf) +{ + return (surf->backend == &cairo_quartzgl_surface_backend); +} + +static cairo_quartzgl_surface_t * +_cairo_quartzgl_surface_create_internal (CGContextRef cgContext, + AGLContext aglContext, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down) +{ + cairo_quartzgl_surface_t *surface; + + /* Init the base surface */ + surface = malloc(sizeof(cairo_quartzgl_surface_t)); + if (surface == NULL) { + _cairo_error (CAIRO_STATUS_NO_MEMORY); + return NULL; + } + + memset(surface, 0, sizeof(cairo_quartzgl_surface_t)); + + _cairo_surface_init(&surface->base, &cairo_quartzgl_surface_backend); + + /* Save our extents */ + surface->extents.x = surface->extents.y = 0; + surface->extents.width = width; + surface->extents.height = height; + + if (y_grows_down) { + /* Then make the CGContext sane */ + CGContextTranslateCTM (cgContext, 0.0, surface->extents.height); + CGContextScaleCTM (cgContext, 1.0, -1.0); + } + + /* Save so we can always get back to a known-good CGContext */ + CGContextSaveGState (cgContext); + + surface->y_grows_down = y_grows_down; + surface->aglContext = aglContext; + surface->cgContext = cgContext; + surface->imageData = NULL; + + return surface; +} + +cairo_surface_t * +cairo_quartzgl_surface_create_for_agl_context (AGLContext aglContext, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down) +{ + cairo_quartzgl_surface_t *surf; + CGSize sz; + + /* Make our CGContext from the AGL context */ + sz.width = width; + sz.height = height; + + CGContextRef cgc = CGGLContextCreate (aglContext, sz, NULL /* device RGB colorspace */); + fprintf (stderr, "cgc: %p\n", cgc); + + surf = _cairo_quartzgl_surface_create_internal (cgc, aglContext, width, height, y_grows_down); + if (!surf) { + CGContextRelease (cgc); + // create_internal will have set an error + return (cairo_surface_t*) &_cairo_surface_nil; + } + + return (cairo_surface_t *) surf; +} + +cairo_surface_t * +cairo_quartzgl_surface_create_for_cg_context (CGContextRef cgContext, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down) +{ + cairo_quartzgl_surface_t *surf; + + CGContextRetain (cgContext); + + surf = _cairo_quartzgl_surface_create_internal (cgContext, NULL, width, height, y_grows_down); + if (!surf) { + CGContextRelease (cgContext); + // create_internal will have set an error + return (cairo_surface_t*) &_cairo_surface_nil; + } + + return (cairo_surface_t *) surf; +} + +cairo_surface_t * +cairo_quartzgl_surface_create (cairo_format_t format, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down) +{ + cairo_quartzgl_surface_t *surf; + CGContextRef cgc; + CGColorSpaceRef cgColorspace; + CGBitmapInfo bitinfo; + void *imageData; + int stride; + int bitsPerComponent; + + if (format == CAIRO_FORMAT_ARGB32) { + cgColorspace = CGColorSpaceCreateDeviceRGB(); + stride = width * 4; + bitinfo = kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host; + bitsPerComponent = 8; + } else if (format == CAIRO_FORMAT_RGB24) { + cgColorspace = CGColorSpaceCreateDeviceRGB(); + stride = width * 4; + bitinfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Host; + bitsPerComponent = 8; + } else if (format == CAIRO_FORMAT_A8) { + cgColorspace = CGColorSpaceCreateDeviceGray(); + if (width % 4 == 0) + stride = width; + else + stride = (width & 3) + 1; + bitinfo = kCGImageAlphaNone; + bitsPerComponent = 8; + } else if (format == CAIRO_FORMAT_A1) { + /* I don't think we can usefully support this, as defined by + * cairo_format_t -- these are 1-bit pixels stored in 32-bit + * quantities. + */ + _cairo_error (CAIRO_STATUS_INVALID_FORMAT); + return (cairo_surface_t*) &_cairo_surface_nil; + } else { + _cairo_error (CAIRO_STATUS_INVALID_FORMAT); + return (cairo_surface_t*) &_cairo_surface_nil; + } + + imageData = malloc (height * stride); + if (!imageData) { + CGColorSpaceRelease (cgColorspace); + _cairo_error (CAIRO_STATUS_NO_MEMORY); + return (cairo_surface_t*) &_cairo_surface_nil; + } + + cgc = CGBitmapContextCreate (imageData, + width, + height, + bitsPerComponent, + stride, + cgColorspace, + bitinfo); + CGColorSpaceRelease (cgColorspace); + + surf = _cairo_quartzgl_surface_create_internal (cgc, NULL, width, height, y_grows_down); + if (!surf) { + CGContextRelease (cgc); + // create_internal will have set an error + return (cairo_surface_t*) &_cairo_surface_nil; + } + + surf->imageData = imageData; + + return (cairo_surface_t *) surf; +} diff --git a/mozilla/gfx/cairo/cairo/src/cairo-quartz2.h b/mozilla/gfx/cairo/cairo/src/cairo-quartz2.h new file mode 100644 index 00000000000..a64d5d6e762 --- /dev/null +++ b/mozilla/gfx/cairo/cairo/src/cairo-quartz2.h @@ -0,0 +1,76 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2006 Mozilla Corporation + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * + * Contributor(s): + * Vladimir Vukicevic + */ + +#ifndef CAIRO_QUARTZGL_H +#define CAIRO_QUARTZGL_H + +#include + +#if CAIRO_HAS_QUARTZGL_SURFACE + +#include + +#include + +CAIRO_BEGIN_DECLS + +cairo_surface_t * +cairo_quartzgl_surface_create (cairo_format_t format, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down); + +cairo_surface_t * +cairo_quartzgl_surface_create_for_agl_context (AGLContext aglContext, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down); + +cairo_surface_t * +cairo_quartzgl_surface_create_for_cg_context (CGContextRef cgContext, + unsigned int width, + unsigned int height, + cairo_bool_t y_grows_down); + +cairo_bool_t +cairo_surface_is_quartzgl (cairo_surface_t *surf); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_QUARTZGL_SURFACE */ +# error Cairo was not compiled with support for the quartzgl backend +#endif /* CAIRO_HAS_QUARTZGL_SURFACE */ + +#endif /* CAIRO_QUARTZGL_H */ diff --git a/mozilla/gfx/cairo/glitz/src/Makefile.in b/mozilla/gfx/cairo/glitz/src/Makefile.in index 2c4b2dc2e81..6e38aa7ab40 100644 --- a/mozilla/gfx/cairo/glitz/src/Makefile.in +++ b/mozilla/gfx/cairo/glitz/src/Makefile.in @@ -84,6 +84,10 @@ ifeq ($(MOZ_WIDGET_TOOLKIT),windows) DIRS += wgl endif +ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa)) +DIRS += agl +endif + FORCE_STATIC_LIB = 1 FORCE_USE_PIC = 1 diff --git a/mozilla/gfx/cairo/glitz/src/agl/glitz_agl_format.c b/mozilla/gfx/cairo/glitz/src/agl/glitz_agl_format.c index 552cd6cf1e6..f02e353b697 100644 --- a/mozilla/gfx/cairo/glitz/src/agl/glitz_agl_format.c +++ b/mozilla/gfx/cairo/glitz/src/agl/glitz_agl_format.c @@ -231,7 +231,7 @@ glitz_agl_query_formats (glitz_agl_thread_info_t *thread_info) format.types = GLITZ_DRAWABLE_TYPE_WINDOW_MASK; format.d.id = 0; - format.color.fourcc = GLITZ_FOURCC_RGB; + format.d.color.fourcc = GLITZ_FOURCC_RGB; n_attribs_list = sizeof (_attribs_list) / sizeof (GLint *); diff --git a/mozilla/gfx/src/Makefile.in b/mozilla/gfx/src/Makefile.in index 4f558cf3a1b..878f9378ce0 100644 --- a/mozilla/gfx/src/Makefile.in +++ b/mozilla/gfx/src/Makefile.in @@ -71,10 +71,6 @@ ifdef MOZ_ENABLE_POSTSCRIPT DIRS += psshared ps endif -ifeq ($(MOZ_GFX_TOOLKIT),cocoa) -DIRS += mac -endif - # Build xlibrgb only for X toolkits and/or Xprint ifneq (,$(filter xlib,$(MOZ_WIDGET_TOOLKIT))$(MOZ_ENABLE_XLIB)$(MOZ_ENABLE_XPRINT)) DIRS += xlibrgb @@ -102,13 +98,12 @@ else ifdef MOZ_ENABLE_PHOTON DIRS += photon endif - ifeq ($(MOZ_GFX_TOOLKIT),windows) - DIRS += windows + ifeq ($(MOZ_GFX_TOOLKIT),cocoa) + DIRS += mac endif - ifneq (,$(filter beos os2 mac,$(MOZ_GFX_TOOLKIT))) + ifneq (,$(filter windows beos os2 mac,$(MOZ_GFX_TOOLKIT))) DIRS += $(MOZ_GFX_TOOLKIT) endif - endif CPPSRCS = \ diff --git a/mozilla/gfx/src/thebes/Makefile.in b/mozilla/gfx/src/thebes/Makefile.in index beedfea54da..9026c47fc48 100644 --- a/mozilla/gfx/src/thebes/Makefile.in +++ b/mozilla/gfx/src/thebes/Makefile.in @@ -97,14 +97,8 @@ EXTRA_DSO_LIBS = gkgfx thebes ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2) CPPSRCS += nsSystemFontsGTK2.cpp -ifdef MOZ_ENABLE_PANGO -#CPPSRCS += nsFontMetricsPango.cpp \ -# mozilla-decoder.cpp \ -# $(NULL) -endif - ifdef MOZ_ENABLE_GLITZ -REQUIRES += glitzglx +REQUIRES += glitzglx endif endif @@ -119,6 +113,14 @@ _OS_LIBS = usp10 OS_LIBS += $(call EXPAND_LIBNAME,$(_OS_LIBS)) endif +ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa)) +CPPSRCS += nsSystemFontsMac.cpp + ifdef MOZ_ENABLE_GLITZ + REQUIRES += glitzagl + EXTRA_DSO_LDOPTS += -lmozglitzagl -framework OpenGL -framework AGL + endif +endif + EXPORTS += nsIThebesRenderingContext.h LOCAL_INCLUDES = \ diff --git a/mozilla/gfx/src/thebes/nsSystemFontsGTK2.cpp b/mozilla/gfx/src/thebes/nsSystemFontsGTK2.cpp index 130da40a68a..c486aa861d7 100644 --- a/mozilla/gfx/src/thebes/nsSystemFontsGTK2.cpp +++ b/mozilla/gfx/src/thebes/nsSystemFontsGTK2.cpp @@ -196,3 +196,41 @@ GetXftDPI(void) return 0; } + +nsresult +nsSystemFontsGTK2::GetSystemFont(nsSystemFontID anID, nsFont *aFont) const +{ + switch (anID) { + case eSystemFont_Menu: // css2 + case eSystemFont_PullDownMenu: // css3 + *aFont = mMenuFont; + break; + + case eSystemFont_Field: // css3 + case eSystemFont_List: // css3 + *aFont = mFieldFont; + break; + + case eSystemFont_Button: // css3 + *aFont = mButtonFont; + break; + + case eSystemFont_Caption: // css2 + case eSystemFont_Icon: // css2 + case eSystemFont_MessageBox: // css2 + case eSystemFont_SmallCaption: // css2 + case eSystemFont_StatusBar: // css2 + case eSystemFont_Window: // css3 + case eSystemFont_Document: // css3 + case eSystemFont_Workspace: // css3 + case eSystemFont_Desktop: // css3 + case eSystemFont_Info: // css3 + case eSystemFont_Dialog: // css3 + case eSystemFont_Tooltips: // moz + case eSystemFont_Widget: // moz + *aFont = mDefaultFont; + break; + } + + return NS_OK; +} diff --git a/mozilla/gfx/src/thebes/nsSystemFontsGTK2.h b/mozilla/gfx/src/thebes/nsSystemFontsGTK2.h index 1d97d9fcc83..b4ff70346a8 100644 --- a/mozilla/gfx/src/thebes/nsSystemFontsGTK2.h +++ b/mozilla/gfx/src/thebes/nsSystemFontsGTK2.h @@ -9,6 +9,8 @@ class nsSystemFontsGTK2 public: nsSystemFontsGTK2(float aPixelsToTwips); + nsresult GetSystemFont(nsSystemFontID anID, nsFont *aFont) const; + const nsFont& GetDefaultFont() { return mDefaultFont; } const nsFont& GetMenuFont() { return mMenuFont; } const nsFont& GetFieldFont() { return mFieldFont; } diff --git a/mozilla/gfx/src/thebes/nsSystemFontsMac.cpp b/mozilla/gfx/src/thebes/nsSystemFontsMac.cpp new file mode 100644 index 00000000000..30dcdcb4e23 --- /dev/null +++ b/mozilla/gfx/src/thebes/nsSystemFontsMac.cpp @@ -0,0 +1,56 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Corporation code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2006 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#include "nsSystemFontsMac.h" + +nsSystemFontsMac::nsSystemFontsMac(float aPixelsToTwips) +{ +} + +nsresult +nsSystemFontsMac::GetSystemFont(nsSystemFontID anID, nsFont *aFont) const +{ + // hack for now + aFont->style = NS_FONT_STYLE_NORMAL; + aFont->weight = NS_FONT_WEIGHT_NORMAL; + aFont->decorations = NS_FONT_DECORATION_NONE; + + aFont->name.AssignLiteral("sans-serif"); + aFont->size = NSToCoordRound(aFont->size * 0.875f); + + return NS_OK; +} diff --git a/mozilla/gfx/src/thebes/nsSystemFontsMac.h b/mozilla/gfx/src/thebes/nsSystemFontsMac.h new file mode 100644 index 00000000000..5e24e9f5196 --- /dev/null +++ b/mozilla/gfx/src/thebes/nsSystemFontsMac.h @@ -0,0 +1,52 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Corporation code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2006 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#ifndef _NS_SYSTEMFONTSMAC_H_ +#define _NS_SYSTEMFONTSMAC_H_ + +#include +#include + +class nsSystemFontsMac +{ +public: + nsSystemFontsMac(float aPixelsToTwips); + + nsresult GetSystemFont(nsSystemFontID anID, nsFont *aFont) const; +}; + +#endif /* _NS_SYSTEMFONTSMAC_H_ */ diff --git a/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp b/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp index d00530fa6ce..16ff1104265 100644 --- a/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp +++ b/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp @@ -59,11 +59,6 @@ #include #include #include - - -#ifdef MOZ_ENABLE_GLITZ -#include "glitz-glx.h" -#endif /* GLITZ */ #endif /* GTK2 */ #ifdef MOZ_ENABLE_GTK2 @@ -77,6 +72,9 @@ static nsSystemFontsGTK2 *gSystemFonts = nsnull; #include "gfxWindowsSurface.h" static nsSystemFontsWin *gSystemFonts = nsnull; #include +#elif XP_MACOSX +#include "nsSystemFontsMac.h" +static nsSystemFontsMac *gSystemFonts = nsnull; #else #error Need to declare gSystemFonts! #endif @@ -388,49 +386,14 @@ nsThebesDeviceContext::GetSystemFont(nsSystemFontID aID, nsFont *aFont) const gSystemFonts = new nsSystemFontsGTK2(mPixelsToTwips); #elif XP_WIN gSystemFonts = new nsSystemFontsWin(mPixelsToTwips); +#elif XP_MACOSX + gSystemFonts = new nsSystemFontsMac(mPixelsToTwips); #else #error Need to know how to create gSystemFonts, fix me! #endif } -#ifdef XP_WIN - gSystemFonts->GetSystemFont(aID, aFont); - return NS_OK; - -#else - switch (aID) { - case eSystemFont_Menu: // css2 - case eSystemFont_PullDownMenu: // css3 - *aFont = gSystemFonts->GetMenuFont(); - break; - - case eSystemFont_Field: // css3 - case eSystemFont_List: // css3 - *aFont = gSystemFonts->GetFieldFont(); - break; - - case eSystemFont_Button: // css3 - *aFont = gSystemFonts->GetButtonFont(); - break; - - case eSystemFont_Caption: // css2 - case eSystemFont_Icon: // css2 - case eSystemFont_MessageBox: // css2 - case eSystemFont_SmallCaption: // css2 - case eSystemFont_StatusBar: // css2 - case eSystemFont_Window: // css3 - case eSystemFont_Document: // css3 - case eSystemFont_Workspace: // css3 - case eSystemFont_Desktop: // css3 - case eSystemFont_Info: // css3 - case eSystemFont_Dialog: // css3 - case eSystemFont_Tooltips: // moz - case eSystemFont_Widget: // moz - *aFont = gSystemFonts->GetDefaultFont(); - break; - } -#endif - return status; + return gSystemFonts->GetSystemFont(aID, aFont); } NS_IMETHODIMP @@ -759,6 +722,10 @@ nsThebesDeviceContext::FindScreen(nsIScreen** outScreen) #endif +#ifdef XP_MACOSX + // ??? +#endif + mScreenManager->GetPrimaryScreen(outScreen); } diff --git a/mozilla/gfx/src/thebes/nsThebesDrawingSurface.cpp b/mozilla/gfx/src/thebes/nsThebesDrawingSurface.cpp index f004de6e109..242673da455 100644 --- a/mozilla/gfx/src/thebes/nsThebesDrawingSurface.cpp +++ b/mozilla/gfx/src/thebes/nsThebesDrawingSurface.cpp @@ -141,10 +141,8 @@ nsThebesDrawingSurface::Init (nsThebesDeviceContext *aDC, return rv; mSurface = imgSurf; -#elif XP_WIN - // XXX writeme #else -#error Write me! + NS_ERROR ("nsThebesDrawingSurface init from black/white pixmaps; either implement this or fix the caller"); #endif return NS_OK; diff --git a/mozilla/gfx/src/thebes/nsThebesFontMetrics.cpp b/mozilla/gfx/src/thebes/nsThebesFontMetrics.cpp index 5d9e59dd2c4..283d2e3e64f 100644 --- a/mozilla/gfx/src/thebes/nsThebesFontMetrics.cpp +++ b/mozilla/gfx/src/thebes/nsThebesFontMetrics.cpp @@ -42,7 +42,6 @@ #include "nsString.h" #include "nsAutoBuffer.h" #include -#include NS_IMPL_ISUPPORTS1(nsThebesFontMetrics, nsIFontMetrics) @@ -52,6 +51,8 @@ NS_IMPL_ISUPPORTS1(nsThebesFontMetrics, nsIFontMetrics) #include "gfxWindowsFonts.h" #elif defined(MOZ_ENABLE_GTK2) #include "gfxPangoFonts.h" +#elif defined(XP_MACOSX) +#include "gfxAtsuiFonts.h" #endif nsThebesFontMetrics::nsThebesFontMetrics() @@ -97,6 +98,8 @@ nsThebesFontMetrics::Init(const nsFont& aFont, nsIAtom* aLangGroup, mFontGroup = new gfxWindowsFontGroup(aFont.name, mFontStyle, (HDC)mDeviceContext->GetHDC()); #elif defined(MOZ_ENABLE_GTK2) mFontGroup = new gfxPangoFontGroup(aFont.name, mFontStyle); +#elif defined(XP_MACOSX) + mFontGroup = new gfxAtsuiFontGroup(aFont.name, mFontStyle); #else #error implement me #endif diff --git a/mozilla/gfx/src/thebes/nsThebesRenderingContext.cpp b/mozilla/gfx/src/thebes/nsThebesRenderingContext.cpp index 7bdf6fdc89a..cd0fa48cfa3 100644 --- a/mozilla/gfx/src/thebes/nsThebesRenderingContext.cpp +++ b/mozilla/gfx/src/thebes/nsThebesRenderingContext.cpp @@ -139,7 +139,13 @@ nsThebesRenderingContext::Init(nsIDeviceContext* aContext, nsIWidget *aWidget) mWidget = aWidget; mLocalDrawingSurface = new nsThebesDrawingSurface(); - mLocalDrawingSurface->Init(thebesDC, aWidget); + + nsRefPtr surface(aWidget->GetThebesSurface()); + if (surface) { + mLocalDrawingSurface->Init(thebesDC, surface); + } else { + mLocalDrawingSurface->Init(thebesDC, aWidget); + } mDrawingSurface = mLocalDrawingSurface; mThebes = new gfxContext(mLocalDrawingSurface->GetThebesSurface()); @@ -839,7 +845,11 @@ nsThebesRenderingContext::DrawNativeWidgetPixmap(void* aSrcSurfaceBlack, NS_IMETHODIMP nsThebesRenderingContext::UseBackbuffer(PRBool* aUseBackbuffer) { +#ifndef XP_MACOSX *aUseBackbuffer = PR_TRUE; +#else + *aUseBackbuffer = PR_FALSE; +#endif return NS_OK; } diff --git a/mozilla/gfx/thebes/public/Makefile.in b/mozilla/gfx/thebes/public/Makefile.in index e12f3ce5bfb..dba8f32f969 100644 --- a/mozilla/gfx/thebes/public/Makefile.in +++ b/mozilla/gfx/thebes/public/Makefile.in @@ -50,4 +50,15 @@ REQUIRES += glitzglx endif endif +ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa)) +EXPORTS += gfxPlatformMac.h \ + gfxQuartzSurface.h \ + gfxAtsuiFonts.h \ + $(NULL) + +ifdef MOZ_EABLE_GLITZ +REQUIRES += glitzagl +endif +endif + include $(topsrcdir)/config/rules.mk diff --git a/mozilla/gfx/thebes/public/gfxASurface.h b/mozilla/gfx/thebes/public/gfxASurface.h index 6fcf912fd7b..877144fbb75 100644 --- a/mozilla/gfx/thebes/public/gfxASurface.h +++ b/mozilla/gfx/thebes/public/gfxASurface.h @@ -90,6 +90,18 @@ public: virtual nsresult BeginPage() { return NS_ERROR_NOT_IMPLEMENTED; } virtual nsresult EndPage() { return NS_ERROR_NOT_IMPLEMENTED; } + void SetData(const cairo_user_data_key_t *key, + void *user_data, + cairo_destroy_func_t destroy) + { + cairo_surface_set_user_data (mSurface, key, user_data, destroy); + } + + void *GetData(const cairo_user_data_key_t *key) + { + return cairo_surface_get_user_data (mSurface, key); + } + protected: void Init(cairo_surface_t* surface) { mDestroyed = PR_FALSE; diff --git a/mozilla/gfx/thebes/public/gfxAtsuiFonts.h b/mozilla/gfx/thebes/public/gfxAtsuiFonts.h new file mode 100644 index 00000000000..8947a1508d8 --- /dev/null +++ b/mozilla/gfx/thebes/public/gfxAtsuiFonts.h @@ -0,0 +1,109 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is thebes gfx code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2006 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#ifndef GFX_ATSUIFONTS_H +#define GFX_ATSUIFONTS_H + +#include "gfxTypes.h" +#include "gfxFont.h" + +#include + +class gfxAtsuiFontGroup; + +class gfxAtsuiFont : public gfxFont { +public: + gfxAtsuiFont(ATSUFontID fontID, + gfxAtsuiFontGroup *fontGroup); + virtual ~gfxAtsuiFont(); + + virtual const gfxFont::Metrics& GetMetrics(); + + ATSUFontID GetATSUFontID() { return mATSUFontID; } + + cairo_font_face_t *CairoFontFace() { return mFontFace; } + cairo_scaled_font_t *CairoScaledFont() { return mScaledFont; } + +protected: + ATSUFontID mATSUFontID; + + const gfxAtsuiFontGroup *mFontGroup; + const gfxFontStyle *mFontStyle; + + cairo_font_face_t *mFontFace; + cairo_scaled_font_t *mScaledFont; + + gfxFont::Metrics mMetrics; +}; + +class NS_EXPORT gfxAtsuiFontGroup : public gfxFontGroup { +public: + gfxAtsuiFontGroup(const nsAString& families, + const gfxFontStyle *aStyle); + virtual ~gfxAtsuiFontGroup(); + + virtual gfxTextRun *MakeTextRun(const nsAString& aString); + + ATSUFontFallbacks *GetATSUFontFallbacks() { return &mFallbacks; } + +protected: + static PRBool FindATSUFont(const nsAString& aName, + const nsAString& aGenericName, + void *closure); + + ATSUFontFallbacks mFallbacks; +}; + +class NS_EXPORT gfxAtsuiTextRun : public gfxTextRun { + THEBES_DECL_ISUPPORTS_INHERITED +public: + gfxAtsuiTextRun(const nsAString& aString, gfxAtsuiFontGroup *aFontGroup); + ~gfxAtsuiTextRun(); + + virtual void DrawString(gfxContext *aContext, gfxPoint pt); + virtual gfxFloat MeasureString(gfxContext *aContext); + +private: + nsString mString; + gfxAtsuiFontGroup *mGroup; + + ATSUStyle mATSUStyle; + + ATSUTextLayout mATSULayout; +}; + +#endif /* GFX_ATSUIFONTS_H */ diff --git a/mozilla/gfx/thebes/public/gfxFont.h b/mozilla/gfx/thebes/public/gfxFont.h index e653101819b..7c7e7f00ae2 100644 --- a/mozilla/gfx/thebes/public/gfxFont.h +++ b/mozilla/gfx/thebes/public/gfxFont.h @@ -111,6 +111,10 @@ struct NS_EXPORT gfxFontStyle { // rendering or measuring a string. A value of 0 means no adjustment // needs to be done. float sizeAdjust; + + static void ComputeWeightAndOffset (const PRUint16 inWeight, + PRInt16 *outBaseWeight, + PRInt16 *outOffset); }; diff --git a/mozilla/gfx/thebes/public/gfxPlatformMac.h b/mozilla/gfx/thebes/public/gfxPlatformMac.h new file mode 100644 index 00000000000..4125e593432 --- /dev/null +++ b/mozilla/gfx/thebes/public/gfxPlatformMac.h @@ -0,0 +1,56 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Foundation code. + * + * The Initial Developer of the Original Code is Mozilla Foundation. + * Portions created by the Initial Developer are Copyright (C) 2005 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#ifndef GFX_PLATFORM_MAC_H +#define GFX_PLATFORM_MAC_H + +#include "gfxPlatform.h" + +class NS_EXPORT gfxPlatformMac : public gfxPlatform { +public: + gfxPlatformMac(); + + static gfxPlatformMac *GetPlatform() { + return (gfxPlatformMac*) gfxPlatform::GetPlatform(); + } + + gfxASurface *CreateOffscreenSurface(PRUint32 width, + PRUint32 height, + gfxASurface::gfxImageFormat imageFormat); +}; + +#endif /* GFX_PLATFORM_MAC_H */ diff --git a/mozilla/gfx/thebes/public/gfxQuartzSurface.h b/mozilla/gfx/thebes/public/gfxQuartzSurface.h new file mode 100644 index 00000000000..412357e39ea --- /dev/null +++ b/mozilla/gfx/thebes/public/gfxQuartzSurface.h @@ -0,0 +1,67 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Corporation code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2006 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Stuart Parmenter + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#ifndef GFX_QUARTZSURFACE_H +#define GFX_QUARTZSURFACE_H + +#include "gfxASurface.h" + +#include + +class NS_EXPORT gfxQuartzSurface : public gfxASurface { + THEBES_DECL_ISUPPORTS_INHERITED + +public: + gfxQuartzSurface(gfxImageFormat format, + int width, int height, + PRBool y_grows_down = PR_TRUE); + gfxQuartzSurface(CGContextRef context, + int width, int height, + PRBool y_grows_down = PR_TRUE); + + virtual ~gfxQuartzSurface(); + + unsigned long Width() { return mWidth; } + unsigned long Height() { return mHeight; } + + CGContextRef GetCGContext() { return mCGContext; } +protected: + CGContextRef mCGContext; + unsigned long mWidth, mHeight; +}; +#endif /* GFX_QUARTZSURFACE_H */ diff --git a/mozilla/gfx/thebes/src/Makefile.in b/mozilla/gfx/thebes/src/Makefile.in index 8121b188f0b..8a6dfb4c7ff 100644 --- a/mozilla/gfx/thebes/src/Makefile.in +++ b/mozilla/gfx/thebes/src/Makefile.in @@ -56,6 +56,14 @@ CPPSRCS += gfxPDFSurface.cpp gfxPSSurface.cpp EXTRA_DSO_LDOPTS += $(MOZ_PANGO_LIBS) $(ZLIB_LIBS) endif +ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa)) +CPPSRCS += gfxQuartzSurface.cpp gfxPlatformMac.cpp gfxAtsuiFonts.cpp +#CPPSRCS += gfxPDFSurface.cpp + +# Always link with OpenGL/AGL +EXTRA_DSO_LDOPTS += -framework OpenGL -framework AGL +endif + ifdef MOZ_ENABLE_GLITZ REQUIRES += glitz CPPSRCS += gfxGlitzSurface.cpp @@ -66,6 +74,11 @@ ifeq ($(MOZ_GFX_TOOLKIT),gtk2) REQUIRES += glitzglx SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzglx.$(LIB_SUFFIX) endif + +ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa)) +REQUIRES += glitzagl +SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzagl.$(LIB_SUFFIX) +endif endif EXTRA_DSO_LDOPTS += $(TK_LIBS) diff --git a/mozilla/gfx/thebes/src/gfxAtsuiFonts.cpp b/mozilla/gfx/thebes/src/gfxAtsuiFonts.cpp new file mode 100644 index 00000000000..ef0151bbc5c --- /dev/null +++ b/mozilla/gfx/thebes/src/gfxAtsuiFonts.cpp @@ -0,0 +1,434 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Corporation code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2006 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#include "prtypes.h" +#include "prmem.h" +#include "gfxTypes.h" + +#include "nsPromiseFlatString.h" + +#include "gfxContext.h" +#include "gfxAtsuiFonts.h" + +#include "cairo-atsui.h" + +gfxAtsuiFont::gfxAtsuiFont(ATSUFontID fontID, + gfxAtsuiFontGroup *fontGroup) + : mATSUFontID(fontID), mFontGroup(fontGroup) +{ + ATSFontRef fontRef = FMGetATSFontRefFromFont(fontID); + + mFontStyle = mFontGroup->GetStyle(); + + ATSFontMetrics atsMetrics; + ATSFontGetHorizontalMetrics(fontRef, kATSOptionFlagsDefault, + &atsMetrics); + + gfxFloat size = mFontStyle->size; + + mMetrics.emHeight = size; + + mMetrics.maxAscent = atsMetrics.ascent * size; + mMetrics.maxDescent = - (atsMetrics.descent * size); + mMetrics.height = mMetrics.maxAscent + mMetrics.maxDescent; + + mMetrics.internalLeading = atsMetrics.leading * size; + mMetrics.externalLeading = 0.0; + + mMetrics.maxHeight = mMetrics.height; + mMetrics.emAscent = mMetrics.maxAscent * mMetrics.emHeight / mMetrics.height; + mMetrics.emDescent = mMetrics.emHeight - mMetrics.emAscent; + + mMetrics.maxAdvance = atsMetrics.maxAdvanceWidth * size; + mMetrics.xHeight = atsMetrics.xHeight * size; + + if (atsMetrics.avgAdvanceWidth != 0.0) + mMetrics.aveCharWidth = atsMetrics.avgAdvanceWidth * size; + else + mMetrics.aveCharWidth = mMetrics.maxAdvance; + + mMetrics.underlineOffset = atsMetrics.underlinePosition * size; + mMetrics.underlineSize = atsMetrics.underlineThickness * size; + + mMetrics.subscriptOffset = mMetrics.xHeight; + mMetrics.superscriptOffset = mMetrics.xHeight; + + mMetrics.strikeoutOffset = mMetrics.xHeight / 2.0; + mMetrics.strikeoutSize = mMetrics.underlineSize; + + mMetrics.spaceWidth = mMetrics.aveCharWidth; + +#if 0 + fprintf (stderr, "Font: %p size: %f", this, size); + fprintf (stderr, " emHeight: %f emAscent: %f emDescent: %f\n", mMetrics.emHeight, mMetrics.emAscent, mMetrics.emDescent); + fprintf (stderr, " maxAscent: %f maxDescent: %f maxAdvance: %f\n", mMetrics.maxAscent, mMetrics.maxDescent, mMetrics.maxAdvance); + fprintf (stderr, " height: %f internalLeading: %f externalLeading: %f\n", mMetrics.height, mMetrics.externalLeading, mMetrics.internalLeading); + fprintf (stderr, " spaceWidth: %f aveCharWidth: %f xHeight: %f\n", mMetrics.spaceWidth, mMetrics.aveCharWidth, mMetrics.xHeight); + fprintf (stderr, " uOff: %f uSize: %f stOff: %f stSize: %f suOff: %f suSize: %f\n", mMetrics.underlineOffset, mMetrics.underlineSize, mMetrics.strikeoutOffset, mMetrics.strikeoutSize, mMetrics.superscriptOffset, mMetrics.subscriptOffset); +#endif + + mFontFace = cairo_atsui_font_face_create_for_atsu_font_id(mATSUFontID); + + cairo_matrix_t sizeMatrix, ctm; + cairo_matrix_init_identity(&ctm); + cairo_matrix_init_scale(&sizeMatrix, size, size); + + cairo_font_options_t *fontOptions = cairo_font_options_create(); + mScaledFont = cairo_scaled_font_create(mFontFace, &sizeMatrix, &ctm, fontOptions); + cairo_font_options_destroy(fontOptions); +} + +gfxAtsuiFont::~gfxAtsuiFont() +{ + cairo_scaled_font_destroy(mScaledFont); + cairo_font_face_destroy(mFontFace); +} + +const gfxFont::Metrics& +gfxAtsuiFont::GetMetrics() +{ + return mMetrics; +} + +gfxAtsuiFontGroup::gfxAtsuiFontGroup(const nsAString& families, + const gfxFontStyle *aStyle) + : gfxFontGroup(families, aStyle) +{ + ForEachFont(FindATSUFont, this); + + // Create the fallback structure + ATSUCreateFontFallbacks(&mFallbacks); + +#define NUM_STATIC_FIDS 16 + ATSUFontID static_fids[NUM_STATIC_FIDS]; + ATSUFontID *fids; + if (mFonts.size() > NUM_STATIC_FIDS) + fids = (ATSUFontID *) PR_Malloc(sizeof(ATSUFontID) * mFonts.size()); + else + fids = static_fids; + + for (unsigned int i = 0; i < mFonts.size(); i++) + fids[i] = ((gfxAtsuiFont*)(mFonts[i]))->GetATSUFontID(); + + ATSUSetObjFontFallbacks(mFallbacks, + mFonts.size(), + fids, + kATSUSequentialFallbacksPreferred /* kATSUSequentialFallbacksExclusive? */); + + if (fids != static_fids) + PR_Free(fids); +} + +/* + * This function will /really/ want to just keep a hash lookup table + * based on name and style attributes that we compute; doing stuff with + * Pascal strings and whatnot is /so/ 1980's. + */ + +/* +06:19 < AngryLuke> vlad, which method in NSFontManager does what you want? +06:21 < vlad_> ideally fontWithFamily:traits:weight:size:, but I really need to + just iterate through all the fonts in a particular family +06:21 < vlad_> and examine their traits +06:22 < AngryLuke> vlad, NSFontManager is using the private FontObject APIs for + this it seems +06:22 < vlad_> AngryLuke: fun +06:22 < vlad_> AngryLuke: so what's the "right" way of doing this? +06:23 < AngryLuke> vlad, crying ;) I ended up just using the FontManager, + despite the fact it is deprecated. But that won't work for + Unicode fonts with no FOND +06:23 < AngryLuke> ATS has no functions for this +06:23 < AngryLuke> and NSFontManager is the only other way that is public. +*/ + +PRBool +gfxAtsuiFontGroup::FindATSUFont(const nsAString& aName, + const nsAString& aGenericName, + void *closure) +{ + OSStatus status; + gfxAtsuiFontGroup *fontGroup = (gfxAtsuiFontGroup*) closure; + const gfxFontStyle *fontStyle = fontGroup->GetStyle(); + + PRInt16 baseWeight, offsetWeight; + gfxFontStyle::ComputeWeightAndOffset(fontStyle->weight, &baseWeight, &offsetWeight); + baseWeight += offsetWeight; + baseWeight = PR_MIN(9, PR_MAX(0, baseWeight)); + + Boolean isBold = (baseWeight >= 7) ? TRUE : FALSE; + Boolean isItalic = ((fontStyle->style & FONT_STYLE_ITALIC) != 0) ? TRUE : FALSE; + +#if 0 + + Str255 pascalName; + CopyCStringToPascalString(nsPromiseFlatCString(NS_ConvertUTF16toUTF8(aName)).get(), + pascalName); + + FMFontFamily fmFamily = FMGetFontFamilyFromName(pascalName); + if (fmFamily == kInvalidFontFamily) + return PR_TRUE; + + FMFontFamilyInstanceIterator famFontIterator; + status = FMCreateFontFamilyInstanceIterator(fmFamily, &famFontIterator); + if (status != noErr) { + fprintf(stderr, "FMCreateFontFamilyInstanceIterator returned error %d\n", (int) status); + return PR_TRUE; + } + + FMFont famFont; + FMFontStyle famFontStyle; + FMFontSize famFontSize; + + while ((status = FMGetNextFontFamilyInstance(famFontIterator, + &famFont, + &famFontStyle, + &famFontSize)) == noErr) + { + + } + + if (status != kFMIterationCompleted) { + fprintf (stderr, "FMGetNextFontFamilyInstance returned error %d\n", (int) status); + return PR_TRUE; + } + + FMDisposeFontFamilyInstanceIterator(&familyFontIterator); +#else + ATSUFontID fontID; + + status = ATSUFindFontFromName(NS_ConvertUTF16toUTF8(aName).get(), aName.Length(), + /* nsPromiseFlatString(aName).get(), + aName.Length() * 2,*/ + kFontFamilyName, + kFontNoPlatformCode /* kFontUnicodePlatform */, + kFontNoScriptCode, + kFontNoLanguageCode, + &fontID); + + //fprintf (stderr, "FindATSUFont: %s -> %d (status: %d)\n", NS_ConvertUTF16toUTF8(aName).get(), (int) fontID, (int) status); + + if (fontID != kATSUInvalidFontID) + fontGroup->mFonts.push_back(new gfxAtsuiFont(fontID, fontGroup)); +#endif + + return PR_TRUE; +} + +gfxAtsuiFontGroup::~gfxAtsuiFontGroup() +{ + ATSUDisposeFontFallbacks(mFallbacks); +} + +gfxTextRun* +gfxAtsuiFontGroup::MakeTextRun(const nsAString& aString) +{ + return new gfxAtsuiTextRun(aString, this); +} + +/** + ** gfxAtsuiTextRun + **/ + +THEBES_IMPL_REFCOUNTING(gfxAtsuiTextRun) + +gfxAtsuiTextRun::gfxAtsuiTextRun(const nsAString& aString, gfxAtsuiFontGroup *aGroup) + : mString(aString), mGroup(aGroup) +{ + OSStatus status; + const gfxFontStyle *fontStyle = mGroup->GetStyle(); + + PRInt16 baseWeight, offsetWeight; + gfxFontStyle::ComputeWeightAndOffset(fontStyle->weight, &baseWeight, &offsetWeight); + baseWeight += offsetWeight; + if (baseWeight < 0) baseWeight = 0; + else if (baseWeight > 9) baseWeight = 9; + + // we can't do kerning until layout draws what it measures, instead of splitting things up + ATSUAttributeTag styleTags[] = { + kATSUFontTag, + kATSUSizeTag, + kATSUKerningInhibitFactorTag, + kATSUQDBoldfaceTag, + kATSUQDItalicTag, + }; + + ByteCount styleArgSizes[] = { + sizeof(ATSUFontID), + sizeof(Fixed), + sizeof(Fract), + sizeof(Boolean), + sizeof(Boolean) + }; + + //fprintf (stderr, "string: '%s', size: %f\n", NS_ConvertUTF16toUTF8(aString).get(), aGroup->GetStyle()->size); + + // fSize is in points (72dpi) + Fixed fSize = FloatToFixed(aGroup->GetStyle()->size); + ATSUFontID fid = ((gfxAtsuiFont*)(mGroup->GetFontList()[0]))->GetATSUFontID(); + Fract inhibitKerningFactor = FloatToFract(1.0); + /* Why am I even setting these? the fid font will end up being used no matter what; + * need smarter font selection earlier on... + */ + Boolean isBold = (baseWeight >= 7) ? TRUE : FALSE; + Boolean isItalic = ((fontStyle->style & FONT_STYLE_ITALIC) != 0) ? TRUE : FALSE; + + + //fprintf (stderr, " bold: %d italic: %d\n", isBold, isItalic); + + ATSUAttributeValuePtr styleArgs[] = { + &fid, + &fSize, + &inhibitKerningFactor, + &isBold, + &isItalic + }; + + status = ATSUCreateStyle(&mATSUStyle); + status = ATSUSetAttributes(mATSUStyle, + sizeof(styleTags)/sizeof(ATSUAttributeTag), + styleTags, + styleArgSizes, + styleArgs); + if (status != noErr) + fprintf (stderr, "ATUSetAttributes gave error: %d\n", (int) status); + + UniCharCount runLengths = kATSUToTextEnd; + + status = ATSUCreateTextLayoutWithTextPtr + (nsPromiseFlatString(mString).get(), + kATSUFromTextBeginning, + kATSUToTextEnd, + mString.Length(), + 1, + &runLengths, + &mATSUStyle, + &mATSULayout); + + // Set up our font fallbacks + ATSUAttributeTag lineTags[] = { kATSULineFontFallbacksTag }; + ByteCount lineArgSizes[] = { sizeof(ATSUFontFallbacks) }; + ATSUAttributeValuePtr lineArgs[] = { mGroup->GetATSUFontFallbacks() }; + status = ATSUSetLineControls(mATSULayout, + 0, + sizeof(lineTags) / sizeof(ATSUAttributeTag), + lineTags, + lineArgSizes, + lineArgs); + if (status != noErr) + fprintf(stderr, "ATSUSetLineControls gave error: %d\n", (int) status); + + ATSUSetTransientFontMatching(mATSULayout, true); +} + +gfxAtsuiTextRun::~gfxAtsuiTextRun() +{ + ATSUDisposeTextLayout(mATSULayout); + ATSUDisposeStyle(mATSUStyle); +} + +void +gfxAtsuiTextRun::DrawString(gfxContext *aContext, gfxPoint pt) +{ + cairo_t *cr = aContext->GetCairo(); + cairo_set_font_face(cr, ((gfxAtsuiFont*)(mGroup->GetFontList()[0]))->CairoFontFace()); + cairo_set_font_size(cr, mGroup->GetStyle()->size); + + ItemCount cnt; + ATSLayoutRecord *layoutRecords = nsnull; + OSStatus status = ATSUDirectGetLayoutDataArrayPtrFromTextLayout + (mATSULayout, + kATSUFromTextBeginning, + kATSUDirectDataLayoutRecordATSLayoutRecordCurrent, + (void**)&layoutRecords, + &cnt); + + if (status != noErr) { + fprintf(stderr, "ATSUDirectGetLayoutDataArrayPtrFromTextLayout failed, %d\n", noErr); + return; + } + + cairo_glyph_t *cglyphs = (cairo_glyph_t *) PR_Malloc (cnt * sizeof(cairo_glyph_t)); + if (!cglyphs) + return; + + //fprintf (stderr, "String: '%s'\n", NS_ConvertUTF16toUTF8(mString).get()); + + PRUint32 cgindex = 0; + for (PRUint32 i = 0; i < cnt; i++) { + //fprintf(stderr, "[%d 0x%04x %f] ", i, layoutRecords[i].glyphID, FixedToFloat(layoutRecords[i].realPos)); + if (!(layoutRecords[i].flags & kATSGlyphInfoIsWhiteSpace)) { + cglyphs[cgindex].index = layoutRecords[i].glyphID; + cglyphs[cgindex].x = pt.x + FixedToFloat(layoutRecords[i].realPos); + cglyphs[cgindex].y = pt.y; + cgindex++; + } + } + //fprintf (stderr, "\n"); + + ATSUDirectReleaseLayoutDataArrayPtr(NULL, + kATSUDirectDataLayoutRecordATSLayoutRecordCurrent, + (void**)&layoutRecords); + + cairo_show_glyphs(cr, cglyphs, cgindex); + + PR_Free(cglyphs); +} + +gfxFloat +gfxAtsuiTextRun::MeasureString(gfxContext *aContext) +{ + OSStatus status; + ATSTrapezoid trap; + ItemCount numBounds; + + status = ATSUGetGlyphBounds(mATSULayout, + FloatToFixed(0.0), + FloatToFixed(0.0), + kATSUFromTextBeginning, + kATSUToTextEnd, + kATSUseFractionalOrigins, + 1, + &trap, + &numBounds); + if (status != noErr) + fprintf(stderr, "ATSUGetGlyphBounds returned error %d!\n", (int) status); + + float f = FixedToFloat(PR_MAX(trap.upperRight.x, trap.lowerRight.x)) - FixedToFloat(PR_MIN(trap.upperLeft.x, trap.lowerLeft.x)); + + //fprintf (stderr, "measured: %f\n", f); + return f; +} diff --git a/mozilla/gfx/thebes/src/gfxFont.cpp b/mozilla/gfx/thebes/src/gfxFont.cpp index 9987cec5839..fc89d748e38 100644 --- a/mozilla/gfx/thebes/src/gfxFont.cpp +++ b/mozilla/gfx/thebes/src/gfxFont.cpp @@ -161,3 +161,19 @@ gfxFontGroup::ForEachFont(FontCreationCallback fc, return PR_TRUE; } +void +gfxFontStyle::ComputeWeightAndOffset (const PRUint16 inWeight, PRInt16 *outBaseWeight, PRInt16 *outOffset) +{ + PRInt16 baseWeight = (inWeight + 50) / 100; + PRInt16 offset = inWeight - baseWeight * 100; + + if (baseWeight < 0) + baseWeight = 0; + if (baseWeight > 9) + baseWeight = 9; + + if (outBaseWeight) + *outBaseWeight = baseWeight; + if (outOffset) + *outOffset = offset; +} diff --git a/mozilla/gfx/thebes/src/gfxPlatformMac.cpp b/mozilla/gfx/thebes/src/gfxPlatformMac.cpp new file mode 100644 index 00000000000..2291f5fe690 --- /dev/null +++ b/mozilla/gfx/thebes/src/gfxPlatformMac.cpp @@ -0,0 +1,133 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is thebes gfx code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2006 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#include "gfxPlatformMac.h" + +#include "gfxImageSurface.h" +#include "gfxQuartzSurface.h" + +#ifdef MOZ_ENABLE_GLITZ +#include "gfxGlitzSurface.h" +#include "glitz-agl.h" +#endif + +gfxPlatformMac::gfxPlatformMac() +{ +#ifdef MOZ_ENABLE_GLITZ + if (UseGlitz()) + glitz_agl_init(); +#endif +} + +gfxASurface* +gfxPlatformMac::CreateOffscreenSurface(PRUint32 width, + PRUint32 height, + gfxASurface::gfxImageFormat imageFormat) +{ + gfxASurface *newSurface = nsnull; + + if (!UseGlitz()) { + newSurface = new gfxQuartzSurface(imageFormat, width, height); + } else { +#ifdef MOZ_ENABLE_GLITZ + int bpp, glitzf; + switch (imageFormat) { + case gfxASurface::ImageFormatARGB32: + bpp = 32; + glitzf = 0; // GLITZ_STANDARD_ARGB32; + break; + case gfxASurface::ImageFormatRGB24: + bpp = 24; + glitzf = 1; // GLITZ_STANDARD_RGB24; + break; + case gfxASurface::ImageFormatA8: + bpp = 8; + glitzf = 2; // GLITZ_STANDARD_A8; + case gfxASurface::ImageFormatA1: + bpp = 1; + glitzf = 3; // GLITZ_STANDARD_A1; + break; + default: + return nsnull; + } + + // XXX look for the right kind of format based on bpp + glitz_drawable_format_t templ; + memset(&templ, 0, sizeof(templ)); + templ.color.red_size = 8; + templ.color.green_size = 8; + templ.color.blue_size = 8; + if (bpp == 32) + templ.color.alpha_size = 8; + else + templ.color.alpha_size = 0; + templ.doublebuffer = FALSE; + templ.samples = 1; + + unsigned long mask = + GLITZ_FORMAT_RED_SIZE_MASK | + GLITZ_FORMAT_GREEN_SIZE_MASK | + GLITZ_FORMAT_BLUE_SIZE_MASK | + GLITZ_FORMAT_ALPHA_SIZE_MASK | + GLITZ_FORMAT_SAMPLES_MASK | + GLITZ_FORMAT_DOUBLEBUFFER_MASK; + + glitz_drawable_format_t *gdformat = + glitz_agl_find_pbuffer_format(mask, &templ, 0); + + glitz_drawable_t *gdraw = + glitz_agl_create_pbuffer_drawable(gdformat, width, height); + + glitz_format_t *gformat = + glitz_find_standard_format(gdraw, (glitz_format_name_t) glitzf); + + glitz_surface_t *gsurf = + glitz_surface_create(gdraw, + gformat, + width, + height, + 0, + NULL); + + glitz_surface_attach(gsurf, gdraw, GLITZ_DRAWABLE_BUFFER_FRONT_COLOR); + + newSurface = new gfxGlitzSurface(gdraw, gsurf, PR_TRUE); +#endif + } + + return newSurface; +} diff --git a/mozilla/gfx/thebes/src/gfxQuartzSurface.cpp b/mozilla/gfx/thebes/src/gfxQuartzSurface.cpp new file mode 100644 index 00000000000..9091429f4a0 --- /dev/null +++ b/mozilla/gfx/thebes/src/gfxQuartzSurface.cpp @@ -0,0 +1,72 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Corporation code. + * + * The Initial Developer of the Original Code is Mozilla Corporation. + * Portions created by the Initial Developer are Copyright (C) 2005 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Vladimir Vukicevic + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#include "gfxQuartzSurface.h" + +#include "cairo-quartz2.h" + +THEBES_IMPL_REFCOUNTING(gfxQuartzSurface) + +gfxQuartzSurface::gfxQuartzSurface(gfxImageFormat format, + int width, int height, + PRBool y_grows_down) + : mWidth(width), mHeight(height) +{ + mCGContext = nsnull; + + cairo_surface_t *surf = cairo_quartzgl_surface_create + ((cairo_format_t) format, width, height, y_grows_down); + + Init(surf); +} + +gfxQuartzSurface::gfxQuartzSurface(CGContextRef context, + int width, int height, + PRBool y_grows_down) + : mCGContext(context), mWidth(width), mHeight(height) +{ + cairo_surface_t *surf = cairo_quartzgl_surface_create_for_cg_context + (context, width, height, y_grows_down); + //printf ("+++ gfxQuartzSurface[%p] %p %d %d -> %p\n", this, context, width, height, surf); + Init(surf); +} + +gfxQuartzSurface::~gfxQuartzSurface() +{ + //printf ("--- ~gfxQuartzSurface[%p] %p %p\n", this, CairoSurface(), mCGContext); + Destroy(); +}