@@ -698,6 +698,7 @@ BISON
698698MKDIR_P
699699LN_S
700700TAR
701+ USE_MDBLOCALES
701702install_bin
702703INSTALL_DATA
703704INSTALL_SCRIPT
@@ -945,6 +946,7 @@ with_rt
945946with_libcurl
946947with_apr_config
947948with_gnu_ld
949+ with_mdblocales
948950with_ssl
949951with_openssl
950952enable_openssl_redirect
@@ -1693,6 +1695,7 @@ Optional Packages:
16931695 --without-libcurl do not use libcurl
16941696 --with-apr-config=PATH path to apr-1-config utility
16951697 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1698+ --without-mdblocales build without MDB locales
16961699 --with-ssl=LIB use LIB for SSL/TLS support (openssl)
16971700 --with-openssl obsolete spelling of --with-ssl=openssl
16981701
@@ -2909,7 +2912,6 @@ PG_PACKAGE_VERSION=14.4
29092912
29102913
29112914
2912-
29132915ac_aux_dir=
29142916for ac_dir in config "$srcdir"/config; do
29152917 if test -f "$ac_dir/install-sh"; then
@@ -12208,6 +12210,38 @@ case $INSTALL in
1220812210esac
1220912211
1221012212
12213+ #
12214+ # MDB locales
12215+ #
12216+
12217+
12218+
12219+
12220+ # Check whether --with-mdblocales was given.
12221+ if test "${with_mdblocales+set}" = set; then :
12222+ withval=$with_mdblocales;
12223+ case $withval in
12224+ yes)
12225+
12226+ $as_echo "#define USE_MDBLOCALES 1" >>confdefs.h
12227+
12228+ ;;
12229+ no)
12230+ :
12231+ ;;
12232+ *)
12233+ as_fn_error $? "no argument expected for --with-mdblocales option" "$LINENO" 5
12234+ ;;
12235+ esac
12236+
12237+ else
12238+ with_mdblocales=no
12239+
12240+ fi
12241+
12242+
12243+
12244+
1221112245if test -z "$TAR"; then
1221212246 for ac_prog in tar
1221312247do
@@ -12844,6 +12878,56 @@ $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
1284412878
1284512879
1284612880
12881+ fi
12882+
12883+ if test "$with_mdblocales" = yes; then
12884+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_setlocale in -lmdblocales" >&5
12885+ $as_echo_n "checking for mdb_setlocale in -lmdblocales... " >&6; }
12886+ if ${ac_cv_lib_mdblocales_mdb_setlocale+:} false; then :
12887+ $as_echo_n "(cached) " >&6
12888+ else
12889+ ac_check_lib_save_LIBS=$LIBS
12890+ LIBS="-lmdblocales $LIBS"
12891+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892+ /* end confdefs.h. */
12893+
12894+ /* Override any GCC internal prototype to avoid an error.
12895+ Use char because int might match the return type of a GCC
12896+ builtin and then its argument prototype would still apply. */
12897+ #ifdef __cplusplus
12898+ extern "C"
12899+ #endif
12900+ char mdb_setlocale ();
12901+ int
12902+ main ()
12903+ {
12904+ return mdb_setlocale ();
12905+ ;
12906+ return 0;
12907+ }
12908+ _ACEOF
12909+ if ac_fn_c_try_link "$LINENO"; then :
12910+ ac_cv_lib_mdblocales_mdb_setlocale=yes
12911+ else
12912+ ac_cv_lib_mdblocales_mdb_setlocale=no
12913+ fi
12914+ rm -f core conftest.err conftest.$ac_objext \
12915+ conftest$ac_exeext conftest.$ac_ext
12916+ LIBS=$ac_check_lib_save_LIBS
12917+ fi
12918+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdblocales_mdb_setlocale" >&5
12919+ $as_echo "$ac_cv_lib_mdblocales_mdb_setlocale" >&6; }
12920+ if test "x$ac_cv_lib_mdblocales_mdb_setlocale" = xyes; then :
12921+ cat >>confdefs.h <<_ACEOF
12922+ #define HAVE_LIBMDBLOCALES 1
12923+ _ACEOF
12924+
12925+ LIBS="-lmdblocales $LIBS"
12926+
12927+ else
12928+ as_fn_error $? "mdblocales library not found" "$LINENO" 5
12929+ fi
12930+
1284712931fi
1284812932
1284912933if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
@@ -17065,6 +17149,17 @@ fi
1706517149
1706617150done
1706717151
17152+ fi
17153+
17154+ if test "$with_mdblocales" = yes; then
17155+ ac_fn_c_check_header_mongrel "$LINENO" "mdblocales.h" "ac_cv_header_mdblocales_h" "$ac_includes_default"
17156+ if test "x$ac_cv_header_mdblocales_h" = xyes; then :
17157+
17158+ else
17159+ as_fn_error $? "mdblocales header not found." "$LINENO" 5
17160+ fi
17161+
17162+
1706817163fi
1706917164
1707017165if test "$with_gssapi" = yes ; then
0 commit comments