diff options
author | unknown <kent@mysql.com> | 2005-03-09 02:53:00 +0100 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-03-09 02:53:00 +0100 |
commit | ef0e1c05db481808305208678b9e4c7c1843ec53 (patch) | |
tree | a52d5facf2c64d87fba6821194aa76e7bcbb3762 /configure.in | |
parent | f2cfb6ef3b2cbf0ee54eaf6302640c5ace4d72f5 (diff) | |
download | mariadb-git-ef0e1c05db481808305208678b9e4c7c1843ec53.tar.gz |
configure.in:
bug#5102, bug#6862 define HAVE_VIS_H to libedit only if header and strvis() exists
configure.in:
bug#5102, bug#6862 define HAVE_VIS_H to libedit only if header and strvis() exists
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index d6acef071a6..305e9d44cec 100644 --- a/configure.in +++ b/configure.in @@ -1840,7 +1840,13 @@ AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL AC_CHECK_FUNCS(re_comp regcomp strdup) -AC_CHECK_HEADERS(vis.h) +dnl Sun compilers have their own vis.h that is about something +dnl totally different. So, not to change the libedit source, we +dnl do some additional checks before we define HAVE_VIS_H. +AC_CHECK_HEADER(vis.h, + [AC_CHECK_FUNC(strvis, + [AC_DEFINE([HAVE_VIS_H], [1],[Found vis.h and the strvis() function])])]) + AC_CHECK_FUNCS(strlcat strlcpy) AC_CHECK_FUNCS(issetugid) AC_CHECK_FUNCS(fgetln) |