Changeset 0fd4ad6 for configure.in


Ignore:
Timestamp:
03/16/07 15:32:06 (14 years ago)
Author:
Shane Alcock <salcock@…>
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:
b778083
Parents:
a1b899f
Message:

Libtrace now makes the DAG driver version number available
Configure didn't seem to deal very well with machines that didn't have DAG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r5cd3ff3 r0fd4ad6  
    177177libtrace_dag=false
    178178libtrace_dag2_4=false
     179dag_drv_v="DAG not present"
    179180if test "$with_dag" != no; then
    180181        AC_MSG_CHECKING(whether we have DAG API)
     
    213214        fi
    214215        AC_MSG_RESULT($libtrace_dag)
    215        
    216         AC_MSG_CHECKING(if we are using DAG 2.4)
    217         if grep '2.4.' $dag_root/VERSION > /dev/null 2>&1; then
    218                 libtrace_dag2_4=true
    219                 AC_DEFINE(DAG_VERSION_2_4, 1, [define if using DAG 2.4])
    220         else
    221                 libtrace_dag2_4=false
    222         fi
    223         AC_MSG_RESULT($libtrace_dag2_4)
    224 fi
    225 
     216
     217        if test "$libtrace_dag" != false; then
     218                AC_MSG_CHECKING(if we are using DAG 2.4)
     219                if grep '2.4.' $dag_root/VERSION > /dev/null 2>&1; then
     220                        libtrace_dag2_4=true
     221                        AC_DEFINE(DAG_VERSION_2_4, 1, [define if using DAG 2.4])
     222                else
     223                        libtrace_dag2_4=false
     224                fi
     225                AC_MSG_RESULT($libtrace_dag2_4)
     226                dag_drv_v=`cat $dag_root/VERSION`
     227        fi
     228fi
     229DAG_VERSION_NUM=$dag_drv_v
    226230AC_CHECK_LIB(z, gzopen)
    227231
     
    248252AC_SUBST([LIBTRACE_MID])
    249253AC_SUBST([LIBTRACE_MINOR])
    250 
     254AC_SUBST([DAG_VERSION_NUM])
    251255dnl and finally, output our Makefiles
    252256AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.