PennMUSH Community

Changeset 1167

Show
Ignore:
Timestamp:
12/28/07 19:57:17 (6 months ago)
Author:
shawnw
Message:

Merge devel into trunk for p6 release

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/trunk/CHANGES.182

    r1160 r1167  
    1414========================================================================== 
    1515 
    16 Version 1.8.2 patchlevel 8                     ??? ??, 200? 
    17  
    18 Fixes: 
     16Version 1.8.2 patchlevel 8                     Jan 01, 2008 
     17 
     18Fixes: 
     19 
     20 
     21Minor changes: 
     22 * 'make versions' now provides some feedback. 
     23 
     24Fixes: 
     25 * width() and height() do not return 0 when set to invalid input. 
     26   By Talvo. 
    1927 * Array underflow bug detected by running under valgrind. 
    2028 
  • 1.8.3/trunk/CHANGES.183

    r1134 r1167  
    1515========================================================================== 
    1616 
    17 Version 1.8.3 patchlevel 6                      ??? ??, 200? 
    18  
    19 Fixes: 
    20  * Compliation fix with some compilers. Reported by Kimiko. 
     17Version 1.8.3 patchlevel 6                      Jan 01, 2008 
     18 
     19Major changes: 
     20 * If configure finds a copy of the pcre library installed, that will 
     21   be used instead of the (old) version bundled with Penn. use 
     22   --with-pcre=/path/to/it if it's not in the usual places, or 
     23   --with-pcre=no to force use of the bundled version. 
     24 
     25Minor changes: 
     26 * @sitelock when there are no rules will now say that instead of 
     27   having no output. By Talvo. 
     28 * Log files use locking to prevent the small chance of more than one 
     29   process writing to the same error log at the same time. 
     30 * info_slave's logging is more clear as to its source. 
     31 * Several places that used the select() system call now favor poll() 
     32   and/or socket timeouts instead. (The main event loop still uses 
     33   select() for now.) 
     34 * A wildcard help topic search (help foo*) that only matches one 
     35   entry will display that entry. Suggested by Cheetah. 
     36 * New switches for commands no longer have to be added to the 
     37   SWITCHES file; the internal list of switches is now built based on 
     38   what switches are given in the command table and cmdlocal.c 
     39   additions. Suggested by Talek.  
     40 
     41 
     42Flags and powers: 
     43 * The announce power now also grants the ability to change the motd. 
     44   Suggested by Yuriko. 
     45 * New hook power grants rights to use @hook. Suggested by Paige. 
     46 * Windows compile fixes by Intrevis. 
     47 
     48Commands: 
     49 * @motd gives better feedback when clearing a message. 
     50 * The @tport/@otport/@atport/etc. attributes that get evalulated on a 
     51   @teleport now get the dbref of the object doing the teleport in %0 
     52   and the teleported object's old location in %1. Suggested by Daniel 
     53   Cheng. 
     54 
     55Functions: 
     56 * root() uses an improved algorithm to give a more precise 
     57   result. 
     58 * log(N,2) uses the C log2() function if available. 
     59 * log(N,e) takes the natural logarithm of N, like ln(). 
     60 * lports() now takes an optional viewer argument, a la lwho(). By 
     61   Talvo. 
     62 
     63Fixes: 
     64 * Typo in info_slave preventing simultaneous hostname lookups fixed. 
     65 * Compiliation fix with some compilers. Reported by Kimiko. 
     66 * ident lookups of new connections was broken for several 
     67   patchlevels.  Works again. Sometimes. 
     68 * Cleaned up some warnings generated by gcc 4.2 
     69 * Fixed some minor bugs detected by running under valgrind. 
     70 * OpenBSD configuration fixes. 
    2171 
    2272Version 1.8.3 patchlevel 5                      October 6, 2007 
  • 1.8.3/trunk/MANIFEST

    r1117 r1167  
    112112hdrs/oldflags.h 
    113113hdrs/parse.h 
    114 hdrs/pcre.h 
     114hdrs/mypcre.h 
    115115hdrs/privtab.h 
    116116hdrs/ptab.h 
  • 1.8.3/trunk/Makefile.in

    r1117 r1167  
    44 
    55VERSION=1.8.3 
    6 PATCHLEVEL=5 
     6PATCHLEVEL=6 
    77 
    88# 
     
    2121SQL_LDFLAGS=@MYSQL_LDFLAGS@ @POSTGRESQL_LDFLAGS@ @SQLITE3_LDFLAGS@ 
    2222 
    23 CCFLAGS=@CFLAGS@ -I.. -I../hdrs 
    24 LDFLAGS=@LDFLAGS@ 
    25 CLIBS=@LIBS@ 
     23CCFLAGS=@CFLAGS@ -I.. -I../hdrs @PCRE_CFLAGS@ 
     24LDFLAGS=@LDFLAGS@  
     25CLIBS=@LIBS@ @PCRE_LIBS@ 
    2626INSTALL=@INSTALL@ 
    2727INSTALLDIR=$installdir 
  • 1.8.3/trunk/Patchlevel

    r1117 r1167  
    11Do not edit this file. It is maintained by the official PennMUSH patches. 
    2 This is PennMUSH 1.8.3p5 
     2This is PennMUSH 1.8.3p6 
  • 1.8.3/trunk/aclocal.m4

    r919 r1167  
    882882 fi 
    883883]) 
     884##### http://autoconf-archive.cryp.to/ax_path_lib_pcre.html 
     885# 
     886# SYNOPSIS 
     887# 
     888#   AX_PATH_LIB_PCRE [(A/NA)] 
     889# 
     890# DESCRIPTION 
     891# 
     892#   check for pcre lib and set PCRE_LIBS and PCRE_CFLAGS accordingly. 
     893# 
     894#   also provide --with-pcre option that may point to the $prefix of 
     895#   the pcre installation - the macro will check $pcre/include and 
     896#   $pcre/lib to contain the necessary files. 
     897# 
     898#   the usual two ACTION-IF-FOUND / ACTION-IF-NOT-FOUND are supported 
     899#   and they can take advantage of the LIBS/CFLAGS additions. 
     900# 
     901# LAST MODIFICATION 
     902# 
     903#   2006-10-13 
     904# 
     905# COPYLEFT 
     906# 
     907#   Copyright (c) 2006 Guido U. Draheim <guidod@gmx.de> 
     908# 
     909#   This program is free software; you can redistribute it and/or 
     910#   modify it under the terms of the GNU General Public License as 
     911#   published by the Free Software Foundation; either version 2 of the 
     912#   License, or (at your option) any later version. 
     913# 
     914#   This program is distributed in the hope that it will be useful, but 
     915#   WITHOUT ANY WARRANTY; without even the implied warranty of 
     916#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
     917#   General Public License for more details. 
     918# 
     919#   You should have received a copy of the GNU General Public License 
     920#   along with this program; if not, write to the Free Software 
     921#   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
     922#   02111-1307, USA. 
     923# 
     924#   As a special exception, the respective Autoconf Macro's copyright 
     925#   owner gives unlimited permission to copy, distribute and modify the 
     926#   configure scripts that are the output of Autoconf when processing 
     927#   the Macro. You need not follow the terms of the GNU General Public 
     928#   License when using or distributing such scripts, even though 
     929#   portions of the text of the Macro appear in them. The GNU General 
     930#   Public License (GPL) does govern all other use of the material that 
     931#   constitutes the Autoconf Macro. 
     932# 
     933#   This special exception to the GPL applies to versions of the 
     934#   Autoconf Macro released by the Autoconf Macro Archive. When you 
     935#   make and distribute a modified version of the Autoconf Macro, you 
     936#   may extend this special exception to the GPL to apply to your 
     937#   modified version as well. 
     938 
     939AC_DEFUN([AX_PATH_LIB_PCRE],[dnl 
     940AC_MSG_CHECKING([lib pcre]) 
     941AC_ARG_WITH(pcre, 
     942[  --with-pcre[[=prefix]]    path to system pcre],, 
     943     with_pcre="yes") 
     944if test ".$with_pcre" = ".no" ; then 
     945  AC_MSG_RESULT([disabled]) 
     946  m4_ifval($2,$2) 
     947else 
     948  AC_MSG_RESULT([(testing)]) 
     949  AC_CHECK_LIB(pcre, pcre_study) 
     950  if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then 
     951     PCRE_LIBS="-lpcre" 
     952     AC_MSG_CHECKING([lib pcre]) 
     953     AC_MSG_RESULT([$PCRE_LIBS]) 
     954     m4_ifval($1,$1) 
     955  else 
     956     OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib" 
     957     OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include" 
     958     OLDLIBS="$LIBS" 
     959     AC_CHECK_LIB(pcre, pcre_compile) 
     960     CPPFLAGS="$OLDCPPFLAGS" 
     961     LDFLAGS="$OLDLDFLAGS" 
     962     LIBS="$OLDLIBS" 
     963     if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then 
     964        AC_MSG_RESULT(.setting PCRE_LIBS -L$with_pcre/lib -lpcre) 
     965        PCRE_LIBS="-L$with_pcre/lib -lpcre" 
     966        test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include" 
     967        AC_MSG_CHECKING([lib pcre]) 
     968        AC_MSG_RESULT([$PCRE_LIBS]) 
     969        m4_ifval($1,$1) 
     970     else 
     971        AC_MSG_CHECKING([lib pcre]) 
     972        AC_MSG_RESULT([no, (WARNING)]) 
     973        m4_ifval($2,$2) 
     974     fi 
     975  fi 
     976fi 
     977AC_SUBST([PCRE_LIBS]) 
     978AC_SUBST([PCRE_CFLAGS]) 
     979]) 
  • 1.8.3/trunk/config.h.in

    r1032 r1167  
    6767#undef HAVE_SYS_UIO_H 
    6868 
     69#undef HAVE_POLL_H 
     70 
     71#undef HAVE_SYS_EPOLL_H 
     72 
     73#undef HAVE_SYS_SELECT_H 
     74 
    6975/* C99ish headers. The first two are really really nice to have. */ 
    7076 
     
    8894#define HAS_OPENSSL 
    8995#endif 
     96 
     97#undef HAVE_PCRE 
    9098 
    9199/* Types */ 
     
    166174#undef HAVE_CBRT 
    167175 
     176#undef HAVE_LOG2 
     177 
    168178#undef HAS_CRYPT 
    169179 
     
    275285#undef HAVE_GETPPID 
    276286 
     287#undef HAVE_PSELECT 
     288 
     289#undef HAVE_POLL 
     290 
     291#undef HAVE_PPOLL 
     292 
     293#undef HAVE_POLLTS 
     294 
    277295#undef HAVE_KQUEUE 
    278296 
     297#undef HAVE_EPOLL_CTL 
     298 
    279299#undef HAVE_VALLOC 
    280300 
    281301#undef HAVE_WRITEV 
     302 
     303#undef HAVE_FCNTL 
    282304 
    283305/* Variables and defines */ 
  • 1.8.3/trunk/configure

    r1117 r1167  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.60
     3# Generated by GNU Autoconf 2.61
    44# 
    55# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 
     
    1111## --------------------- ## 
    1212 
    13 # Be Bourne compatible 
     13# Be more Bourne compatible 
     14DUALCASE=1; export DUALCASE # for MKS sh 
    1415if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    1516  emulate sh 
     
    2021  setopt NO_GLOB_SUBST 
    2122else 
    22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 
    23 fi 
    24 BIN_SH=xpg4; export BIN_SH # for Tru64 
    25 DUALCASE=1; export DUALCASE # for MKS sh 
     23  case `(set -o) 2>/dev/null` in 
     24  *posix*) set -o posix ;; 
     25esac 
     26 
     27fi 
     28 
     29 
    2630 
    2731 
     
    216220  as_candidate_shells= 
    217221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
    218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 
     222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 
    219223do 
    220224  IFS=$as_save_IFS 
     
    234238     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 
    235239        { ("$as_shell") 2> /dev/null <<\_ASEOF 
    236 # Be Bourne compatible 
    237240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    238241  emulate sh 
     
    243246  setopt NO_GLOB_SUBST 
    244247else 
    245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 
    246 fi 
    247 BIN_SH=xpg4; export BIN_SH # for Tru64 
    248 DUALCASE=1; export DUALCASE # for MKS sh 
     248  case `(set -o) 2>/dev/null` in 
     249  *posix*) set -o posix ;; 
     250esac 
     251 
     252fi 
     253 
    249254 
    250255: 
     
    254259           as_have_required=yes 
    255260           if { "$as_shell" 2> /dev/null <<\_ASEOF 
    256 # Be Bourne compatible 
    257261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    258262  emulate sh 
     
    263267  setopt NO_GLOB_SUBST 
    264268else 
    265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 
    266 fi 
    267 BIN_SH=xpg4; export BIN_SH # for Tru64 
    268 DUALCASE=1; export DUALCASE # for MKS sh 
     269  case `(set -o) 2>/dev/null` in 
     270  *posix*) set -o posix ;; 
     271esac 
     272 
     273fi 
     274 
    269275 
    270276: 
     
    513519fi 
    514520 
    515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as 
    516 # systems may use methods other than mode bits to determine executability. 
    517 cat >conf$$.file <<_ASEOF 
    518 #! /bin/sh 
    519 exit 0 
    520 _ASEOF 
    521 chmod +x conf$$.file 
    522 if test -x conf$$.file >/dev/null 2>&1; then 
    523   as_executable_p="test -x" 
    524 else 
    525   as_executable_p=: 
    526 fi 
    527 rm -f conf$$.file 
     521if test -x / >/dev/null 2>&1; then 
     522  as_test_x='test -x' 
     523else 
     524  if ls -dL / >/dev/null 2>&1; then 
     525    as_ls_L_option=L 
     526  else 
     527    as_ls_L_option= 
     528  fi 
     529  as_test_x=' 
     530    eval sh -c '\'' 
     531      if test -d "$1"; then 
     532        test -d "$1/."; 
     533      else 
     534    case $1 in 
     535        -*)set "./$1";; 
     536    esac; 
     537    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 
     538    ???[sx]*):;;*)false;;esac;fi 
     539    '\'' sh 
     540  ' 
     541fi 
     542as_executable_p=$as_test_x 
    528543 
    529544# Sed expression to map a string onto a valid CPP name. 
     
    566581ac_includes_default="\ 
    567582#include <stdio.h> 
    568 #if HAVE_SYS_TYPES_H 
     583#ifdef HAVE_SYS_TYPES_H 
    569584# include <sys/types.h> 
    570585#endif 
    571 #if HAVE_SYS_STAT_H 
     586#ifdef HAVE_SYS_STAT_H 
    572587# include <sys/stat.h> 
    573588#endif 
    574 #if STDC_HEADERS 
     589#ifdef STDC_HEADERS 
    575590# include <stdlib.h> 
    576591# include <stddef.h> 
    577592#else 
    578 # if HAVE_STDLIB_H 
     593# ifdef HAVE_STDLIB_H 
    579594#  include <stdlib.h> 
    580595# endif 
    581596#endif 
    582 #if HAVE_STRING_H 
    583 # if !STDC_HEADERS && HAVE_MEMORY_H 
     597#ifdef HAVE_STRING_H 
     598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 
    584599#  include <memory.h> 
    585600# endif 
    586601# include <string.h> 
    587602#endif 
    588 #if HAVE_STRINGS_H 
     603#ifdef HAVE_STRINGS_H 
    589604# include <strings.h> 
    590605#endif 
    591 #if HAVE_INTTYPES_H 
     606#ifdef HAVE_INTTYPES_H 
    592607# include <inttypes.h> 
    593608#endif 
    594 #if HAVE_STDINT_H 
     609#ifdef HAVE_STDINT_H 
    595610# include <stdint.h> 
    596611#endif 
    597 #if HAVE_UNISTD_H 
     612#ifdef HAVE_UNISTD_H 
    598613# include <unistd.h> 
    599614#endif" 
     
    667682EGREP 
    668683HAVE_SSL 
     684PCRE_LIBS 
     685PCRE_CFLAGS 
    669686MYSQL_CONFIG 
    670687MYSQL_VERSION 
     
    687704CFLAGS 
    688705LDFLAGS 
     706LIBS 
    689707CPPFLAGS 
    690708SENDMAIL 
     
    795813    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 
    796814    # Reject names that are not valid shell variable names. 
    797     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     815    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    798816      { echo "$as_me: error: invalid feature name: $ac_feature" >&2 
    799817   { (exit 1); exit 1; }; } 
    800     ac_feature=`echo $ac_feature | sed 's/-/_/g'` 
     818    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 
    801819    eval enable_$ac_feature=no ;; 
    802820 
     
    814832    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 
    815833    # Reject names that are not valid shell variable names. 
    816     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     834    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    817835      { echo "$as_me: error: invalid feature name: $ac_feature" >&2 
    818836   { (exit 1); exit 1; }; } 
    819     ac_feature=`echo $ac_feature | sed 's/-/_/g'` 
     837    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 
    820838    eval enable_$ac_feature=\$ac_optarg ;; 
    821839 
     
    10111029    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 
    10121030    # Reject names that are not valid shell variable names. 
    1013     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     1031    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    10141032      { echo "$as_me: error: invalid package name: $ac_package" >&2 
    10151033   { (exit 1); exit 1; }; } 
    1016     ac_package=`echo $ac_package| sed 's/-/_/g'` 
     1034    ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 
    10171035    eval with_$ac_package=\$ac_optarg ;; 
    10181036 
     
    10201038    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 
    10211039    # Reject names that are not valid shell variable names. 
    1022     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     1040    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    10231041      { echo "$as_me: error: invalid package name: $ac_package" >&2 
    10241042   { (exit 1); exit 1; }; } 
    1025     ac_package=`echo $ac_package | sed 's/-/_/g'` 
     1043    ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 
    10261044    eval with_$ac_package=no ;; 
    10271045 
     
    12681286                          with the default search path) 
    12691287 
     1288  --with-pcre[=prefix]    path to system pcre 
    12701289  --with-mysql=[ARG]      use MySQL client library [default=yes], optionally 
    12711290                          specify path to mysql_config 
     
    12801299  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a 
    12811300              nonstandard directory <lib dir> 
     1301  LIBS        libraries to pass to the linker, e.g. -l<library> 
    12821302  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 
    12831303              you have headers in a nonstandard directory <include dir> 
     
    13491369  cat <<\_ACEOF 
    13501370configure 
    1351 generated by GNU Autoconf 2.60 
     1371generated by GNU Autoconf 2.61 
    13521372 
    13531373Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 
     
    13631383 
    13641384It was created by $as_me, which was 
    1365 generated by GNU Autoconf 2.60.  Invocation command line was 
     1385generated by GNU Autoconf 2.61.  Invocation command line was 
    13661386 
    13671387  $ $0 $@ 
     
    17441764  test -z "$as_dir" && as_dir=. 
    17451765  for ac_exec_ext in '' $ac_executable_extensions; do 
    1746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    17471767    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 
    17481768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    17881808  test -z "$as_dir" && as_dir=. 
    17891809  for ac_exec_ext in '' $ac_executable_extensions; do 
    1790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    17911811    ac_cv_prog_CC="${ac_tool_prefix}gcc" 
    17921812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    18281848  test -z "$as_dir" && as_dir=. 
    18291849  for ac_exec_ext in '' $ac_executable_extensions; do 
    1830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    18311851    ac_cv_prog_ac_ct_CC="gcc" 
    18321852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    18851905  test -z "$as_dir" && as_dir=. 
    18861906  for ac_exec_ext in '' $ac_executable_extensions; do 
    1887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    18881908    ac_cv_prog_CC="${ac_tool_prefix}cc" 
    18891909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    19261946  test -z "$as_dir" && as_dir=. 
    19271947  for ac_exec_ext in '' $ac_executable_extensions; do 
    1928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    19291949    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 
    19301950       ac_prog_rejected=yes 
     
    19842004  test -z "$as_dir" && as_dir=. 
    19852005  for ac_exec_ext in '' $ac_executable_extensions; do 
    1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     2006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    19872007    ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 
    19882008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    20282048  test -z "$as_dir" && as_dir=. 
    20292049  for ac_exec_ext in '' $ac_executable_extensions; do 
    2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     2050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    20312051    ac_cv_prog_ac_ct_CC="$ac_prog" 
    20322052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    21692189# so that the user can short-circuit this test for compilers unknown to 
    21702190# Autoconf. 
    2171 for ac_file in $ac_files 
     2191for ac_file in $ac_files '' 
    21722192do 
    21732193  test -f "$ac_file" || continue 
     
    21972217 
    21982218else 
     2219  ac_file='' 
     2220fi 
     2221 
     2222{ echo "$as_me:$LINENO: result: $ac_file" >&5 
     2223echo "${ECHO_T}$ac_file" >&6; } 
     2224if test -z "$ac_file"; then 
    21992225  echo "$as_me: failed program was:" >&5 
    22002226sed 's/^/| /' conftest.$ac_ext >&5 
     
    22082234 
    22092235ac_exeext=$ac_cv_exeext 
    2210 { echo "$as_me:$LINENO: result: $ac_file" >&5 
    2211 echo "${ECHO_T}$ac_file" >&6; } 
    22122236 
    22132237# Check that the compiler produces executables we can run.  If not, either 
     
    23872411  cat conftest.err >&5 
    23882412  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2389   (exit $ac_status); } && 
    2390      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2391   { (case "(($ac_try" in 
    2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2393   *) ac_try_echo=$ac_try;; 
    2394 esac 
    2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2396   (eval "$ac_try") 2>&5 
    2397   ac_status=$? 
    2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2399   (exit $ac_status); }; } && 
    2400      { ac_try='test -s conftest.$ac_objext' 
    2401   { (case "(($ac_try" in 
    2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2403   *) ac_try_echo=$ac_try;; 
    2404 esac 
    2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2406   (eval "$ac_try") 2>&5 
    2407   ac_status=$? 
    2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2409   (exit $ac_status); }; }; then 
     2413  (exit $ac_status); } && { 
     2414     test -z "$ac_c_werror_flag" || 
     2415     test ! -s conftest.err 
     2416       } && test -s conftest.$ac_objext; then 
    24102417  ac_compiler_gnu=yes 
    24112418else 
     
    24622469  cat conftest.err >&5 
    24632470  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2464   (exit $ac_status); } && 
    2465      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2466   { (case "(($ac_try" in 
    2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2468   *) ac_try_echo=$ac_try;; 
    2469 esac 
    2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2471   (eval "$ac_try") 2>&5 
    2472   ac_status=$? 
    2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2474   (exit $ac_status); }; } && 
    2475      { ac_try='test -s conftest.$ac_objext' 
    2476   { (case "(($ac_try" in 
    2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2478   *) ac_try_echo=$ac_try;; 
    2479 esac 
    2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2481   (eval "$ac_try") 2>&5 
    2482   ac_status=$? 
    2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2484   (exit $ac_status); }; }; then 
     2471  (exit $ac_status); } && { 
     2472     test -z "$ac_c_werror_flag" || 
     2473     test ! -s conftest.err 
     2474       } && test -s conftest.$ac_objext; then 
    24852475  ac_cv_prog_cc_g=yes 
    24862476else 
     
    25172507  cat conftest.err >&5 
    25182508  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2519   (exit $ac_status); } && 
    2520      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2521   { (case "(($ac_try" in 
    2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2523   *) ac_try_echo=$ac_try;; 
    2524 esac 
    2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2526   (eval "$ac_try") 2>&5 
    2527   ac_status=$? 
    2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2529   (exit $ac_status); }; } && 
    2530      { ac_try='test -s conftest.$ac_objext' 
    2531   { (case "(($ac_try" in 
    2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2533   *) ac_try_echo=$ac_try;; 
    2534 esac 
    2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2536   (eval "$ac_try") 2>&5 
    2537   ac_status=$? 
    2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2539   (exit $ac_status); }; }; then 
     2509  (exit $ac_status); } && { 
     2510     test -z "$ac_c_werror_flag" || 
     2511     test ! -s conftest.err 
     2512       } && test -s conftest.$ac_objext; then 
    25402513  : 
    25412514else 
     
    25732546  cat conftest.err >&5 
    25742547  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2575   (exit $ac_status); } && 
    2576      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2577   { (case "(($ac_try" in 
    2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2579   *) ac_try_echo=$ac_try;; 
    2580 esac 
    2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2582   (eval "$ac_try") 2>&5 
    2583   ac_status=$? 
    2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2585   (exit $ac_status); }; } && 
    2586      { ac_try='test -s conftest.$ac_objext' 
    2587   { (case "(($ac_try" in 
    2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2589   *) ac_try_echo=$ac_try;; 
    2590 esac 
    2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2592   (eval "$ac_try") 2>&5 
    2593   ac_status=$? 
    2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2595   (exit $ac_status); }; }; then 
     2548  (exit $ac_status); } && { 
     2549     test -z "$ac_c_werror_flag" || 
     2550     test ! -s conftest.err 
     2551       } && test -s conftest.$ac_objext; then 
    25962552  ac_cv_prog_cc_g=yes 
    25972553else 
     
    27092665  cat conftest.err >&5 
    27102666  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2711   (exit $ac_status); } && 
    2712      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2713   { (case "(($ac_try" in 
    2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2715   *) ac_try_echo=$ac_try;; 
    2716 esac 
    2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2718   (eval "$ac_try") 2>&5 
    2719   ac_status=$? 
    2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2721   (exit $ac_status); }; } && 
    2722      { ac_try='test -s conftest.$ac_objext' 
    2723   { (case "(($ac_try" in 
    2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2725   *) ac_try_echo=$ac_try;; 
    2726 esac 
    2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2728   (eval "$ac_try") 2>&5 
    2729   ac_status=$? 
    2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2731   (exit $ac_status); }; }; then 
     2667  (exit $ac_status); } && { 
     2668     test -z "$ac_c_werror_flag" || 
     2669     test ! -s conftest.err 
     2670       } && test -s conftest.$ac_objext; then 
    27322671  ac_cv_prog_cc_c89=$ac_arg 
    27332672else 
     
    27852724#include <stdio.h> 
    27862725 
     2726// Check varargs macros.  These examples are taken from C99 6.10.3.5. 
     2727#define debug(...) fprintf (stderr, __VA_ARGS__) 
     2728#define showlist(...) puts (#__VA_ARGS__) 
     2729#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 
     2730static void 
     2731test_varargs_macros (void) 
     2732{ 
     2733  int x = 1234; 
     2734  int y = 5678; 
     2735  debug ("Flag"); 
     2736  debug ("X = %d\n", x); 
     2737  showlist (The first, second, and third items.); 
     2738  report (x>y, "x is %d but y is %d", x, y); 
     2739} 
     2740 
     2741// Check long long types. 
     2742#define BIG64 18446744073709551615ull 
     2743#define BIG32 4294967295ul 
     2744#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 
     2745#if !BIG_OK 
     2746  your preprocessor is broken; 
     2747#endif 
     2748#if BIG_OK 
     2749#else 
     2750  your preprocessor is broken; 
     2751#endif 
     2752static long long int bignum = -9223372036854775807LL; 
     2753static unsigned long long int ubignum = BIG64; 
     2754 
    27872755struct incomplete_array 
    27882756{ 
     
    28002768 
    28012769static inline int 
    2802 test_restrict(ccp restrict text) 
     2770test_restrict (ccp restrict text) 
    28032771{ 
    28042772  // See if C++-style comments work. 
     
    28102778} 
    28112779 
    2812 // Check varargs and va_copy work
     2780// Check varargs and va_copy
    28132781static void 
    2814 test_varargs(const char *format, ...) 
     2782test_varargs (const char *format, ...) 
    28152783{ 
    28162784  va_list args; 
    2817   va_start(args, format); 
     2785  va_start (args, format); 
    28182786  va_list args_copy; 
    2819   va_copy(args_copy, args); 
     2787  va_copy (args_copy, args); 
    28202788 
    28212789  const char *str; 
     
    28282796    { 
    28292797    case 's': // string 
    2830       str = va_arg(args_copy, const char *); 
     2798      str = va_arg (args_copy, const char *); 
    28312799      break; 
    28322800    case 'd': // int 
    2833       number = va_arg(args_copy, int); 
     2801      number = va_arg (args_copy, int); 
    28342802      break; 
    28352803    case 'f': // float 
    2836       fnumber = (float) va_arg(args_copy, double); 
     2804      fnumber = va_arg (args_copy, double); 
    28372805      break; 
    28382806    default: 
     
    28402808    } 
    28412809    } 
    2842   va_end(args_copy); 
    2843   va_end(args); 
     2810  va_end (args_copy); 
     2811  va_end (args); 
    28442812} 
    28452813 
     
    28482816{ 
    28492817 
    2850   // Check bool and long long datatypes
     2818  // Check bool
    28512819  _Bool success = false; 
    2852   long long int bignum = -1234567890LL; 
    2853   unsigned long long int ubignum = 1234567890uLL; 
    28542820 
    28552821  // Check restrict. 
    2856   if (test_restrict("String literal") != 0) 
     2822  if (test_restrict ("String literal") == 0) 
    28572823    success = true; 
    28582824  char *restrict newvar = "Another string"; 
    28592825 
    28602826  // Check varargs. 
    2861   test_varargs("s, d' f .", "string", 65, 34.234); 
    2862  
    2863   // Check incomplete arrays work. 
     2827  test_varargs ("s, d' f .", "string", 65, 34.234); 
     2828  test_varargs_macros (); 
     2829 
     2830  // Check flexible array members. 
    28642831  struct incomplete_array *ia = 
    2865     malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10)); 
     2832    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 
    28662833  ia->datasize = 10; 
    28672834  for (int i = 0; i < ia->datasize; ++i) 
    2868     ia->data[i] = (double) i * 1.234; 
    2869  
    2870   // Check named initialisers. 
     2835    ia->data[i] = i * 1.234; 
     2836 
     2837  // Check named initializers. 
    28712838  struct named_init ni = { 
    28722839    .number = 34, 
     
    28782845 
    28792846  int dynamic_array[ni.number]; 
    2880   dynamic_array[43] = 543; 
     2847  dynamic_array[ni.number - 1] = 543; 
    28812848 
    28822849  // work around unused variable warnings 
    2883   return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'; 
     2850  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 
     2851      || dynamic_array[ni.number - 1] != 543); 
    28842852 
    28852853  ; 
     
    29032871  cat conftest.err >&5 
    29042872  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2905   (exit $ac_status); } && 
    2906      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2907   { (case "(($ac_try" in 
    2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2909   *) ac_try_echo=$ac_try;; 
    2910 esac 
    2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2912   (eval "$ac_try") 2>&5 
    2913   ac_status=$? 
    2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2915   (exit $ac_status); }; } && 
    2916      { ac_try='test -s conftest.$ac_objext' 
    2917   { (case "(($ac_try" in 
    2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2919   *) ac_try_echo=$ac_try;; 
    2920 esac 
    2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2922   (eval "$ac_try") 2>&5 
    2923   ac_status=$? 
    2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2925   (exit $ac_status); }; }; then 
     2873  (exit $ac_status); } && { 
     2874     test -z "$ac_c_werror_flag" || 
     2875     test ! -s conftest.err 
     2876       } && test -s conftest.$ac_objext; then 
    29262877  ac_cv_prog_cc_c99=$ac_arg