Changeset 1343

Show
Ignore:
Timestamp:
02/04/08 16:40:30 (9 months ago)
Author:
spa1
Message:
  • Added back in a somewhat rudimentary system for trying to determine the exact DAG driver version - mostly required by wdcap rather than for any important libtrace functionality
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure.in

    r1317 r1343  
    200200# turn the test part of the next block into a function, so it can be  
    201201# called multiple times for $dag_root, /root/dag, /usr/local/lib 
    202 #dag_drv_v="DAG not present" 
     202dag_drv_v="DAG not present" 
    203203 
    204204# Now check for 2.4 DAG drivers which don't install as cleanly! 
     
    244244fi 
    245245 
     246# Try to determine the DAG driver version 
     247if test x"$libtrace_dag" = xtrue; then 
     248        dag_drv_v="Unknown" 
     249        files=`locate /usr/*dag*/VERSION` 
     250        file_count=0 
     251 
     252        for i in $files; do 
     253                if $file_count > 0; then 
     254                        dag_drv_v="Indeterminate" 
     255                        break 
     256                fi 
     257                dag_drv_v=`cat $i` 
     258                file_count=$file_count+1 
     259        done 
     260fi 
     261DAG_VERSION_NUM=$dag_drv_v 
     262 
     263 
    246264AC_CHECK_LIB(z, gzopen) 
    247265