Newer
Older
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
Kevin P. Fleming
committed
ac_header_compiler=no
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Kevin P. Fleming
committed
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Kevin P. Fleming
committed
# Is the header present?
{ echo "$as_me:$LINENO: checking zaptel.h presence" >&5
echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
Kevin P. Fleming
committed
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
Kevin P. Fleming
committed
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <zaptel.h>
Kevin P. Fleming
committed
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
Kevin P. Fleming
committed
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
Kevin P. Fleming
committed
ac_header_preproc=no
Kevin P. Fleming
committed
rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Kevin P. Fleming
committed
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
Kevin P. Fleming
committed
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## ------------------------------- ##
## Report this to www.asterisk.org ##
## ------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
Kevin P. Fleming
committed
;;
esac
{ echo "$as_me:$LINENO: checking for zaptel.h" >&5
echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
if test "${ac_cv_header_zaptel_h+set}" = set; then
Kevin P. Fleming
committed
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_zaptel_h=$ac_header_preproc
Kevin P. Fleming
committed
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
Kevin P. Fleming
committed
fi
if test $ac_cv_header_zaptel_h = yes; then
TONEZONE_HEADER_FOUND=1
Kevin P. Fleming
committed
else
TONEZONE_HEADER_FOUND=0
Kevin P. Fleming
committed
fi
CPPFLAGS="${saved_cppflags}"
Kevin P. Fleming
committed
fi
if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
TONEZONE_LIB=""
TONEZONE_INCLUDE=""
Kevin P. Fleming
committed
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
TONEZONE_LIB=""
fi
PBX_TONEZONE=1
# XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
Kevin P. Fleming
committed
cat >>confdefs.h <<_ACEOF
#define HAVE_TONEZONE 1
_ACEOF
cat >>confdefs.h <<_ACEOF
#define HAVE_TONEZONE_VERSION 80
Kevin P. Fleming
committed
_ACEOF
Kevin P. Fleming
committed
fi
fi
fi
Kevin P. Fleming
committed
EDITLINE_LIB=""
if test "x$TERMCAP_LIB" != "x" ; then
EDITLINE_LIB="$TERMCAP_LIB"
elif test "x$TINFO_LIB" != "x" ; then
EDITLINE_LIB="$TINFO_LIB"
elif test "x$CURSES_LIB" != "x" ; then
EDITLINE_LIB="$CURSES_LIB"
elif test "x$NCURSES_LIB" != "x" ; then
EDITLINE_LIB="$NCURSES_LIB"
else
{ { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
echo "$as_me: error: *** termcap support not found" >&2;}
{ (exit 1); exit 1; }; }
Kevin P. Fleming
committed
fi
if test "${ac_cv_header_h323_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for h323.h" >&5
echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
if test "${ac_cv_header_h323_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
else
# Is the header compilable?
{ echo "$as_me:$LINENO: checking h323.h usability" >&5
echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
Kevin P. Fleming
committed
#include <h323.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
Kevin P. Fleming
committed
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
Kevin P. Fleming
committed
ac_header_compiler=no
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Kevin P. Fleming
committed
46190
46191
46192
46193
46194
46195
46196
46197
46198
46199
46200
46201
46202
46203
46204
46205
46206
46207
46208
46209
46210
46211
46212
46213
46214
46215
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
{ echo "$as_me:$LINENO: checking h323.h presence" >&5
echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <h323.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
Kevin P. Fleming
committed
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
Kevin P. Fleming
committed
ac_header_preproc=no
Kevin P. Fleming
committed
rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
46235
46236
46237
46238
46239
46240
46241
46242
46243
46244
46245
46246
46247
46248
46249
46250
46251
46252
46253
{ echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## ------------------------------- ##
## Report this to www.asterisk.org ##
## ------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295
46296
46297
46298
46299
46300
46301
46302
46303
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314
46315
;;
esac
{ echo "$as_me:$LINENO: checking for h323.h" >&5
echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
if test "${ac_cv_header_h323_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_h323_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
fi
if test $ac_cv_header_h323_h = yes; then
PBX_H323=1
else
PBX_H323=0
fi
if test "${ac_cv_header_linux_compiler_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
if test "${ac_cv_header_linux_compiler_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
else
# Is the header compilable?
{ echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <linux/compiler.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
46320
46321
46322
46323
46324
46325
46326
46327
46328
46329
46330
46331
46332
46333
46334
46335
46336
46337
46338
46339
46340
46341
46342
46343
46344
46345
46346
46347
46348
46349
46350
46351
46352
46353
46354
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
{ echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <linux/compiler.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## ------------------------------- ##
## Report this to www.asterisk.org ##
## ------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
46399
46400
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
46443
46444
46445
46446
46447
46448
46449
46450
46451
46452
46453
46454
;;
esac
{ echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
if test "${ac_cv_header_linux_compiler_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_linux_compiler_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
fi
if test $ac_cv_header_linux_compiler_h = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_COMPILER_H 1
_ACEOF
fi
{ echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <linux/version.h>
#ifdef HAVE_LINUX_COMPILER_H
#include <linux/compiler.h>
#endif
#include <linux/ixjuser.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
46459
46460
46461
46462
46463
46464
46465
46466
46467
46468
46469
46470
46471
46472
46473
46474
46475
46476
46477
46478
46479
46480
ac_cv_header_linux_ixjuser_h=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_linux_ixjuser_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
if test $ac_cv_header_linux_ixjuser_h = yes; then
PBX_IXJUSER=1
else
PBX_IXJUSER=0
fi
if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
PBX_SDL=0
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CONFIG_SDL"; then
ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46501
46502
46503
46504
46505
46506
46507
46508
46509
46510
46511
46512
46513
46514
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524
46525
46526
46527
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi
fi
CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
if test -n "$CONFIG_SDL"; then
{ echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
echo "${ECHO_T}$CONFIG_SDL" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
fi
if test -z "$ac_cv_prog_CONFIG_SDL"; then
ac_ct_CONFIG_SDL=$CONFIG_SDL
# Extract the first word of "sdl-config", so it can be a program name with args.
set dummy sdl-config; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CONFIG_SDL"; then
ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46541
46542
46543
46544
46545
46546
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578
ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi
fi
ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
if test -n "$ac_ct_CONFIG_SDL"; then
{ echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
if test "x$ac_ct_CONFIG_SDL" = x; then
CONFIG_SDL="No"
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
CONFIG_SDL=$ac_ct_CONFIG_SDL
fi
else
CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
fi
if test ! "x${CONFIG_SDL}" = xNo; then
if test x"" = x ; then A=--cflags ; else A="" ; fi
SDL_INCLUDE=$(${CONFIG_SDL} $A)
if test x"" = x ; then A=--libs ; else A="" ; fi
SDL_LIB=$(${CONFIG_SDL} $A)
cat >>confdefs.h <<\_ACEOF
#define HAVE_SDL 1
_ACEOF
if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
pbxlibdir=""
# if --with-SDL_IMAGE=DIR has been specified, use it.
46597
46598
46599
46600
46601
46602
46603
46604
46605
46606
46607
46608
46609
46610
46611
46612
46613
46614
46615
46616
46617
46618
46619
46620
46621
46622
46623
46624
46625
46626
46627
46628
46629
46630
46631
46632
46633
46634
46635
46636
46637
46638
46639
46640
46641
46642
46643
46644
46645
46646
46647
46648
46649
46650
if test "x${SDL_IMAGE_DIR}" != "x"; then
if test -d ${SDL_IMAGE_DIR}/lib; then
pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
else
pbxlibdir="-L${SDL_IMAGE_DIR}"
fi
fi
pbxfuncname="IMG_Load"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
AST_SDL_IMAGE_FOUND=yes
else
as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char ${pbxfuncname} ();
int
main ()
{
return ${pbxfuncname} ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
ac_res=`eval echo '${'$as_ac_Lib'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
AST_SDL_IMAGE_FOUND=yes
else
AST_SDL_IMAGE_FOUND=no
fi
fi
# now check for the header.
if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
# if --with-SDL_IMAGE=DIR has been specified, use it.
if test "x${SDL_IMAGE_DIR}" != "x"; then
SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
fi
SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
if test "xSDL_image.h" = "x" ; then # no header, assume found
SDL_IMAGE_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
if test "${ac_cv_header_SDL_image_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for SDL_image.h" >&5
echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
if test "${ac_cv_header_SDL_image_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
else
# Is the header compilable?
{ echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <SDL_image.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
{ echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <SDL_image.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
Kevin P. Fleming
committed
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## ------------------------------- ##
## Report this to www.asterisk.org ##
## ------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
Kevin P. Fleming
committed
;;
esac
{ echo "$as_me:$LINENO: checking for SDL_image.h" >&5
echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
if test "${ac_cv_header_SDL_image_h+set}" = set; then
Kevin P. Fleming
committed
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_SDL_image_h=$ac_header_preproc
{ echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
Kevin P. Fleming
committed
fi
if test $ac_cv_header_SDL_image_h = yes; then
SDL_IMAGE_HEADER_FOUND=1
Kevin P. Fleming
committed
else
SDL_IMAGE_HEADER_FOUND=0
Kevin P. Fleming
committed
fi
CPPFLAGS="${saved_cppflags}"
fi
if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
SDL_IMAGE_LIB=""
SDL_IMAGE_INCLUDE=""
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
SDL_IMAGE_LIB=""
fi
PBX_SDL_IMAGE=1
# XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
Kevin P. Fleming
committed
cat >>confdefs.h <<_ACEOF
#define HAVE_SDL_IMAGE 1
_ACEOF
Kevin P. Fleming
committed
cat >>confdefs.h <<_ACEOF
_ACEOF
fi
fi
fi
if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
pbxlibdir=""
# if --with-FFMPEG=DIR has been specified, use it.
if test "x${FFMPEG_DIR}" != "x"; then
if test -d ${FFMPEG_DIR}/lib; then
pbxlibdir="-L${FFMPEG_DIR}/lib"
else
pbxlibdir="-L${FFMPEG_DIR}"
fi
fi
pbxfuncname="sws_getContext"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
AST_FFMPEG_FOUND=yes
else
as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
46874
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
46907
46908
46909
46910
46911
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char ${pbxfuncname} ();
int
main ()
{
return ${pbxfuncname} ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Lib=no"
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
ac_res=`eval echo '${'$as_ac_Lib'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
AST_FFMPEG_FOUND=yes
else
AST_FFMPEG_FOUND=no
fi
fi
# now check for the header.
if test "${AST_FFMPEG_FOUND}" = "yes"; then
FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
# if --with-FFMPEG=DIR has been specified, use it.
if test "x${FFMPEG_DIR}" != "x"; then
FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
fi
FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
FFMPEG_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
Kevin P. Fleming
committed
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
Kevin P. Fleming
committed
else
# Is the header compilable?
{ echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <ffmpeg/avcodec.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
Kevin P. Fleming
committed
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
Kevin P. Fleming
committed
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5