[BACK]Return to patch-ae CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / comms / jpilot / patches

File: [cvs.NetBSD.org] / pkgsrc / comms / jpilot / patches / Attic / patch-ae (download)

Revision 1.3, Sat Nov 30 13:36:14 2002 UTC (21 years, 4 months ago) by salo
Branch: MAIN
Changes since 1.2: +4 -14 lines

USE_PKGLOCALEDIR

$NetBSD: patch-ae,v 1.3 2002/11/30 13:36:14 salo Exp $

--- configure.orig	Tue Feb  6 20:31:18 2001
+++ configure	Sat Nov 30 13:49:01 2002
@@ -3831,6 +3831,25 @@
 rm -f conftest*
    LIBS="$save_LIBS"
 
+   if test "x$have_dlopen" != "yes"; then
+      cat > conftest.$ac_ext <<EOF
+#line 3840 "configure"
+#include "confdefs.h"
+#include <dlfcn.h>
+int main() {
+dlopen("huh",0);
+; return 0; }
+EOF
+if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  have_dlopen=yes
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+   fi
+
    if test "x$have_dlopen" = "xyes"; then
       cat >> confdefs.h <<\EOF
 #define ENABLE_PLUGINS 1
@@ -3866,7 +3885,7 @@
 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
 if test "${with_gtk_prefix+set}" = set; then
   withval="$with_gtk_prefix"
-  gtk_config_prefix="$withval"
+  gtk_config_prefix=""
 else
   gtk_config_prefix=""
 fi