]> Pileus Git - ~andy/fetchmail/commitdiff
Separate optimization from Kerberos flags.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 21 Sep 1997 04:12:24 +0000 (04:12 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 21 Sep 1997 04:12:24 +0000 (04:12 -0000)
svn path=/trunk/; revision=1382

Makefile.in
configure.in

index 1faa4d1dab0a4eff0cd2893c378235b31be004d0..55139d9540c73991babb6fd9a54dcd75598c46f5 100644 (file)
@@ -22,6 +22,9 @@ YACC = @YACC@
 # YACC = yacc
 YACCFLAGS = -dt
 
+CEFLAGS = @CEFLAGS@
+LDEFLAGS = @LDEFLAGS@
+
 # How to invoke ranlib.  This is only used by the `glob' subdirectory.
 RANLIB = @RANLIB@
 
@@ -101,14 +104,14 @@ all: fetchmail
 .PHONY: all
 
 fetchmail: $(objs)
-       $(CC) $(LDFLAGS) $(objs) $(LOADLIBS) -o fetchmail
+       $(CC) $(LDEFLAGS) $(LDFLAGS) $(objs) $(LOADLIBS) -o fetchmail
 
 # Tester for address parsing
 rfc822: rfc822.c
        gcc -DTESTMAIN -g rfc822.c -o rfc822
 
 .c.o:
-       $(CC) $(defines) -c -I$(srcdir) -I. $(CFLAGS) $<
+       $(CC) $(defines) -c -I$(srcdir) -I. $(CEFLAGS) $(CFLAGS) $<
 
 # For some losing Unix makes.
 SHELL = /bin/sh
index e890827447cb36e30ac9d96777fe12e00eb91297..9bdafd259016b48a7b104dbfdc978df22544def2 100644 (file)
@@ -29,6 +29,8 @@ AC_C_CONST                    dnl getopt needs this.
 
 AC_PROG_LEX
 AC_PROG_YACC
+AC_SUBST(CEFLAGS)
+AC_SUBST(LDEFLAGS)
 AC_SUBST(LIBOBJS)
 
 # Under sysV68, socket and friends are provided by the C library.
@@ -169,16 +171,16 @@ AC_ARG_WITH(kerberos,
 # configuring the BSD/OS Kerberos IV support, though. 
 if test -n "$with_kerberos"
 then
-    CFLAGS="$CFLAGS -DKERBEROS_V4 -I$with_kerberos"
-    LDFLAGS="$LDFLAGS -L$dir/lib"
+    CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I$with_kerberos"
+    LDEFLAGS="$LDEFLAGS -L$dir/lib"
     LIBS="$LIBS -lkrb -ldes"
 else
     for dir in /usr/kerberos /usr/kerberosIV /usr/athena
     do
       if test -f "$dir/include/krb.h"
       then
-        CFLAGS="$CFLAGS -DKERBEROS_V4 -I$dir/include"
-        LDFLAGS="$LDFLAGS -L$dir/lib"
+        CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I$dir/include"
+        LDEFLAGS="$LDEFLAGS -L$dir/lib"
         LIBS="$LIBS -lkrb -ldes"
         break
       fi