See http://www.mailinglistarchive.com/help-libidn@gnu.org/msg00055.html diff -up libidn-0.6.14/lib/Makefile.am.orig libidn-0.6.14/lib/Makefile.am --- libidn-0.6.14/lib/Makefile.am.orig 2007-10-24 11:01:29.000000000 -0400 +++ libidn-0.6.14/lib/Makefile.am 2007-05-31 06:31:00.000000000 -0400 @@ -37,7 +37,7 @@ nodist_include_HEADERS = $(idn_int) idn-int.h: if test -n "$(STDINT_H)"; then \ - cp gl/stdint.h idn-int.h; \ + sed -e s/include_next/include/ gl/stdint.h > idn-int.h; \ else \ echo '#include ' > idn-int.h; \ fi diff -up libidn-0.6.14/lib/Makefile.in.orig libidn-0.6.14/lib/Makefile.in --- libidn-0.6.14/lib/Makefile.in.orig 2007-10-24 11:01:38.000000000 -0400 +++ libidn-0.6.14/lib/Makefile.in 2007-05-31 06:54:12.000000000 -0400 @@ -743,7 +743,7 @@ uninstall-am: uninstall-includeHEADERS u idn-int.h: if test -n "$(STDINT_H)"; then \ - cp gl/stdint.h idn-int.h; \ + sed -e s/include_next/include/ gl/stdint.h > idn-int.h; \ else \ echo '#include ' > idn-int.h; \ fi