Changeset 530bcf0


Ignore:
Timestamp:
11/27/08 10:59:46 (12 years ago)
Author:
Perry Lorier <perry@…>
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:
f20d66c
Parents:
9b25f5f
Message:

Fix autoconf building of the gdc graph output for tracertstats

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r896ad39 r530bcf0  
    112112AC_CHECK_HEADER(pcap-bpf.h)
    113113AC_CHECK_HEADER(net/bpf.h)
    114 AC_CHECK_HEADER(gdc.h)
     114AC_CHECK_HEADER(gdc.h,AC_DEFINE(HAVE_LIBGDC,1,[has gdc.h]))
    115115
    116116# Check to see if we have libdl - *BSD has built-in libdl
     
    271271AM_CONDITIONAL([HAVE_ZLIB], [test "$ac_cv_lib_z_gzopen" = yes])
    272272AM_CONDITIONAL([HAVE_NETPACKET_PACKET_H], [test "$libtrace_netpacket_packet_h" = true])
    273 AM_CONDITIONAL([LIBGDC], [test "$ac_cv_header_gdc_h" = yes])
     273AM_CONDITIONAL([HAVE_LIBGDC], [test "$ac_cv_header_gdc_h" = yes])
    274274
    275275# Check for miscellaneous programs
     
    289289AC_SUBST([DAG_VERSION_NUM])
    290290AC_SUBST([HAVE_BPF_CAPTURE])
     291AC_SUBST([HAVE_LIBGDC])
    291292dnl and finally, output our Makefiles
    292293AC_OUTPUT
  • tools/tracertstats/Makefile.am

    r013d3692 r530bcf0  
    33EXTRA_DIST = $(man_MANS)
    44
    5 if LIBGDC
     5if HAVE_LIBGDC
    66LIBGDC_MODULES=output_png.c
    77OUTPUT_PNG_LD=-lgdc
  • tools/tracertstats/output.c

    re2d49d5 r530bcf0  
    1313        &output_csv,
    1414        &output_html,
    15 #ifdef HAVE_GDC_H
     15#ifdef HAVE_LIBGDC
    1616        &output_png,
    1717#endif
  • tools/tracertstats/tracertstats.c

    r5f653db r530bcf0  
    104104        double ts = 0;
    105105
     106        fprintf(stderr,"output format: '%s'\n",output_format);
    106107        output=output_init(uri,output_format?output_format:"txt");
     108        if (!output) {
     109                fprintf(stderr,"Failed to create output file\n");
     110                return;
     111        }
    107112        output_add_column(output,"ts");
    108113        output_add_column(output,"packets");
Note: See TracChangeset for help on using the changeset viewer.