~ubuntu-branches/ubuntu/karmic/wmcpuload/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Christian Aichinger
  • Date: 2005-02-13 18:42:41 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050213184241-yk2o743d8rkp23t9
Tags: 1.0.1-2
* New Maintainer
* Added proper Linux 2.6 support, thanks to Peter Colberg for the patch.
  (Closes: #238684)
* debian/control: Standards-Version to 3.6.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.53 for wmcpuload 0.9.0.
 
3
# Generated by GNU Autoconf 2.57 for wmcpuload 1.0.1.
4
4
#
5
5
# Report bugs to <ssato@sh.rim.or.jp>.
6
6
#
8
8
# Free Software Foundation, Inc.
9
9
# This configure script is free software; the Free Software Foundation
10
10
# gives unlimited permission to copy, distribute and modify it.
11
 
 
12
 
if expr a : '\(a\)' >/dev/null 2>&1; then
13
 
  as_expr=expr
14
 
else
15
 
  as_expr=false
16
 
fi
17
 
 
18
 
 
19
11
## --------------------- ##
20
12
## M4sh Initialization.  ##
21
13
## --------------------- ##
24
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25
17
  emulate sh
26
18
  NULLCMD=:
 
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # is contrary to our usage.  Disable this feature.
 
21
  alias -g '${1+"$@"}'='"$@"'
27
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28
23
  set -o posix
29
24
fi
30
25
 
31
 
# NLS nuisances.
32
26
# Support unset when possible.
33
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34
28
  as_unset=unset
36
30
  as_unset=false
37
31
fi
38
32
 
39
 
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40
 
    { $as_unset LANG || test "${LANG+set}" != set; } ||
41
 
      { LANG=C; export LANG; }
42
 
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43
 
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44
 
      { LC_ALL=C; export LC_ALL; }
45
 
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46
 
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47
 
      { LC_TIME=C; export LC_TIME; }
48
 
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49
 
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50
 
      { LC_CTYPE=C; export LC_CTYPE; }
51
 
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52
 
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53
 
      { LANGUAGE=C; export LANGUAGE; }
54
 
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55
 
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56
 
      { LC_COLLATE=C; export LC_COLLATE; }
57
 
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58
 
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59
 
      { LC_NUMERIC=C; export LC_NUMERIC; }
60
 
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61
 
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62
 
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
63
65
 
64
66
 
65
67
# Name of the executable.
66
 
as_me=`(basename "$0") 2>/dev/null ||
 
68
as_me=`$as_basename "$0" ||
67
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
70
         X"$0" : 'X\(//\)$' \| \
69
71
         X"$0" : 'X\(/\)$' \| \
74
76
          /^X\/\(\/\).*/{ s//\1/; q; }
75
77
          s/.*/./; q'`
76
78
 
 
79
 
77
80
# PATH needs CR, and LINENO needs CR and PATH.
78
81
# Avoid depending upon Character Ranges.
79
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84
87
 
85
88
# The user is always right.
86
89
if test "${PATH_SEPARATOR+set}" != set; then
87
 
  echo "#! /bin/sh" >conftest.sh
88
 
  echo  "exit 0"   >>conftest.sh
89
 
  chmod +x conftest.sh
90
 
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91
94
    PATH_SEPARATOR=';'
92
95
  else
93
96
    PATH_SEPARATOR=:
94
97
  fi
95
 
  rm -f conftest.sh
 
98
  rm -f conf$$.sh
96
99
fi
97
100
 
98
101
 
140
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
142
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143
148
             CONFIG_SHELL=$as_dir/$as_base
144
149
             export CONFIG_SHELL
145
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
212
217
fi
213
218
rm -f conf$$ conf$$.exe conf$$.file
214
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
215
226
as_executable_p="test -f"
216
227
 
217
228
# Sed expression to map a string onto a valid CPP name.
228
239
IFS="   $as_nl"
229
240
 
230
241
# CDPATH.
231
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
242
$as_unset CDPATH
232
243
 
233
244
 
234
245
# Name of the host.
242
253
# Initializations.
243
254
#
244
255
ac_default_prefix=/usr/local
 
256
ac_config_libobj_dir=.
245
257
cross_compiling=no
246
258
subdirs=
247
259
MFLAGS=
256
268
# Identity of this package.
257
269
PACKAGE_NAME='wmcpuload'
258
270
PACKAGE_TARNAME='wmcpuload'
259
 
PACKAGE_VERSION='0.9.0'
260
 
PACKAGE_STRING='wmcpuload 0.9.0'
 
271
PACKAGE_VERSION='1.0.1'
 
272
PACKAGE_STRING='wmcpuload 1.0.1'
261
273
PACKAGE_BUGREPORT='ssato@sh.rim.or.jp'
262
274
 
263
275
ac_unique_file="src/main.c"
298
310
# include <unistd.h>
299
311
#endif"
300
312
 
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIBRARY_PATH XCFLAGS XLFLAGS XLIBS DFLAGS EGREP OS SETGID_FLAGS LIBRARY_SEARCH_PATH HEADER_SEARCH_PATH LIBOBJS LTLIBOBJS'
 
314
ac_subst_files=''
301
315
 
302
316
# Initialize some variables set by options.
303
317
ac_init_help=
721
735
   { (exit 1); exit 1; }; }
722
736
  fi
723
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
724
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725
742
ac_env_build_alias_set=${build_alias+set}
726
743
ac_env_build_alias_value=$build_alias
762
779
  # Omit some internal or obsolete options to make the list less imposing.
763
780
  # This message is too long to be a string in the A/UX 3.1 sh.
764
781
  cat <<_ACEOF
765
 
\`configure' configures wmcpuload 0.9.0 to adapt to many kinds of systems.
 
782
\`configure' configures wmcpuload 1.0.1 to adapt to many kinds of systems.
766
783
 
767
784
Usage: $0 [OPTION]... [VAR=VALUE]...
768
785
 
833
850
 
834
851
if test -n "$ac_init_help"; then
835
852
  case $ac_init_help in
836
 
     short | recursive ) echo "Configuration of wmcpuload 0.9.0:";;
 
853
     short | recursive ) echo "Configuration of wmcpuload 1.0.1:";;
837
854
   esac
838
855
  cat <<\_ACEOF
839
856
 
898
915
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
899
916
# absolute.
900
917
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
901
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
918
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
902
919
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
903
920
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
904
921
 
924
941
test -n "$ac_init_help" && exit 0
925
942
if $ac_init_version; then
926
943
  cat <<\_ACEOF
927
 
wmcpuload configure 0.9.0
928
 
generated by GNU Autoconf 2.53
 
944
wmcpuload configure 1.0.1
 
945
generated by GNU Autoconf 2.57
929
946
 
930
947
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
931
948
Free Software Foundation, Inc.
939
956
This file contains any messages produced by compilers while
940
957
running configure, to aid debugging if configure makes a mistake.
941
958
 
942
 
It was created by wmcpuload $as_me 0.9.0, which was
943
 
generated by GNU Autoconf 2.53.  Invocation command line was
 
959
It was created by wmcpuload $as_me 1.0.1, which was
 
960
generated by GNU Autoconf 2.57.  Invocation command line was
944
961
 
945
962
  $ $0 $@
946
963
 
992
1009
 
993
1010
# Keep a trace of the command line.
994
1011
# Strip out --no-create and --no-recursion so they do not pile up.
 
1012
# Strip out --silent because we don't want to record it for future runs.
995
1013
# Also quote any args containing shell meta-characters.
 
1014
# Make two passes to allow for proper duplicate-argument suppression.
996
1015
ac_configure_args=
 
1016
ac_configure_args0=
 
1017
ac_configure_args1=
997
1018
ac_sep=
998
 
for ac_arg
 
1019
ac_must_keep_next=false
 
1020
for ac_pass in 1 2
999
1021
do
1000
 
  case $ac_arg in
1001
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002
 
  | --no-cr | --no-c | -n ) continue ;;
1003
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005
 
    continue ;;
1006
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008
 
  esac
1009
 
  case " $ac_configure_args " in
1010
 
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1011
 
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1012
 
       ac_sep=" " ;;
1013
 
  esac
1014
 
  # Get rid of the leading space.
 
1022
  for ac_arg
 
1023
  do
 
1024
    case $ac_arg in
 
1025
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1026
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1027
    | -silent | --silent | --silen | --sile | --sil)
 
1028
      continue ;;
 
1029
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1030
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1031
    esac
 
1032
    case $ac_pass in
 
1033
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1034
    2)
 
1035
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1036
      if test $ac_must_keep_next = true; then
 
1037
        ac_must_keep_next=false # Got value, back to normal.
 
1038
      else
 
1039
        case $ac_arg in
 
1040
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1041
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1042
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1043
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1044
            case "$ac_configure_args0 " in
 
1045
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1046
            esac
 
1047
            ;;
 
1048
          -* ) ac_must_keep_next=true ;;
 
1049
        esac
 
1050
      fi
 
1051
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1052
      # Get rid of the leading space.
 
1053
      ac_sep=" "
 
1054
      ;;
 
1055
    esac
 
1056
  done
1015
1057
done
 
1058
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1059
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1016
1060
 
1017
1061
# When interrupted or exit'd, cleanup temporary files, and complete
1018
1062
# config.log.  We remove comments because anyway the quotes in there
1023
1067
  # Save into config.log some information that might help in debugging.
1024
1068
  {
1025
1069
    echo
 
1070
 
1026
1071
    cat <<\_ASBOX
1027
1072
## ---------------- ##
1028
1073
## Cache variables. ##
1045
1090
    esac;
1046
1091
}
1047
1092
    echo
 
1093
 
 
1094
    cat <<\_ASBOX
 
1095
## ----------------- ##
 
1096
## Output variables. ##
 
1097
## ----------------- ##
 
1098
_ASBOX
 
1099
    echo
 
1100
    for ac_var in $ac_subst_vars
 
1101
    do
 
1102
      eval ac_val=$`echo $ac_var`
 
1103
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1104
    done | sort
 
1105
    echo
 
1106
 
 
1107
    if test -n "$ac_subst_files"; then
 
1108
      cat <<\_ASBOX
 
1109
## ------------- ##
 
1110
## Output files. ##
 
1111
## ------------- ##
 
1112
_ASBOX
 
1113
      echo
 
1114
      for ac_var in $ac_subst_files
 
1115
      do
 
1116
        eval ac_val=$`echo $ac_var`
 
1117
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1118
      done | sort
 
1119
      echo
 
1120
    fi
 
1121
 
1048
1122
    if test -s confdefs.h; then
1049
1123
      cat <<\_ASBOX
1050
1124
## ----------- ##
1052
1126
## ----------- ##
1053
1127
_ASBOX
1054
1128
      echo
1055
 
      sed "/^$/d" confdefs.h
 
1129
      sed "/^$/d" confdefs.h | sort
1056
1130
      echo
1057
1131
    fi
1058
1132
    test "$ac_signal" != 0 &&
1217
1291
 
1218
1292
 
1219
1293
 
 
1294
 
1220
1295
ac_aux_dir=
1221
1296
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222
1297
  if test -f $ac_dir/install-sh; then
1324
1399
  test "$program_prefix$program_suffix$program_transform_name" = \
1325
1400
    NONENONEs,x,x, &&
1326
1401
  program_prefix=${target_alias}-
 
1402
am__api_version="1.4"
1327
1403
# Find a good install program.  We prefer a C program (faster),
1328
1404
# so one script is as good as another.  But avoid the broken or
1329
1405
# incompatible versions:
1459
1535
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1460
1536
rm conftest.sed
1461
1537
 
1462
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1463
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
1538
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1539
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1464
1540
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1465
1541
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1466
1542
  echo $ECHO_N "(cached) $ECHO_C" >&6
1467
1543
else
1468
1544
  cat >conftest.make <<\_ACEOF
1469
1545
all:
1470
 
        @echo 'ac_maketemp="${MAKE}"'
 
1546
        @echo 'ac_maketemp="$(MAKE)"'
1471
1547
_ACEOF
1472
1548
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1473
1549
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1511
1587
 
1512
1588
 
1513
1589
missing_dir=`cd $ac_aux_dir && pwd`
1514
 
echo "$as_me:$LINENO: checking for working aclocal" >&5
1515
 
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
 
1590
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
 
1591
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1516
1592
# Run test in a subshell; some versions of sh will print an error if
1517
1593
# an executable is not found, even if stderr is redirected.
1518
1594
# Redirect stdin to placate older versions of autoconf.  Sigh.
1519
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1520
 
   ACLOCAL=aclocal
 
1595
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1596
   ACLOCAL=aclocal-${am__api_version}
1521
1597
   echo "$as_me:$LINENO: result: found" >&5
1522
1598
echo "${ECHO_T}found" >&6
1523
1599
else
1524
 
   ACLOCAL="$missing_dir/missing aclocal"
 
1600
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1525
1601
   echo "$as_me:$LINENO: result: missing" >&5
1526
1602
echo "${ECHO_T}missing" >&6
1527
1603
fi
1541
1617
echo "${ECHO_T}missing" >&6
1542
1618
fi
1543
1619
 
1544
 
echo "$as_me:$LINENO: checking for working automake" >&5
1545
 
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
 
1620
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
 
1621
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1546
1622
# Run test in a subshell; some versions of sh will print an error if
1547
1623
# an executable is not found, even if stderr is redirected.
1548
1624
# Redirect stdin to placate older versions of autoconf.  Sigh.
1549
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
1550
 
   AUTOMAKE=automake
 
1625
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1626
   AUTOMAKE=automake-${am__api_version}
1551
1627
   echo "$as_me:$LINENO: result: found" >&5
1552
1628
echo "${ECHO_T}found" >&6
1553
1629
else
1554
 
   AUTOMAKE="$missing_dir/missing automake"
 
1630
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1555
1631
   echo "$as_me:$LINENO: result: missing" >&5
1556
1632
echo "${ECHO_T}missing" >&6
1557
1633
fi
1590
1666
 
1591
1667
 
1592
1668
 
1593
 
ac_config_headers="$ac_config_headers config.h"
 
1669
          ac_config_headers="$ac_config_headers config.h"
1594
1670
 
1595
 
ac_config_commands="$ac_config_commands default-1"
 
1671
          ac_config_commands="$ac_config_commands default-1"
1596
1672
 
1597
1673
 
1598
1674
for ac_prog in gawk mawk nawk awk
1839
1915
    # However, it has the same basename, so the bogon will be chosen
1840
1916
    # first if we set CC to just the basename; use the full file name.
1841
1917
    shift
1842
 
    set dummy "$as_dir/$ac_word" ${1+"$@"}
1843
 
    shift
1844
 
    ac_cv_prog_CC="$@"
 
1918
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1845
1919
  fi
1846
1920
fi
1847
1921
fi
1946
2020
fi
1947
2021
 
1948
2022
 
1949
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1950
 
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
 
2023
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2024
See \`config.log' for more details." >&5
 
2025
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2026
See \`config.log' for more details." >&2;}
1951
2027
   { (exit 1); exit 1; }; }
1952
2028
 
1953
2029
# Provide some information about the compiler.
1972
2048
 
1973
2049
cat >conftest.$ac_ext <<_ACEOF
1974
2050
#line $LINENO "configure"
1975
 
#include "confdefs.h"
 
2051
/* confdefs.h.  */
 
2052
_ACEOF
 
2053
cat confdefs.h >>conftest.$ac_ext
 
2054
cat >>conftest.$ac_ext <<_ACEOF
 
2055
/* end confdefs.h.  */
1976
2056
 
1977
 
#ifdef F77_DUMMY_MAIN
1978
 
#  ifdef __cplusplus
1979
 
     extern "C"
1980
 
#  endif
1981
 
   int F77_DUMMY_MAIN() { return 1; }
1982
 
#endif
1983
2057
int
1984
2058
main ()
1985
2059
{
1989
2063
}
1990
2064
_ACEOF
1991
2065
ac_clean_files_save=$ac_clean_files
1992
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
2066
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993
2067
# Try to create an executable without -o first, disregard a.out.
1994
2068
# It will help us diagnose broken compilers, and finding out an intuition
1995
2069
# of exeext.
2008
2082
# Be careful to initialize this variable, since it used to be cached.
2009
2083
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010
2084
ac_cv_exeext=
2011
 
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2012
 
                ls a.out conftest 2>/dev/null;
2013
 
                ls a.* conftest.* 2>/dev/null`; do
 
2085
# b.out is created by i960 compilers.
 
2086
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2087
do
 
2088
  test -f "$ac_file" || continue
2014
2089
  case $ac_file in
2015
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2016
 
    a.out ) # We found the default executable, but exeext='' is most
