1 diff -aurN gftp-2.0.18.orig/configure.in gftp-2.0.18/configure.in
2 --- gftp-2.0.18.orig/configure.in 2005-02-04 16:42:32.000000000 +0100
3 +++ gftp-2.0.18/configure.in 2005-04-30 19:02:22.000000000 +0200
8 -if test "x$GFTP_TEXT" = "x" -a $found_glib20 = 0 ; then
9 - AM_PATH_GLIB(1.2.3, , AC_MSG_ERROR(gFTP needs GLIB 1.2.3 or higher))
18 if test "x$enable_gtkport" = "xyes" ; then
19 - if test $found_glib20 = 1 -a "x$enable_gtk20" = "xyes" ; then
20 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.0.0, GFTP_GTK=gftp-gtk, AC_MSG_ERROR(You have GLIB 2.0 installed but I cannot find GTK+ 2.0. Run configure with --disable-gtk20 or install GTK+ 2.0))
23 - if test "x$GFTP_GTK" = "x" ; then
24 - AM_PATH_GTK(1.2.3, GFTP_GTK=gftp-gtk, AC_MSG_WARN(gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version))
25 - GTHREAD_LIBS="-lgthread"
27 GTHREAD_LIBS="-lgthread-2.0"
30 - if test "x$GFTP_GTK" = xgftp-gtk; then
33 - AC_CHECK_LIB(rt, sem_init)
35 - # From H.Merijn Brand <h.m.brand@hccnet.nl>
36 - echo '#define pthread_attr_init(x) __pthread_attr_init_system(x)' >>confdefs.h
37 - echo '#define pthread_create(x) __pthread_create_system(x)' >>confdefs.h
41 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS="-lpthread")
46 PTHREAD_CFLAGS="-D_REENTRANT"
48 - # I took some of these from the glib 1.3.3 configure.in
51 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
52 - if test x"$GCC" = xyes; then
53 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -mthreads"
57 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
59 - # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
63 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
64 - if test "x$PTHREAD_LIBS" = "x-lc_r"; then
65 - PTHREAD_LIBS="-pthread"
68 - *-sysv5uw7*) # UnixWare 7
69 - if test "$GCC" != "yes"; then
70 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -Kthread"
72 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -pthread"
76 - PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
80 AC_SUBST(PTHREAD_CFLAGS)
81 AC_SUBST(PTHREAD_LIBS)