openbsd-ports/graphics/libgphoto2/patches/patch-configure_in
robert 16f99ee908 upgrade to version 2.1.5;
from steven mestdagh <steven.mestdagh@esat.kuleuven.ac.be>
fixes from alek@; regen the patches while I am here

ok alek@ espie@
2005-05-16 17:44:01 +00:00

27 lines
1.0 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.5 2005/05/16 17:44:02 robert Exp $
--- configure.in.orig Wed Dec 15 23:01:51 2004
+++ configure.in Mon May 16 18:15:06 2005
@@ -68,15 +68,13 @@ else
fi
AM_GNU_GETTEXT
-AC_CHECK_FUNC(gettext, gettext_without_libintl=true)
-# same trick as with libdl:
-# if gettext() doesn't require linking against libintl,
-# we don't have to check for gettext in libintl. Otherwise
-# we may even require libintl.
-dnl AC_CHECK_LIB(intl, gettext, [LIBS="$LIBS -lintl"])
-if test "$gettext_without_libintl" != "true" -a "$USE_NLS" = "yes"; then
- AC_CHECK_LIB(intl, gettext, [INTLLIBS="$INTLLIBS -lintl"])
-fi
+LIBS="$LIBS -liconv"
+AC_CHECK_LIB(intl, bindtextdomain,
+ [AC_CACHE_VAL(gt_cv_func_gettext_libintl,
+ [AC_CHECK_LIB(intl, gettext,
+ [gt_cv_func_gettext_libintl=yes; LIBS="$LIBS -lintl"],
+ gt_cv_func_gettext_libintl=no)],
+gt_cv_func_gettext_libintl=no)])
dnl ---------------------------------------------------------------------------
dnl Turn on debugging and all warnings when using gcc