2017
 
            # certainly right.
2018
 
            break;;
2019
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2021
 
          export ac_cv_exeext
2022
 
          break;;
2023
 
    * ) break;;
 
2090
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2091
        ;;
 
2092
    conftest.$ac_ext )
 
2093
        # This is the source file.
 
2094
        ;;
 
2095
    [ab].out )
 
2096
        # We found the default executable, but exeext='' is most
 
2097
        # certainly right.
 
2098
        break;;
 
2099
    *.* )
 
2100
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2101
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2102
        # but it would be cool to find out if it's true.  Does anybody
 
2103
        # maintain Libtool? --akim.
 
2104
        export ac_cv_exeext
 
2105
        break;;
 
2106
    * )
 
2107
        break;;
2024
2108
  esac
2025
2109
done
2026
2110
else
2027
2111
  echo "$as_me: failed program was:" >&5
2028
 
cat conftest.$ac_ext >&5
2029
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2030
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2112
sed 's/^/| /' conftest.$ac_ext >&5
 
2113
 
 
2114
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2115
See \`config.log' for more details." >&5
 
2116
echo "$as_me: error: C compiler cannot create executables
 
2117
See \`config.log' for more details." >&2;}
2031
2118
   { (exit 77); exit 77; }; }
2032
2119
fi
2033
2120
 
2054
2141
        cross_compiling=yes
2055
2142
    else
2056
2143
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2057
 
If you meant to cross compile, use \`--host'." >&5
 
2144
If you meant to cross compile, use \`--host'.
 
2145
See \`config.log' for more details." >&5
2058
2146
echo "$as_me: error: cannot run C compiled programs.
2059
 
If you meant to cross compile, use \`--host'." >&2;}
 
2147
If you meant to cross compile, use \`--host'.
 
2148
See \`config.log' for more details." >&2;}
2060
2149
   { (exit 1); exit 1; }; }
2061
2150
    fi
2062
2151
  fi
2064
2153
echo "$as_me:$LINENO: result: yes" >&5
2065
2154
echo "${ECHO_T}yes" >&6
2066
2155
 
2067
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
2156
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2068
2157
ac_clean_files=$ac_clean_files_save
2069
2158
# Check the compiler produces executables we can run.  If not, either
2070
2159
# the compiler is broken, or we cross compile.
2084
2173
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2085
2174
# work properly (i.e., refer to `conftest.exe'), while it won't with
2086
2175
# `rm'.
2087
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2176
for ac_file in conftest.exe conftest conftest.*; do
 
2177
  test -f "$ac_file" || continue
2088
2178
  case $ac_file in
2089
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2179
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2090
2180
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091
2181
          export ac_cv_exeext
2092
2182
          break;;
2094
2184
  esac
2095
2185
done
2096
2186
else
2097
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2098
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
 
2187
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2188
See \`config.log' for more details." >&5
 
2189
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2190
See \`config.log' for more details." >&2;}
2099
2191
   { (exit 1); exit 1; }; }
2100
2192
fi
2101
2193
 
2113
2205
else
2114
2206
  cat >conftest.$ac_ext <<_ACEOF
2115
2207
#line $LINENO "configure"
2116
 
#include "confdefs.h"
 
2208
/* confdefs.h.  */
 
2209
_ACEOF
 
2210
cat confdefs.h >>conftest.$ac_ext
 
2211
cat >>conftest.$ac_ext <<_ACEOF
 
2212
/* end confdefs.h.  */
2117
2213
 
2118
 
#ifdef F77_DUMMY_MAIN
2119
 
#  ifdef __cplusplus
2120
 
     extern "C"
2121
 
#  endif
2122
 
   int F77_DUMMY_MAIN() { return 1; }
2123
 
#endif
2124
2214
int
2125
2215
main ()
2126
2216
{
2137
2227
  (exit $ac_status); }; then
2138
2228
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2139
2229
  case $ac_file in
2140
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2230
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2141
2231
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2142
2232
       break;;
2143
2233
  esac
2144
2234
done
2145
2235
else
2146
2236
  echo "$as_me: failed program was:" >&5
2147
 
cat conftest.$ac_ext >&5
2148
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2149
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
 
2237
sed 's/^/| /' conftest.$ac_ext >&5
 
2238
 
 
2239
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2240
See \`config.log' for more details." >&5
 
2241
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2242
See \`config.log' for more details." >&2;}
2150
2243
   { (exit 1); exit 1; }; }
2151
2244
fi
2152
2245
 
2163
2256
else
2164
2257
  cat >conftest.$ac_ext <<_ACEOF
2165
2258
#line $LINENO "configure"
2166
 
#include "confdefs.h"
 
2259
/* confdefs.h.  */
 
2260
_ACEOF
 
2261
cat confdefs.h >>conftest.$ac_ext
 
2262
cat >>conftest.$ac_ext <<_ACEOF
 
2263
/* end confdefs.h.  */
2167
2264
 
2168
 
#ifdef F77_DUMMY_MAIN
2169
 
#  ifdef __cplusplus
2170
 
     extern "C"
2171
 
#  endif
2172
 
   int F77_DUMMY_MAIN() { return 1; }
2173
 
#endif
2174
2265
int
2175
2266
main ()
2176
2267
{
2197
2288
  ac_compiler_gnu=yes
2198
2289
else
2199
2290
  echo "$as_me: failed program was:" >&5
2200
 
cat conftest.$ac_ext >&5
 
2291
sed 's/^/| /' conftest.$ac_ext >&5
 
2292
 
2201
2293
ac_compiler_gnu=no
2202
2294
fi
2203
2295
rm -f conftest.$ac_objext conftest.$ac_ext
2217
2309
else
2218
2310
  cat >conftest.$ac_ext <<_ACEOF
2219
2311
#line $LINENO "configure"
2220
 
#include "confdefs.h"
 
2312
/* confdefs.h.  */
 
2313
_ACEOF
 
2314
cat confdefs.h >>conftest.$ac_ext
 
2315
cat >>conftest.$ac_ext <<_ACEOF
 
2316
/* end confdefs.h.  */
2221
2317
 
2222
 
#ifdef F77_DUMMY_MAIN
2223
 
#  ifdef __cplusplus
2224
 
     extern "C"
2225
 
#  endif
2226
 
   int F77_DUMMY_MAIN() { return 1; }
2227
 
#endif
2228
2318
int
2229
2319
main ()
2230
2320
{
2248
2338
  ac_cv_prog_cc_g=yes
2249
2339
else
2250
2340
  echo "$as_me: failed program was:" >&5
2251
 
cat conftest.$ac_ext >&5
 
2341
sed 's/^/| /' conftest.$ac_ext >&5
 
2342
 
2252
2343
ac_cv_prog_cc_g=no
2253
2344
fi
2254
2345
rm -f conftest.$ac_objext conftest.$ac_ext
2259
2350
  CFLAGS=$ac_save_CFLAGS
2260
2351
elif test $ac_cv_prog_cc_g = yes; then
2261
2352
  if test "$GCC" = yes; then
2262
 
    CFLAGS="-g -O2 -Wall"
 
2353
    CFLAGS="-g -O2"
2263
2354
  else
2264
2355
    CFLAGS="-g"
2265
2356
  fi
2266
2357
else
2267
2358
  if test "$GCC" = yes; then
2268
 
    CFLAGS="-O2 -Wall"
 
2359
    CFLAGS="-O2"
2269
2360
  else
2270
2361
    CFLAGS=
2271
2362
  fi
2272
2363
fi
 
2364
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2365
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2366
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2368
else
 
2369
  ac_cv_prog_cc_stdc=no
 
2370
ac_save_CC=$CC
 
2371
cat >conftest.$ac_ext <<_ACEOF
 
2372
#line $LINENO "configure"
 
2373
/* confdefs.h.  */
 
2374
_ACEOF
 
2375
cat confdefs.h >>conftest.$ac_ext
 
2376
cat >>conftest.$ac_ext <<_ACEOF
 
2377
/* end confdefs.h.  */
 
2378
#include <stdarg.h>
 
2379
#include <stdio.h>
 
2380
#include <sys/types.h>
 
2381
#include <sys/stat.h>
 
2382
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2383
struct buf { int x; };
 
2384
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2385
static char *e (p, i)
 
2386
     char **p;
 
2387
     int i;
 
2388
{
 
2389
  return p[i];
 
2390
}
 
2391
static char *f (char * (*g) (char **, int), char **p, ...)
 
2392
{
 
2393
  char *s;
 
2394
  va_list v;
 
2395
  va_start (v,p);
 
2396
  s = g (p, va_arg (v,int));
 
2397
  va_end (v);
 
2398
  return s;
 
2399
}
 
2400
int test (int i, double x);
 
2401
struct s1 {int (*f) (int a);};
 
2402
struct s2 {int (*f) (double a);};
 
2403
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2404
int argc;
 
2405
char **argv;
 
2406
int
 
2407
main ()
 
2408
{
 
2409
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2410
  ;
 
2411
  return 0;
 
2412
}
 
2413
_ACEOF
 
2414
# Don't try gcc -ansi; that turns off useful extensions and
 
2415
# breaks some systems' header files.
 
2416
# AIX                   -qlanglvl=ansi
 
2417
# Ultrix and OSF/1      -std1
 
2418
# HP-UX 10.20 and later -Ae
 
2419
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2420
# SVR4                  -Xc -D__EXTENSIONS__
 
2421
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2422
do
 
2423
  CC="$ac_save_CC $ac_arg"
 
2424
  rm -f conftest.$ac_objext
 
2425
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2426
  (eval $ac_compile) 2>&5
 
2427
  ac_status=$?
 
2428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2429
  (exit $ac_status); } &&
 
2430
         { ac_try='test -s conftest.$ac_objext'
 
2431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2432
  (eval $ac_try) 2>&5
 
2433
  ac_status=$?
 
2434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2435
  (exit $ac_status); }; }; then
 
2436
  ac_cv_prog_cc_stdc=$ac_arg
 
2437
break
 
2438
else
 
2439
  echo "$as_me: failed program was:" >&5
 
2440
sed 's/^/| /' conftest.$ac_ext >&5
 
2441
 
 
2442
fi
 
2443
rm -f conftest.$ac_objext
 
2444
done
 
2445
rm -f conftest.$ac_ext conftest.$ac_objext
 
2446
CC=$ac_save_CC
 
2447
 
 
2448
fi
 
2449
 
 
2450
case "x$ac_cv_prog_cc_stdc" in
 
2451
  x|xno)
 
2452
    echo "$as_me:$LINENO: result: none needed" >&5
 
2453
echo "${ECHO_T}none needed" >&6 ;;
 
2454
  *)
 
2455
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2456
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2457
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2458
esac
 
2459
 
2273
2460
# Some people use a C++ compiler to compile C.  Since we use `exit',
2274
2461
# in C++ we need to declare it.  In case someone uses the same compiler
2275
2462
# for both compiling C and C++ we need to have the C++ compiler decide
2302
2489
do
2303
2490
  cat >conftest.$ac_ext <<_ACEOF
2304
2491
#line $LINENO "configure"
2305
 
#include "confdefs.h"
 
2492
/* confdefs.h.  */
 
2493
_ACEOF
 
2494
cat confdefs.h >>conftest.$ac_ext
 
2495
cat >>conftest.$ac_ext <<_ACEOF
 
2496
/* end confdefs.h.  */
2306
2497
#include <stdlib.h>
2307
2498
$ac_declaration
2308
 
#ifdef F77_DUMMY_MAIN
2309
 
#  ifdef __cplusplus
2310
 
     extern "C"
2311
 
#  endif
2312
 
   int F77_DUMMY_MAIN() { return 1; }
2313
 
