diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2014-07-29 10:52:43 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2014-07-29 10:52:43 -0600 |
commit | 3d3d34a7f524203a71525c0e3083fe3cdf3f47de (patch) | |
tree | 737e7f7a4b6c2d5c3db2a8443c6febdbbcb31af1 /m4/sudo.m4 | |
parent | f1c5c376987ba6a2f17115b951995df4a3c646b9 (diff) | |
download | sudo-3d3d34a7f524203a71525c0e3083fe3cdf3f47de.tar.gz |
Only include functions in util.exp that are actually in the library.
Fixes a problem on Solaris where undefined functions that are listed
as exported in the map file result in a link error.
Also make sure we use our glob.c if the system is missing glob().
Diffstat (limited to 'm4/sudo.m4')
-rw-r--r-- | m4/sudo.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/sudo.m4 b/m4/sudo.m4 index d9d97fffa..35f18cae4 100644 --- a/m4/sudo.m4 +++ b/m4/sudo.m4 @@ -216,6 +216,7 @@ AC_DEFUN([SUDO_FUNC_ISBLANK], AC_DEFINE(HAVE_ISBLANK, 1, [Define if you have isblank(3).]) else AC_LIBOBJ(isblank) + SUDO_APPEND_COMPAT_EXP(isblank) fi ]) @@ -392,6 +393,16 @@ AC_DEFUN([SUDO_APPEND_CPPFLAGS], [ ]) dnl +dnl Append one or more symbols to COMPAT_EXP +dnl +AC_DEFUN([SUDO_APPEND_COMPAT_EXP], [ + for _sym in $1; do + COMPAT_EXP="${COMPAT_EXP}${_sym} +" + done +]) + +dnl dnl Determine the mail spool location dnl NOTE: must be run *after* check for paths.h dnl |