Remove unused function checks from configure.ac & include/*.h.in
The code that used getisax to check for MMX support was moved to pixman and removed from the X server by commiteb2d7fe02f
. The code that used HAVE_MKSTEMP was deleted by the Xprint removal in commit1c8bd318fb
. All alloca calls were removed by the patch series end in commit5e363500c8
, and used custom X checks instead of the autoconf HAVE_ALLOCA anyway. I can find no record of HAVE_GETUID, HAVE_GETEUID, HAVE_LINK, HAVE_MEMMOVE, HAVE_MEMSET, HAVE_STRCHR, HAVE_STRRCHR, HAVE_GETOPT, HAVE_GETOPT_LONG, HAVE_DOPRNT, or HAVE_VPRINTF ever being used, and the calls to those functions are not wrapped in #ifdefs. (Most of those are in our baseline requirements of C89 & Unix98 anyway.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
parent
84207def93
commit
4be68b0312
|
@ -213,11 +213,8 @@ AC_CHECK_FUNC([dlopen], [],
|
|||
AC_SUBST(DLOPEN_LIBS)
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr \
|
||||
strtol getopt getopt_long vsnprintf walkcontext backtrace \
|
||||
getisax getzoneid shmctl64 strcasestr ffs vasprintf])
|
||||
AC_FUNC_ALLOCA
|
||||
AC_CHECK_FUNCS([vsnprintf walkcontext backtrace \
|
||||
getzoneid shmctl64 strcasestr ffs vasprintf])
|
||||
AC_CHECK_FUNCS([strndup], [HAVE_STRNDUP=yes], [HAVE_STRNDUP=no])
|
||||
AM_CONDITIONAL(NEED_STRNDUP, [test x$HAVE_STRNDUP = xno])
|
||||
dnl Old HAS_* names used in os/*.c.
|
||||
|
|
|
@ -94,24 +94,12 @@
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
||||
#undef HAVE_DOPRNT
|
||||
|
||||
/* Have execinfo.h */
|
||||
#undef HAVE_EXECINFO_H
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Define to 1 if you have the `geteuid' function. */
|
||||
#undef HAVE_GETEUID
|
||||
|
||||
/* Define to 1 if you have the `getisax' function. */
|
||||
#undef HAVE_GETISAX
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
#undef HAVE_GETUID
|
||||
|
||||
/* Define to 1 if you have the `getzoneid' function. */
|
||||
#undef HAVE_GETZONEID
|
||||
|
||||
|
@ -136,9 +124,6 @@
|
|||
/* Define to 1 if you have the libdispatch (GCD) available */
|
||||
#undef HAVE_LIBDISPATCH
|
||||
|
||||
/* Define to 1 if you have the `link' function. */
|
||||
#undef HAVE_LINK
|
||||
|
||||
/* Define to 1 if you have the <linux/agpgart.h> header file. */
|
||||
#undef HAVE_LINUX_AGPGART_H
|
||||
|
||||
|
@ -148,9 +133,6 @@
|
|||
/* Define to 1 if you have the <linux/fb.h> header file. */
|
||||
#undef HAVE_LINUX_FB_H
|
||||
|
||||
/* Define to 1 if you have the `mkstemp' function. */
|
||||
#undef HAVE_MKSTEMP
|
||||
|
||||
/* Define to 1 if you have the <ndbm.h> header file. */
|
||||
#undef HAVE_NDBM_H
|
||||
|
||||
|
@ -181,9 +163,6 @@
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the `strchr' function. */
|
||||
#undef HAVE_STRCHR
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
|
@ -193,12 +172,6 @@
|
|||
/* Define to 1 if you have the `strndup' function. */
|
||||
#undef HAVE_STRNDUP
|
||||
|
||||
/* Define to 1 if you have the `strrchr' function. */
|
||||
#undef HAVE_STRRCHR
|
||||
|
||||
/* Define to 1 if you have the `strtol' function. */
|
||||
#undef HAVE_STRTOL
|
||||
|
||||
/* Define to 1 if SYSV IPC is available */
|
||||
#undef HAVE_SYSV_IPC
|
||||
|
||||
|
@ -234,9 +207,6 @@
|
|||
/* Have /dev/urandom */
|
||||
#undef HAVE_URANDOM
|
||||
|
||||
/* Define to 1 if you have the `vprintf' function. */
|
||||
#undef HAVE_VPRINTF
|
||||
|
||||
/* Define to 1 if you have the `vasprintf' function. */
|
||||
#undef HAVE_VASPRINTF
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
/* Define to 1 if unsigned long is 64 bits. */
|
||||
#undef _XSERVER64
|
||||
|
||||
/* Do we require our own snprintf? */
|
||||
#undef NEED_SNPRINTF
|
||||
|
||||
/* Short vendor name */
|
||||
#undef XVENDORNAMESHORT
|
||||
|
||||
|
|
Loading…
Reference in New Issue