]> granicus.if.org Git - graphviz/commitdiff
fixes for VERSION_DATE and --with-ghostscript
authorellson <devnull@localhost>
Sun, 19 Oct 2008 13:57:44 +0000 (13:57 +0000)
committerellson <devnull@localhost>
Sun, 19 Oct 2008 13:57:44 +0000 (13:57 +0000)
configure.ac
debian/rules
graphviz.spec.in

index ed1ce710092f2cf3ec63818cf93debf67602a723..0c84cb2c7716b7c80b83f2597ebe585c4a2f7eb8 100644 (file)
@@ -1838,20 +1838,20 @@ fi
 AM_CONDITIONAL(WITH_RSVG, [test "x$use_rsvg" = "xYes"])
 
 dnl -----------------------------------
-dnl INCLUDES and LIBS for GS
+dnl INCLUDES and LIBS for GHOSTSCRIPT
                                                                                 
-AC_ARG_WITH(gs,
-  [AC_HELP_STRING([--with-gs=yes], [gs library])],
-  [], [with_gs=yes])
+AC_ARG_WITH(ghostscript,
+  [AC_HELP_STRING([--with-ghostscript=yes], [ghostscript library])],
+  [], [with_ghostscript=yes])
 
-if test "x$with_gs" != "xyes"; then
-  use_gs="No (disabled)"
+if test "x$with_ghostscript" != "xyes"; then
+  use_ghostscript="No (disabled)"
 else
-  AC_CHECK_HEADER(ghostscript/iapi.h, GS_CFLAGS="",use_gs="No (missing headers)")
-  if test "x$use_gs" = "x"; then
-    AC_CHECK_LIB(gs, main, GS_LIBS="-lgs", use_gs="No (missing lib)")
-    if test "x$use_gs" = "x"; then
-      use_gs="Yes"
+  AC_CHECK_HEADER(ghostscript/iapi.h, GS_CFLAGS="",use_ghostscript="No (missing headers)")
+  if test "x$use_ghostscript" = "x"; then
+    AC_CHECK_LIB(gs, main, GS_LIBS="-lgs", use_ghostscript="No (missing lib)")
+    if test "x$use_ghostscript" = "x"; then
+      use_ghostscript="Yes"
       AC_DEFINE_UNQUOTED(HAVE_GS,1,
         [Define if you have the gs library])
       AC_SUBST(GS_CFLAGS)
@@ -1859,7 +1859,7 @@ else
     fi
   fi
 fi
-AM_CONDITIONAL(WITH_GS, [test "x$use_gs" = "xYes"])
+AM_CONDITIONAL(WITH_GS, [test "x$use_ghostscript" = "xYes"])
 
 dnl -----------------------------------
 dnl INCLUDES and LIBS for PANGO, CAIRO et.al.
@@ -3068,8 +3068,8 @@ echo "  devil:         $use_devil"
 echo "  gd:            $use_gd"
 echo "  gdiplus:       $use_gdiplus"
 echo "  gdk_pixbuf:    $use_gdk_pixbuf"
+echo "  ghostscript:   $use_ghostscript"
 echo "  glitz:         $use_glitz"
-echo "  gs:            $use_gs"
 echo "  gtk:           $use_gtk"
 echo "  lasi:          $use_lasi"
 echo "  ming:          $use_ming"
index 58e506592bd8fcaa4e962f1fa6c8540ca91bdfc5..6d6d30ccdb1cefeb6efa6851ddec66f5bb0b808b 100644 (file)
@@ -53,6 +53,7 @@ configure-stamp:
        --with-pangocairo \
        --with-x \
        --with-gdk-pixbuf \
+       --without-ghostscript \
        --without-gnomeui \
        --without-gtk \
        --without-gtkgl \
index ab4b0f7e295d24ce3df655929585feaccfdb36bb..67958df29159f7a11c86665e1b12ac6ec748a2e6 100644 (file)
@@ -30,7 +30,7 @@ Prefix: /usr
 # All features are off (undefined) by default
 # To enable, use: <percent>define FEATURE 1
 # Available features are:
-#    SHARP GUILE _IO JAVA LUA OCAML PERL PHP PYTHON RUBY R_LANG
+#    SHARP GHOSTSCRIPT GUILE _IO JAVA LUA OCAML PERL PHP PYTHON RUBY R_LANG
 #    TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG GLITZ SMYRNA DEVIL MING GDK_PIXBUF
 
 # SuSE uses a different mechanism to generate BuildRequires
@@ -204,7 +204,7 @@ BuildRequires: R-devel swig >= 1.3.33
 %endif
 %if %fedora >= 9
 BuildRequires: ghostscript-devel
-%define GS 1
+%define GHOSTSCRIPT 1
 #define MING 1
 #BuildRequires: ming ming-devel
 %endif
@@ -270,7 +270,7 @@ BuildRequires: R-devel swig >= 1.3.33
 %endif
 %if %att_fedora >= 9
 BuildRequires: ghostscript-devel
-%define GS 1
+%define GHOSTSCRIPT 1
 #define MING 1
 #BuildRequires: ming ming-devel
 %endif
@@ -688,15 +688,16 @@ CFLAGS="$RPM_OPT_FLAGS" \
        --enable-ruby%{!?RUBY:=no} \
        --enable-tcl%{!?TCL:=no} \
        --with%{!?DEVIL:out}-devil \
+       --with%{!?GDK_PIXBUF:out}-gdk-pixbuf \
+       --with%{!?GHOSTSCRIPT:out}-ghostscript \
+       --with%{!?GLITZ:out}-glitz \
        --with%{!?IPSEPCOLA:out}-ipsepcola \
        --with%{!?LASI:out}-lasi \
        --with%{!?MING:out}-ming \
-       --with%{!?SMYRNA:out}-smyrna \
-       --with%{!?SFDP:out}-sfdp \
-       --with%{!?GLITZ:out}-glitz \
        --with%{!?PANGOCAIRO:out}-pangocairo \
        --with%{!?RSVG:out}-rsvg \
-       --with%{!?GDK_PIXBUF:out}-gdk-pixbuf
+       --with%{!?SFDP:out}-sfdp \
+       --with%{!?SMYRNA:out}-smyrna
 make %{?_smp_mflags}
 
 %install