X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=configure;h=a75f309abbe16f979baaed378144ddb5b652b15f;hp=34a8eb1a3cc436a3962a2c8477a60282a9170171;hb=6e5729bfa4b70e57d1c735a0f31bed2bfca8fa17;hpb=a12d7eee22a72f4c999535892763dde15212e89e diff --git a/configure b/configure index 34a8eb1..a75f309 100755 --- a/configure +++ b/configure @@ -608,6 +608,7 @@ ENABLE_GSM_BS_TRUE LIBCRYPTO ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE +AST_CFLAGS am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE @@ -5239,6 +5240,78 @@ done fi +if test "x$with_asterisk" = "xyes"; then + ast_tone_zone_sound= + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tone_zone_sound in asterisk/indications.h" >&5 +$as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; } + tzs_test_result=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include , + #include , + #include +int +main () +{ +struct tone_zone_sound * ts = NULL; (void) ts->data; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + tzs_test_result=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5 +$as_echo "$tzs_test_result" >&6; } + + if test "x$tzs_test_result" = "xyes"; then + ast_tone_zone_sound=tone_zone_sound + fi + + if test "x$ast_tone_zone_sound" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5 +$as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; } + tzs_test_result=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include , + #include , + #include +int +main () +{ +struct ast_tone_zone_sound * ts = NULL; (void) ts->name; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + tzs_test_result=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5 +$as_echo "$tzs_test_result" >&6; } + + if test "x$tzs_test_result" = "xyes"; then + ast_tone_zone_sound=ast_tone_zone_sound + fi + fi + + if test "x$ast_tone_zone_sound" = "x"; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "No ast_tone_zone_sound, confused... +See \`config.log' for more details." "$LINENO" 5; } + fi + + AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound" + +fi + if test "x$with_asterisk" == "xyes" ; then