1 Index: apr-1.3.3/apr-config.in
2 ===================================================================
3 --- apr-1.3.3.orig/apr-config.in 2009-01-12 15:16:31.000000000 +0000
4 +++ apr-1.3.3/apr-config.in 2009-01-12 15:19:25.000000000 +0000
6 flags="$flags $LDFLAGS"
9 - if test "$location" = "installed"; then
10 flags="$flags -I$includedir $EXTRA_INCLUDES"
11 - elif test "$location" = "source"; then
12 - flags="$flags -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
14 - # this is for VPATH builds
15 - flags="$flags -I$APR_BUILD_DIR/include -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
24 - if test "$location" = "installed"; then
25 - ### avoid using -L if libdir is a "standard" location like /usr/lib
26 - flags="$flags -L$libdir -l${APR_LIBNAME}"
28 - ### this surely can't work since the library is in .libs?
29 - flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"
31 + flags="$flags -l${APR_LIBNAME}"
34 # If the LA_FILE exists where we think it should be, use it. If we're
35 # installed and the LA_FILE does not exist, assume to use -L/-l
36 # (the LA_FILE may not have been installed). If we're building ourselves,
37 # we'll assume that at some point the .la file be created.
38 - if test -f "$LA_FILE"; then
39 - flags="$flags $LA_FILE"
40 - elif test "$location" = "installed"; then
41 - ### avoid using -L if libdir is a "standard" location like /usr/lib
42 - # Since the user is specifying they are linking with libtool, we
43 - # *know* that -R will be recognized by libtool.
44 - flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
46 - flags="$flags $LA_FILE"
48 + flags="$flags -l${APR_LIBNAME}"