[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(mgp-users 00288) Re: MagicPoint 1.07a
- To: mgp-users@mew.org
- Subject: (mgp-users 00288) Re: MagicPoint 1.07a
- From: Yoshifumi Nishida <nishida@sfc.wide.ad.jp>
- Date: Sat, 25 Mar 2000 04:09:15 +0900
- In-reply-to: Your message of "Fri, 24 Mar 2000 22:08:20 +0900" <>
- Posted: Sat, 25 Mar 2000 04:09:09 +0900
- References: <>
- Reply-to: mgp-users@mew.org
Hi,
>>>>> On Fri, 24 Mar 2000 22:08:20 +0900, Lionel Cons <lionel.cons@cern.ch> said:
>> We tried to compile it on several UNIXes and got various problems, the
>> main one being that MagicPoint now requires a more recent version of
>> libpng. We'll upgrade soon.
>> However, there is a big problem with configure. Running
>> ./configure
>> we get mgp working but no GIF support. Maybe you should document the
>> new --enable-gif option...
Sorry about lack of documentation.
if you have older version than libpng-1.0.5, you have to upgrade.
and I believe the following patch will solve giflib problem.
--
Yoshifumi Nishida
nishida@wide.ad.jp
*** configure.orig Sat Mar 25 03:40:57 2000
--- configure Sat Mar 25 03:41:54 2000
***************
*** 1804,1810 ****
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! LIBS="$LIBS -lungif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
--- 1804,1810 ----
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! GIFLIB="-lungif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
***************
*** 1847,1853 ****
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! LIBS="$LIBS -lgif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
--- 1847,1853 ----
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! GIFLIB="-lgif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
***************
*** 1890,1896 ****
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! LIBS="$LIBS -lungif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
--- 1890,1896 ----
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! GIFLIB="-lungif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
***************
*** 1933,1939 ****
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! LIBS="$LIBS -lgif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
--- 1933,1939 ----
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gif_ok=yes
! GIFLIB="-lgif"
cat >> confdefs.h <<\EOF
#define USE_GIF 1
EOF
***************
*** 2624,2629 ****
--- 2624,2633 ----
done
+
+ if test -n "$GIFLIB"; then
+ LIBS="$LIBS $GIFLIB"
+ fi
mgp_keywords=`$mgp_cv_path_perl $srcdir/keywords.pl $srcdir/globals.c`
*** configure.in.orig Sat Mar 25 03:40:58 2000
--- configure.in Sat Mar 25 03:42:01 2000
***************
*** 256,274 ****
if test $mgp_gif = "yes"; then
AC_CHECK_LIB(ungif, DGifOpenFileHandle,
[gif_ok=yes
! LIBS="$LIBS -lungif"
AC_DEFINE(USE_GIF)],
[AC_CHECK_LIB(gif, DGifOpenFileHandle,
[gif_ok=yes
! LIBS="$LIBS -lgif"
AC_DEFINE(USE_GIF)],
[AC_CHECK_LIB(ungif, DGifOpenFileName,
[gif_ok=yes
! LIBS="$LIBS -lungif"
AC_DEFINE(USE_GIF)],
[AC_CHECK_LIB(gif, DGifOpenFilename,
[gif_ok=yes
! LIBS="$LIBS -lgif"
AC_DEFINE(USE_GIF)],
[], [-L$x_libraries -lX11])], [-L$x_libraries -lX11])])])
if test "x$gif_ok" != "xyes"; then
--- 256,274 ----
if test $mgp_gif = "yes"; then
AC_CHECK_LIB(ungif, DGifOpenFileHandle,
[gif_ok=yes
! GIFLIB="-lungif"
AC_DEFINE(USE_GIF)],
[AC_CHECK_LIB(gif, DGifOpenFileHandle,
[gif_ok=yes
! GIFLIB="-lgif"
AC_DEFINE(USE_GIF)],
[AC_CHECK_LIB(ungif, DGifOpenFileName,
[gif_ok=yes
! GIFLIB="-lungif"
AC_DEFINE(USE_GIF)],
[AC_CHECK_LIB(gif, DGifOpenFilename,
[gif_ok=yes
! GIFLIB="-lgif"
AC_DEFINE(USE_GIF)],
[], [-L$x_libraries -lX11])], [-L$x_libraries -lX11])])])
if test "x$gif_ok" != "xyes"; then
***************
*** 306,311 ****
--- 306,316 ----
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(poll strstr _setbufend)
AC_REPLACE_FUNCS(usleep strsep strdup mkstemp snprintf memcmp)
+
+ dnl add GIFLIB to LIBS
+ if test -n "$GIFLIB"; then
+ LIBS="$LIBS $GIFLIB"
+ fi
dnl keyword substitution.
mgp_keywords=`$mgp_cv_path_perl $srcdir/keywords.pl $srcdir/globals.c`