filename | configure |
changeset | 720:b5594d1ac80a |
prev | 714:009591ac251e |
next | 734:f8fcc8322b45 |
author | nkeynes |
date | Sat Jul 05 11:57:36 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Get OS X cdrom driver to the 'sort of working' stage. Hide most of the IOKit fun in a separate osx_iokit module. |
file | annotate | diff | log | raw |
1.1 --- a/configure Sun Jun 29 22:31:40 2008 +00001.2 +++ b/configure Sat Jul 05 11:57:36 2008 +00001.3 @@ -9259,6 +9259,142 @@1.4 fi1.7 +if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then1.8 + { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&51.9 +$as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }1.10 +if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then1.11 + $as_echo_n "(cached) " >&61.12 +fi1.13 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&51.14 +$as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }1.15 +else1.16 + # Is the header compilable?1.17 +{ $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&51.18 +$as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }1.19 +cat >conftest.$ac_ext <<_ACEOF1.20 +/* confdefs.h. */1.21 +_ACEOF1.22 +cat confdefs.h >>conftest.$ac_ext1.23 +cat >>conftest.$ac_ext <<_ACEOF1.24 +/* end confdefs.h. */1.25 +$ac_includes_default1.26 +#include <IOKit/IOKitLib.h>1.27 +_ACEOF1.28 +rm -f conftest.$ac_objext1.29 +if { (ac_try="$ac_compile"1.30 +case "(($ac_try" in1.31 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.32 + *) ac_try_echo=$ac_try;;1.33 +esac1.34 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.35 +$as_echo "$ac_try_echo") >&51.36 + (eval "$ac_compile") 2>conftest.er11.37 + ac_status=$?1.38 + grep -v '^ *+' conftest.er1 >conftest.err1.39 + rm -f conftest.er11.40 + cat conftest.err >&51.41 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.42 + (exit $ac_status); } && {1.43 + test -z "$ac_c_werror_flag" ||1.44 + test ! -s conftest.err1.45 + } && test -s conftest.$ac_objext; then1.46 + ac_header_compiler=yes1.47 +else1.48 + $as_echo "$as_me: failed program was:" >&51.49 +sed 's/^/| /' conftest.$ac_ext >&51.50 +1.51 + ac_header_compiler=no1.52 +fi1.53 +1.54 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.55 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&51.56 +$as_echo "$ac_header_compiler" >&6; }1.57 +1.58 +# Is the header present?1.59 +{ $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&51.60 +$as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }1.61 +cat >conftest.$ac_ext <<_ACEOF1.62 +/* confdefs.h. */1.63 +_ACEOF1.64 +cat confdefs.h >>conftest.$ac_ext1.65 +cat >>conftest.$ac_ext <<_ACEOF1.66 +/* end confdefs.h. */1.67 +#include <IOKit/IOKitLib.h>1.68 +_ACEOF1.69 +if { (ac_try="$ac_cpp conftest.$ac_ext"1.70 +case "(($ac_try" in1.71 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.72 + *) ac_try_echo=$ac_try;;1.73 +esac1.74 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.75 +$as_echo "$ac_try_echo") >&51.76 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.77 + ac_status=$?1.78 + grep -v '^ *+' conftest.er1 >conftest.err1.79 + rm -f conftest.er11.80 + cat conftest.err >&51.81 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.82 + (exit $ac_status); } >/dev/null && {1.83 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1.84 + test ! -s conftest.err1.85 + }; then1.86 + ac_header_preproc=yes1.87 +else1.88 + $as_echo "$as_me: failed program was:" >&51.89 +sed 's/^/| /' conftest.$ac_ext >&51.90 +1.91 + ac_header_preproc=no1.92 +fi1.93 +1.94 +rm -f conftest.err conftest.$ac_ext1.95 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&51.96 +$as_echo "$ac_header_preproc" >&6; }1.97 +1.98 +# So? What about this header?1.99 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in1.100 + yes:no: )1.101 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&51.102 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}1.103 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&51.104 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}1.105 + ac_header_preproc=yes1.106 + ;;1.107 + no:yes:* )1.108 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&51.109 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}1.110 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&51.111 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}1.112 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&51.113 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}1.114 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&51.115 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}1.116 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&51.117 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}1.118 + { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&51.119 +$as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}1.120 +1.121 + ;;1.122 +esac1.123 +{ $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&51.124 +$as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }1.125 +if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then1.126 + $as_echo_n "(cached) " >&61.127 +else1.128 + ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc1.129 +fi1.130 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&51.131 +$as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }1.132 +1.133 +fi1.134 +if test $ac_cv_header_IOKit_IOKitLib_h = yes; then1.135 +1.136 + CDROM_DRIVER=osx1.137 + LIBS="$LIBS -framework IOKit"1.138 +else1.139 + true1.140 +fi1.141 +1.142 +1.145 if test "x$CDROM_DRIVER" = "xlinux"; then
.