Changeset 1590 for zzuf


Ignore:
Timestamp:
Jan 6, 2007, 10:37:42 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Only link with -ldl when available.
  • Removed PKG_* stuff from configure.ac.
  • Add more compilation warnings.
Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r1583 r1590  
    1515AC_PROG_LIBTOOL
    1616
    17 dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
    18 dnl now otherwise it might be set in an obscure if statement. Same thing for
    19 dnl PKG_PROG_PKG_CONFIG which needs to be called first.
    20 AC_EGREP_CPP(yes, foo)
    21 PKG_PROG_PKG_CONFIG()
    22 
    23 dnl Don't let pkg-config fuck our cross-compilation environment
    24 m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
    25 if test "$build" != "$host" -a "${PKG_CONFIG_LIBDIR}" = ""; then
    26   export PKG_CONFIG_LIBDIR=/dev/null
    27 fi
    28 
    2917AC_CHECK_HEADERS(inttypes.h stdint.h getopt.h)
    3018AC_CHECK_FUNCS(open64 lseek64 mmap64 fopen64 getline getdelim __getdelim fgetln)
     
    4230AC_SUBST(GETOPT_LIBS)
    4331
     32AC_CHECK_LIB(dl, dlopen, [DL_LIBS="-ldl"])
     33AC_SUBST(DL_LIBS)
     34
    4435# Optimizations
    4536CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
    4637# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    47 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
     38CFLAGS="${CFLAGS} -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
    4839
    4940AC_OUTPUT([
  • zzuf/trunk/src/Makefile.am

    r1544 r1590  
    99                     random.c random.h
    1010libzzuf_la_LDFLAGS = -avoid-version -no-undefined
    11 libzzuf_la_LIBADD = -ldl
     11libzzuf_la_LIBADD = @GETOPT_LIBS@ @DL_LIBS@
    1212
Note: See TracChangeset for help on using the changeset viewer.