#endif
2314
2499
int
2315
2500
main ()
2316
2501
{
2334
2519
  :
2335
2520
else
2336
2521
  echo "$as_me: failed program was:" >&5
2337
 
cat conftest.$ac_ext >&5
 
2522
sed 's/^/| /' conftest.$ac_ext >&5
 
2523
 
2338
2524
continue
2339
2525
fi
2340
2526
rm -f conftest.$ac_objext conftest.$ac_ext
2341
2527
  cat >conftest.$ac_ext <<_ACEOF
2342
2528
#line $LINENO "configure"
2343
 
#include "confdefs.h"
 
2529
/* confdefs.h.  */
 
2530
_ACEOF
 
2531
cat confdefs.h >>conftest.$ac_ext
 
2532
cat >>conftest.$ac_ext <<_ACEOF
 
2533
/* end confdefs.h.  */
2344
2534
$ac_declaration
2345
 
#ifdef F77_DUMMY_MAIN
2346
 
#  ifdef __cplusplus
2347
 
     extern "C"
2348
 
#  endif
2349
 
   int F77_DUMMY_MAIN() { return 1; }
2350
 
#endif
2351
2535
int
2352
2536
main ()
2353
2537
{
2371
2555
  break
2372
2556
else
2373
2557
  echo "$as_me: failed program was:" >&5
2374
 
cat conftest.$ac_ext >&5
 
2558
sed 's/^/| /' conftest.$ac_ext >&5
 
2559
 
2375
2560
fi
2376
2561
rm -f conftest.$ac_objext conftest.$ac_ext
2377
2562
done
2384
2569
 
2385
2570
else
2386
2571
  echo "$as_me: failed program was:" >&5
2387
 
cat conftest.$ac_ext >&5
 
2572
sed 's/^/| /' conftest.$ac_ext >&5
 
2573
 
2388
2574
fi
2389
2575
rm -f conftest.$ac_objext conftest.$ac_ext
2390
2576
ac_ext=c
2522
2708
do
2523
2709
  # Use a header file that comes with gcc, so configuring glibc
2524
2710
  # with a fresh cross-compiler works.
 
2711
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2712
  # <limits.h> exists even on freestanding compilers.
2525
2713
  # On the NeXT, cc -E runs the code through the compiler's parser,
2526
2714
  # not just through cpp. "Syntax error" is here to catch this case.
2527
2715
  cat >conftest.$ac_ext <<_ACEOF
2528
2716
#line $LINENO "configure"
2529
 
#include "confdefs.h"
2530
 
#include <assert.h>
 
2717
/* confdefs.h.  */
 
2718
_ACEOF
 
2719
cat confdefs.h >>conftest.$ac_ext
 
2720
cat >>conftest.$ac_ext <<_ACEOF
 
2721
/* end confdefs.h.  */
 
2722
#ifdef __STDC__
 
2723
# include <limits.h>
 
2724
#else
 
2725
# include <assert.h>
 
2726
#endif
2531
2727
                     Syntax error
2532
2728
_ACEOF
2533
2729
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534
2730
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535
2731
  ac_status=$?
2536
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2732
  grep -v '^ *+' conftest.er1 >conftest.err
2537
2733
  rm -f conftest.er1
2538
2734
  cat conftest.err >&5
2539
2735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550
2746
  :
2551
2747
else
2552
2748
  echo "$as_me: failed program was:" >&5
2553
 
  cat conftest.$ac_ext >&5
 
2749
sed 's/^/| /' conftest.$ac_ext >&5
 
2750
 
2554
2751
  # Broken: fails on valid input.
2555
2752
continue
2556
2753
fi
2560
2757
  # can be detected and how.
2561
2758
  cat >conftest.$ac_ext <<_ACEOF
2562
2759
#line $LINENO "configure"
2563
 
#include "confdefs.h"
 
2760
/* confdefs.h.  */
 
2761
_ACEOF
 
2762
cat confdefs.h >>conftest.$ac_ext
 
2763
cat >>conftest.$ac_ext <<_ACEOF
 
2764
/* end confdefs.h.  */
2564
2765
#include <ac_nonexistent.h>
2565
2766
_ACEOF
2566
2767
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2567
2768
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568
2769
  ac_status=$?
2569
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2770
  grep -v '^ *+' conftest.er1 >conftest.err
2570
2771
  rm -f conftest.er1
2571
2772
  cat conftest.err >&5
2572
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
2785
continue
2585
2786
else
2586
2787
  echo "$as_me: failed program was:" >&5
2587
 
  cat conftest.$ac_ext >&5
 
2788
sed 's/^/| /' conftest.$ac_ext >&5
 
2789
 
2588
2790
  # Passes both tests.
2589
2791
ac_preproc_ok=:
2590
2792
break
2613
2815
do
2614
2816
  # Use a header file that comes with gcc, so configuring glibc
2615
2817
  # with a fresh cross-compiler works.
 
2818
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2819
  # <limits.h> exists even on freestanding compilers.
2616
2820
  # On the NeXT, cc -E runs the code through the compiler's parser,
2617
2821
  # not just through cpp. "Syntax error" is here to catch this case.
2618
2822
  cat >conftest.$ac_ext <<_ACEOF
2619
2823
#line $LINENO "configure"
2620
 
#include "confdefs.h"
2621
 
#include <assert.h>
 
2824
/* confdefs.h.  */
 
2825
_ACEOF
 
2826
cat confdefs.h >>conftest.$ac_ext
 
2827
cat >>conftest.$ac_ext <<_ACEOF
 
2828
/* end confdefs.h.  */
 
2829
#ifdef __STDC__
 
2830
# include <limits.h>
 
2831
#else
 
2832
# include <assert.h>
 
2833
#endif
2622
2834
                     Syntax error
2623
2835
_ACEOF
2624
2836
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625
2837
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626
2838
  ac_status=$?
2627
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2839
  grep -v '^ *+' conftest.er1 >conftest.err
2628
2840
  rm -f conftest.er1
2629
2841
  cat conftest.err >&5
2630
2842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
2853
  :
2642
2854
else
2643
2855
  echo "$as_me: failed program was:" >&5
2644
 
  cat conftest.$ac_ext >&5
 
2856
sed 's/^/| /' conftest.$ac_ext >&5
 
2857
 
2645
2858
  # Broken: fails on valid input.
2646
2859
continue
2647
2860
fi
2651
2864
  # can be detected and how.
2652
2865
  cat >conftest.$ac_ext <<_ACEOF
2653
2866
#line $LINENO "configure"
2654
 
#include "confdefs.h"
 
2867
/* confdefs.h.  */
 
2868
_ACEOF
 
2869
cat confdefs.h >>conftest.$ac_ext
 
2870
cat >>conftest.$ac_ext <<_ACEOF
 
2871
/* end confdefs.h.  */
2655
2872
#include <ac_nonexistent.h>
2656
2873
_ACEOF
2657
2874
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658
2875
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659
2876
  ac_status=$?
2660
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2877
  grep -v '^ *+' conftest.er1 >conftest.err
2661
2878
  rm -f conftest.er1
2662
2879
  cat conftest.err >&5
2663
2880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675
2892
continue
2676
2893
else
2677
2894
  echo "$as_me: failed program was:" >&5
2678
 
  cat conftest.$ac_ext >&5
 
2895
sed 's/^/| /' conftest.$ac_ext >&5
 
2896
 
2679
2897
  # Passes both tests.
2680
2898
ac_preproc_ok=:
2681
2899
break
2688
2906
if $ac_preproc_ok; then
2689
2907
  :
2690
2908
else
2691
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2692
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
2909
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2910
See \`config.log' for more details." >&5
 
2911
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2912
See \`config.log' for more details." >&2;}
2693
2913
   { (exit 1); exit 1; }; }
2694
2914
fi
2695
2915
 
2799
3019
  # First, try using that file with no special directory specified.
2800
3020
  cat >conftest.$ac_ext <<_ACEOF
2801
3021
#line $LINENO "configure"
2802
 
#include "confdefs.h"
 
3022
/* confdefs.h.  */
 
3023
_ACEOF
 
3024
cat confdefs.h >>conftest.$ac_ext
 
3025
cat >>conftest.$ac_ext <<_ACEOF
 
3026
/* end confdefs.h.  */
2803
3027
#include <X11/Intrinsic.h>
2804
3028
_ACEOF
2805
3029
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2806
3030
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2807
3031
  ac_status=$?
2808
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3032
  grep -v '^ *+' conftest.er1 >conftest.err
2809
3033
  rm -f conftest.er1
2810
3034
  cat conftest.err >&5
2811
3035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
3047
ac_x_includes=
2824
3048
else
2825
3049
  echo "$as_me: failed program was:" >&5
2826
 
  cat conftest.$ac_ext >&5
 
3050
sed 's/^/| /' conftest.$ac_ext >&5
 
3051
 
2827
3052
  for ac_dir in $ac_x_header_dirs; do
2828
3053
  if test -r "$ac_dir/X11/Intrinsic.h"; then
2829
3054
    ac_x_includes=$ac_dir
2842
3067
  LIBS="-lXt $LIBS"
2843
3068
  cat >conftest.$ac_ext <<_ACEOF
2844
3069
#line $LINENO "configure"
2845
 
#include "confdefs.h"
 
3070
/* confdefs.h.  */
 
3071
_ACEOF
 
3072
cat confdefs.h >>conftest.$ac_ext
 
3073
cat >>conftest.$ac_ext <<_ACEOF
 
3074
/* end confdefs.h.  */
2846
3075
#include <X11/Intrinsic.h>
2847
 
#ifdef F77_DUMMY_MAIN
2848
 
#  ifdef __cplusplus
2849
 
     extern "C"
2850
 
#  endif
2851
 
   int F77_DUMMY_MAIN() { return 1; }
2852
 
#endif
2853
3076
int
2854
3077
main ()
2855
3078
{
2875
3098
ac_x_libraries=
2876
3099
else
2877
3100
  echo "$as_me: failed program was:" >&5
2878
 
cat conftest.$ac_ext >&5
 
3101
sed 's/^/| /' conftest.$ac_ext >&5
 
3102
 
2879
3103
LIBS=$ac_save_LIBS
2880
3104
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2881
3105
do
2945
3169
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2946
3170
      cat >conftest.$ac_ext <<_ACEOF
2947
3171
#line $LINENO "configure"
2948
 
#include "confdefs.h"
 
3172
/* confdefs.h.  */
 
3173
_ACEOF
 
3174
cat confdefs.h >>conftest.$ac_ext
 
3175
cat >>conftest.$ac_ext <<_ACEOF
 
3176
/* end confdefs.h.  */
2949
3177
 
2950
 
#ifdef F77_DUMMY_MAIN
2951
 
#  ifdef __cplusplus
2952
 
     extern "C"
2953
 
#  endif
2954
 
   int F77_DUMMY_MAIN() { return 1; }
2955
 
#endif
2956
3178
int
2957
3179
main ()
2958
3180
{
2976
3198
  ac_R_nospace=yes
2977
3199
else
2978
3200
  echo "$as_me: failed program was:" >&5
2979
 
cat conftest.$ac_ext >&5
 
3201
sed 's/^/| /' conftest.$ac_ext >&5
 
3202
 
2980
3203
ac_R_nospace=no
2981
3204
fi
2982
3205
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2988
3211
        LIBS="$ac_xsave_LIBS -R $x_libraries"
2989
3212
        cat >conftest.$ac_ext <<_ACEOF
2990
3213
#line $LINENO "configure"
2991
 
#include "confdefs.h"
 
3214
/* confdefs.h.  */
 
3215
_ACEOF
 
3216
cat confdefs.h >>conftest.$ac_ext
 
3217
cat >>conftest.$ac_ext <<_ACEOF
 
3218
/* end confdefs.h.  */
2992
3219
 
2993
 
#ifdef F77_DUMMY_MAIN
2994
 
#  ifdef __cplusplus
2995
 
     extern "C"
2996
 
#  endif
2997
 
   int F77_DUMMY_MAIN() { return 1; }
2998
 
#endif
2999
3220
int
3000
3221
main ()
3001
3222
{
3019
3240
  ac_R_space=yes
3020
3241
else
3021
3242
  echo "$as_me: failed program was:" >&5
3022
 
cat conftest.$ac_ext >&5
 
3243
sed 's/^/| /' conftest.$ac_ext >&5
 
3244
 
3023
3245
ac_R_space=no
3024
3246
fi
3025
3247
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3049
3271
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3050
3272
    cat >conftest.$ac_ext <<_ACEOF
3051
3273
#line $LINENO "configure"
3052
 
#include "confdefs.h"
 
3274
/* confdefs.h.  */
 
3275
_ACEOF
 
3276
cat confdefs.h >>conftest.$ac_ext
 
3277
cat >>conftest.$ac_ext <<_ACEOF
 
3278
/* end confdefs.h.  */
3053
3279
 
3054
3280
/* Override any gcc2 internal prototype to avoid an error.  */
3055
3281
#ifdef __cplusplus
3058
3284
/* We use char because int might match the return type of a gcc2
3059
3285
   builtin and then its argument prototype would still apply.  */
3060
3286
char XOpenDisplay ();
3061
 
#ifdef F77_DUMMY_MAIN
3062
 
#  ifdef __cplusplus
3063
 
     extern "C"
3064
 
#  endif
3065
 
   int F77_DUMMY_MAIN() { return 1; }
3066
 
#endif
3067
3287
int
3068
3288
main ()
3069
3289
{
3087
3307
  :
3088
3308
else
3089
3309
  echo "$as_me: failed program was:" >&5
3090
 
cat conftest.$ac_ext >&5
 
3310
sed 's/^/| /' conftest.$ac_ext >&5
 
3311
 
3091
3312
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3092
3313
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3093
3314
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3097
3318
LIBS="-ldnet  $LIBS"
3098
3319
cat >conftest.$ac_ext <<_ACEOF
3099
3320
#line $LINENO "configure"
3100
 
#include "confdefs.h"
 
3321
/* confdefs.h.  */
 
3322
_ACEOF
 
3323
cat confdefs.h >>conftest.$ac_ext
 
3324
cat >>conftest.$ac_ext <<_ACEOF
 
3325
/* end confdefs.h.  */
3101
3326
 
3102
3327
/* Override any gcc2 internal prototype to avoid an error.  */
3103
3328
#ifdef __cplusplus
3106
3331
/* We use char because int might match the return type of a gcc2
3107
3332
   builtin and then its argument prototype would still apply.  */
3108
3333
char dnet_ntoa ();
3109
 
#ifdef F77_DUMMY_MAIN
3110
 
#  ifdef __cplusplus
3111
 
     extern "C"
3112
 
#  endif
3113
 
   int F77_DUMMY_MAIN() { return 1; }
3114
 
#endif
3115
3334
int
3116
3335
main ()
3117
3336
{
3135
3354
  ac_cv_lib_dnet_dnet_ntoa=yes
3136
3355
else
3137
3356
  echo "$as_me: failed program was:" >&5
3138
 
cat conftest.$ac_ext >&5
 
3357
sed 's/^/| /' conftest.$ac_ext >&5
 
3358
 
3139
3359
ac_cv_lib_dnet_dnet_ntoa=no
3140
3360
fi
3141
3361
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3157
3377
LIBS="-ldnet_stub  $LIBS"
3158
3378
cat >conftest.$ac_ext <<_ACEOF
3159
3379
#line $LINENO "configure"
3160
 
#include "confdefs.h"
 
3380
/* confdefs.h.  */
 
3381
_ACEOF
 
3382
cat confdefs.h >>conftest.$ac_ext
 
3383
cat >>conftest.$ac_ext <<_ACEOF
 
3384
/* end confdefs.h.  */
3161
3385
 
3162
3386
/* Override any gcc2 internal prototype to avoid an error.  */
3163
3387
#ifdef __cplusplus
3166
3390
/* We use char because int might match the return type of a gcc2
3167
3391
   builtin and then its argument prototype would still apply.  */
3168
3392
char dnet_ntoa ();
3169
 
#ifdef F77_DUMMY_MAIN
3170
 
#  ifdef __cplusplus
3171
 
     extern "C"
3172
 
#  endif
3173
 
   int F77_DUMMY_MAIN() { return 1; }
3174
 
#endif
3175
3393
int
3176
3394
main ()
3177
3395
{
3195
3413
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3196
3414
else
3197
3415
  echo "$as_me: failed program was:" >&5
3198
 
cat conftest.$ac_ext >&5
 
3416
sed 's/^/| /' conftest.$ac_ext >&5
 
3417
 
3199
3418
ac_cv_lib_dnet_stub_dnet_ntoa=no
3200
3419
fi
3201
3420
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3227
3446
else
3228
3447
  cat >conftest.$ac_ext <<_ACEOF
3229
3448
#line $LINENO "configure"
3230
 
#include "confdefs.h"
 
3449
/* confdefs.h.  */
 
3450
_ACEOF
 
3451
cat confdefs.h >>conftest.$ac_ext
 
3452
cat >>conftest.$ac_ext <<_ACEOF
 
3453
/* end confdefs.h.  */
3231
3454
/* System header to define __stub macros and hopefully few prototypes,
3232
 
    which can conflict with char gethostbyname (); below.  */
3233
 
#include <assert.h>
 
3455
    which can conflict with char gethostbyname (); below.
 
3456
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3457
    <limits.h> exists even on freestanding compilers.  */
 
3458
#ifdef __STDC__
 
3459
# include <limits.h>
 
3460
#else
 
3461
# include <assert.h>
 
3462
#endif
3234
3463
/* Override any gcc2 internal prototype to avoid an error.  */
3235
3464
#ifdef __cplusplus
3236
3465
extern "C"
 
3466
{
3237
3467
#endif
3238
3468
/* We use char because int might match the return type of a gcc2
3239
3469
   builtin and then its argument prototype would still apply.  */
3240
3470
char gethostbyname ();
3241
 
char (*f) ();
3242
 
 
3243
 
#ifdef F77_DUMMY_MAIN
3244
 
#  ifdef __cplusplus
3245
 
     extern "C"
3246
 
#  endif
3247
 
   int F77_DUMMY_MAIN() { return 1; }
3248
 
#endif
3249
 
int
3250
 
main ()
3251
 
{
3252
3471
/* The GNU C library defines this for functions which it implements
3253
3472
    to always fail with ENOSYS.  Some functions are actually named
3254
3473
    something starting with __ and the normal name is an alias.  */
3255
3474
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3256
3475
choke me
3257
3476
#else
3258
 
f = gethostbyname;
 
3477
char (*f) () = gethostbyname;
 
3478
#endif
 
3479
#ifdef __cplusplus
 
3480
}
3259
3481
#endif
3260
3482
 
 
3483
int
 
3484
main ()
 
3485
{
 
3486
return f != gethostbyname;
3261
3487
  ;
3262
3488
  return 0;
3263
3489
}
3277
3503
  ac_cv_func_gethostbyname=yes
3278
3504
else
3279
3505
  echo "$as_me: failed program was:" >&5
3280
 
cat conftest.$ac_ext >&5
 
3506
sed 's/^/| /' conftest.$ac_ext >&5
 
3507
 
3281
3508
ac_cv_func_gethostbyname=no
3282
3509
fi
3283
3510
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3295
3522
LIBS="-lnsl  $LIBS"
3296
3523
cat >conftest.$ac_ext <<_ACEOF
3297
3524
#line $LINENO "configure"
3298
 
#include "confdefs.h"
 
3525
/* confdefs.h.  */
 
3526
_ACEOF
 
3527
cat confdefs.h >>conftest.$ac_ext
 
3528
cat >>conftest.$ac_ext <<_ACEOF
 
3529
/* end confdefs.h.  */
3299
3530
 
3300
3531
/* Override any gcc2 internal prototype to avoid an error.  */
3301
3532
#ifdef __cplusplus
3304
3535
/* We use char because int might match the return type of a gcc2
3305
3536
   builtin and then its argument prototype would still apply.  */
3306
3537
char gethostbyname ();
3307
 
#ifdef F77_DUMMY_MAIN
3308
 
#  ifdef __cplusplus
3309
 
     extern "C"
3310
 
#  endif
3311
 
   int F77_DUMMY_MAIN() { return 1; }
3312
 
#endif
3313
3538
int
3314
3539
main ()
3315
3540
{
3333
3558
  ac_cv_lib_nsl_gethostbyname=yes
3334
3559
else
3335
3560
  echo "$as_me: failed program was:" >&5
3336
 
cat conftest.$ac_ext >&5
 
3561
sed 's/^/| /' conftest.$ac_ext >&5
 
3562
 
3337
3563
ac_cv_lib_nsl_gethostbyname=no
3338
3564
fi
3339
3565
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3355
3581
LIBS="-lbsd  $LIBS"
3356
3582
cat >conftest.$ac_ext <<_ACEOF
3357
3583
#line $LINENO "configure"
3358
 
#include "confdefs.h"
 
3584
/* confdefs.h.  */
 
3585
_ACEOF
 
3586
cat confdefs.h >>conftest.$ac_ext
 
3587
cat >>conftest.$ac_ext <<_ACEOF
 
3588
/* end confdefs.h.  */
3359
3589
 
3360
3590
/* Override any gcc2 internal prototype to avoid an error.  */
3361
3591
#ifdef __cplusplus
3364
3594
/* We use char because int might match the return type of a gcc2
3365
3595
   builtin and then its argument prototype would still apply.  */
3366
3596
char gethostbyname ();
3367
 
#ifdef F77_DUMMY_MAIN
3368
 
#  ifdef __cplusplus
3369
 
     extern "C"
3370
 
#  endif
3371
 
   int F77_DUMMY_MAIN() { return 1; }
3372
 
#endif
3373
3597
int
3374
3598
main ()
3375
3599
{
3393
3617
  ac_cv_lib_bsd_gethostbyname=yes
3394
3618
else
3395
3619
  echo "$as_me: failed program was:" >&5
3396
 
cat conftest.$ac_ext >&5
 
3620
sed 's/^/| /' conftest.$ac_ext >&5
 
3621
 
3397
3622
ac_cv_lib_bsd_gethostbyname=no
3398
3623
fi
3399
3624
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3412
3637
    # socket/setsockopt and other routines are undefined under SCO ODT
3413
3638
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3414
3639
    # on later versions), says Simon Leinen: it contains gethostby*
3415
 
    # variants that don't use the nameserver (or something).  -lsocket
 
3640
    # variants that don't use the name server (or something).  -lsocket
3416
3641
    # must be given before -lnsl if both are needed.  We assume that
3417
3642
    # if connect needs -lnsl, so does gethostbyname.
3418
3643
    echo "$as_me:$LINENO: checking for connect" >&5
3422
3647
else
3423
3648
  cat >conftest.$ac_ext <<_ACEOF
3424
3649
#line $LINENO "configure"
3425
 
#include "confdefs.h"
 
3650
/* confdefs.h.  */
 
3651
_ACEOF
 
3652
cat confdefs.h >>conftest.$ac_ext
 
3653
cat >>conftest.$ac_ext <<_ACEOF
 
3654
/* end confdefs.h.  */
3426
3655
/* System header to define __stub macros and hopefully few prototypes,
3427
 
    which can conflict with char connect (); below.  */
3428
 
#include <assert.h>
 
3656
    which can conflict with char connect (); below.
 
3657
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3658
    <limits.h> exists even on freestanding compilers.  */
 
3659
#ifdef __STDC__
 
3660
# include <limits.h>
 
3661
#else
 
3662
# include <assert.h>
 
3663
#endif
3429
3664
/* Override any gcc2 internal prototype to avoid an error.  */
3430
3665
#ifdef __cplusplus
3431
3666
extern "C"
 
3667
{
3432
3668
#endif
3433
3669
/* We use char because int might match the return type of a gcc2
3434
3670
   builtin and then its argument prototype would still apply.  */
3435
3671
char connect ();
3436
 
char (*f) ();
3437
 
 
3438
 
#ifdef F77_DUMMY_MAIN
3439
 
#  ifdef __cplusplus
3440
 
     extern "C"
3441
 
#  endif
3442
 
   int F77_DUMMY_MAIN() { return 1; }
3443
 
#endif
3444
 
int
3445
 
main ()
3446
 
{
3447
3672
/* The GNU C library defines this for functions which it implements
3448
3673
    to always fail with ENOSYS.  Some functions are actually named
3449
3674
    something starting with __ and the normal name is an alias.  */
3450
3675
#if defined (__stub_connect) || defined (__stub___connect)
3451
3676
choke me
3452
3677
#else
3453
 
f = connect;
 
3678
char (*f) () = connect;
 
3679
#endif
 
3680
#ifdef __cplusplus
 
3681
}
3454
3682
#endif
3455
3683
 
 
3684
int
 
3685
main ()
 
3686
{
 
3687
return f != connect;
3456
3688
  ;
3457
3689
  return 0;
3458
3690
}
3472
3704
  ac_cv_func_connect=yes
3473
3705
else
3474
3706
  echo "$as_me: failed program was:" >&5
3475
 
cat conftest.$ac_ext >&5
 
3707
sed 's/^/| /' conftest.$ac_ext >&5
 
3708
 
3476
3709
ac_cv_func_connect=no
3477
3710
fi
3478
3711
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3490
3723
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3491
3724
cat >conftest.$ac_ext <<_ACEOF
3492
3725
#line $LINENO "configure"
3493
 
#include "confdefs.h"
 
3726
/* confdefs.h.  */
 
3727
_ACEOF
 
3728
cat confdefs.h >>conftest.$ac_ext
 
3729
cat >>conftest.$ac_ext <<_ACEOF
 
3730
/* end confdefs.h.  */
3494
3731
 
3495
3732
/* Override any gcc2 internal prototype to avoid an error.  */
3496
3733
#ifdef __cplusplus
3499
3736
/* We use char because int might match the return type of a gcc2
3500
3737
   builtin and then its argument prototype would still apply.  */
3501
3738
char connect ();
3502
 
#ifdef F77_DUMMY_MAIN
3503
 
#  ifdef __cplusplus
3504
 
     extern "C"
3505
 
#  endif
3506
 
   int F77_DUMMY_MAIN() { return 1; }
3507
 
#endif
3508
3739
int
3509
3740
main ()
3510
3741
{
3528
3759
  ac_cv_lib_socket_connect=yes
3529
3760
else
3530
3761
  echo "$as_me: failed program was:" >&5
3531
 
cat conftest.$ac_ext >&5
 
3762
sed 's/^/| /' conftest.$ac_ext >&5
 
3763
 
3532
3764
ac_cv_lib_socket_connect=no
3533
3765
fi
3534
3766
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3550
3782
else
3551
3783
  cat >conftest.$ac_ext <<_ACEOF
3552
3784
#line $LINENO "configure"
3553
 
#include "confdefs.h"
 
3785
/* confdefs.h.  */
 
3786
_ACEOF
 
3787
cat confdefs.h >>conftest.$ac_ext
 
3788
cat >>conftest.$ac_ext <<_ACEOF
 
3789
/* end confdefs.h.  */
3554
3790
/* System header to define __stub macros and hopefully few prototypes,
3555
 
    which can conflict with char remove (); below.  */
3556
 
#include <assert.h>
 
3791
    which can conflict with char remove (); below.
 
3792
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3793
    <limits.h> exists even on freestanding compilers.  */
 
3794
#ifdef __STDC__
 
3795
# include <limits.h>
 
3796
#else
 
3797
# include <assert.h>
 
3798
#endif
3557
3799
/* Override any gcc2 internal prototype to avoid an error.  */
3558
3800
#ifdef __cplusplus
3559
3801
extern "C"
 
3802
{
3560
3803
#endif
3561
3804
/* We use char because int might match the return type of a gcc2
3562
3805
   builtin and then its argument prototype would still apply.  */
3563
3806
char remove ();
3564
 
char (*f) ();
3565
 
 
3566
 
#ifdef F77_DUMMY_MAIN
3567
 
#  ifdef __cplusplus
3568
 
     extern "C"
3569
 
#  endif
3570
 
   int F77_DUMMY_MAIN() { return 1; }
3571
 
#endif
3572
 
int
3573
 
main ()
3574
 
{
3575
3807
/* The GNU C library defines this for functions which it implements
3576
3808
    to always fail with ENOSYS.  Some functions are actually named
3577
3809
    something starting with __ and the normal name is an alias.  */
3578
3810
#if defined (__stub_remove) || defined (__stub___remove)
3579
3811
choke me
3580
3812
#else
3581
 
f = remove;
 
3813
char (*f) () = remove;
 
3814
#endif
 
3815
#ifdef __cplusplus
 
3816
}
3582
3817
#endif
3583
3818
 
 
3819
int
 
3820
main ()
 
3821
{
 
3822
return f != remove;
3584
3823
  ;
3585
3824
  return 0;
3586
3825
}
3600
3839
  ac_cv_func_remove=yes
3601
3840
else
3602
3841
  echo "$as_me: failed program was:" >&5
3603
 
cat conftest.$ac_ext >&5
 
3842
sed 's/^/| /' conftest.$ac_ext >&5
 
3843
 
3604
3844
ac_cv_func_remove=no
3605
3845
fi
3606
3846
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3618
3858
LIBS="-lposix  $LIBS"
3619
3859
cat >conftest.$ac_ext <<_ACEOF
3620
3860
#line $LINENO "configure"
3621
 
#include "confdefs.h"
 
3861
/* confdefs.h.  */
 
3862
_ACEOF
 
3863
cat confdefs.h >>conftest.$ac_ext
 
3864
cat >>conftest.$ac_ext <<_ACEOF
 
3865
/* end confdefs.h.  */
3622
3866
 
3623
3867
/* Override any gcc2 internal prototype to avoid an error.  */
3624
3868
#ifdef __cplusplus
3627
3871
/* We use char because int might match the return type of a gcc2
3628
3872
   builtin and then its argument prototype would still apply.  */
3629
3873
char remove ();
3630
 
#ifdef F77_DUMMY_MAIN
3631
 
#  ifdef __cplusplus
3632
 
     extern "C"
3633
 
#  endif
3634
 
   int F77_DUMMY_MAIN() { return 1; }
3635
 
#endif
3636
3874
int
3637
3875
main ()
3638
3876
{
3656
3894
  ac_cv_lib_posix_remove=yes
3657
3895
else
3658
3896
  echo "$as_me: failed program was:" >&5
3659
 
cat conftest.$ac_ext >&5
 
3897
sed 's/^/| /' conftest.$ac_ext >&5
 
3898
 
3660
3899
ac_cv_lib_posix_remove=no
3661
3900
fi
3662
3901
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3678
3917
else
3679
3918
  cat >conftest.$ac_ext <<_ACEOF
3680
3919
#line $LINENO "configure"
3681
 
#include "confdefs.h"
 
3920
/* confdefs.h.  */
 
3921
_ACEOF
 
3922
cat confdefs.h >>conftest.$ac_ext
 
3923
cat >>conftest.$ac_ext <<_ACEOF
 
3924
/* end confdefs.h.  */
3682
3925
/* System header to define __stub macros and hopefully few prototypes,
3683
 
    which can conflict with char shmat (); below.  */
3684
 
#include <assert.h>
 
3926
    which can conflict with char shmat (); below.
 
3927
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3928
    <limits.h> exists even on freestanding compilers.  */
 
3929
#ifdef __STDC__
 
3930
# include <limits.h>
 
3931
#else
 
3932
# include <assert.h>
 
3933
#endif
3685
3934
/* Override any gcc2 internal prototype to avoid an error.  */
3686
3935
#ifdef __cplusplus
3687
3936
extern "C"
 
3937
{
3688
3938
#endif
3689
3939
/* We use char because int might match the return type of a gcc2
3690
3940
   builtin and then its argument prototype would still apply.  */
3691
3941
char shmat ();
3692
 
char (*f) ();
3693
 
 
3694
 
#ifdef F77_DUMMY_MAIN
3695
 
#  ifdef __cplusplus
3696
 
     extern "C"
3697
 
#  endif
3698
 
   int F77_DUMMY_MAIN() { return 1; }
3699
 
#endif
3700
 
int
3701
 
main ()
3702
 
{
3703
3942
/* The GNU C library defines this for functions which it implements
3704
3943
    to always fail with ENOSYS.  Some functions are actually named
3705
3944
    something starting with __ and the normal name is an alias.  */
3706
3945
#if defined (__stub_shmat) || defined (__stub___shmat)
3707
3946
choke me
3708
3947
#else
3709
 
f = shmat;
 
3948
char (*f) () = shmat;
 
3949
#endif
 
3950
#ifdef __cplusplus
 
3951
}
3710
3952
#endif
3711
3953
 
 
3954
int
 
3955
main ()
 
3956
{
 
3957
return f != shmat;
3712
3958
  ;
3713
3959
  return 0;
3714
3960
}
3728
3974
  ac_cv_func_shmat=yes
3729
3975
else
3730
3976
  echo "$as_me: failed program was:" >&5
3731
 
cat conftest.$ac_ext >&5
 
3977
sed 's/^/| /' conftest.$ac_ext >&5
 
3978
 
3732
3979
ac_cv_func_shmat=no
3733
3980
fi
3734
3981
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3746
3993
LIBS="-lipc  $LIBS"
3747
3994
cat >conftest.$ac_ext <<_ACEOF
3748
3995
#line $LINENO "configure"
3749
 
#include "confdefs.h"
 
3996
/* confdefs.h.  */
 
3997
_ACEOF
 
3998
cat confdefs.h >>conftest.$ac_ext
 
3999
cat >>conftest.$ac_ext <<_ACEOF
 
4000
/* end confdefs.h.  */
3750
4001
 
3751
4002
/* Override any gcc2 internal prototype to avoid an error.  */
3752
4003
#ifdef __cplusplus
3755
4006
/* We use char because int might match the return type of a gcc2
3756
4007
   builtin and then its argument prototype would still apply.  */
3757
4008
char shmat ();
3758
 
#ifdef F77_DUMMY_MAIN
3759
 
#  ifdef __cplusplus
3760
 
     extern "C"
3761
 
#  endif
3762
 
   int F77_DUMMY_MAIN() { return 1; }
3763
 
#endif
3764
4009
int
3765
4010
main ()
3766
4011
{
3784
4029
  ac_cv_lib_ipc_shmat=yes
3785
4030
else
3786
4031
  echo "$as_me: failed program was:" >&5
3787
 
cat conftest.$ac_ext >&5
 
4032
sed 's/^/| /' conftest.$ac_ext >&5
 
4033
 
3788
4034
ac_cv_lib_ipc_shmat=no
3789
4035
fi
3790
4036
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3817
4063
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3818
4064
cat >conftest.$ac_ext <<_ACEOF
3819
4065
#line $LINENO "configure"
3820
 
#include "confdefs.h"
 
4066
/* confdefs.h.  */
 
4067
_ACEOF
 
4068
cat confdefs.h >>conftest.$ac_ext
 
4069
cat >>conftest.$ac_ext <<_ACEOF
 
4070
/* end confdefs.h.  */
3821
4071
 
3822
4072
/* Override any gcc2 internal prototype to avoid an error.  */
3823
4073
#ifdef __cplusplus
3826
4076
/* We use char because int might match the return type of a gcc2
3827
4077
   builtin and then its argument prototype would still apply.  */
3828
4078
char IceConnectionNumber ();
3829
 
#ifdef F77_DUMMY_MAIN
3830
 
#  ifdef __cplusplus
3831
 
     extern "C"
3832
 
#  endif
3833
 
   int F77_DUMMY_MAIN() { return 1; }
3834
 
#endif
3835
4079
int
3836
4080
main ()
3837
4081
{
3855
4099
  ac_cv_lib_ICE_IceConnectionNumber=yes
3856
4100
else
3857
4101
  echo "$as_me: failed program was:" >&5
3858
 
cat conftest.$ac_ext >&5
 
4102
sed 's/^/| /' conftest.$ac_ext >&5
 
4103
 
3859
4104
ac_cv_lib_ICE_IceConnectionNumber=no
3860
4105
fi
3861
4106
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3880
4125
 
3881
4126
XLIBS="-lX11 $X_EXTRA_LIBS"
3882
4127
 
3883
 
lib_search_path="$lib_search_path $XLFLAGS -L/usr/local/lib"
3884
 
inc_search_path="$inc_search_path $XCFLAGS -I/usr/local/include"
 
4128
lib_search_path="$lib_search_path $XLFLAGS"
 
4129
inc_search_path="$inc_search_path $XCFLAGS"
3885
4130
 
3886
4131
 
3887
4132
 
3894
4139
LIBS="-lXext $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
3895
4140
cat >conftest.$ac_ext <<_ACEOF
3896
4141
#line $LINENO "configure"
3897
 
#include "confdefs.h"
 
4142
/* confdefs.h.  */
 
4143
_ACEOF
 
4144
cat confdefs.h >>conftest.$ac_ext
 
4145
cat >>conftest.$ac_ext <<_ACEOF
 
4146
/* end confdefs.h.  */
3898
4147
 
3899
4148
/* Override any gcc2 internal prototype to avoid an error.  */
3900
4149
#ifdef __cplusplus
3903
4152
/* We use char because int might match the return type of a gcc2
3904
4153
   builtin and then its argument prototype would still apply.  */
3905
4154
char XShapeCombineMask ();
3906
 
#ifdef F77_DUMMY_MAIN
3907
 
#  ifdef __cplusplus
3908
 
     extern "C"
3909
 
#  endif
3910
 
   int F77_DUMMY_MAIN() { return 1; }
3911
 
#endif
3912
4155
int
3913
4156
main ()
3914
4157
{
3932
4175
  ac_cv_lib_Xext_XShapeCombineMask=yes
3933
4176
else
3934
4177
  echo "$as_me: failed program was:" >&5
3935
 
cat conftest.$ac_ext >&5
 
4178
sed 's/^/| /' conftest.$ac_ext >&5
 
4179
 
3936
4180
ac_cv_lib_Xext_XShapeCombineMask=no
3937
4181
fi
3938
4182
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3957
4201
LIBS="-lXpm $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
3958
4202
cat >conftest.$ac_ext <<_ACEOF
3959
4203
#line $LINENO "configure"
3960
 
#include "confdefs.h"
 
4204
/* confdefs.h.  */
 
4205
_ACEOF
 
4206
cat confdefs.h >>conftest.$ac_ext
 
4207
cat >>conftest.$ac_ext <<_ACEOF
 
4208
/* end confdefs.h.  */
3961
4209
 
3962
4210
/* Override any gcc2 internal prototype to avoid an error.  */
3963
4211
#ifdef __cplusplus
3966
4214
/* We use char because int might match the return type of a gcc2
3967
4215
   builtin and then its argument prototype would still apply.  */
3968
4216
char XpmCreatePixmapFromData ();
3969
 
#ifdef F77_DUMMY_MAIN
3970
 
#  ifdef __cplusplus
3971
 
     extern "C"
3972
 
#  endif
3973
 
   int F77_DUMMY_MAIN() { return 1; }
3974
 
#endif
3975
4217
int
3976
4218
main ()
3977
4219
{
3995
4237
  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
3996
4238
else
3997
4239
  echo "$as_me: failed program was:" >&5
3998
 
cat conftest.$ac_ext >&5
 
4240
sed 's/^/| /' conftest.$ac_ext >&5
 
4241
 
3999
4242
ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4000
4243
fi
4001
4244
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4041
4284
  OS=linux
4042
4285
  ignore_nice=yes
4043
4286
  ignore_proc=yes
4044
 
  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4287
  echo "$as_me:$LINENO: checking for egrep" >&5
 
4288
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4289
if test "${ac_cv_prog_egrep+set}" = set; then
 
4290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4291
else
 
4292
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4293
    then ac_cv_prog_egrep='grep -E'
 
4294
    else ac_cv_prog_egrep='egrep'
 
4295
    fi
 
4296
fi
 
4297
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4298
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4299
 EGREP=$ac_cv_prog_egrep
 
4300
 
 
4301
 
 
4302
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4045
4303
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4046
4304
if test "${ac_cv_header_stdc+set}" = set; then
4047
4305
  echo $ECHO_N "(cached) $ECHO_C" >&6
4048
4306
else
4049
4307
  cat >conftest.$ac_ext <<_ACEOF
4050
4308
#line $LINENO "configure"
4051
 
#include "confdefs.h"
 
4309
/* confdefs.h.  */
 
4310
_ACEOF
 
4311
cat confdefs.h >>conftest.$ac_ext
 
4312
cat >>conftest.$ac_ext <<_ACEOF
 
4313
/* end confdefs.h.  */
4052
4314
#include <stdlib.h>
4053
4315
#include <stdarg.h>
4054
4316
#include <string.h>
4055
4317
#include <float.h>
4056
4318
 
 
4319
int
 
4320
main ()
 
4321
{
 
4322
 
 
4323
  ;
 
4324
  return 0;
 
4325
}
4057
4326
_ACEOF
4058
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4059
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060
 
  ac_status=$?
4061
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4062
 
  rm -f conftest.er1
4063
 
  cat conftest.err >&5
4064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065
 
  (exit $ac_status); } >/dev/null; then
4066
 
  if test -s conftest.err; then
4067
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4068
 
  else
4069
 
    ac_cpp_err=
4070
 
  fi
4071
 
else
4072
 
  ac_cpp_err=yes
4073
 
fi
4074
 
if test -z "$ac_cpp_err"; then
 
4327
rm -f conftest.$ac_objext
 
4328
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4329
  (eval $ac_compile) 2>&5
 
4330
  ac_status=$?
 
4331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4332
  (exit $ac_status); } &&
 
4333
         { ac_try='test -s conftest.$ac_objext'
 
4334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4335
  (eval $ac_try) 2>&5
 
4336
  ac_status=$?
 
4337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4338
  (exit $ac_status); }; }; then
4075
4339
  ac_cv_header_stdc=yes
4076
4340
else
4077
4341
  echo "$as_me: failed program was:" >&5
4078
 
  cat conftest.$ac_ext >&5
4079
 
  ac_cv_header_stdc=no
 
4342
sed 's/^/| /' conftest.$ac_ext >&5
 
4343
 
 
4344
ac_cv_header_stdc=no
4080
4345
fi
4081
 
rm -f conftest.err conftest.$ac_ext
 
4346
rm -f conftest.$ac_objext conftest.$ac_ext
4082
4347
 
4083
4348
if test $ac_cv_header_stdc = yes; then
4084
4349
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4085
4350
  cat >conftest.$ac_ext <<_ACEOF
4086
4351
#line $LINENO "configure"
4087
 
#include "confdefs.h"
 
4352
/* confdefs.h.  */
 
4353
_ACEOF
 
4354
cat confdefs.h >>conftest.$ac_ext
 
4355
cat >>conftest.$ac_ext <<_ACEOF
 
4356
/* end confdefs.h.  */
4088
4357
#include <string.h>
4089
4358
 
4090
4359
_ACEOF
4091
4360
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092
 
  egrep "memchr" >/dev/null 2>&1; then
 
4361
  $EGREP "memchr" >/dev/null 2>&1; then
4093
4362
  :
4094
4363
else
4095
4364
  ac_cv_header_stdc=no
4102
4371
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4103
4372
  cat >conftest.$ac_ext <<_ACEOF
4104
4373
#line $LINENO "configure"
4105
 
#include "confdefs.h"
 
4374
/* confdefs.h.  */
 
4375
_ACEOF
 
4376
cat confdefs.h >>conftest.$ac_ext
 
4377
cat >>conftest.$ac_ext <<_ACEOF
 
4378
/* end confdefs.h.  */
4106
4379
#include <stdlib.h>
4107
4380
 
4108
4381
_ACEOF
4109
4382
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110
 
  egrep "free" >/dev/null 2>&1; then
 
4383
  $EGREP "free" >/dev/null 2>&1; then
4111
4384
  :
4112
4385
else
4113
4386
  ac_cv_header_stdc=no
4123
4396
else
4124
4397
  cat >conftest.$ac_ext <<_ACEOF
4125
4398
#line $LINENO "configure"
4126
 
#include "confdefs.h"
 
4399
/* confdefs.h.  */
 
4400
_ACEOF
 
4401
cat confdefs.h >>conftest.$ac_ext
 
4402
cat >>conftest.$ac_ext <<_ACEOF
 
4403
/* end confdefs.h.  */
4127
4404
#include <ctype.h>
4128
4405
#if ((' ' & 0x0FF) == 0x020)
4129
4406
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130
4407
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131
4408
#else
4132
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
4409
# define ISLOWER(c) \
 
4410
                   (('a' <= (c) && (c) <= 'i') \
4133
4411
                     || ('j' <= (c) && (c) <= 'r') \
4134
4412
                     || ('s' <= (c) && (c) <= 'z'))
4135
4413
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4162
4440
else
4163
4441
  echo "$as_me: program exited with status $ac_status" >&5
4164
4442
echo "$as_me: failed program was:" >&5
4165
 
cat conftest.$ac_ext >&5
 
4443
sed 's/^/| /' conftest.$ac_ext >&5
 
4444
 
4166
4445
( exit $ac_status )
4167
4446
ac_cv_header_stdc=no
4168
4447
fi
4169
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4448
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4170
4449
fi
4171
4450
fi
4172
4451
fi
4201
4480
else
4202
4481
  cat >conftest.$ac_ext <<_ACEOF
4203
4482
#line $LINENO "configure"
4204
 
#include "confdefs.h"
 
4483
/* confdefs.h.  */
 
4484
_ACEOF
 
4485
cat confdefs.h >>conftest.$ac_ext
 
4486
cat >>conftest.$ac_ext <<_ACEOF
 
4487
/* end confdefs.h.  */
4205
4488
$ac_includes_default
4206
4489
 
4207
4490
#include <$ac_header>
4221
4504
  eval "$as_ac_Header=yes"
4222
4505
else
4223
4506
  echo "$as_me: failed program was:" >&5
4224
 
cat conftest.$ac_ext >&5
 
4507
sed 's/^/| /' conftest.$ac_ext >&5
 
4508
 
4225
4509
eval "$as_ac_Header=no"
4226
4510
fi
4227
4511
rm -f conftest.$ac_objext conftest.$ac_ext
4252
4536
echo $ECHO_N "checking linux/threads.h usability... $ECHO_C" >&6
4253
4537
cat >conftest.$ac_ext <<_ACEOF
4254
4538
#line $LINENO "configure"
4255
 
#include "confdefs.h"
 
4539
/* confdefs.h.  */
 
4540
_ACEOF
 
4541
cat confdefs.h >>conftest.$ac_ext
 
4542
cat >>conftest.$ac_ext <<_ACEOF
 
4543
/* end confdefs.h.  */
4256
4544
$ac_includes_default
4257
4545
#include <linux/threads.h>
4258
4546
_ACEOF
4271
4559
  ac_header_compiler=yes
4272
4560
else
4273
4561
  echo "$as_me: failed program was:" >&5
4274
 
cat conftest.$ac_ext >&5
 
4562
sed 's/^/| /' conftest.$ac_ext >&5
 
4563
 
4275
4564
ac_header_compiler=no
4276
4565
fi
4277
4566
rm -f conftest.$ac_objext conftest.$ac_ext
4283
4572
echo $ECHO_N "checking linux/threads.h presence... $ECHO_C" >&6
4284
4573
cat >conftest.$ac_ext <<_ACEOF
4285
4574
#line $LINENO "configure"
4286
 
#include "confdefs.h"
 
4575
/* confdefs.h.  */
 
4576
_ACEOF
 
4577
cat confdefs.h >>conftest.$ac_ext
 
4578
cat >>conftest.$ac_ext <<_ACEOF
 
4579
/* end confdefs.h.  */
4287
4580
#include <linux/threads.h>
4288
4581
_ACEOF
4289
4582
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4290
4583
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4291
4584
  ac_status=$?
4292
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4585
  grep -v '^ *+' conftest.er1 >conftest.err
4293
4586
  rm -f conftest.er1
4294
4587
  cat conftest.err >&5
4295
4588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
4599
  ac_header_preproc=yes
4307
4600
else
4308
4601
  echo "$as_me: failed program was:" >&5
4309
 
  cat conftest.$ac_ext >&5
 
4602
sed 's/^/| /' conftest.$ac_ext >&5
 
4603
 
4310
4604
  ac_header_preproc=no
4311
4605
fi
4312
4606
rm -f conftest.err conftest.$ac_ext
4319
4613
    { echo "$as_me:$LINENO: WARNING: linux/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
4320
4614
echo "$as_me: WARNING: linux/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4321
4615
    { echo "$as_me:$LINENO: WARNING: linux/threads.h: proceeding with the preprocessor's result" >&5
4322
 
echo "$as_me: WARNING: linux/threads.h: proceeding with the preprocessor's result" >&2;};;
 
4616
echo "$as_me: WARNING: linux/threads.h: proceeding with the preprocessor's result" >&2;}
 
4617
    (
 
4618
      cat <<\_ASBOX
 
4619
## ------------------------------------ ##
 
4620
## Report this to bug-autoconf@gnu.org. ##
 
4621
## ------------------------------------ ##
 
4622
_ASBOX
 
4623
    ) |
 
4624
      sed "s/^/$as_me: WARNING:     /" >&2
 
4625
    ;;
4323
4626
  no:yes )
4324
4627
    { echo "$as_me:$LINENO: WARNING: linux/threads.h: present but cannot be compiled" >&5
4325
4628
echo "$as_me: WARNING: linux/threads.h: present but cannot be compiled" >&2;}
4326
4629
    { echo "$as_me:$LINENO: WARNING: linux/threads.h: check for missing prerequisite headers?" >&5
4327
4630
echo "$as_me: WARNING: linux/threads.h: check for missing prerequisite headers?" >&2;}
4328
4631
    { echo "$as_me:$LINENO: WARNING: linux/threads.h: proceeding with the preprocessor's result" >&5
4329
 
echo "$as_me: WARNING: linux/threads.h: proceeding with the preprocessor's result" >&2;};;
 
4632
echo "$as_me: WARNING: linux/threads.h: proceeding with the preprocessor's result" >&2;}
 
4633
    (
 
4634
      cat <<\_ASBOX
 
4635
## ------------------------------------ ##
 
4636
## Report this to bug-autoconf@gnu.org. ##
 
4637
## ------------------------------------ ##
 
4638
_ASBOX
 
4639
    ) |
 
4640
      sed "s/^/$as_me: WARNING:     /" >&2
 
4641
    ;;
4330
4642
esac
4331
4643
echo "$as_me:$LINENO: checking for linux/threads.h" >&5
4332
4644
echo $ECHO_N "checking for linux/threads.h... $ECHO_C" >&6
4361
4673
  OS=openbsd
4362
4674
  ignore_nice=yes
4363
4675
  ;;
 
4676
netbsd*)
 
4677
  OS=netbsd
 
4678
  ignore_nice=yes
 
4679
  ;;
 
4680
bsdi*)
 
4681
  OS=bsdi
 
4682
  ignore_nice=yes
 
4683
  ;;
4364
4684
solaris*)
4365
4685
  OS=solaris
4366
4686
  LIBS="$LIBS -lkstat"
4368
4688
cygwin*)
4369
4689
  OS=cygwin
4370
4690
  ;;
 
4691
irix*)
 
4692
  OS=irix
 
4693
 
 
4694
cat >>confdefs.h <<\_ACEOF
 
4695
#define USE_SMP 1
 
4696
_ACEOF
 
4697
 
 
4698
  ;;
 
4699
darwin*)
 
4700
  OS=darwin
 
4701
  ;;
4371
4702
*)
4372
4703
  echo ""
4373
4704
  echo "Sorry, ${target_os} is not supported yet"
4410
4741
else
4411
4742
  cat >conftest.$ac_ext <<_ACEOF
4412
4743
#line $LINENO "configure"
4413
 
#include "confdefs.h"
 
4744
/* confdefs.h.  */
 
4745
_ACEOF
 
4746
cat confdefs.h >>conftest.$ac_ext
 
4747
cat >>conftest.$ac_ext <<_ACEOF
 
4748
/* end confdefs.h.  */
4414
4749
#include <stdlib.h>
4415
4750
#include <stdarg.h>
4416
4751
#include <string.h>
4417
4752
#include <float.h>
4418
4753
 
 
4754
int
 
4755
main ()
 
4756
{
 
4757
 
 
4758
  ;
 
4759
  return 0;
 
4760
}
4419
4761
_ACEOF
4420
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4421
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4422
 
  ac_status=$?
4423
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4424
 
  rm -f conftest.er1
4425
 
  cat conftest.err >&5
4426
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427
 
  (exit $ac_status); } >/dev/null; then
4428
 
  if test -s conftest.err; then
4429
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4430
 
  else
4431
 
    ac_cpp_err=
4432
 
  fi
4433
 
else
4434
 
  ac_cpp_err=yes
4435
 
fi
4436
 
if test -z "$ac_cpp_err"; then
 
4762
rm -f conftest.$ac_objext
 
4763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4764
  (eval $ac_compile) 2>&5
 
4765
  ac_status=$?
 
4766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4767
  (exit $ac_status); } &&
 
4768
         { ac_try='test -s conftest.$ac_objext'
 
4769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4770
  (eval $ac_try) 2>&5
 
4771
  ac_status=$?
 
4772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4773
  (exit $ac_status); }; }; then
4437
4774
  ac_cv_header_stdc=yes
4438
4775
else
4439
4776
  echo "$as_me: failed program was:" >&5
4440
 
  cat conftest.$ac_ext >&5
4441
 
  ac_cv_header_stdc=no
 
4777
sed 's/^/| /' conftest.$ac_ext >&5
 
4778
 
 
4779
ac_cv_header_stdc=no
4442
4780
fi
4443
 
rm -f conftest.err conftest.$ac_ext
 
4781
rm -f conftest.$ac_objext conftest.$ac_ext
4444
4782
 
4445
4783
if test $ac_cv_header_stdc = yes; then
4446
4784
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4447
4785
  cat >conftest.$ac_ext <<_ACEOF
4448
4786
#line $LINENO "configure"
4449
 
#include "confdefs.h"
 
4787
/* confdefs.h.  */
 
4788
_ACEOF
 
4789
cat confdefs.h >>conftest.$ac_ext
 
4790
cat >>conftest.$ac_ext <<_ACEOF
 
4791
/* end confdefs.h.  */
4450
4792
#include <string.h>
4451
4793
 
4452
4794
_ACEOF
4453
4795
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4454
 
  egrep "memchr" >/dev/null 2>&1; then
 
4796
  $EGREP "memchr" >/dev/null 2>&1; then
4455
4797
  :
4456
4798
else
4457
4799
  ac_cv_header_stdc=no
4464
4806
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4465
4807
  cat >conftest.$ac_ext <<_ACEOF
4466
4808
#line $LINENO "configure"
4467
 
#include "confdefs.h"
 
4809
/* confdefs.h.  */
 
4810
_ACEOF
 
4811
cat confdefs.h >>conftest.$ac_ext
 
4812
cat >>conftest.$ac_ext <<_ACEOF
 
4813
/* end confdefs.h.  */
4468
4814
#include <stdlib.h>
4469
4815
 
4470
4816
_ACEOF
4471
4817
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4472
 
  egrep "free" >/dev/null 2>&1; then
 
4818
  $EGREP "free" >/dev/null 2>&1; then
4473
4819
  :
4474
4820
else
4475
4821
  ac_cv_header_stdc=no
4485
4831
else
4486
4832
  cat >conftest.$ac_ext <<_ACEOF
4487
4833
#line $LINENO "configure"
4488
 
#include "confdefs.h"
 
4834
/* confdefs.h.  */
 
4835
_ACEOF
 
4836
cat confdefs.h >>conftest.$ac_ext
 
4837
cat >>conftest.$ac_ext <<_ACEOF
 
4838
/* end confdefs.h.  */
4489
4839
#include <ctype.h>
4490
4840
#if ((' ' & 0x0FF) == 0x020)
4491
4841
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4492
4842
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4493
4843
#else
4494
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
4844
# define ISLOWER(c) \
 
4845
                   (('a' <= (c) && (c) <= 'i') \
4495
4846
                     || ('j' <= (c) && (c) <= 'r') \
4496
4847
                     || ('s' <= (c) && (c) <= 'z'))
4497
4848
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4524
4875
else
4525
4876
  echo "$as_me: program exited with status $ac_status" >&5
4526
4877
echo "$as_me: failed program was:" >&5
4527
 
cat conftest.$ac_ext >&5
 
4878
sed 's/^/| /' conftest.$ac_ext >&5
 
4879
 
4528
4880
( exit $ac_status )
4529
4881
ac_cv_header_stdc=no
4530
4882
fi
4531
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4883
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4532
4884
fi
4533
4885
fi
4534
4886
fi
4549
4901
else
4550
4902
  cat >conftest.$ac_ext <<_ACEOF
4551
4903
#line $LINENO "configure"
4552
 
#include "confdefs.h"
 
4904
/* confdefs.h.  */
 
4905
_ACEOF
 
4906
cat confdefs.h >>conftest.$ac_ext
 
4907
cat >>conftest.$ac_ext <<_ACEOF
 
4908
/* end confdefs.h.  */
4553
4909
#include <sys/types.h>
4554
4910
#include <sys/wait.h>
4555
4911
#ifndef WEXITSTATUS
4559
4915
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4560
4916
#endif
4561
4917
 
4562
 
#ifdef F77_DUMMY_MAIN
4563
 
#  ifdef __cplusplus
4564
 
     extern "C"
4565
 
#  endif
4566
 
   int F77_DUMMY_MAIN() { return 1; }
4567
 
#endif
4568
4918
int
4569
4919
main ()
4570
4920
{
4590
4940
  ac_cv_header_sys_wait_h=yes
4591
4941
else
4592
4942
  echo "$as_me: failed program was:" >&5
4593
 
cat conftest.$ac_ext >&5
 
4943
sed 's/^/| /' conftest.$ac_ext >&5
 
4944
 
4594
4945
ac_cv_header_sys_wait_h=no
4595
4946
fi
4596
4947
rm -f conftest.$ac_objext conftest.$ac_ext
4612
4963
else
4613
4964
  cat >conftest.$ac_ext <<_ACEOF
4614
4965
#line $LINENO "configure"
4615
 
#include "confdefs.h"
 
4966
/* confdefs.h.  */
 
4967
_ACEOF
 
4968
cat confdefs.h >>conftest.$ac_ext
 
4969
cat >>conftest.$ac_ext <<_ACEOF
 
4970
/* end confdefs.h.  */
4616
4971
#include <sys/types.h>
4617
4972
#include <sys/time.h>
4618
4973
#include <time.h>
4619
4974
 
4620
 
#ifdef F77_DUMMY_MAIN
4621
 
#  ifdef __cplusplus
4622
 
     extern "C"
4623
 
#  endif
4624
 
   int F77_DUMMY_MAIN() { return 1; }
4625
 
#endif
4626
4975
int
4627
4976
main ()
4628
4977
{
4647
4996
  ac_cv_header_time=yes
4648
4997
else
4649
4998
  echo "$as_me: failed program was:" >&5
4650
 
cat conftest.$ac_ext >&5
 
4999
sed 's/^/| /' conftest.$ac_ext >&5
 
5000
 
4651
5001
ac_cv_header_time=no
4652
5002
fi
4653
5003
rm -f conftest.$ac_objext conftest.$ac_ext
4688
5038
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4689
5039
cat >conftest.$ac_ext <<_ACEOF
4690
5040
#line $LINENO "configure"
4691
 
#include "confdefs.h"
 
5041
/* confdefs.h.  */
 
5042
_ACEOF
 
5043
cat confdefs.h >>conftest.$ac_ext
 
5044
cat >>conftest.$ac_ext <<_ACEOF
 
5045
/* end confdefs.h.  */
4692
5046
$ac_includes_default
4693
5047
#include <$ac_header>
4694
5048
_ACEOF
4707
5061
  ac_header_compiler=yes
4708
5062
else
4709
5063
  echo "$as_me: failed program was:" >&5
4710
 
cat conftest.$ac_ext >&5
 
5064
sed 's/^/| /' conftest.$ac_ext >&5
 
5065
 
4711
5066
ac_header_compiler=no
4712
5067
fi
4713
5068
rm -f conftest.$ac_objext conftest.$ac_ext
4719
5074
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4720
5075
cat >conftest.$ac_ext <<_ACEOF
4721
5076
#line $LINENO "configure"
4722
 
#include "confdefs.h"
 
5077
/* confdefs.h.  */
 
5078
_ACEOF
 
5079
cat confdefs.h >>conftest.$ac_ext
 
5080
cat >>conftest.$ac_ext <<_ACEOF
 
5081
/* end confdefs.h.  */
4723
5082
#include <$ac_header>
4724
5083
_ACEOF
4725
5084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4726
5085
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4727
5086
  ac_status=$?
4728
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5087
  grep -v '^ *+' conftest.er1 >conftest.err
4729
5088
  rm -f conftest.er1
4730
5089
  cat conftest.err >&5
4731
5090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
5101
  ac_header_preproc=yes
4743
5102
else
4744
5103
  echo "$as_me: failed program was:" >&5
4745
 
  cat conftest.$ac_ext >&5
 
5104
sed 's/^/| /' conftest.$ac_ext >&5
 
5105
 
4746
5106
  ac_header_preproc=no
4747
5107
fi
4748
5108
rm -f conftest.err conftest.$ac_ext
4755
5115
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4756
5116
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4757
5117
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4758
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
5118
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5119
    (
 
5120
      cat <<\_ASBOX
 
5121
## ------------------------------------ ##
 
5122
## Report this to bug-autoconf@gnu.org. ##
 
5123
## ------------------------------------ ##
 
5124
_ASBOX
 
5125
    ) |
 
5126
      sed "s/^/$as_me: WARNING:     /" >&2
 
5127
    ;;
4759
5128
  no:yes )
4760
5129
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4761
5130
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4762
5131
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4763
5132
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4764
5133
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4765
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
5134
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5135
    (
 
5136
      cat <<\_ASBOX
 
5137
## ------------------------------------ ##
 
5138
## Report this to bug-autoconf@gnu.org. ##
 
5139
## ------------------------------------ ##
 
5140
_ASBOX
 
5141
    ) |
 
5142
      sed "s/^/$as_me: WARNING:     /" >&2
 
5143
    ;;
4766
5144
esac
4767
5145
echo "$as_me:$LINENO: checking for $ac_header" >&5
4768
5146
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4803
5181
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4804
5182
cat >conftest.$ac_ext <<_ACEOF
4805
5183
#line $LINENO "configure"
4806
 
#include "confdefs.h"
 
5184
/* confdefs.h.  */
 
5185
_ACEOF
 
5186
cat confdefs.h >>conftest.$ac_ext
 
5187
cat >>conftest.$ac_ext <<_ACEOF
 
5188
/* end confdefs.h.  */
4807
5189
$ac_includes_default
4808
5190
#include <$ac_header>
4809
5191
_ACEOF
4822
5204
  ac_header_compiler=yes
4823
5205
else
4824
5206
  echo "$as_me: failed program was:" >&5
4825
 
cat conftest.$ac_ext >&5
 
5207
sed 's/^/| /' conftest.$ac_ext >&5
 
5208
 
4826
5209
ac_header_compiler=no
4827
5210
fi
4828
5211
rm -f conftest.$ac_objext conftest.$ac_ext
4834
5217
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835
5218
cat >conftest.$ac_ext <<_ACEOF
4836
5219
#line $LINENO "configure"
4837
 
#include "confdefs.h"
 
5220
/* confdefs.h.  */
 
5221
_ACEOF
 
5222
cat confdefs.h >>conftest.$ac_ext
 
5223
cat >>conftest.$ac_ext <<_ACEOF
 
5224
/* end confdefs.h.  */
4838
5225
#include <$ac_header>
4839
5226
_ACEOF
4840
5227
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4841
5228
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842
5229
  ac_status=$?
4843
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5230
  grep -v '^ *+' conftest.er1 >conftest.err
4844
5231
  rm -f conftest.er1
4845
5232
  cat conftest.err >&5
4846
5233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857
5244
  ac_header_preproc=yes
4858
5245
else
4859
5246
  echo "$as_me: failed program was:" >&5
4860
 
  cat conftest.$ac_ext >&5
 
5247
sed 's/^/| /' conftest.$ac_ext >&5
 
5248
 
4861
5249
  ac_header_preproc=no
4862
5250
fi
4863
5251
rm -f conftest.err conftest.$ac_ext
4870
5258
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4871
5259
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4872
5260
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
5261
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5262
    (
 
5263
      cat <<\_ASBOX
 
5264
## ------------------------------------ ##
 
5265
## Report this to bug-autoconf@gnu.org. ##
 
5266
## ------------------------------------ ##
 
5267
_ASBOX
 
5268
    ) |
 
5269
      sed "s/^/$as_me: WARNING:     /" >&2
 
5270
    ;;
4874
5271
  no:yes )
4875
5272
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4876
5273
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4877
5274
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4878
5275
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4879
5276
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4880
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
5277
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5278
    (
 
5279
      cat <<\_ASBOX
 
5280
## ------------------------------------ ##
 
5281
## Report this to bug-autoconf@gnu.org. ##
 
5282
## ------------------------------------ ##
 
5283
_ASBOX
 
5284
    ) |
 
5285
      sed "s/^/$as_me: WARNING:     /" >&2
 
5286
    ;;
4881
5287
esac
4882
5288
echo "$as_me:$LINENO: checking for $ac_header" >&5
4883
5289
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4899
5305
 
4900
5306
done
4901
5307
 
4902
 
echo "$as_me:$LINENO: checking for working malloc" >&5
4903
 
echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4904
 
if test "${ac_cv_func_malloc_works+set}" = set; then
 
5308
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
5309
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
5310
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4905
5311
  echo $ECHO_N "(cached) $ECHO_C" >&6
4906
5312
else
4907
5313
  if test "$cross_compiling" = yes; then
4908
 
  ac_cv_func_malloc_works=no
 
5314
  ac_cv_func_malloc_0_nonnull=no
4909
5315
else
4910
5316
  cat >conftest.$ac_ext <<_ACEOF
4911
5317
#line $LINENO "configure"
4912
 
#include "confdefs.h"
 
5318
/* confdefs.h.  */
 
5319
_ACEOF
 
5320
cat confdefs.h >>conftest.$ac_ext
 
5321
cat >>conftest.$ac_ext <<_ACEOF
 
5322
/* end confdefs.h.  */
4913
5323
#if STDC_HEADERS || HAVE_STDLIB_H
4914
5324
# include <stdlib.h>
4915
5325
#else
4916
5326
char *malloc ();
4917
5327
#endif
4918
5328
 
4919
 
#ifdef F77_DUMMY_MAIN
4920
 
#  ifdef __cplusplus
4921
 
     extern "C"
4922
 
#  endif
4923
 
   int F77_DUMMY_MAIN() { return 1; }
4924
 
#endif
4925
5329
int
4926
5330
main ()
4927
5331
{
4941
5345
  ac_status=$?
4942
5346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
5347
  (exit $ac_status); }; }; then
4944
 
  ac_cv_func_malloc_works=yes
 
5348
  ac_cv_func_malloc_0_nonnull=yes
4945
5349
else
4946
5350
  echo "$as_me: program exited with status $ac_status" >&5
4947
5351
echo "$as_me: failed program was:" >&5
4948
 
cat conftest.$ac_ext >&5
 
5352
sed 's/^/| /' conftest.$ac_ext >&5
 
5353
 
4949
5354
( exit $ac_status )
4950
 
ac_cv_func_malloc_works=no
4951
 
fi
4952
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4953
 
fi
4954
 
fi
4955
 
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
4956
 
echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
4957
 
if test $ac_cv_func_malloc_works = yes; then
 
5355
ac_cv_func_malloc_0_nonnull=no
 
5356
fi
 
5357
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5358
fi
 
5359
fi
 
5360
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
5361
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
5362
if test $ac_cv_func_malloc_0_nonnull = yes; then
4958
5363
 
4959
5364
cat >>confdefs.h <<\_ACEOF
4960
5365
#define HAVE_MALLOC 1
4961
5366
_ACEOF
4962
5367
 
 
5368
else
 
5369
  cat >>confdefs.h <<\_ACEOF
 
5370
#define HAVE_MALLOC 0
 
5371
_ACEOF
 
5372
 
 
5373
   LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
5374
 
 
5375
cat >>confdefs.h <<\_ACEOF
 
5376
#define malloc rpl_malloc
 
5377
_ACEOF
 
5378
 
4963
5379
fi
4964
5380
 
4965
5381
 
 
5382
 
 
5383
 
4966
5384
for ac_func in select
4967
5385
do
4968
5386
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4973
5391
else
4974
5392
  cat >conftest.$ac_ext <<_ACEOF
4975
5393
#line $LINENO "configure"
4976
 
#include "confdefs.h"
 
5394
/* confdefs.h.  */
 
5395
_ACEOF
 
5396
cat confdefs.h >>conftest.$ac_ext
 
5397
cat >>conftest.$ac_ext <<_ACEOF
 
5398
/* end confdefs.h.  */
4977
5399
/* System header to define __stub macros and hopefully few prototypes,
4978
 
    which can conflict with char $ac_func (); below.  */
4979
 
#include <assert.h>
 
5400
    which can conflict with char $ac_func (); below.
 
5401
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5402
    <limits.h> exists even on freestanding compilers.  */
 
5403
#ifdef __STDC__
 
5404
# include <limits.h>
 
5405
#else
 
5406
# include <assert.h>
 
5407
#endif
4980
5408
/* Override any gcc2 internal prototype to avoid an error.  */
4981
5409
#ifdef __cplusplus
4982
5410
extern "C"
 
5411
{
4983
5412
#endif
4984
5413
/* We use char because int might match the return type of a gcc2
4985
5414
   builtin and then its argument prototype would still apply.  */
4986
5415
char $ac_func ();
4987
 
char (*f) ();
4988
 
 
4989
 
#ifdef F77_DUMMY_MAIN
4990
 
#  ifdef __cplusplus
4991
 
     extern "C"
4992
 
#  endif
4993
 
   int F77_DUMMY_MAIN() { return 1; }
4994
 
#endif
4995
 
int
4996
 
main ()
4997
 
{
4998
5416
/* The GNU C library defines this for functions which it implements
4999
5417
    to always fail with ENOSYS.  Some functions are actually named
5000
5418
    something starting with __ and the normal name is an alias.  */
5001
5419
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002
5420
choke me
5003
5421
#else
5004
 
f = $ac_func;
 
5422
char (*f) () = $ac_func;
 
5423
#endif
 
5424
#ifdef __cplusplus
 
5425
}
5005
5426
#endif
5006
5427
 
 
5428
int
 
5429
main ()
 
5430
{
 
5431
return f != $ac_func;
5007
5432
  ;
5008
5433
  return 0;
5009
5434
}
5023
5448
  eval "$as_ac_var=yes"
5024
5449
else
5025
5450
  echo "$as_me: failed program was:" >&5
5026
 
cat conftest.$ac_ext >&5
 
5451
sed 's/^/| /' conftest.$ac_ext >&5
 
5452
 
5027
5453
eval "$as_ac_var=no"
5028
5454
fi
5029
5455
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5039
5465
done
5040
5466
 
5041
5467
 
5042
 
ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile icons/Makefile contrib/Makefile contrib/wmcpuload.spec"
 
5468
                                                                      ac_config_files="$ac_config_files Makefile src/Makefile libdockapp/Makefile doc/Makefile icons/Makefile contrib/Makefile contrib/wmcpuload.spec"
5043
5469
 
5044
5470
cat >confcache <<\_ACEOF
5045
5471
# This file is a shell script that caches the results of configure
5051
5477
# config.status only pays attention to the cache file if you give it
5052
5478
# the --recheck option to rerun configure.
5053
5479
#
5054
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
5480
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5055
5481
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5056
5482
# following values.
5057
5483
 
5086
5512
     t end
5087
5513
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5088
5514
     : end' >>confcache
5089
 
if cmp -s $cache_file confcache; then :; else
 
5515
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5090
5516
  if test -w $cache_file; then
5091
5517
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5092
5518
    cat confcache >$cache_file
5117
5543
 
5118
5544
DEFS=-DHAVE_CONFIG_H
5119
5545
 
 
5546
ac_libobjs=
 
5547
ac_ltlibobjs=
 
5548
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
5549
  # 1. Remove the extension, and $U if already installed.
 
5550
  ac_i=`echo "$ac_i" |
 
5551
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
5552
  # 2. Add them.
 
5553
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
5554
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
5555
done
 
5556
LIBOBJS=$ac_libobjs
 
5557
 
 
5558
LTLIBOBJS=$ac_ltlibobjs
 
5559
 
 
5560
 
5120
5561
 
5121
5562
: ${CONFIG_STATUS=./config.status}
5122
5563
ac_clean_files_save=$ac_clean_files
5131
5572
# configure, is in config.log if it exists.
5132
5573
 
5133
5574
debug=false
 
5575
ac_cs_recheck=false
 
5576
ac_cs_silent=false
5134
5577
SHELL=\${CONFIG_SHELL-$SHELL}
5135
5578
_ACEOF
5136
5579
 
5137
5580
cat >>$CONFIG_STATUS <<\_ACEOF
5138
 
 
5139
5581
## --------------------- ##
5140
5582
## M4sh Initialization.  ##
5141
5583
## --------------------- ##
5144
5586
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5145
5587
  emulate sh
5146
5588
  NULLCMD=:
 
5589
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
5590
  # is contrary to our usage.  Disable this feature.
 
5591
  alias -g '${1+"$@"}'='"$@"'
5147
5592
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5148
5593
  set -o posix
5149
5594
fi
5150
5595
 
5151
 
# NLS nuisances.
5152
5596
# Support unset when possible.
5153
5597
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5154
5598
  as_unset=unset
5156
5600
  as_unset=false
5157
5601
fi
5158
5602
 
5159
 
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5160
 
    { $as_unset LANG || test "${LANG+set}" != set; } ||
5161
 
      { LANG=C; export LANG; }
5162
 
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5163
 
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5164
 
      { LC_ALL=C; export LC_ALL; }
5165
 
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5166
 
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5167
 
      { LC_TIME=C; export LC_TIME; }
5168
 
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5169
 
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5170
 
      { LC_CTYPE=C; export LC_CTYPE; }
5171
 
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5172
 
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5173
 
      { LANGUAGE=C; export LANGUAGE; }
5174
 
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5175
 
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5176
 
      { LC_COLLATE=C; export LC_COLLATE; }
5177
 
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5178
 
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5179
 
      { LC_NUMERIC=C; export LC_NUMERIC; }
5180
 
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5181
 
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5182
 
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
5603
 
 
5604
# Work around bugs in pre-3.0 UWIN ksh.
 
5605
$as_unset ENV MAIL MAILPATH
 
5606
PS1='$ '
 
5607
PS2='> '
 
5608
PS4='+ '
 
5609
 
 
5610
# NLS nuisances.
 
5611
for as_var in \
 
5612
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
5613
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
5614
  LC_TELEPHONE LC_TIME
 
5615
do
 
5616
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
5617
    eval $as_var=C; export $as_var
 
5618
  else
 
5619
    $as_unset $as_var
 
5620
  fi
 
5621
done
 
5622
 
 
5623
# Required to use basename.
 
5624
if expr a : '\(a\)' >/dev/null 2>&1; then
 
5625
  as_expr=expr
 
5626
else
 
5627
  as_expr=false
 
5628
fi
 
5629
 
 
5630
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
5631
  as_basename=basename
 
5632
else
 
5633
  as_basename=false
 
5634
fi
5183
5635
 
5184
5636
 
5185
5637
# Name of the executable.
5186
 
as_me=`(basename "$0") 2>/dev/null ||
 
5638
as_me=`$as_basename "$0" ||
5187
5639
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5188
5640
         X"$0" : 'X\(//\)$' \| \
5189
5641
         X"$0" : 'X\(/\)$' \| \
5194
5646
          /^X\/\(\/\).*/{ s//\1/; q; }
5195
5647
          s/.*/./; q'`
5196
5648
 
 
5649
 
5197
5650
# PATH needs CR, and LINENO needs CR and PATH.
5198
5651
# Avoid depending upon Character Ranges.
5199
5652
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5204
5657
 
5205
5658
# The user is always right.
5206
5659
if test "${PATH_SEPARATOR+set}" != set; then
5207
 
  echo "#! /bin/sh" >conftest.sh
5208
 
  echo  "exit 0"   >>conftest.sh
5209
 
  chmod +x conftest.sh
5210
 
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
5660
  echo "#! /bin/sh" >conf$$.sh
 
5661
  echo  "exit 0"   >>conf$$.sh
 
5662
  chmod +x conf$$.sh
 
5663
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5211
5664
    PATH_SEPARATOR=';'
5212
5665
  else
5213
5666
    PATH_SEPARATOR=:
5214
5667
  fi
5215
 
  rm -f conftest.sh
 
5668
  rm -f conf$$.sh
5216
5669
fi
5217
5670
 
5218
5671
 
5261
5714
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5262
5715
  test "x$as_lineno_1" != "x$as_lineno_2" &&
5263
5716
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
5717
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
5718
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5264
5719
             CONFIG_SHELL=$as_dir/$as_base
5265
5720
             export CONFIG_SHELL
5266
5721
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5334
5789
fi
5335
5790
rm -f conf$$ conf$$.exe conf$$.file
5336
5791
 
 
5792
if mkdir -p . 2>/dev/null; then
 
5793
  as_mkdir_p=:
 
5794
else
 
5795
  as_mkdir_p=false
 
5796
fi
 
5797
 
5337
5798
as_executable_p="test -f"
5338
5799
 
5339
5800
# Sed expression to map a string onto a valid CPP name.
5350
5811
IFS="   $as_nl"
5351
5812
 
5352
5813
# CDPATH.
5353
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
5814
$as_unset CDPATH
5354
5815
 
5355
5816
exec 6>&1
5356
5817
 
5366
5827
} >&5
5367
5828
cat >&5 <<_CSEOF
5368
5829
 
5369
 
This file was extended by wmcpuload $as_me 0.9.0, which was
5370
 
generated by GNU Autoconf 2.53.  Invocation command line was
 
5830
This file was extended by wmcpuload $as_me 1.0.1, which was
 
5831
generated by GNU Autoconf 2.57.  Invocation command line was
5371
5832
 
5372
5833
  CONFIG_FILES    = $CONFIG_FILES
5373
5834
  CONFIG_HEADERS  = $CONFIG_HEADERS
5407
5868
 
5408
5869
  -h, --help       print this help, then exit
5409
5870
  -V, --version    print version number, then exit
 
5871
  -q, --quiet      do not print progress messages
5410
5872
  -d, --debug      don't remove temporary files
5411
5873
      --recheck    update $as_me by reconfiguring in the same conditions
5412
5874
  --file=FILE[:TEMPLATE]
5428
5890
 
5429
5891
cat >>$CONFIG_STATUS <<_ACEOF
5430
5892
ac_cs_version="\\
5431
 
wmcpuload config.status 0.9.0
5432
 
configured by $0, generated by GNU Autoconf 2.53,
 
5893
wmcpuload config.status 1.0.1
 
5894
configured by $0, generated by GNU Autoconf 2.57,
5433
5895
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5434
5896
 
5435
5897
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5450
5912
  --*=*)
5451
5913
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5452
5914
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5453
 
    shift
5454
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5455
 
    shift
5456
 
    ;;
5457
 
  -*);;
 
