configure
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1341k
源码类别:
midi
开发平台:
Unix_Linux
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether `alloca.c' needs Cray hooks" >&5
- $as_echo_n "checking whether `alloca.c' needs Cray hooks... " >&6; }
- if test "${ac_cv_os_cray+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined CRAY && ! defined CRAY2
- webecray
- #else
- wenotbecray
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "webecray" >/dev/null 2>&1; then :
- ac_cv_os_cray=yes
- else
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
- $as_echo "$ac_cv_os_cray" >&6; }
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- eval as_val=$$as_ac_var
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define CRAY_STACKSEG_END $ac_func
- _ACEOF
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
- $as_echo_n "checking stack direction for C alloca... " >&6; }
- if test "${ac_cv_c_stack_direction+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_c_stack_direction=0
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- find_stack_direction ()
- {
- static char *addr = 0;
- auto char dummy;
- if (addr == 0)
- {
- addr = &dummy;
- return find_stack_direction ();
- }
- else
- return (&dummy > addr) ? 1 : -1;
- }
- int
- main ()
- {
- return find_stack_direction () < 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_stack_direction=1
- else
- ac_cv_c_stack_direction=-1
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
- $as_echo "$ac_cv_c_stack_direction" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- _ACEOF
- fi
- for ac_func in fcntl
- do :
- ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
- if test "x$ac_cv_func_fcntl" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FCNTL 1
- _ACEOF
- fi
- done
- for ac_func in asprintf atof atoll getcwd gmtime_r lldiv localtime_r rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtoll vasprintf swab
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- eval as_val=$$as_ac_var
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- else
- case " $LIBOBJS " in
- *" $ac_func.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
- ;;
- esac
- fi
- done
- for ac_func in stricmp strnicmp
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- eval as_val=$$as_ac_var
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_func in fdatasync
- do :
- ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
- if test "x$ac_cv_func_fdatasync" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FDATASYNC 1
- _ACEOF
- else
- $as_echo "#define fdatasync fsync" >>confdefs.h
- fi
- done
- for ac_func in vmsplice eventfd fstatfs
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- eval as_val=$$as_ac_var
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_func in mmap
- do :
- ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
- if test "x$ac_cv_func_mmap" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MMAP 1
- _ACEOF
- PLUGINS="${PLUGINS} access_mmap"
- LTLIBaccess_mmap="libaccess_mmap_plugin.la"
- fi
- done
- for ac_func in setlocale
- do :
- ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
- if test "x$ac_cv_func_setlocale" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SETLOCALE 1
- _ACEOF
- fi
- done
- for ac_header in langinfo.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
- if test "x$ac_cv_header_langinfo_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LANGINFO_H 1
- _ACEOF
- fi
- done
- for ac_func in nl_langinfo
- do :
- ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
- if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NL_LANGINFO 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
- $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
- if test "${ac_cv_langinfo_codeset+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <langinfo.h>
- int
- main ()
- {
- char* cs = nl_langinfo(CODESET);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_langinfo_codeset=yes
- else
- ac_cv_langinfo_codeset=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_langinfo_codeset" >&5
- $as_echo "$ac_cv_langinfo_codeset" >&6; }
- if test ${ac_cv_langinfo_codeset} = yes; then
- $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
- fi
- SOCKET_LIBS=""
- for ac_func in connect
- do :
- ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
- if test "x$ac_cv_func_connect" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CONNECT 1
- _ACEOF
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
- $as_echo_n "checking for connect in -lsocket... " >&6; }
- if test "${ac_cv_lib_socket_connect+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 connect ();
- int
- main ()
- {
- return connect ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_connect=yes
- else
- ac_cv_lib_socket_connect=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
- $as_echo "$ac_cv_lib_socket_connect" >&6; }
- if test "x$ac_cv_lib_socket_connect" = x""yes; then :
- for element in libvlccore cdda cddax; do
- eval "LIBS_${element}="'"'"-lsocket "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- SOCKET_LIBS="-lsocket"
- fi
- fi
- done
- for ac_func in send
- do :
- ac_fn_c_check_func "$LINENO" "send" "ac_cv_func_send"
- if test "x$ac_cv_func_send" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SEND 1
- _ACEOF
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send in -lsocket" >&5
- $as_echo_n "checking for send in -lsocket... " >&6; }
- if test "${ac_cv_lib_socket_send+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 send ();
- int
- main ()
- {
- return send ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_send=yes
- else
- ac_cv_lib_socket_send=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_send" >&5
- $as_echo "$ac_cv_lib_socket_send" >&6; }
- if test "x$ac_cv_lib_socket_send" = x""yes; then :
- for element in access_http access_mms access_udp access_tcp access_ftp access_rtmp sap access_output_udp access_output_rtmp stream_out_standard growl_udp remoteosd; do
- eval "LIBS_${element}="'"'"-lsocket "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
- $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
- if test "${ac_cv_type_socklen_t+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #ifdef WIN32
- # include <winsock2.h>
- # include <ws2tcpip.h>
- #else
- # include <sys/socket.h>
- #endif
- int
- main ()
- {
- socklen_t len; len = 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_socklen_t=yes
- else
- ac_cv_type_socklen_t=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
- $as_echo "$ac_cv_type_socklen_t" >&6; }
- if test "$ac_cv_type_socklen_t" = no; then :
- $as_echo "#define socklen_t int" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
- $as_echo_n "checking for struct sockaddr_storage... " >&6; }
- if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #if defined( UNDER_CE )
- # include <winsock2.h>
- #elif defined( WIN32 )
- # include <winsock2.h>
- #else
- # include <sys/socket.h>
- #endif
- int
- main ()
- {
- struct sockaddr_storage addr;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_struct_sockaddr_storage=yes
- else
- ac_cv_struct_sockaddr_storage=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
- $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
- if test "${ac_cv_struct_sockaddr_storage}" = no; then :
- $as_echo "#define sockaddr_storage sockaddr" >>confdefs.h
- $as_echo "#define ss_family sa_family" >>confdefs.h
- fi
- LIBS_save="${LIBS}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
- $as_echo_n "checking for library containing getaddrinfo... " >&6; }
- if test "${ac_cv_search_getaddrinfo+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_func_search_save_LIBS=$LIBS
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 getaddrinfo ();
- int
- main ()
- {
- return getaddrinfo ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' nsl; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib ${SOCKET_LIBS} $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_getaddrinfo=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext
- if test "${ac_cv_search_getaddrinfo+set}" = set; then :
- break
- fi
- done
- if test "${ac_cv_search_getaddrinfo+set}" = set; then :
- else
- ac_cv_search_getaddrinfo=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
- $as_echo "$ac_cv_search_getaddrinfo" >&6; }
- ac_res=$ac_cv_search_getaddrinfo
- if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
- fi
- LIBS="${LIBS_gai}"
- for ac_func in getnameinfo gai_strerror
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- eval as_val=$$as_ac_var
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- LIBS="${LIBS_save}"
- ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
- #if defined( WIN32 ) || defined( UNDER_CE )
- # if defined(UNDER_CE) && defined(sockaddr_storage)
- # undef sockaddr_storage
- # endif
- # include <winsock2.h>
- # include <ws2tcpip.h>
- #else
- # include <netdb.h>
- #endif
- "
- if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_ADDRINFO 1
- _ACEOF
- $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
- $as_echo_n "checking for va_copy... " >&6; }
- if test "${ac_cv_c_va_copy+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- int
- main ()
- {
- va_list ap1, ap2; va_copy(ap1,ap2);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_c_va_copy="yes"
- else
- ac_cv_c_va_copy="no"
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
- $as_echo "$ac_cv_c_va_copy" >&6; }
- if test "${ac_cv_c_va_copy}" = "yes"; then
- $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
- $as_echo_n "checking for __va_copy... " >&6; }
- if test "${ac_cv_c___va_copy+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- int
- main ()
- {
- va_list ap1, ap2; __va_copy(ap1,ap2);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_c___va_copy="yes"
- else
- ac_cv_c___va_copy="no"
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
- $as_echo "$ac_cv_c___va_copy" >&6; }
- if test "${ac_cv_c___va_copy}" = "yes"; then
- $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
- fi
- for ac_func in inet_aton
- do :
- ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
- if test "x$ac_cv_func_inet_aton" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INET_ATON 1
- _ACEOF
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
- $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
- if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 inet_aton ();
- int
- main ()
- {
- return inet_aton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_inet_aton=yes
- else
- ac_cv_lib_resolv_inet_aton=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
- $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
- if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lresolv "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"; then
- need_getopt=:
- else
- need_getopt=false
- for ac_func in getopt_long
- do :
- ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
- if test "x$ac_cv_func_getopt_long" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETOPT_LONG 1
- _ACEOF
- $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
- else
- # FreeBSD has a gnugetopt library for this:
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
- $as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
- if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgnugetopt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 getopt_long ();
- int
- main ()
- {
- return getopt_long ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gnugetopt_getopt_long=yes
- else
- ac_cv_lib_gnugetopt_getopt_long=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
- $as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
- if test "x$ac_cv_lib_gnugetopt_getopt_long" = x""yes; then :
- $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lgnugetopt "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- need_getopt=:
- fi
- fi
- done
- fi
- if ${need_getopt}; then
- BUILD_GETOPT_TRUE=
- BUILD_GETOPT_FALSE='#'
- else
- BUILD_GETOPT_TRUE='#'
- BUILD_GETOPT_FALSE=
- fi
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
- $as_echo_n "checking return type of signal handlers... " >&6; }
- if test "${ac_cv_type_signal+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <signal.h>
- int
- main ()
- {
- return *(signal (0, 0)) (0) == 1;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_signal=int
- else
- ac_cv_type_signal=void
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
- $as_echo "$ac_cv_type_signal" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define RETSIGTYPE $ac_cv_type_signal
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
- $as_echo_n "checking for cos in -lm... " >&6; }
- if test "${ac_cv_lib_m_cos+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 cos ();
- int
- main ()
- {
- return cos ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_cos=yes
- else
- ac_cv_lib_m_cos=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
- $as_echo "$ac_cv_lib_m_cos" >&6; }
- if test "x$ac_cv_lib_m_cos" = x""yes; then :
- for element in adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom visual panoramix rotate noise grain scene kate flac lua; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
- $as_echo_n "checking for pow in -lm... " >&6; }
- if test "${ac_cv_lib_m_pow+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 pow ();
- int
- main ()
- {
- return pow ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_pow=yes
- else
- ac_cv_lib_m_pow=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
- $as_echo "$ac_cv_lib_m_pow" >&6; }
- if test "x$ac_cv_lib_m_pow" = x""yes; then :
- for element in avcodec avformat swscale postproc ffmpegaltivec i420_rgb faad twolame equalizer spatializer param_eq libvlccore vorbis freetype mod mpc dmo quicktime realaudio realvideo galaktos opengl; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
- $as_echo_n "checking for sqrt in -lm... " >&6; }
- if test "${ac_cv_lib_m_sqrt+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 sqrt ();
- int
- main ()
- {
- return sqrt ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_sqrt=yes
- else
- ac_cv_lib_m_sqrt=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
- $as_echo "$ac_cv_lib_m_sqrt" >&6; }
- if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
- for element in headphone_channel_mixer normvol speex mono colorthres extract; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
- $as_echo_n "checking for ceil in -lm... " >&6; }
- if test "${ac_cv_lib_m_ceil+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 ceil ();
- int
- main ()
- {
- return ceil ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_ceil=yes
- else
- ac_cv_lib_m_ceil=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
- $as_echo "$ac_cv_lib_m_ceil" >&6; }
- if test "x$ac_cv_lib_m_ceil" = x""yes; then :
- for element in hotkeys mosaic; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
- $as_echo_n "checking for exp in -lm... " >&6; }
- if test "${ac_cv_lib_m_exp+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 exp ();
- int
- main ()
- {
- return exp ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_exp=yes
- else
- ac_cv_lib_m_exp=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
- $as_echo "$ac_cv_lib_m_exp" >&6; }
- if test "x$ac_cv_lib_m_exp" = x""yes; then :
- for element in gaussianblur; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
- $as_echo_n "checking for round in -lm... " >&6; }
- if test "${ac_cv_lib_m_round+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 round ();
- int
- main ()
- {
- return round ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_round=yes
- else
- ac_cv_lib_m_round=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
- $as_echo "$ac_cv_lib_m_round" >&6; }
- if test "x$ac_cv_lib_m_round" = x""yes; then :
- for element in dbus; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5
- $as_echo_n "checking for sqrtf in -lm... " >&6; }
- if test "${ac_cv_lib_m_sqrtf+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 sqrtf ();
- int
- main ()
- {
- return sqrtf ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_sqrtf=yes
- else
- ac_cv_lib_m_sqrtf=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtf" >&5
- $as_echo "$ac_cv_lib_m_sqrtf" >&6; }
- if test "x$ac_cv_lib_m_sqrtf" = x""yes; then :
- for element in x264; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf in -lm" >&5
- $as_echo_n "checking for lrintf in -lm... " >&6; }
- if test "${ac_cv_lib_m_lrintf+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 lrintf ();
- int
- main ()
- {
- return lrintf ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_lrintf=yes
- else
- ac_cv_lib_m_lrintf=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lrintf" >&5
- $as_echo "$ac_cv_lib_m_lrintf" >&6; }
- if test "x$ac_cv_lib_m_lrintf" = x""yes; then :
- $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
- for element in skins2; do
- eval "LIBS_${element}="'"'"-lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- ac_cv_have_plugins=no
- # OS X style
- for ac_header in mach-o/dyld.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
- if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MACH_O_DYLD_H 1
- _ACEOF
- for ac_func in NSLinkModule
- do :
- ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
- if test "x$ac_cv_func_NSLinkModule" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NSLINKMODULE 1
- _ACEOF
- $as_echo "#define HAVE_DL_DYLD 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- done
- fi
- done
- # HP-UX style
- if test "${ac_cv_have_plugins}" = "no"; then
- for ac_header in dl.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
- if test "x$ac_cv_header_dl_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DL_H 1
- _ACEOF
- fi
- done
- ac_cv_my_have_shl_load=no
- ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
- if test "x$ac_cv_func_shl_load" = x""yes; then :
- ac_cv_my_have_shl_load=yes,
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
- $as_echo_n "checking for shl_load in -ldld... " >&6; }
- if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldld $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 shl_load ();
- int
- main ()
- {
- return shl_load ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dld_shl_load=yes
- else
- ac_cv_lib_dld_shl_load=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
- $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
- if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
- ac_cv_my_have_shl_load=yes
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-ldld "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- if test "${ac_cv_my_have_shl_load}" = "yes"; then
- $as_echo "#define HAVE_DL_SHL_LOAD 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- fi
- # Whatever style
- if test "${ac_cv_have_plugins}" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
- $as_echo_n "checking for dld_link in -ldld... " >&6; }
- if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldld $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 dld_link ();
- int
- main ()
- {
- return dld_link ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dld_dld_link=yes
- else
- ac_cv_lib_dld_dld_link=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
- $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
- if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-ldld "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- $as_echo "#define HAVE_DL_DLD_LINK 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- fi
- # Win32 style
- if test "${ac_cv_have_plugins}" = "no"; then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5
- $as_echo_n "checking for main in -lkernel32... " >&6; }
- if test "${ac_cv_lib_kernel32_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lkernel32 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_kernel32_main=yes
- else
- ac_cv_lib_kernel32_main=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5
- $as_echo "$ac_cv_lib_kernel32_main" >&6; }
- if test "x$ac_cv_lib_kernel32_main" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lkernel32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- $as_echo "#define HAVE_DL_WINDOWS 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- fi
- fi
- # WinCE style
- if test "${ac_cv_have_plugins}" = "no"; then
- if test "${SYS}" = "mingwce"; then
- $as_echo "#define HAVE_DL_WINDOWS 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- fi
- # BeOS style
- if test "${ac_cv_have_plugins}" = "no"; then
- for ac_header in image.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "image.h" "ac_cv_header_image_h" "$ac_includes_default"
- if test "x$ac_cv_header_image_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_IMAGE_H 1
- _ACEOF
- fi
- done
- for ac_func in load_add_on
- do :
- ac_fn_c_check_func "$LINENO" "load_add_on" "ac_cv_func_load_add_on"
- if test "x$ac_cv_func_load_add_on" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LOAD_ADD_ON 1
- _ACEOF
- $as_echo "#define HAVE_DL_BEOS 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- done
- fi
- # Only test for dlopen() if the others didn't work
- if test "${ac_cv_have_plugins}" = "no" -o "${SYS}" = "darwin"; then
- for ac_header in dlfcn.h sys/dl.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- ac_cv_my_have_dlopen=no
- ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
- if test "x$ac_cv_func_dlopen" = x""yes; then :
- ac_cv_my_have_dlopen=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
- $as_echo_n "checking for dlopen in -ldl... " >&6; }
- if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 dlopen ();
- int
- main ()
- {
- return dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dl_dlopen=yes
- else
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
- $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
- if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
- ac_cv_my_have_dlopen=yes
- for element in libvlccore realaudio realvideo lua; do
- eval "LIBS_${element}="'"'"-ldl "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
- $as_echo_n "checking for dlopen in -lsvld... " >&6; }
- if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsvld $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 dlopen ();
- int
- main ()
- {
- return dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_svld_dlopen=yes
- else
- ac_cv_lib_svld_dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
- $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
- if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
- ac_cv_my_have_dlopen=yes
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lsvld "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- fi
- if test "${ac_cv_my_have_dlopen}" = "yes"; then
- $as_echo "#define HAVE_DL_DLOPEN 1" >>confdefs.h
- ac_cv_have_plugins=yes
- fi
- fi
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- THREAD_LIB=error
- if test "${THREAD_LIB}" = "error"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
- $as_echo_n "checking for main in -lpthread... " >&6; }
- if test "${ac_cv_lib_pthread_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpthread $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pthread_main=yes
- else
- ac_cv_lib_pthread_main=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
- $as_echo "$ac_cv_lib_pthread_main" >&6; }
- if test "x$ac_cv_lib_pthread_main" = x""yes; then :
- THREAD_LIB="-lpthread"
- fi
- fi
- if test "${THREAD_LIB}" = "error"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthreads" >&5
- $as_echo_n "checking for main in -lpthreads... " >&6; }
- if test "${ac_cv_lib_pthreads_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpthreads $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pthreads_main=yes
- else
- ac_cv_lib_pthreads_main=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_main" >&5
- $as_echo "$ac_cv_lib_pthreads_main" >&6; }
- if test "x$ac_cv_lib_pthreads_main" = x""yes; then :
- THREAD_LIB="-lpthreads"
- fi
- fi
- if test "${THREAD_LIB}" = "error"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc_r" >&5
- $as_echo_n "checking for main in -lc_r... " >&6; }
- if test "${ac_cv_lib_c_r_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lc_r $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_c_r_main=yes
- else
- ac_cv_lib_c_r_main=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_main" >&5
- $as_echo "$ac_cv_lib_c_r_main" >&6; }
- if test "x$ac_cv_lib_c_r_main" = x""yes; then :
- THREAD_LIB="-lc_r"
- fi
- fi
- if test "${THREAD_LIB}" = "error"; then
- for ac_func in pthread_mutex_lock
- do :
- ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
- if test "x$ac_cv_func_pthread_mutex_lock" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PTHREAD_MUTEX_LOCK 1
- _ACEOF
- fi
- done
- THREAD_LIB=""
- fi
- for element in libvlccore libvlc vlc plugin; do
- eval "LIBS_${element}="'"'"${THREAD_LIB} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
- $as_echo_n "checking for clock_nanosleep in -lrt... " >&6; }
- if test "${ac_cv_lib_rt_clock_nanosleep+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 clock_nanosleep ();
- int
- main ()
- {
- return clock_nanosleep ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt_clock_nanosleep=yes
- else
- ac_cv_lib_rt_clock_nanosleep=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
- $as_echo "$ac_cv_lib_rt_clock_nanosleep" >&6; }
- if test "x$ac_cv_lib_rt_clock_nanosleep" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lrt "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- $as_echo "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
- $as_echo_n "checking for sem_init in -lrt... " >&6; }
- if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 sem_init ();
- int
- main ()
- {
- return sem_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt_sem_init=yes
- else
- ac_cv_lib_rt_sem_init=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
- $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
- if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lrt "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- have_nanosleep=false
- for ac_func in nanosleep
- do :
- ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
- if test "x$ac_cv_func_nanosleep" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NANOSLEEP 1
- _ACEOF
- have_nanosleep=:
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
- $as_echo_n "checking for nanosleep in -lrt... " >&6; }
- if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 nanosleep ();
- int
- main ()
- {
- return nanosleep ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt_nanosleep=yes
- else
- ac_cv_lib_rt_nanosleep=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
- $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
- if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lrt "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- have_nanosleep=:
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
- $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
- if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lposix4 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 nanosleep ();
- int
- main ()
- {
- return nanosleep ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_posix4_nanosleep=yes
- else
- ac_cv_lib_posix4_nanosleep=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
- $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
- if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then :
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"-lposix4 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- have_nanosleep=:
- fi
- fi
- fi
- done
- if ${have_nanosleep}; then
- $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
- fi
- fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp in strings.h" >&5
- $as_echo_n "checking for strncasecmp in strings.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <strings.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "strncasecmp" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define STRNCASECMP_IN_STRINGS_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- for ac_header in getopt.h strings.h locale.h xlocale.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h sys/mount.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in net/if.h
- do :
- ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
- #include <sys/types.h>
- #include <sys/socket.h>
- "
- if test "x$ac_cv_header_net_if_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NET_IF_H 1
- _ACEOF
- fi
- done
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- for ac_header in machine/param.h sys/shm.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in linux/version.h linux/dccp.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in syslog.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
- if test "x$ac_cv_header_syslog_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYSLOG_H 1
- _ACEOF
- fi
- done
- fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
- $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
- if test "${ac_cv_header_time+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int
- main ()
- {
- if ((struct tm *) 0)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_time=yes
- else
- ac_cv_header_time=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
- $as_echo "$ac_cv_header_time" >&6; }
- if test $ac_cv_header_time = yes; then
- $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
- fi
- ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
- if test "x$ac_cv_type_ssize_t" = x""yes; then :
- else
- $as_echo "#define ssize_t int" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing poll" >&5
- $as_echo_n "checking for library containing poll... " >&6; }
- if test "${ac_cv_search_poll+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_func_search_save_LIBS=$LIBS
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* 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 poll ();
- int
- main ()
- {
- return poll ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' poll; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_poll=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext
- if test "${ac_cv_search_poll+set}" = set; then :
- break
- fi
- done
- if test "${ac_cv_search_poll+set}" = set; then :
- else
- ac_cv_search_poll=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_poll" >&5
- $as_echo "$ac_cv_search_poll" >&6; }
- ac_res=$ac_cv_search_poll
- if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- $as_echo "#define HAVE_POLL 1" >>confdefs.h
- else
- if test ${SYS} != "mingw32"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your platform does not support poll(). VLC has it's own poll() implementation, but it is only intended to be used on Windows. VLC might crash or be insecure when you see this message. Either switch to an OS with a proper poll() implementation, or implement one for your OS in VLC" >&5
- $as_echo "$as_me: WARNING: Your platform does not support poll(). VLC has it's own poll() implementation, but it is only intended to be used on Windows. VLC might crash or be insecure when you see this message. Either switch to an OS with a proper poll() implementation, or implement one for your OS in VLC" >&2;}
- fi
- fi
- need_dirent=false
- for ac_header in dirent.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
- if test "x$ac_cv_header_dirent_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DIRENT_H 1
- _ACEOF
- else
- need_dirent=:
- fi
- done
- if ${need_dirent}; then
- BUILD_DIRENT_TRUE=
- BUILD_DIRENT_FALSE='#'
- else
- BUILD_DIRENT_TRUE='#'
- BUILD_DIRENT_FALSE=
- fi
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in time.h" >&5
- $as_echo_n "checking for nanosleep in time.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "nanosleep" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_DECL_NANOSLEEP 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timespec in sys/time.h" >&5
- $as_echo_n "checking for timespec in sys/time.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/time.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "timespec" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- for ac_header in pthread.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
- if test "x$ac_cv_header_pthread_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PTHREAD_H 1
- _ACEOF
- fi
- done
- fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- 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
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_PKG_CONFIG"; then
- ac_pt_PKG_CONFIG=$PKG_CONFIG
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_PKG_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- 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
- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
- if test -n "$ac_pt_PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
- $as_echo "$ac_pt_PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PKG_CONFIG" = x; then
- PKG_CONFIG=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- PKG_CONFIG=$ac_pt_PKG_CONFIG
- fi
- else
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
- fi
- fi
- if test -n "$PKG_CONFIG"; then
- _pkg_min_version=0.9.0
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
- $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PKG_CONFIG=""
- fi
- fi
- if test -n "${PKG_CONFIG}" ; then :
- if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ; then :
- PKG_CONFIG="${PKG_CONFIG} --static"
- fi
- fi
- for ac_header in zlib.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_zlib_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ZLIB_H 1
- _ACEOF
- have_zlib=yes
- else
- have_zlib=no
- fi
- done
- if test "${have_zlib}" = "yes" ; then
- HAVE_ZLIB_TRUE=
- HAVE_ZLIB_FALSE='#'
- else
- HAVE_ZLIB_TRUE='#'
- HAVE_ZLIB_FALSE=
- fi
- if test "${have_zlib}" = "yes"
- then
- for element in access_http gme mp4 skins2 sap mkv unzip zip; do
- eval "LIBS_${element}="'"'"-lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MINIZIP" >&5
- $as_echo_n "checking for MINIZIP... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$MINIZIP_CFLAGS"; then
- pkg_cv_MINIZIP_CFLAGS="$MINIZIP_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "minizip ""; } >&5
- ($PKG_CONFIG --exists --print-errors "minizip ") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_MINIZIP_CFLAGS=`$PKG_CONFIG --cflags "minizip " 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$MINIZIP_LIBS"; then
- pkg_cv_MINIZIP_LIBS="$MINIZIP_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "minizip ""; } >&5
- ($PKG_CONFIG --exists --print-errors "minizip ") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_MINIZIP_LIBS=`$PKG_CONFIG --libs "minizip " 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- MINIZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "minizip "`
- else
- MINIZIP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "minizip "`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$MINIZIP_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- for ac_header in unzip.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "unzip.h" "ac_cv_header_unzip_h" "$ac_includes_default"
- if test "x$ac_cv_header_unzip_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UNZIP_H 1
- _ACEOF
- have_minizip=yes
- MINIZIP_LIBS="-lminizip -lz"
- else
- have_minizip=no
- MINIZIP_CFLAGS="-I\${top_srcdir}/libs/unzip"
- MINIZIP_LIBS="\${top_builddir}/libs/unzip/libunzip.la"
- fi
- done
- elif test $pkg_failed = untried; then
- for ac_header in unzip.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "unzip.h" "ac_cv_header_unzip_h" "$ac_includes_default"
- if test "x$ac_cv_header_unzip_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UNZIP_H 1
- _ACEOF
- have_minizip=yes
- MINIZIP_LIBS="-lminizip -lz"
- else
- have_minizip=no
- MINIZIP_CFLAGS="-I\${top_srcdir}/libs/unzip"
- MINIZIP_LIBS="\${top_builddir}/libs/unzip/libunzip.la"
- fi
- done
- else
- MINIZIP_CFLAGS=$pkg_cv_MINIZIP_CFLAGS
- MINIZIP_LIBS=$pkg_cv_MINIZIP_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_minizip=yes
- fi
- for element in skins2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} $MINIZIP_CFLAGS"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in zip; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $MINIZIP_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in skins2 zip; do
- eval "LIBS_${element}="'"'"$MINIZIP_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} unzip"
- LTLIBunzip="libunzip_plugin.la"
- PLUGINS="${PLUGINS} zip"
- LTLIBzip="libzip_plugin.la"
- fi
- if test "${have_minizip}" = "yes" ; then
- HAVE_MINIZIP_TRUE=
- HAVE_MINIZIP_FALSE='#'
- else
- HAVE_MINIZIP_TRUE='#'
- HAVE_MINIZIP_FALSE=
- fi
- # Check whether --enable-hal was given.
- if test "${enable_hal+set}" = set; then :
- enableval=$enable_hal;
- fi
- if test "${enable_hal}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
- $as_echo_n "checking for HAL... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$HAL_CFLAGS"; then
- pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "hal >= 0.5.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "hal >= 0.5.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal >= 0.5.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$HAL_LIBS"; then
- pkg_cv_HAL_LIBS="$HAL_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "hal >= 0.5.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "hal >= 0.5.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal >= 0.5.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hal >= 0.5.0"`
- else
- HAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hal >= 0.5.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$HAL_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libhal >= 0.5.0 was not found. Install libhal-dev ?" >&5
- $as_echo "$as_me: WARNING: libhal >= 0.5.0 was not found. Install libhal-dev ?" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libhal >= 0.5.0 was not found. Install libhal-dev ?" >&5
- $as_echo "$as_me: WARNING: libhal >= 0.5.0 was not found. Install libhal-dev ?" >&2;}
- else
- HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
- HAL_LIBS=$pkg_cv_HAL_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_HAL 1" >>confdefs.h
- PLUGINS="${PLUGINS} hal"
- LTLIBhal="libhal_plugin.la"
- PLUGINS="${PLUGINS} probe_hal"
- LTLIBprobe_hal="libprobe_hal_plugin.la"
- for element in libvlccore hal probe_hal; do
- eval "LIBS_${element}="'"'"$HAL_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in libvlccore hal probe_hal; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $HAL_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- # Check whether --enable-udev was given.
- if test "${enable_udev+set}" = set; then :
- enableval=$enable_udev;
- fi
- if test "$enable_udev" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
- $as_echo_n "checking for UDEV... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$UDEV_CFLAGS"; then
- pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libudev >= 142""; } >&5
- ($PKG_CONFIG --exists --print-errors "libudev >= 142") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 142" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$UDEV_LIBS"; then
- pkg_cv_UDEV_LIBS="$UDEV_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libudev >= 142""; } >&5
- ($PKG_CONFIG --exists --print-errors "libudev >= 142") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 142" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev >= 142"`
- else
- UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev >= 142"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$UDEV_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- true
- elif test $pkg_failed = untried; then
- true
- else
- UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
- UDEV_LIBS=$pkg_cv_UDEV_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} udev"
- LTLIBudev="libudev_plugin.la"
- for element in udev; do
- eval "LIBS_${element}="'"'"$UDEV_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in udev; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $UDEV_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- # Check whether --enable-mtp was given.
- if test "${enable_mtp+set}" = set; then :
- enableval=$enable_mtp;
- fi
- if test "${enable_mtp}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTP" >&5
- $as_echo_n "checking for MTP... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$MTP_CFLAGS"; then
- pkg_cv_MTP_CFLAGS="$MTP_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_MTP_CFLAGS=`$PKG_CONFIG --cflags "libmtp >= 0.3.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$MTP_LIBS"; then
- pkg_cv_MTP_LIBS="$MTP_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_MTP_LIBS=`$PKG_CONFIG --libs "libmtp >= 0.3.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- MTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmtp >= 0.3.0"`
- else
- MTP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmtp >= 0.3.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$MTP_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MTP library not found" >&5
- $as_echo "$as_me: WARNING: MTP library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MTP library not found" >&5
- $as_echo "$as_me: WARNING: MTP library not found" >&2;}
- else
- MTP_CFLAGS=$pkg_cv_MTP_CFLAGS
- MTP_LIBS=$pkg_cv_MTP_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} mtp"
- LTLIBmtp="libmtp_plugin.la"
- PLUGINS="${PLUGINS} access_mtp"
- LTLIBaccess_mtp="libaccess_mtp_plugin.la"
- for element in mtp access_mtp; do
- eval "LIBS_${element}="'"'"$MTP_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in mtp access_mtp; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $MTP_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- # Check whether --enable-dbus was given.
- if test "${enable_dbus+set}" = set; then :
- enableval=$enable_dbus;
- fi
- case "${SYS}" in
- linux*|*bsd*)
- if test "${enable_dbus}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
- $as_echo_n "checking for DBUS... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$DBUS_CFLAGS"; then
- pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$DBUS_LIBS"; then
- pkg_cv_DBUS_LIBS="$DBUS_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 1.0.0"`
- else
- DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$DBUS_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Couldn't find DBus >= 1.0.0, install libdbus-dev ?" "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "Couldn't find DBus >= 1.0.0, install libdbus-dev ?" "$LINENO" 5
- else
- DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
- DBUS_LIBS=$pkg_cv_DBUS_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_DBUS 1" >>confdefs.h
- for element in screensaver libvlccore; do
- eval "LIBS_${element}="'"'"$DBUS_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in screensaver libvlccore; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $DBUS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- # Check whether --enable-dbus-control was given.
- if test "${enable_dbus_control+set}" = set; then :
- enableval=$enable_dbus_control;
- fi
- if test "${enable_dbus_control}" != "no"
- then
- PLUGINS="${PLUGINS} dbus"
- LTLIBdbus="libdbus_plugin.la"
- for element in dbus; do
- eval "LIBS_${element}="'"'"$DBUS_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in dbus; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $DBUS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- # Check whether --enable-telepathy was given.
- if test "${enable_telepathy+set}" = set; then :
- enableval=$enable_telepathy;
- fi
- if test "${enable_telepathy}" != "no"; then
- PLUGINS="${PLUGINS} telepathy"
- LTLIBtelepathy="libtelepathy_plugin.la"
- for element in telepathy; do
- eval "LIBS_${element}="'"'"$DBUS_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in telepathy; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $DBUS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- PLUGINS="${PLUGINS} inhibit"
- LTLIBinhibit="libinhibit_plugin.la"
- for element in inhibit; do
- eval "LIBS_${element}="'"'"$DBUS_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in inhibit; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $DBUS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- ;;
- esac
- NEED_GTK_MAIN=no
- NEED_GNOME_MAIN=no
- NEED_GTK2_MAIN=no
- NEED_GNOME2_MAIN=no
- NEED_QTE_MAIN=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in sys/param.h" >&5
- $as_echo_n "checking for ntohl in sys/param.h... " >&6; }
- if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -Wall -Werror"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/param.h>
- int
- main ()
- {
- int meuh; ntohl(meuh);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_ntohl_sys_param_h=yes
- else
- ac_cv_c_ntohl_sys_param_h=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ntohl_sys_param_h" >&5
- $as_echo "$ac_cv_c_ntohl_sys_param_h" >&6; }
- if test "${ac_cv_c_ntohl_sys_param_h}" != "no"; then
- $as_echo "#define NTOHL_IN_SYS_PARAM_H 1" >>confdefs.h
- fi
- CFLAGS="${CFLAGS_save}"
- for a in all extra sign-compare undef pointer-arith bad-function-cast cast-align write-strings missing-prototypes volatile-register-var error-implicit-function-declaration; do
- CFLAGS_save="${CFLAGS}"
- as_ac_var=`echo "ac_cv_prog_cc_flags_-W$a" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -W$a" >&5
- $as_echo_n "checking if $CC accepts -W$a... " >&6; }
- if { as_var=$as_ac_var; eval "test "${$as_var+set}" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS} -W$a"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$as_ac_var=yes"
- else
- eval "$as_ac_var=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=$$as_ac_var
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- ac_res=`eval echo '${'$as_ac_var'}'`
- if test "${ac_res}" != "no"; then :
- CFLAGS="${CFLAGS_save} -W$a"
- else
- CFLAGS="${CFLAGS_save}"
- fi
- done
- CFLAGS_save="${CFLAGS}"
- as_ac_var=`echo "ac_cv_prog_cc_flags_-pipe" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -pipe" >&5
- $as_echo_n "checking if $CC accepts -pipe... " >&6; }
- if { as_var=$as_ac_var; eval "test "${$as_var+set}" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS} -pipe"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$as_ac_var=yes"
- else
- eval "$as_ac_var=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=$$as_ac_var
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- ac_res=`eval echo '${'$as_ac_var'}'`
- if test "${ac_res}" != "no"; then :
- CFLAGS="${CFLAGS_save} -pipe"
- else
- CFLAGS="${CFLAGS_save}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Os" >&5
- $as_echo_n "checking if $CC accepts -Os... " >&6; }
- if test "${ac_cv_c_os+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -Os"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_os=yes
- else
- ac_cv_c_os=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_os" >&5
- $as_echo "$ac_cv_c_os" >&6; }
- if test "${ac_cv_c_os}" != "no"; then
- CFLAGS_OPTIM_SIZE="${CFLAGS_OPTIM_SIZE} -Os"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
- $as_echo_n "checking if $CC accepts -O... " >&6; }
- if test "${ac_cv_c_o+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_o=yes
- else
- ac_cv_c_o=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_o" >&5
- $as_echo "$ac_cv_c_o" >&6; }
- if test "${ac_cv_c_o}" != "no"; then
- if test "${ac_cv_c_o3}" = "no"; then
- CFLAGS_OPTIM_SIZE="${CFLAGS_OPTIM_SIZE} -O"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O4" >&5
- $as_echo_n "checking if $CC accepts -O4... " >&6; }
- if test "${ac_cv_c_o4+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O4"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_o4=yes
- else
- ac_cv_c_o4=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_o4" >&5
- $as_echo "$ac_cv_c_o4" >&6; }
- if test "${ac_cv_c_o4}" != "no" -a "x${enable_debug}" = "xno"; then
- CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O4"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
- $as_echo_n "checking if $CC accepts -O3... " >&6; }
- if test "${ac_cv_c_o3+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O3"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_o3=yes
- else
- ac_cv_c_o3=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_o3" >&5
- $as_echo "$ac_cv_c_o3" >&6; }
- if test "${ac_cv_c_o3}" != "no" -a "x${enable_debug}" = "xno"; then
- CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O3"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
- $as_echo_n "checking if $CC accepts -O2... " >&6; }
- if test "${ac_cv_c_o2+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O2"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_o2=yes
- else
- ac_cv_c_o2=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_o2" >&5
- $as_echo "$ac_cv_c_o2" >&6; }
- if test "${ac_cv_c_o2}" != "no"; then
- CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O2"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
- $as_echo_n "checking if $CC accepts -O... " >&6; }
- if test "${ac_cv_c_o+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_o=yes
- else
- ac_cv_c_o=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_o" >&5
- $as_echo "$ac_cv_c_o" >&6; }
- if test "${ac_cv_c_o}" != "no"; then
- CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O"
- fi
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O0" >&5
- $as_echo_n "checking if $CC accepts -O0... " >&6; }
- if test "${ac_cv_c_o0+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O0"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_o0=yes
- else
- ac_cv_c_o0=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_o0" >&5
- $as_echo "$ac_cv_c_o0" >&6; }
- if test "${ac_cv_c_o0}" != "no"; then
- CFLAGS_NOOPTIM="${CFLAGS_NOOPTIM} -O0"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ffast-math" >&5
- $as_echo_n "checking if $CC accepts -ffast-math... " >&6; }
- if test "${ac_cv_c_fast_math+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -ffast-math"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_fast_math=yes
- else
- ac_cv_c_fast_math=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fast_math" >&5
- $as_echo "$ac_cv_c_fast_math" >&6; }
- if test "${ac_cv_c_fast_math}" != "no"; then
- CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -ffast-math"
- fi
- if test "${SYS}" != "beos"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -funroll-loops" >&5
- $as_echo_n "checking if $CC accepts -funroll-loops... " >&6; }
- if test "${ac_cv_c_unroll_loops+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -funroll-loops"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_unroll_loops=yes
- else
- ac_cv_c_unroll_loops=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unroll_loops" >&5
- $as_echo "$ac_cv_c_unroll_loops" >&6; }
- if test "${ac_cv_c_unroll_loops}" != "no"; then
- CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -funroll-loops"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fomit-frame-pointer" >&5
- $as_echo_n "checking if $CC accepts -fomit-frame-pointer... " >&6; }
- if test "${ac_cv_c_omit_frame_pointer+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -fomit-frame-pointer"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_omit_frame_pointer=yes
- else
- ac_cv_c_omit_frame_pointer=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_omit_frame_pointer" >&5
- $as_echo "$ac_cv_c_omit_frame_pointer" >&6; }
- if test "${ac_cv_c_omit_frame_pointer}" != "no"; then
- if test "${SYS}" != "darwin"; then
- CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
- else
- CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fno-omit-frame-pointer"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -bundle -undefined error" >&5
- $as_echo_n "checking if $CC accepts -bundle -undefined error... " >&6; }
- if test "${ac_cv_ld_darwin+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -bundle -undefined error"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_ld_darwin=yes
- else
- ac_cv_ld_darwin=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_darwin" >&5
- $as_echo "$ac_cv_ld_darwin" >&6; }
- if test "${ac_cv_ld_darwin}" != "no"; then
- for element in plugin; do
- eval "LDFLAGS_${element}="'"'"-bundle -undefined error "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__ ((aligned ())) support" >&5
- $as_echo_n "checking __attribute__ ((aligned ())) support... " >&6; }
- if test "${ac_cv_c_attribute_aligned+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_attribute_aligned=0
- CFLAGS="${CFLAGS_save} -Werror"
- for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- CFLAGS="${CFLAGS_save}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute_aligned" >&5
- $as_echo "$ac_cv_c_attribute_aligned" >&6; }
- if test "${ac_cv_c_attribute_aligned}" != "0"; then
- cat >>confdefs.h <<_ACEOF
- #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((packed))" >&5
- $as_echo_n "checking for __attribute__((packed))... " >&6; }
- if test "${ac_cv_c_attribute_packed+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_attribute_packed=no
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- struct __attribute__((__packed__)) foo { int a; } b;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_attribute_packed=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute_packed" >&5
- $as_echo "$ac_cv_c_attribute_packed" >&6; }
- if test "${ac_cv_c_attribute_packed}" != "no"; then
- $as_echo "#define HAVE_ATTRIBUTE_PACKED 1" >>confdefs.h
- fi
- case "${host_cpu}" in
- "")
- ARCH=unknown
- ;;
- *)
- ARCH="${host_cpu}"
- ;;
- esac
- for ac_header in execinfo.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
- if test "x$ac_cv_header_execinfo_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_EXECINFO_H 1
- _ACEOF
- fi
- done
- for ac_func in backtrace
- do :
- ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
- if test "x$ac_cv_func_backtrace" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BACKTRACE 1
- _ACEOF
- fi
- done
- # Check whether --enable-gprof was given.
- if test "${enable_gprof+set}" = set; then :
- enableval=$enable_gprof;
- fi
- # Check whether --enable-cprof was given.
- if test "${enable_cprof+set}" = set; then :
- enableval=$enable_cprof;
- fi
- test "${enable_gprof}" != "yes" && enable_gprof="no"
- test "${enable_cprof}" != "yes" && enable_cprof="no"
- PLUGINS="${PLUGINS} deinterlace"
- LTLIBdeinterlace="libdeinterlace_plugin.la"
- PLUGINS="${PLUGINS} yuvp"
- LTLIByuvp="libyuvp_plugin.la"
- PLUGINS="${PLUGINS} invert"
- LTLIBinvert="libinvert_plugin.la"
- PLUGINS="${PLUGINS} adjust"
- LTLIBadjust="libadjust_plugin.la"
- PLUGINS="${PLUGINS} transform"
- LTLIBtransform="libtransform_plugin.la"
- PLUGINS="${PLUGINS} wave"
- LTLIBwave="libwave_plugin.la"
- PLUGINS="${PLUGINS} ripple"
- LTLIBripple="libripple_plugin.la"
- PLUGINS="${PLUGINS} psychedelic"
- LTLIBpsychedelic="libpsychedelic_plugin.la"
- PLUGINS="${PLUGINS} gradient"
- LTLIBgradient="libgradient_plugin.la"
- PLUGINS="${PLUGINS} motionblur"
- LTLIBmotionblur="libmotionblur_plugin.la"
- PLUGINS="${PLUGINS} rv32"
- LTLIBrv32="librv32_plugin.la"
- PLUGINS="${PLUGINS} rotate"
- LTLIBrotate="librotate_plugin.la"
- PLUGINS="${PLUGINS} noise"
- LTLIBnoise="libnoise_plugin.la"
- PLUGINS="${PLUGINS} grain"
- LTLIBgrain="libgrain_plugin.la"
- PLUGINS="${PLUGINS} extract"
- LTLIBextract="libextract_plugin.la"
- PLUGINS="${PLUGINS} sharpen"
- LTLIBsharpen="libsharpen_plugin.la"
- PLUGINS="${PLUGINS} croppadd"
- LTLIBcroppadd="libcroppadd_plugin.la"
- PLUGINS="${PLUGINS} canvas"
- LTLIBcanvas="libcanvas_plugin.la"
- PLUGINS="${PLUGINS} blendbench"
- LTLIBblendbench="libblendbench_plugin.la"
- PLUGINS="${PLUGINS} blend"
- LTLIBblend="libblend_plugin.la"
- PLUGINS="${PLUGINS} scale"
- LTLIBscale="libscale_plugin.la"
- PLUGINS="${PLUGINS} vmem"
- LTLIBvmem="libvmem_plugin.la"
- PLUGINS="${PLUGINS} logo"
- LTLIBlogo="liblogo_plugin.la"
- PLUGINS="${PLUGINS} magnify"
- LTLIBmagnify="libmagnify_plugin.la"
- PLUGINS="${PLUGINS} puzzle"
- LTLIBpuzzle="libpuzzle_plugin.la"
- PLUGINS="${PLUGINS} colorthres"
- LTLIBcolorthres="libcolorthres_plugin.la"
- PLUGINS="${PLUGINS} scene"
- LTLIBscene="libscene_plugin.la"
- PLUGINS="${PLUGINS} yuv"
- LTLIByuv="libyuv_plugin.la"
- ALIASES="${ALIASES} cvlc"
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- PLUGINS="${PLUGINS} spatializer"
- LTLIBspatializer="libspatializer_plugin.la"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test "${SYS}" != "mingwce"; then
- PLUGINS="${PLUGINS} gestures"
- LTLIBgestures="libgestures_plugin.la"
- PLUGINS="${PLUGINS} rc"
- LTLIBrc="librc_plugin.la"
- PLUGINS="${PLUGINS} hotkeys"
- LTLIBhotkeys="libhotkeys_plugin.la"
- PLUGINS="${PLUGINS} showintf"
- LTLIBshowintf="libshowintf_plugin.la"
- PLUGINS="${PLUGINS} marq"
- LTLIBmarq="libmarq_plugin.la"
- PLUGINS="${PLUGINS} podcast"
- LTLIBpodcast="libpodcast_plugin.la"
- PLUGINS="${PLUGINS} shout"
- LTLIBshout="libshout_plugin.la"
- PLUGINS="${PLUGINS} sap"
- LTLIBsap="libsap_plugin.la"
- PLUGINS="${PLUGINS} fake"
- LTLIBfake="libfake_plugin.la"
- PLUGINS="${PLUGINS} folder"
- LTLIBfolder="libfolder_plugin.la"
- PLUGINS="${PLUGINS} rss"
- LTLIBrss="librss_plugin.la"
- PLUGINS="${PLUGINS} mosaic"
- LTLIBmosaic="libmosaic_plugin.la"
- PLUGINS="${PLUGINS} wall"
- LTLIBwall="libwall_plugin.la"
- PLUGINS="${PLUGINS} motiondetect"
- LTLIBmotiondetect="libmotiondetect_plugin.la"
- PLUGINS="${PLUGINS} clone"
- LTLIBclone="libclone_plugin.la"
- PLUGINS="${PLUGINS} crop"
- LTLIBcrop="libcrop_plugin.la"
- PLUGINS="${PLUGINS} erase"
- LTLIBerase="liberase_plugin.la"
- PLUGINS="${PLUGINS} bluescreen"
- LTLIBbluescreen="libbluescreen_plugin.la"
- PLUGINS="${PLUGINS} alphamask"
- LTLIBalphamask="libalphamask_plugin.la"
- PLUGINS="${PLUGINS} gaussianblur"
- LTLIBgaussianblur="libgaussianblur_plugin.la"
- PLUGINS="${PLUGINS} i420_yuy2"
- LTLIBi420_yuy2="libi420_yuy2_plugin.la"
- PLUGINS="${PLUGINS} i422_yuy2"
- LTLIBi422_yuy2="libi422_yuy2_plugin.la"
- PLUGINS="${PLUGINS} i420_ymga"
- LTLIBi420_ymga="libi420_ymga_plugin.la"
- PLUGINS="${PLUGINS} i422_i420"
- LTLIBi422_i420="libi422_i420_plugin.la"
- PLUGINS="${PLUGINS} yuy2_i422"
- LTLIByuy2_i422="libyuy2_i422_plugin.la"
- PLUGINS="${PLUGINS} yuy2_i420"
- LTLIByuy2_i420="libyuy2_i420_plugin.la"
- PLUGINS="${PLUGINS} chain"
- LTLIBchain="libchain_plugin.la"
- PLUGINS="${PLUGINS} aout_file"
- LTLIBaout_file="libaout_file_plugin.la"
- PLUGINS="${PLUGINS} linear_resampler"
- LTLIBlinear_resampler="liblinear_resampler_plugin.la"
- PLUGINS="${PLUGINS} bandlimited_resampler"
- LTLIBbandlimited_resampler="libbandlimited_resampler_plugin.la"
- PLUGINS="${PLUGINS} float32_mixer"
- LTLIBfloat32_mixer="libfloat32_mixer_plugin.la"
- PLUGINS="${PLUGINS} spdif_mixer"
- LTLIBspdif_mixer="libspdif_mixer_plugin.la"
- PLUGINS="${PLUGINS} simple_channel_mixer"
- LTLIBsimple_channel_mixer="libsimple_channel_mixer_plugin.la"
- PLUGINS="${PLUGINS} dolby_surround_decoder"
- LTLIBdolby_surround_decoder="libdolby_surround_decoder_plugin.la"
- PLUGINS="${PLUGINS} headphone_channel_mixer"
- LTLIBheadphone_channel_mixer="libheadphone_channel_mixer_plugin.la"
- PLUGINS="${PLUGINS} normvol"
- LTLIBnormvol="libnormvol_plugin.la"
- PLUGINS="${PLUGINS} equalizer"
- LTLIBequalizer="libequalizer_plugin.la"
- PLUGINS="${PLUGINS} param_eq"
- LTLIBparam_eq="libparam_eq_plugin.la"
- PLUGINS="${PLUGINS} scaletempo"
- LTLIBscaletempo="libscaletempo_plugin.la"
- PLUGINS="${PLUGINS} converter_float"
- LTLIBconverter_float="libconverter_float_plugin.la"
- PLUGINS="${PLUGINS} a52tospdif"
- LTLIBa52tospdif="liba52tospdif_plugin.la"
- PLUGINS="${PLUGINS} dtstospdif"
- LTLIBdtstospdif="libdtstospdif_plugin.la"
- PLUGINS="${PLUGINS} audio_format"
- LTLIBaudio_format="libaudio_format_plugin.la"
- ALIASES="${ALIASES} rvlc"
- fi
- if test "${SYS}" = "mingwce"; then
- PLUGINS="${PLUGINS} chain"
- LTLIBchain="libchain_plugin.la"
- PLUGINS="${PLUGINS} aout_file"
- LTLIBaout_file="libaout_file_plugin.la"
- PLUGINS="${PLUGINS} linear_resampler"
- LTLIBlinear_resampler="liblinear_resampler_plugin.la"
- PLUGINS="${PLUGINS} bandlimited_resampler"
- LTLIBbandlimited_resampler="libbandlimited_resampler_plugin.la"
- PLUGINS="${PLUGINS} float32_mixer"
- LTLIBfloat32_mixer="libfloat32_mixer_plugin.la"
- PLUGINS="${PLUGINS} spdif_mixer"
- LTLIBspdif_mixer="libspdif_mixer_plugin.la"
- PLUGINS="${PLUGINS} simple_channel_mixer"
- LTLIBsimple_channel_mixer="libsimple_channel_mixer_plugin.la"
- PLUGINS="${PLUGINS} headphone_channel_mixer"
- LTLIBheadphone_channel_mixer="libheadphone_channel_mixer_plugin.la"
- PLUGINS="${PLUGINS} normvol"
- LTLIBnormvol="libnormvol_plugin.la"
- PLUGINS="${PLUGINS} converter_float"
- LTLIBconverter_float="libconverter_float_plugin.la"
- PLUGINS="${PLUGINS} a52tospdif"
- LTLIBa52tospdif="liba52tospdif_plugin.la"
- PLUGINS="${PLUGINS} dtstospdif"
- LTLIBdtstospdif="libdtstospdif_plugin.la"
- PLUGINS="${PLUGINS} audio_format"
- LTLIBaudio_format="libaudio_format_plugin.la"
- PLUGINS="${PLUGINS} i420_yuy2"
- LTLIBi420_yuy2="libi420_yuy2_plugin.la"
- PLUGINS="${PLUGINS} i422_yuy2"
- LTLIBi422_yuy2="libi422_yuy2_plugin.la"
- PLUGINS="${PLUGINS} i420_ymga"
- LTLIBi420_ymga="libi420_ymga_plugin.la"
- PLUGINS="${PLUGINS} i422_i420"
- LTLIBi422_i420="libi422_i420_plugin.la"
- PLUGINS="${PLUGINS} yuy2_i422"
- LTLIByuy2_i422="libyuy2_i422_plugin.la"
- PLUGINS="${PLUGINS} yuy2_i420"
- LTLIByuy2_i420="libyuy2_i420_plugin.la"
- fi
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- PLUGINS="${PLUGINS} screensaver"
- LTLIBscreensaver="libscreensaver_plugin.la"
- PLUGINS="${PLUGINS} motion"
- LTLIBmotion="libmotion_plugin.la"
- PLUGINS="${PLUGINS} dynamicoverlay"
- LTLIBdynamicoverlay="libdynamicoverlay_plugin.la"
- PLUGINS="${PLUGINS} signals"
- LTLIBsignals="libsignals_plugin.la"
- elif test "${SYS}" != "mingwce"; then
- PLUGINS="${PLUGINS} ntservice"
- LTLIBntservice="libntservice_plugin.la"
- PLUGINS="${PLUGINS} access_smb"
- LTLIBaccess_smb="libaccess_smb_plugin.la"
- PLUGINS="${PLUGINS} dmo"
- LTLIBdmo="libdmo_plugin.la"
- PLUGINS="${PLUGINS} msn"
- LTLIBmsn="libmsn_plugin.la"
- for element in dmo; do
- eval "LIBS_${element}="'"'"-lole32 -luuid "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} globalhotkeys"
- LTLIBglobalhotkeys="libglobalhotkeys_plugin.la"
- else
- PLUGINS="${PLUGINS} win32text"
- LTLIBwin32text="libwin32text_plugin.la"
- fi
- if test "${SYS}" = "darwin"; then
- PLUGINS="${PLUGINS} quartztext"
- LTLIBquartztext="libquartztext_plugin.la"
- for element in quartztext; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Carbon,-framework,ApplicationServices "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- # Check whether --enable-mmx was given.
- if test "${enable_mmx+set}" = set; then :
- enableval=$enable_mmx;
- else
- case "${host_cpu}" in
- i?86|x86_64)
- enable_mmx="yes"
- ;;
- *)
- enable_mmx="no"
- ;;
- esac
- fi
- if test "${enable_mmx}" != "no"; then :
- ARCH="${ARCH} mmx"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks MMX intrinsics" >&5
- $as_echo_n "checking if $CC groks MMX intrinsics... " >&6; }
- if test "${ac_cv_c_mmx_intrinsics+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save} -O -mmmx"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <mmintrin.h>
- #include <stdint.h>
- uint64_t frobzor;
- int
- main ()
- {
- __m64 a, b, c;
- a = b = c = (__m64)frobzor;
- a = _mm_slli_pi16(a, 3);
- a = _mm_adds_pi16(a, b);
- c = _mm_srli_pi16(c, 8);
- c = _mm_slli_pi16(c, 3);
- b = _mm_adds_pi16(b, c);
- a = _mm_unpacklo_pi8(a, b);
- frobzor = (uint64_t)a;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_mmx_intrinsics=yes
- else
- ac_cv_c_mmx_intrinsics=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_mmx_intrinsics" >&5
- $as_echo "$ac_cv_c_mmx_intrinsics" >&6; }
- if test "${ac_cv_c_mmx_intrinsics}" != "no"; then :
- $as_echo "#define HAVE_MMX_INTRINSICS 1" >>confdefs.h
- for element in memcpymmx i420_rgb_mmx i420_yuy2_mmx i422_yuy2_mmx i420_ymga_mmx; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -mmmx"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC groks MMX inline assembly" >&5
- $as_echo_n "checking if $CC groks MMX inline assembly... " >&6; }
- if test "${ac_cv_mmx_inline+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_mmx_inline=yes
- else
- ac_cv_mmx_inline=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mmx_inline" >&5
- $as_echo "$ac_cv_mmx_inline" >&6; }
- if test "${ac_cv_mmx_inline}" != "no"; then :
- $as_echo "#define CAN_COMPILE_MMX 1" >>confdefs.h
- PLUGINS="${PLUGINS} memcpymmx"
- LTLIBmemcpymmx="libmemcpymmx_plugin.la"