diff options
author | unknown <msvensson@neptunus.(none)> | 2006-03-20 20:16:53 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-03-20 20:16:53 +0100 |
commit | b1aacfac72065ab4085199522f75bdaf1f44a088 (patch) | |
tree | 17f7cf828ddcc8a19622d78af6da47b369b1c881 /configure.in | |
parent | 5e02bec9ceefe1889db8b0dfc04e90d0b34a690f (diff) | |
parent | 680ba0b7d93a2429cc24ae6e397e0a789b4e269d (diff) | |
download | mariadb-git-b1aacfac72065ab4085199522f75bdaf1f44a088.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/bug11835/my50-bug11835
into neptunus.(none):/home/msvensson/mysql/bug11835/my51-bug11835
client/mysqltest.c:
Auto merged
configure.in:
Auto merged
mysql-test/mysql-test-run.pl:
Auto merged
sql/item_func.cc:
Auto merged
sql/Makefile.am:
Merge
sql/share/errmsg.txt:
Merge
sql/sql_udf.cc:
Merge
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/configure.in b/configure.in index 2f287ac2fce..ccd9f1b7869 100644 --- a/configure.in +++ b/configure.in @@ -1499,16 +1499,37 @@ else fi #---END: -# Check for dlopen, needed for user definable functions -# This must be checked after threads on AIX -# We only need this for mysqld, not for the clients. +# dlopen, dlerror +case "$with_mysqld_ldflags " in + + *"-static "*) + # No need to check for dlopen when mysqld is linked with + # -all-static or -static as it won't be able to load any functions. + # NOTE! It would be better if it was possible to test if dlopen + # can be used, but a good way to test it couldn't be found + + ;; + + *) + # Check for dlopen, needed for user definable functions + # This must be checked after threads on AIX + # We only need this for mysqld, not for the clients. + + my_save_LIBS="$LIBS" + LIBS="" + AC_CHECK_LIB(dl,dlopen) + LIBDL=$LIBS + LIBS="$my_save_LIBS" + AC_SUBST(LIBDL) + + my_save_LIBS="$LIBS" + LIBS="$LIBS $LIBDL" + AC_CHECK_FUNCS(dlopen dlerror) + LIBS="$my_save_LIBS" + + ;; +esac -my_save_LIBS="$LIBS" -LIBS="" -AC_CHECK_LIB(dl,dlopen) -LIBDL=$LIBS -LIBS="$my_save_LIBS" -AC_SUBST(LIBDL) # System characteristics case $SYSTEM_TYPE in @@ -1893,11 +1914,6 @@ then fi] ) -my_save_LIBS="$LIBS" -LIBS="$LIBS $LIBDL" -AC_CHECK_FUNCS(dlopen dlerror) -LIBS="$my_save_LIBS" - # Check definition of gethostbyaddr_r (glibc2 defines this with 8 arguments) ac_save_CXXFLAGS="$CXXFLAGS" AC_CACHE_CHECK([style of gethost* routines], mysql_cv_gethost_style, |