5915
    ac_shift=:
 
5916
    ;;
 
5917
  -*)
 
5918
    ac_option=$1
 
5919
    ac_optarg=$2
 
5920
    ac_shift=shift
 
5921
    ;;
5458
5922
  *) # This is not an option, so the user has probably given explicit
5459
5923
     # arguments.
 
5924
     ac_option=$1
5460
5925
     ac_need_defaults=false;;
5461
5926
  esac
5462
5927
 
5463
 
  case $1 in
 
5928
  case $ac_option in
5464
5929
  # Handling of the options.
5465
5930
_ACEOF
5466
 
cat >>$CONFIG_STATUS <<_ACEOF
 
5931
cat >>$CONFIG_STATUS <<\_ACEOF
5467
5932
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5468
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5469
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5470
 
_ACEOF
5471
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
5933
    ac_cs_recheck=: ;;
5472
5934
  --version | --vers* | -V )
5473
5935
    echo "$ac_cs_version"; exit 0 ;;
5474
5936
  --he | --h)
5483
5945
  --debug | --d* | -d )
5484
5946
    debug=: ;;
5485
5947
  --file | --fil | --fi | --f )
5486
 
    shift
5487
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
5948
    $ac_shift
 
5949
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5488
5950
    ac_need_defaults=false;;
