dnl Copyright (C) 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Copyright (C) 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
-[AC_LIBSOURCES([inttypes.h])
-gl_FULL_HEADER_PATH([inttypes.h])
+[AC_REQUIRE([gl_INCLUDE_NEXT])dnl
+AC_LIBSOURCES([inttypes.h])
+if test $gl_cv_have_include_next = no; then
+ gl_FULL_HEADER_PATH([inttypes.h])
+fi