$NetBSD: patch-am,v 1.3 2007/12/28 01:00:11 gdt Exp $

regen from patched configure.in

--- configure.orig	2007-07-15 10:27:53.000000000 -0400
+++ configure
@@ -942,11 +942,11 @@ POSUB
 ALLOCA
 SCM_I_GSC_USE_PTHREAD_THREADS
 SCM_I_GSC_USE_NULL_THREADS
-SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
 acx_pthread_config
 PTHREAD_CC
 PTHREAD_LIBS
 PTHREAD_CFLAGS
+SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
 cross_compiling
 CC_FOR_BUILD
 CCLD_FOR_BUILD
@@ -34925,7 +34925,7 @@ done
 
 
 
-for ac_func in DINFINITY DQNAN chsize clog10 ctermid fesetround ftime ftruncate fchown getcwd geteuid gettimeofday gmtime_r ioctl lstat mkdir mknod nice pipe _pipe readdir_r readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt stat64 strftime strptime symlink sync sysconf tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp index bcopy memcpy rindex truncate unsetenv isblank _NSGetEnviron
+for ac_func in DINFINITY DQNAN chsize clog10 clog cexp ctermid fesetround ftime ftruncate fchown getcwd geteuid gettimeofday gmtime_r ioctl lstat mkdir mknod nice pipe _pipe readdir_r readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt stat64 strftime strptime symlink sync sysconf tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp index bcopy memcpy rindex truncate unsetenv isblank _NSGetEnviron
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 { echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -41504,7 +41504,6 @@ fi
 
 SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=0
 
-
 case "$with_threads" in
   "yes" | "pthread" | "pthreads" | "pthread-threads" | "")
 
@@ -42053,6 +42052,16 @@ done
     # glibc (2.3.6 at least) works both with or without braces, so the
     # test checks whether it works without.
     #
+
+    # If we're using GCC, ask for aggressive warnings.  Otherwise the test
+    # below for braces may pass but then fail during compilation due to
+    # stricter checks at compile time
+    case "$GCC" in
+        yes )
+            CFLAGS="${CFLAGS} -Wall -Werror"
+            ;;
+    esac
+
     { echo "$as_me:$LINENO: checking whether PTHREAD_ONCE_INIT needs braces" >&5
 echo $ECHO_N "checking whether PTHREAD_ONCE_INIT needs braces... $ECHO_C" >&6; }
 if test "${guile_cv_need_braces_on_pthread_once_init+set}" = set; then
@@ -42102,7 +42111,7 @@ rm -f core conftest.err conftest.$ac_obj
 fi
 { echo "$as_me:$LINENO: result: $guile_cv_need_braces_on_pthread_once_init" >&5
 echo "${ECHO_T}$guile_cv_need_braces_on_pthread_once_init" >&6; }
-    if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
+    if test "$guile_cv_need_braces_on_pthread_once_init" = "yes"; then
       SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=1
     fi
 
@@ -42195,6 +42204,8 @@ fi
 
   ;;
 esac
+SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=$SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
+
 
 case "$with_threads" in
   "pthreads")
@@ -43377,11 +43388,11 @@ POSUB!$POSUB$ac_delim
 ALLOCA!$ALLOCA$ac_delim
 SCM_I_GSC_USE_PTHREAD_THREADS!$SCM_I_GSC_USE_PTHREAD_THREADS$ac_delim
 SCM_I_GSC_USE_NULL_THREADS!$SCM_I_GSC_USE_NULL_THREADS$ac_delim
-SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT!$SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT$ac_delim
 acx_pthread_config!$acx_pthread_config$ac_delim
 PTHREAD_CC!$PTHREAD_CC$ac_delim
 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
+SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT!$SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT$ac_delim
 cross_compiling!$cross_compiling$ac_delim
 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 CCLD_FOR_BUILD!$CCLD_FOR_BUILD$ac_delim