5489
5951
  --header | --heade | --head | --hea )
5490
 
    shift
5491
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
5952
    $ac_shift
 
5953
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5492
5954
    ac_need_defaults=false;;
 
5955
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
5956
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
5957
    ac_cs_silent=: ;;
5493
5958
 
5494
5959
  # This is an error.
5495
5960
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5504
5969
  shift
5505
5970
done
5506
5971
 
 
5972
ac_configure_extra_args=
 
5973
 
 
5974
if $ac_cs_silent; then
 
5975
  exec 6>/dev/null
 
5976
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
5977
fi
 
5978
 
 
5979
_ACEOF
 
5980
cat >>$CONFIG_STATUS <<_ACEOF
 
5981
if \$ac_cs_recheck; then
 
5982
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
5983
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5984
fi
 
5985
 
5507
5986
_ACEOF
5508
5987
 
5509
5988
cat >>$CONFIG_STATUS <<_ACEOF
5524
6003
  # Handling of arguments.
5525
6004
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5526
6005
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
6006
  "libdockapp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdockapp/Makefile" ;;
5527
6007
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5528
6008
  "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
5529
6009
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
5546
6026
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5547
6027
fi
5548
6028
 
 
6029
# Have a temporary directory for convenience.  Make it in the build tree
 
6030
# simply because there is no reason to put it here, and in addition,
 
