filename | configure |
changeset | 977:8514fb4bc101 |
prev | 966:0f0320cb3650 |
next | 984:a01567058a47 |
author | nkeynes |
date | Mon Feb 02 01:40:13 2009 +0000 (13 years ago) |
permissions | -rw-r--r-- |
last change | Fix Objective-C checking to be a little more circumspec (to whit, not aborting if no OBJC compiler is found) - slightly tricky becuase AC_CHECK_HEADER was requiring preprocessor checks, which ran before we checked if there was in fact an OBJC compiler in the first place... Fix there was to change the AC_CHECK_HEADER invocation to use the new (compiler-only) style. |
file | annotate | diff | log | raw |
1.1 --- a/configure Thu Jan 15 11:16:48 2009 +00001.2 +++ b/configure Mon Feb 02 01:40:13 2009 +00001.3 @@ -734,7 +734,6 @@1.4 am__fastdepOBJC_FALSE1.5 POD2MAN1.6 POD2HTML1.7 -OBJCPP1.8 GUI_COCOA_TRUE1.9 GUI_COCOA_FALSE1.10 PKG_CONFIG1.11 @@ -835,7 +834,6 @@1.12 CCAS1.13 CCASFLAGS1.14 CPP1.15 -OBJCPP1.16 PKG_CONFIG1.17 LIBPNG_CFLAGS1.18 LIBPNG_LIBS1.19 @@ -1514,7 +1512,6 @@1.20 CCAS assembler compiler command (defaults to CC)1.21 CCASFLAGS assembler compiler flags (defaults to CFLAGS)1.22 CPP C preprocessor1.23 - OBJCPP Objective C preprocessor1.24 PKG_CONFIG path to pkg-config utility1.25 LIBPNG_CFLAGS1.26 C compiler flags for LIBPNG, overriding pkg-config1.27 @@ -7214,6 +7211,551 @@1.28 fi1.31 +1.32 +1.33 +1.34 +ac_ext=m1.35 +ac_cpp='$OBJCPP $CPPFLAGS'1.36 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.37 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.38 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu1.39 +if test -n "$ac_tool_prefix"; then1.40 + for ac_prog in gcc objcc objc cc CC1.41 + do1.42 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.1.43 +set dummy $ac_tool_prefix$ac_prog; ac_word=$21.44 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&51.45 +$as_echo_n "checking for $ac_word... " >&6; }1.46 +if test "${ac_cv_prog_OBJC+set}" = set; then1.47 + $as_echo_n "(cached) " >&61.48 +else1.49 + if test -n "$OBJC"; then1.50 + ac_cv_prog_OBJC="$OBJC" # Let the user override the test.1.51 +else1.52 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.53 +for as_dir in $PATH1.54 +do1.55 + IFS=$as_save_IFS1.56 + test -z "$as_dir" && as_dir=.1.57 + for ac_exec_ext in '' $ac_executable_extensions; do1.58 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.59 + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"1.60 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.61 + break 21.62 + fi1.63 +done1.64 +done1.65 +IFS=$as_save_IFS1.66 +1.67 +fi1.68 +fi1.69 +OBJC=$ac_cv_prog_OBJC1.70 +if test -n "$OBJC"; then1.71 + { $as_echo "$as_me:$LINENO: result: $OBJC" >&51.72 +$as_echo "$OBJC" >&6; }1.73 +else1.74 + { $as_echo "$as_me:$LINENO: result: no" >&51.75 +$as_echo "no" >&6; }1.76 +fi1.77 +1.78 +1.79 + test -n "$OBJC" && break1.80 + done1.81 +fi1.82 +if test -z "$OBJC"; then1.83 + ac_ct_OBJC=$OBJC1.84 + for ac_prog in gcc objcc objc cc CC1.85 +do1.86 + # Extract the first word of "$ac_prog", so it can be a program name with args.1.87 +set dummy $ac_prog; ac_word=$21.88 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&51.89 +$as_echo_n "checking for $ac_word... " >&6; }1.90 +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then1.91 + $as_echo_n "(cached) " >&61.92 +else1.93 + if test -n "$ac_ct_OBJC"; then1.94 + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.1.95 +else1.96 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.97 +for as_dir in $PATH1.98 +do1.99 + IFS=$as_save_IFS1.100 + test -z "$as_dir" && as_dir=.1.101 + for ac_exec_ext in '' $ac_executable_extensions; do1.102 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.103 + ac_cv_prog_ac_ct_OBJC="$ac_prog"1.104 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.105 + break 21.106 + fi1.107 +done1.108 +done1.109 +IFS=$as_save_IFS1.110 +1.111 +fi1.112 +fi1.113 +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC1.114 +if test -n "$ac_ct_OBJC"; then1.115 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&51.116 +$as_echo "$ac_ct_OBJC" >&6; }1.117 +else1.118 + { $as_echo "$as_me:$LINENO: result: no" >&51.119 +$as_echo "no" >&6; }1.120 +fi1.121 +1.122 +1.123 + test -n "$ac_ct_OBJC" && break1.124 +done1.125 +1.126 + if test "x$ac_ct_OBJC" = x; then1.127 + OBJC="gcc"1.128 + else1.129 + case $cross_compiling:$ac_tool_warned in1.130 +yes:)1.131 +{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools1.132 +whose name does not start with the host triplet. If you think this1.133 +configuration is useful to you, please write to autoconf@gnu.org." >&51.134 +$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools1.135 +whose name does not start with the host triplet. If you think this1.136 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}1.137 +ac_tool_warned=yes ;;1.138 +esac1.139 + OBJC=$ac_ct_OBJC1.140 + fi1.141 +fi1.142 +1.143 +# Provide some information about the compiler.1.144 +$as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&51.145 +set X $ac_compile1.146 +ac_compiler=$21.147 +{ (ac_try="$ac_compiler --version >&5"1.148 +case "(($ac_try" in1.149 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.150 + *) ac_try_echo=$ac_try;;1.151 +esac1.152 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.153 +$as_echo "$ac_try_echo") >&51.154 + (eval "$ac_compiler --version >&5") 2>&51.155 + ac_status=$?1.156 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.157 + (exit $ac_status); }1.158 +{ (ac_try="$ac_compiler -v >&5"1.159 +case "(($ac_try" in1.160 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.161 + *) ac_try_echo=$ac_try;;1.162 +esac1.163 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.164 +$as_echo "$ac_try_echo") >&51.165 + (eval "$ac_compiler -v >&5") 2>&51.166 + ac_status=$?1.167 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.168 + (exit $ac_status); }1.169 +{ (ac_try="$ac_compiler -V >&5"1.170 +case "(($ac_try" in1.171 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.172 + *) ac_try_echo=$ac_try;;1.173 +esac1.174 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.175 +$as_echo "$ac_try_echo") >&51.176 + (eval "$ac_compiler -V >&5") 2>&51.177 + ac_status=$?1.178 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.179 + (exit $ac_status); }1.180 +1.181 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&51.182 +$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }1.183 +if test "${ac_cv_objc_compiler_gnu+set}" = set; then1.184 + $as_echo_n "(cached) " >&61.185 +else1.186 + cat >conftest.$ac_ext <<_ACEOF1.187 +/* confdefs.h. */1.188 +_ACEOF1.189 +cat confdefs.h >>conftest.$ac_ext1.190 +cat >>conftest.$ac_ext <<_ACEOF1.191 +/* end confdefs.h. */1.192 +1.193 +int1.194 +main ()1.195 +{1.196 +#ifndef __GNUC__1.197 + choke me1.198 +#endif1.199 +1.200 + ;1.201 + return 0;1.202 +}1.203 +_ACEOF1.204 +rm -f conftest.$ac_objext1.205 +if { (ac_try="$ac_compile"1.206 +case "(($ac_try" in1.207 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.208 + *) ac_try_echo=$ac_try;;1.209 +esac1.210 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.211 +$as_echo "$ac_try_echo") >&51.212 + (eval "$ac_compile") 2>conftest.er11.213 + ac_status=$?1.214 + grep -v '^ *+' conftest.er1 >conftest.err1.215 + rm -f conftest.er11.216 + cat conftest.err >&51.217 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.218 + (exit $ac_status); } && {1.219 + test -z "$ac_objc_werror_flag" ||1.220 + test ! -s conftest.err1.221 + } && test -s conftest.$ac_objext; then1.222 + ac_compiler_gnu=yes1.223 +else1.224 + $as_echo "$as_me: failed program was:" >&51.225 +sed 's/^/| /' conftest.$ac_ext >&51.226 +1.227 + ac_compiler_gnu=no1.228 +fi1.229 +1.230 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.231 +ac_cv_objc_compiler_gnu=$ac_compiler_gnu1.232 +1.233 +fi1.234 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&51.235 +$as_echo "$ac_cv_objc_compiler_gnu" >&6; }1.236 +if test $ac_compiler_gnu = yes; then1.237 + GOBJC=yes1.238 +else1.239 + GOBJC=1.240 +fi1.241 +ac_test_OBJCFLAGS=${OBJCFLAGS+set}1.242 +ac_save_OBJCFLAGS=$OBJCFLAGS1.243 +{ $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&51.244 +$as_echo_n "checking whether $OBJC accepts -g... " >&6; }1.245 +if test "${ac_cv_prog_objc_g+set}" = set; then1.246 + $as_echo_n "(cached) " >&61.247 +else1.248 + ac_save_objc_werror_flag=$ac_objc_werror_flag1.249 + ac_objc_werror_flag=yes1.250 + ac_cv_prog_objc_g=no1.251 + OBJCFLAGS="-g"1.252 + cat >conftest.$ac_ext <<_ACEOF1.253 +/* confdefs.h. */1.254 +_ACEOF1.255 +cat confdefs.h >>conftest.$ac_ext1.256 +cat >>conftest.$ac_ext <<_ACEOF1.257 +/* end confdefs.h. */1.258 +1.259 +int1.260 +main ()1.261 +{1.262 +1.263 + ;1.264 + return 0;1.265 +}1.266 +_ACEOF1.267 +rm -f conftest.$ac_objext1.268 +if { (ac_try="$ac_compile"1.269 +case "(($ac_try" in1.270 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.271 + *) ac_try_echo=$ac_try;;1.272 +esac1.273 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.274 +$as_echo "$ac_try_echo") >&51.275 + (eval "$ac_compile") 2>conftest.er11.276 + ac_status=$?1.277 + grep -v '^ *+' conftest.er1 >conftest.err1.278 + rm -f conftest.er11.279 + cat conftest.err >&51.280 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.281 + (exit $ac_status); } && {1.282 + test -z "$ac_objc_werror_flag" ||1.283 + test ! -s conftest.err1.284 + } && test -s conftest.$ac_objext; then1.285 + ac_cv_prog_objc_g=yes1.286 +else1.287 + $as_echo "$as_me: failed program was:" >&51.288 +sed 's/^/| /' conftest.$ac_ext >&51.289 +1.290 + OBJCFLAGS=""1.291 + cat >conftest.$ac_ext <<_ACEOF1.292 +/* confdefs.h. */1.293 +_ACEOF1.294 +cat confdefs.h >>conftest.$ac_ext1.295 +cat >>conftest.$ac_ext <<_ACEOF1.296 +/* end confdefs.h. */1.297 +1.298 +int1.299 +main ()1.300 +{1.301 +1.302 + ;1.303 + return 0;1.304 +}1.305 +_ACEOF1.306 +rm -f conftest.$ac_objext1.307 +if { (ac_try="$ac_compile"1.308 +case "(($ac_try" in1.309 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.310 + *) ac_try_echo=$ac_try;;1.311 +esac1.312 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.313 +$as_echo "$ac_try_echo") >&51.314 + (eval "$ac_compile") 2>conftest.er11.315 + ac_status=$?1.316 + grep -v '^ *+' conftest.er1 >conftest.err1.317 + rm -f conftest.er11.318 + cat conftest.err >&51.319 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.320 + (exit $ac_status); } && {1.321 + test -z "$ac_objc_werror_flag" ||1.322 + test ! -s conftest.err1.323 + } && test -s conftest.$ac_objext; then1.324 + :1.325 +else1.326 + $as_echo "$as_me: failed program was:" >&51.327 +sed 's/^/| /' conftest.$ac_ext >&51.328 +1.329 + ac_objc_werror_flag=$ac_save_objc_werror_flag1.330 + OBJCFLAGS="-g"1.331 + cat >conftest.$ac_ext <<_ACEOF1.332 +/* confdefs.h. */1.333 +_ACEOF1.334 +cat confdefs.h >>conftest.$ac_ext1.335 +cat >>conftest.$ac_ext <<_ACEOF1.336 +/* end confdefs.h. */1.337 +1.338 +int1.339 +main ()1.340 +{1.341 +1.342 + ;1.343 + return 0;1.344 +}1.345 +_ACEOF1.346 +rm -f conftest.$ac_objext1.347 +if { (ac_try="$ac_compile"1.348 +case "(($ac_try" in1.349 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.350 + *) ac_try_echo=$ac_try;;1.351 +esac1.352 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.353 +$as_echo "$ac_try_echo") >&51.354 + (eval "$ac_compile") 2>conftest.er11.355 + ac_status=$?1.356 + grep -v '^ *+' conftest.er1 >conftest.err1.357 + rm -f conftest.er11.358 + cat conftest.err >&51.359 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.360 + (exit $ac_status); } && {1.361 + test -z "$ac_objc_werror_flag" ||1.362 + test ! -s conftest.err1.363 + } && test -s conftest.$ac_objext; then1.364 + ac_cv_prog_objc_g=yes1.365 +else1.366 + $as_echo "$as_me: failed program was:" >&51.367 +sed 's/^/| /' conftest.$ac_ext >&51.368 +1.369 +1.370 +fi1.371 +1.372 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.373 +fi1.374 +1.375 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.376 +fi1.377 +1.378 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.379 + ac_objc_werror_flag=$ac_save_objc_werror_flag1.380 +fi1.381 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&51.382 +$as_echo "$ac_cv_prog_objc_g" >&6; }1.383 +if test "$ac_test_OBJCFLAGS" = set; then1.384 + OBJCFLAGS=$ac_save_OBJCFLAGS1.385 +elif test $ac_cv_prog_objc_g = yes; then1.386 + if test "$GOBJC" = yes; then1.387 + OBJCFLAGS="-g -O2"1.388 + else1.389 + OBJCFLAGS="-g"1.390 + fi1.391 +else1.392 + if test "$GOBJC" = yes; then1.393 + OBJCFLAGS="-O2"1.394 + else1.395 + OBJCFLAGS=1.396 + fi1.397 +fi1.398 +ac_ext=c1.399 +ac_cpp='$CPP $CPPFLAGS'1.400 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.401 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.402 +ac_compiler_gnu=$ac_cv_c_compiler_gnu1.403 +1.404 +{ $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&51.405 +$as_echo_n "checking for a working Objective-C compiler... " >&6; }1.406 +ac_ext=m1.407 +ac_cpp='$OBJCPP $CPPFLAGS'1.408 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.409 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.410 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu1.411 +cat >conftest.$ac_ext <<_ACEOF1.412 +/* confdefs.h. */1.413 +_ACEOF1.414 +cat confdefs.h >>conftest.$ac_ext1.415 +cat >>conftest.$ac_ext <<_ACEOF1.416 +/* end confdefs.h. */1.417 +@interface Foo @end1.418 +int1.419 +main ()1.420 +{1.421 +1.422 + ;1.423 + return 0;1.424 +}1.425 +_ACEOF1.426 +rm -f conftest.$ac_objext1.427 +if { (ac_try="$ac_compile"1.428 +case "(($ac_try" in1.429 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.430 + *) ac_try_echo=$ac_try;;1.431 +esac1.432 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.433 +$as_echo "$ac_try_echo") >&51.434 + (eval "$ac_compile") 2>conftest.er11.435 + ac_status=$?1.436 + grep -v '^ *+' conftest.er1 >conftest.err1.437 + rm -f conftest.er11.438 + cat conftest.err >&51.439 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.440 + (exit $ac_status); } && {1.441 + test -z "$ac_objc_werror_flag" ||1.442 + test ! -s conftest.err1.443 + } && test -s conftest.$ac_objext; then1.444 + { $as_echo "$as_me:$LINENO: result: yes" >&51.445 +$as_echo "yes" >&6; }1.446 +1.447 + { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&51.448 +$as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }1.449 +if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then1.450 + $as_echo_n "(cached) " >&61.451 +else1.452 + cat >conftest.$ac_ext <<_ACEOF1.453 +/* confdefs.h. */1.454 +_ACEOF1.455 +cat confdefs.h >>conftest.$ac_ext1.456 +cat >>conftest.$ac_ext <<_ACEOF1.457 +/* end confdefs.h. */1.458 +$ac_includes_default1.459 +1.460 +#include <Cocoa/Cocoa.h>1.461 +_ACEOF1.462 +rm -f conftest.$ac_objext1.463 +if { (ac_try="$ac_compile"1.464 +case "(($ac_try" in1.465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.466 + *) ac_try_echo=$ac_try;;1.467 +esac1.468 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.469 +$as_echo "$ac_try_echo") >&51.470 + (eval "$ac_compile") 2>conftest.er11.471 + ac_status=$?1.472 + grep -v '^ *+' conftest.er1 >conftest.err1.473 + rm -f conftest.er11.474 + cat conftest.err >&51.475 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.476 + (exit $ac_status); } && {1.477 + test -z "$ac_objc_werror_flag" ||1.478 + test ! -s conftest.err1.479 + } && test -s conftest.$ac_objext; then1.480 + ac_cv_header_Cocoa_Cocoa_h=yes1.481 +else1.482 + $as_echo "$as_me: failed program was:" >&51.483 +sed 's/^/| /' conftest.$ac_ext >&51.484 +1.485 + ac_cv_header_Cocoa_Cocoa_h=no1.486 +fi1.487 +1.488 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.489 +fi1.490 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&51.491 +$as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }1.492 +if test $ac_cv_header_Cocoa_Cocoa_h = yes; then1.493 +1.494 + HAVE_COCOA='yes'1.495 + APPLE_BUILD='yes'1.496 + LIBS="$LIBS -framework AppKit"1.497 + LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"1.498 + CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"1.499 + LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"1.500 +1.501 +cat >>confdefs.h <<\_ACEOF1.502 +#define HAVE_COCOA 11.503 +_ACEOF1.504 +1.505 +1.506 +cat >>confdefs.h <<\_ACEOF1.507 +#define APPLE_BUILD 11.508 +_ACEOF1.509 +1.510 + if test "x$with_gtk" = "xx11"; then1.511 + with_gtk=no1.512 + fi1.513 +1.514 +fi1.515 +1.516 +1.517 +1.518 +1.519 +{ $as_echo "$as_me:$LINENO: checking OBJC version" >&51.520 +$as_echo_n "checking OBJC version... " >&6; }1.521 +if test -n "$OBJC"; then1.522 + _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`1.523 + if test -n "$_GOBJC_VERSION"; then1.524 + { $as_echo "$as_me:$LINENO: result: GCC" >&51.525 +$as_echo "GCC" >&6; }1.526 + OBJCOPT="-O2 -msse2 -mfpmath=sse"1.527 + OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"1.528 + else1.529 + { $as_echo "$as_me:$LINENO: result: Unknown" >&51.530 +$as_echo "Unknown" >&6; }1.531 + OBJCOPT="-O2"1.532 + fi1.533 +else1.534 + { $as_echo "$as_me:$LINENO: result: None" >&51.535 +$as_echo "None" >&6; }1.536 +1.537 +fi1.538 +1.539 +1.540 +else1.541 + $as_echo "$as_me: failed program was:" >&51.542 +sed 's/^/| /' conftest.$ac_ext >&51.543 +1.544 + { $as_echo "$as_me:$LINENO: result: No" >&51.545 +$as_echo "No" >&6; }1.546 +1.547 +fi1.548 +1.549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;1.550 +ac_ext=c1.551 +ac_cpp='$CPP $CPPFLAGS'1.552 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.553 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.554 +ac_compiler_gnu=$ac_cv_c_compiler_gnu1.555 +1.556 +1.557 +1.558 +1.559 +1.560 +if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then1.561 + GUI_COCOA_TRUE=1.562 + GUI_COCOA_FALSE='#'1.563 +else1.564 + GUI_COCOA_TRUE='#'1.565 + GUI_COCOA_FALSE=1.566 +fi1.567 +1.568 +if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then1.569 +1.570 +cat >>confdefs.h <<\_ACEOF1.571 +#define OSX_BUNDLE 11.572 +_ACEOF1.573 +1.574 +fi1.575 +1.576 CFLAGS="-g -fexceptions"1.577 OBJCFLAGS="-g -fexceptions"1.579 @@ -7243,27 +7785,6 @@1.580 fi1.583 -{ $as_echo "$as_me:$LINENO: checking OBJC version" >&51.584 -$as_echo_n "checking OBJC version... " >&6; }1.585 -if test -n "$OBJC"; then1.586 - _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`1.587 - if test -n "$_GOBJC_VERSION"; then1.588 - { $as_echo "$as_me:$LINENO: result: GCC" >&51.589 -$as_echo "GCC" >&6; }1.590 - OBJCOPT="-O2 -msse2 -mfpmath=sse"1.591 - OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"1.592 - else1.593 - { $as_echo "$as_me:$LINENO: result: Unknown" >&51.594 -$as_echo "Unknown" >&6; }1.595 - OBJCOPT="-O2"1.596 - fi1.597 -else1.598 - { $as_echo "$as_me:$LINENO: result: None" >&51.599 -$as_echo "None" >&6; }1.600 -1.601 -fi1.602 -1.603 -1.604 if test "x$enable_optimized" = "xyes"; then1.605 CFLAGS="$CFLAGS $CCOPT"1.606 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"1.607 @@ -7452,423 +7973,6 @@1.611 -ac_ext=m1.612 -ac_cpp='$OBJCPP $CPPFLAGS'1.613 -ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.614 -ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.615 -ac_compiler_gnu=$ac_cv_objc_compiler_gnu1.616 -1.617 -1.618 -1.619 -ac_ext=m1.620 -ac_cpp='$OBJCPP $CPPFLAGS'1.621 -ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.622 -ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.623 -ac_compiler_gnu=$ac_cv_objc_compiler_gnu1.624 -{ $as_echo "$as_me:$LINENO: checking how to run the Objective C preprocessor" >&51.625 -$as_echo_n "checking how to run the Objective C preprocessor... " >&6; }1.626 -if test -z "$OBJCPP"; then1.627 - if test "${ac_cv_prog_OBJCPP+set}" = set; then1.628 - $as_echo_n "(cached) " >&61.629 -else1.630 - # Double quotes because OBJCPP needs to be expanded1.631 - for OBJCPP in "$OBJC -E" "/lib/cpp"1.632 - do1.633 - ac_preproc_ok=false1.634 -for ac_objc_preproc_warn_flag in '' yes1.635 -do1.636 - # Use a header file that comes with gcc, so configuring glibc1.637 - # with a fresh cross-compiler works.1.638 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1.639 - # <limits.h> exists even on freestanding compilers.1.640 - # On the NeXT, cc -E runs the code through the compiler's parser,1.641 - # not just through cpp. "Syntax error" is here to catch this case.1.642 - cat >conftest.$ac_ext <<_ACEOF1.643 -/* confdefs.h. */1.644 -_ACEOF1.645 -cat confdefs.h >>conftest.$ac_ext1.646 -cat >>conftest.$ac_ext <<_ACEOF1.647 -/* end confdefs.h. */1.648 -#ifdef __STDC__1.649 -# include <limits.h>1.650 -#else1.651 -# include <assert.h>1.652 -#endif1.653 - Syntax error1.654 -_ACEOF1.655 -if { (ac_try="$ac_cpp conftest.$ac_ext"1.656 -case "(($ac_try" in1.657 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.658 - *) ac_try_echo=$ac_try;;1.659 -esac1.660 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.661 -$as_echo "$ac_try_echo") >&51.662 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.663 - ac_status=$?1.664 - grep -v '^ *+' conftest.er1 >conftest.err1.665 - rm -f conftest.er11.666 - cat conftest.err >&51.667 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.668 - (exit $ac_status); } >/dev/null && {1.669 - test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||1.670 - test ! -s conftest.err1.671 - }; then1.672 - :1.673 -else1.674 - $as_echo "$as_me: failed program was:" >&51.675 -sed 's/^/| /' conftest.$ac_ext >&51.676 -1.677 - # Broken: fails on valid input.1.678 -continue1.679 -fi1.680 -1.681 -rm -f conftest.err conftest.$ac_ext1.682 -1.683 - # OK, works on sane cases. Now check whether nonexistent headers1.684 - # can be detected and how.1.685 - cat >conftest.$ac_ext <<_ACEOF1.686 -/* confdefs.h. */1.687 -_ACEOF1.688 -cat confdefs.h >>conftest.$ac_ext1.689 -cat >>conftest.$ac_ext <<_ACEOF1.690 -/* end confdefs.h. */1.691 -#include <ac_nonexistent.h>1.692 -_ACEOF1.693 -if { (ac_try="$ac_cpp conftest.$ac_ext"1.694 -case "(($ac_try" in1.695 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.696 - *) ac_try_echo=$ac_try;;1.697 -esac1.698 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.699 -$as_echo "$ac_try_echo") >&51.700 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.701 - ac_status=$?1.702 - grep -v '^ *+' conftest.er1 >conftest.err1.703 - rm -f conftest.er11.704 - cat conftest.err >&51.705 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.706 - (exit $ac_status); } >/dev/null && {1.707 - test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||1.708 - test ! -s conftest.err1.709 - }; then1.710 - # Broken: success on invalid input.1.711 -continue1.712 -else1.713 - $as_echo "$as_me: failed program was:" >&51.714 -sed 's/^/| /' conftest.$ac_ext >&51.715 -1.716 - # Passes both tests.1.717 -ac_preproc_ok=:1.718 -break1.719 -fi1.720 -1.721 -rm -f conftest.err conftest.$ac_ext1.722 -1.723 -done1.724 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.1.725 -rm -f conftest.err conftest.$ac_ext1.726 -if $ac_preproc_ok; then1.727 - break1.728 -fi1.729 -1.730 - done1.731 - ac_cv_prog_OBJCPP=$OBJCPP1.732 -1.733 -fi1.734 - OBJCPP=$ac_cv_prog_OBJCPP1.735 -else1.736 - ac_cv_prog_OBJCPP=$OBJCPP1.737 -fi1.738 -{ $as_echo "$as_me:$LINENO: result: $OBJCPP" >&51.739 -$as_echo "$OBJCPP" >&6; }1.740 -ac_preproc_ok=false1.741 -for ac_objc_preproc_warn_flag in '' yes1.742 -do1.743 - # Use a header file that comes with gcc, so configuring glibc1.744 - # with a fresh cross-compiler works.1.745 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1.746 - # <limits.h> exists even on freestanding compilers.1.747 - # On the NeXT, cc -E runs the code through the compiler's parser,1.748 - # not just through cpp. "Syntax error" is here to catch this case.1.749 - cat >conftest.$ac_ext <<_ACEOF1.750 -/* confdefs.h. */1.751 -_ACEOF1.752 -cat confdefs.h >>conftest.$ac_ext1.753 -cat >>conftest.$ac_ext <<_ACEOF1.754 -/* end confdefs.h. */1.755 -#ifdef __STDC__1.756 -# include <limits.h>1.757 -#else1.758 -# include <assert.h>1.759 -#endif1.760 - Syntax error1.761 -_ACEOF1.762 -if { (ac_try="$ac_cpp conftest.$ac_ext"1.763 -case "(($ac_try" in1.764 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.765 - *) ac_try_echo=$ac_try;;1.766 -esac1.767 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.768 -$as_echo "$ac_try_echo") >&51.769 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.770 - ac_status=$?1.771 - grep -v '^ *+' conftest.er1 >conftest.err1.772 - rm -f conftest.er11.773 - cat conftest.err >&51.774 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.775 - (exit $ac_status); } >/dev/null && {1.776 - test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||1.777 - test ! -s conftest.err1.778 - }; then1.779 - :1.780 -else1.781 - $as_echo "$as_me: failed program was:" >&51.782 -sed 's/^/| /' conftest.$ac_ext >&51.783 -1.784 - # Broken: fails on valid input.1.785 -continue1.786 -fi1.787 -1.788 -rm -f conftest.err conftest.$ac_ext1.789 -1.790 - # OK, works on sane cases. Now check whether nonexistent headers1.791 - # can be detected and how.1.792 - cat >conftest.$ac_ext <<_ACEOF1.793 -/* confdefs.h. */1.794 -_ACEOF1.795 -cat confdefs.h >>conftest.$ac_ext1.796 -cat >>conftest.$ac_ext <<_ACEOF1.797 -/* end confdefs.h. */1.798 -#include <ac_nonexistent.h>1.799 -_ACEOF1.800 -if { (ac_try="$ac_cpp conftest.$ac_ext"1.801 -case "(($ac_try" in1.802 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.803 - *) ac_try_echo=$ac_try;;1.804 -esac1.805 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.806 -$as_echo "$ac_try_echo") >&51.807 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.808 - ac_status=$?1.809 - grep -v '^ *+' conftest.er1 >conftest.err1.810 - rm -f conftest.er11.811 - cat conftest.err >&51.812 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.813 - (exit $ac_status); } >/dev/null && {1.814 - test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||1.815 - test ! -s conftest.err1.816 - }; then1.817 - # Broken: success on invalid input.1.818 -continue1.819 -else1.820 - $as_echo "$as_me: failed program was:" >&51.821 -sed 's/^/| /' conftest.$ac_ext >&51.822 -1.823 - # Passes both tests.1.824 -ac_preproc_ok=:1.825 -break1.826 -fi1.827 -1.828 -rm -f conftest.err conftest.$ac_ext1.829 -1.830 -done1.831 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.1.832 -rm -f conftest.err conftest.$ac_ext1.833 -if $ac_preproc_ok; then1.834 - :1.835 -else1.836 - { { $as_echo "$as_me:$LINENO: error: Objective C preprocessor \"$OBJCPP\" fails sanity check1.837 -See \`config.log' for more details." >&51.838 -$as_echo "$as_me: error: Objective C preprocessor \"$OBJCPP\" fails sanity check1.839 -See \`config.log' for more details." >&2;}1.840 - { (exit 1); exit 1; }; }1.841 -fi1.842 -1.843 -ac_ext=m1.844 -ac_cpp='$OBJCPP $CPPFLAGS'1.845 -ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.846 -ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.847 -ac_compiler_gnu=$ac_cv_objc_compiler_gnu1.848 -1.849 -1.850 -if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then1.851 - { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&51.852 -$as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }1.853 -if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then1.854 - $as_echo_n "(cached) " >&61.855 -fi1.856 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&51.857 -$as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }1.858 -else1.859 - # Is the header compilable?1.860 -{ $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&51.861 -$as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }1.862 -cat >conftest.$ac_ext <<_ACEOF1.863 -/* confdefs.h. */1.864 -_ACEOF1.865 -cat confdefs.h >>conftest.$ac_ext1.866 -cat >>conftest.$ac_ext <<_ACEOF1.867 -/* end confdefs.h. */1.868 -$ac_includes_default1.869 -#include <Cocoa/Cocoa.h>1.870 -_ACEOF1.871 -rm -f conftest.$ac_objext1.872 -if { (ac_try="$ac_compile"1.873 -case "(($ac_try" in1.874 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.875 - *) ac_try_echo=$ac_try;;1.876 -esac1.877 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.878 -$as_echo "$ac_try_echo") >&51.879 - (eval "$ac_compile") 2>conftest.er11.880 - ac_status=$?1.881 - grep -v '^ *+' conftest.er1 >conftest.err1.882 - rm -f conftest.er11.883 - cat conftest.err >&51.884 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.885 - (exit $ac_status); } && {1.886 - test -z "$ac_objc_werror_flag" ||1.887 - test ! -s conftest.err1.888 - } && test -s conftest.$ac_objext; then1.889 - ac_header_compiler=yes1.890 -else1.891 - $as_echo "$as_me: failed program was:" >&51.892 -sed 's/^/| /' conftest.$ac_ext >&51.893 -1.894 - ac_header_compiler=no1.895 -fi1.896 -1.897 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.898 -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&51.899 -$as_echo "$ac_header_compiler" >&6; }1.900 -1.901 -# Is the header present?1.902 -{ $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&51.903 -$as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }1.904 -cat >conftest.$ac_ext <<_ACEOF1.905 -/* confdefs.h. */1.906 -_ACEOF1.907 -cat confdefs.h >>conftest.$ac_ext1.908 -cat >>conftest.$ac_ext <<_ACEOF1.909 -/* end confdefs.h. */1.910 -#include <Cocoa/Cocoa.h>1.911 -_ACEOF1.912 -if { (ac_try="$ac_cpp conftest.$ac_ext"1.913 -case "(($ac_try" in1.914 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.915 - *) ac_try_echo=$ac_try;;1.916 -esac1.917 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.918 -$as_echo "$ac_try_echo") >&51.919 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.920 - ac_status=$?1.921 - grep -v '^ *+' conftest.er1 >conftest.err1.922 - rm -f conftest.er11.923 - cat conftest.err >&51.924 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.925 - (exit $ac_status); } >/dev/null && {1.926 - test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||1.927 - test ! -s conftest.err1.928 - }; then1.929 - ac_header_preproc=yes1.930 -else1.931 - $as_echo "$as_me: failed program was:" >&51.932 -sed 's/^/| /' conftest.$ac_ext >&51.933 -1.934 - ac_header_preproc=no1.935 -fi1.936 -1.937 -rm -f conftest.err conftest.$ac_ext1.938 -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&51.939 -$as_echo "$ac_header_preproc" >&6; }1.940 -1.941 -# So? What about this header?1.942 -case $ac_header_compiler:$ac_header_preproc:$ac_objc_preproc_warn_flag in1.943 - yes:no: )1.944 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&51.945 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}1.946 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&51.947 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}1.948 - ac_header_preproc=yes1.949 - ;;1.950 - no:yes:* )1.951 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&51.952 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}1.953 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&51.954 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}1.955 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&51.956 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}1.957 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&51.958 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}1.959 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&51.960 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}1.961 - { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&51.962 -$as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}1.963 -1.964 - ;;1.965 -esac1.966 -{ $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&51.967 -$as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }1.968 -if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then1.969 - $as_echo_n "(cached) " >&61.970 -else1.971 - ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc1.972 -fi1.973 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&51.974 -$as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }1.975 -1.976 -fi1.977 -if test $ac_cv_header_Cocoa_Cocoa_h = yes; then1.978 -1.979 - HAVE_COCOA='yes'1.980 - APPLE_BUILD='yes'1.981 - LIBS="$LIBS -framework AppKit"1.982 - LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"1.983 - CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"1.984 - LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"1.985 -1.986 -cat >>confdefs.h <<\_ACEOF1.987 -#define HAVE_COCOA 11.988 -_ACEOF1.989 -1.990 -1.991 -cat >>confdefs.h <<\_ACEOF1.992 -#define APPLE_BUILD 11.993 -_ACEOF1.994 -1.995 - if test "x$with_gtk" = "xx11"; then1.996 - with_gtk=no1.997 - fi1.998 -1.999 -fi1.1000 -1.1001 -1.1002 -1.1003 -1.1004 -1.1005 -if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then1.1006 - GUI_COCOA_TRUE=1.1007 - GUI_COCOA_FALSE='#'1.1008 -else1.1009 - GUI_COCOA_TRUE='#'1.1010 - GUI_COCOA_FALSE=1.1011 -fi1.1012 -1.1013 -if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then1.1014 -1.1015 -cat >>confdefs.h <<\_ACEOF1.1016 -#define OSX_BUNDLE 11.1017 -_ACEOF1.1018 -1.1019 -fi1.1020 -1.1021 -ac_ext=c1.1022 -ac_cpp='$CPP $CPPFLAGS'1.1023 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'1.1024 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1.1025 -ac_compiler_gnu=$ac_cv_c_compiler_gnu1.1026 -1.1027 -1.1030 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
.