179 lines
		
	
	
		
			4.8 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			179 lines
		
	
	
		
			4.8 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/configure
 | |
| +++ b/configure
 | |
| @@ -30129,174 +30129,11 @@ _ACEOF
 | |
|  
 | |
|  fi
 | |
|  
 | |
| -{ $as_echo "$as_me:$LINENO: checking whether snprintf is C99 conformant" >&5
 | |
| -$as_echo_n "checking whether snprintf is C99 conformant... " >&6; }
 | |
| -if test "$cross_compiling" = yes; then
 | |
| -  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 | |
| -See \`config.log' for more details." >&5
 | |
| -$as_echo "$as_me: error: cannot run test program while cross compiling
 | |
| -See \`config.log' for more details." >&2;}
 | |
| -   { (exit 1); exit 1; }; }
 | |
| -else
 | |
| -  cat >conftest.$ac_ext <<_ACEOF
 | |
| -/* confdefs.h.  */
 | |
| -_ACEOF
 | |
| -cat confdefs.h >>conftest.$ac_ext
 | |
| -cat >>conftest.$ac_ext <<_ACEOF
 | |
| -/* end confdefs.h.  */
 | |
| -
 | |
| -#include <stdio.h>
 | |
| -#ifdef STDC_HEADERS
 | |
| -# include <stdlib.h>
 | |
| -# include <stddef.h>
 | |
| -#else
 | |
| -# if HAVE_STDLIB_H
 | |
| -#  include <stdlib.h>
 | |
| -# endif
 | |
| -#endif
 | |
| -#ifdef HAVE_UNISTD_H
 | |
| -# include <unistd.h>
 | |
| -#endif
 | |
| -
 | |
| -int main(void)
 | |
| -{
 | |
| -    char buf[4];
 | |
| -
 | |
| -    (void) fprintf(fopen("conftestval", "w"), "%d\n",
 | |
| -        (int) snprintf(buf, sizeof buf, "12345678"));
 | |
| -    return 0;
 | |
| -}
 | |
| -
 | |
| -_ACEOF
 | |
| -rm -f conftest$ac_exeext
 | |
| -if { (ac_try="$ac_link"
 | |
| -case "(($ac_try" in
 | |
| -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 | |
| -  *) ac_try_echo=$ac_try;;
 | |
| -esac
 | |
| -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 | |
| -$as_echo "$ac_try_echo") >&5
 | |
| -  (eval "$ac_link") 2>&5
 | |
| -  ac_status=$?
 | |
| -  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 | |
| -  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 | |
| -  { (case "(($ac_try" in
 | |
| -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 | |
| -  *) ac_try_echo=$ac_try;;
 | |
| -esac
 | |
| -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 | |
| -$as_echo "$ac_try_echo") >&5
 | |
| -  (eval "$ac_try") 2>&5
 | |
| -  ac_status=$?
 | |
| -  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 | |
| -  (exit $ac_status); }; }; then
 | |
| -  CONF_SNPRINTF_TYPE=`cat conftestval`
 | |
| -
 | |
| -else
 | |
| -  $as_echo "$as_me: program exited with status $ac_status" >&5
 | |
| -$as_echo "$as_me: failed program was:" >&5
 | |
| -sed 's/^/| /' conftest.$ac_ext >&5
 | |
| -
 | |
| -fi
 | |
| -rm -rf conftest.dSYM
 | |
| -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 | |
| -fi
 | |
| -
 | |
| -
 | |
| -{ $as_echo "$as_me:$LINENO: result: done" >&5
 | |
| -$as_echo "done" >&6; }
 | |
| -if test "x$CONF_SNPRINTF_TYPE" = "x" ; then
 | |
| -  { $as_echo "$as_me:$LINENO: WARNING: your operating system doesn't implement snprintf" >&5
 | |
| -$as_echo "$as_me: WARNING: your operating system doesn't implement snprintf" >&2;}
 | |
| -else
 | |
| -
 | |
|  cat >>confdefs.h <<_ACEOF
 | |
| -#define CONF_SNPRINTF_TYPE $CONF_SNPRINTF_TYPE
 | |
| -_ACEOF
 | |
| -
 | |
| -fi
 | |
| -
 | |
| -{ $as_echo "$as_me:$LINENO: checking whether you already have a standard SHA1 implementation" >&5
 | |
| -$as_echo_n "checking whether you already have a standard SHA1 implementation... " >&6; }
 | |
| -if test "$cross_compiling" = yes; then
 | |
| -  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 | |
| -See \`config.log' for more details." >&5
 | |
| -$as_echo "$as_me: error: cannot run test program while cross compiling
 | |
| -See \`config.log' for more details." >&2;}
 | |
| -   { (exit 1); exit 1; }; }
 | |
| -else
 | |
| -  cat >conftest.$ac_ext <<_ACEOF
 | |
| -/* confdefs.h.  */
 | |
| -_ACEOF
 | |
| -cat confdefs.h >>conftest.$ac_ext
 | |
| -cat >>conftest.$ac_ext <<_ACEOF
 | |
| -/* end confdefs.h.  */
 | |
| -
 | |
| -#include <stdio.h>
 | |
| -#include <string.h>
 | |
| -#include <sys/types.h>
 | |
| -#include <sha1.h>
 | |
| -
 | |
| -int main(void)
 | |
| -{
 | |
| -    SHA1_CTX ctx;
 | |
| -    char b[41];
 | |
| -
 | |
| -    SHA1Init(&ctx);
 | |
| -    SHA1Update(&ctx, (const unsigned char *) "test", 4U);
 | |
| -    SHA1End(&ctx, b);
 | |
| -    b[40] = 0;
 | |
| -
 | |
| -    return strcasecmp(b, "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3");
 | |
| -}
 | |
| -
 | |
| -_ACEOF
 | |
| -rm -f conftest$ac_exeext
 | |
| -if { (ac_try="$ac_link"
 | |
| -case "(($ac_try" in
 | |
| -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 | |
| -  *) ac_try_echo=$ac_try;;
 | |
| -esac
 | |
| -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 | |
| -$as_echo "$ac_try_echo") >&5
 | |
| -  (eval "$ac_link") 2>&5
 | |
| -  ac_status=$?
 | |
| -  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 | |
| -  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 | |
| -  { (case "(($ac_try" in
 | |
| -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 | |
| -  *) ac_try_echo=$ac_try;;
 | |
| -esac
 | |
| -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 | |
| -$as_echo "$ac_try_echo") >&5
 | |
| -  (eval "$ac_try") 2>&5
 | |
| -  ac_status=$?
 | |
| -  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 | |
| -  (exit $ac_status); }; }; then
 | |
| -
 | |
| -{ $as_echo "$as_me:$LINENO: result: yes" >&5
 | |
| -$as_echo "yes" >&6; }
 | |
| -
 | |
| -cat >>confdefs.h <<\_ACEOF
 | |
| -#define USE_SYSTEM_CRYPT_SHA1 /**/
 | |
| +#define CONF_SNPRINTF_TYPE 1
 | |
|  _ACEOF
 | |
|  
 | |
|  
 | |
| -else
 | |
| -  $as_echo "$as_me: program exited with status $ac_status" >&5
 | |
| -$as_echo "$as_me: failed program was:" >&5
 | |
| -sed 's/^/| /' conftest.$ac_ext >&5
 | |
| -
 | |
| -( exit $ac_status )
 | |
| -{ $as_echo "$as_me:$LINENO: result: no" >&5
 | |
| -$as_echo "no" >&6; }
 | |
| -
 | |
| -fi
 | |
| -rm -rf conftest.dSYM
 | |
| -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 | |
| -fi
 | |
| -
 | |
| -
 | |
|  
 | |
|  { $as_echo "$as_me:$LINENO: checking whether syslog names are available" >&5
 | |
|  $as_echo_n "checking whether syslog names are available... " >&6; }
 |