6031
# creating and moving files from /tmp can sometimes cause problems.
5549
6032
# Create a temporary directory, and hook for its removal unless debugging.
5550
6033
$debug ||
5551
6034
{
5554
6037
}
5555
6038
 
5556
6039
# Create a (secure) tmp directory for tmp files.
5557
 
: ${TMPDIR=/tmp}
 
6040
 
5558
6041
{
5559
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
6042
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5560
6043
  test -n "$tmp" && test -d "$tmp"
5561
6044
}  ||
5562
6045
{
5563
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
6046
  tmp=./confstat$$-$RANDOM
5564
6047
  (umask 077 && mkdir $tmp)
5565
6048
} ||
5566
6049
{
5567
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
6050
   echo "$me: cannot create a temporary directory in ." >&2
5568
6051
   { (exit 1); exit 1; }
5569
6052
}
5570
6053
 
5654
6137
s,@XLFLAGS@,$XLFLAGS,;t t
5655
6138
s,@XLIBS@,$XLIBS,;t t
5656
6139
s,@DFLAGS@,$DFLAGS,;t t
 
6140
s,@EGREP@,$EGREP,;t t
5657
6141
s,@OS@,$OS,;t t
5658
6142
s,@SETGID_FLAGS@,$SETGID_FLAGS,;t t
5659
6143
s,@LIBRARY_SEARCH_PATH@,$LIBRARY_SEARCH_PATH,;t t
5660
6144
s,@HEADER_SEARCH_PATH@,$HEADER_SEARCH_PATH,;t t
 
