@@ -698,6 +698,7 @@ BISON
698698MKDIR_P
699699LN_S
700700TAR
701+ USE_MDBLOCALES
701702install_bin
702703INSTALL_DATA
703704INSTALL_SCRIPT
@@ -943,6 +944,7 @@ with_rt
943944with_libcurl
944945with_apr_config
945946with_gnu_ld
947+ with_mdblocales
946948with_ssl
947949with_openssl
948950enable_openssl_redirect
@@ -1690,6 +1692,7 @@ Optional Packages:
16901692 --without-libcurl do not use libcurl
16911693 --with-apr-config=PATH path to apr-1-config utility
16921694 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1695+ --without-mdblocales build without MDB locales
16931696 --with-ssl=LIB use LIB for SSL/TLS support (openssl)
16941697 --with-openssl obsolete spelling of --with-ssl=openssl
16951698
@@ -2906,7 +2909,6 @@ PG_PACKAGE_VERSION=14.4
29062909
29072910
29082911
2909-
29102912ac_aux_dir=
29112913for ac_dir in config "$srcdir"/config; do
29122914 if test -f "$ac_dir/install-sh"; then
@@ -12124,6 +12126,38 @@ case $INSTALL in
1212412126esac
1212512127
1212612128
12129+ #
12130+ # MDB locales
12131+ #
12132+
12133+
12134+
12135+
12136+ # Check whether --with-mdblocales was given.
12137+ if test "${with_mdblocales+set}" = set; then :
12138+ withval=$with_mdblocales;
12139+ case $withval in
12140+ yes)
12141+
12142+ $as_echo "#define USE_MDBLOCALES 1" >>confdefs.h
12143+
12144+ ;;
12145+ no)
12146+ :
12147+ ;;
12148+ *)
12149+ as_fn_error $? "no argument expected for --with-mdblocales option" "$LINENO" 5
12150+ ;;
12151+ esac
12152+
12153+ else
12154+ with_mdblocales=no
12155+
12156+ fi
12157+
12158+
12159+
12160+
1212712161if test -z "$TAR"; then
1212812162 for ac_prog in tar
1212912163do
@@ -12760,6 +12794,56 @@ $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
1276012794
1276112795
1276212796
12797+ fi
12798+
12799+ if test "$with_mdblocales" = yes; then
12800+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_setlocale in -lmdblocales" >&5
12801+ $as_echo_n "checking for mdb_setlocale in -lmdblocales... " >&6; }
12802+ if ${ac_cv_lib_mdblocales_mdb_setlocale+:} false; then :
12803+ $as_echo_n "(cached) " >&6
12804+ else
12805+ ac_check_lib_save_LIBS=$LIBS
12806+ LIBS="-lmdblocales $LIBS"
12807+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808+ /* end confdefs.h. */
12809+
12810+ /* Override any GCC internal prototype to avoid an error.
12811+ Use char because int might match the return type of a GCC
12812+ builtin and then its argument prototype would still apply. */
12813+ #ifdef __cplusplus
12814+ extern "C"
12815+ #endif
12816+ char mdb_setlocale ();
12817+ int
12818+ main ()
12819+ {
12820+ return mdb_setlocale ();
12821+ ;
12822+ return 0;
12823+ }
12824+ _ACEOF
12825+ if ac_fn_c_try_link "$LINENO"; then :
12826+ ac_cv_lib_mdblocales_mdb_setlocale=yes
12827+ else
12828+ ac_cv_lib_mdblocales_mdb_setlocale=no
12829+ fi
12830+ rm -f core conftest.err conftest.$ac_objext \
12831+ conftest$ac_exeext conftest.$ac_ext
12832+ LIBS=$ac_check_lib_save_LIBS
12833+ fi
12834+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdblocales_mdb_setlocale" >&5
12835+ $as_echo "$ac_cv_lib_mdblocales_mdb_setlocale" >&6; }
12836+ if test "x$ac_cv_lib_mdblocales_mdb_setlocale" = xyes; then :
12837+ cat >>confdefs.h <<_ACEOF
12838+ #define HAVE_LIBMDBLOCALES 1
12839+ _ACEOF
12840+
12841+ LIBS="-lmdblocales $LIBS"
12842+
12843+ else
12844+ as_fn_error $? "mdblocales library not found" "$LINENO" 5
12845+ fi
12846+
1276312847fi
1276412848
1276512849if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
@@ -16981,6 +17065,17 @@ fi
1698117065
1698217066done
1698317067
17068+ fi
17069+
17070+ if test "$with_mdblocales" = yes; then
17071+ ac_fn_c_check_header_mongrel "$LINENO" "mdblocales.h" "ac_cv_header_mdblocales_h" "$ac_includes_default"
17072+ if test "x$ac_cv_header_mdblocales_h" = xyes; then :
17073+
17074+ else
17075+ as_fn_error $? "mdblocales header not found." "$LINENO" 5
17076+ fi
17077+
17078+
1698417079fi
1698517080
1698617081if test "$with_gssapi" = yes ; then
0 commit comments