"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "mpdist-3.7.1/configure.in" of archive mpdist-3.7.1.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(mp/header.c)
    3 AM_CONFIG_HEADER(config.h)
    4 AC_PREREQ(2.13)
    5 
    6 # For automake.
    7 MPDIST_MAJOR_VERSION=3
    8 MPDIST_MINOR_VERSION=7
    9 MPDIST_MICRO_VERSION=1
   10 MPDIST_VERSION=$MPDIST_MAJOR_VERSION.$MPDIST_MINOR_VERSION.$MPDIST_MICRO_VERSION
   11 VERSION=$MPDIST_VERSION
   12 PACKAGE=mpdist
   13 
   14 dnl Initialize automake stuff
   15 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
   16 
   17 dnl Checks for programs.
   18 AC_PROG_CC
   19 AC_PROG_MAKE_SET
   20 AM_PROG_LIBTOOL
   21 
   22 build_mptool="mptool"
   23 AC_ARG_ENABLE(mptool,
   24     [  --disable-mptool        Do NOT build mptool],
   25     [if test "$enableval" = no; then build_mptool=; fi])
   26  
   27 build_mimep="mimep"
   28 AC_ARG_ENABLE(mimep,
   29     [  --disable-mimep         Do NOT build mimep],
   30     [if test "$enableval" = no; then build_mimep=; fi])
   31 
   32 AC_ARG_ENABLE(mailp,
   33     [  --disable-mailp         disable mailp frontend for mp],
   34     test "$enableval" != no && MAILPNAMES=mailp,
   35     MAILPNAMES=mailp)
   36 
   37 AC_ARG_ENABLE(newsp,
   38     [  --disable-newsp         disable newsp frontend for mp],
   39     test "$enableval" != no && MAILPNAMES="$MAILPNAMES newsp",
   40     MAILPNAMES="$MAILPNAMES newsp")
   41 
   42 AC_ARG_ENABLE(digestp,
   43     [  --disable-digestp       disable digestp frontend for mp],
   44     test "$enableval" != no && MAILPNAMES="$MAILPNAMES digestp", 
   45     MAILPNAMES="$MAILPNAMES digestp")
   46 
   47 AC_ARG_ENABLE(filep,
   48     [  --disable-filep         disable filep frontend for mp],
   49     test "$enableval" != no && MAILPNAMES="$MAILPNAMES filep", 
   50     MAILPNAMES="$MAILPNAMES filep")
   51 
   52 AC_ARG_ENABLE(filofaxp,
   53     [  --disable-filofaxp      disable filofaxp frontend for mp],
   54     test "$enableval" != no && MAILPNAMES="$MAILPNAMES filofaxp", 
   55     MAILPNAMES="$MAILPNAMES filofaxp")
   56 
   57 AC_ARG_ENABLE(fileofaxpp,
   58     [  --disable-fileofaxpp    disable fileofaxpp frontend for mp],
   59     test "$enableval" != no && MAILPNAMES="$MAILPNAMES fileofaxpp", 
   60     MAILPNAMES="$MAILPNAMES fileofaxpp")
   61 
   62 AC_ARG_ENABLE(franklinp,
   63     [  --disable-franklinp     disable franklinp frontend for mp],
   64     test "$enableval" != no && MAILPNAMES="$MAILPNAMES franklinp", 
   65     MAILPNAMES="$MAILPNAMES franklinp")
   66 
   67 AC_ARG_ENABLE(proplanp,
   68     [  --disable-proplanp      disable proplanp frontend for mp],
   69     test "$enableval" != no && MAILPNAMES="$MAILPNAMES proplanp", 
   70     MAILPNAMES="$MAILPNAMES proplanp")
   71 
   72 AC_ARG_ENABLE(timemanp,
   73     [  --disable-timemanp      disable timemanp frontend for mp],
   74     test "$enableval" != no && MAILPNAMES="$MAILPNAMES timemanp", 
   75     MAILPNAMES="$MAILPNAMES timemanp")
   76 
   77 AC_ARG_ENABLE(timesysip,
   78     [  --disable-timesysip     disable timesysip frontend for mp],
   79     test "$enableval" != no && MAILPNAMES="$MAILPNAMES timesysip", 
   80     MAILPNAMES="$MAILPNAMES timesysip")
   81 
   82 AC_ARG_ENABLE(timesyspp,
   83     [  --disable-timesyspp     disable timesyspp frontend for mp],
   84     test "$enableval" != no && MAILPNAMES="$MAILPNAMES timesyspp", 
   85     MAILPNAMES="$MAILPNAMES timesyspp")
   86 
   87 AC_ARG_ENABLE(bsd-print, 
   88     [  --enable-bsd-print      support BSD style printing [default=no]], , 
   89     enable_bsd_print="no")
   90 
   91 AC_ARG_WITH(prologue,
   92     [  --with-prologue=PATH    where to install the prologue files],
   93     PROLOGDIR="$withval",
   94     PROLOGDIR="${datadir}/mpdist")
   95 
   96 AC_ARG_WITH(gecosfields,
   97     [  --with-gecosfields=N    number of gecos fields used],
   98     GECOSFIELDSVAL=$withval,
   99     GECOSFIELDSVAL=3)
  100 
  101 AC_ARG_WITH(gecoslength,
  102     [  --with-gecoslength=N    length of gecos field used],
  103     GECOSLENGTHVAL=$withval,
  104     GECOSLENGTHVAL=40)
  105 
  106 AC_ARG_ENABLE(mime-support,
  107     [  --disable-mime-support  disable MIME support in mp [default=yes]], ,
  108     enable_mime_support="yes")
  109 
  110 AC_ARG_ENABLE(old-options,
  111     [  --enable-old-options    support old style command line options [default=no]], ,
  112     enable_old_options="no")
  113 
  114 AC_ARG_ENABLE(dnd,
  115     [  --disable-dnd           mptool does not use drag and drop [default=yes]], ,
  116     enable_dnd="yes")
  117 
  118 AC_ARG_ENABLE(duplex,
  119     [  --disable-duplex        disable duplex printing [default=yes]], ,
  120     enable_duplex="yes")
  121 
  122 if test "x$enable_bsd_print" = "xyes"; then
  123   AC_DEFINE(BSD_PRINT, 1, [ Support BSD style printing. ])
  124 fi
  125 
  126 if test "x$enable_mime_support" = "xyes"; then
  127   AC_DEFINE(MIME_SUPPORT, 1, [ Enable MIME support in mp. ])
  128 fi
  129 
  130 if test "x$enable_dnd" = "xno"; then 
  131   AC_DEFINE(NO_DND, 1, [ Disable drag and drop in mptool. ])
  132 fi
  133 
  134 if test "x$enable_old_options" = "xyes"; then 
  135   AC_DEFINE(OLD_OPTIONS, 1, [ Support old style command line options. ])
  136 fi
  137 
  138 if test "x$enable_duplex" = "xno"; then 
  139   AC_DEFINE(NO_DUPLEX, 1, [ Disable duplex printing. ])
  140 fi
  141 
  142 AC_DEFINE_UNQUOTED(GECOSFIELDSVAL, "$GECOSFIELDSVAL",
  143                    [ Number of gecos fields used. ])
  144 AC_DEFINE_UNQUOTED(GECOSLENGTHVAL, "$GECOSLENGTHVAL",
  145                    [ Length of gecos field used. ])
  146 AC_DEFINE_UNQUOTED(MPDIST_VERSION, "$MPDIST_VERSION",
  147                    [ Mp version info. ])
  148 
  149 dnl Checks for header files.
  150 AC_HEADER_STDC
  151 AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h)
  152 
  153 # Find the X11 include and library directories
  154 AC_PATH_X
  155 AC_PATH_XTRA
  156 AC_SUBST(X_CFLAGS)
  157 dnl Following five are concatenated together into a linker specification.
  158 AC_SUBST(X_LIBS)
  159 AC_SUBST(X_TOOLKIT_LIBS)
  160 AC_SUBST(X_PRE_LIBS)
  161 AC_SUBST(X_BASIC_LIBS)
  162 AC_SUBST(X_EXTRA_LIBS)
  163 
  164 if test "x$no_x" = "xyes"; then
  165   AC_MSG_ERROR([
  166 *** X libraries or include files not found. Check 'config.log' for
  167 *** more details.])
  168 fi
  169 
  170 # Checks for libraries.
  171 # Check for the X11 library
  172 our_saved_LDFLAGS="$LDFLAGS"
  173 LDFLAGS="$X_LIBS $LDFLAGS"
  174 AC_CHECK_LIB(X11, XOpenDisplay, X_BASIC_LIBS="-lX11 $X_BASIC_LIBS",
  175   AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]),
  176   $X_EXTRA_LIBS)
  177 LDFLAGS="$our_saved_LDFLAGS"
  178 
  179 if test "x$build_mptool" = "xmptool"; then
  180 AM_PATH_GTK(1.2.0, ,
  181             AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?))
  182 fi
  183 
  184 AM_CONDITIONAL(BUILD_MPTOOL, test x"$build_mptool" = x"mptool")
  185 AM_CONDITIONAL(BUILD_MIMEP, test x"$build_mimep" = x"mimep")
  186 
  187 dnl Checks for typedefs, structures, and compiler characteristics.
  188 AC_C_CONST
  189 AC_STRUCT_TM
  190 
  191 dnl Checks for library functions.
  192 AC_FUNC_SETVBUF_REVERSED
  193 AC_CHECK_FUNCS(getcwd getwd putenv strdup strtol)
  194 
  195 AC_CHECK_FUNC(gettext, , 
  196     AC_CHECK_LIB(intl, gettext, ,
  197                  AC_DEFINE(NO_I18N, 1, [ Disable internationalization. ])))
  198 
  199 AC_SUBST(BUILD_MPTOOL)
  200 AC_SUBST(BUILD_MIMEP)
  201 AC_SUBST(MAILPNAMES)
  202 AC_SUBST(PROLOGDIR)
  203 
  204 dnl Generate the various Makefiles needed.
  205 AC_OUTPUT([
  206 Makefile
  207 common/Makefile
  208 mp/Makefile
  209 mptool/Makefile
  210 mimep/Makefile
  211 mimep/ertf2latex/Makefile
  212 mimep/mimep/Makefile
  213 mimep/ps/Makefile
  214 mimep/shells/Makefile
  215 mimep/text2latex/Makefile
  216 mimep/url/Makefile
  217 man/Makefile
  218 prologue/Makefile
  219 Data/Makefile
  220 ])
  221 
  222 dnl Report configuration
  223 
  224 AC_MSG_RESULT([
  225 ** Configuration summary for $PACKAGE $VERSION:
  226 ])
  227 
  228 test x"$build_mptool" = xmptool && \
  229   AC_MSG_RESULT([  Build mptool])
  230 
  231 test x"$build_mimep" = xmimep && \
  232   AC_MSG_RESULT([  Build mimep])
  233 
  234 test x"$build_mailp" = xmailp && \
  235   AC_MSG_RESULT([  Build mailp])
  236 
  237 test x"$MAILPNAMES" != x && \
  238   AC_MSG_RESULT([  mp frontends: $MAILPNAMES])
  239 
  240 test x"$enable_psd_print" = xyes && \
  241   AC_MSG_RESULT([  BSD style printing])
  242 
  243 test x"$PROLOGDIR" != x && \
  244   AC_MSG_RESULT([  Install the prologue files in $PROLOGDIR (default: ${datadir}/mpdist)])
  245 
  246 test x"$GECOSFIELDSVAL" != x && \
  247   AC_MSG_RESULT([  Number of GECOS fields used: $GECOSFIELDSVAL])
  248 
  249 test x"$GECOSLENGTHVAL" != x && \
  250   AC_MSG_RESULT([  Length of GECOS field used: $GECOSLENGTHVAL])
  251 
  252 test x"$enable_mime_support" = xyes && \
  253   AC_MSG_RESULT([  Enable MIME support in mp])
  254 
  255 test x"$enable_old_options" = xyes && \
  256   AC_MSG_RESULT([  Support old style command line options])
  257 
  258 test x"$enable_dnd" = xyes && \
  259   AC_MSG_RESULT([  Support drag and drop for mptool])
  260 
  261 test x"$enable_duplex" = xyes && \
  262   AC_MSG_RESULT([  Enable duplex printing
  263 ])
  264 
  265 dnl end config report
  266