6145
s,@LIBOBJS@,$LIBOBJS,;t t
 
6146
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5661
6147
CEOF
5662
6148
 
5663
6149
_ACEOF
5728
6214
          /^X\(\/\/\)$/{ s//\1/; q; }
5729
6215
          /^X\(\/\).*/{ s//\1/; q; }
5730
6216
          s/.*/./; q'`
5731
 
  { case "$ac_dir" in
5732
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5733
 
  *)                      as_incr_dir=.;;
5734
 
esac
5735
 
as_dummy="$ac_dir"
5736
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5737
 
  case $as_mkdir_dir in
5738
 
    # Skip DOS drivespec
5739
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
5740
 
    *)
5741
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5742
 
      test -d "$as_incr_dir" ||
5743
 
        mkdir "$as_incr_dir" ||
5744
 
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5745
 
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5746
 
   { (exit 1); exit 1; }; }
5747
 
    ;;
5748
 
  esac
5749
 
done; }
 
6217
  { if $as_mkdir_p; then
 
6218
    mkdir -p "$ac_dir"
 
6219
  else
 
6220
    as_dir="$ac_dir"
 
6221
    as_dirs=
 
6222
    while test ! -d "$as_dir"; do
 
6223
      as_dirs="$as_dir $as_dirs"
 
6224
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
6225
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6226
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6227
         X"$as_dir" : 'X\(//\)$' \| \
 
6228
         X"$as_dir" : 'X\(/\)' \| \
 
6229
         .     : '\(.\)' 2>/dev/null ||
 
6230
echo X"$as_dir" |
 
6231
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6232
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6233
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6234
          /^X\(\/\).*/{ s//\1/; q; }
 
6235
          s/.*/./; q'`
 
6236
    done
 
6237
    test ! -n "$as_dirs" || mkdir $as_dirs
 
6238
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
6239
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
6240
   { (exit 1); exit 1; }; }; }
