X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=configure;h=390c72f3b0757159a9b05ecf8e97b9b3fb4cb481;hb=9ccd2453b5a55c7bccae5de1e1022947c7ff889a;hp=ffc9b1e5315a67d036871f26ced528104f2254ab;hpb=5bfbf53150fcd37f368fe5cc0baacff9822f7e2b;p=pkg%2Fabook.git diff --git a/configure b/configure index ffc9b1e..390c72f 100755 --- a/configure +++ b/configure @@ -606,6 +606,8 @@ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +ENABLE_VFORMAT_SUPPORT_FALSE +ENABLE_VFORMAT_SUPPORT_TRUE ANSI2KNR U USE_INCLUDED_INTL_H_FALSE @@ -764,6 +766,7 @@ with_libintl_prefix with_localedir with_curses with_readline +enable_vformat enable_debug ' ac_precious_vars='build_alias @@ -1400,6 +1403,7 @@ Optional Features: specify multithreading API --disable-threads build without multithread safety --disable-rpath do not hardcode runtime library paths + --enable-vformat Use libvformat is available --enable-debug Enable debugging support Optional Packages: @@ -11472,6 +11476,84 @@ if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then fi + +# Check whether --enable-vformat was given. +if test "${enable_vformat+set}" = set; then : + enableval=$enable_vformat; case "${enableval}" in + yes) vformat=true ;; + no) vformat=false ;; + *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;; + esac +else + vformat=false +fi + +if test x$vformat = xtrue; then + ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default" +if test "x$ac_cv_header_vf_iface_h" = xyes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5 +$as_echo_n "checking for vf_read_file in -lvformat... " >&6; } +if ${ac_cv_lib_vformat_vf_read_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvformat $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 vf_read_file (); +int +main () +{ +return vf_read_file (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_vformat_vf_read_file=yes +else + ac_cv_lib_vformat_vf_read_file=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_vformat_vf_read_file" >&5 +$as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; } +if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then : + + MODULES="$MODULES m_vcf" + +$as_echo "#define HAVE_VFORMAT 1" >>confdefs.h + + have_vformat=yes + +fi + + +fi + + +fi + if test x"$have_vformat" = "xyes"; then + ENABLE_VFORMAT_SUPPORT_TRUE= + ENABLE_VFORMAT_SUPPORT_FALSE='#' +else + ENABLE_VFORMAT_SUPPORT_TRUE='#' + ENABLE_VFORMAT_SUPPORT_FALSE= +fi + + + + if test x$ac_widec_possible = xyes; then $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h @@ -11671,6 +11753,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0