openbsd-ports/games/xscorch/patches/patch-configure
jasper 770ec4404c - update to 0.2.1-pre2
* switches to gtk+2
- fix a deprecation warning
- correctly pickup libreadline (from freebsd)

discussed with aja@
2010-03-21 09:24:25 +00:00

49 lines
1.6 KiB
Plaintext

$OpenBSD: patch-configure,v 1.1 2010/03/21 09:24:25 jasper Exp $
Correctly pickup libreadline.
--- configure.orig Mon Feb 1 08:51:33 2010
+++ configure Mon Feb 1 08:52:06 2010
@@ -14664,7 +14664,7 @@ if test "${ac_cv_lib_readline_rl_callback_handler_inst
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $LIBS"
+LIBS="-lreadline -ltermcap $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -15011,7 +15011,7 @@ if test "${ac_cv_lib_readline_rl_callback_handler_inst
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $LIBS"
+LIBS="-lreadline -ltermcap $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -15080,12 +15080,12 @@ fi
{ $as_echo "$as_me:$LINENO: checking whether readline works at runtime" >&5
$as_echo_n "checking whether readline works at runtime... " >&6; }
templibs="$LIBS"
-LIBS="-lreadline "" $LIBS"
+LIBS="-lreadline -ltermcap "" $LIBS"
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: result: unknown: cross-compiling" >&5
$as_echo "unknown: cross-compiling" >&6; }
READLINE="1"
- LIBREADLINE_LIBS="-lreadline"
+ LIBREADLINE_LIBS="-lreadline -ltermcap"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -15155,7 +15155,7 @@ $as_echo "$ac_try_echo") >&5
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
READLINE="1"
- LIBREADLINE_LIBS="-lreadline"
+ LIBREADLINE_LIBS="-lreadline -ltermcap"
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5