Remove generated files
[framework/connectivity/libgphoto2.git] / libgphoto2_port / m4 / gp-manual-fig2dev.m4
1 dnl ---------------------------------------------------------------------------
2 dnl fig2dev: This program is needed for processing images. If not found,
3 dnl          documentation can still be built, but without figures.
4 dnl ---------------------------------------------------------------------------
5 AC_DEFUN([GP_CHECK_FIG2DEV],
6 [
7
8 try_fig2dev=true
9 have_fig2dev=false
10 AC_ARG_WITH(fig2dev, [  --without-fig2dev         Don't use fig2dev],[
11         if test "x$withval" = "xno"; then
12                 try_fig2dev=false
13         fi])
14 if $try_fig2dev; then
15         AC_PATH_PROG(FIG2DEV,fig2dev)
16         if test -n "${FIG2DEV}"; then
17                 have_fig2dev=true
18         fi
19 fi
20 if $have_fig2dev; then
21         AC_SUBST(FIG2DEV)
22         ${FIG2DEV} -L ps > /dev/null <<EOF
23 #FIG 3.2
24 Landscape
25 Center
26 Inches
27 Letter  
28 100.00
29 Single
30 -2
31 1200 2
32 1 3 0 1 0 7 50 0 -1 0.000 1 0.0000 3000 3750 270 270 3000 3750 3150 3975
33 EOF
34         if test $? != 0; then
35                 have_fig2dev=false
36         fi
37 fi
38 AM_CONDITIONAL(ENABLE_FIGURES, $have_fig2dev)
39
40 ])