Ignore:
Timestamp:
Jan 13, 2017, 3:21:12 PM (8 years ago)
Author:
Silvan Scherrer
Message:

ncurses: import vendor version 5.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified ncurses/vendor/current/aclocal.m4

    r85 r1910  
    11dnl***************************************************************************
    2 dnl Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
     2dnl Copyright (c) 1998-2010,2011 Free Software Foundation, Inc.              *
    33dnl                                                                          *
    44dnl Permission is hereby granted, free of charge, to any person obtaining a  *
     
    2929dnl Author: Thomas E. Dickey 1995-on
    3030dnl
    31 dnl $Id: aclocal.m4,v 1.470 2008/10/25 22:15:32 tom Exp $
     31dnl $Id: aclocal.m4,v 1.553 2011/03/31 23:35:38 tom Exp $
    3232dnl Macros used in NCURSES auto-configuration script.
    3333dnl
     
    6363])dnl
    6464dnl ---------------------------------------------------------------------------
    65 dnl CF_ADA_INCLUDE_DIRS version: 5 updated: 2006/10/14 15:23:15
     65dnl CF_ADA_INCLUDE_DIRS version: 6 updated: 2010/02/26 19:52:07
    6666dnl -------------------
    6767dnl Construct the list of include-options for the C programs in the Ada95
     
    6969AC_DEFUN([CF_ADA_INCLUDE_DIRS],
    7070[
    71 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
     71ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
    7272if test "$srcdir" != "."; then
    7373        ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
     
    8787])dnl
    8888dnl ---------------------------------------------------------------------------
    89 dnl CF_ADD_CFLAGS version: 7 updated: 2004/04/25 17:48:30
     89dnl CF_ADD_ADAFLAGS version: 1 updated: 2010/06/19 15:22:18
     90dnl ---------------
     91dnl Add to $ADAFLAGS, which is substituted into makefile and scripts.
     92AC_DEFUN([CF_ADD_ADAFLAGS],[
     93        ADAFLAGS="$ADAFLAGS $1"
     94        AC_SUBST(ADAFLAGS)
     95])dnl
     96dnl ---------------------------------------------------------------------------
     97dnl CF_ADD_CFLAGS version: 10 updated: 2010/05/26 05:38:42
    9098dnl -------------
    9199dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS
     
    113121
    114122                        test "${cf_add_cflags}" != "${cf_tst_cflags}" \
    115                         && test -z "${cf_tst_cflags}" \
    116                         && cf_fix_cppflags=yes
     123                                && test -z "${cf_tst_cflags}" \
     124                                && cf_fix_cppflags=yes
    117125
    118126                        if test $cf_fix_cppflags = yes ; then
     
    129137                        ;;
    130138                *) #(vi
     139                        case $cf_add_cflags in #(vi
     140                        -D*)
     141                                cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
     142                                CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,$cf_tst_cppflags)
     143                                ;;
     144                        esac
    131145                        cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
    132146                        ;;
     
    144158
    145159        test "${cf_add_cflags}" != "${cf_tst_cflags}" \
    146         && test -z "${cf_tst_cflags}" \
    147         && cf_fix_cppflags=no
     160                && test -z "${cf_tst_cflags}" \
     161                && cf_fix_cppflags=no
    148162        ;;
    149163esac
     
    151165
    152166if test -n "$cf_new_cflags" ; then
    153         ifelse($2,,,[CF_VERBOSE(add to \$CFLAGS $cf_new_cflags)])
     167        ifelse([$2],,,[CF_VERBOSE(add to \$CFLAGS $cf_new_cflags)])
    154168        CFLAGS="$CFLAGS $cf_new_cflags"
    155169fi
    156170
    157171if test -n "$cf_new_cppflags" ; then
    158         ifelse($2,,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)])
    159         CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
     172        ifelse([$2],,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)])
     173        CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
    160174fi
    161175
    162176if test -n "$cf_new_extra_cppflags" ; then
    163         ifelse($2,,,[CF_VERBOSE(add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags)])
     177        ifelse([$2],,,[CF_VERBOSE(add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags)])
    164178        EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
    165179fi
     
    169183])dnl
    170184dnl ---------------------------------------------------------------------------
    171 dnl CF_ADD_INCDIR version: 9 updated: 2008/02/09 13:15:34
     185dnl CF_ADD_INCDIR version: 13 updated: 2010/05/26 16:44:57
    172186dnl -------------
    173187dnl Add an include-directory to $CPPFLAGS.  Don't add /usr/include, since it's
     
    196210
    197211                if test "$cf_have_incdir" = no ; then
    198           if test "$cf_add_incdir" = /usr/local/include ; then
     212                  if test "$cf_add_incdir" = /usr/local/include ; then
    199213                        if test "$GCC" = yes
    200214                        then
     
    212226                if test "$cf_have_incdir" = no ; then
    213227                  CF_VERBOSE(adding $cf_add_incdir to include-path)
    214                   ifelse($2,,CPPFLAGS,$2)="-I$cf_add_incdir $ifelse($2,,CPPFLAGS,[$]$2)"
    215 
    216           cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
    217           test "$cf_top_incdir" = "$cf_add_incdir" && break
    218           cf_add_incdir="$cf_top_incdir"
     228                  ifelse([$2],,CPPFLAGS,[$2])="$ifelse([$2],,CPPFLAGS,[$2]) -I$cf_add_incdir"
     229
     230                  cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     231                  test "$cf_top_incdir" = "$cf_add_incdir" && break
     232                  cf_add_incdir="$cf_top_incdir"
    219233                else
    220234                  break
     
    226240])dnl
    227241dnl ---------------------------------------------------------------------------
    228 dnl CF_ADD_LIBDIR version: 6 updated: 2008/02/09 13:15:34
     242dnl CF_ADD_LIB version: 2 updated: 2010/06/02 05:03:05
     243dnl ----------
     244dnl Add a library, used to enforce consistency.
     245dnl
     246dnl $1 = library to add, without the "-l"
     247dnl $2 = variable to update (default $LIBS)
     248AC_DEFUN([CF_ADD_LIB],[CF_ADD_LIBS(-l$1,ifelse($2,,LIBS,[$2]))])dnl
     249dnl ---------------------------------------------------------------------------
     250dnl CF_ADD_LIBDIR version: 9 updated: 2010/05/26 16:44:57
    229251dnl -------------
    230252dnl     Adds to the library-path
     
    255277      if test "$cf_have_libdir" = no ; then
    256278        CF_VERBOSE(adding $cf_add_libdir to library-path)
    257         ifelse($2,,LDFLAGS,$2)="-L$cf_add_libdir $ifelse($2,,LDFLAGS,[$]$2)"
     279        ifelse([$2],,LDFLAGS,[$2])="-L$cf_add_libdir $ifelse([$2],,LDFLAGS,[$2])"
    258280      fi
    259281    fi
     
    262284])dnl
    263285dnl ---------------------------------------------------------------------------
    264 dnl CF_ADD_SUBDIR_PATH version: 2 updated: 2007/07/29 10:12:59
     286dnl CF_ADD_LIBS version: 1 updated: 2010/06/02 05:03:05
     287dnl -----------
     288dnl Add one or more libraries, used to enforce consistency.
     289dnl
     290dnl $1 = libraries to add, with the "-l", etc.
     291dnl $2 = variable to update (default $LIBS)
     292AC_DEFUN([CF_ADD_LIBS],[ifelse($2,,LIBS,[$2])="$1 [$]ifelse($2,,LIBS,[$2])"])dnl
     293dnl ---------------------------------------------------------------------------
     294dnl CF_ADD_SUBDIR_PATH version: 3 updated: 2010/07/03 20:58:12
    265295dnl ------------------
    266296dnl Append to a search-list for a nonstandard header/lib-file
     
    274304test "$4" != "$5" && \
    275305test -d "$4" && \
    276 ifelse([$5],NONE,,[(test $5 = NONE || test -d $5) &&]) {
     306ifelse([$5],NONE,,[(test $5 = NONE || test "$4" != "$5") &&]) {
    277307        test -n "$verbose" && echo "    ... testing for $3-directories under $4"
    278308        test -d $4/$3 &&          $1="[$]$1 $4/$3"
     
    284314])dnl
    285315dnl ---------------------------------------------------------------------------
    286 dnl CF_ANSI_CC_CHECK version: 9 updated: 2001/12/30 17:53:34
     316dnl CF_ANSI_CC_CHECK version: 10 updated: 2010/10/23 15:52:32
    287317dnl ----------------
    288318dnl This is adapted from the macros 'fp_PROG_CC_STDC' and 'fp_C_PROTOTYPES'
     
    290320AC_DEFUN([CF_ANSI_CC_CHECK],
    291321[
    292 AC_CACHE_CHECK(for ${CC-cc} option to accept ANSI C, cf_cv_ansi_cc,[
     322AC_CACHE_CHECK(for ${CC:-cc} option to accept ANSI C, cf_cv_ansi_cc,[
    293323cf_cv_ansi_cc=no
    294324cf_save_CFLAGS="$CFLAGS"
     
    354384])dnl
    355385dnl ---------------------------------------------------------------------------
    356 dnl CF_AWK_BIG_PRINTF version: 2 updated: 2008/10/04 17:16:18
     386dnl CF_ARG_DISABLE version: 3 updated: 1999/03/30 17:24:31
     387dnl --------------
     388dnl Allow user to disable a normally-on option.
     389AC_DEFUN([CF_ARG_DISABLE],
     390[CF_ARG_OPTION($1,[$2],[$3],[$4],yes)])dnl
     391dnl ---------------------------------------------------------------------------
     392dnl CF_ARG_OPTION version: 4 updated: 2010/05/26 05:38:42
     393dnl -------------
     394dnl Restricted form of AC_ARG_ENABLE that ensures user doesn't give bogus
     395dnl values.
     396dnl
     397dnl Parameters:
     398dnl $1 = option name
     399dnl $2 = help-string
     400dnl $3 = action to perform if option is not default
     401dnl $4 = action if perform if option is default
     402dnl $5 = default option value (either 'yes' or 'no')
     403AC_DEFUN([CF_ARG_OPTION],
     404[AC_ARG_ENABLE([$1],[$2],[test "$enableval" != ifelse([$5],no,yes,no) && enableval=ifelse([$5],no,no,yes)
     405  if test "$enableval" != "$5" ; then
     406ifelse([$3],,[    :]dnl
     407,[    $3]) ifelse([$4],,,[
     408  else
     409    $4])
     410  fi],[enableval=$5 ifelse([$4],,,[
     411  $4
     412])dnl
     413  ])])dnl
     414dnl ---------------------------------------------------------------------------
     415dnl CF_AR_FLAGS version: 5 updated: 2010/05/20 20:24:29
     416dnl -----------
     417dnl Check for suitable "ar" (archiver) options for updating an archive.
     418AC_DEFUN([CF_AR_FLAGS],[
     419AC_REQUIRE([CF_PROG_AR])
     420
     421AC_CACHE_CHECK(for options to update archives, cf_cv_ar_flags,[
     422        cf_cv_ar_flags=unknown
     423        for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
     424        do
     425
     426                # check if $ARFLAGS already contains this choice
     427                if test "x$ARFLAGS" != "x" ; then
     428                        cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
     429                        if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
     430                                cf_cv_ar_flags=
     431                                break
     432                        fi
     433                fi
     434
     435                rm -f conftest.$ac_cv_objext
     436                rm -f conftest.a
     437
     438                cat >conftest.$ac_ext <<EOF
     439#line __oline__ "configure"
     440int     testdata[[3]] = { 123, 456, 789 };
     441EOF
     442                if AC_TRY_EVAL(ac_compile) ; then
     443                        echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&AC_FD_CC
     444                        $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&AC_FD_CC 1>/dev/null
     445                        if test -f conftest.a ; then
     446                                cf_cv_ar_flags=$cf_ar_flags
     447                                break
     448                        fi
     449                else
     450                        CF_VERBOSE(cannot compile test-program)
     451                        break
     452                fi
     453        done
     454        rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
     455])
     456
     457if test -n "$ARFLAGS" ; then
     458        if test -n "$cf_cv_ar_flags" ; then
     459                ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
     460        fi
     461else
     462        ARFLAGS=$cf_cv_ar_flags
     463fi
     464
     465AC_SUBST(ARFLAGS)
     466])
     467dnl ---------------------------------------------------------------------------
     468dnl CF_AWK_BIG_PRINTF version: 3 updated: 2008/12/27 12:30:03
    357469dnl -----------------
    358470dnl Check if awk can handle big strings using printf.  Some older versions of
     
    363475AC_DEFUN([CF_AWK_BIG_PRINTF],
    364476[
    365     case x$AWK in #(vi
    366     x)
    367         eval $2=no
    368         ;;
    369     *) #(vi
    370         if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < $1) { xx = xx "x"; }; printf("%s\n", xx); }' \
    371             | $AWK '{ printf "%d\n", length([$]0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ([$]0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
    372             eval $2=yes
    373         else
    374             eval $2=no
    375         fi
    376         ;;
    377     esac
     477        case x$AWK in #(vi
     478        x)
     479                eval $2=no
     480                ;;
     481        *) #(vi
     482                if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < $1) { xx = xx "x"; }; printf("%s\n", xx); }' \
     483                        | $AWK '{ printf "%d\n", length([$]0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ([$]0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
     484                        eval $2=yes
     485                else
     486                        eval $2=no
     487                fi
     488                ;;
     489        esac
    378490])dnl
    379491dnl ---------------------------------------------------------------------------
     
    696808])dnl
    697809dnl ---------------------------------------------------------------------------
    698 dnl CF_CHECK_ERRNO version: 10 updated: 2008/08/22 16:33:22
     810dnl CF_CHECK_ERRNO version: 11 updated: 2010/05/26 05:38:42
    699811dnl --------------
    700812dnl Check for data that is usually declared in <stdio.h> or <errno.h>, e.g.,
     
    714826#include <sys/types.h>
    715827#include <errno.h> ],
    716     ifelse($2,,int,$2) x = (ifelse($2,,int,$2)) $1,
     828    ifelse([$2],,int,[$2]) x = (ifelse([$2],,int,[$2])) $1,
    717829    [cf_cv_dcl_$1=yes],
    718830    [cf_cv_dcl_$1=no])
     
    725837
    726838# It's possible (for near-UNIX clones) that the data doesn't exist
    727 CF_CHECK_EXTERN_DATA($1,ifelse($2,,int,$2))
     839CF_CHECK_EXTERN_DATA($1,ifelse([$2],,int,[$2]))
    728840])dnl
    729841dnl ---------------------------------------------------------------------------
     
    753865])dnl
    754866dnl ---------------------------------------------------------------------------
    755 dnl CF_CHECK_GPM_WGETCH version: 1 updated: 2007/04/28 14:38:06
     867dnl CF_CHECK_GPM_WGETCH version: 2 updated: 2010/08/14 18:25:37
    756868dnl -------------------
    757869dnl Check if GPM is already linked with curses.  If so - and if the linkage
     
    787899                fi
    788900        fi
    789         rm -f conftest*
     901        rm -rf conftest*
    790902        LIBS="$cf_save_LIBS"
    791903fi
     
    8881000])dnl
    8891001dnl ---------------------------------------------------------------------------
    890 dnl CF_C_INLINE version: 2 updated: 2007/08/11 14:09:50
     1002dnl CF_C_INLINE version: 3 updated: 2010/05/01 15:14:41
    8911003dnl -----------
    8921004dnl Check if the C compiler supports "inline".
     
    9031015  elif test "$GCC" = yes
    9041016  then
    905     AC_CACHE_CHECK(if gcc supports options to tune inlining,cf_cv_gcc_inline,[
     1017    AC_CACHE_CHECK(if $CC supports options to tune inlining,cf_cv_gcc_inline,[
    9061018      cf_save_CFLAGS=$CFLAGS
    9071019      CFLAGS="$CFLAGS --param max-inline-insns-single=$2"
     
    9461058])dnl
    9471059dnl ---------------------------------------------------------------------------
    948 dnl CF_DISABLE_LEAKS version: 4 updated: 2006/12/16 15:10:42
     1060dnl CF_DISABLE_LEAKS version: 6 updated: 2010/07/23 04:14:32
    9491061dnl ----------------
    9501062dnl Combine no-leak checks with the libraries or tools that are used for the
     
    9591071AC_ARG_ENABLE(leaks,
    9601072        [  --disable-leaks         test: free permanent memory, analyze leaks],
    961         [with_no_leaks=yes],
     1073        [if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi],
    9621074        : ${with_no_leaks:=no})
    9631075AC_MSG_RESULT($with_no_leaks)
     
    9651077if test "$with_no_leaks" = yes ; then
    9661078        AC_DEFINE(NO_LEAKS)
    967 fi
    968 ])dnl
    969 dnl ---------------------------------------------------------------------------
    970 dnl CF_ENABLE_RPATH version: 1 updated: 2008/09/13 10:22:30
     1079        AC_DEFINE(YY_NO_LEAKS)
     1080fi
     1081])dnl
     1082dnl ---------------------------------------------------------------------------
     1083dnl CF_DISABLE_LIBTOOL_VERSION version: 1 updated: 2010/05/15 15:45:59
     1084dnl --------------------------
     1085dnl Check if we should use the libtool 1.5 feature "-version-number" instead of
     1086dnl the older "-version-info" feature.  The newer feature allows us to use
     1087dnl version numbering on shared libraries which make them compatible with
     1088dnl various systems.
     1089AC_DEFUN([CF_DISABLE_LIBTOOL_VERSION],
     1090[
     1091AC_MSG_CHECKING(if libtool -version-number should be used)
     1092CF_ARG_DISABLE(libtool-version,
     1093        [  --disable-libtool-version  enable to use libtool's incompatible naming scheme],
     1094        [cf_libtool_version=no],
     1095        [cf_libtool_version=yes])
     1096AC_MSG_RESULT($cf_libtool_version)
     1097
     1098if test "$cf_libtool_version" = yes ; then
     1099        LIBTOOL_VERSION="-version-number"
     1100else
     1101        LIBTOOL_VERSION="-version-info"
     1102fi
     1103
     1104AC_SUBST(LIBTOOL_VERSION)
     1105])dnl
     1106dnl ---------------------------------------------------------------------------
     1107dnl CF_DISABLE_RPATH_HACK version: 2 updated: 2011/02/13 13:31:33
     1108dnl ---------------------
     1109dnl The rpath-hack makes it simpler to build programs, particularly with the
     1110dnl *BSD ports which may have essential libraries in unusual places.  But it
     1111dnl can interfere with building an executable for the base system.  Use this
     1112dnl option in that case.
     1113AC_DEFUN([CF_DISABLE_RPATH_HACK],
     1114[
     1115AC_MSG_CHECKING(if rpath-hack should be disabled)
     1116CF_ARG_DISABLE(rpath-hack,
     1117        [  --disable-rpath-hack    don't add rpath options for additional libraries],
     1118        [cf_disable_rpath_hack=yes],
     1119        [cf_disable_rpath_hack=no])
     1120AC_MSG_RESULT($cf_disable_rpath_hack)
     1121if test "$cf_disable_rpath_hack" = no ; then
     1122        CF_RPATH_HACK
     1123fi
     1124])
     1125dnl ---------------------------------------------------------------------------
     1126dnl CF_ENABLE_RPATH version: 2 updated: 2010/03/27 18:39:42
    9711127dnl ---------------
    9721128dnl Check if the rpath option should be used, setting cache variable
    973 dnl cf_cv_ld_rpath if so.
     1129dnl cf_cv_enable_rpath if so.
    9741130AC_DEFUN([CF_ENABLE_RPATH],
    9751131[
     
    9771133AC_ARG_ENABLE(rpath,
    9781134[  --enable-rpath          use rpath option when generating shared libraries],
    979 [cf_cv_ld_rpath=$enableval],
    980 [cf_cv_ld_rpath=no])
    981 AC_MSG_RESULT($cf_cv_ld_rpath)
     1135[cf_cv_enable_rpath=$enableval],
     1136[cf_cv_enable_rpath=no])
     1137AC_MSG_RESULT($cf_cv_enable_rpath)
    9821138])dnl
    9831139dnl ---------------------------------------------------------------------------
     
    10201176])
    10211177dnl ---------------------------------------------------------------------------
    1022 dnl CF_FIND_LINKAGE version: 12 updated: 2007/07/29 20:13:53
     1178dnl CF_FIND_LINKAGE version: 19 updated: 2010/05/29 16:31:02
    10231179dnl ---------------
    10241180dnl Find a library (specifically the linkage used in the code fragment),
     
    10491205CF_MSG_LOG([Starting [FIND_LINKAGE]($3,$6)])
    10501206
    1051 AC_TRY_LINK([$1],[$2],
    1052     cf_cv_find_linkage_$3=yes,[
    1053     cf_cv_find_linkage_$3=no
    1054 
     1207cf_save_LIBS="$LIBS"
     1208
     1209AC_TRY_LINK([$1],[$2],[
     1210        cf_cv_find_linkage_$3=yes
     1211        cf_cv_header_path_$3=/usr/include
     1212        cf_cv_library_path_$3=/usr/lib
     1213],[
     1214
     1215LIBS="-l$3 $7 $cf_save_LIBS"
     1216
     1217AC_TRY_LINK([$1],[$2],[
     1218        cf_cv_find_linkage_$3=yes
     1219        cf_cv_header_path_$3=/usr/include
     1220        cf_cv_library_path_$3=/usr/lib
     1221        cf_cv_library_file_$3="-l$3"
     1222],[
     1223        cf_cv_find_linkage_$3=no
     1224        LIBS="$cf_save_LIBS"
     1225
     1226    CF_VERBOSE(find linkage for $3 library)
    10551227    CF_MSG_LOG([Searching for headers in [FIND_LINKAGE]($3,$6)])
    10561228
     
    11111283          fi
    11121284        done
    1113         LIBS="$cf_save_LIBS"
    11141285        CPPFLAGS="$cf_save_CPPFLAGS"
    11151286        LDFLAGS="$cf_save_LDFLAGS"
     
    11201291    fi
    11211292    ],$7)
     1293])
     1294
     1295LIBS="$cf_save_LIBS"
    11221296
    11231297if test "$cf_cv_find_linkage_$3" = yes ; then
    11241298ifelse([$4],,[
    1125   CF_ADD_INCDIR($cf_cv_header_path_$3)
    1126   CF_ADD_LIBDIR($cf_cv_library_path_$3)
    1127   LIBS="-l$3 $LIBS"
     1299        CF_ADD_INCDIR($cf_cv_header_path_$3)
     1300        CF_ADD_LIBDIR($cf_cv_library_path_$3)
     1301        CF_ADD_LIB($3)
    11281302],[$4])
    11291303else
     
    11321306])dnl
    11331307dnl ---------------------------------------------------------------------------
    1134 dnl CF_FUNC_DLSYM version: 1 updated: 2004/06/16 20:52:45
     1308dnl CF_FUNC_DLSYM version: 2 updated: 2010/05/29 16:31:02
    11351309dnl -------------
    11361310dnl Test for dlsym() and related functions, as well as libdl.
     
    11491323
    11501324if test "$cf_have_dlsym" = yes ; then
    1151         test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
     1325        test "$cf_have_libdl" = yes && CF_ADD_LIB(dl)
    11521326
    11531327        AC_MSG_CHECKING(whether able to link to dl*() functions)
     
    12321406])
    12331407dnl ---------------------------------------------------------------------------
    1234 dnl CF_FUNC_OPENPTY version: 2 updated: 2008/04/12 19:49:01
     1408dnl CF_FUNC_OPENPTY version: 3 updated: 2010/05/29 16:31:02
    12351409dnl ---------------
    12361410dnl Check for openpty() function, along with <pty.h> header.  It may need the
     
    12411415AC_CACHE_CHECK(for openpty header,cf_cv_func_openpty,[
    12421416    cf_save_LIBS="$LIBS"
    1243     test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
     1417    test $cf_cv_lib_util = yes && CF_ADD_LIB(util)
    12441418    for cf_header in pty.h libutil.h util.h
    12451419    do
     
    13631537])dnl
    13641538dnl ---------------------------------------------------------------------------
    1365 dnl CF_GCC_ATTRIBUTES version: 11 updated: 2007/07/29 09:55:12
     1539dnl CF_GCC_ATTRIBUTES version: 14 updated: 2010/10/23 15:52:32
    13661540dnl -----------------
    13671541dnl Test for availability of useful gcc __attribute__ directives to quiet
     
    13901564        AC_CHECKING([for $CC __attribute__ directives])
    13911565cat > conftest.$ac_ext <<EOF
    1392 #line __oline__ "${as_me-configure}"
     1566#line __oline__ "${as_me:-configure}"
    13931567#include "confdefs.h"
    13941568#include "conftest.h"
     
    14091583int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { return 0; }
    14101584EOF
     1585        cf_printf_attribute=no
     1586        cf_scanf_attribute=no
    14111587        for cf_attribute in scanf printf unused noreturn
    14121588        do
     
    14141590                cf_directive="__attribute__(($cf_attribute))"
    14151591                echo "checking for $CC $cf_directive" 1>&AC_FD_CC
    1416                 case $cf_attribute in
    1417                 scanf|printf)
    1418                 cat >conftest.h <<EOF
     1592
     1593                case $cf_attribute in #(vi
     1594                printf) #(vi
     1595                        cf_printf_attribute=yes
     1596                        cat >conftest.h <<EOF
    14191597#define GCC_$cf_ATTRIBUTE 1
    14201598EOF
    14211599                        ;;
    1422                 *)
    1423                 cat >conftest.h <<EOF
     1600                scanf) #(vi
     1601                        cf_scanf_attribute=yes
     1602                        cat >conftest.h <<EOF
     1603#define GCC_$cf_ATTRIBUTE 1
     1604EOF
     1605                        ;;
     1606                *) #(vi
     1607                        cat >conftest.h <<EOF
    14241608#define GCC_$cf_ATTRIBUTE $cf_directive
    14251609EOF
    14261610                        ;;
    14271611                esac
     1612
    14281613                if AC_TRY_EVAL(ac_compile); then
    14291614                        test -n "$verbose" && AC_MSG_RESULT(... $cf_attribute)
    14301615                        cat conftest.h >>confdefs.h
     1616                        case $cf_attribute in #(vi
     1617                        printf) #(vi
     1618                                if test "$cf_printf_attribute" = no ; then
     1619                                        cat >>confdefs.h <<EOF
     1620#define GCC_PRINTFLIKE(fmt,var) /* nothing */
     1621EOF
     1622                                else
     1623                                        cat >>confdefs.h <<EOF
     1624#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
     1625EOF
     1626                                fi
     1627                                ;;
     1628                        scanf) #(vi
     1629                                if test "$cf_scanf_attribute" = no ; then
     1630                                        cat >>confdefs.h <<EOF
     1631#define GCC_SCANFLIKE(fmt,var) /* nothing */
     1632EOF
     1633                                else
     1634                                        cat >>confdefs.h <<EOF
     1635#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
     1636EOF
     1637                                fi
     1638                                ;;
     1639                        esac
    14311640                fi
    14321641        done
     
    14381647])dnl
    14391648dnl ---------------------------------------------------------------------------
    1440 dnl CF_GCC_VERSION version: 4 updated: 2005/08/27 09:53:42
     1649dnl CF_GCC_VERSION version: 5 updated: 2010/04/24 11:02:31
    14411650dnl --------------
    14421651dnl Find version of gcc
     
    14461655if test "$GCC" = yes ; then
    14471656        AC_MSG_CHECKING(version of $CC)
    1448         GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
     1657        GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
    14491658        test -z "$GCC_VERSION" && GCC_VERSION=unknown
    14501659        AC_MSG_RESULT($GCC_VERSION)
     
    14521661])dnl
    14531662dnl ---------------------------------------------------------------------------
    1454 dnl CF_GCC_WARNINGS version: 23 updated: 2008/07/26 17:54:02
     1663dnl CF_GCC_WARNINGS version: 27 updated: 2010/10/23 15:52:32
    14551664dnl ---------------
    14561665dnl Check if the compiler supports useful warning options.  There's a few that
     
    14771686
    14781687cat > conftest.$ac_ext <<EOF
    1479 #line __oline__ "${as_me-configure}"
     1688#line __oline__ "${as_me:-configure}"
    14801689int main(int argc, char *argv[[]]) { return (argv[[argc-1]] == 0) ; }
    14811690EOF
     
    14851694# The "-wdXXX" options suppress warnings:
    14861695# remark #1419: external declaration in primary source file
    1487 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
    14881696# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
    14891697# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
     
    14931701# remark #869: parameter "tw" was never referenced
    14941702# remark #981: operands are evaluated in unspecified order
    1495 # warning #269: invalid format string conversion
     1703# warning #279: controlling expression is constant
    14961704
    14971705        AC_CHECKING([for $CC warning options])
     
    15001708        for cf_opt in \
    15011709                wd1419 \
    1502                 wd1682 \
    15031710                wd1683 \
    15041711                wd1684 \
    15051712                wd193 \
     1713                wd593 \
    15061714                wd279 \
    1507                 wd593 \
    15081715                wd810 \
    15091716                wd869 \
     
    15221729        AC_CHECKING([for $CC warning options])
    15231730        cf_save_CFLAGS="$CFLAGS"
    1524         EXTRA_CFLAGS="-W -Wall"
     1731        EXTRA_CFLAGS=
    15251732        cf_warn_CONST=""
    15261733        test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
    1527         for cf_opt in \
     1734        for cf_opt in W Wall \
    15281735                Wbad-function-cast \
    15291736                Wcast-align \
     
    15581765        CFLAGS="$cf_save_CFLAGS"
    15591766fi
    1560 rm -f conftest*
     1767rm -rf conftest*
    15611768
    15621769AC_SUBST(EXTRA_CFLAGS)
    15631770])dnl
    15641771dnl ---------------------------------------------------------------------------
    1565 dnl CF_GNAT_TRY_LINK version: 1 updated: 2004/08/21 19:02:08
     1772dnl CF_GNAT_GENERICS version: 2 updated: 2011/03/23 20:24:41
     1773dnl ----------------
     1774AC_DEFUN([CF_GNAT_GENERICS],
     1775[
     1776AC_REQUIRE([CF_GNAT_VERSION])
     1777
     1778AC_MSG_CHECKING(if GNAT supports generics)
     1779case $cf_gnat_version in #(vi
     17803.[[1-9]]*|[[4-9]].*) #(vi
     1781        cf_gnat_generics=yes
     1782        ;;
     1783*)
     1784        cf_gnat_generics=no
     1785        ;;
     1786esac
     1787AC_MSG_RESULT($cf_gnat_generics)
     1788
     1789if test "$cf_gnat_generics" = yes
     1790then
     1791        cf_compile_generics=generics
     1792        cf_generic_objects="\${GENOBJS}"
     1793else
     1794        cf_compile_generics=
     1795        cf_generic_objects=
     1796fi
     1797
     1798AC_SUBST(cf_compile_generics)
     1799AC_SUBST(cf_generic_objects)
     1800])dnl
     1801dnl ---------------------------------------------------------------------------
     1802dnl CF_GNAT_PRAGMA_UNREF version: 1 updated: 2010/06/19 15:22:18
     1803dnl --------------------
     1804dnl Check if the gnat pragma "Unreferenced" works.
     1805AC_DEFUN([CF_GNAT_PRAGMA_UNREF],[
     1806AC_CACHE_CHECK(if GNAT pragma Unreferenced works,cf_cv_pragma_unreferenced,[
     1807CF_GNAT_TRY_LINK([procedure conftest;],
     1808[with Text_IO;
     1809with GNAT.OS_Lib;
     1810procedure conftest is
     1811   test : Integer;
     1812   pragma Unreferenced (test);
     1813begin
     1814   test := 1;
     1815   Text_IO.Put ("Hello World");
     1816   Text_IO.New_Line;
     1817   GNAT.OS_Lib.OS_Exit (0);
     1818end conftest;],
     1819        [cf_cv_pragma_unreferenced=yes],
     1820        [cf_cv_pragma_unreferenced=no])])
     1821
     1822# if the pragma is supported, use it (needed in the Trace code).
     1823if test $cf_cv_pragma_unreferenced = yes ; then
     1824        PRAGMA_UNREF=TRUE
     1825else
     1826        PRAGMA_UNREF=FALSE
     1827fi
     1828AC_SUBST(PRAGMA_UNREF)
     1829])dnl
     1830dnl ---------------------------------------------------------------------------
     1831dnl CF_GNAT_PROJECTS version: 2 updated: 2011/03/23 20:24:41
     1832dnl ----------------
     1833dnl GNAT projects are configured with ".gpr" project files.
     1834dnl GNAT libraries are a further development, using the project feature.
     1835AC_DEFUN([CF_GNAT_PROJECTS],
     1836[
     1837AC_REQUIRE([CF_GNAT_VERSION])
     1838
     1839cf_gnat_libraries=no
     1840cf_gnat_projects=no
     1841
     1842AC_MSG_CHECKING(if GNAT supports project files)
     1843case $cf_gnat_version in #(vi
     18443.[[0-9]]*) #(vi
     1845        ;;
     1846*)
     1847        case $cf_cv_system_name in #(vi
     1848        cygwin*) #(vi
     1849                ;;
     1850        *)
     1851                mkdir conftest.src conftest.bin conftest.lib
     1852                cd conftest.src
     1853                rm -rf conftest* *~conftest*
     1854                cat >>library.gpr <<CF_EOF
     1855project Library is
     1856  Kind := External ("LIB_KIND");
     1857  for Library_Name use "ConfTest";
     1858  for Object_Dir use ".";
     1859  for Library_ALI_Dir use External("LIBRARY_DIR");
     1860  for Library_Version use External ("SONAME");
     1861  for Library_Kind use Kind;
     1862  for Library_Dir use External("BUILD_DIR");
     1863  Source_Dir := External ("SOURCE_DIR");
     1864  for Source_Dirs use (Source_Dir);
     1865  package Compiler is
     1866     for Default_Switches ("Ada") use
     1867       ("-g",
     1868        "-O2",
     1869        "-gnatafno",
     1870        "-gnatVa",   -- All validity checks
     1871        "-gnatwa");  -- Activate all optional errors
     1872  end Compiler;
     1873end Library;
     1874CF_EOF
     1875                cat >>confpackage.ads <<CF_EOF
     1876package ConfPackage is
     1877   procedure conftest;
     1878end ConfPackage;
     1879CF_EOF
     1880                cat >>confpackage.adb <<CF_EOF
     1881with Text_IO;
     1882package body ConfPackage is
     1883   procedure conftest is
     1884   begin
     1885      Text_IO.Put ("Hello World");
     1886      Text_IO.New_Line;
     1887   end conftest;
     1888end ConfPackage;
     1889CF_EOF
     1890                if ( $cf_ada_make $ADAFLAGS \
     1891                                -Plibrary.gpr \
     1892                                -XBUILD_DIR=`cd ../conftest.bin;pwd` \
     1893                                -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
     1894                                -XSOURCE_DIR=`pwd` \
     1895                                -XSONAME=libConfTest.so.1 \
     1896                                -XLIB_KIND=static 1>&AC_FD_CC 2>&1 ) ; then
     1897                        cf_gnat_projects=yes
     1898                fi
     1899                cd ..
     1900                if test -f conftest.lib/confpackage.ali
     1901                then
     1902                        cf_gnat_libraries=yes
     1903                fi
     1904                rm -rf conftest* *~conftest*
     1905                ;;
     1906        esac
     1907        ;;
     1908esac
     1909AC_MSG_RESULT($cf_gnat_projects)
     1910
     1911if test $cf_gnat_projects = yes
     1912then
     1913        AC_MSG_CHECKING(if GNAT supports libraries)
     1914        AC_MSG_RESULT($cf_gnat_libraries)
     1915fi
     1916
     1917if test "$cf_gnat_projects" = yes
     1918then
     1919        USE_OLD_MAKERULES="#"
     1920        USE_GNAT_PROJECTS=""
     1921else
     1922        USE_OLD_MAKERULES=""
     1923        USE_GNAT_PROJECTS="#"
     1924fi
     1925
     1926if test "$cf_gnat_libraries" = yes
     1927then
     1928        USE_GNAT_LIBRARIES=""
     1929else
     1930        USE_GNAT_LIBRARIES="#"
     1931fi
     1932
     1933AC_SUBST(USE_OLD_MAKERULES)
     1934AC_SUBST(USE_GNAT_PROJECTS)
     1935AC_SUBST(USE_GNAT_LIBRARIES)
     1936])dnl
     1937dnl ---------------------------------------------------------------------------
     1938dnl CF_GNAT_SIGINT version: 1 updated: 2011/03/27 20:07:59
     1939dnl --------------
     1940dnl Check if gnat supports SIGINT, and presumably tasking.  For the latter, it
     1941dnl is noted that gnat may compile a tasking unit even for configurations which
     1942dnl fail at runtime.
     1943AC_DEFUN([CF_GNAT_SIGINT],[
     1944AC_CACHE_CHECK(if GNAT supports SIGINT,cf_cv_gnat_sigint,[
     1945CF_GNAT_TRY_LINK([with Ada.Interrupts.Names;
     1946
     1947package ConfTest is
     1948
     1949   pragma Warnings (Off);  --  the next pragma exists since 3.11p
     1950   pragma Unreserve_All_Interrupts;
     1951   pragma Warnings (On);
     1952
     1953   protected Process is
     1954      procedure Stop;
     1955      function Continue return Boolean;
     1956      pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
     1957   private
     1958      Done : Boolean := False;
     1959   end Process;
     1960
     1961end ConfTest;],
     1962[package body ConfTest is
     1963   protected body Process is
     1964      procedure Stop is
     1965      begin
     1966         Done := True;
     1967      end Stop;
     1968      function Continue return Boolean is
     1969      begin
     1970         return not Done;
     1971      end Continue;
     1972   end Process;
     1973end ConfTest;],
     1974        [cf_cv_gnat_sigint=yes],
     1975        [cf_cv_gnat_sigint=no])])
     1976
     1977if test $cf_cv_gnat_sigint = yes ; then
     1978        USE_GNAT_SIGINT=""
     1979else
     1980        USE_GNAT_SIGINT="#"
     1981fi
     1982AC_SUBST(USE_GNAT_SIGINT)
     1983])dnl
     1984dnl ---------------------------------------------------------------------------
     1985dnl CF_GNAT_TRY_LINK version: 3 updated: 2011/03/19 14:47:45
    15661986dnl ----------------
    15671987dnl Verify that a test program compiles/links with GNAT.
     
    15751995AC_DEFUN([CF_GNAT_TRY_LINK],
    15761996[
    1577 rm -f conftest*
     1997rm -rf conftest* *~conftest*
    15781998cat >>conftest.ads <<CF_EOF
    15791999$1
     
    15872007   $4])
    15882008fi
    1589 rm -f conftest*
    1590 ])dnl
    1591 dnl ---------------------------------------------------------------------------
    1592 dnl CF_GNAT_TRY_RUN version: 3 updated: 2004/08/21 19:02:08
     2009rm -rf conftest* *~conftest*
     2010])dnl
     2011dnl ---------------------------------------------------------------------------
     2012dnl CF_GNAT_TRY_RUN version: 5 updated: 2011/03/19 14:47:45
    15932013dnl ---------------
    15942014dnl Verify that a test program compiles and runs with GNAT
     
    16022022AC_DEFUN([CF_GNAT_TRY_RUN],
    16032023[
    1604 rm -f conftest*
     2024rm -rf conftest* *~conftest*
    16052025cat >>conftest.ads <<CF_EOF
    16062026$1
     
    16182038   $4])
    16192039fi
    1620 rm -f conftest*
    1621 ])dnl
    1622 dnl ---------------------------------------------------------------------------
    1623 dnl CF_GNAT_VERSION version: 12 updated: 2006/10/14 15:23:15
     2040rm -rf conftest* *~conftest*
     2041])dnl
     2042dnl ---------------------------------------------------------------------------
     2043dnl CF_GNAT_VERSION version: 17 updated: 2011/03/23 20:24:41
    16242044dnl ---------------
    16252045dnl Verify version of GNAT.
     
    16272047[
    16282048AC_MSG_CHECKING(for gnat version)
    1629 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[[0-9]].[[0-9]][[0-9]]*' |\
    1630   sed -e '2,$d' -e 's/[[^0-9 \.]]//g' -e 's/^[[ ]]*//' -e 's/ .*//'`
     2049cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
     2050        grep '[[0-9]].[[0-9]][[0-9]]*' |\
     2051    sed -e '2,$d' -e 's/[[^0-9 \.]]//g' -e 's/^[[ ]]*//' -e 's/ .*//'`
    16312052AC_MSG_RESULT($cf_gnat_version)
    16322053
    1633 case $cf_gnat_version in
    1634   3.1[[1-9]]*|3.[[2-9]]*|[[4-9]].*)
    1635     cf_cv_prog_gnat_correct=yes
    1636     ;;
    1637   *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
    1638      cf_cv_prog_gnat_correct=no
    1639      ;;
    1640 esac
    1641 case $cf_gnat_version in
    1642   3.[[1-9]]*|[[4-9]].*)
    1643       cf_compile_generics=generics
    1644       cf_generic_objects="\${GENOBJS}"
    1645       ;;
    1646   *)  cf_compile_generics=
    1647       cf_generic_objects=
    1648       ;;
     2054case $cf_gnat_version in #(vi
     20553.1[[1-9]]*|3.[[2-9]]*|[[4-9]].*) #(vi
     2056        cf_cv_prog_gnat_correct=yes
     2057        ;;
     2058*)
     2059        AC_MSG_WARN(Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding.)
     2060        cf_cv_prog_gnat_correct=no
     2061        ;;
    16492062esac
    16502063])
     
    16802093])dnl
    16812094dnl ---------------------------------------------------------------------------
    1682 dnl CF_GPP_LIBRARY version: 8 updated: 2003/02/02 01:41:46
     2095dnl CF_GPP_LIBRARY version: 10 updated: 2010/05/29 16:31:02
    16832096dnl --------------
    16842097dnl If we're trying to use g++, test if libg++ is installed (a rather common
     
    16992112        AC_MSG_CHECKING([for lib$cf_gpp_libname])
    17002113        cf_save="$LIBS"
    1701         LIBS="$LIBS -l$cf_gpp_libname"
     2114        CF_ADD_LIB($cf_gpp_libname)
    17022115        AC_TRY_LINK([
    17032116#include <$cf_gpp_libname/builtin.h>
     
    17052118        [two_arg_error_handler_t foo2 = lib_error_handler],
    17062119        [cf_cxx_library=yes
    1707          CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
     2120         CF_ADD_LIB($cf_gpp_libname,CXXLIBS)
    17082121         if test "$cf_gpp_libname" = cpp ; then
    17092122            AC_DEFINE(HAVE_GPP_BUILTIN_H)
     
    17162129        [two_arg_error_handler_t foo2 = lib_error_handler],
    17172130        [cf_cxx_library=yes
    1718          CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
     2131         CF_ADD_LIB($cf_gpp_libname,CXXLIBS)
    17192132         AC_DEFINE(HAVE_BUILTIN_H)],
    17202133        [cf_cxx_library=no])])
     
    17242137])dnl
    17252138dnl ---------------------------------------------------------------------------
    1726 dnl CF_GXX_VERSION version: 5 updated: 2005/08/27 09:53:42
     2139dnl CF_GXX_VERSION version: 6 updated: 2010/10/23 15:44:18
    17272140dnl --------------
    17282141dnl Check for version of g++
     
    17322145if test "$GXX" = yes; then
    17332146        AC_MSG_CHECKING(version of g++)
    1734         GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
     2147        GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
    17352148        test -z "$GXX_VERSION" && GXX_VERSION=unknown
    17362149        AC_MSG_RESULT($GXX_VERSION)
     
    17382151])dnl
    17392152dnl ---------------------------------------------------------------------------
    1740 dnl CF_GXX_WARNINGS version: 5 updated: 2005/08/13 14:54:38
     2153dnl CF_GXX_WARNINGS version: 6 updated: 2010/08/14 18:25:37
    17412154dnl ---------------
    17422155dnl Check if the compiler supports useful warning options.
     
    18492262fi
    18502263
    1851 rm -f conftest*
     2264rm -rf conftest*
    18522265AC_LANG_RESTORE
    18532266AC_SUBST(EXTRA_CXXFLAGS)
    18542267])dnl
    18552268dnl ---------------------------------------------------------------------------
    1856 dnl CF_HASHED_DB version: 3 updated: 2007/11/24 17:43:37
     2269dnl CF_HASHED_DB version: 4 updated: 2010/05/29 16:31:02
    18572270dnl ------------
    18582271dnl Look for an instance of the Berkeley hashed database.
     
    18812294                AC_MSG_ERROR(Cannot determine library for db)
    18822295        elif test "$cf_cv_hashed_db_libs" != default ; then
    1883                 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
     2296                CF_ADD_LIB($cf_cv_hashed_db_libs)
    18842297        fi
    18852298fi
     
    18892302])dnl
    18902303dnl ---------------------------------------------------------------------------
    1891 dnl CF_HASHED_DB_LIBS version: 8 updated: 2008/08/04 06:18:06
     2304dnl CF_HASHED_DB_LIBS version: 9 updated: 2010/05/29 16:31:02
    18922305dnl -----------------
    18932306dnl Given that we have the header and version for hashed database, find the
     
    19012314        cf_save_libs="$LIBS"
    19022315        if test -n "$cf_db_libs"; then
    1903                 LIBS="-l$cf_db_libs $LIBS"
     2316                CF_ADD_LIB($cf_db_libs)
    19042317        fi
    19052318        CF_MSG_LOG(checking for library "$cf_db_libs")
     
    19992412])dnl
    20002413dnl ---------------------------------------------------------------------------
    2001 dnl CF_HEADER_PATH version: 8 updated: 2002/11/10 14:46:59
     2414dnl CF_HEADER_PATH version: 12 updated: 2010/05/05 05:22:40
    20022415dnl --------------
    2003 dnl Construct a search-list for a nonstandard header-file
     2416dnl Construct a search-list of directories for a nonstandard header-file
     2417dnl
     2418dnl Parameters
     2419dnl     $1 = the variable to return as result
     2420dnl     $2 = the package name
    20042421AC_DEFUN([CF_HEADER_PATH],
    2005 [CF_SUBDIR_PATH($1,$2,include)
     2422[
     2423$1=
     2424
     2425# collect the current set of include-directories from compiler flags
     2426cf_header_path_list=""
     2427if test -n "${CFLAGS}${CPPFLAGS}" ; then
     2428        for cf_header_path in $CPPFLAGS $CFLAGS
     2429        do
     2430                case $cf_header_path in #(vi
     2431                -I*)
     2432                        cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
     2433                        CF_ADD_SUBDIR_PATH($1,$2,include,$cf_header_path,NONE)
     2434                        cf_header_path_list="$cf_header_path_list [$]$1"
     2435                        ;;
     2436                esac
     2437        done
     2438fi
     2439
     2440# add the variations for the package we are looking for
     2441CF_SUBDIR_PATH($1,$2,include)
     2442
    20062443test "$includedir" != NONE && \
    20072444test "$includedir" != "/usr/include" && \
     
    20182455}
    20192456
     2457$1="[$]$1 $cf_header_path_list"
    20202458])dnl
    20212459dnl ---------------------------------------------------------------------------
     
    20272465])dnl
    20282466dnl ---------------------------------------------------------------------------
    2029 dnl CF_INCLUDE_DIRS version: 5 updated: 2006/10/14 15:23:15
     2467dnl CF_INCLUDE_DIRS version: 6 updated: 2009/01/06 19:37:40
    20302468dnl ---------------
    20312469dnl Construct the list of include-options according to whether we're building
     
    20352473AC_DEFUN([CF_INCLUDE_DIRS],
    20362474[
    2037 CPPFLAGS="-I. -I../include $CPPFLAGS"
     2475CPPFLAGS="$CPPFLAGS -I. -I../include"
    20382476if test "$srcdir" != "."; then
    2039         CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
     2477        CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
    20402478fi
    20412479if test "$GCC" != yes; then
     
    20532491])dnl
    20542492dnl ---------------------------------------------------------------------------
    2055 dnl CF_INTEL_COMPILER version: 3 updated: 2005/08/06 18:37:29
     2493dnl CF_INTEL_COMPILER version: 4 updated: 2010/05/26 05:38:42
    20562494dnl -----------------
    20572495dnl Check if the given compiler is really the Intel compiler for Linux.  It
     
    20672505dnl $3 = CFLAGS (default) or CXXFLAGS
    20682506AC_DEFUN([CF_INTEL_COMPILER],[
    2069 ifelse($2,,INTEL_COMPILER,[$2])=no
    2070 
    2071 if test "$ifelse($1,,[$1],GCC)" = yes ; then
     2507ifelse([$2],,INTEL_COMPILER,[$2])=no
     2508
     2509if test "$ifelse([$1],,[$1],GCC)" = yes ; then
    20722510        case $host_os in
    20732511        linux*|gnu*)
    2074                 AC_MSG_CHECKING(if this is really Intel ifelse($1,GXX,C++,C) compiler)
    2075                 cf_save_CFLAGS="$ifelse($3,,CFLAGS,[$3])"
    2076                 ifelse($3,,CFLAGS,[$3])="$ifelse($3,,CFLAGS,[$3]) -no-gcc"
     2512                AC_MSG_CHECKING(if this is really Intel ifelse([$1],GXX,C++,C) compiler)
     2513                cf_save_CFLAGS="$ifelse([$3],,CFLAGS,[$3])"
     2514                ifelse([$3],,CFLAGS,[$3])="$ifelse([$3],,CFLAGS,[$3]) -no-gcc"
    20772515                AC_TRY_COMPILE([],[
    20782516#ifdef __INTEL_COMPILER
     
    20802518make an error
    20812519#endif
    2082 ],[ifelse($2,,INTEL_COMPILER,[$2])=yes
     2520],[ifelse([$2],,INTEL_COMPILER,[$2])=yes
    20832521cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
    20842522],[])
    2085                 ifelse($3,,CFLAGS,[$3])="$cf_save_CFLAGS"
    2086                 AC_MSG_RESULT($ifelse($2,,INTEL_COMPILER,[$2]))
     2523                ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS"
     2524                AC_MSG_RESULT($ifelse([$2],,INTEL_COMPILER,[$2]))
    20872525                ;;
    20882526        esac
     
    21442582])
    21452583dnl ---------------------------------------------------------------------------
    2146 dnl CF_LDFLAGS_STATIC version: 4 updated: 2008/10/18 17:58:20
     2584dnl CF_LDFLAGS_STATIC version: 8 updated: 2010/10/23 14:39:56
    21472585dnl -----------------
    21482586dnl Check for compiler/linker flags used to temporarily force usage of static
     
    21542592if test "$GCC" = yes ; then
    21552593        case $cf_cv_system_name in #(
    2156         OS/2*|os2*|aix[[45]]*)  #( vi
     2594        OS/2*|os2*|aix[[4]]*|solaris2.1[[0-9]]|darwin*)         #( vi
    21572595                LDFLAGS_STATIC=
    21582596                LDFLAGS_SHARED=
     
    21652603else
    21662604        case $cf_cv_system_name in #(
    2167         aix[[45]]*)     #( from ld manpage
     2605        aix[[456]]*)    #( from ld manpage
    21682606                LDFLAGS_STATIC=-bstatic
    21692607                LDFLAGS_SHARED=-bdynamic
     
    21802618        osf[[45]]*)     #( from ld manpage osf4.0d, osf5.1
    21812619                # alternative "-oldstyle_liblookup" (not in cc manpage)
    2182                 LDFLAGS_STATIC=-noso 
     2620                LDFLAGS_STATIC=-noso
    21832621                LDFLAGS_SHARED=-so_archive
    21842622                ;;
     
    21902628fi
    21912629
     2630if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
     2631then
     2632        AC_MSG_CHECKING(if linker supports switching between static/dynamic)
     2633
     2634        rm -f libconftest.a
     2635        cat >conftest.$ac_ext <<EOF
     2636#line __oline__ "configure"
     2637#include <stdio.h>
     2638int cf_ldflags_static(FILE *fp) { return fflush(fp); }
     2639EOF
     2640        if AC_TRY_EVAL(ac_compile) ; then
     2641                ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&AC_FD_CC 1>/dev/null
     2642                ( eval $RANLIB libconftest.a ) 2>&AC_FD_CC >/dev/null
     2643        fi
     2644        rm -f conftest.*
     2645
     2646        cf_save_LIBS="$LIBS"
     2647
     2648        LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
     2649        AC_TRY_LINK([
     2650#line __oline__ "configure"
     2651#include <stdio.h>
     2652int cf_ldflags_static(FILE *fp);
     2653],[
     2654        return cf_ldflags_static(stdin);
     2655],[cf_ldflags_static=yes],[cf_ldflags_static=no])
     2656
     2657        rm -f libconftest.*
     2658        LIBS="$cf_save_LIBS"
     2659
     2660        AC_MSG_RESULT($cf_ldflags_static)
     2661
     2662        if test $cf_ldflags_static != yes
     2663        then
     2664                LDFLAGS_STATIC=
     2665                LDFLAGS_SHARED=
     2666        fi
     2667else
     2668        LDFLAGS_STATIC=
     2669        LDFLAGS_SHARED=
     2670fi
     2671
    21922672AC_SUBST(LDFLAGS_STATIC)
    21932673AC_SUBST(LDFLAGS_SHARED)
    21942674])
    21952675dnl ---------------------------------------------------------------------------
    2196 dnl CF_LIBRARY_PATH version: 7 updated: 2002/11/10 14:46:59
     2676dnl CF_LD_RPATH_OPT version: 3 updated: 2010/06/02 05:03:05
    21972677dnl ---------------
    2198 dnl Construct a search-list for a nonstandard library-file
     2678dnl For the given system and compiler, find the compiler flags to pass to the
     2679dnl loader to use the "rpath" feature.
     2680AC_DEFUN([CF_LD_RPATH_OPT],
     2681[
     2682AC_REQUIRE([CF_CHECK_CACHE])
     2683
     2684LD_RPATH_OPT=
     2685AC_MSG_CHECKING(for an rpath option)
     2686case $cf_cv_system_name in #(vi
     2687irix*) #(vi
     2688        if test "$GCC" = yes; then
     2689                LD_RPATH_OPT="-Wl,-rpath,"
     2690        else
     2691                LD_RPATH_OPT="-rpath "
     2692        fi
     2693        ;;
     2694linux*|gnu*|k*bsd*-gnu) #(vi
     2695        LD_RPATH_OPT="-Wl,-rpath,"
     2696        ;;
     2697openbsd[[2-9]].*) #(vi
     2698        LD_RPATH_OPT="-Wl,-rpath,"
     2699        ;;
     2700freebsd*) #(vi
     2701        LD_RPATH_OPT="-rpath "
     2702        ;;
     2703netbsd*) #(vi
     2704        LD_RPATH_OPT="-Wl,-rpath,"
     2705        ;;
     2706osf*|mls+*) #(vi
     2707        LD_RPATH_OPT="-rpath "
     2708        ;;
     2709solaris2*) #(vi
     2710        LD_RPATH_OPT="-R"
     2711        ;;
     2712*)
     2713        ;;
     2714esac
     2715AC_MSG_RESULT($LD_RPATH_OPT)
     2716
     2717case "x$LD_RPATH_OPT" in #(vi
     2718x-R*)
     2719        AC_MSG_CHECKING(if we need a space after rpath option)
     2720        cf_save_LIBS="$LIBS"
     2721        CF_ADD_LIBS(${LD_RPATH_OPT}$libdir)
     2722        AC_TRY_LINK(, , cf_rpath_space=no, cf_rpath_space=yes)
     2723        LIBS="$cf_save_LIBS"
     2724        AC_MSG_RESULT($cf_rpath_space)
     2725        test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
     2726        ;;
     2727esac
     2728])dnl
     2729dnl ---------------------------------------------------------------------------
     2730dnl CF_LIBRARY_PATH version: 9 updated: 2010/03/28 12:52:50
     2731dnl ---------------
     2732dnl Construct a search-list of directories for a nonstandard library-file
     2733dnl
     2734dnl Parameters
     2735dnl     $1 = the variable to return as result
     2736dnl     $2 = the package name
    21992737AC_DEFUN([CF_LIBRARY_PATH],
    2200 [CF_SUBDIR_PATH($1,$2,lib)])dnl
     2738[
     2739$1=
     2740cf_library_path_list=""
     2741if test -n "${LDFLAGS}${LIBS}" ; then
     2742        for cf_library_path in $LDFLAGS $LIBS
     2743        do
     2744                case $cf_library_path in #(vi
     2745                -L*)
     2746                        cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
     2747                        CF_ADD_SUBDIR_PATH($1,$2,lib,$cf_library_path,NONE)
     2748                        cf_library_path_list="$cf_library_path_list [$]$1"
     2749                        ;;
     2750                esac
     2751        done
     2752fi
     2753
     2754CF_SUBDIR_PATH($1,$2,lib)
     2755
     2756$1="$cf_library_path_list [$]$1"
     2757])dnl
    22012758dnl ---------------------------------------------------------------------------
    22022759dnl CF_LIB_PREFIX version: 8 updated: 2008/09/13 11:34:16
     
    22172774])dnl
    22182775dnl ---------------------------------------------------------------------------
    2219 dnl CF_LIB_RULES version: 53 updated: 2008/09/20 19:51:59
     2776dnl CF_LIB_RULES version: 61 updated: 2010/10/23 16:10:30
    22202777dnl ------------
    22212778dnl Append definitions and rules for the given models to the subdirectory
     
    22382795        TINFO_NAME=$TINFO_ARG_SUFFIX
    22392796        TINFO_SUFFIX=.dll
     2797fi
     2798
     2799if test -n "$TINFO_SUFFIX" ; then
     2800        case $TINFO_SUFFIX in
     2801        tw*)
     2802                TINFO_NAME="${TINFO_NAME}tw"
     2803                TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
     2804                ;;
     2805        t*)
     2806                TINFO_NAME="${TINFO_NAME}t"
     2807                TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
     2808                ;;
     2809        w*)
     2810                TINFO_NAME="${TINFO_NAME}w"
     2811                TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
     2812                ;;
     2813        esac
    22402814fi
    22412815
     
    22582832                                        darwin*)
    22592833                                        case .${LIB_SUFFIX} in
     2834                                        .tw*)
     2835                                                cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
     2836                                                cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
     2837                                                ;;
     2838                                        .t*)
     2839                                                cf_suffix=`echo $cf_suffix | sed 's/^t//'`
     2840                                                cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
     2841                                                ;;
    22602842                                        .w*)
    22612843                                                cf_suffix=`echo $cf_suffix | sed 's/^w//'`
     
    22742856                                        darwin*)
    22752857                                        case .${LIB_SUFFIX} in
     2858                                        .tw*)
     2859                                                cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
     2860                                                cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
     2861                                                ;;
     2862                                        .t*)
     2863                                                cf_suffix=`echo $cf_suffix | sed 's/^t//'`
     2864                                                cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
     2865                                                ;;
    22762866                                        .w*)
    22772867                                                cf_suffix=`echo $cf_suffix | sed 's/^w//'`
     
    23942984                        if test -n "$LIB_SUFFIX" ; then
    23952985                                case $LIB_SUFFIX in
     2986                                tw*)
     2987                                        cf_libname=`echo $cf_libname | sed 's/tw$//'`
     2988                                        cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
     2989                                        cf_dir_suffix=tw
     2990                                        ;;
     2991                                t*)
     2992                                        cf_libname=`echo $cf_libname | sed 's/t$//'`
     2993                                        cf_suffix=`echo $cf_suffix | sed 's/^t//'`
     2994                                        cf_dir_suffix=t
     2995                                        ;;
    23962996                                w*)
    23972997                                        cf_libname=`echo $cf_libname | sed 's/w$//'`
     
    24113011                                suffix=$cf_suffix \
    24123012                                subset=$cf_subset \
     3013                                SymLink="$LN_S" \
    24133014                                TermlibRoot=$TINFO_NAME \
    24143015                                TermlibSuffix=$TINFO_SUFFIX \
    24153016                                ShlibVer=$cf_cv_shlib_version \
    24163017                                ShlibVerInfix=$cf_cv_shlib_version_infix \
    2417                                 ReLink=${cf_cv_do_relink-no} \
     3018                                ReLink=${cf_cv_do_relink:-no} \
    24183019                                DoLinks=$cf_cv_do_symlinks \
    24193020                                rmSoLocs=$cf_cv_rm_so_locs \
     
    24223023                                depend="$cf_depend" \
    24233024                                host="$host" \
     3025                                libtool_version="$LIBTOOL_VERSION" \
    24243026                                $srcdir/$cf_dir/modules >>$cf_dir/Makefile
    24253027
     
    25053107install.data uninstall.data ::
    25063108$MAKE_TERMINFO  cd misc && \${MAKE} \${CF_MFLAGS} \[$]@
     3109CF_EOF
     3110
     3111if test "x$cf_with_manpages" = xyes; then
     3112cat >> Makefile <<CF_EOF
    25073113
    25083114install.man \\
    25093115uninstall.man ::
    25103116        cd man && \${MAKE} \${CF_MFLAGS} \[$]@
     3117CF_EOF
     3118fi
     3119
     3120cat >> Makefile <<CF_EOF
    25113121
    25123122distclean ::
    25133123        rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
    25143124        rm -f headers.sh headers.sed mk_shared_lib.sh
     3125        rm -f edit_man.* man_alias.*
    25153126        rm -rf \${DIRS_TO_MAKE}
    25163127CF_EOF
    25173128
    25183129# Special case: tack's manpage lives in its own directory.
     3130if test "x$cf_with_manpages" = xyes; then
    25193131if test -d tack ; then
    25203132if test -f $srcdir/$tack.h; then
     
    25253137        cd tack && \${MAKE} \${CF_MFLAGS} \[$]@
    25263138CF_EOF
     3139fi
    25273140fi
    25283141fi
     
    25523165REF=\[$]2
    25533166SRC=\[$]3
    2554 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
    2555 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
     3167TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
     3168TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
    25563169echo installing \$SRC in \$DST
    25573170CF_EOF
     
    26403253        fi
    26413254done
    2642 
    2643 ])dnl
    2644 dnl ---------------------------------------------------------------------------
    2645 dnl CF_LIB_SONAME version: 3 updated: 2006/12/16 15:55:46
     3255AC_SUBST(LIBS_TO_MAKE)
     3256])dnl
     3257dnl ---------------------------------------------------------------------------
     3258dnl CF_LIB_SONAME version: 5 updated: 2010/08/14 18:25:37
    26463259dnl -------------
    26473260dnl Find the and soname for the given shared library.  Set the cache variable
     
    26673280CF_EOF
    26683281cf_save_LIBS="$LIBS"
    2669         LIBS="-l$3 $LIBS"
     3282        CF_ADD_LIB($3)
    26703283        if AC_TRY_EVAL(ac_compile) ; then
    26713284                if AC_TRY_EVAL(ac_link) ; then
     
    26743287                fi
    26753288        fi
    2676 rm -f conftest*
     3289rm -rf conftest*
    26773290LIBS="$cf_save_LIBS"
    26783291fi
     
    26803293])
    26813294dnl ---------------------------------------------------------------------------
    2682 dnl CF_LIB_SUFFIX version: 15 updated: 2008/09/13 11:54:48
     3295dnl CF_LIB_SUFFIX version: 16 updated: 2008/12/27 12:30:03
    26833296dnl -------------
    26843297dnl Compute the library file-suffix from the given model name
     
    26903303[
    26913304        AC_REQUIRE([CF_SUBST_NCURSES_VERSION])
    2692         case $1 in
    2693         libtool)
     3305        case $1 in #(vi
     3306        libtool) #(vi
    26943307                $2='.la'
    26953308                $3=[$]$2
    26963309                ;;
    2697         normal)
     3310        normal) #(vi
    26983311                $2='.a'
    26993312                $3=[$]$2
    27003313                ;;
    2701         debug)
     3314        debug) #(vi
    27023315                $2='_g.a'
    27033316                $3=[$]$2
    27043317                ;;
    2705         profile)
     3318        profile) #(vi
    27063319                $2='_p.a'
    27073320                $3=[$]$2
    27083321                ;;
    2709         shared)
     3322        shared) #(vi
    27103323                case $cf_cv_system_name in
    2711                 cygwin*)
     3324                aix[[56]]*) #(vi
     3325                        $2='.a'
     3326                        $3=[$]$2
     3327                        ;;
     3328                cygwin*) #(vi
    27123329                        $2='.dll'
    27133330                        $3='.dll.a'
    27143331                        ;;
    2715                 darwin*)
     3332                darwin*) #(vi
    27163333                        $2='.dylib'
    27173334                        $3=[$]$2
    27183335                        ;;
    2719                 hpux*)
     3336                hpux*) #(vi
    27203337                        case $target in
    2721                         ia64*)
     3338                        ia64*) #(vi
    27223339                                $2='.so'
    27233340                                $3=[$]$2
    27243341                                ;;
    2725                         *)
     3342                        *) #(vi
    27263343                                $2='.sl'
    27273344                                $3=[$]$2
     
    27563373])dnl
    27573374dnl ---------------------------------------------------------------------------
    2758 dnl CF_LINK_DATAONLY version: 8 updated: 2006/12/16 12:33:30
     3375dnl CF_LINK_DATAONLY version: 9 updated: 2009/01/01 20:21:38
    27593376dnl ----------------
    27603377dnl Some systems have a non-ANSI linker that doesn't pull in modules that have
     
    27733390        if AC_TRY_EVAL(ac_compile) ; then
    27743391                mv conftest.o data.o && \
    2775                 ( $AR $AR_OPTS conftest.a data.o ) 2>&AC_FD_CC 1>/dev/null
     3392                ( $AR $ARFLAGS conftest.a data.o ) 2>&AC_FD_CC 1>/dev/null
    27763393        fi
    27773394        rm -f conftest.$ac_ext data.o
     
    27923409        if AC_TRY_EVAL(ac_compile); then
    27933410                mv conftest.o func.o && \
    2794                 ( $AR $AR_OPTS conftest.a func.o ) 2>&AC_FD_CC 1>/dev/null
     3411                ( $AR $ARFLAGS conftest.a func.o ) 2>&AC_FD_CC 1>/dev/null
    27953412        fi
    27963413        rm -f conftest.$ac_ext func.o
     
    28883505])dnl
    28893506dnl ---------------------------------------------------------------------------
    2890 dnl CF_MAKEFLAGS version: 12 updated: 2006/10/21 08:27:03
     3507dnl CF_MAKEFLAGS version: 14 updated: 2011/03/31 19:29:46
    28913508dnl ------------
    28923509dnl Some 'make' programs support ${MAKEFLAGS}, some ${MFLAGS}, to pass 'make'
     
    29053522        @ echo '.$cf_option'
    29063523CF_EOF
    2907                 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[[       ]]*$,,'`
     3524                cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[[   ]]*$,,'`
    29083525                case "$cf_result" in
    29093526                .*k)
    2910                         cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
     3527                        cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
    29113528                        case "$cf_result" in
    29123529                        .*CC=*) cf_cv_makeflags=
     
    29283545])dnl
    29293546dnl ---------------------------------------------------------------------------
    2930 dnl CF_MAKE_TAGS version: 2 updated: 2000/10/04 09:18:40
     3547dnl CF_MAKE_TAGS version: 6 updated: 2010/10/23 15:52:32
    29313548dnl ------------
    29323549dnl Generate tags/TAGS targets for makefiles.  Do not generate TAGS if we have
     
    29343551AC_DEFUN([CF_MAKE_TAGS],[
    29353552AC_REQUIRE([CF_MIXEDCASE_FILENAMES])
    2936 AC_CHECK_PROG(MAKE_LOWER_TAGS, ctags, yes, no)
     3553
     3554AC_CHECK_PROGS(CTAGS, exctags ctags)
     3555AC_CHECK_PROGS(ETAGS, exetags etags)
     3556
     3557AC_CHECK_PROG(MAKE_LOWER_TAGS, ${CTAGS:-ctags}, yes, no)
    29373558
    29383559if test "$cf_cv_mixedcase" = yes ; then
    2939         AC_CHECK_PROG(MAKE_UPPER_TAGS, etags, yes, no)
     3560        AC_CHECK_PROG(MAKE_UPPER_TAGS, ${ETAGS:-etags}, yes, no)
    29403561else
    29413562        MAKE_UPPER_TAGS=no
     
    29473568        MAKE_UPPER_TAGS="#"
    29483569fi
    2949 AC_SUBST(MAKE_UPPER_TAGS)
    29503570
    29513571if test "$MAKE_LOWER_TAGS" = yes ; then
     
    29543574        MAKE_LOWER_TAGS="#"
    29553575fi
     3576
     3577AC_SUBST(CTAGS)
     3578AC_SUBST(ETAGS)
     3579
     3580AC_SUBST(MAKE_UPPER_TAGS)
    29563581AC_SUBST(MAKE_LOWER_TAGS)
    29573582])dnl
    29583583dnl ---------------------------------------------------------------------------
    2959 dnl CF_MANPAGE_FORMAT version: 7 updated: 2003/12/20 19:30:34
     3584dnl CF_MANPAGE_FORMAT version: 9 updated: 2010/10/23 16:10:30
    29603585dnl -----------------
    29613586dnl Option to allow user to override automatic configuration of manpage format.
     
    29993624  cf_example=date
    30003625
    3001   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
     3626  IFS="${IFS:-  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
    30023627  for cf_dir in $MANPATH; do
    30033628    test -z "$cf_dir" && cf_dir=/usr/man
     
    31133738])dnl
    31143739dnl ---------------------------------------------------------------------------
    3115 dnl CF_MANPAGE_SYMLINKS version: 4 updated: 2003/12/13 18:01:58
     3740dnl CF_MANPAGE_SYMLINKS version: 5 updated: 2010/07/24 17:12:40
    31163741dnl -------------------
    31173742dnl Some people expect each tool to make all aliases for manpages in the
     
    31293754AC_MSG_RESULT($MANPAGE_ALIASES)
    31303755
    3131 if test "$LN_S" = "ln -s"; then
     3756case "x$LN_S" in #(vi
     3757xln*) #(vi
    31323758        cf_use_symlinks=yes
    3133 else
     3759        ;;
     3760*)
    31343761        cf_use_symlinks=no
    3135 fi
     3762        ;;
     3763esac
    31363764
    31373765MANPAGE_SYMLINKS=no
     
    31723800])dnl
    31733801dnl ---------------------------------------------------------------------------
    3174 dnl CF_MAN_PAGES version: 35 updated: 2007/03/31 11:47:29
     3802dnl CF_MAN_PAGES version: 39 updated: 2010/10/23 15:44:18
    31753803dnl ------------
    31763804dnl Try to determine if the man-pages on the system are compressed, and if
     
    32153843        cf_compress=compress
    32163844  ;;
    3217 *gzip*) #(vi
     3845*gzip*)
    32183846        cf_so_strip="gz"
    32193847        cf_compress=gzip
     
    32383866TERMINFO="$TERMINFO"
    32393867
    3240 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
    3241 
    32423868INSTALL="$INSTALL"
    32433869INSTALL_DATA="$INSTALL_DATA"
     
    32453871transform="$program_transform_name"
    32463872
    3247 TMP=\${TMPDIR-/tmp}/man\$\$
     3873TMP=\${TMPDIR:=/tmp}/man\$\$
    32483874trap "rm -f \$TMP" 0 1 2 5 15
    32493875
     
    32833909        if test \$verb = installing ; then
    32843910        if test ! -d \$cf_subdir\${section} ; then
    3285                 \$MKDIRS \$cf_subdir\$section
     3911                mkdir -p \$cf_subdir\$section
    32863912        fi
    32873913        fi
     
    33033929                cf_name=`echo $cf_name|sed "$program_transform_name"`
    33043930cat >>$cf_edit_man <<-CF_EOF
    3305                 s,@$cf_NAME@,$cf_name,
     3931                s,@$cf_NAME@,$cf_name,g
    33063932CF_EOF
    33073933        done
     
    34324058                                                fi
    34334059                                                echo .. \$verb alias \$cf_alias\${suffix}
     4060CF_EOF
     4061case "x$LN_S" in #(vi
     4062*-f) #(vi
     4063cat >>$cf_edit_man <<CF_EOF
     4064                                                $LN_S \$cf_target \$cf_alias\${suffix}
     4065CF_EOF
     4066        ;;
     4067*)
     4068cat >>$cf_edit_man <<CF_EOF
    34344069                                                rm -f \$cf_alias\${suffix}
    34354070                                                $LN_S \$cf_target \$cf_alias\${suffix}
     4071CF_EOF
     4072        ;;
     4073esac
     4074cat >>$cf_edit_man <<CF_EOF
    34364075                                        elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
    34374076                                                echo ".so \$cf_source" >\$TMP
     
    34924131])dnl
    34934132dnl ---------------------------------------------------------------------------
    3494 dnl CF_MATH_LIB version: 5 updated: 2000/05/28 01:39:10
     4133dnl CF_MATH_LIB version: 8 updated: 2010/05/29 16:31:02
    34954134dnl -----------
    34964135dnl Checks for libraries.  At least one UNIX system, Apple Macintosh
     
    35054144        #include <math.h>
    35064145        ],
    3507         [double x = rand(); printf("result = %g\n", ]ifelse($2,,sin(x),$2)[)],
     4146        [double x = rand(); printf("result = %g\n", ]ifelse([$2],,sin(x),$2)[)],
    35084147        [cf_cv_need_libm=no],
    35094148        [cf_cv_need_libm=yes])])
     
    35114150then
    35124151ifelse($1,,[
    3513         LIBS="$LIBS -lm"
     4152        CF_ADD_LIB(m)
    35144153],[$1=-lm])
    35154154fi
     
    35464185])dnl
    35474186dnl ---------------------------------------------------------------------------
    3548 dnl CF_MKSTEMP version: 5 updated: 2006/12/16 12:33:30
     4187dnl CF_MKSTEMP version: 7 updated: 2010/08/14 18:25:37
    35494188dnl ----------
    35504189dnl Check for a working mkstemp.  This creates two files, checks that they are
     
    35524191AC_DEFUN([CF_MKSTEMP],[
    35534192AC_CACHE_CHECK(for working mkstemp, cf_cv_func_mkstemp,[
    3554 rm -f conftest*
     4193rm -rf conftest*
    35554194AC_TRY_RUN([
    35564195#include <sys/types.h>
     
    35914230])
    35924231])
    3593 if test "$cf_cv_func_mkstemp" = yes ; then
     4232if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
    35944233        AC_DEFINE(HAVE_MKSTEMP)
    35954234fi
    35964235])dnl
    35974236dnl ---------------------------------------------------------------------------
    3598 dnl CF_MSG_LOG version: 4 updated: 2007/07/29 09:55:12
     4237dnl CF_MSG_LOG version: 5 updated: 2010/10/23 15:52:32
    35994238dnl ----------
    36004239dnl Write a debug message to config.log, along with the line number in the
    36014240dnl configure script.
    36024241AC_DEFUN([CF_MSG_LOG],[
    3603 echo "${as_me-configure}:__oline__: testing $* ..." 1>&AC_FD_CC
     4242echo "${as_me:-configure}:__oline__: testing $* ..." 1>&AC_FD_CC
    36044243])dnl
    36054244dnl ---------------------------------------------------------------------------
     
    36884327])dnl
    36894328dnl ---------------------------------------------------------------------------
    3690 dnl CF_PATHSEP version: 3 updated: 2001/01/12 01:23:53
     4329dnl CF_PATHSEP version: 5 updated: 2010/05/26 05:38:42
    36914330dnl ----------
    36924331dnl Provide a value for the $PATH and similar separator
     
    36944333[
    36954334        case $cf_cv_system_name in
    3696         os2*)   PATHSEP=';'  ;;
    3697         *)      PATHSEP=':'  ;;
     4335        os2*)   PATH_SEPARATOR=';'  ;;
     4336        *)      PATH_SEPARATOR=':'  ;;
    36984337        esac
    3699 ifelse($1,,,[$1=$PATHSEP])
    3700         AC_SUBST(PATHSEP)
    3701 ])dnl
    3702 dnl ---------------------------------------------------------------------------
    3703 dnl CF_PATH_SYNTAX version: 12 updated: 2008/03/23 14:45:59
     4338ifelse([$1],,,[$1=$PATH_SEPARATOR])
     4339        AC_SUBST(PATH_SEPARATOR)
     4340])dnl
     4341dnl ---------------------------------------------------------------------------
     4342dnl CF_PATH_SYNTAX version: 13 updated: 2010/05/26 05:38:42
    37044343dnl --------------
    37054344dnl Check the argument to see that it looks like a pathname.  Rewrite it if it
     
    37334372  ;;
    37344373*)
    3735   ifelse($2,,[AC_MSG_ERROR([expected a pathname, not \"[$]$1\"])],$2)
     4374  ifelse([$2],,[AC_MSG_ERROR([expected a pathname, not \"[$]$1\"])],$2)
    37364375  ;;
    37374376esac
    37384377])dnl
    37394378dnl ---------------------------------------------------------------------------
    3740 dnl CF_POSIX_C_SOURCE version: 6 updated: 2005/07/14 20:25:10
     4379dnl CF_PKG_CONFIG version: 4 updated: 2011/02/18 20:26:24
     4380dnl -------------
     4381dnl Check for the package-config program, unless disabled by command-line.
     4382AC_DEFUN([CF_PKG_CONFIG],
     4383[
     4384AC_MSG_CHECKING(if you want to use pkg-config)
     4385AC_ARG_WITH(pkg-config,
     4386        [  --with-pkg-config{=path} enable/disable use of pkg-config],
     4387        [cf_pkg_config=$withval],
     4388        [cf_pkg_config=yes])
     4389AC_MSG_RESULT($cf_pkg_config)
     4390
     4391case $cf_pkg_config in #(vi
     4392no) #(vi
     4393        PKG_CONFIG=none
     4394        ;;
     4395yes) #(vi
     4396        AC_PATH_TOOL(PKG_CONFIG, pkg-config, none)
     4397        ;;
     4398*)
     4399        PKG_CONFIG=$withval
     4400        ;;
     4401esac
     4402
     4403test -z "$PKG_CONFIG" && PKG_CONFIG=none
     4404if test "$PKG_CONFIG" != none ; then
     4405        CF_PATH_SYNTAX(PKG_CONFIG)
     4406fi
     4407
     4408AC_SUBST(PKG_CONFIG)
     4409])dnl
     4410dnl ---------------------------------------------------------------------------
     4411dnl CF_POSIX_C_SOURCE version: 8 updated: 2010/05/26 05:38:42
    37414412dnl -----------------
    37424413dnl Define _POSIX_C_SOURCE to the given level, and _POSIX_SOURCE if needed.
     
    37544425AC_DEFUN([CF_POSIX_C_SOURCE],
    37554426[
    3756 cf_POSIX_C_SOURCE=ifelse($1,,199506L,$1)
     4427cf_POSIX_C_SOURCE=ifelse([$1],,199506L,[$1])
    37574428
    37584429cf_save_CFLAGS="$CFLAGS"
     
    38064477        CFLAGS="$cf_trim_CFLAGS"
    38074478        CPPFLAGS="$cf_trim_CPPFLAGS"
    3808         if test "$cf_cv_cc_u_d_options" = yes ; then
    3809                 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
    3810                                 sed -e 's/-D/-U/g' -e 's/=[[^   ]]*//g'`
    3811                 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
    3812         fi
    3813         CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
    3814 fi
    3815 
    3816 ])dnl
    3817 dnl ---------------------------------------------------------------------------
    3818 dnl CF_PREDEFINE version: 1 updated: 2003/07/26 17:53:56
     4479        CF_ADD_CFLAGS($cf_cv_posix_c_source)
     4480fi
     4481
     4482])dnl
     4483dnl ---------------------------------------------------------------------------
     4484dnl CF_PREDEFINE version: 2 updated: 2010/05/26 16:44:57
    38194485dnl ------------
    38204486dnl Add definitions to CPPFLAGS to ensure they're predefined for all compiles.
     
    38334499
    38344500if test "$cf_result" = yes ; then
    3835         CPPFLAGS="$CPPFLAGS ifelse($2,,-D$1,[-D$1=$2])"
     4501        CPPFLAGS="$CPPFLAGS ifelse([$2],,-D$1,[-D$1=$2])"
    38364502elif test "x$2" != "x" ; then
    38374503        AC_MSG_CHECKING(checking for compatible value versus $2)
     
    38734539])dnl
    38744540dnl ---------------------------------------------------------------------------
     4541dnl CF_PROG_AR version: 1 updated: 2009/01/01 20:15:22
     4542dnl ----------
     4543dnl Check for archiver "ar".
     4544AC_DEFUN([CF_PROG_AR],[
     4545AC_CHECK_TOOL(AR, ar, ar)
     4546])
     4547dnl ---------------------------------------------------------------------------
    38754548dnl CF_PROG_AWK version: 1 updated: 2006/09/16 11:40:59
    38764549dnl -----------
     
    38824555])dnl
    38834556dnl ---------------------------------------------------------------------------
    3884 dnl CF_PROG_CC_C_O version: 2 updated: 2006/12/16 15:55:46
     4557dnl CF_PROG_CC_C_O version: 3 updated: 2010/08/14 18:25:37
    38854558dnl --------------
    38864559dnl Analogous to AC_PROG_CC_C_O, but more useful: tests only $CC, ensures that
     
    39124585  eval cf_cv_prog_$1_c_o=no
    39134586fi
    3914 rm -f conftest*
     4587rm -rf conftest*
    39154588])dnl
    39164589if test $cf_cv_prog_$1_c_o = yes; then
     
    39844657AC_SUBST(PROG_EXT)
    39854658test -n "$PROG_EXT" && AC_DEFINE_UNQUOTED(PROG_EXT,"$PROG_EXT")
     4659])dnl
     4660dnl ---------------------------------------------------------------------------
     4661dnl CF_PROG_GNAT version: 1 updated: 2010/06/19 15:22:18
     4662dnl ------------
     4663dnl Check for gnatmake, ensure that it is complete.
     4664AC_DEFUN([CF_PROG_GNAT],[
     4665cf_ada_make=gnatmake
     4666AC_CHECK_PROG(gnat_exists, $cf_ada_make, yes, no)
     4667if test "$ac_cv_prog_gnat_exists" = no; then
     4668   cf_ada_make=
     4669else
     4670   CF_GNAT_VERSION
     4671   AC_CHECK_PROG(M4_exists, m4, yes, no)
     4672   if test "$ac_cv_prog_M4_exists" = no; then
     4673      cf_cv_prog_gnat_correct=no
     4674      echo Ada95 binding required program m4 not found. Ada95 binding disabled.
     4675   fi
     4676   if test "$cf_cv_prog_gnat_correct" = yes; then
     4677      AC_MSG_CHECKING(if GNAT works)
     4678      CF_GNAT_TRY_RUN([procedure conftest;],
     4679[with Text_IO;
     4680with GNAT.OS_Lib;
     4681procedure conftest is
     4682begin
     4683   Text_IO.Put ("Hello World");
     4684   Text_IO.New_Line;
     4685   GNAT.OS_Lib.OS_Exit (0);
     4686end conftest;],[cf_cv_prog_gnat_correct=yes],[cf_cv_prog_gnat_correct=no])
     4687      AC_MSG_RESULT($cf_cv_prog_gnat_correct)
     4688   fi
     4689fi
     4690
     4691AC_SUBST(cf_ada_make)
    39864692])dnl
    39874693dnl ---------------------------------------------------------------------------
     
    40044710])dnl
    40054711dnl ---------------------------------------------------------------------------
    4006 dnl CF_PROG_LDCONFIG version: 1 updated: 2003/09/20 17:07:55
     4712dnl CF_PROG_LDCONFIG version: 2 updated: 2008/12/13 14:08:40
    40074713dnl ----------------
    40084714dnl Check for ldconfig, needed to fixup shared libraries that would be built
     
    40134719else
    40144720case "$cf_cv_system_name" in #(vi
    4015 freebsd*) #(vi
     4721dragonfly*|freebsd*) #(vi
    40164722  test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
    40174723  ;;
     
    40244730])dnl
    40254731dnl ---------------------------------------------------------------------------
    4026 dnl CF_PROG_LINT version: 1 updated: 2006/09/16 11:40:59
     4732dnl CF_PROG_LINT version: 2 updated: 2009/08/12 04:43:14
    40274733dnl ------------
    40284734AC_DEFUN([CF_PROG_LINT],
    40294735[
    4030 AC_CHECK_PROGS(LINT, tdlint lint alint)
     4736AC_CHECK_PROGS(LINT, tdlint lint alint splint lclint)
    40314737AC_SUBST(LINT_OPTS)
    40324738])dnl
    40334739dnl ---------------------------------------------------------------------------
    4034 dnl CF_REGEX version: 3 updated: 1997/11/01 14:26:01
     4740dnl CF_PROG_LN_S version: 2 updated: 2010/08/14 18:25:37
     4741dnl ------------
     4742dnl Combine checks for "ln -s" and "ln -sf", updating $LN_S to include "-f"
     4743dnl option if it is supported.
     4744AC_DEFUN([CF_PROG_LN_S],[
     4745AC_PROG_LN_S
     4746AC_MSG_CHECKING(if $LN_S -f options work)
     4747
     4748rm -f conf$$.src conf$$dst
     4749echo >conf$$.dst
     4750echo first >conf$$.src
     4751if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
     4752        cf_prog_ln_sf=yes
     4753else
     4754        cf_prog_ln_sf=no
     4755fi
     4756rm -f conf$$.dst conf$$src
     4757AC_MSG_RESULT($cf_prog_ln_sf)
     4758
     4759test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
     4760])dnl
     4761dnl ---------------------------------------------------------------------------
     4762dnl CF_REGEX version: 8 updated: 2010/08/07 14:09:44
    40354763dnl --------
    40364764dnl Attempt to determine if we've got one of the flavors of regular-expression
     
    40384766AC_DEFUN([CF_REGEX],
    40394767[
    4040 AC_MSG_CHECKING([for regular-expression headers])
    4041 AC_CACHE_VAL(cf_cv_regex,[
    4042 AC_TRY_LINK([#include <sys/types.h>
    4043 #include <regex.h>],[
    4044         regex_t *p;
    4045         int x = regcomp(p, "", 0);
    4046         int y = regexec(p, "", 0, 0, 0);
    4047         regfree(p);
    4048         ],[cf_cv_regex="regex.h"],[
    4049         AC_TRY_LINK([#include <regexp.h>],[
    4050                 char *p = compile("", "", "", 0);
    4051                 int x = step("", "");
    4052         ],[cf_cv_regex="regexp.h"],[
    4053                 cf_save_LIBS="$LIBS"
    4054                 LIBS="-lgen $LIBS"
    4055                 AC_TRY_LINK([#include <regexpr.h>],[
    4056                         char *p = compile("", "", "");
     4768
     4769cf_regex_func=no
     4770
     4771cf_regex_libs="regex re"
     4772case $host_os in #(vi
     4773mingw*)
     4774        cf_regex_libs="regex.dll $cf_regex_libs"
     4775        ;;
     4776esac
     4777
     4778AC_CHECK_FUNC(regcomp,[cf_regex_func=regcomp],[
     4779        for cf_regex_lib in $cf_regex_libs
     4780        do
     4781                AC_CHECK_LIB($cf_regex_lib,regcomp,[
     4782                                CF_ADD_LIB($cf_regex_lib)
     4783                                cf_regex_func=regcomp
     4784                                break])
     4785        done
     4786])
     4787
     4788if test "$cf_regex_func" = no ; then
     4789        AC_CHECK_FUNC(compile,[cf_regex_func=compile],[
     4790                AC_CHECK_LIB(gen,compile,[
     4791                                CF_ADD_LIB(gen)
     4792                                cf_regex_func=compile])])
     4793fi
     4794
     4795if test "$cf_regex_func" = no ; then
     4796        AC_MSG_WARN(cannot find regular expression library)
     4797fi
     4798
     4799AC_CACHE_CHECK(for regular-expression headers,cf_cv_regex_hdrs,[
     4800
     4801cf_cv_regex_hdrs=no
     4802case $cf_regex_func in #(vi
     4803compile) #(vi
     4804        for cf_regex_hdr in regexp.h regexpr.h
     4805        do
     4806                AC_TRY_LINK([#include <$cf_regex_hdr>],[
     4807                        char *p = compile("", "", "", 0);
    40574808                        int x = step("", "");
    4058                 ],[cf_cv_regex="regexpr.h"],[LIBS="$cf_save_LIBS"])])])
     4809                ],[
     4810                        cf_cv_regex_hdrs=$cf_regex_hdr
     4811                        break
     4812                ])
     4813        done
     4814        ;;
     4815*)
     4816        for cf_regex_hdr in regex.h
     4817        do
     4818                AC_TRY_LINK([#include <sys/types.h>
     4819#include <$cf_regex_hdr>],[
     4820                        regex_t *p;
     4821                        int x = regcomp(p, "", 0);
     4822                        int y = regexec(p, "", 0, 0, 0);
     4823                        regfree(p);
     4824                ],[
     4825                        cf_cv_regex_hdrs=$cf_regex_hdr
     4826                        break
     4827                ])
     4828        done
     4829        ;;
     4830esac
     4831
    40594832])
    4060 AC_MSG_RESULT($cf_cv_regex)
    4061 case $cf_cv_regex in
    4062         regex.h)   AC_DEFINE(HAVE_REGEX_H_FUNCS) ;;
    4063         regexp.h)  AC_DEFINE(HAVE_REGEXP_H_FUNCS) ;;
    4064         regexpr.h) AC_DEFINE(HAVE_REGEXPR_H_FUNCS) ;;
     4833
     4834case $cf_cv_regex_hdrs in #(vi
     4835    no)        AC_MSG_WARN(no regular expression header found) ;; #(vi
     4836    regex.h)   AC_DEFINE(HAVE_REGEX_H_FUNCS) ;; #(vi
     4837    regexp.h)  AC_DEFINE(HAVE_REGEXP_H_FUNCS) ;; #(vi
     4838    regexpr.h) AC_DEFINE(HAVE_REGEXPR_H_FUNCS) ;;
    40654839esac
    40664840])dnl
    40674841dnl ---------------------------------------------------------------------------
    4068 dnl CF_REMOVE_DEFINE version: 2 updated: 2005/07/09 16:12:18
     4842dnl CF_REMOVE_DEFINE version: 3 updated: 2010/01/09 11:05:50
    40694843dnl ----------------
    40704844dnl Remove all -U and -D options that refer to the given symbol from a list
     
    40784852define([CF_REMOVE_DEFINE],
    40794853[
    4080 # remove $3 symbol from $2
    40814854$1=`echo "$2" | \
    4082         sed     -e 's/-[[UD]]$3\(=[[^   ]]*\)\?[[       ]]/ /g' \
    4083                 -e 's/-[[UD]]$3\(=[[^   ]]*\)\?[$]//g'`
     4855        sed     -e 's/-[[UD]]'"$3"'\(=[[^       ]]*\)\?[[       ]]/ /g' \
     4856                -e 's/-[[UD]]'"$3"'\(=[[^       ]]*\)\?[$]//g'`
    40844857])dnl
    40854858dnl ---------------------------------------------------------------------------
     
    40974870])dnl
    40984871dnl ---------------------------------------------------------------------------
    4099 dnl CF_RPATH_HACK version: 4 updated: 2008/09/13 12:53:26
     4872dnl CF_RPATH_HACK version: 9 updated: 2011/02/13 13:31:33
    41004873dnl -------------
    41014874AC_DEFUN([CF_RPATH_HACK],
    41024875[
    4103 AC_REQUIRE([CF_SHARED_OPTS])
     4876AC_REQUIRE([CF_LD_RPATH_OPT])
    41044877AC_MSG_CHECKING(for updated LDFLAGS)
    4105 if test -n "$LDFLAGS" ; then
    4106 AC_MSG_RESULT(maybe)
    4107 CF_VERBOSE(...checking LDFLAGS $LDFLAGS)
    4108 CF_VERBOSE(...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS)
    4109 case "$EXTRA_LDFLAGS" in #(vi
    4110 -Wl,-rpath,*) #(vi
    4111         cf_rpath_hack="-Wl,-rpath,"
    4112         ;;
    4113 -R\ *)
    4114         cf_rpath_hack="-R "
    4115         ;;
    4116 -R*)
    4117         cf_rpath_hack="-R"
    4118         ;;
    4119 *)
    4120         cf_rpath_hack=
    4121         ;;
    4122 esac
    4123 if test -n "$cf_rpath_hack" ; then
    4124         cf_rpath_dst=
    4125         for cf_rpath_src in $LDFLAGS
    4126         do
    4127                 CF_VERBOSE(Filtering $cf_rpath_src)
    4128                 case $cf_rpath_src in #(vi
    4129                 -L*) #(vi
    4130                         if test "$cf_rpath_hack" = "-R " ; then
    4131                                 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
     4878if test -n "$LD_RPATH_OPT" ; then
     4879        AC_MSG_RESULT(maybe)
     4880
     4881        AC_CHECK_PROGS(cf_ldd_prog,ldd,no)
     4882        cf_rpath_list="/usr/lib /lib"
     4883        if test "$cf_ldd_prog" != no
     4884        then
     4885                cf_rpath_oops=
     4886
     4887AC_TRY_LINK([#include <stdio.h>],
     4888                [printf("Hello");],
     4889                [cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
     4890                 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[[     ]]/%/%' -e 's%/[[^/]][[^/]]*$%%' |sort -u`])
     4891
     4892                # If we passed the link-test, but get a "not found" on a given library,
     4893                # this could be due to inept reconfiguration of gcc to make it only
     4894                # partly honor /usr/local/lib (or whatever).  Sometimes this behavior
     4895                # is intentional, e.g., installing gcc in /usr/bin and suppressing the
     4896                # /usr/local libraries.
     4897                if test -n "$cf_rpath_oops"
     4898                then
     4899                        for cf_rpath_src in $cf_rpath_oops
     4900                        do
     4901                                for cf_rpath_dir in \
     4902                                        /usr/local \
     4903                                        /usr/pkg \
     4904                                        /opt/sfw
     4905                                do
     4906                                        if test -f $cf_rpath_dir/lib/$cf_rpath_src
     4907                                        then
     4908                                                CF_VERBOSE(...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src)
     4909                                                LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
     4910                                                break
     4911                                        fi
     4912                                done
     4913                        done
     4914                fi
     4915        fi
     4916
     4917        CF_VERBOSE(...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS)
     4918
     4919        CF_RPATH_HACK_2(LDFLAGS)
     4920        CF_RPATH_HACK_2(LIBS)
     4921
     4922        CF_VERBOSE(...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS)
     4923fi
     4924AC_SUBST(EXTRA_LDFLAGS)
     4925])dnl
     4926dnl ---------------------------------------------------------------------------
     4927dnl CF_RPATH_HACK_2 version: 6 updated: 2010/04/17 16:31:24
     4928dnl ---------------
     4929dnl Do one set of substitutions for CF_RPATH_HACK, adding an rpath option to
     4930dnl EXTRA_LDFLAGS for each -L option found.
     4931dnl
     4932dnl $cf_rpath_list contains a list of directories to ignore.
     4933dnl
     4934dnl $1 = variable name to update.  The LDFLAGS variable should be the only one,
     4935dnl      but LIBS often has misplaced -L options.
     4936AC_DEFUN([CF_RPATH_HACK_2],
     4937[
     4938CF_VERBOSE(...checking $1 [$]$1)
     4939
     4940cf_rpath_dst=
     4941for cf_rpath_src in [$]$1
     4942do
     4943        case $cf_rpath_src in #(vi
     4944        -L*) #(vi
     4945
     4946                # check if this refers to a directory which we will ignore
     4947                cf_rpath_skip=no
     4948                if test -n "$cf_rpath_list"
     4949                then
     4950                        for cf_rpath_item in $cf_rpath_list
     4951                        do
     4952                                if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
     4953                                then
     4954                                        cf_rpath_skip=yes
     4955                                        break
     4956                                fi
     4957                        done
     4958                fi
     4959
     4960                if test "$cf_rpath_skip" = no
     4961                then
     4962                        # transform the option
     4963                        if test "$LD_RPATH_OPT" = "-R " ; then
     4964                                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
    41324965                        else
    4133                                 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
     4966                                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
    41344967                        fi
    4135                         CF_VERBOSE(...Filter $cf_rpath_tmp)
    4136                         EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
    4137                         ;;
    4138                 esac
    4139                 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
    4140         done
    4141         LDFLAGS=$cf_rpath_dst
    4142         CF_VERBOSE(...checked LDFLAGS $LDFLAGS)
    4143         CF_VERBOSE(...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS)
    4144 fi
    4145 else
    4146 AC_MSG_RESULT(no)
    4147 fi
    4148 ])dnl
    4149 dnl ---------------------------------------------------------------------------
    4150 dnl CF_SHARED_OPTS version: 53 updated: 2008/10/25 18:14:20
     4968
     4969                        # if we have not already added this, add it now
     4970                        cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
     4971                        if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
     4972                        then
     4973                                CF_VERBOSE(...Filter $cf_rpath_src ->$cf_rpath_tmp)
     4974                                EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
     4975                        fi
     4976                fi
     4977                ;;
     4978        esac
     4979        cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
     4980done
     4981$1=$cf_rpath_dst
     4982
     4983CF_VERBOSE(...checked $1 [$]$1)
     4984AC_SUBST(EXTRA_LDFLAGS)
     4985])dnl
     4986dnl ---------------------------------------------------------------------------
     4987dnl CF_SHARED_OPTS version: 64 updated: 2010/06/05 16:51:16
    41514988dnl --------------
    41524989dnl --------------
     
    41755012[
    41765013        AC_REQUIRE([CF_SUBST_NCURSES_VERSION])
     5014        AC_REQUIRE([CF_LD_RPATH_OPT])
    41775015        LOCAL_LDFLAGS=
    41785016        LOCAL_LDFLAGS2=
     
    41815019
    41825020        cf_cv_do_symlinks=no
     5021        cf_ld_rpath_opt=
     5022        test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
    41835023
    41845024        AC_MSG_CHECKING(if release/abi version should be used for shared libs)
     
    42195059        cf_cv_shlib_version_infix=no
    42205060
    4221         case $cf_cv_system_name in
    4222         beos*)
     5061        case $cf_cv_system_name in #(vi
     5062        aix[[56]]*) #(vi
     5063                if test "$GCC" = yes; then
     5064                        CC_SHARED_OPTS=
     5065                        MK_SHARED_LIB='$(CC) -shared'
     5066                fi
     5067                ;;
     5068        beos*) #(vi
    42235069                MK_SHARED_LIB='${CC} ${CFLAGS} -o $[@] -Xlinker -soname=`basename $[@]` -nostart -e 0'
    42245070                ;;
    4225         cygwin*)
     5071        cygwin*) #(vi
    42265072                CC_SHARED_OPTS=
    42275073                MK_SHARED_LIB='sh ../mk_shared_lib.sh [$]@ [$]{CC} [$]{CFLAGS}'
     
    42405086                exec \[$]* -shared -Wl,--out-implib=../lib/\[$]{IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\[$]{SHARED_LIB}
    42415087CF_EOF
    4242                 chmod +x mk_shared_lib.sh 
     5088                chmod +x mk_shared_lib.sh
    42435089                ;;
    4244         darwin*)
     5090        darwin*) #(vi
    42455091                EXTRA_CFLAGS="-no-cpp-precomp"
    42465092                CC_SHARED_OPTS="-dynamic"
     
    42575103                fi
    42585104                ;;
    4259         hpux*)
     5105        hpux*) #(vi
    42605106                # (tested with gcc 2.7.2 -- I don't have c89)
    42615107                if test "$GCC" = yes; then
     
    42705116                INSTALL_LIB="-m 555"
    42715117                ;;
    4272         irix*)
    4273                 if test "$cf_cv_ld_rpath" = yes ; then
    4274                         if test "$GCC" = yes; then
    4275                                 cf_ld_rpath_opt="-Wl,-rpath,"
    4276                                 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
    4277                         else
    4278                                 cf_ld_rpath_opt="-rpath "
    4279                                 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
    4280                         fi
     5118        irix*) #(vi
     5119                if test "$cf_cv_enable_rpath" = yes ; then
     5120                        EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
    42815121                fi
    42825122                # tested with IRIX 5.2 and 'cc'.
     
    42895129                cf_cv_rm_so_locs=yes
    42905130                ;;
    4291         linux*|gnu*|k*bsd*-gnu)
     5131        linux*|gnu*|k*bsd*-gnu) #(vi
    42925132                if test "$DFT_LWR_MODEL" = "shared" ; then
    4293                         LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
     5133                        LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
    42945134                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
    42955135                fi
    4296                 if test "$cf_cv_ld_rpath" = yes ; then
    4297                         cf_ld_rpath_opt="-Wl,-rpath,"
    4298                         EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
     5136                if test "$cf_cv_enable_rpath" = yes ; then
     5137                        EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
    42995138                fi
    43005139                CF_SHARED_SONAME
    43015140                MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $[@]'
    43025141                ;;
    4303         openbsd[[2-9]].*)
     5142        openbsd[[2-9]].*) #(vi
    43045143                if test "$DFT_LWR_MODEL" = "shared" ; then
    4305                         LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
     5144                        LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
    43065145                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
    43075146                fi
    4308                 if test "$cf_cv_ld_rpath" = yes ; then
    4309                         cf_ld_rpath_opt="-Wl,-rpath,"
    4310                         EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
     5147                if test "$cf_cv_enable_rpath" = yes ; then
     5148                        EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
    43115149                fi
    43125150                CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
    43135151                CF_SHARED_SONAME
    4314                 MK_SHARED_LIB='${CC} ${CFLAGS} -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $[@]'
     5152                MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $[@]'
    43155153                ;;
    4316         nto-qnx*|openbsd*|freebsd[[12]].*)
     5154        nto-qnx*|openbsd*|freebsd[[12]].*) #(vi
    43175155                CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
    43185156                MK_SHARED_LIB='${LD} -Bshareable -o $[@]'
    43195157                test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
    43205158                ;;
    4321         freebsd*)
     5159        freebsd*) #(vi
    43225160                CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
    4323                 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
    4324                         LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
    4325                         LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
    4326                         cf_ld_rpath_opt="-rpath "
    4327                         EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
     5161                if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
     5162                        LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
     5163                        LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
     5164                        EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
    43285165                fi
    43295166                CF_SHARED_SONAME
    4330                 MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $[@]` -o $[@]'
     5167                MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $[@]` -o $[@]'
    43315168                ;;
    4332         netbsd*)
     5169        netbsd*) #(vi
    43335170                CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
    4334                 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
    4335                 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
    4336                         LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
     5171                if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
     5172                        LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
    43375173                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
    4338                         EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
     5174                        EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
    43395175                        if test "$cf_cv_shlib_version" = auto; then
    43405176                        if test -f /usr/libexec/ld.elf_so; then
     
    43475183                        MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $[@]'
    43485184                else
    4349                         MK_SHARED_LIB='${LD} -Bshareable -o $[@]'
     5185                        MK_SHARED_LIB='${LD} -shared -Bshareable -o $[@]'
    43505186                fi
    43515187                ;;
    4352         osf*|mls+*)
     5188        osf*|mls+*) #(vi
    43535189                # tested with OSF/1 V3.2 and 'cc'
    43545190                # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
    43555191                # link with shared libs).
    43565192                MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $[@]`'
    4357                 case $host_os in
     5193                case $host_os in #(vi
    43585194                osf4*)
    43595195                        MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
     
    43625198                MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $[@]'
    43635199                if test "$DFT_LWR_MODEL" = "shared" ; then
    4364                         LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
     5200                        LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
    43655201                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
    4366                 fi
    4367                 if test "$cf_cv_ld_rpath" = yes ; then
    4368                         cf_ld_rpath_opt="-rpath"
    4369                         # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
    43705202                fi
    43715203                cf_cv_rm_so_locs=yes
    43725204                ;;
    4373         sco3.2v5*)  # (also uw2* and UW7) hops 13-Apr-98
     5205        sco3.2v5*)  # (also uw2* and UW7: hops 13-Apr-98
    43745206                # tested with osr5.0.5
    43755207                if test "$GCC" != yes; then
     
    43775209                fi
    43785210                MK_SHARED_LIB='${LD} -dy -G -h `basename $[@] .${REL_VERSION}`.${ABI_VERSION} -o [$]@'
    4379                 if test "$cf_cv_ld_rpath" = yes ; then
     5211                if test "$cf_cv_enable_rpath" = yes ; then
    43805212                        # only way is to set LD_RUN_PATH but no switch for it
    43815213                        RUN_PATH=$libdir
     
    43855217                LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
    43865218                ;;
    4387         sunos4*)
     5219        sunos4*) #(vi
    43885220                # tested with SunOS 4.1.1 and gcc 2.7.0
    43895221                if test "$GCC" != yes; then
     
    43935225                test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
    43945226                ;;
    4395         solaris2*)
     5227        solaris2*) #(vi
    43965228                # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
    43975229                # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
     
    44005232                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
    44015233                fi
    4402                 if test "$cf_cv_ld_rpath" = yes ; then
    4403                         cf_ld_rpath_opt="-R"
    4404                         EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
     5234                if test "$cf_cv_enable_rpath" = yes ; then
     5235                        EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
    44055236                fi
    44065237                CF_SHARED_SONAME
    44075238                if test "$GCC" != yes; then
    4408                         CC_SHARED_OPTS='-xcode=pic32'
     5239                        cf_save_CFLAGS="$CFLAGS"
     5240                        for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
     5241                        do
     5242                                CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
     5243                                AC_TRY_COMPILE([#include <stdio.h>],[printf("Hello\n");],[break])
     5244                        done
     5245                        CFLAGS="$cf_save_CFLAGS"
     5246                        CC_SHARED_OPTS=$cf_shared_opts
    44095247                        MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $[@]'
    44105248                else
     
    44125250                fi
    44135251                ;;
    4414         sysv5uw7*|unix_sv*)
     5252        sysv5uw7*|unix_sv*) #(vi
    44155253                # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
    44165254                if test "$GCC" != yes; then
     
    44295267        rel|abi)
    44305268                case "$MK_SHARED_LIB" in #(vi
    4431                 *'-o $[@]')
     5269                *'-o $[@]') #(vi
    44325270                        test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
    44335271                        ;;
     
    44405278
    44415279        if test -n "$cf_ld_rpath_opt" ; then
    4442                 AC_MSG_CHECKING(if we need a space after rpath option)
    4443                 cf_save_LIBS="$LIBS"
    4444                 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
    4445                 AC_TRY_LINK(, , cf_rpath_space=no, cf_rpath_space=yes)
    4446                 LIBS="$cf_save_LIBS"
    4447                 AC_MSG_RESULT($cf_rpath_space)
    4448                 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
    44495280                MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
    44505281        fi
    44515282
    44525283        AC_SUBST(CC_SHARED_OPTS)
     5284        AC_SUBST(LD_RPATH_OPT)
    44535285        AC_SUBST(LD_SHARED_OPTS)
    44545286        AC_SUBST(MK_SHARED_LIB)
     
    46435475])dnl
    46445476dnl ---------------------------------------------------------------------------
    4645 dnl CF_SRC_MODULES version: 18 updated: 2005/05/28 12:58:54
     5477dnl CF_SRC_MODULES version: 21 updated: 2010/09/04 17:37:40
    46465478dnl --------------
    46475479dnl For each parameter, test if the source-directory exists, and if it contains
     
    47185550AC_SUBST(TEST_DEP2)
    47195551
    4720 SRC_SUBDIRS="man include"
     5552SRC_SUBDIRS=
     5553if test "x$cf_with_manpages" != xno ; then
     5554        SRC_SUBDIRS="$SRC_SUBDIRS man"
     5555fi
     5556SRC_SUBDIRS="$SRC_SUBDIRS include"
    47215557for cf_dir in $cf_cv_src_modules
    47225558do
    47235559        SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
    47245560done
    4725 SRC_SUBDIRS="$SRC_SUBDIRS test"
     5561if test "x$cf_with_tests" != "xno" ; then
     5562        SRC_SUBDIRS="$SRC_SUBDIRS test"
     5563fi
    47265564test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
    47275565test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
     
    47295567ADA_SUBDIRS=
    47305568if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
    4731    SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
    4732    ADA_SUBDIRS="gen src samples"
     5569        SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
     5570        ADA_SUBDIRS="gen src"
     5571        if test "x$cf_with_tests" != "xno" ; then
     5572                ADA_SUBDIRS="$ADA_SUBDIRS samples"
     5573        fi
    47335574fi
    47345575
     
    47405581
    47415582if test -n "$ADA_SUBDIRS"; then
    4742    for cf_dir in $ADA_SUBDIRS
    4743    do
    4744       SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
    4745    done
    4746    AC_SUBST(ADA_SUBDIRS)
    4747 fi
    4748 ])dnl
    4749 dnl ---------------------------------------------------------------------------
    4750 dnl CF_STDCPP_LIBRARY version: 5 updated: 2000/08/12 23:18:52
     5583        for cf_dir in $ADA_SUBDIRS
     5584        do
     5585                SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
     5586        done
     5587        AC_SUBST(ADA_SUBDIRS)
     5588fi
     5589])dnl
     5590dnl ---------------------------------------------------------------------------
     5591dnl CF_STDCPP_LIBRARY version: 7 updated: 2010/05/29 16:31:02
    47515592dnl -----------------
    47525593dnl Check for -lstdc++, which is GNU's standard C++ library.
     
    47645605AC_CACHE_CHECK(for library $cf_stdcpp_libname,cf_cv_libstdcpp,[
    47655606        cf_save="$LIBS"
    4766         LIBS="$LIBS -l$cf_stdcpp_libname"
     5607        CF_ADD_LIB($cf_stdcpp_libname)
    47675608AC_TRY_LINK([
    47685609#include <strstream.h>],[
     
    47745615        LIBS="$cf_save"
    47755616])
    4776 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
     5617test "$cf_cv_libstdcpp" = yes && CF_ADD_LIB($cf_stdcpp_libname,CXXLIBS)
    47775618fi
    47785619])dnl
     
    48475688])dnl
    48485689dnl ---------------------------------------------------------------------------
    4849 dnl CF_SUBDIR_PATH version: 5 updated: 2007/07/29 09:55:12
     5690dnl CF_SUBDIR_PATH version: 6 updated: 2010/04/21 06:20:50
    48505691dnl --------------
    48515692dnl Construct a search-list for a nonstandard header/lib-file
     
    48545695dnl     $3 = the subdirectory, e.g., bin, include or lib
    48555696AC_DEFUN([CF_SUBDIR_PATH],
    4856 [$1=""
     5697[
     5698$1=
    48575699
    48585700CF_ADD_SUBDIR_PATH($1,$2,$3,/usr,$prefix)
     
    50495891])dnl
    50505892dnl ---------------------------------------------------------------------------
    5051 dnl CF_UTF8_LIB version: 5 updated: 2008/10/17 19:37:52
     5893dnl CF_UTF8_LIB version: 7 updated: 2010/06/20 09:24:28
    50525894dnl -----------
    50535895dnl Check for multibyte support, and if not found, utf8 compatibility library
     
    50715913        CF_ADD_INCDIR($cf_cv_header_path_utf8)
    50725914        CF_ADD_LIBDIR($cf_cv_library_path_utf8)
    5073         LIBS="-lutf8 $LIBS"
    5074 fi
    5075 ])dnl
     5915        CF_ADD_LIBS($cf_cv_library_file_utf8)
     5916fi
     5917])dnl
     5918dnl ---------------------------------------------------------------------------
     5919dnl CF_VA_COPY version: 2 updated: 2010/03/04 05:37:29
     5920dnl ----------
     5921dnl check for va_copy, part of stdarg.h
     5922dnl Also, workaround for glibc's __va_copy, by checking for both.
     5923AC_DEFUN([CF_VA_COPY],[
     5924AC_CACHE_CHECK(for va_copy, cf_cv_have_va_copy,[
     5925AC_TRY_LINK([
     5926#include <stdarg.h>
     5927],[
     5928        static va_list dst;
     5929        static va_list src;
     5930        va_copy(dst, src)],
     5931        cf_cv_have_va_copy=yes,
     5932        cf_cv_have_va_copy=no)])
     5933
     5934test "$cf_cv_have_va_copy" = yes && AC_DEFINE(HAVE_VA_COPY)
     5935
     5936AC_CACHE_CHECK(for __va_copy, cf_cv_have___va_copy,[
     5937AC_TRY_LINK([
     5938#include <stdarg.h>
     5939],[
     5940        static va_list dst;
     5941        static va_list src;
     5942        __va_copy(dst, src)],
     5943        cf_cv_have___va_copy=yes,
     5944        cf_cv_have___va_copy=no)])
     5945
     5946test "$cf_cv_have___va_copy" = yes && AC_DEFINE(HAVE___VA_COPY)
     5947])
    50765948dnl ---------------------------------------------------------------------------
    50775949dnl CF_VERBOSE version: 3 updated: 2007/07/29 09:55:12
     
    50835955])dnl
    50845956dnl ---------------------------------------------------------------------------
    5085 dnl CF_WCHAR_TYPE version: 2 updated: 2004/01/17 19:18:20
     5957dnl CF_WCHAR_TYPE version: 3 updated: 2010/05/26 16:44:57
    50865958dnl -------------
    50875959dnl Check if type wide-character type $1 is declared, and if so, which header
     
    51195991fi
    51205992
    5121 ifelse($2,,,[
     5993ifelse([$2],,,[
    51225994# if we do not find $1 in either place, use substitution to provide a fallback.
    51235995if test "$cf_cv_$1" = unknown ; then
     
    51796051])dnl
    51806052dnl ---------------------------------------------------------------------------
    5181 dnl CF_WITH_DBMALLOC version: 6 updated: 2006/12/16 14:24:05
     6053dnl CF_WITH_ADA_COMPILER version: 2 updated: 2010/06/26 17:35:58
     6054dnl --------------------
     6055dnl Command-line option to specify the Ada95 compiler.
     6056AC_DEFUN([CF_WITH_ADA_COMPILER],[
     6057AC_MSG_CHECKING(for ada-compiler)
     6058AC_ARG_WITH(ada-compiler,
     6059        [  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)],
     6060        [cf_ada_compiler=$withval],
     6061        [cf_ada_compiler=gnatmake])
     6062AC_SUBST(cf_ada_compiler)
     6063AC_MSG_RESULT($cf_ada_compiler)
     6064])dnl
     6065dnl ---------------------------------------------------------------------------
     6066dnl CF_WITH_ADA_INCLUDE version: 2 updated: 2010/06/26 17:35:58
     6067dnl -------------------
     6068dnl Command-line option to specify where Ada includes will install.
     6069AC_DEFUN([CF_WITH_ADA_INCLUDE],[
     6070AC_MSG_CHECKING(for ada-include)
     6071CF_WITH_PATH(ada-include,
     6072   [  --with-ada-include=DIR  Ada includes are in DIR],
     6073   ADA_INCLUDE,
     6074   PREFIX/share/ada/adainclude,
     6075   [$]prefix/share/ada/adainclude)
     6076AC_SUBST(ADA_INCLUDE)
     6077AC_MSG_RESULT($ADA_INCLUDE)
     6078])dnl
     6079dnl ---------------------------------------------------------------------------
     6080dnl CF_WITH_ADA_OBJECTS version: 2 updated: 2010/06/26 17:35:58
     6081dnl -------------------
     6082dnl Command-line option to specify where Ada objects will install.
     6083AC_DEFUN([CF_WITH_ADA_OBJECTS],[
     6084AC_MSG_CHECKING(for ada-objects)
     6085CF_WITH_PATH(ada-objects,
     6086   [  --with-ada-objects=DIR  Ada objects are in DIR],
     6087   ADA_OBJECTS,
     6088   PREFIX/lib/ada/adalib,
     6089   [$]prefix/lib/ada/adalib)
     6090AC_SUBST(ADA_OBJECTS)
     6091AC_MSG_RESULT($ADA_OBJECTS)
     6092])dnl
     6093dnl ---------------------------------------------------------------------------
     6094dnl CF_WITH_ADA_SHAREDLIB version: 2 updated: 2010/06/26 17:35:58
     6095dnl ---------------------
     6096dnl Command-line option to specify if an Ada95 shared-library should be built,
     6097dnl and optionally what its soname should be.
     6098AC_DEFUN([CF_WITH_ADA_SHAREDLIB],[
     6099AC_MSG_CHECKING(if an Ada95 shared-library should be built)
     6100AC_ARG_WITH(ada-sharedlib,
     6101        [  --with-ada-sharedlib=XX build Ada95 shared-library],
     6102        [with_ada_sharedlib=$withval],
     6103        [with_ada_sharedlib=no])
     6104AC_MSG_RESULT($with_ada_sharedlib)
     6105
     6106ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
     6107MAKE_ADA_SHAREDLIB="#"
     6108
     6109if test "x$with_ada_sharedlib" != xno
     6110then
     6111        MAKE_ADA_SHAREDLIB=
     6112        if test "x$with_ada_sharedlib" != xyes
     6113        then
     6114                ADA_SHAREDLIB="$with_ada_sharedlib"
     6115        fi
     6116fi
     6117
     6118AC_SUBST(ADA_SHAREDLIB)
     6119AC_SUBST(MAKE_ADA_SHAREDLIB)
     6120])dnl
     6121dnl ---------------------------------------------------------------------------
     6122dnl CF_WITH_DBMALLOC version: 7 updated: 2010/06/21 17:26:47
    51826123dnl ----------------
    51836124dnl Configure-option for dbmalloc.  The optional parameter is used to override
     
    51906131if test "$with_dbmalloc" = yes ; then
    51916132        AC_CHECK_HEADER(dbmalloc.h,
    5192                 [AC_CHECK_LIB(dbmalloc,[debug_malloc]ifelse($1,,[],[,$1]))])
    5193 fi
    5194 ])dnl
    5195 dnl ---------------------------------------------------------------------------
    5196 dnl CF_WITH_DMALLOC version: 6 updated: 2006/12/16 14:24:05
     6133                [AC_CHECK_LIB(dbmalloc,[debug_malloc]ifelse([$1],,[],[,$1]))])
     6134fi
     6135])dnl
     6136dnl ---------------------------------------------------------------------------
     6137dnl CF_WITH_DMALLOC version: 7 updated: 2010/06/21 17:26:47
    51976138dnl ---------------
    51986139dnl Configure-option for dmalloc.  The optional parameter is used to override
     
    52056146if test "$with_dmalloc" = yes ; then
    52066147        AC_CHECK_HEADER(dmalloc.h,
    5207                 [AC_CHECK_LIB(dmalloc,[dmalloc_debug]ifelse($1,,[],[,$1]))])
     6148                [AC_CHECK_LIB(dmalloc,[dmalloc_debug]ifelse([$1],,[],[,$1]))])
    52086149fi
    52096150])dnl
     
    52426183])
    52436184dnl ---------------------------------------------------------------------------
    5244 dnl CF_WITH_LIBTOOL version: 19 updated: 2008/03/29 15:46:43
     6185dnl CF_WITH_LIBTOOL version: 26 updated: 2010/10/23 15:55:24
    52456186dnl ---------------
    52466187dnl Provide a configure option to incorporate libtool.  Define several useful
     
    52626203dnl             exit 1
    52636204dnl     fi
    5264 dnl     
     6205dnl
    52656206dnl     LOCAL=aclocal.m4
    52666207dnl     ORIG=aclocal.m4.orig
    5267 dnl     
     6208dnl
    52686209dnl     trap "mv $ORIG $LOCAL" 0 1 2 5 15
    52696210dnl     rm -f $ORIG
    52706211dnl     mv $LOCAL $ORIG
    5271 dnl     
     6212dnl
    52726213dnl     # sed the LIBTOOL= assignment to omit the current directory?
    5273 dnl     sed -e 's/^LIBTOOL=.*/LIBTOOL=${LIBTOOL-libtool}/' $ACLOCAL/libtool.m4 >>$LOCAL
     6214dnl     sed -e 's/^LIBTOOL=.*/LIBTOOL=${LIBTOOL:-libtool}/' $ACLOCAL/libtool.m4 >>$LOCAL
    52746215dnl     cat $ORIG >>$LOCAL
    5275 dnl     
     6216dnl
    52766217dnl     autoconf-257 $*
    52776218dnl
    52786219AC_DEFUN([CF_WITH_LIBTOOL],
    52796220[
     6221AC_REQUIRE([CF_DISABLE_LIBTOOL_VERSION])
    52806222ifdef([AC_PROG_LIBTOOL],,[
    52816223LIBTOOL=
     
    53076249        # missing_content_AC_PROG_LIBTOOL}}
    53086250],[
    5309         if test "$with_libtool" != "yes" ; then
     6251        if test "$with_libtool" != "yes" ; then
    53106252                CF_PATH_SYNTAX(with_libtool)
    53116253                LIBTOOL=$with_libtool
    53126254        else
    5313                 AC_PATH_PROG(LIBTOOL,libtool)
    5314         fi
    5315         if test -z "$LIBTOOL" ; then
    5316                 AC_MSG_ERROR(Cannot find libtool)
    5317         fi
    5318 ])dnl
    5319         LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
     6255                AC_PATH_PROG(LIBTOOL,libtool)
     6256        fi
     6257        if test -z "$LIBTOOL" ; then
     6258                AC_MSG_ERROR(Cannot find libtool)
     6259        fi
     6260])dnl
     6261        LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
    53206262        LIB_OBJECT='${OBJECTS:.o=.lo}'
    53216263        LIB_SUFFIX=.la
     
    53326274        # Save the version in a cache variable - this is not entirely a good
    53336275        # thing, but the version string from libtool is very ugly, and for
    5334         # bug reports it might be useful to have the original string.
     6276        # bug reports it might be useful to have the original string. "("
    53356277        cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([[^)]]*)//g' -e 's/^[[^1-9]]*//' -e 's/[[^0-9.]].*//'`
    53366278        AC_MSG_RESULT($cf_cv_libtool_version)
     
    53396281        fi
    53406282
     6283        # special hack to add -no-undefined (which libtool should do for itself)
     6284        LT_UNDEF=
     6285        case "$cf_cv_system_name" in #(vi
     6286        cygwin*|mingw32*|uwin*|aix[[456]]) #(vi
     6287                LT_UNDEF=-no-undefined
     6288                ;;
     6289        esac
     6290        AC_SUBST([LT_UNDEF])
     6291
    53416292        # special hack to add --tag option for C++ compiler
    5342         case $cf_cv_libtool_version in
    5343         1.[[5-9]]*|[[2-9]]*)
     6293        case $cf_cv_libtool_version in #(vi
     6294        1.[[5-9]]*|[[2-9]].[[0-9.a-z]]*) #(vi
    53446295                LIBTOOL_CXX="$LIBTOOL --tag=CXX"
    53456296                LIBTOOL="$LIBTOOL --tag=CC"
     
    53736324])dnl
    53746325dnl ---------------------------------------------------------------------------
    5375 dnl CF_WITH_PATH version: 8 updated: 2007/05/13 13:16:35
     6326dnl CF_WITH_PATH version: 10 updated: 2010/10/23 15:44:18
    53766327dnl ------------
    53776328dnl Wrapper for AC_ARG_WITH to ensure that user supplies a pathname, not just
     
    53856336dnl
    53866337AC_DEFUN([CF_WITH_PATH],
    5387 [AC_ARG_WITH($1,[$2 ](default: ifelse($4,,empty,$4)),,
    5388 ifelse($4,,[withval="${$3}"],[withval="${$3-ifelse($5,,$4,$5)}"]))dnl
    5389 if ifelse($5,,true,[test -n "$5"]) ; then
     6338[AC_ARG_WITH($1,[$2 ](default: ifelse([$4],,empty,[$4])),,
     6339ifelse([$4],,[withval="${$3}"],[withval="${$3:-ifelse([$5],,[$4],[$5])}"]))dnl
     6340if ifelse([$5],,true,[test -n "$5"]) ; then
    53906341CF_PATH_SYNTAX(withval)
    53916342fi
     
    53946345])dnl
    53956346dnl ---------------------------------------------------------------------------
    5396 dnl CF_WITH_PATHLIST version: 5 updated: 2001/12/10 01:28:30
     6347dnl CF_WITH_PATHLIST version: 7 updated: 2010/10/23 16:10:30
    53976348dnl ----------------
    53986349dnl Process an option specifying a list of colon-separated paths.
     
    54086359AC_REQUIRE([CF_PATHSEP])
    54096360AC_ARG_WITH($1,[$2 ](default: ifelse($4,,empty,$4)),,
    5410 ifelse($4,,[withval=${$3}],[withval=${$3-ifelse($5,,$4,$5)}]))dnl
    5411 
    5412 IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
     6361ifelse($4,,[withval=${$3}],[withval=${$3:-ifelse($5,,$4,$5)}]))dnl
     6362
     6363IFS="${IFS:-    }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
    54136364cf_dst_path=
    54146365for cf_src_path in $withval
     
    54366387])dnl
    54376388dnl ---------------------------------------------------------------------------
    5438 dnl CF_WITH_PTHREAD version: 2 updated: 2008/08/23 18:26:05
     6389dnl CF_WITH_PTHREAD version: 3 updated: 2010/05/29 16:31:02
    54396390dnl ---------------
    54406391dnl Check for POSIX thread library.
     
    54546405        AC_MSG_CHECKING(if we can link with the pthread library)
    54556406        cf_save_LIBS="$LIBS"
    5456         LIBS="-lpthread $LIBS"
     6407        CF_ADD_LIB(pthread)
    54576408        AC_TRY_LINK([
    54586409#include <pthread.h>
     
    54646415
    54656416        if test "$with_pthread" = yes ; then
    5466             LIBS="-lpthread $LIBS"
     6417            CF_ADD_LIB(pthread)
    54676418            AC_DEFINE(HAVE_LIBPTHREADS)
    54686419        else
     
    55366487])dnl
    55376488dnl ---------------------------------------------------------------------------
    5538 dnl CF_XOPEN_SOURCE version: 26 updated: 2008/07/27 11:26:57
     6489dnl CF_XOPEN_SOURCE version: 35 updated: 2011/02/20 20:37:37
    55396490dnl ---------------
    55406491dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
     
    55476498AC_DEFUN([CF_XOPEN_SOURCE],[
    55486499
    5549 AC_REQUIRE([CF_PROG_CC_U_D])
    5550 
    5551 cf_XOPEN_SOURCE=ifelse($1,,500,$1)
    5552 cf_POSIX_C_SOURCE=ifelse($2,,199506L,$2)
     6500cf_XOPEN_SOURCE=ifelse([$1],,500,[$1])
     6501cf_POSIX_C_SOURCE=ifelse([$2],,199506L,[$2])
     6502cf_xopen_source=
    55536503
    55546504case $host_os in #(vi
    5555 aix[[45]]*) #(vi
    5556         CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
     6505aix[[456]]*) #(vi
     6506        cf_xopen_source="-D_ALL_SOURCE"
     6507        ;;
     6508cygwin) #(vi
     6509        cf_XOPEN_SOURCE=600
     6510        ;;
     6511darwin[[0-8]].*) #(vi
     6512        cf_xopen_source="-D_APPLE_C_SOURCE"
     6513        ;;
     6514darwin*) #(vi
     6515        cf_xopen_source="-D_DARWIN_C_SOURCE"
    55576516        ;;
    55586517freebsd*|dragonfly*) #(vi
     
    55626521        cf_POSIX_C_SOURCE=200112L
    55636522        cf_XOPEN_SOURCE=600
    5564         CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
     6523        cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
     6524        ;;
     6525hpux11*) #(vi
     6526        cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
    55656527        ;;
    55666528hpux*) #(vi
    5567         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
     6529        cf_xopen_source="-D_HPUX_SOURCE"
    55686530        ;;
    55696531irix[[56]].*) #(vi
    5570         CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
     6532        cf_xopen_source="-D_SGI_SOURCE"
    55716533        ;;
    5572 linux*|gnu*|k*bsd*-gnu) #(vi
     6534linux*|gnu*|mint*|k*bsd*-gnu) #(vi
    55736535        CF_GNU_SOURCE
    55746536        ;;
     
    55836545        ;;
    55846546osf[[45]]*) #(vi
    5585         CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
     6547        cf_xopen_source="-D_OSF_SOURCE"
    55866548        ;;
    55876549nto-qnx*) #(vi
    5588         CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
     6550        cf_xopen_source="-D_QNX_SOURCE"
    55896551        ;;
    55906552sco*) #(vi
    55916553        # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
    55926554        ;;
    5593 solaris*) #(vi
    5594         CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
     6555solaris2.1[[0-9]]) #(vi
     6556        cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
     6557        ;;
     6558solaris2.[[1-9]]) #(vi
     6559        cf_xopen_source="-D__EXTENSIONS__"
    55956560        ;;
    55966561*)
     
    56156580                CF_REMOVE_DEFINE(CFLAGS,$CFLAGS,_XOPEN_SOURCE)
    56166581                CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,_XOPEN_SOURCE)
    5617                 test "$cf_cv_cc_u_d_options" = yes && \
    5618                         CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
    5619                 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
     6582                cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
     6583                CF_ADD_CFLAGS($cf_temp_xopen_source)
    56206584        fi
    56216585        CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
    56226586        ;;
    56236587esac
     6588
     6589if test -n "$cf_xopen_source" ; then
     6590        CF_ADD_CFLAGS($cf_xopen_source)
     6591fi
    56246592])
Note: See TracChangeset for help on using the changeset viewer.