mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
libcc1: Check for libgen.h header
The basename() function is declared in libgen.h. 2025-11-30 John David Anglin <danglin@gcc.gnu.org> libcc1/ChangeLog: * configure.ac: Check for libgen.h header. * configure: Regenerate.
This commit is contained in:
12
libcc1/configure
vendored
12
libcc1/configure
vendored
@@ -15298,6 +15298,18 @@ LDFLAGS="$cet_save_LDFLAGS"
|
||||
|
||||
|
||||
|
||||
for ac_header in libgen.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_libgen_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBGEN_H 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
|
||||
if test "x$ac_cv_have_decl_basename" = xyes; then :
|
||||
ac_have_decl=1
|
||||
|
||||
@@ -48,6 +48,7 @@ AC_SUBST(visibility)
|
||||
GCC_CET_HOST_FLAGS(CET_HOST_FLAGS)
|
||||
AC_SUBST(CET_HOST_FLAGS)
|
||||
|
||||
AC_CHECK_HEADERS(libgen.h)
|
||||
AC_CHECK_DECLS([basename])
|
||||
|
||||
GCC_BASE_VER
|
||||
|
||||
Reference in New Issue
Block a user