Fix make environment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@427 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -17,14 +17,16 @@ prefix = @prefix@
|
|||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
||||||
|
|
||||||
ATHENA = /usr/athena
|
ATHENA = ../../..
|
||||||
|
|
||||||
|
INCTOP = $(ATHENA)/include
|
||||||
|
|
||||||
libcommon_OBJS = base64.o glob.o
|
libcommon_OBJS = base64.o glob.o
|
||||||
|
|
||||||
all: libcommon.a
|
all: libcommon.a
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I. -I.. -I$(ATHENA)/include $(DEFS) $<
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I.. -I$(INCTOP) $(DEFS) $<
|
||||||
|
|
||||||
libcommon.a: $(libcommon_OBJS)
|
libcommon.a: $(libcommon_OBJS)
|
||||||
ar cr libcommon.a $(libcommon_OBJS)
|
ar cr libcommon.a $(libcommon_OBJS)
|
||||||
|
66
appl/ftp/configure
vendored
66
appl/ftp/configure
vendored
@@ -725,6 +725,39 @@ else
|
|||||||
fi
|
fi
|
||||||
echo "$ac_t""$CPP" 1>&6
|
echo "$ac_t""$CPP" 1>&6
|
||||||
|
|
||||||
|
for ac_prog in 'bison -y' byacc
|
||||||
|
do
|
||||||
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
|
set dummy $ac_prog; ac_word=$2
|
||||||
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
|
else
|
||||||
|
if test -n "$YACC"; then
|
||||||
|
ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
||||||
|
else
|
||||||
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
|
for ac_dir in $PATH; do
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f $ac_dir/$ac_word; then
|
||||||
|
ac_cv_prog_YACC="$ac_prog"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$ac_save_ifs"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
YACC="$ac_cv_prog_YACC"
|
||||||
|
if test -n "$YACC"; then
|
||||||
|
echo "$ac_t""$YACC" 1>&6
|
||||||
|
else
|
||||||
|
echo "$ac_t""no" 1>&6
|
||||||
|
fi
|
||||||
|
|
||||||
|
test -n "$YACC" && break
|
||||||
|
done
|
||||||
|
test -n "$YACC" || YACC="yacc"
|
||||||
|
|
||||||
|
|
||||||
# If we cannot run a trivial program, we must be cross compiling.
|
# If we cannot run a trivial program, we must be cross compiling.
|
||||||
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
|
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
|
||||||
@@ -735,11 +768,11 @@ else
|
|||||||
ac_cv_c_cross=yes
|
ac_cv_c_cross=yes
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 739 "configure"
|
#line 772 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
main(){return(0);}
|
main(){return(0);}
|
||||||
EOF
|
EOF
|
||||||
{ (eval echo configure:743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
|
{ (eval echo configure:776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
|
||||||
if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
||||||
ac_cv_c_cross=no
|
ac_cv_c_cross=no
|
||||||
else
|
else
|
||||||
@@ -762,12 +795,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 766 "configure"
|
#line 799 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$ac_hdr>
|
#include <$ac_hdr>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
@@ -807,7 +840,7 @@ if eval "test \"\$ac_cv_func_socket\" != yes" ; then
|
|||||||
LIBS="$ac_lib $ac_save_LIBS"
|
LIBS="$ac_lib $ac_save_LIBS"
|
||||||
fi
|
fi
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 811 "configure"
|
#line 844 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@@ -815,7 +848,7 @@ int t() {
|
|||||||
socket()
|
socket()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
if { (eval echo configure:852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
|
eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
|
||||||
fi
|
fi
|
||||||
@@ -885,7 +918,7 @@ if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
|
|||||||
LIBS="$ac_lib $ac_save_LIBS"
|
LIBS="$ac_lib $ac_save_LIBS"
|
||||||
fi
|
fi
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 889 "configure"
|
#line 922 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@@ -893,7 +926,7 @@ int t() {
|
|||||||
gethostbyname()
|
gethostbyname()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
if { (eval echo configure:930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
|
eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
|
||||||
fi
|
fi
|
||||||
@@ -955,7 +988,7 @@ if eval "test \"`echo '$''{'ac_cv_struct_ut_host'+set}'`\" = set"; then
|
|||||||
else
|
else
|
||||||
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 959 "configure"
|
#line 992 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@@ -970,7 +1003,7 @@ p = ut.ut_host;
|
|||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:1007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
ac_cv_struct_ut_host=yes
|
ac_cv_struct_ut_host=yes
|
||||||
else
|
else
|
||||||
@@ -998,7 +1031,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1002 "configure"
|
#line 1035 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
@@ -1020,7 +1053,7 @@ $ac_func();
|
|||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
if { (eval echo configure:1057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
@@ -1055,7 +1088,7 @@ if test "$cross_compiling" = yes; then
|
|||||||
:
|
:
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1059 "configure"
|
#line 1092 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -1077,7 +1110,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
{ (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
|
{ (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
|
||||||
if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
||||||
ac_cv_func_getcwd_broken=yes
|
ac_cv_func_getcwd_broken=yes
|
||||||
else
|
else
|
||||||
@@ -1104,7 +1137,7 @@ if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then
|
|||||||
else
|
else
|
||||||
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1108 "configure"
|
#line 1141 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@@ -1112,7 +1145,7 @@ int t() {
|
|||||||
return strlen(__progname);
|
return strlen(__progname);
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
ac_cv_var___progname=yes
|
ac_cv_var___progname=yes
|
||||||
else
|
else
|
||||||
@@ -1251,6 +1284,7 @@ s%@mandir@%$mandir%g
|
|||||||
s%@CC@%$CC%g
|
s%@CC@%$CC%g
|
||||||
s%@RANLIB@%$RANLIB%g
|
s%@RANLIB@%$RANLIB%g
|
||||||
s%@CPP@%$CPP%g
|
s%@CPP@%$CPP%g
|
||||||
|
s%@YACC@%$YACC%g
|
||||||
|
|
||||||
CEOF
|
CEOF
|
||||||
EOF
|
EOF
|
||||||
|
@@ -14,6 +14,7 @@ AC_PREFIX_DEFAULT(/usr/athena)
|
|||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
|
AC_PROG_YACC
|
||||||
|
|
||||||
AC_C_CROSS
|
AC_C_CROSS
|
||||||
|
|
||||||
|
@@ -10,6 +10,7 @@ CC = @CC@
|
|||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
|
||||||
@@ -17,23 +18,24 @@ prefix = @prefix@
|
|||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
||||||
|
|
||||||
ATHENA = /usr/athena
|
ATHENA = ../../..
|
||||||
LIBTOP = ../../../lib
|
|
||||||
|
|
||||||
LIBS = -L$(LIBTOP)/krb -lkrb -L$(LIBTOP)/des -ldes $(LIBTOP)/roken/libroken.a
|
INCTOP = $(ATHENA)/include
|
||||||
|
|
||||||
|
LIBTOP = $(ATHENA)/lib
|
||||||
|
|
||||||
ftp_OBJS = cmds.o cmdtab.o ftp.o krb4.o main.o ruserpass.o domacro.o globals.o kauth.o
|
ftp_OBJS = cmds.o cmdtab.o ftp.o krb4.o main.o ruserpass.o domacro.o globals.o kauth.o
|
||||||
|
|
||||||
all: ftp
|
all: ftp
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I.. -I$(srcdir)/.. -I../common -I$(srcdir)/../common -I$(ATHENA)/include $(DEFS) $<
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/../common -I$(INCTOP) $(DEFS) $<
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
|
|
||||||
ftp: $(ftp_OBJS) ../common/libcommon.a
|
ftp: $(ftp_OBJS) ../common/libcommon.a
|
||||||
$(CC) -o ftp $(ftp_OBJS) ../common/libcommon.a -L$(ATHENA)/lib -lkrb -ldes $(LIBS)
|
$(CC) -o ftp $(ftp_OBJS) ../common/libcommon.a -L$(LIBTOP)/krb -lkrb -L$(LIBTOP)/des -ldes -L$(LIBTOP)/roken -lroken $(LIBS)
|
||||||
|
|
||||||
clean cleandir:
|
clean cleandir:
|
||||||
rm -f *~ *.o core ftp \#*
|
rm -f *~ *.o core ftp \#*
|
||||||
|
@@ -7,9 +7,11 @@ VPATH = @srcdir@
|
|||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
|
YACC = @YACC@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
|
||||||
@@ -17,22 +19,24 @@ prefix = @prefix@
|
|||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
||||||
|
|
||||||
LIBTOP = ../../../lib
|
ATHENA = ../../..
|
||||||
|
|
||||||
LIBS = ../common/libcommon.a -L$(LIBTOP)/kafs -lkafs -L$(LIBTOP)/krb -lkrb -L$(LIBTOP)/des -ldes $(LIBTOP)/roken/libroken.a
|
INCTOP = $(ATHENA)/include
|
||||||
|
|
||||||
|
LIBTOP = $(ATHENA)/lib
|
||||||
|
|
||||||
ftpd_OBJS = ftpd.o ftpcmd.o logwtmp.o popen.o auth.o krb4.o kauth.o klogin.o
|
ftpd_OBJS = ftpd.o ftpcmd.o logwtmp.o popen.o auth.o krb4.o kauth.o klogin.o
|
||||||
|
|
||||||
all: ftpd
|
all: ftpd
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I. -I$(srcdir) -I.. -I$(srcdir)/.. -I../common -I$(srcdir)/../common -I$(srcdir)/include $(DEFS) $<
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/../common -I$(INCTOP) $(DEFS) $<
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
|
|
||||||
ftpd: $(ftpd_OBJS)
|
ftpd: $(ftpd_OBJS)
|
||||||
$(CC) -o ftpd $(ftpd_OBJS) $(LIBS)
|
$(CC) -o ftpd $(ftpd_OBJS) ../common/libcommon.a -L$(LIBTOP)/kafs -lkafs -L$(LIBTOP)/krb -lkrb -L$(LIBTOP)/des -ldes -L$(LIBTOP)/roken -lroken $(LIBS)
|
||||||
|
|
||||||
ftpcmd.c: ftpcmd.y
|
ftpcmd.c: ftpcmd.y
|
||||||
$(YACC) $(YFLAGS) $<
|
$(YACC) $(YFLAGS) $<
|
||||||
|
Reference in New Issue
Block a user