Changeset d307283d3e0731d50727b21fd500bad39a5c51d2
- Timestamp:
- 27/07/01 18:23:14
(7 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 996250994 +0000
- git-parent:
[c085b215f4527c99b144a3683560901f5da8f1f8]
- git-author:
- Sam Hocevar <sam@videolan.org> 996250994 +0000
- Message:
- Additional fixes to the sdl-config detection.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc085b21 |
rd307283 |
|
| 9 | 9 | Fri, 27 Jul 2001 03:30:44 +0200 |
|---|
| 10 | 10 | |
|---|
| | 11 | * Additional fixes to the sdl-config detection. |
|---|
| 11 | 12 | * Added a make uninstall rule. |
|---|
| 12 | 13 | * Changed libdvdcss API to force binary incompatibility. Yeah, this is |
|---|
| r4945d2b |
rd307283 |
|
| 4132 | 4132 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 4133 | 4133 | echo "configure:4134: checking for $ac_word" >&5 |
|---|
| 4134 | | if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then |
|---|
| 4135 | | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4136 | | else |
|---|
| 4137 | | case "$SDL_CONFIG" in |
|---|
| | 4134 | if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then |
|---|
| | 4135 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| | 4136 | else |
|---|
| | 4137 | case "$SDL11_CONFIG" in |
|---|
| 4138 | 4138 | /*) |
|---|
| 4139 | | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
|---|
| | 4139 | ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path. |
|---|
| 4140 | 4140 | ;; |
|---|
| 4141 | 4141 | ?:/*) |
|---|
| 4142 | | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. |
|---|
| | 4142 | ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path. |
|---|
| 4143 | 4143 | ;; |
|---|
| 4144 | 4144 | *) |
|---|
| … | … | |
| 4148 | 4148 | test -z "$ac_dir" && ac_dir=. |
|---|
| 4149 | 4149 | if test -f $ac_dir/$ac_word; then |
|---|
| 4150 | | ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" |
|---|
| | 4150 | ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word" |
|---|
| 4151 | 4151 | break |
|---|
| 4152 | 4152 | fi |
|---|
| 4153 | 4153 | done |
|---|
| 4154 | 4154 | IFS="$ac_save_ifs" |
|---|
| 4155 | | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
|---|
| | 4155 | test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no" |
|---|
| 4156 | 4156 | ;; |
|---|
| 4157 | 4157 | esac |
|---|
| 4158 | 4158 | fi |
|---|
| 4159 | | SDL_CONFIG="$ac_cv_path_SDL_CONFIG" |
|---|
| 4160 | | if test -n "$SDL_CONFIG"; then |
|---|
| 4161 | | echo "$ac_t""$SDL_CONFIG" 1>&6 |
|---|
| 4162 | | else |
|---|
| 4163 | | echo "$ac_t""no" 1>&6 |
|---|
| 4164 | | fi |
|---|
| 4165 | | |
|---|
| | 4159 | SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG" |
|---|
| | 4160 | if test -n "$SDL11_CONFIG"; then |
|---|
| | 4161 | echo "$ac_t""$SDL11_CONFIG" 1>&6 |
|---|
| | 4162 | else |
|---|
| | 4163 | echo "$ac_t""no" 1>&6 |
|---|
| | 4164 | fi |
|---|
| | 4165 | |
|---|
| | 4166 | SDL_CONFIG=${SDL11_CONFIG} |
|---|
| 4166 | 4167 | SDL_HEADER="SDL11/SDL.h" |
|---|
| 4167 | 4168 | fi |
|---|
| … | … | |
| 4170 | 4171 | set dummy sdl12-config; ac_word=$2 |
|---|
| 4171 | 4172 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 4172 | | echo "configure:4173: checking for $ac_word" >&5 |
|---|
| 4173 | | if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then |
|---|
| 4174 | | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4175 | | else |
|---|
| 4176 | | case "$SDL_CONFIG" in |
|---|
| | 4173 | echo "configure:4174: checking for $ac_word" >&5 |
|---|
| | 4174 | if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then |
|---|
| | 4175 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| | 4176 | else |
|---|
| | 4177 | case "$SDL12_CONFIG" in |
|---|
| 4177 | 4178 | /*) |
|---|
| 4178 | | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
|---|
| | 4179 | ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path. |
|---|
| 4179 | 4180 | ;; |
|---|
| 4180 | 4181 | ?:/*) |
|---|
| 4181 | | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. |
|---|
| | 4182 | ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path. |
|---|
| 4182 | 4183 | ;; |
|---|
| 4183 | 4184 | *) |
|---|
| … | … | |
| 4187 | 4188 | test -z "$ac_dir" && ac_dir=. |
|---|
| 4188 | 4189 | if test -f $ac_dir/$ac_word; then |
|---|
| 4189 | | ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" |
|---|
| | 4190 | ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word" |
|---|
| 4190 | 4191 | break |
|---|
| 4191 | 4192 | fi |
|---|
| 4192 | 4193 | done |
|---|
| 4193 | 4194 | IFS="$ac_save_ifs" |
|---|
| 4194 | | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
|---|
| | 4195 | test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no" |
|---|
| 4195 | 4196 | ;; |
|---|
| 4196 | 4197 | esac |
|---|
| 4197 | 4198 | fi |
|---|
| 4198 | | SDL_CONFIG="$ac_cv_path_SDL_CONFIG" |
|---|
| 4199 | | if test -n "$SDL_CONFIG"; then |
|---|
| 4200 | | echo "$ac_t""$SDL_CONFIG" 1>&6 |
|---|
| 4201 | | else |
|---|
| 4202 | | echo "$ac_t""no" 1>&6 |
|---|
| 4203 | | fi |
|---|
| 4204 | | |
|---|
| | 4199 | SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG" |
|---|
| | 4200 | if test -n "$SDL12_CONFIG"; then |
|---|
| | 4201 | echo "$ac_t""$SDL12_CONFIG" 1>&6 |
|---|
| | 4202 | else |
|---|
| | 4203 | echo "$ac_t""no" 1>&6 |
|---|
| | 4204 | fi |
|---|
| | 4205 | |
|---|
| | 4206 | SDL_CONFIG=${SDL12_CONFIG} |
|---|
| 4205 | 4207 | SDL_HEADER="SDL12/SDL.h" |
|---|
| 4206 | 4208 | fi |
|---|
| … | … | |
| 4210 | 4212 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|---|
| 4211 | 4213 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|---|
| 4212 | | echo "configure:4213: checking for $ac_hdr" >&5 |
|---|
| | 4214 | echo "configure:4215: checking for $ac_hdr" >&5 |
|---|
| 4213 | 4215 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|---|
| 4214 | 4216 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4215 | 4217 | else |
|---|
| 4216 | 4218 | cat > conftest.$ac_ext <<EOF |
|---|
| 4217 | | #line 4218 "configure" |
|---|
| | 4219 | #line 4220 "configure" |
|---|
| 4218 | 4220 | #include "confdefs.h" |
|---|
| 4219 | 4221 | #include <$ac_hdr> |
|---|
| 4220 | 4222 | EOF |
|---|
| 4221 | 4223 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 4222 | | { (eval echo configure:4223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| | 4224 | { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 4223 | 4225 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 4224 | 4226 | if test -z "$ac_err"; then |
|---|
| … | … | |
| 4280 | 4282 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|---|
| 4281 | 4283 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|---|
| 4282 | | echo "configure:4283: checking for $ac_hdr" >&5 |
|---|
| | 4284 | echo "configure:4285: checking for $ac_hdr" >&5 |
|---|
| 4283 | 4285 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|---|
| 4284 | 4286 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4285 | 4287 | else |
|---|
| 4286 | 4288 | cat > conftest.$ac_ext <<EOF |
|---|
| 4287 | | #line 4288 "configure" |
|---|
| | 4289 | #line 4290 "configure" |
|---|
| 4288 | 4290 | #include "confdefs.h" |
|---|
| 4289 | 4291 | #include <$ac_hdr> |
|---|
| 4290 | 4292 | EOF |
|---|
| 4291 | 4293 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 4292 | | { (eval echo configure:4293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| | 4294 | { (eval echo configure:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 4293 | 4295 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 4294 | 4296 | if test -z "$ac_err"; then |
|---|
| … | … | |
| 4328 | 4330 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|---|
| 4329 | 4331 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|---|
| 4330 | | echo "configure:4331: checking for $ac_hdr" >&5 |
|---|
| | 4332 | echo "configure:4333: checking for $ac_hdr" >&5 |
|---|
| 4331 | 4333 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|---|
| 4332 | 4334 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4333 | 4335 | else |
|---|
| 4334 | 4336 | cat > conftest.$ac_ext <<EOF |
|---|
| 4335 | | #line 4336 "configure" |
|---|
| | 4337 | #line 4338 "configure" |
|---|
| 4336 | 4338 | #include "confdefs.h" |
|---|
| 4337 | 4339 | #include <$ac_hdr> |
|---|
| 4338 | 4340 | EOF |
|---|
| 4339 | 4341 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 4340 | | { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| | 4342 | { (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 4341 | 4343 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 4342 | 4344 | if test -z "$ac_err"; then |
|---|
| … | … | |
| 4442 | 4444 | set dummy gtk-config; ac_word=$2 |
|---|
| 4443 | 4445 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 4444 | | echo "configure:4445: checking for $ac_word" >&5 |
|---|
| | 4446 | echo "configure:4447: checking for $ac_word" >&5 |
|---|
| 4445 | 4447 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
|---|
| 4446 | 4448 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| … | … | |
| 4502 | 4504 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|---|
| 4503 | 4505 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|---|
| 4504 | | echo "configure:4505: checking for $ac_hdr" >&5 |
|---|
| | 4506 | echo "configure:4507: checking for $ac_hdr" >&5 |
|---|
| 4505 | 4507 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|---|
| 4506 | 4508 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4507 | 4509 | else |
|---|
| 4508 | 4510 | cat > conftest.$ac_ext <<EOF |
|---|
| 4509 | | #line 4510 "configure" |
|---|
| | 4511 | #line 4512 "configure" |
|---|
| 4510 | 4512 | #include "confdefs.h" |
|---|
| 4511 | 4513 | #include <$ac_hdr> |
|---|
| 4512 | 4514 | EOF |
|---|
| 4513 | 4515 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 4514 | | { (eval echo configure:4515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| | 4516 | { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 4515 | 4517 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 4516 | 4518 | if test -z "$ac_err"; then |
|---|
| … | … | |
| 4564 | 4566 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|---|
| 4565 | 4567 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|---|
| 4566 | | echo "configure:4567: checking for $ac_hdr" >&5 |
|---|
| | 4568 | echo "configure:4569: checking for $ac_hdr" >&5 |
|---|
| 4567 | 4569 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|---|
| 4568 | 4570 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4569 | 4571 | else |
|---|
| 4570 | 4572 | cat > conftest.$ac_ext <<EOF |
|---|
| 4571 | | #line 4572 "configure" |
|---|
| | 4573 | #line 4574 "configure" |
|---|
| 4572 | 4574 | #include "confdefs.h" |
|---|
| 4573 | 4575 | #include <$ac_hdr> |
|---|
| 4574 | 4576 | EOF |
|---|
| 4575 | 4577 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 4576 | | { (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| | 4578 | { (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 4577 | 4579 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 4578 | 4580 | if test -z "$ac_err"; then |
|---|
| … | … | |
| 4614 | 4616 | ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'` |
|---|
| 4615 | 4617 | echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6 |
|---|
| 4616 | | echo "configure:4617: checking for sys/asoundlib.h" >&5 |
|---|
| | 4618 | echo "configure:4619: checking for sys/asoundlib.h" >&5 |
|---|
| 4617 | 4619 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|---|
| 4618 | 4620 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 4619 | 4621 | else |
|---|
| 4620 | 4622 | cat > conftest.$ac_ext <<EOF |
|---|
| 4621 | | #line 4622 "configure" |
|---|
| | 4623 | #line 4624 "configure" |
|---|
| 4622 | 4624 | #include "confdefs.h" |
|---|
| 4623 | 4625 | #include <sys/asoundlib.h> |
|---|
| 4624 | 4626 | EOF |
|---|
| 4625 | 4627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 4626 | | { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| | 4628 | { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 4627 | 4629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 4628 | 4630 | if test -z "$ac_err"; then |
|---|
| … | … | |
| 4641 | 4643 | echo "$ac_t""yes" 1>&6 |
|---|
| 4642 | 4644 | echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6 |
|---|
| 4643 | | echo "configure:4644: checking for main in -lasound" >&5 |
|---|
| | 4645 | echo "configure:4646: checking for main in -lasound" >&5 |
|---|
| 4644 | 4646 | ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'` |
|---|
| 4645 | 4647 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|---|
| … | … | |
| 4649 | 4651 | LIBS="-lasound $LIBS" |
|---|
| 4650 | 4652 | cat > conftest.$ac_ext <<EOF |
|---|
| 4651 | | #line 4652 "configure" |
|---|
| | 4653 | #line 4654 "configure" |
|---|
| 4652 | 4654 | #include "confdefs.h" |
|---|
| 4653 | 4655 | |
|---|
| … | … | |
| 4656 | 4658 | ; return 0; } |
|---|
| 4657 | 4659 | EOF |
|---|
| 4658 | | if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|---|
| | 4660 | if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|---|
| 4659 | 4661 | rm -rf conftest* |
|---|
| 4660 | 4662 | eval "ac_cv_lib_$ac_lib_var=yes" |
|---|
| … | … | |
| 4896 | 4898 | s%@ESD_CONFIG@%$ESD_CONFIG%g |
|---|
| 4897 | 4899 | s%@SDL_CONFIG@%$SDL_CONFIG%g |
|---|
| | 4900 | s%@SDL11_CONFIG@%$SDL11_CONFIG%g |
|---|
| | 4901 | s%@SDL12_CONFIG@%$SDL12_CONFIG%g |
|---|
| 4898 | 4902 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
|---|
| 4899 | 4903 | s%@SYS@%$SYS%g |
|---|
| r4945d2b |
rd307283 |
|
| 537 | 537 | SDL_HEADER="SDL/SDL.h" |
|---|
| 538 | 538 | if test x${SDL_CONFIG} = xno; then |
|---|
| 539 | | AC_PATH_PROG(SDL_CONFIG, sdl11-config, no) |
|---|
| | 539 | AC_PATH_PROG(SDL11_CONFIG, sdl11-config, no) |
|---|
| | 540 | SDL_CONFIG=${SDL11_CONFIG} |
|---|
| 540 | 541 | SDL_HEADER="SDL11/SDL.h" |
|---|
| 541 | 542 | fi |
|---|
| 542 | 543 | if test x${SDL_CONFIG} = xno; then |
|---|
| 543 | | AC_PATH_PROG(SDL_CONFIG, sdl12-config, no) |
|---|
| | 544 | AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no) |
|---|
| | 545 | SDL_CONFIG=${SDL12_CONFIG} |
|---|
| 544 | 546 | SDL_HEADER="SDL12/SDL.h" |
|---|
| 545 | 547 | fi |
|---|