5750
6241
 
5751
6242
  ac_builddir=.
5752
6243
 
5776
6267
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5777
6268
# absolute.
5778
6269
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5779
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
6270
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5780
6271
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5781
6272
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5782
6273
 
5966
6457
# Break up conftest.defines because some shells have a limit on the size
5967
6458
# of here documents, and old seds have small limits too (100 cmds).
5968
6459
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5969
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
6460
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5970
6461
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5971
6462
echo '  :' >>$CONFIG_STATUS
5972
6463
rm -f conftest.tail
5990
6481
  mv conftest.tail conftest.defines
5991
6482
done
5992
6483
rm -f conftest.defines
5993
 
echo '  fi # egrep' >>$CONFIG_STATUS
 
6484
echo '  fi # grep' >>$CONFIG_STATUS
5994
6485
echo >>$CONFIG_STATUS
5995
6486
 
5996
6487
# Break up conftest.undefs because some shells have a limit on the size
6030
6521
  cat $tmp/in >>$tmp/config.h
6031
6522
  rm -f $tmp/in
6032
6523
  if test x"$ac_file" != x-; then
6033
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
6524
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6034
6525
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6035
6526
echo "$as_me: $ac_file is unchanged" >&6;}
6036
6527
    else
6046
6537
          /^X\(\/\/\)$/{ s//\1/; q; }
6047
6538
          /^X\(\/\).*/{ s//\1/; q; }
6048
6539
          s/.*/./; q'`
6049
 
      { case "$ac_dir" in
6050
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6051
 
  *)                      as_incr_dir=.;;
6052
 
esac
6053
 
as_dummy="$ac_dir"
6054
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6055
 
  case $as_mkdir_dir in
6056
 
    # Skip DOS drivespec
6057
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
6058
 
    *)
6059
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
6060
 
      test -d "$as_incr_dir" ||
6061
 
        mkdir "$as_incr_dir" ||
6062
 
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6063
 
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6064
 
   { (exit 1); exit 1; }; }
6065
 
    ;;
6066
 
  esac
6067
 
done; }
 
6540
      { if $as_mkdir_p; then
 
6541
    mkdir -p "$ac_dir"
 
6542
  else
 
6543
    as_dir="$ac_dir"
 
6544
    as_dirs=
 
6545
    while test ! -d "$as_dir"; do
 
6546
      as_dirs="$as_dir $as_dirs"
 
6547
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
6548
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6549
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6550
         X"$as_dir" : 'X\(//\)$' \| \
 
6551
         X"$as_dir" : 'X\(/\)' \| \
 
6552
         .     : '\(.\)' 2>/dev/null ||
 
6553
echo X"$as_dir" |
 
6554
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6555
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6556
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6557
          /^X\(\/\).*/{ s//\1/; q; }
 
6558
          s/.*/./; q'`
 
6559
    done
 
6560
    test ! -n "$as_dirs" || mkdir $as_dirs
 
6561
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
6562
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
6563
   { (exit 1); exit 1; }; }; }
6068
6564
 
6069
6565
      rm -f $ac_file
6070
6566
      mv $tmp/config.h $ac_file
6123
6619
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6124
6620
# absolute.
6125
6621
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6126
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
6622
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6127
6623
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6128
6624
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6129
6625
 
6154
6650
# need to make the FD available again.
6155
6651
if test "$no_create" != yes; then
6156
6652
  ac_cs_success=:
 
6653
  ac_config_status_args=
 
6654
  test "$silent" = yes &&
 
6655
    ac_config_status_args="$ac_config_status_args --quiet"
6157
6656
  exec 5>/dev/null
6158
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
6657
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6159
6658
  exec 5>>config.log
6160
6659
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6161
6660
  # would make configure fail if this is the last instruction.