Ignore:
Timestamp:
Jan 3, 2010, 3:32:57 AM (13 years ago)
Author:
Sam Hocevar
Message:

Add Doxygen build rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r4165 r4218  
    144144fi
    145145
    146 
    147146# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    148147CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
    149148
    150 AC_OUTPUT([
     149# Build documentation?
     150DOXYGEN="no"
     151LATEX="no"
     152if test "${enable_doc}" != "no"; then
     153  AC_PATH_PROG(DOXYGEN, doxygen, no)
     154  if test "${DOXYGEN}" != "no"; then
     155    # Build LaTeX documentation?
     156    AC_PATH_PROG(LATEX, pdflatex, no)
     157    AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
     158    AC_PATH_PROG(DVIPS, dvips, no)
     159    if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
     160      LATEX="no"
     161    fi
     162    if test "${LATEX}" != "no"; then
     163      AC_MSG_CHECKING(for a4.sty and a4wide.sty)
     164      if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
     165        if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
     166          AC_MSG_RESULT(yes)
     167        else
     168          LATEX="no"
     169          AC_MSG_RESULT(no)
     170        fi
     171      else
     172        LATEX="no"
     173        AC_MSG_RESULT(no)
     174      fi
     175    fi
     176  fi
     177fi
     178AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
     179AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
     180
     181AC_CONFIG_FILES([
    151182  Makefile
    152183  doc/Makefile
     
    154185  data/Makefile
    155186])
     187AC_CONFIG_FILES([
     188  doc/doxygen.cfg
     189])
     190AC_OUTPUT
    156191
Note: See TracChangeset for help on using the changeset viewer.