Changeset 66cf27f


Ignore:
Timestamp:
08/16/09 16:24:59 (11 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
4b6495c3
Parents:
83be9fc
Message:

Changed AC_PROG_YACC test for AC_CHECK_PROGS, as AC_PROG_YACC assumes "yacc" is always installed

Added checks to see if $YACC and $LEXLIB are populated. If not, generate a warning saying the tools aren't installed but are required, and increment and error counter. Finally, check the errorcounter and generate a critical error if nonzero.

Test $LEXLIB because it will be empty if there's no lex installed - $LEX gets filled with a autoconf "missing" command instead, which simply results in deferred failure (eg, at the point it tries to use lex)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r83be9fc r66cf27f  
    3636AC_PROG_CXX
    3737AC_PROG_INSTALL
    38 AC_PROG_YACC
     38dnl AC_PROG_YACC
     39AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc)
    3940AM_PROG_LEX
    4041
     
    323324reportopt "Building man pages/documentation" $libtrace_doxygen
    324325
     326echo
     327ac_cv_errcount=0;
     328if test -z "$YACC"; then
     329        AC_MSG_WARN(bison or yacc not found. Please install bison before continuing)
     330        ac_cv_errcount=$((ac_cv_errcount + 1))
     331fi
     332
     333if test -z "$LEXLIB"; then
     334        AC_MSG_WARN(flex or lex not found. Please install flex before continuing)
     335        ac_cv_errcount=$((ac_cv_errcount + 1))
     336fi
     337
     338if test $ac_cv_errcount -gt 0; then
     339        AC_MSG_ERROR(Critical packages are missing and compilation will fail. Please install the packages listed above and rerun ./configure)
     340fi
     341
Note: See TracChangeset for help on using the changeset viewer.