Changeset 244
- Timestamp:
- 05/28/05 03:56:53 (3 years ago)
- Files:
-
- op/branches/autoconf/autogen.sh (modified) (1 diff)
- op/branches/autoconf/configure.in (modified) (4 diffs)
- op/branches/autoconf/util.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
op/branches/autoconf/autogen.sh
r240 r244 1 #!/bin/sh 1 #!/bin/sh -x 2 2 3 echo aclocal4 3 aclocal 5 echo automake 4 autoheader 6 5 automake --add-missing 7 echo autoconf8 6 autoconf 9 echo autoheader10 autoheader11 7 8 set +x 12 9 echo "Now you are ready to run ./configure" op/branches/autoconf/configure.in
r243 r244 16 16 # Feature checks 17 17 with_pam=${with_pam:-yes} 18 AC_ARG_WITH(pam, [ --with-pam use PAM for authentication])18 AC_ARG_WITH(pam, [ --with-pam use PAM for authentication]) 19 19 if test "${with_pam}" = yes; then 20 20 AC_DEFINE(USE_PAM, [], [Use PAM for authentication]) … … 23 23 else 24 24 with_shadow=${with_shadow:-yes} 25 AC_ARG_WITH(shadow, [ --with-shadow use shadow file for authentication])25 AC_ARG_WITH(shadow, [ --with-shadow use shadow file for authentication]) 26 26 if test "${with_shadow}" = yes; then 27 27 AC_DEFINE(USE_SHADOW, [], [Use shadow file for authentication]) … … 31 31 AC_MSG_ERROR([Can't use PAM or shadow file for authentication]) 32 32 fi 33 fi 34 35 enable_xauth=${enable_xauth:-no} 36 AC_ARG_ENABLE(xauth, [ --enable-xauth=<xauth> enable xauth support and specify xauth binary]) 37 if test "${enable_xauth}" != no; then 38 CPPFLAGS="$CPPFLAGS -DXAUTH=\\\"$enable_xauth\\\"" 33 39 fi 34 40 … … 55 61 AC_FUNC_STRFTIME 56 62 AC_FUNC_VPRINTF 57 AC_CHECK_FUNCS([gethostname getpass getspnam memset regcomp strchr strcspn vsnprintf])63 AC_CHECK_FUNCS([gethostname getpass getspnam memset regcomp strchr strcspn snprintf vsnprintf]) 58 64 59 65 AC_CONFIG_FILES([Makefile]) op/branches/autoconf/util.c
r232 r244 5 5 #include "defs.h" 6 6 7 #ifndef HAVE_VSNPRINTF 8 #warning You have not compiled op with vsnprintf 9 #warning support, presumably because your system 10 #warning does not have it. This leaves op open 11 #warning to potential buffer overflows. 12 #endif 13 14 #ifdef HAVE_SNPRINTF 15 #error "Now using 'vsnprintf' instead of snprintf. Adjust your build to define HAVE_VSNPRINTF." 7 #if !defined(HAVE_VSNPRINTF) || !defined(HAVE_SNPRINTF) 8 #warning Your system does not support vsnprintf or snprintf. 9 #warning This leaves op open to potential buffer overflows. 16 10 #endif 17 11
