Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /configure.ac [ff1c6a] .. [567293] Maximize Restore

  Switch to side-by-side view

--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,13 @@
 dnl
 AC_PREREQ(2.53)
 
-AM_INIT_AUTOMAKE("xineplugin", 0.2)
+PACKAGE=xine-plugin
+VERSION=1.0
+
+AC_SUBST(PACKAGE)
+AC_SUBST(VERSION)
+
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
 
 AM_CONFIG_HEADER(config.h)
 
@@ -24,7 +30,7 @@
 dnl
 AC_PATH_XTRA
 if test x"$no_x" != x"yes"; then
-    AC_DEFINE(HAVE_X11,,[Define this if you have X11R6 installed])
+  AC_DEFINE(HAVE_X11,,[Define this if you have X11R6 installed])
 fi
 
 
@@ -32,6 +38,7 @@
 dnl Check for xine-lib
 dnl
 AM_PATH_XINE(1.0.0,, AC_MSG_ERROR(*** You should install xine-lib first ***))
+
 
 dnl
 dnl threads: xine-config tell us what should be used, but
@@ -45,6 +52,13 @@
     CFLAGS="$CFLAGS -L/usr/local/lib $THREAD_CFLAGS"
     CPPFLAGS="$CPPFLAGS -I/usr/local/include -L/usr/local/lib"
     ;;
+  
+  *-*-hpux11*)
+    THREAD_LIBS=" -pthread"
+    THREAD_CFLAGS="-D_REENTRANT"
+    CFLAGS="$THREAD_CFLAGS $CFLAGS"
+    ;;
+    
   *)
     AC_CHECK_LIB(pthread, pthread_create,
              THREAD_LIBS="-lpthread",
@@ -54,19 +68,10 @@
 AC_SUBST(THREAD_LIBS)
 AC_SUBST(THREAD_CFLAGS)
 
-dnl
-dnl dynamic linker
-dnl
-AC_CHECK_LIB(c, dlopen,
-             DYNAMIC_LD_LIBS="",
-             AC_CHECK_LIB(dl, dlopen,
-                          DYNAMIC_LD_LIBS="-ldl",
-                          AC_MSG_ERROR(dynamic linker needed)))
-AC_SUBST(DYNAMIC_LD_LIBS)
 
 CFLAGS="$CFLAGS -DXP_UNIX -Wall $XINE_CFLAGS"
 AC_SUBST(CFLAGS)
-DEBUG_CFLAGS="$CFLAGS $XINE_CFLAGS -g -O"
+DEBUG_CFLAGS="$CFLAGS -g3 -O"
 AC_SUBST(DEBUG_CFLAGS)
 
 
@@ -80,7 +85,7 @@
 dnl It seems automake 1.5 don't take care about this script
 dnl
 if test ! -z "$am_depcomp"; then
-        DEPCOMP="depcomp"
+  DEPCOMP="depcomp"
 fi
 AC_SUBST(DEPCOMP)