~ubuntu-branches/ubuntu/oneiric/virtualbox-ose/oneiric

« back to all changes in this revision

Viewing changes to src/VBox/RDP/client/configure

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

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.61 for rdesktop 1.6.0.
 
3
# Generated by GNU Autoconf 2.67 for rdesktop 1.6.0.
 
4
#
4
5
#
5
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
8
# Foundation, Inc.
 
9
#
 
10
#
7
11
# This configure script is free software; the Free Software Foundation
8
12
# gives unlimited permission to copy, distribute and modify it.
9
 
## --------------------- ##
10
 
## M4sh Initialization.  ##
11
 
## --------------------- ##
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
12
16
 
13
17
# Be more Bourne compatible
14
18
DUALCASE=1; export DUALCASE # for MKS sh
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16
20
  emulate sh
17
21
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
23
  # is contrary to our usage.  Disable this feature.
20
24
  alias -g '${1+"$@"}'='"$@"'
21
25
  setopt NO_GLOB_SUBST
22
26
else
23
 
  case `(set -o) 2>/dev/null` in
24
 
  *posix*) set -o posix ;;
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
25
32
esac
26
 
 
27
 
fi
28
 
 
29
 
 
30
 
 
31
 
 
32
 
# PATH needs CR
33
 
# Avoid depending upon Character Ranges.
34
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
 
as_cr_digits='0123456789'
38
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
39
73
 
40
74
# The user is always right.
41
75
if test "${PATH_SEPARATOR+set}" != set; then
42
 
  echo "#! /bin/sh" >conf$$.sh
43
 
  echo  "exit 0"   >>conf$$.sh
44
 
  chmod +x conf$$.sh
45
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46
 
    PATH_SEPARATOR=';'
47
 
  else
48
 
    PATH_SEPARATOR=:
49
 
  fi
50
 
  rm -f conf$$.sh
51
 
fi
52
 
 
53
 
# Support unset when possible.
54
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55
 
  as_unset=unset
56
 
else
57
 
  as_unset=false
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
58
81
fi
59
82
 
60
83
 
63
86
# there to prevent editors from complaining about space-tab.
64
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
88
# splitting by setting IFS to empty value.)
66
 
as_nl='
67
 
'
68
89
IFS=" ""        $as_nl"
69
90
 
70
91
# Find who we are.  Look in the path if we contain no directory separator.
71
 
case $0 in
 
92
case $0 in #((
72
93
  *[\\/]* ) as_myself=$0 ;;
73
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74
95
for as_dir in $PATH
75
96
do
76
97
  IFS=$as_save_IFS
77
98
  test -z "$as_dir" && as_dir=.
78
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79
 
done
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
80
101
IFS=$as_save_IFS
81
102
 
82
103
     ;;
87
108
  as_myself=$0
88
109
fi
89
110
if test ! -f "$as_myself"; then
90
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91
 
  { (exit 1); exit 1; }
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
92
113
fi
93
114
 
94
 
# Work around bugs in pre-3.0 UWIN ksh.
95
 
for as_var in ENV MAIL MAILPATH
96
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97
122
done
98
123
PS1='$ '
99
124
PS2='> '
100
125
PS4='+ '
101
126
 
102
127
# NLS nuisances.
103
 
for as_var in \
104
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106
 
  LC_TELEPHONE LC_TIME
107
 
do
108
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
 
    eval $as_var=C; export $as_var
110
 
  else
111
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112
 
  fi
113
 
done
114
 
 
115
 
# Required to use basename.
116
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118
 
  as_expr=expr
119
 
else
120
 
  as_expr=false
121
 
fi
122
 
 
123
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124
 
  as_basename=basename
125
 
else
126
 
  as_basename=false
127
 
fi
128
 
 
129
 
 
130
 
# Name of the executable.
131
 
as_me=`$as_basename -- "$0" ||
132
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
 
         X"$0" : 'X\(//\)$' \| \
134
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135
 
echo X/"$0" |
136
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
137
 
            s//\1/
138
 
            q
139
 
          }
140
 
          /^X\/\(\/\/\)$/{
141
 
            s//\1/
142
 
            q
143
 
          }
144
 
          /^X\/\(\/\).*/{
145
 
            s//\1/
146
 
            q
147
 
          }
148
 
          s/.*/./; q'`
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
149
132
 
150
133
# CDPATH.
151
 
$as_unset CDPATH
152
 
 
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
153
135
 
154
136
if test "x$CONFIG_SHELL" = x; then
155
 
  if (eval ":") 2>/dev/null; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
156
176
  as_have_required=yes
157
177
else
158
178
  as_have_required=no
159
179
fi
160
 
 
161
 
  if test $as_have_required = yes &&     (eval ":
162
 
(as_func_return () {
163
 
  (exit \$1)
164
 
}
165
 
as_func_success () {
166
 
  as_func_return 0
167
 
}
168
 
as_func_failure () {
169
 
  as_func_return 1
170
 
}
171
 
as_func_ret_success () {
172
 
  return 0
173
 
}
174
 
as_func_ret_failure () {
175
 
  return 1
176
 
}
177
 
 
178
 
exitcode=0
179
 
if as_func_success; then
180
 
  :
181
 
else
182
 
  exitcode=1
183
 
  echo as_func_success failed.
184
 
fi
185
 
 
186
 
if as_func_failure; then
187
 
  exitcode=1
188
 
  echo as_func_failure succeeded.
189
 
fi
190
 
 
191
 
if as_func_ret_success; then
192
 
  :
193
 
else
194
 
  exitcode=1
195
 
  echo as_func_ret_success failed.
196
 
fi
197
 
 
198
 
if as_func_ret_failure; then
199
 
  exitcode=1
200
 
  echo as_func_ret_failure succeeded.
201
 
fi
202
 
 
203
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204
 
  :
205
 
else
206
 
  exitcode=1
207
 
  echo positional parameters were not saved.
208
 
fi
209
 
 
210
 
test \$exitcode = 0) || { (exit 1); exit 1; }
211
 
 
212
 
(
213
 
  as_lineno_1=\$LINENO
214
 
  as_lineno_2=\$LINENO
215
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
 
") 2> /dev/null; then
218
 
  :
219
 
else
220
 
  as_candidate_shells=
221
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
222
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
186
do
224
187
  IFS=$as_save_IFS
225
188
  test -z "$as_dir" && as_dir=.
226
 
  case $as_dir in
 
189
  as_found=:
 
190
  case $as_dir in #(
227
191
         /*)
228
192
           for as_base in sh bash ksh sh5; do
229
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
230
202
           done;;
231
203
       esac
 
204
  as_found=false
232
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
233
210
IFS=$as_save_IFS
234
211
 
235
212
 
236
 
      for as_shell in $as_candidate_shells $SHELL; do
237
 
         # Try only shells that exist, to save several forks.
238
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
240
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
 
  emulate sh
242
 
  NULLCMD=:
243
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
 
  # is contrary to our usage.  Disable this feature.
245
 
  alias -g '${1+"$@"}'='"$@"'
246
 
  setopt NO_GLOB_SUBST
247
 
else
248
 
  case `(set -o) 2>/dev/null` in
249
 
  *posix*) set -o posix ;;
250
 
esac
251
 
 
252
 
fi
253
 
 
254
 
 
255
 
:
256
 
_ASEOF
257
 
}; then
258
 
  CONFIG_SHELL=$as_shell
259
 
               as_have_required=yes
260
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
261
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
 
  emulate sh
263
 
  NULLCMD=:
264
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
 
  # is contrary to our usage.  Disable this feature.
266
 
  alias -g '${1+"$@"}'='"$@"'
267
 
  setopt NO_GLOB_SUBST
268
 
else
269
 
  case `(set -o) 2>/dev/null` in
270
 
  *posix*) set -o posix ;;
271
 
esac
272
 
 
273
 
fi
274
 
 
275
 
 
276
 
:
277
 
(as_func_return () {
278
 
  (exit $1)
279
 
}
280
 
as_func_success () {
281
 
  as_func_return 0
282
 
}
283
 
as_func_failure () {
284
 
  as_func_return 1
285
 
}
286
 
as_func_ret_success () {
287
 
  return 0
288
 
}
289
 
as_func_ret_failure () {
290
 
  return 1
291
 
}
292
 
 
293
 
exitcode=0
294
 
if as_func_success; then
295
 
  :
296
 
else
297
 
  exitcode=1
298
 
  echo as_func_success failed.
299
 
fi
300
 
 
301
 
if as_func_failure; then
302
 
  exitcode=1
303
 
  echo as_func_failure succeeded.
304
 
fi
305
 
 
306
 
if as_func_ret_success; then
307
 
  :
308
 
else
309
 
  exitcode=1
310
 
  echo as_func_ret_success failed.
311
 
fi
312
 
 
313
 
if as_func_ret_failure; then
314
 
  exitcode=1
315
 
  echo as_func_ret_failure succeeded.
316
 
fi
317
 
 
318
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
319
 
  :
320
 
else
321
 
  exitcode=1
322
 
  echo positional parameters were not saved.
323
 
fi
324
 
 
325
 
test $exitcode = 0) || { (exit 1); exit 1; }
326
 
 
327
 
(
328
 
  as_lineno_1=$LINENO
329
 
  as_lineno_2=$LINENO
330
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
331
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
 
 
333
 
_ASEOF
334
 
}; then
335
 
  break
336
 
fi
337
 
 
338
 
fi
339
 
 
340
 
      done
341
 
 
342
 
      if test "x$CONFIG_SHELL" != x; then
343
 
  for as_var in BASH_ENV ENV
344
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345
 
        done
346
 
        export CONFIG_SHELL
347
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348
 
fi
349
 
 
350
 
 
351
 
    if test $as_have_required = no; then
352
 
  echo This script requires a shell more modern than all the
353
 
      echo shells that I found on your system.  Please install a
354
 
      echo modern shell, or manually run the script under such a
355
 
      echo shell if you do have one.
356
 
      { (exit 1); exit 1; }
357
 
fi
358
 
 
359
 
 
360
 
fi
361
 
 
362
 
fi
363
 
 
364
 
 
365
 
 
366
 
(eval "as_func_return () {
367
 
  (exit \$1)
368
 
}
369
 
as_func_success () {
370
 
  as_func_return 0
371
 
}
372
 
as_func_failure () {
373
 
  as_func_return 1
374
 
}
375
 
as_func_ret_success () {
376
 
  return 0
377
 
}
378
 
as_func_ret_failure () {
379
 
  return 1
380
 
}
381
 
 
382
 
exitcode=0
383
 
if as_func_success; then
384
 
  :
385
 
else
386
 
  exitcode=1
387
 
  echo as_func_success failed.
388
 
fi
389
 
 
390
 
if as_func_failure; then
391
 
  exitcode=1
392
 
  echo as_func_failure succeeded.
393
 
fi
394
 
 
395
 
if as_func_ret_success; then
396
 
  :
397
 
else
398
 
  exitcode=1
399
 
  echo as_func_ret_success failed.
400
 
fi
401
 
 
402
 
if as_func_ret_failure; then
403
 
  exitcode=1
404
 
  echo as_func_ret_failure succeeded.
405
 
fi
406
 
 
407
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408
 
  :
409
 
else
410
 
  exitcode=1
411
 
  echo positional parameters were not saved.
412
 
fi
413
 
 
414
 
test \$exitcode = 0") || {
415
 
  echo No shell found that supports shell functions.
416
 
  echo Please tell autoconf@gnu.org about your system,
417
 
  echo including any error possibly output before this
418
 
  echo message
419
 
}
420
 
 
421
 
 
422
 
 
423
 
  as_lineno_1=$LINENO
424
 
  as_lineno_2=$LINENO
425
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
426
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
 
 
428
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
430
 
  # line-number line after each line using $LINENO; the second 'sed'
431
 
  # does the real work.  The second script uses 'N' to pair each
432
 
  # line-number line with the line containing $LINENO, and appends
433
 
  # trailing '-' during substitution so that $LINENO is not a special
434
 
  # case at line end.
435
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
232
$0: including any error possibly output before this
 
233
$0: message. Then install a modern shell, or manually run
 
234
$0: the script under such a shell if you do have one."
 
235
  fi
 
236
  exit 1
 
237
fi
 
238
fi
 
239
fi
 
240
SHELL=${CONFIG_SHELL-/bin/sh}
 
241
export SHELL
 
242
# Unset more variables known to interfere with behavior of common tools.
 
243
CLICOLOR_FORCE= GREP_OPTIONS=
 
244
unset CLICOLOR_FORCE GREP_OPTIONS
 
245
 
 
246
## --------------------- ##
 
247
## M4sh Shell Functions. ##
 
248
## --------------------- ##
 
249
# as_fn_unset VAR
 
250
# ---------------
 
251
# Portably unset VAR.
 
252
as_fn_unset ()
 
253
{
 
254
  { eval $1=; unset $1;}
 
255
}
 
256
as_unset=as_fn_unset
 
257
 
 
258
# as_fn_set_status STATUS
 
259
# -----------------------
 
260
# Set $? to STATUS, without forking.
 
261
as_fn_set_status ()
 
262
{
 
263
  return $1
 
264
} # as_fn_set_status
 
265
 
 
266
# as_fn_exit STATUS
 
267
# -----------------
 
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
269
as_fn_exit ()
 
270
{
 
271
  set +e
 
272
  as_fn_set_status $1
 
273
  exit $1
 
274
} # as_fn_exit
 
275
 
 
276
# as_fn_mkdir_p
 
277
# -------------
 
278
# Create "$as_dir" as a directory, including parents if necessary.
 
279
as_fn_mkdir_p ()
 
280
{
 
281
 
 
282
  case $as_dir in #(
 
283
  -*) as_dir=./$as_dir;;
 
284
  esac
 
285
  test -d "$as_dir" || eval $as_mkdir_p || {
 
286
    as_dirs=
 
287
    while :; do
 
288
      case $as_dir in #(
 
289
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
290
      *) as_qdir=$as_dir;;
 
291
      esac
 
292
      as_dirs="'$as_qdir' $as_dirs"
 
293
      as_dir=`$as_dirname -- "$as_dir" ||
 
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
295
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
296
         X"$as_dir" : 'X\(//\)$' \| \
 
297
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
298
$as_echo X"$as_dir" |
 
299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
300
            s//\1/
 
301
            q
 
302
          }
 
303
          /^X\(\/\/\)[^/].*/{
 
304
            s//\1/
 
305
            q
 
306
          }
 
307
          /^X\(\/\/\)$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\).*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          s/.*/./; q'`
 
316
      test -d "$as_dir" && break
 
317
    done
 
318
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
319
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
320
 
 
321
 
 
322
} # as_fn_mkdir_p
 
323
# as_fn_append VAR VALUE
 
324
# ----------------------
 
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
326
# advantage of any shell optimizations that allow amortized linear growth over
 
327
# repeated appends, instead of the typical quadratic growth present in naive
 
328
# implementations.
 
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
330
  eval 'as_fn_append ()
 
331
  {
 
332
    eval $1+=\$2
 
333
  }'
 
334
else
 
335
  as_fn_append ()
 
336
  {
 
337
    eval $1=\$$1\$2
 
338
  }
 
339
fi # as_fn_append
 
340
 
 
341
# as_fn_arith ARG...
 
342
# ------------------
 
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
345
# must be portable across $(()) and expr.
 
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
347
  eval 'as_fn_arith ()
 
348
  {
 
349
    as_val=$(( $* ))
 
350
  }'
 
351
else
 
352
  as_fn_arith ()
 
353
  {
 
354
    as_val=`expr "$@" || test $? -eq 1`
 
355
  }
 
356
fi # as_fn_arith
 
357
 
 
358
 
 
359
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
360
# ----------------------------------------
 
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
363
# script with STATUS, using 1 if that was 0.
 
364
as_fn_error ()
 
365
{
 
366
  as_status=$1; test $as_status -eq 0 && as_status=1
 
367
  if test "$4"; then
 
368
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
370
  fi
 
371
  $as_echo "$as_me: error: $2" >&2
 
372
  as_fn_exit $as_status
 
373
} # as_fn_error
 
374
 
 
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
376
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
377
  as_expr=expr
 
378
else
 
379
  as_expr=false
 
380
fi
 
381
 
 
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
383
  as_basename=basename
 
384
else
 
385
  as_basename=false
 
386
fi
 
387
 
 
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
389
  as_dirname=dirname
 
390
else
 
391
  as_dirname=false
 
392
fi
 
393
 
 
394
as_me=`$as_basename -- "$0" ||
 
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
396
         X"$0" : 'X\(//\)$' \| \
 
397
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
398
$as_echo X/"$0" |
 
399
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
400
            s//\1/
 
401
            q
 
402
          }
 
403
          /^X\/\(\/\/\)$/{
 
404
            s//\1/
 
405
            q
 
406
          }
 
407
          /^X\/\(\/\).*/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          s/.*/./; q'`
 
412
 
 
413
# Avoid depending upon Character Ranges.
 
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
417
as_cr_digits='0123456789'
 
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
419
 
 
420
 
 
421
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
422
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
423
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
424
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
425
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438
426
  sed -n '
439
427
    p
440
428
    /[$]LINENO/=
451
439
      s/-\n.*//
452
440
    ' >$as_me.lineno &&
453
441
  chmod +x "$as_me.lineno" ||
454
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
 
   { (exit 1); exit 1; }; }
 
442
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456
443
 
457
444
  # Don't try to exec as it changes $[0], causing all sort of problems
458
445
  # (the dirname of $[0] is not the place where we might find the
462
449
  exit
463
450
}
464
451
 
465
 
 
466
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467
 
  as_dirname=dirname
468
 
else
469
 
  as_dirname=false
470
 
fi
471
 
 
472
452
ECHO_C= ECHO_N= ECHO_T=
473
 
case `echo -n x` in
 
453
case `echo -n x` in #(((((
474
454
-n*)
475
 
  case `echo 'x\c'` in
 
455
  case `echo 'xy\c'` in
476
456
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477
 
  *)   ECHO_C='\c';;
 
457
  xy)  ECHO_C='\c';;
 
458
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
459
       ECHO_T=' ';;
478
460
  esac;;
479
461
*)
480
462
  ECHO_N='-n';;
481
463
esac
482
464
 
483
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485
 
  as_expr=expr
486
 
else
487
 
  as_expr=false
488
 
fi
489
 
 
490
465
rm -f conf$$ conf$$.exe conf$$.file
491
466
if test -d conf$$.dir; then
492
467
  rm -f conf$$.dir/conf$$.file
493
468
else
494
469
  rm -f conf$$.dir
495
 
  mkdir conf$$.dir
 
470
  mkdir conf$$.dir 2>/dev/null
496
471
fi
497
 
echo >conf$$.file
498
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
499
 
  as_ln_s='ln -s'
500
 
  # ... but there are two gotchas:
501
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
 
  # In both cases, we have to default to `cp -p'.
504
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
472
if (echo >conf$$.file) 2>/dev/null; then
 
473
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
474
    as_ln_s='ln -s'
 
475
    # ... but there are two gotchas:
 
476
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
477
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
478
    # In both cases, we have to default to `cp -p'.
 
479
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
480
      as_ln_s='cp -p'
 
481
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s=ln
 
483
  else
505
484
    as_ln_s='cp -p'
506
 
elif ln conf$$.file conf$$ 2>/dev/null; then
507
 
  as_ln_s=ln
 
485
  fi
508
486
else
509
487
  as_ln_s='cp -p'
510
488
fi
512
490
rmdir conf$$.dir 2>/dev/null
513
491
 
514
492
if mkdir -p . 2>/dev/null; then
515
 
  as_mkdir_p=:
 
493
  as_mkdir_p='mkdir -p "$as_dir"'
516
494
else
517
495
  test -d ./-p && rmdir ./-p
518
496
  as_mkdir_p=false
529
507
  as_test_x='
530
508
    eval sh -c '\''
531
509
      if test -d "$1"; then
532
 
        test -d "$1/.";
 
510
        test -d "$1/.";
533
511
      else
534
 
        case $1 in
535
 
        -*)set "./$1";;
 
512
        case $1 in #(
 
513
        -*)set "./$1";;
536
514
        esac;
537
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
515
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538
516
        ???[sx]*):;;*)false;;esac;fi
539
517
    '\'' sh
540
518
  '
548
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
527
 
550
528
 
551
 
 
552
 
exec 7<&0 </dev/null 6>&1
 
529
test -n "$DJDIR" || exec 7<&0 </dev/null
 
530
exec 6>&1
553
531
 
554
532
# Name of the host.
555
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
533
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556
534
# so uname gets run too.
557
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
536
 
567
545
subdirs=
568
546
MFLAGS=
569
547
MAKEFLAGS=
570
 
SHELL=${CONFIG_SHELL-/bin/sh}
571
548
 
572
549
# Identity of this package.
573
550
PACKAGE_NAME='rdesktop'
575
552
PACKAGE_VERSION='1.6.0'
576
553
PACKAGE_STRING='rdesktop 1.6.0'
577
554
PACKAGE_BUGREPORT=''
 
555
PACKAGE_URL=''
578
556
 
579
557
ac_unique_file="rdesktop.c"
580
558
# Factoring default headers for most tests.
613
591
# include <unistd.h>
614
592
#endif"
615
593
 
616
 
ac_subst_vars='SHELL
 
594
ac_subst_vars='LTLIBOBJS
 
595
host_os
 
596
host_vendor
 
597
host_cpu
 
598
host
 
599
build_os
 
600
build_vendor
 
601
build_cpu
 
602
build
 
603
LIBICONV
 
604
LIBOBJS
 
605
SOUNDOBJ
 
606
RDP2VNCTARGET
 
607
VNCLINK
 
608
LDVNC
 
609
VNCINC
 
610
SCARDOBJ
 
611
ssldir
 
612
STRIP
 
613
PKG_CONFIG
 
614
X_EXTRA_LIBS
 
615
X_LIBS
 
616
X_PRE_LIBS
 
617
X_CFLAGS
 
618
XMKMF
 
619
EGREP
 
620
GREP
 
621
CPP
 
622
INSTALL_DATA
 
623
INSTALL_SCRIPT
 
624
INSTALL_PROGRAM
 
625
ac_ct_CXX
 
626
CXXFLAGS
 
627
CXX
 
628
OBJEXT
 
629
EXEEXT
 
630
ac_ct_CC
 
631
CPPFLAGS
 
632
LDFLAGS
 
633
CFLAGS
 
634
CC
 
635
target_alias
 
636
host_alias
 
637
build_alias
 
638
LIBS
 
639
ECHO_T
 
640
ECHO_N
 
641
ECHO_C
 
642
DEFS
 
643
mandir
 
644
localedir
 
645
libdir
 
646
psdir
 
647
pdfdir
 
648
dvidir
 
649
htmldir
 
650
infodir
 
651
docdir
 
652
oldincludedir
 
653
includedir
 
654
localstatedir
 
655
sharedstatedir
 
656
sysconfdir
 
657
datadir
 
658
datarootdir
 
659
libexecdir
 
660
sbindir
 
661
bindir
 
662
program_transform_name
 
663
prefix
 
664
exec_prefix
 
665
PACKAGE_URL
 
666
PACKAGE_BUGREPORT
 
667
PACKAGE_STRING
 
668
PACKAGE_VERSION
 
669
PACKAGE_TARNAME
 
670
PACKAGE_NAME
617
671
PATH_SEPARATOR
618
 
PACKAGE_NAME
619
 
PACKAGE_TARNAME
620
 
PACKAGE_VERSION
621
 
PACKAGE_STRING
622
 
PACKAGE_BUGREPORT
623
 
exec_prefix
624
 
prefix
625
 
program_transform_name
626
 
bindir
627
 
sbindir
628
 
libexecdir
629
 
datarootdir
630
 
datadir
631
 
sysconfdir
632
 
sharedstatedir
633
 
localstatedir
634
 
includedir
635
 
oldincludedir
636
 
docdir
637
 
infodir
638
 
htmldir
639
 
dvidir
640
 
pdfdir
641
 
psdir
642
 
libdir
643
 
localedir
644
 
mandir
645
 
DEFS
646
 
ECHO_C
647
 
ECHO_N
648
 
ECHO_T
649
 
LIBS
650
 
build_alias
651
 
host_alias
652
 
target_alias
653
 
CC
654
 
CFLAGS
655
 
LDFLAGS
656
 
CPPFLAGS
657
 
ac_ct_CC
658
 
EXEEXT
659
 
OBJEXT
660
 
INSTALL_PROGRAM
661
 
INSTALL_SCRIPT
662
 
INSTALL_DATA
663
 
CPP
664
 
GREP
665
 
EGREP
666
 
XMKMF
667
 
X_CFLAGS
668
 
X_PRE_LIBS
669
 
X_LIBS
670
 
X_EXTRA_LIBS
671
 
PKG_CONFIG
672
 
STRIP
673
 
ssldir
674
 
PCSCLITE_CFLAGS
675
 
PCSCLITE_LIBS
676
 
SCARDOBJ
677
 
VNCINC
678
 
LDVNC
679
 
VNCLINK
680
 
RDP2VNCTARGET
681
 
LIBAO_CFLAGS
682
 
LIBAO_LIBS
683
 
ALSA_CFLAGS
684
 
ALSA_LIBS
685
 
LIBSAMPLERATE_CFLAGS
686
 
LIBSAMPLERATE_LIBS
687
 
SOUNDOBJ
688
 
LIBOBJS
689
 
LIBICONV
690
 
build
691
 
build_cpu
692
 
build_vendor
693
 
build_os
694
 
host
695
 
host_cpu
696
 
host_vendor
697
 
host_os
698
 
LTLIBOBJS'
 
672
SHELL'
699
673
ac_subst_files=''
 
674
ac_user_opts='
 
675
enable_option_checking
 
676
with_x
 
677
with_openssl
 
678
enable_static_openssl
 
679
enable_smartcard
 
680
with_egd_socket
 
681
with_libvncserver_config
 
682
with_libvncserver
 
683
with_sound
 
684
enable_static_libsamplerate
 
685
with_libiconv_prefix
 
686
enable_largefile
 
687
with_ipv6
 
688
with_debug
 
689
with_debug_kbd
 
690
with_debug_rdp5
 
691
with_debug_clipboard
 
692
with_debug_sound
 
693
with_debug_channel
 
694
with_debug_seamless
 
695
with_debug_smartcard
 
696
'
700
697
      ac_precious_vars='build_alias
701
698
host_alias
702
699
target_alias
705
702
LDFLAGS
706
703
LIBS
707
704
CPPFLAGS
 
705
CXX
 
706
CXXFLAGS
 
707
CCC
708
708
CPP
709
 
XMKMF
710
 
PKG_CONFIG
711
 
PCSCLITE_CFLAGS
712
 
PCSCLITE_LIBS
713
 
LIBAO_CFLAGS
714
 
LIBAO_LIBS
715
 
ALSA_CFLAGS
716
 
ALSA_LIBS
717
 
LIBSAMPLERATE_CFLAGS
718
 
LIBSAMPLERATE_LIBS'
 
709
XMKMF'
719
710
 
720
711
 
721
712
# Initialize some variables set by options.
722
713
ac_init_help=
723
714
ac_init_version=false
 
715
ac_unrecognized_opts=
 
716
ac_unrecognized_sep=
724
717
# The variables have the same names as the options, with
725
718
# dashes changed to underlines.
726
719
cache_file=/dev/null
776
769
  fi
777
770
 
778
771
  case $ac_option in
779
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780
 
  *)    ac_optarg=yes ;;
 
772
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
773
  *=)   ac_optarg= ;;
 
774
  *)    ac_optarg=yes ;;
781
775
  esac
782
776
 
783
777
  # Accept the important Cygnus configure options, so we can diagnose typos.
819
813
    datarootdir=$ac_optarg ;;
820
814
 
821
815
  -disable-* | --disable-*)
822
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
816
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823
817
    # Reject names that are not valid shell variable names.
824
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
826
 
   { (exit 1); exit 1; }; }
827
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
828
 
    eval enable_$ac_feature=no ;;
 
818
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
819
      as_fn_error $? "invalid feature name: $ac_useropt"
 
820
    ac_useropt_orig=$ac_useropt
 
821
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
822
    case $ac_user_opts in
 
823
      *"
 
824
"enable_$ac_useropt"
 
825
"*) ;;
 
826
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
827
         ac_unrecognized_sep=', ';;
 
828
    esac
 
829
    eval enable_$ac_useropt=no ;;
829
830
 
830
831
  -docdir | --docdir | --docdi | --doc | --do)
831
832
    ac_prev=docdir ;;
838
839
    dvidir=$ac_optarg ;;
839
840
 
840
841
  -enable-* | --enable-*)
841
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
842
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842
843
    # Reject names that are not valid shell variable names.
843
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845
 
   { (exit 1); exit 1; }; }
846
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
844
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
845
      as_fn_error $? "invalid feature name: $ac_useropt"
 
846
    ac_useropt_orig=$ac_useropt
 
847
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
848
    case $ac_user_opts in
 
849
      *"
 
850
"enable_$ac_useropt"
 
851
"*) ;;
 
852
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
853
         ac_unrecognized_sep=', ';;
 
854
    esac
 
855
    eval enable_$ac_useropt=\$ac_optarg ;;
848
856
 
849
857
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850
858
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035
1043
    ac_init_version=: ;;
1036
1044
 
1037
1045
  -with-* | --with-*)
1038
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1046
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1039
1047
    # Reject names that are not valid shell variable names.
1040
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1042
 
   { (exit 1); exit 1; }; }
1043
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044
 
    eval with_$ac_package=\$ac_optarg ;;
 
1048
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1049
      as_fn_error $? "invalid package name: $ac_useropt"
 
1050
    ac_useropt_orig=$ac_useropt
 
1051
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1052
    case $ac_user_opts in
 
1053
      *"
 
1054
"with_$ac_useropt"
 
1055
"*) ;;
 
1056
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1057
         ac_unrecognized_sep=', ';;
 
1058
    esac
 
1059
    eval with_$ac_useropt=\$ac_optarg ;;
1045
1060
 
1046
1061
  -without-* | --without-*)
1047
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1062
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1048
1063
    # Reject names that are not valid shell variable names.
1049
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1051
 
   { (exit 1); exit 1; }; }
1052
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1053
 
    eval with_$ac_package=no ;;
 
1064
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1065
      as_fn_error $? "invalid package name: $ac_useropt"
 
1066
    ac_useropt_orig=$ac_useropt
 
1067
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1068
    case $ac_user_opts in
 
1069
      *"
 
1070
"with_$ac_useropt"
 
1071
"*) ;;
 
1072
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1073
         ac_unrecognized_sep=', ';;
 
1074
    esac
 
1075
    eval with_$ac_useropt=no ;;
1054
1076
 
1055
1077
  --x)
1056
1078
    # Obsolete; use --with-x.
1070
1092
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1071
1093
    x_libraries=$ac_optarg ;;
1072
1094
 
1073
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1074
 
Try \`$0 --help' for more information." >&2
1075
 
   { (exit 1); exit 1; }; }
 
1095
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1096
Try \`$0 --help' for more information"
1076
1097
    ;;
1077
1098
 
1078
1099
  *=*)
1079
1100
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080
1101
    # Reject names that are not valid shell variable names.
1081
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1082
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1083
 
   { (exit 1); exit 1; }; }
 
1102
    case $ac_envvar in #(
 
1103
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1104
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1105
    esac
1084
1106
    eval $ac_envvar=\$ac_optarg
1085
1107
    export $ac_envvar ;;
1086
1108
 
1087
1109
  *)
1088
1110
    # FIXME: should be removed in autoconf 3.0.
1089
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1111
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1090
1112
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1091
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1113
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1092
1114
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093
1115
    ;;
1094
1116
 
1097
1119
 
1098
1120
if test -n "$ac_prev"; then
1099
1121
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1100
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1101
 
   { (exit 1); exit 1; }; }
1102
 
fi
1103
 
 
1104
 
# Be sure to have absolute directory names.
 
1122
  as_fn_error $? "missing argument to $ac_option"
 
1123
fi
 
1124
 
 
1125
if test -n "$ac_unrecognized_opts"; then
 
1126
  case $enable_option_checking in
 
1127
    no) ;;
 
1128
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1129
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1130
  esac
 
1131
fi
 
1132
 
 
1133
# Check all directory arguments for consistency.
1105
1134
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1106
1135
                datadir sysconfdir sharedstatedir localstatedir includedir \
1107
1136
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1108
1137
                libdir localedir mandir
1109
1138
do
1110
1139
  eval ac_val=\$$ac_var
 
1140
  # Remove trailing slashes.
 
1141
  case $ac_val in
 
1142
    */ )
 
1143
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1144
      eval $ac_var=\$ac_val;;
 
1145
  esac
 
1146
  # Be sure to have absolute directory names.
1111
1147
  case $ac_val in
1112
1148
    [\\/$]* | ?:[\\/]* )  continue;;
1113
1149
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1114
1150
  esac
1115
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1116
 
   { (exit 1); exit 1; }; }
 
1151
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1117
1152
done
1118
1153
 
1119
1154
# There might be people who depend on the old broken behavior: `$host'
1127
1162
if test "x$host_alias" != x; then
1128
1163
  if test "x$build_alias" = x; then
1129
1164
    cross_compiling=maybe
1130
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1131
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1165
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1166
    If a cross compiler is detected then cross compile mode will be used" >&2
1132
1167
  elif test "x$build_alias" != "x$host_alias"; then
1133
1168
    cross_compiling=yes
1134
1169
  fi
1143
1178
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1144
1179
ac_ls_di=`ls -di .` &&
1145
1180
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1146
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1147
 
   { (exit 1); exit 1; }; }
 
1181
  as_fn_error $? "working directory cannot be determined"
1148
1182
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1149
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1150
 
   { (exit 1); exit 1; }; }
 
1183
  as_fn_error $? "pwd does not report name of working directory"
1151
1184
 
1152
1185
 
1153
1186
# Find the source files, if location was not specified.
1154
1187
if test -z "$srcdir"; then
1155
1188
  ac_srcdir_defaulted=yes
1156
1189
  # Try the directory containing this script, then the parent directory.
1157
 
  ac_confdir=`$as_dirname -- "$0" ||
1158
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1159
 
         X"$0" : 'X\(//\)[^/]' \| \
1160
 
         X"$0" : 'X\(//\)$' \| \
1161
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162
 
echo X"$0" |
 
1190
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1191
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1192
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1193
         X"$as_myself" : 'X\(//\)$' \| \
 
1194
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1195
$as_echo X"$as_myself" |
1163
1196
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1164
1197
            s//\1/
1165
1198
            q
1186
1219
fi
1187
1220
if test ! -r "$srcdir/$ac_unique_file"; then
1188
1221
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1189
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1190
 
   { (exit 1); exit 1; }; }
 
1222
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1191
1223
fi
1192
1224
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1193
1225
ac_abs_confdir=`(
1194
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1195
 
   { (exit 1); exit 1; }; }
 
1226
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1196
1227
        pwd)`
1197
1228
# When building in place, set srcdir=.
1198
1229
if test "$ac_abs_confdir" = "$ac_pwd"; then
1232
1263
      --help=short        display options specific to this package
1233
1264
      --help=recursive    display the short help of all the included packages
1234
1265
  -V, --version           display version information and exit
1235
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1266
  -q, --quiet, --silent   do not print \`checking ...' messages
1236
1267
      --cache-file=FILE   cache test results in FILE [disabled]
1237
1268
  -C, --config-cache      alias for \`--cache-file=config.cache'
1238
1269
  -n, --no-create         do not create output files
1240
1271
 
1241
1272
Installation directories:
1242
1273
  --prefix=PREFIX         install architecture-independent files in PREFIX
1243
 
                          [$ac_default_prefix]
 
1274
                          [$ac_default_prefix]
1244
1275
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1245
 
                          [PREFIX]
 
1276
                          [PREFIX]
1246
1277
 
1247
1278
By default, \`make install' will install all the files in
1248
1279
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1252
1283
For better control, use the options below.
1253
1284
 
1254
1285
Fine tuning of the installation directories:
1255
 
  --bindir=DIR           user executables [EPREFIX/bin]
1256
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1257
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1258
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1259
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1260
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1261
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1262
 
  --includedir=DIR       C header files [PREFIX/include]
1263
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1264
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1265
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1266
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1267
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1268
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1269
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/rdesktop]
1270
 
  --htmldir=DIR          html documentation [DOCDIR]
1271
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1272
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1273
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1286
  --bindir=DIR            user executables [EPREFIX/bin]
 
1287
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1288
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1289
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1290
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1291
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1292
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1293
  --includedir=DIR        C header files [PREFIX/include]
 
1294
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1295
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1296
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1297
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1298
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1299
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1300
  --docdir=DIR            documentation root [DATAROOTDIR/doc/rdesktop]
 
1301
  --htmldir=DIR           html documentation [DOCDIR]
 
1302
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1303
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1304
  --psdir=DIR             ps documentation [DOCDIR]
1274
1305
_ACEOF
1275
1306
 
1276
1307
  cat <<\_ACEOF
1292
1323
  cat <<\_ACEOF
1293
1324
 
1294
1325
Optional Features:
 
1326
  --disable-option-checking  ignore unrecognized --enable/--with options
1295
1327
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1296
1328
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1297
1329
  --enable-static-openssl link OpenSSL statically
1326
1358
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1327
1359
              nonstandard directory <lib dir>
1328
1360
  LIBS        libraries to pass to the linker, e.g. -l<library>
1329
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1361
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1330
1362
              you have headers in a nonstandard directory <include dir>
 
1363
  CXX         C++ compiler command
 
1364
  CXXFLAGS    C++ compiler flags
1331
1365
  CPP         C preprocessor
1332
1366
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1333
 
  PKG_CONFIG  path to pkg-config utility
1334
 
  PCSCLITE_CFLAGS
1335
 
              C compiler flags for PCSCLITE, overriding pkg-config
1336
 
  PCSCLITE_LIBS
1337
 
              linker flags for PCSCLITE, overriding pkg-config
1338
 
  LIBAO_CFLAGS
1339
 
              C compiler flags for LIBAO, overriding pkg-config
1340
 
  LIBAO_LIBS  linker flags for LIBAO, overriding pkg-config
1341
 
  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1342
 
  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1343
 
  LIBSAMPLERATE_CFLAGS
1344
 
              C compiler flags for LIBSAMPLERATE, overriding pkg-config
1345
 
  LIBSAMPLERATE_LIBS
1346
 
              linker flags for LIBSAMPLERATE, overriding pkg-config
1347
1367
 
1348
1368
Use these variables to override the choices made by `configure' or to help
1349
1369
it to find libraries and programs with nonstandard names/locations.
1350
1370
 
 
1371
Report bugs to the package provider.
1351
1372
_ACEOF
1352
1373
ac_status=$?
1353
1374
fi
1355
1376
if test "$ac_init_help" = "recursive"; then
1356
1377
  # If there are subdirs, report their specific --help.
1357
1378
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358
 
    test -d "$ac_dir" || continue
 
1379
    test -d "$ac_dir" ||
 
1380
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1381
      continue
1359
1382
    ac_builddir=.
1360
1383
 
1361
1384
case "$ac_dir" in
1362
1385
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363
1386
*)
1364
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1387
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1365
1388
  # A ".." for each directory in $ac_dir_suffix.
1366
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1389
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1367
1390
  case $ac_top_builddir_sub in
1368
1391
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369
1392
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399
1422
      echo &&
1400
1423
      $SHELL "$ac_srcdir/configure" --help=recursive
1401
1424
    else
1402
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1425
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403
1426
    fi || ac_status=$?
1404
1427
    cd "$ac_pwd" || { ac_status=$?; break; }
1405
1428
  done
1409
1432
if $ac_init_version; then
1410
1433
  cat <<\_ACEOF
1411
1434
rdesktop configure 1.6.0
1412
 
generated by GNU Autoconf 2.61
 
1435
generated by GNU Autoconf 2.67
1413
1436
 
1414
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1415
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1437
Copyright (C) 2010 Free Software Foundation, Inc.
1416
1438
This configure script is free software; the Free Software Foundation
1417
1439
gives unlimited permission to copy, distribute and modify it.
1418
1440
_ACEOF
1419
1441
  exit
1420
1442
fi
 
1443
 
 
1444
## ------------------------ ##
 
1445
## Autoconf initialization. ##
 
1446
## ------------------------ ##
 
1447
 
 
1448
# ac_fn_c_try_compile LINENO
 
1449
# --------------------------
 
1450
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1451
ac_fn_c_try_compile ()
 
1452
{
 
1453
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1454
  rm -f conftest.$ac_objext
 
1455
  if { { ac_try="$ac_compile"
 
1456
case "(($ac_try" in
 
1457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1458
  *) ac_try_echo=$ac_try;;
 
1459
esac
 
1460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1461
$as_echo "$ac_try_echo"; } >&5
 
1462
  (eval "$ac_compile") 2>conftest.err
 
1463
  ac_status=$?
 
1464
  if test -s conftest.err; then
 
1465
    grep -v '^ *+' conftest.err >conftest.er1
 
1466
    cat conftest.er1 >&5
 
1467
    mv -f conftest.er1 conftest.err
 
1468
  fi
 
1469
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1470
  test $ac_status = 0; } && {
 
1471
         test -z "$ac_c_werror_flag" ||
 
1472
         test ! -s conftest.err
 
1473
       } && test -s conftest.$ac_objext; then :
 
1474
  ac_retval=0
 
1475
else
 
1476
  $as_echo "$as_me: failed program was:" >&5
 
1477
sed 's/^/| /' conftest.$ac_ext >&5
 
1478
 
 
1479
        ac_retval=1
 
1480
fi
 
1481
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1482
  as_fn_set_status $ac_retval
 
1483
 
 
1484
} # ac_fn_c_try_compile
 
1485
 
 
1486
# ac_fn_cxx_try_compile LINENO
 
1487
# ----------------------------
 
1488
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1489
ac_fn_cxx_try_compile ()
 
1490
{
 
1491
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1492
  rm -f conftest.$ac_objext
 
1493
  if { { ac_try="$ac_compile"
 
1494
case "(($ac_try" in
 
1495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1496
  *) ac_try_echo=$ac_try;;
 
1497
esac
 
1498
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1499
$as_echo "$ac_try_echo"; } >&5
 
1500
  (eval "$ac_compile") 2>conftest.err
 
1501
  ac_status=$?
 
1502
  if test -s conftest.err; then
 
1503
    grep -v '^ *+' conftest.err >conftest.er1
 
1504
    cat conftest.er1 >&5
 
1505
    mv -f conftest.er1 conftest.err
 
1506
  fi
 
1507
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1508
  test $ac_status = 0; } && {
 
1509
         test -z "$ac_cxx_werror_flag" ||
 
1510
         test ! -s conftest.err
 
1511
       } && test -s conftest.$ac_objext; then :
 
1512
  ac_retval=0
 
1513
else
 
1514
  $as_echo "$as_me: failed program was:" >&5
 
1515
sed 's/^/| /' conftest.$ac_ext >&5
 
1516
 
 
1517
        ac_retval=1
 
1518
fi
 
1519
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1520
  as_fn_set_status $ac_retval
 
1521
 
 
1522
} # ac_fn_cxx_try_compile
 
1523
 
 
1524
# ac_fn_c_try_cpp LINENO
 
1525
# ----------------------
 
1526
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1527
ac_fn_c_try_cpp ()
 
1528
{
 
1529
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1530
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1531
case "(($ac_try" in
 
1532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1533
  *) ac_try_echo=$ac_try;;
 
1534
esac
 
1535
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1536
$as_echo "$ac_try_echo"; } >&5
 
1537
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1538
  ac_status=$?
 
1539
  if test -s conftest.err; then
 
1540
    grep -v '^ *+' conftest.err >conftest.er1
 
1541
    cat conftest.er1 >&5
 
1542
    mv -f conftest.er1 conftest.err
 
1543
  fi
 
1544
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1545
  test $ac_status = 0; } > conftest.i && {
 
1546
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1547
         test ! -s conftest.err
 
1548
       }; then :
 
1549
  ac_retval=0
 
1550
else
 
1551
  $as_echo "$as_me: failed program was:" >&5
 
1552
sed 's/^/| /' conftest.$ac_ext >&5
 
1553
 
 
1554
    ac_retval=1
 
1555
fi
 
1556
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1557
  as_fn_set_status $ac_retval
 
1558
 
 
1559
} # ac_fn_c_try_cpp
 
1560
 
 
1561
# ac_fn_c_try_run LINENO
 
1562
# ----------------------
 
1563
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1564
# that executables *can* be run.
 
1565
ac_fn_c_try_run ()
 
1566
{
 
1567
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1568
  if { { ac_try="$ac_link"
 
1569
case "(($ac_try" in
 
1570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1571
  *) ac_try_echo=$ac_try;;
 
1572
esac
 
1573
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1574
$as_echo "$ac_try_echo"; } >&5
 
1575
  (eval "$ac_link") 2>&5
 
1576
  ac_status=$?
 
1577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1578
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1579
  { { case "(($ac_try" in
 
1580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1581
  *) ac_try_echo=$ac_try;;
 
1582
esac
 
1583
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1584
$as_echo "$ac_try_echo"; } >&5
 
1585
  (eval "$ac_try") 2>&5
 
1586
  ac_status=$?
 
1587
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1588
  test $ac_status = 0; }; }; then :
 
1589
  ac_retval=0
 
1590
else
 
1591
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1592
       $as_echo "$as_me: failed program was:" >&5
 
1593
sed 's/^/| /' conftest.$ac_ext >&5
 
1594
 
 
1595
       ac_retval=$ac_status
 
1596
fi
 
1597
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1598
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1599
  as_fn_set_status $ac_retval
 
1600
 
 
1601
} # ac_fn_c_try_run
 
1602
 
 
1603
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1604
# -------------------------------------------------------
 
1605
# Tests whether HEADER exists and can be compiled using the include files in
 
1606
# INCLUDES, setting the cache variable VAR accordingly.
 
1607
ac_fn_c_check_header_compile ()
 
1608
{
 
1609
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1610
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1611
$as_echo_n "checking for $2... " >&6; }
 
1612
if eval "test \"\${$3+set}\"" = set; then :
 
1613
  $as_echo_n "(cached) " >&6
 
1614
else
 
1615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1616
/* end confdefs.h.  */
 
1617
$4
 
1618
#include <$2>
 
1619
_ACEOF
 
1620
if ac_fn_c_try_compile "$LINENO"; then :
 
1621
  eval "$3=yes"
 
1622
else
 
1623
  eval "$3=no"
 
1624
fi
 
1625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1626
fi
 
1627
eval ac_res=\$$3
 
1628
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1629
$as_echo "$ac_res" >&6; }
 
1630
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1631
 
 
1632
} # ac_fn_c_check_header_compile
 
1633
 
 
1634
# ac_fn_c_try_link LINENO
 
1635
# -----------------------
 
1636
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1637
ac_fn_c_try_link ()
 
1638
{
 
1639
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1640
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1641
  if { { ac_try="$ac_link"
 
1642
case "(($ac_try" in
 
1643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1644
  *) ac_try_echo=$ac_try;;
 
1645
esac
 
1646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1647
$as_echo "$ac_try_echo"; } >&5
 
1648
  (eval "$ac_link") 2>conftest.err
 
1649
  ac_status=$?
 
1650
  if test -s conftest.err; then
 
1651
    grep -v '^ *+' conftest.err >conftest.er1
 
1652
    cat conftest.er1 >&5
 
1653
    mv -f conftest.er1 conftest.err
 
1654
  fi
 
1655
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1656
  test $ac_status = 0; } && {
 
1657
         test -z "$ac_c_werror_flag" ||
 
1658
         test ! -s conftest.err
 
1659
       } && test -s conftest$ac_exeext && {
 
1660
         test "$cross_compiling" = yes ||
 
1661
         $as_test_x conftest$ac_exeext
 
1662
       }; then :
 
1663
  ac_retval=0
 
1664
else
 
1665
  $as_echo "$as_me: failed program was:" >&5
 
1666
sed 's/^/| /' conftest.$ac_ext >&5
 
1667
 
 
1668
        ac_retval=1
 
1669
fi
 
1670
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1671
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1672
  # interfere with the next link command; also delete a directory that is
 
1673
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1674
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1675
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1676
  as_fn_set_status $ac_retval
 
1677
 
 
1678
} # ac_fn_c_try_link
 
1679
 
 
1680
# ac_fn_c_check_func LINENO FUNC VAR
 
1681
# ----------------------------------
 
1682
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1683
ac_fn_c_check_func ()
 
1684
{
 
1685
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1686
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1687
$as_echo_n "checking for $2... " >&6; }
 
1688
if eval "test \"\${$3+set}\"" = set; then :
 
1689
  $as_echo_n "(cached) " >&6
 
1690
else
 
1691
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1692
/* end confdefs.h.  */
 
1693
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1694
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1695
#define $2 innocuous_$2
 
1696
 
 
1697
/* System header to define __stub macros and hopefully few prototypes,
 
1698
    which can conflict with char $2 (); below.
 
1699
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1700
    <limits.h> exists even on freestanding compilers.  */
 
1701
 
 
1702
#ifdef __STDC__
 
1703
# include <limits.h>
 
1704
#else
 
1705
# include <assert.h>
 
1706
#endif
 
1707
 
 
1708
#undef $2
 
1709
 
 
1710
/* Override any GCC internal prototype to avoid an error.
 
1711
   Use char because int might match the return type of a GCC
 
1712
   builtin and then its argument prototype would still apply.  */
 
1713
#ifdef __cplusplus
 
1714
extern "C"
 
1715
#endif
 
1716
char $2 ();
 
1717
/* The GNU C library defines this for functions which it implements
 
1718
    to always fail with ENOSYS.  Some functions are actually named
 
1719
    something starting with __ and the normal name is an alias.  */
 
1720
#if defined __stub_$2 || defined __stub___$2
 
1721
choke me
 
1722
#endif
 
1723
 
 
1724
int
 
1725
main ()
 
1726
{
 
1727
return $2 ();
 
1728
  ;
 
1729
  return 0;
 
1730
}
 
1731
_ACEOF
 
1732
if ac_fn_c_try_link "$LINENO"; then :
 
1733
  eval "$3=yes"
 
1734
else
 
1735
  eval "$3=no"
 
1736
fi
 
1737
rm -f core conftest.err conftest.$ac_objext \
 
1738
    conftest$ac_exeext conftest.$ac_ext
 
1739
fi
 
1740
eval ac_res=\$$3
 
1741
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1742
$as_echo "$ac_res" >&6; }
 
1743
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1744
 
 
1745
} # ac_fn_c_check_func
 
1746
 
 
1747
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1748
# -------------------------------------------------------
 
1749
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1750
# the include files in INCLUDES and setting the cache variable VAR
 
1751
# accordingly.
 
1752
ac_fn_c_check_header_mongrel ()
 
1753
{
 
1754
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1755
  if eval "test \"\${$3+set}\"" = set; then :
 
1756
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1757
$as_echo_n "checking for $2... " >&6; }
 
1758
if eval "test \"\${$3+set}\"" = set; then :
 
1759
  $as_echo_n "(cached) " >&6
 
1760
fi
 
1761
eval ac_res=\$$3
 
1762
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1763
$as_echo "$ac_res" >&6; }
 
1764
else
 
1765
  # Is the header compilable?
 
1766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1767
$as_echo_n "checking $2 usability... " >&6; }
 
1768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1769
/* end confdefs.h.  */
 
1770
$4
 
1771
#include <$2>
 
1772
_ACEOF
 
1773
if ac_fn_c_try_compile "$LINENO"; then :
 
1774
  ac_header_compiler=yes
 
1775
else
 
1776
  ac_header_compiler=no
 
1777
fi
 
1778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1780
$as_echo "$ac_header_compiler" >&6; }
 
1781
 
 
1782
# Is the header present?
 
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1784
$as_echo_n "checking $2 presence... " >&6; }
 
1785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1786
/* end confdefs.h.  */
 
1787
#include <$2>
 
1788
_ACEOF
 
1789
if ac_fn_c_try_cpp "$LINENO"; then :
 
1790
  ac_header_preproc=yes
 
1791
else
 
1792
  ac_header_preproc=no
 
1793
fi
 
1794
rm -f conftest.err conftest.i conftest.$ac_ext
 
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1796
$as_echo "$ac_header_preproc" >&6; }
 
1797
 
 
1798
# So?  What about this header?
 
1799
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1800
  yes:no: )
 
1801
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1802
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1803
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1804
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1805
    ;;
 
1806
  no:yes:* )
 
1807
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1808
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1809
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1810
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1811
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1812
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1813
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1814
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1815
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1816
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1817
    ;;
 
1818
esac
 
1819
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1820
$as_echo_n "checking for $2... " >&6; }
 
1821
if eval "test \"\${$3+set}\"" = set; then :
 
1822
  $as_echo_n "(cached) " >&6
 
1823
else
 
1824
  eval "$3=\$ac_header_compiler"
 
1825
fi
 
1826
eval ac_res=\$$3
 
1827
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1828
$as_echo "$ac_res" >&6; }
 
1829
fi
 
1830
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1831
 
 
1832
} # ac_fn_c_check_header_mongrel
 
1833
 
 
1834
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
1835
# ---------------------------------------------
 
1836
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
1837
# accordingly.
 
1838
ac_fn_c_check_decl ()
 
1839
{
 
1840
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1841
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
1842
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
1843
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
1844
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
1845
if eval "test \"\${$3+set}\"" = set; then :
 
1846
  $as_echo_n "(cached) " >&6
 
1847
else
 
1848
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1849
/* end confdefs.h.  */
 
1850
$4
 
1851
int
 
1852
main ()
 
1853
{
 
1854
#ifndef $as_decl_name
 
1855
#ifdef __cplusplus
 
1856
  (void) $as_decl_use;
 
1857
#else
 
1858
  (void) $as_decl_name;
 
1859
#endif
 
1860
#endif
 
1861
 
 
1862
  ;
 
1863
  return 0;
 
1864
}
 
1865
_ACEOF
 
1866
if ac_fn_c_try_compile "$LINENO"; then :
 
1867
  eval "$3=yes"
 
1868
else
 
1869
  eval "$3=no"
 
1870
fi
 
1871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1872
fi
 
1873
eval ac_res=\$$3
 
1874
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1875
$as_echo "$ac_res" >&6; }
 
1876
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1877
 
 
1878
} # ac_fn_c_check_decl
 
1879
 
 
1880
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1881
# -------------------------------------------
 
1882
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1883
# variable VAR accordingly.
 
1884
ac_fn_c_check_type ()
 
1885
{
 
1886
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1887
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1888
$as_echo_n "checking for $2... " >&6; }
 
1889
if eval "test \"\${$3+set}\"" = set; then :
 
1890
  $as_echo_n "(cached) " >&6
 
1891
else
 
1892
  eval "$3=no"
 
1893
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1894
/* end confdefs.h.  */
 
1895
$4
 
1896
int
 
1897
main ()
 
1898
{
 
1899
if (sizeof ($2))
 
1900
         return 0;
 
1901
  ;
 
1902
  return 0;
 
1903
}
 
1904
_ACEOF
 
1905
if ac_fn_c_try_compile "$LINENO"; then :
 
1906
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1907
/* end confdefs.h.  */
 
1908
$4
 
1909
int
 
1910
main ()
 
1911
{
 
1912
if (sizeof (($2)))
 
1913
            return 0;
 
1914
  ;
 
1915
  return 0;
 
1916
}
 
1917
_ACEOF
 
1918
if ac_fn_c_try_compile "$LINENO"; then :
 
1919
 
 
1920
else
 
1921
  eval "$3=yes"
 
1922
fi
 
1923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1924
fi
 
1925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1926
fi
 
1927
eval ac_res=\$$3
 
1928
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1929
$as_echo "$ac_res" >&6; }
 
1930
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1931
 
 
1932
} # ac_fn_c_check_type
 
1933
 
 
1934
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
1935
# ----------------------------------------------------
 
1936
# Tries to find if the field MEMBER exists in type AGGR, after including
 
1937
# INCLUDES, setting cache variable VAR accordingly.
 
1938
ac_fn_c_check_member ()
 
1939
{
 
1940
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1941
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
1942
$as_echo_n "checking for $2.$3... " >&6; }
 
1943
if eval "test \"\${$4+set}\"" = set; then :
 
1944
  $as_echo_n "(cached) " >&6
 
1945
else
 
1946
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1947
/* end confdefs.h.  */
 
1948
$5
 
1949
int
 
1950
main ()
 
1951
{
 
1952
static $2 ac_aggr;
 
1953
if (ac_aggr.$3)
 
1954
return 0;
 
1955
  ;
 
1956
  return 0;
 
1957
}
 
1958
_ACEOF
 
1959
if ac_fn_c_try_compile "$LINENO"; then :
 
1960
  eval "$4=yes"
 
1961
else
 
1962
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1963
/* end confdefs.h.  */
 
1964
$5
 
1965
int
 
1966
main ()
 
1967
{
 
1968
static $2 ac_aggr;
 
1969
if (sizeof ac_aggr.$3)
 
1970
return 0;
 
1971
  ;
 
1972
  return 0;
 
1973
}
 
1974
_ACEOF
 
1975
if ac_fn_c_try_compile "$LINENO"; then :
 
1976
  eval "$4=yes"
 
1977
else
 
1978
  eval "$4=no"
 
1979
fi
 
1980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1981
fi
 
1982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1983
fi
 
1984
eval ac_res=\$$4
 
1985
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1986
$as_echo "$ac_res" >&6; }
 
1987
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1988
 
 
1989
} # ac_fn_c_check_member
1421
1990
cat >config.log <<_ACEOF
1422
1991
This file contains any messages produced by compilers while
1423
1992
running configure, to aid debugging if configure makes a mistake.
1424
1993
 
1425
1994
It was created by rdesktop $as_me 1.6.0, which was
1426
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
1995
generated by GNU Autoconf 2.67.  Invocation command line was
1427
1996
 
1428
1997
  $ $0 $@
1429
1998
 
1459
2028
do
1460
2029
  IFS=$as_save_IFS
1461
2030
  test -z "$as_dir" && as_dir=.
1462
 
  echo "PATH: $as_dir"
1463
 
done
 
2031
    $as_echo "PATH: $as_dir"
 
2032
  done
1464
2033
IFS=$as_save_IFS
1465
2034
 
1466
2035
} >&5
1494
2063
    | -silent | --silent | --silen | --sile | --sil)
1495
2064
      continue ;;
1496
2065
    *\'*)
1497
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2066
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1498
2067
    esac
1499
2068
    case $ac_pass in
1500
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2069
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1501
2070
    2)
1502
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2071
      as_fn_append ac_configure_args1 " '$ac_arg'"
1503
2072
      if test $ac_must_keep_next = true; then
1504
2073
        ac_must_keep_next=false # Got value, back to normal.
1505
2074
      else
1515
2084
          -* ) ac_must_keep_next=true ;;
1516
2085
        esac
1517
2086
      fi
1518
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2087
      as_fn_append ac_configure_args " '$ac_arg'"
1519
2088
      ;;
1520
2089
    esac
1521
2090
  done
1522
2091
done
1523
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1524
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2092
{ ac_configure_args0=; unset ac_configure_args0;}
 
2093
{ ac_configure_args1=; unset ac_configure_args1;}
1525
2094
 
1526
2095
# When interrupted or exit'd, cleanup temporary files, and complete
1527
2096
# config.log.  We remove comments because anyway the quotes in there
1533
2102
  {
1534
2103
    echo
1535
2104
 
1536
 
    cat <<\_ASBOX
1537
 
## ---------------- ##
 
2105
    $as_echo "## ---------------- ##
1538
2106
## Cache variables. ##
1539
 
## ---------------- ##
1540
 
_ASBOX
 
2107
## ---------------- ##"
1541
2108
    echo
1542
2109
    # The following way of writing the cache mishandles newlines in values,
1543
2110
(
1546
2113
    case $ac_val in #(
1547
2114
    *${as_nl}*)
1548
2115
      case $ac_var in #(
1549
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1550
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2116
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2117
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1551
2118
      esac
1552
2119
      case $ac_var in #(
1553
2120
      _ | IFS | as_nl) ;; #(
1554
 
      *) $as_unset $ac_var ;;
 
2121
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2122
      *) { eval $ac_var=; unset $ac_var;} ;;
1555
2123
      esac ;;
1556
2124
    esac
1557
2125
  done
1570
2138
)
1571
2139
    echo
1572
2140
 
1573
 
    cat <<\_ASBOX
1574
 
## ----------------- ##
 
2141
    $as_echo "## ----------------- ##
1575
2142
## Output variables. ##
1576
 
## ----------------- ##
1577
 
_ASBOX
 
2143
## ----------------- ##"
1578
2144
    echo
1579
2145
    for ac_var in $ac_subst_vars
1580
2146
    do
1581
2147
      eval ac_val=\$$ac_var
1582
2148
      case $ac_val in
1583
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2149
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584
2150
      esac
1585
 
      echo "$ac_var='\''$ac_val'\''"
 
2151
      $as_echo "$ac_var='\''$ac_val'\''"
1586
2152
    done | sort
1587
2153
    echo
1588
2154
 
1589
2155
    if test -n "$ac_subst_files"; then
1590
 
      cat <<\_ASBOX
1591
 
## ------------------- ##
 
2156
      $as_echo "## ------------------- ##
1592
2157
## File substitutions. ##
1593
 
## ------------------- ##
1594
 
_ASBOX
 
2158
## ------------------- ##"
1595
2159
      echo
1596
2160
      for ac_var in $ac_subst_files
1597
2161
      do
1598
2162
        eval ac_val=\$$ac_var
1599
2163
        case $ac_val in
1600
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2164
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601
2165
        esac
1602
 
        echo "$ac_var='\''$ac_val'\''"
 
2166
        $as_echo "$ac_var='\''$ac_val'\''"
1603
2167
      done | sort
1604
2168
      echo
1605
2169
    fi
1606
2170
 
1607
2171
    if test -s confdefs.h; then
1608
 
      cat <<\_ASBOX
1609
 
## ----------- ##
 
2172
      $as_echo "## ----------- ##
1610
2173
## confdefs.h. ##
1611
 
## ----------- ##
1612
 
_ASBOX
 
2174
## ----------- ##"
1613
2175
      echo
1614
2176
      cat confdefs.h
1615
2177
      echo
1616
2178
    fi
1617
2179
    test "$ac_signal" != 0 &&
1618
 
      echo "$as_me: caught signal $ac_signal"
1619
 
    echo "$as_me: exit $exit_status"
 
2180
      $as_echo "$as_me: caught signal $ac_signal"
 
2181
    $as_echo "$as_me: exit $exit_status"
1620
2182
  } >&5
1621
2183
  rm -f core *.core core.conftest.* &&
1622
2184
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1623
2185
    exit $exit_status
1624
2186
' 0
1625
2187
for ac_signal in 1 2 13 15; do
1626
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2188
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1627
2189
done
1628
2190
ac_signal=0
1629
2191
 
1630
2192
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1631
2193
rm -f -r conftest* confdefs.h
1632
2194
 
 
2195
$as_echo "/* confdefs.h */" > confdefs.h
 
2196
 
1633
2197
# Predefined preprocessor variables.
1634
2198
 
1635
2199
cat >>confdefs.h <<_ACEOF
1636
2200
#define PACKAGE_NAME "$PACKAGE_NAME"
1637
2201
_ACEOF
1638
2202
 
1639
 
 
1640
2203
cat >>confdefs.h <<_ACEOF
1641
2204
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1642
2205
_ACEOF
1643
2206
 
1644
 
 
1645
2207
cat >>confdefs.h <<_ACEOF
1646
2208
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1647
2209
_ACEOF
1648
2210
 
1649
 
 
1650
2211
cat >>confdefs.h <<_ACEOF
1651
2212
#define PACKAGE_STRING "$PACKAGE_STRING"
1652
2213
_ACEOF
1653
2214
 
1654
 
 
1655
2215
cat >>confdefs.h <<_ACEOF
1656
2216
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657
2217
_ACEOF
1658
2218
 
 
2219
cat >>confdefs.h <<_ACEOF
 
2220
#define PACKAGE_URL "$PACKAGE_URL"
 
2221
_ACEOF
 
2222
 
1659
2223
 
1660
2224
# Let the site file select an alternate cache file if it wants to.
1661
 
# Prefer explicitly selected file to automatically selected ones.
 
2225
# Prefer an explicitly selected file to automatically selected ones.
 
2226
ac_site_file1=NONE
 
2227
ac_site_file2=NONE
1662
2228
if test -n "$CONFIG_SITE"; then
1663
 
  set x "$CONFIG_SITE"
 
2229
  # We do not want a PATH search for config.site.
 
2230
  case $CONFIG_SITE in #((
 
2231
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2232
    */*) ac_site_file1=$CONFIG_SITE;;
 
2233
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2234
  esac
1664
2235
elif test "x$prefix" != xNONE; then
1665
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2236
  ac_site_file1=$prefix/share/config.site
 
2237
  ac_site_file2=$prefix/etc/config.site
1666
2238
else
1667
 
  set x "$ac_default_prefix/share/config.site" \
1668
 
        "$ac_default_prefix/etc/config.site"
 
2239
  ac_site_file1=$ac_default_prefix/share/config.site
 
2240
  ac_site_file2=$ac_default_prefix/etc/config.site
1669
2241
fi
1670
 
shift
1671
 
for ac_site_file
 
2242
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1672
2243
do
1673
 
  if test -r "$ac_site_file"; then
1674
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1675
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2244
  test "x$ac_site_file" = xNONE && continue
 
2245
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2246
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2247
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1676
2248
    sed 's/^/| /' "$ac_site_file" >&5
1677
 
    . "$ac_site_file"
 
2249
    . "$ac_site_file" \
 
2250
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2251
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2252
as_fn_error $? "failed to load site script $ac_site_file
 
2253
See \`config.log' for more details" "$LINENO" 5 ; }
1678
2254
  fi
1679
2255
done
1680
2256
 
1681
2257
if test -r "$cache_file"; then
1682
 
  # Some versions of bash will fail to source /dev/null (special
1683
 
  # files actually), so we avoid doing that.
1684
 
  if test -f "$cache_file"; then
1685
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1686
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2258
  # Some versions of bash will fail to source /dev/null (special files
 
2259
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2260
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2261
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2262
$as_echo "$as_me: loading cache $cache_file" >&6;}
1687
2263
    case $cache_file in
1688
2264
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1689
2265
      *)                      . "./$cache_file";;
1690
2266
    esac
1691
2267
  fi
1692
2268
else
1693
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1694
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2269
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2270
$as_echo "$as_me: creating cache $cache_file" >&6;}
1695
2271
  >$cache_file
1696
2272
fi
1697
2273
 
1705
2281
  eval ac_new_val=\$ac_env_${ac_var}_value
1706
2282
  case $ac_old_set,$ac_new_set in
1707
2283
    set,)
1708
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1709
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2284
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2285
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1710
2286
      ac_cache_corrupted=: ;;
1711
2287
    ,set)
1712
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1713
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2288
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2289
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1714
2290
      ac_cache_corrupted=: ;;
1715
2291
    ,);;
1716
2292
    *)
1717
2293
      if test "x$ac_old_val" != "x$ac_new_val"; then
1718
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1719
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1720
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1721
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1722
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1723
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1724
 
        ac_cache_corrupted=:
 
2294
        # differences in whitespace do not lead to failure.
 
2295
        ac_old_val_w=`echo x $ac_old_val`
 
2296
        ac_new_val_w=`echo x $ac_new_val`
 
2297
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2298
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2299
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2300
          ac_cache_corrupted=:
 
2301
        else
 
2302
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2303
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2304
          eval $ac_var=\$ac_old_val
 
2305
        fi
 
2306
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2307
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2308
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2309
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1725
2310
      fi;;
1726
2311
  esac
1727
2312
  # Pass precious variables to config.status.
1728
2313
  if test "$ac_new_set" = set; then
1729
2314
    case $ac_new_val in
1730
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2315
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1731
2316
    *) ac_arg=$ac_var=$ac_new_val ;;
1732
2317
    esac
1733
2318
    case " $ac_configure_args " in
1734
2319
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1735
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2320
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1736
2321
    esac
1737
2322
  fi
1738
2323
done
1739
2324
if $ac_cache_corrupted; then
1740
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1741
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1742
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1743
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1744
 
   { (exit 1); exit 1; }; }
 
2325
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2326
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2327
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2328
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2329
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1745
2330
fi
1746
 
 
1747
 
 
1748
 
 
1749
 
 
1750
 
 
1751
 
 
1752
 
 
1753
 
 
1754
 
 
1755
 
 
1756
 
 
1757
 
 
1758
 
 
1759
 
 
1760
 
 
1761
 
 
1762
 
 
1763
 
 
1764
 
 
1765
 
 
1766
 
 
1767
 
 
1768
 
 
1769
 
 
 
2331
## -------------------- ##
 
2332
## Main body of script. ##
 
2333
## -------------------- ##
1770
2334
 
1771
2335
ac_ext=c
1772
2336
ac_cpp='$CPP $CPPFLAGS'
1786
2350
if test -n "$ac_tool_prefix"; then
1787
2351
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1788
2352
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1789
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1790
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1791
 
if test "${ac_cv_prog_CC+set}" = set; then
1792
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2354
$as_echo_n "checking for $ac_word... " >&6; }
 
2355
if test "${ac_cv_prog_CC+set}" = set; then :
 
2356
  $as_echo_n "(cached) " >&6
1793
2357
else
1794
2358
  if test -n "$CC"; then
1795
2359
  ac_cv_prog_CC="$CC" # Let the user override the test.
1799
2363
do
1800
2364
  IFS=$as_save_IFS
1801
2365
  test -z "$as_dir" && as_dir=.
1802
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2366
    for ac_exec_ext in '' $ac_executable_extensions; do
1803
2367
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1804
2368
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1805
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2369
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1806
2370
    break 2
1807
2371
  fi
1808
2372
done
1809
 
done
 
2373
  done
1810
2374
IFS=$as_save_IFS
1811
2375
 
1812
2376
fi
1813
2377
fi
1814
2378
CC=$ac_cv_prog_CC
1815
2379
if test -n "$CC"; then
1816
 
  { echo "$as_me:$LINENO: result: $CC" >&5
1817
 
echo "${ECHO_T}$CC" >&6; }
 
2380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2381
$as_echo "$CC" >&6; }
1818
2382
else
1819
 
  { echo "$as_me:$LINENO: result: no" >&5
1820
 
echo "${ECHO_T}no" >&6; }
 
2383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2384
$as_echo "no" >&6; }
1821
2385
fi
1822
2386
 
1823
2387
 
1826
2390
  ac_ct_CC=$CC
1827
2391
  # Extract the first word of "gcc", so it can be a program name with args.
1828
2392
set dummy gcc; ac_word=$2
1829
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1830
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1831
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2394
$as_echo_n "checking for $ac_word... " >&6; }
 
2395
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2396
  $as_echo_n "(cached) " >&6
1833
2397
else
1834
2398
  if test -n "$ac_ct_CC"; then
1835
2399
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839
2403
do
1840
2404
  IFS=$as_save_IFS
1841
2405
  test -z "$as_dir" && as_dir=.
1842
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2406
    for ac_exec_ext in '' $ac_executable_extensions; do
1843
2407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1844
2408
    ac_cv_prog_ac_ct_CC="gcc"
1845
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2409
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1846
2410
    break 2
1847
2411
  fi
1848
2412
done
1849
 
done
 
2413
  done
1850
2414
IFS=$as_save_IFS
1851
2415
 
1852
2416
fi
1853
2417
fi
1854
2418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855
2419
if test -n "$ac_ct_CC"; then
1856
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2421
$as_echo "$ac_ct_CC" >&6; }
1858
2422
else
1859
 
  { echo "$as_me:$LINENO: result: no" >&5
1860
 
echo "${ECHO_T}no" >&6; }
 
2423
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2424
$as_echo "no" >&6; }
1861
2425
fi
1862
2426
 
1863
2427
  if test "x$ac_ct_CC" = x; then
1865
2429
  else
1866
2430
    case $cross_compiling:$ac_tool_warned in
1867
2431
yes:)
1868
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1869
 
whose name does not start with the host triplet.  If you think this
1870
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
1871
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1872
 
whose name does not start with the host triplet.  If you think this
1873
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2432
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2433
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1874
2434
ac_tool_warned=yes ;;
1875
2435
esac
1876
2436
    CC=$ac_ct_CC
1883
2443
          if test -n "$ac_tool_prefix"; then
1884
2444
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1885
2445
set dummy ${ac_tool_prefix}cc; ac_word=$2
1886
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1887
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1888
 
if test "${ac_cv_prog_CC+set}" = set; then
1889
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2447
$as_echo_n "checking for $ac_word... " >&6; }
 
2448
if test "${ac_cv_prog_CC+set}" = set; then :
 
2449
  $as_echo_n "(cached) " >&6
1890
2450
else
1891
2451
  if test -n "$CC"; then
1892
2452
  ac_cv_prog_CC="$CC" # Let the user override the test.
1896
2456
do
1897
2457
  IFS=$as_save_IFS
1898
2458
  test -z "$as_dir" && as_dir=.
1899
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2459
    for ac_exec_ext in '' $ac_executable_extensions; do
1900
2460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1901
2461
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1902
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2462
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1903
2463
    break 2
1904
2464
  fi
1905
2465
done
1906
 
done
 
2466
  done
1907
2467
IFS=$as_save_IFS
1908
2468
 
1909
2469
fi
1910
2470
fi
1911
2471
CC=$ac_cv_prog_CC
1912
2472
if test -n "$CC"; then
1913
 
  { echo "$as_me:$LINENO: result: $CC" >&5
1914
 
echo "${ECHO_T}$CC" >&6; }
 
2473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2474
$as_echo "$CC" >&6; }
1915
2475
else
1916
 
  { echo "$as_me:$LINENO: result: no" >&5
1917
 
echo "${ECHO_T}no" >&6; }
 
2476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2477
$as_echo "no" >&6; }
1918
2478
fi
1919
2479
 
1920
2480
 
1923
2483
if test -z "$CC"; then
1924
2484
  # Extract the first word of "cc", so it can be a program name with args.
1925
2485
set dummy cc; ac_word=$2
1926
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1927
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1928
 
if test "${ac_cv_prog_CC+set}" = set; then
1929
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2487
$as_echo_n "checking for $ac_word... " >&6; }
 
2488
if test "${ac_cv_prog_CC+set}" = set; then :
 
2489
  $as_echo_n "(cached) " >&6
1930
2490
else
1931
2491
  if test -n "$CC"; then
1932
2492
  ac_cv_prog_CC="$CC" # Let the user override the test.
1937
2497
do
1938
2498
  IFS=$as_save_IFS
1939
2499
  test -z "$as_dir" && as_dir=.
1940
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2500
    for ac_exec_ext in '' $ac_executable_extensions; do
1941
2501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1942
2502
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1943
2503
       ac_prog_rejected=yes
1944
2504
       continue
1945
2505
     fi
1946
2506
    ac_cv_prog_CC="cc"
1947
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2507
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1948
2508
    break 2
1949
2509
  fi
1950
2510
done
1951
 
done
 
2511
  done
1952
2512
IFS=$as_save_IFS
1953
2513
 
1954
2514
if test $ac_prog_rejected = yes; then
1967
2527
fi
1968
2528
CC=$ac_cv_prog_CC
1969
2529
if test -n "$CC"; then
1970
 
  { echo "$as_me:$LINENO: result: $CC" >&5
1971
 
echo "${ECHO_T}$CC" >&6; }
 
2530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2531
$as_echo "$CC" >&6; }
1972
2532
else
1973
 
  { echo "$as_me:$LINENO: result: no" >&5
1974
 
echo "${ECHO_T}no" >&6; }
 
2533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2534
$as_echo "no" >&6; }
1975
2535
fi
1976
2536
 
1977
2537
 
1982
2542
  do
1983
2543
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984
2544
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1986
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987
 
if test "${ac_cv_prog_CC+set}" = set; then
1988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2546
$as_echo_n "checking for $ac_word... " >&6; }
 
2547
if test "${ac_cv_prog_CC+set}" = set; then :
 
2548
  $as_echo_n "(cached) " >&6
1989
2549
else
1990
2550
  if test -n "$CC"; then
1991
2551
  ac_cv_prog_CC="$CC" # Let the user override the test.
1995
2555
do
1996
2556
  IFS=$as_save_IFS
1997
2557
  test -z "$as_dir" && as_dir=.
1998
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2558
    for ac_exec_ext in '' $ac_executable_extensions; do
1999
2559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000
2560
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2561
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2002
2562
    break 2
2003
2563
  fi
2004
2564
done
2005
 
done
 
2565
  done
2006
2566
IFS=$as_save_IFS
2007
2567
 
2008
2568
fi
2009
2569
fi
2010
2570
CC=$ac_cv_prog_CC
2011
2571
if test -n "$CC"; then
2012
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2013
 
echo "${ECHO_T}$CC" >&6; }
 
2572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2573
$as_echo "$CC" >&6; }
2014
2574
else
2015
 
  { echo "$as_me:$LINENO: result: no" >&5
2016
 
echo "${ECHO_T}no" >&6; }
 
2575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2576
$as_echo "no" >&6; }
2017
2577
fi
2018
2578
 
2019
2579
 
2026
2586
do
2027
2587
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2028
2588
set dummy $ac_prog; ac_word=$2
2029
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2030
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2590
$as_echo_n "checking for $ac_word... " >&6; }
 
2591
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2592
  $as_echo_n "(cached) " >&6
2033
2593
else
2034
2594
  if test -n "$ac_ct_CC"; then
2035
2595
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039
2599
do
2040
2600
  IFS=$as_save_IFS
2041
2601
  test -z "$as_dir" && as_dir=.
2042
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2602
    for ac_exec_ext in '' $ac_executable_extensions; do
2043
2603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044
2604
    ac_cv_prog_ac_ct_CC="$ac_prog"
2045
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2046
2606
    break 2
2047
2607
  fi
2048
2608
done
2049
 
done
 
2609
  done
2050
2610
IFS=$as_save_IFS
2051
2611
 
2052
2612
fi
2053
2613
fi
2054
2614
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055
2615
if test -n "$ac_ct_CC"; then
2056
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2617
$as_echo "$ac_ct_CC" >&6; }
2058
2618
else
2059
 
  { echo "$as_me:$LINENO: result: no" >&5
2060
 
echo "${ECHO_T}no" >&6; }
 
2619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2620
$as_echo "no" >&6; }
2061
2621
fi
2062
2622
 
2063
2623
 
2069
2629
  else
2070
2630
    case $cross_compiling:$ac_tool_warned in
2071
2631
yes:)
2072
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2073
 
whose name does not start with the host triplet.  If you think this
2074
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2075
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2076
 
whose name does not start with the host triplet.  If you think this
2077
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2633
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2078
2634
ac_tool_warned=yes ;;
2079
2635
esac
2080
2636
    CC=$ac_ct_CC
2084
2640
fi
2085
2641
 
2086
2642
 
2087
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2088
 
See \`config.log' for more details." >&5
2089
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2090
 
See \`config.log' for more details." >&2;}
2091
 
   { (exit 1); exit 1; }; }
 
2643
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2644
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2645
as_fn_error $? "no acceptable C compiler found in \$PATH
 
2646
See \`config.log' for more details" "$LINENO" 5 ; }
2092
2647
 
2093
2648
# Provide some information about the compiler.
2094
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2095
 
ac_compiler=`set X $ac_compile; echo $2`
2096
 
{ (ac_try="$ac_compiler --version >&5"
2097
 
case "(($ac_try" in
2098
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099
 
  *) ac_try_echo=$ac_try;;
2100
 
esac
2101
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102
 
  (eval "$ac_compiler --version >&5") 2>&5
2103
 
  ac_status=$?
2104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
 
  (exit $ac_status); }
2106
 
{ (ac_try="$ac_compiler -v >&5"
2107
 
case "(($ac_try" in
2108
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109
 
  *) ac_try_echo=$ac_try;;
2110
 
esac
2111
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112
 
  (eval "$ac_compiler -v >&5") 2>&5
2113
 
  ac_status=$?
2114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115
 
  (exit $ac_status); }
2116
 
{ (ac_try="$ac_compiler -V >&5"
2117
 
case "(($ac_try" in
2118
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119
 
  *) ac_try_echo=$ac_try;;
2120
 
esac
2121
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122
 
  (eval "$ac_compiler -V >&5") 2>&5
2123
 
  ac_status=$?
2124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125
 
  (exit $ac_status); }
 
2649
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2650
set X $ac_compile
 
2651
ac_compiler=$2
 
2652
for ac_option in --version -v -V -qversion; do
 
2653
  { { ac_try="$ac_compiler $ac_option >&5"
 
2654
case "(($ac_try" in
 
2655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2656
  *) ac_try_echo=$ac_try;;
 
2657
esac
 
2658
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2659
$as_echo "$ac_try_echo"; } >&5
 
2660
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2661
  ac_status=$?
 
2662
  if test -s conftest.err; then
 
2663
    sed '10a\
 
2664
... rest of stderr output deleted ...
 
2665
         10q' conftest.err >conftest.er1
 
2666
    cat conftest.er1 >&5
 
2667
  fi
 
2668
  rm -f conftest.er1 conftest.err
 
2669
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2670
  test $ac_status = 0; }
 
2671
done
2126
2672
 
2127
 
cat >conftest.$ac_ext <<_ACEOF
2128
 
/* confdefs.h.  */
2129
 
_ACEOF
2130
 
cat confdefs.h >>conftest.$ac_ext
2131
 
cat >>conftest.$ac_ext <<_ACEOF
 
2673
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132
2674
/* end confdefs.h.  */
2133
2675
 
2134
2676
int
2140
2682
}
2141
2683
_ACEOF
2142
2684
ac_clean_files_save=$ac_clean_files
2143
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2685
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2144
2686
# Try to create an executable without -o first, disregard a.out.
2145
2687
# It will help us diagnose broken compilers, and finding out an intuition
2146
2688
# of exeext.
2147
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2149
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150
 
#
2151
 
# List of possible output files, starting from the most likely.
2152
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2153
 
# only as a last resort.  b.out is created by i960 compilers.
2154
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2155
 
#
2156
 
# The IRIX 6 linker writes into existing files which may not be
2157
 
# executable, retaining their permissions.  Remove them first so a
2158
 
# subsequent execution test works.
 
2689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
2690
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2691
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2692
 
 
2693
# The possible output files:
 
2694
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2695
 
2159
2696
ac_rmfiles=
2160
2697
for ac_file in $ac_files
2161
2698
do
2162
2699
  case $ac_file in
2163
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2700
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2164
2701
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2165
2702
  esac
2166
2703
done
2167
2704
rm -f $ac_rmfiles
2168
2705
 
2169
 
if { (ac_try="$ac_link_default"
 
2706
if { { ac_try="$ac_link_default"
2170
2707
case "(($ac_try" in
2171
2708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172
2709
  *) ac_try_echo=$ac_try;;
2173
2710
esac
2174
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2711
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2712
$as_echo "$ac_try_echo"; } >&5
2175
2713
  (eval "$ac_link_default") 2>&5
2176
2714
  ac_status=$?
2177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178
 
  (exit $ac_status); }; then
 
2715
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2716
  test $ac_status = 0; }; then :
2179
2717
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2180
2718
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2181
2719
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2185
2723
do
2186
2724
  test -f "$ac_file" || continue
2187
2725
  case $ac_file in
2188
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2726
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2189
2727
        ;;
2190
2728
    [ab].out )
2191
2729
        # We found the default executable, but exeext='' is most
2192
2730
        # certainly right.
2193
2731
        break;;
2194
2732
    *.* )
2195
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2733
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2196
2734
        then :; else
2197
2735
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198
2736
        fi
2211
2749
else
2212
2750
  ac_file=''
2213
2751
fi
2214
 
 
2215
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2216
 
echo "${ECHO_T}$ac_file" >&6; }
2217
 
if test -z "$ac_file"; then
2218
 
  echo "$as_me: failed program was:" >&5
 
2752
if test -z "$ac_file"; then :
 
2753
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2754
$as_echo "no" >&6; }
 
2755
$as_echo "$as_me: failed program was:" >&5
2219
2756
sed 's/^/| /' conftest.$ac_ext >&5
2220
2757
 
2221
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222
 
See \`config.log' for more details." >&5
2223
 
echo "$as_me: error: C compiler cannot create executables
2224
 
See \`config.log' for more details." >&2;}
2225
 
   { (exit 77); exit 77; }; }
 
2758
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2759
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2760
as_fn_error 77 "C compiler cannot create executables
 
2761
See \`config.log' for more details" "$LINENO" 5 ; }
 
2762
else
 
2763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2764
$as_echo "yes" >&6; }
2226
2765
fi
2227
 
 
 
2766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
2767
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2769
$as_echo "$ac_file" >&6; }
2228
2770
ac_exeext=$ac_cv_exeext
2229
2771
 
2230
 
# Check that the compiler produces executables we can run.  If not, either
2231
 
# the compiler is broken, or we cross compile.
2232
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2234
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235
 
# If not cross compiling, check that we can run a simple program.
2236
 
if test "$cross_compiling" != yes; then
2237
 
  if { ac_try='./$ac_file'
2238
 
  { (case "(($ac_try" in
2239
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240
 
  *) ac_try_echo=$ac_try;;
2241
 
esac
2242
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243
 
  (eval "$ac_try") 2>&5
2244
 
  ac_status=$?
2245
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246
 
  (exit $ac_status); }; }; then
2247
 
    cross_compiling=no
2248
 
  else
2249
 
    if test "$cross_compiling" = maybe; then
2250
 
        cross_compiling=yes
2251
 
    else
2252
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253
 
If you meant to cross compile, use \`--host'.
2254
 
See \`config.log' for more details." >&5
2255
 
echo "$as_me: error: cannot run C compiled programs.
2256
 
If you meant to cross compile, use \`--host'.
2257
 
See \`config.log' for more details." >&2;}
2258
 
   { (exit 1); exit 1; }; }
2259
 
    fi
2260
 
  fi
2261
 
fi
2262
 
{ echo "$as_me:$LINENO: result: yes" >&5
2263
 
echo "${ECHO_T}yes" >&6; }
2264
 
 
2265
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2772
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2266
2773
ac_clean_files=$ac_clean_files_save
2267
 
# Check that the compiler produces executables we can run.  If not, either
2268
 
# the compiler is broken, or we cross compile.
2269
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2271
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272
 
echo "${ECHO_T}$cross_compiling" >&6; }
2273
 
 
2274
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2276
 
if { (ac_try="$ac_link"
 
2774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2775
$as_echo_n "checking for suffix of executables... " >&6; }
 
2776
if { { ac_try="$ac_link"
2277
2777
case "(($ac_try" in
2278
2778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279
2779
  *) ac_try_echo=$ac_try;;
2280
2780
esac
2281
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2781
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2782
$as_echo "$ac_try_echo"; } >&5
2282
2783
  (eval "$ac_link") 2>&5
2283
2784
  ac_status=$?
2284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285
 
  (exit $ac_status); }; then
 
2785
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2786
  test $ac_status = 0; }; then :
2286
2787
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287
2788
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288
2789
# work properly (i.e., refer to `conftest.exe'), while it won't with
2290
2791
for ac_file in conftest.exe conftest conftest.*; do
2291
2792
  test -f "$ac_file" || continue
2292
2793
  case $ac_file in
2293
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2794
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2294
2795
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295
2796
          break;;
2296
2797
    * ) break;;
2297
2798
  esac
2298
2799
done
2299
2800
else
2300
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301
 
See \`config.log' for more details." >&5
2302
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303
 
See \`config.log' for more details." >&2;}
2304
 
   { (exit 1); exit 1; }; }
 
2801
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2802
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2803
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
2804
See \`config.log' for more details" "$LINENO" 5 ; }
2305
2805
fi
2306
 
 
2307
 
rm -f conftest$ac_cv_exeext
2308
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2806
rm -f conftest conftest$ac_cv_exeext
 
2807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
2808
$as_echo "$ac_cv_exeext" >&6; }
2310
2809
 
2311
2810
rm -f conftest.$ac_ext
2312
2811
EXEEXT=$ac_cv_exeext
2313
2812
ac_exeext=$EXEEXT
2314
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2316
 
if test "${ac_cv_objext+set}" = set; then
2317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2814
/* end confdefs.h.  */
 
2815
#include <stdio.h>
 
2816
int
 
2817
main ()
 
2818
{
 
2819
FILE *f = fopen ("conftest.out", "w");
 
2820
 return ferror (f) || fclose (f) != 0;
 
2821
 
 
2822
  ;
 
2823
  return 0;
 
2824
}
 
2825
_ACEOF
 
2826
ac_clean_files="$ac_clean_files conftest.out"
 
2827
# Check that the compiler produces executables we can run.  If not, either
 
2828
# the compiler is broken, or we cross compile.
 
2829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
2830
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2831
if test "$cross_compiling" != yes; then
 
2832
  { { ac_try="$ac_link"
 
2833
case "(($ac_try" in
 
2834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2835
  *) ac_try_echo=$ac_try;;
 
2836
esac
 
2837
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2838
$as_echo "$ac_try_echo"; } >&5
 
2839
  (eval "$ac_link") 2>&5
 
2840
  ac_status=$?
 
2841
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2842
  test $ac_status = 0; }
 
2843
  if { ac_try='./conftest$ac_cv_exeext'
 
2844
  { { case "(($ac_try" in
 
2845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2846
  *) ac_try_echo=$ac_try;;
 
2847
esac
 
2848
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2849
$as_echo "$ac_try_echo"; } >&5
 
2850
  (eval "$ac_try") 2>&5
 
2851
  ac_status=$?
 
2852
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2853
  test $ac_status = 0; }; }; then
 
2854
    cross_compiling=no
 
2855
  else
 
2856
    if test "$cross_compiling" = maybe; then
 
2857
        cross_compiling=yes
 
2858
    else
 
2859
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2860
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2861
as_fn_error $? "cannot run C compiled programs.
 
2862
If you meant to cross compile, use \`--host'.
 
2863
See \`config.log' for more details" "$LINENO" 5 ; }
 
2864
    fi
 
2865
  fi
 
2866
fi
 
2867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
2868
$as_echo "$cross_compiling" >&6; }
 
2869
 
 
2870
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
2871
ac_clean_files=$ac_clean_files_save
 
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
2873
$as_echo_n "checking for suffix of object files... " >&6; }
 
2874
if test "${ac_cv_objext+set}" = set; then :
 
2875
  $as_echo_n "(cached) " >&6
2318
2876
else
2319
 
  cat >conftest.$ac_ext <<_ACEOF
2320
 
/* confdefs.h.  */
2321
 
_ACEOF
2322
 
cat confdefs.h >>conftest.$ac_ext
2323
 
cat >>conftest.$ac_ext <<_ACEOF
 
2877
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324
2878
/* end confdefs.h.  */
2325
2879
 
2326
2880
int
2332
2886
}
2333
2887
_ACEOF
2334
2888
rm -f conftest.o conftest.obj
2335
 
if { (ac_try="$ac_compile"
 
2889
if { { ac_try="$ac_compile"
2336
2890
case "(($ac_try" in
2337
2891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338
2892
  *) ac_try_echo=$ac_try;;
2339
2893
esac
2340
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2894
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2895
$as_echo "$ac_try_echo"; } >&5
2341
2896
  (eval "$ac_compile") 2>&5
2342
2897
  ac_status=$?
2343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344
 
  (exit $ac_status); }; then
 
2898
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2899
  test $ac_status = 0; }; then :
2345
2900
  for ac_file in conftest.o conftest.obj conftest.*; do
2346
2901
  test -f "$ac_file" || continue;
2347
2902
  case $ac_file in
2348
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2903
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2349
2904
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350
2905
       break;;
2351
2906
  esac
2352
2907
done
2353
2908
else
2354
 
  echo "$as_me: failed program was:" >&5
 
2909
  $as_echo "$as_me: failed program was:" >&5
2355
2910
sed 's/^/| /' conftest.$ac_ext >&5
2356
2911
 
2357
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358
 
See \`config.log' for more details." >&5
2359
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360
 
See \`config.log' for more details." >&2;}
2361
 
   { (exit 1); exit 1; }; }
 
2912
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2913
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2914
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
2915
See \`config.log' for more details" "$LINENO" 5 ; }
2362
2916
fi
2363
 
 
2364
2917
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365
2918
fi
2366
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
2920
$as_echo "$ac_cv_objext" >&6; }
2368
2921
OBJEXT=$ac_cv_objext
2369
2922
ac_objext=$OBJEXT
2370
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2372
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
2924
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2925
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
2926
  $as_echo_n "(cached) " >&6
2374
2927
else
2375
 
  cat >conftest.$ac_ext <<_ACEOF
2376
 
/* confdefs.h.  */
2377
 
_ACEOF
2378
 
cat confdefs.h >>conftest.$ac_ext
2379
 
cat >>conftest.$ac_ext <<_ACEOF
 
2928
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380
2929
/* end confdefs.h.  */
2381
2930
 
2382
2931
int
2390
2939
  return 0;
2391
2940
}
2392
2941
_ACEOF
2393
 
rm -f conftest.$ac_objext
2394
 
if { (ac_try="$ac_compile"
2395
 
case "(($ac_try" in
2396
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397
 
  *) ac_try_echo=$ac_try;;
2398
 
esac
2399
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400
 
  (eval "$ac_compile") 2>conftest.er1
2401
 
  ac_status=$?
2402
 
  grep -v '^ *+' conftest.er1 >conftest.err
2403
 
  rm -f conftest.er1
2404
 
  cat conftest.err >&5
2405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
 
  (exit $ac_status); } && {
2407
 
         test -z "$ac_c_werror_flag" ||
2408
 
         test ! -s conftest.err
2409
 
       } && test -s conftest.$ac_objext; then
 
2942
if ac_fn_c_try_compile "$LINENO"; then :
2410
2943
  ac_compiler_gnu=yes
2411
2944
else
2412
 
  echo "$as_me: failed program was:" >&5
2413
 
sed 's/^/| /' conftest.$ac_ext >&5
2414
 
 
2415
 
        ac_compiler_gnu=no
 
2945
  ac_compiler_gnu=no
2416
2946
fi
2417
 
 
2418
2947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419
2948
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2949
 
2421
2950
fi
2422
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
2952
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2953
if test $ac_compiler_gnu = yes; then
 
2954
  GCC=yes
 
2955
else
 
2956
  GCC=
 
2957
fi
2425
2958
ac_test_CFLAGS=${CFLAGS+set}
2426
2959
ac_save_CFLAGS=$CFLAGS
2427
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2430
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
2961
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2962
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
2963
  $as_echo_n "(cached) " >&6
2431
2964
else
2432
2965
  ac_save_c_werror_flag=$ac_c_werror_flag
2433
2966
   ac_c_werror_flag=yes
2434
2967
   ac_cv_prog_cc_g=no
2435
2968
   CFLAGS="-g"
2436
 
   cat >conftest.$ac_ext <<_ACEOF
2437
 
/* confdefs.h.  */
2438
 
_ACEOF
2439
 
cat confdefs.h >>conftest.$ac_ext
2440
 
cat >>conftest.$ac_ext <<_ACEOF
 
2969
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441
2970
/* end confdefs.h.  */
2442
2971
 
2443
2972
int
2448
2977
  return 0;
2449
2978
}
2450
2979
_ACEOF
2451
 
rm -f conftest.$ac_objext
2452
 
if { (ac_try="$ac_compile"
2453
 
case "(($ac_try" in
2454
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455
 
  *) ac_try_echo=$ac_try;;
2456
 
esac
2457
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458
 
  (eval "$ac_compile") 2>conftest.er1
2459
 
  ac_status=$?
2460
 
  grep -v '^ *+' conftest.er1 >conftest.err
2461
 
  rm -f conftest.er1
2462
 
  cat conftest.err >&5
2463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464
 
  (exit $ac_status); } && {
2465
 
         test -z "$ac_c_werror_flag" ||
2466
 
         test ! -s conftest.err
2467
 
       } && test -s conftest.$ac_objext; then
 
2980
if ac_fn_c_try_compile "$LINENO"; then :
2468
2981
  ac_cv_prog_cc_g=yes
2469
2982
else
2470
 
  echo "$as_me: failed program was:" >&5
2471
 
sed 's/^/| /' conftest.$ac_ext >&5
2472
 
 
2473
 
        CFLAGS=""
2474
 
      cat >conftest.$ac_ext <<_ACEOF
2475
 
/* confdefs.h.  */
2476
 
_ACEOF
2477
 
cat confdefs.h >>conftest.$ac_ext
2478
 
cat >>conftest.$ac_ext <<_ACEOF
 
2983
  CFLAGS=""
 
2984
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479
2985
/* end confdefs.h.  */
2480
2986
 
2481
2987
int
2486
2992
  return 0;
2487
2993
}
2488
2994
_ACEOF
2489
 
rm -f conftest.$ac_objext
2490
 
if { (ac_try="$ac_compile"
2491
 
case "(($ac_try" in
2492
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493
 
  *) ac_try_echo=$ac_try;;
2494
 
esac
2495
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496
 
  (eval "$ac_compile") 2>conftest.er1
2497
 
  ac_status=$?
2498
 
  grep -v '^ *+' conftest.er1 >conftest.err
2499
 
  rm -f conftest.er1
2500
 
  cat conftest.err >&5
2501
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502
 
  (exit $ac_status); } && {
2503
 
         test -z "$ac_c_werror_flag" ||
2504
 
         test ! -s conftest.err
2505
 
       } && test -s conftest.$ac_objext; then
2506
 
  :
 
2995
if ac_fn_c_try_compile "$LINENO"; then :
 
2996
 
2507
2997
else
2508
 
  echo "$as_me: failed program was:" >&5
2509
 
sed 's/^/| /' conftest.$ac_ext >&5
2510
 
 
2511
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2998
  ac_c_werror_flag=$ac_save_c_werror_flag
2512
2999
         CFLAGS="-g"
2513
 
         cat >conftest.$ac_ext <<_ACEOF
2514
 
/* confdefs.h.  */
2515
 
_ACEOF
2516
 
cat confdefs.h >>conftest.$ac_ext
2517
 
cat >>conftest.$ac_ext <<_ACEOF
 
3000
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518
3001
/* end confdefs.h.  */
2519
3002
 
2520
3003
int
2525
3008
  return 0;
2526
3009
}
2527
3010
_ACEOF
2528
 
rm -f conftest.$ac_objext
2529
 
if { (ac_try="$ac_compile"
2530
 
case "(($ac_try" in
2531
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532
 
  *) ac_try_echo=$ac_try;;
2533
 
esac
2534
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535
 
  (eval "$ac_compile") 2>conftest.er1
2536
 
  ac_status=$?
2537
 
  grep -v '^ *+' conftest.er1 >conftest.err
2538
 
  rm -f conftest.er1
2539
 
  cat conftest.err >&5
2540
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
 
  (exit $ac_status); } && {
2542
 
         test -z "$ac_c_werror_flag" ||
2543
 
         test ! -s conftest.err
2544
 
       } && test -s conftest.$ac_objext; then
 
3011
if ac_fn_c_try_compile "$LINENO"; then :
2545
3012
  ac_cv_prog_cc_g=yes
2546
 
else
2547
 
  echo "$as_me: failed program was:" >&5
2548
 
sed 's/^/| /' conftest.$ac_ext >&5
2549
 
 
2550
 
 
2551
 
fi
2552
 
 
2553
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554
 
fi
2555
 
 
2556
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557
 
fi
2558
 
 
 
3013
fi
 
3014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3015
fi
 
3016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3017
fi
2559
3018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560
3019
   ac_c_werror_flag=$ac_save_c_werror_flag
2561
3020
fi
2562
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2563
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3022
$as_echo "$ac_cv_prog_cc_g" >&6; }
2564
3023
if test "$ac_test_CFLAGS" = set; then
2565
3024
  CFLAGS=$ac_save_CFLAGS
2566
3025
elif test $ac_cv_prog_cc_g = yes; then
2576
3035
    CFLAGS=
2577
3036
  fi
2578
3037
fi
2579
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2580
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2581
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
2582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3039
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3040
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3041
  $as_echo_n "(cached) " >&6
2583
3042
else
2584
3043
  ac_cv_prog_cc_c89=no
2585
3044
ac_save_CC=$CC
2586
 
cat >conftest.$ac_ext <<_ACEOF
2587
 
/* confdefs.h.  */
2588
 
_ACEOF
2589
 
cat confdefs.h >>conftest.$ac_ext
2590
 
cat >>conftest.$ac_ext <<_ACEOF
 
3045
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591
3046
/* end confdefs.h.  */
2592
3047
#include <stdarg.h>
2593
3048
#include <stdio.h>
2644
3099
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2645
3100
do
2646
3101
  CC="$ac_save_CC $ac_arg"
2647
 
  rm -f conftest.$ac_objext
2648
 
if { (ac_try="$ac_compile"
2649
 
case "(($ac_try" in
2650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651
 
  *) ac_try_echo=$ac_try;;
2652
 
esac
2653
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654
 
  (eval "$ac_compile") 2>conftest.er1
2655
 
  ac_status=$?
2656
 
  grep -v '^ *+' conftest.er1 >conftest.err
2657
 
  rm -f conftest.er1
2658
 
  cat conftest.err >&5
2659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660
 
  (exit $ac_status); } && {
2661
 
         test -z "$ac_c_werror_flag" ||
2662
 
         test ! -s conftest.err
2663
 
       } && test -s conftest.$ac_objext; then
 
3102
  if ac_fn_c_try_compile "$LINENO"; then :
2664
3103
  ac_cv_prog_cc_c89=$ac_arg
2665
 
else
2666
 
  echo "$as_me: failed program was:" >&5
2667
 
sed 's/^/| /' conftest.$ac_ext >&5
2668
 
 
2669
 
 
2670
3104
fi
2671
 
 
2672
3105
rm -f core conftest.err conftest.$ac_objext
2673
3106
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2674
3107
done
2679
3112
# AC_CACHE_VAL
2680
3113
case "x$ac_cv_prog_cc_c89" in
2681
3114
  x)
2682
 
    { echo "$as_me:$LINENO: result: none needed" >&5
2683
 
echo "${ECHO_T}none needed" >&6; } ;;
 
3115
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3116
$as_echo "none needed" >&6; } ;;
2684
3117
  xno)
2685
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
2686
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
3118
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3119
$as_echo "unsupported" >&6; } ;;
2687
3120
  *)
2688
3121
    CC="$CC $ac_cv_prog_cc_c89"
2689
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2690
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3122
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3123
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2691
3124
esac
 
3125
if test "x$ac_cv_prog_cc_c89" != xno; then :
2692
3126
 
 
3127
fi
2693
3128
 
2694
3129
ac_ext=c
2695
3130
ac_cpp='$CPP $CPPFLAGS'
2700
3135
if test "$GCC" = yes; then
2701
3136
    CFLAGS="$CFLAGS -Wall"
2702
3137
fi
 
3138
ac_ext=cpp
 
3139
ac_cpp='$CXXCPP $CPPFLAGS'
 
3140
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3141
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3142
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3143
if test -z "$CXX"; then
 
3144
  if test -n "$CCC"; then
 
3145
    CXX=$CCC
 
3146
  else
 
3147
    if test -n "$ac_tool_prefix"; then
 
3148
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3149
  do
 
3150
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3151
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3153
$as_echo_n "checking for $ac_word... " >&6; }
 
3154
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3155
  $as_echo_n "(cached) " >&6
 
3156
else
 
3157
  if test -n "$CXX"; then
 
3158
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3159
else
 
3160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3161
for as_dir in $PATH
 
3162
do
 
3163
  IFS=$as_save_IFS
 
3164
  test -z "$as_dir" && as_dir=.
 
3165
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3166
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3167
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3168
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3169
    break 2
 
3170
  fi
 
3171
done
 
3172
  done
 
3173
IFS=$as_save_IFS
 
3174
 
 
3175
fi
 
3176
fi
 
3177
CXX=$ac_cv_prog_CXX
 
3178
if test -n "$CXX"; then
 
3179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3180
$as_echo "$CXX" >&6; }
 
3181
else
 
3182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3183
$as_echo "no" >&6; }
 
3184
fi
 
3185
 
 
3186
 
 
3187
    test -n "$CXX" && break
 
3188
  done
 
3189
fi
 
3190
if test -z "$CXX"; then
 
3191
  ac_ct_CXX=$CXX
 
3192
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3193
do
 
3194
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3195
set dummy $ac_prog; ac_word=$2
 
3196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3197
$as_echo_n "checking for $ac_word... " >&6; }
 
3198
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3199
  $as_echo_n "(cached) " >&6
 
3200
else
 
3201
  if test -n "$ac_ct_CXX"; then
 
3202
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3203
else
 
3204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3205
for as_dir in $PATH
 
3206
do
 
3207
  IFS=$as_save_IFS
 
3208
  test -z "$as_dir" && as_dir=.
 
3209
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3211
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3212
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3213
    break 2
 
3214
  fi
 
3215
done
 
3216
  done
 
3217
IFS=$as_save_IFS
 
3218
 
 
3219
fi
 
3220
fi
 
3221
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3222
if test -n "$ac_ct_CXX"; then
 
3223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3224
$as_echo "$ac_ct_CXX" >&6; }
 
3225
else
 
3226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3227
$as_echo "no" >&6; }
 
3228
fi
 
3229
 
 
3230
 
 
3231
  test -n "$ac_ct_CXX" && break
 
3232
done
 
3233
 
 
3234
  if test "x$ac_ct_CXX" = x; then
 
3235
    CXX="g++"
 
3236
  else
 
3237
    case $cross_compiling:$ac_tool_warned in
 
3238
yes:)
 
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3240
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3241
ac_tool_warned=yes ;;
 
3242
esac
 
3243
    CXX=$ac_ct_CXX
 
3244
  fi
 
3245
fi
 
3246
 
 
3247
  fi
 
3248
fi
 
3249
# Provide some information about the compiler.
 
3250
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3251
set X $ac_compile
 
3252
ac_compiler=$2
 
3253
for ac_option in --version -v -V -qversion; do
 
3254
  { { ac_try="$ac_compiler $ac_option >&5"
 
3255
case "(($ac_try" in
 
3256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3257
  *) ac_try_echo=$ac_try;;
 
3258
esac
 
3259
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3260
$as_echo "$ac_try_echo"; } >&5
 
3261
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3262
  ac_status=$?
 
3263
  if test -s conftest.err; then
 
3264
    sed '10a\
 
3265
... rest of stderr output deleted ...
 
3266
         10q' conftest.err >conftest.er1
 
3267
    cat conftest.er1 >&5
 
3268
  fi
 
3269
  rm -f conftest.er1 conftest.err
 
3270
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3271
  test $ac_status = 0; }
 
3272
done
 
3273
 
 
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3275
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3276
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3277
  $as_echo_n "(cached) " >&6
 
3278
else
 
3279
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3280
/* end confdefs.h.  */
 
3281
 
 
3282
int
 
3283
main ()
 
3284
{
 
3285
#ifndef __GNUC__
 
3286
       choke me
 
3287
#endif
 
3288
 
 
3289
  ;
 
3290
  return 0;
 
3291
}
 
3292
_ACEOF
 
3293
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3294
  ac_compiler_gnu=yes
 
3295
else
 
3296
  ac_compiler_gnu=no
 
3297
fi
 
3298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3299
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3300
 
 
3301
fi
 
3302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3303
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3304
if test $ac_compiler_gnu = yes; then
 
3305
  GXX=yes
 
3306
else
 
3307
  GXX=
 
3308
fi
 
3309
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3310
ac_save_CXXFLAGS=$CXXFLAGS
 
3311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3312
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3313
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3314
  $as_echo_n "(cached) " >&6
 
3315
else
 
3316
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3317
   ac_cxx_werror_flag=yes
 
3318
   ac_cv_prog_cxx_g=no
 
3319
   CXXFLAGS="-g"
 
3320
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3321
/* end confdefs.h.  */
 
3322
 
 
3323
int
 
3324
main ()
 
3325
{
 
3326
 
 
3327
  ;
 
3328
  return 0;
 
3329
}
 
3330
_ACEOF
 
3331
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3332
  ac_cv_prog_cxx_g=yes
 
3333
else
 
3334
  CXXFLAGS=""
 
3335
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3336
/* end confdefs.h.  */
 
3337
 
 
3338
int
 
3339
main ()
 
3340
{
 
3341
 
 
3342
  ;
 
3343
  return 0;
 
3344
}
 
3345
_ACEOF
 
3346
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3347
 
 
3348
else
 
3349
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3350
         CXXFLAGS="-g"
 
3351
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3352
/* end confdefs.h.  */
 
3353
 
 
3354
int
 
3355
main ()
 
3356
{
 
3357
 
 
3358
  ;
 
3359
  return 0;
 
3360
}
 
3361
_ACEOF
 
3362
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3363
  ac_cv_prog_cxx_g=yes
 
3364
fi
 
3365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3366
fi
 
3367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3368
fi
 
3369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3370
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3371
fi
 
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3373
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3374
if test "$ac_test_CXXFLAGS" = set; then
 
3375
  CXXFLAGS=$ac_save_CXXFLAGS
 
3376
elif test $ac_cv_prog_cxx_g = yes; then
 
3377
  if test "$GXX" = yes; then
 
3378
    CXXFLAGS="-g -O2"
 
3379
  else
 
3380
    CXXFLAGS="-g"
 
3381
  fi
 
3382
else
 
3383
  if test "$GXX" = yes; then
 
3384
    CXXFLAGS="-O2"
 
3385
  else
 
3386
    CXXFLAGS=
 
3387
  fi
 
3388
fi
 
3389
ac_ext=c
 
3390
ac_cpp='$CPP $CPPFLAGS'
 
3391
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3392
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3393
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3394
 
2703
3395
 
2704
3396
ac_aux_dir=
2705
3397
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2718
3410
  fi
2719
3411
done
2720
3412
if test -z "$ac_aux_dir"; then
2721
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2722
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2723
 
   { (exit 1); exit 1; }; }
 
3413
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2724
3414
fi
2725
3415
 
2726
3416
# These three variables are undocumented and unsupported,
2745
3435
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746
3436
# OS/2's system install, which has a completely different semantic
2747
3437
# ./install, which can be erroneously created by make from ./install.sh.
2748
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2749
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3438
# Reject install programs that cannot install multiple files.
 
3439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3440
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2750
3441
if test -z "$INSTALL"; then
2751
 
if test "${ac_cv_path_install+set}" = set; then
2752
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3442
if test "${ac_cv_path_install+set}" = set; then :
 
3443
  $as_echo_n "(cached) " >&6
2753
3444
else
2754
3445
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755
3446
for as_dir in $PATH
2756
3447
do
2757
3448
  IFS=$as_save_IFS
2758
3449
  test -z "$as_dir" && as_dir=.
2759
 
  # Account for people who put trailing slashes in PATH elements.
2760
 
case $as_dir/ in
2761
 
  ./ | .// | /cC/* | \
 
3450
    # Account for people who put trailing slashes in PATH elements.
 
3451
case $as_dir/ in #((
 
3452
  ./ | .// | /[cC]/* | \
2762
3453
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2763
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3454
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2764
3455
  /usr/ucb/* ) ;;
2765
3456
  *)
2766
3457
    # OSF1 and SCO ODT 3.0 have their own names for install.
2778
3469
            # program-specific install script used by HP pwplus--don't use.
2779
3470
            :
2780
3471
          else
2781
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2782
 
            break 3
 
3472
            rm -rf conftest.one conftest.two conftest.dir
 
3473
            echo one > conftest.one
 
3474
            echo two > conftest.two
 
3475
            mkdir conftest.dir
 
3476
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3477
              test -s conftest.one && test -s conftest.two &&
 
3478
              test -s conftest.dir/conftest.one &&
 
3479
              test -s conftest.dir/conftest.two
 
3480
            then
 
3481
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3482
              break 3
 
3483
            fi
2783
3484
          fi
2784
3485
        fi
2785
3486
      done
2786
3487
    done
2787
3488
    ;;
2788
3489
esac
2789
 
done
 
3490
 
 
3491
  done
2790
3492
IFS=$as_save_IFS
2791
3493
 
 
3494
rm -rf conftest.one conftest.two conftest.dir
2792
3495
 
2793
3496
fi
2794
3497
  if test "${ac_cv_path_install+set}" = set; then
2801
3504
    INSTALL=$ac_install_sh
2802
3505
  fi
2803
3506
fi
2804
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2805
 
echo "${ECHO_T}$INSTALL" >&6; }
 
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3508
$as_echo "$INSTALL" >&6; }
2806
3509
 
2807
3510
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2808
3511
# It thinks the first close brace ends the variable substitution.
2824
3527
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825
3528
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826
3529
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2828
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3531
$as_echo_n "checking how to run the C preprocessor... " >&6; }
2829
3532
# On Suns, sometimes $CPP names a directory.
2830
3533
if test -n "$CPP" && test -d "$CPP"; then
2831
3534
  CPP=
2832
3535
fi
2833
3536
if test -z "$CPP"; then
2834
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2835
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3537
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3538
  $as_echo_n "(cached) " >&6
2836
3539
else
2837
3540
      # Double quotes because CPP needs to be expanded
2838
3541
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2846
3549
  # <limits.h> exists even on freestanding compilers.
2847
3550
  # On the NeXT, cc -E runs the code through the compiler's parser,
2848
3551
  # not just through cpp. "Syntax error" is here to catch this case.
2849
 
  cat >conftest.$ac_ext <<_ACEOF
2850
 
/* confdefs.h.  */
2851
 
_ACEOF
2852
 
cat confdefs.h >>conftest.$ac_ext
2853
 
cat >>conftest.$ac_ext <<_ACEOF
 
3552
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854
3553
/* end confdefs.h.  */
2855
3554
#ifdef __STDC__
2856
3555
# include <limits.h>
2859
3558
#endif
2860
3559
                     Syntax error
2861
3560
_ACEOF
2862
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
2863
 
case "(($ac_try" in
2864
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865
 
  *) ac_try_echo=$ac_try;;
2866
 
esac
2867
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2869
 
  ac_status=$?
2870
 
  grep -v '^ *+' conftest.er1 >conftest.err
2871
 
  rm -f conftest.er1
2872
 
  cat conftest.err >&5
2873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874
 
  (exit $ac_status); } >/dev/null && {
2875
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2876
 
         test ! -s conftest.err
2877
 
       }; then
2878
 
  :
 
3561
if ac_fn_c_try_cpp "$LINENO"; then :
 
3562
 
2879
3563
else
2880
 
  echo "$as_me: failed program was:" >&5
2881
 
sed 's/^/| /' conftest.$ac_ext >&5
2882
 
 
2883
3564
  # Broken: fails on valid input.
2884
3565
continue
2885
3566
fi
2886
 
 
2887
 
rm -f conftest.err conftest.$ac_ext
 
3567
rm -f conftest.err conftest.i conftest.$ac_ext
2888
3568
 
2889
3569
  # OK, works on sane cases.  Now check whether nonexistent headers
2890
3570
  # can be detected and how.
2891
 
  cat >conftest.$ac_ext <<_ACEOF
2892
 
/* confdefs.h.  */
2893
 
_ACEOF
2894
 
cat confdefs.h >>conftest.$ac_ext
2895
 
cat >>conftest.$ac_ext <<_ACEOF
 
3571
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896
3572
/* end confdefs.h.  */
2897
3573
#include <ac_nonexistent.h>
2898
3574
_ACEOF
2899
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
2900
 
case "(($ac_try" in
2901
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902
 
  *) ac_try_echo=$ac_try;;
2903
 
esac
2904
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2906
 
  ac_status=$?
2907
 
  grep -v '^ *+' conftest.er1 >conftest.err
2908
 
  rm -f conftest.er1
2909
 
  cat conftest.err >&5
2910
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911
 
  (exit $ac_status); } >/dev/null && {
2912
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2913
 
         test ! -s conftest.err
2914
 
       }; then
 
3575
if ac_fn_c_try_cpp "$LINENO"; then :
2915
3576
  # Broken: success on invalid input.
2916
3577
continue
2917
3578
else
2918
 
  echo "$as_me: failed program was:" >&5
2919
 
sed 's/^/| /' conftest.$ac_ext >&5
2920
 
 
2921
3579
  # Passes both tests.
2922
3580
ac_preproc_ok=:
2923
3581
break
2924
3582
fi
2925
 
 
2926
 
rm -f conftest.err conftest.$ac_ext
 
3583
rm -f conftest.err conftest.i conftest.$ac_ext
2927
3584
 
2928
3585
done
2929
3586
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2930
 
rm -f conftest.err conftest.$ac_ext
2931
 
if $ac_preproc_ok; then
 
3587
rm -f conftest.i conftest.err conftest.$ac_ext
 
3588
if $ac_preproc_ok; then :
2932
3589
  break
2933
3590
fi
2934
3591
 
2940
3597
else
2941
3598
  ac_cv_prog_CPP=$CPP
2942
3599
fi
2943
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
2944
 
echo "${ECHO_T}$CPP" >&6; }
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3601
$as_echo "$CPP" >&6; }
2945
3602
ac_preproc_ok=false
2946
3603
for ac_c_preproc_warn_flag in '' yes
2947
3604
do
2951
3608
  # <limits.h> exists even on freestanding compilers.
2952
3609
  # On the NeXT, cc -E runs the code through the compiler's parser,
2953
3610
  # not just through cpp. "Syntax error" is here to catch this case.
2954
 
  cat >conftest.$ac_ext <<_ACEOF
2955
 
/* confdefs.h.  */
2956
 
_ACEOF
2957
 
cat confdefs.h >>conftest.$ac_ext
2958
 
cat >>conftest.$ac_ext <<_ACEOF
 
3611
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959
3612
/* end confdefs.h.  */
2960
3613
#ifdef __STDC__
2961
3614
# include <limits.h>
2964
3617
#endif
2965
3618
                     Syntax error
2966
3619
_ACEOF
2967
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
2968
 
case "(($ac_try" in
2969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970
 
  *) ac_try_echo=$ac_try;;
2971
 
esac
2972
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974
 
  ac_status=$?
2975
 
  grep -v '^ *+' conftest.er1 >conftest.err
2976
 
  rm -f conftest.er1
2977
 
  cat conftest.err >&5
2978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979
 
  (exit $ac_status); } >/dev/null && {
2980
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2981
 
         test ! -s conftest.err
2982
 
       }; then
2983
 
  :
 
3620
if ac_fn_c_try_cpp "$LINENO"; then :
 
3621
 
2984
3622
else
2985
 
  echo "$as_me: failed program was:" >&5
2986
 
sed 's/^/| /' conftest.$ac_ext >&5
2987
 
 
2988
3623
  # Broken: fails on valid input.
2989
3624
continue
2990
3625
fi
2991
 
 
2992
 
rm -f conftest.err conftest.$ac_ext
 
3626
rm -f conftest.err conftest.i conftest.$ac_ext
2993
3627
 
2994
3628
  # OK, works on sane cases.  Now check whether nonexistent headers
2995
3629
  # can be detected and how.
2996
 
  cat >conftest.$ac_ext <<_ACEOF
2997
 
/* confdefs.h.  */
2998
 
_ACEOF
2999
 
cat confdefs.h >>conftest.$ac_ext
3000
 
cat >>conftest.$ac_ext <<_ACEOF
 
3630
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001
3631
/* end confdefs.h.  */
3002
3632
#include <ac_nonexistent.h>
3003
3633
_ACEOF
3004
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3005
 
case "(($ac_try" in
3006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007
 
  *) ac_try_echo=$ac_try;;
3008
 
esac
3009
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3011
 
  ac_status=$?
3012
 
  grep -v '^ *+' conftest.er1 >conftest.err
3013
 
  rm -f conftest.er1
3014
 
  cat conftest.err >&5
3015
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016
 
  (exit $ac_status); } >/dev/null && {
3017
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3018
 
         test ! -s conftest.err
3019
 
       }; then
 
3634
if ac_fn_c_try_cpp "$LINENO"; then :
3020
3635
  # Broken: success on invalid input.
3021
3636
continue
3022
3637
else
3023
 
  echo "$as_me: failed program was:" >&5
3024
 
sed 's/^/| /' conftest.$ac_ext >&5
3025
 
 
3026
3638
  # Passes both tests.
3027
3639
ac_preproc_ok=:
3028
3640
break
3029
3641
fi
3030
 
 
3031
 
rm -f conftest.err conftest.$ac_ext
 
3642
rm -f conftest.err conftest.i conftest.$ac_ext
3032
3643
 
3033
3644
done
3034
3645
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035
 
rm -f conftest.err conftest.$ac_ext
3036
 
if $ac_preproc_ok; then
3037
 
  :
 
3646
rm -f conftest.i conftest.err conftest.$ac_ext
 
3647
if $ac_preproc_ok; then :
 
3648
 
3038
3649
else
3039
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3040
 
See \`config.log' for more details." >&5
3041
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3042
 
See \`config.log' for more details." >&2;}
3043
 
   { (exit 1); exit 1; }; }
 
3650
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3651
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3652
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3653
See \`config.log' for more details" "$LINENO" 5 ; }
3044
3654
fi
3045
3655
 
3046
3656
ac_ext=c
3050
3660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051
3661
 
3052
3662
 
3053
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3054
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3055
 
if test "${ac_cv_path_GREP+set}" = set; then
3056
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3057
 
else
3058
 
  # Extract the first word of "grep ggrep" to use in msg output
3059
 
if test -z "$GREP"; then
3060
 
set dummy grep ggrep; ac_prog_name=$2
3061
 
if test "${ac_cv_path_GREP+set}" = set; then
3062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3063
 
else
 
3663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3664
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3665
if test "${ac_cv_path_GREP+set}" = set; then :
 
3666
  $as_echo_n "(cached) " >&6
 
3667
else
 
3668
  if test -z "$GREP"; then
3064
3669
  ac_path_GREP_found=false
3065
 
# Loop through the user's path and test for each of PROGNAME-LIST
3066
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3670
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3671
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067
3672
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3068
3673
do
3069
3674
  IFS=$as_save_IFS
3070
3675
  test -z "$as_dir" && as_dir=.
3071
 
  for ac_prog in grep ggrep; do
3072
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3073
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3074
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3075
 
    # Check for GNU ac_path_GREP and select it if it is found.
 
3676
    for ac_prog in grep ggrep; do
 
3677
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3678
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3679
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3680
# Check for GNU ac_path_GREP and select it if it is found.
3076
3681
  # Check for GNU $ac_path_GREP
3077
3682
case `"$ac_path_GREP" --version 2>&1` in
3078
3683
*GNU*)
3079
3684
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3080
3685
*)
3081
3686
  ac_count=0
3082
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3687
  $as_echo_n 0123456789 >"conftest.in"
3083
3688
  while :
3084
3689
  do
3085
3690
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3086
3691
    mv "conftest.tmp" "conftest.in"
3087
3692
    cp "conftest.in" "conftest.nl"
3088
 
    echo 'GREP' >> "conftest.nl"
 
3693
    $as_echo 'GREP' >> "conftest.nl"
3089
3694
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3090
3695
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3091
 
    ac_count=`expr $ac_count + 1`
 
3696
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3092
3697
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3093
3698
      # Best one so far, save it but keep looking for a better one
3094
3699
      ac_cv_path_GREP="$ac_path_GREP"
3100
3705
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3101
3706
esac
3102
3707
 
3103
 
 
3104
 
    $ac_path_GREP_found && break 3
3105
 
  done
3106
 
done
3107
 
 
3108
 
done
 
3708
      $ac_path_GREP_found && break 3
 
3709
    done
 
3710
  done
 
3711
  done
3109
3712
IFS=$as_save_IFS
3110
 
 
3111
 
 
3112
 
fi
3113
 
 
3114
 
GREP="$ac_cv_path_GREP"
3115
 
if test -z "$GREP"; then
3116
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3117
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3118
 
   { (exit 1); exit 1; }; }
3119
 
fi
3120
 
 
 
3713
  if test -z "$ac_cv_path_GREP"; then
 
3714
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3715
  fi
3121
3716
else
3122
3717
  ac_cv_path_GREP=$GREP
3123
3718
fi
3124
3719
 
3125
 
 
3126
3720
fi
3127
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3128
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3722
$as_echo "$ac_cv_path_GREP" >&6; }
3129
3723
 GREP="$ac_cv_path_GREP"
3130
3724
 
3131
3725
 
3132
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
3133
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3134
 
if test "${ac_cv_path_EGREP+set}" = set; then
3135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3727
$as_echo_n "checking for egrep... " >&6; }
 
3728
if test "${ac_cv_path_EGREP+set}" = set; then :
 
3729
  $as_echo_n "(cached) " >&6
3136
3730
else
3137
3731
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3138
3732
   then ac_cv_path_EGREP="$GREP -E"
3139
3733
   else
3140
 
     # Extract the first word of "egrep" to use in msg output
3141
 
if test -z "$EGREP"; then
3142
 
set dummy egrep; ac_prog_name=$2
3143
 
if test "${ac_cv_path_EGREP+set}" = set; then
3144
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3145
 
else
 
3734
     if test -z "$EGREP"; then
3146
3735
  ac_path_EGREP_found=false
3147
 
# Loop through the user's path and test for each of PROGNAME-LIST
3148
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3736
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3737
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149
3738
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3150
3739
do
3151
3740
  IFS=$as_save_IFS
3152
3741
  test -z "$as_dir" && as_dir=.
3153
 
  for ac_prog in egrep; do
3154
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3155
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3156
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3157
 
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3742
    for ac_prog in egrep; do
 
3743
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3744
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3745
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3746
# Check for GNU ac_path_EGREP and select it if it is found.
3158
3747
  # Check for GNU $ac_path_EGREP
3159
3748
case `"$ac_path_EGREP" --version 2>&1` in
3160
3749
*GNU*)
3161
3750
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3162
3751
*)
3163
3752
  ac_count=0
3164
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3753
  $as_echo_n 0123456789 >"conftest.in"
3165
3754
  while :
3166
3755
  do
3167
3756
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3168
3757
    mv "conftest.tmp" "conftest.in"
3169
3758
    cp "conftest.in" "conftest.nl"
3170
 
    echo 'EGREP' >> "conftest.nl"
 
3759
    $as_echo 'EGREP' >> "conftest.nl"
3171
3760
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3172
3761
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3173
 
    ac_count=`expr $ac_count + 1`
 
3762
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3174
3763
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3175
3764
      # Best one so far, save it but keep looking for a better one
3176
3765
      ac_cv_path_EGREP="$ac_path_EGREP"
3182
3771
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3183
3772
esac
3184
3773
 
3185
 
 
3186
 
    $ac_path_EGREP_found && break 3
3187
 
  done
3188
 
done
3189
 
 
3190
 
done
 
3774
      $ac_path_EGREP_found && break 3
 
3775
    done
 
3776
  done
 
3777
  done
3191
3778
IFS=$as_save_IFS
3192
 
 
3193
 
 
3194
 
fi
3195
 
 
3196
 
EGREP="$ac_cv_path_EGREP"
3197
 
if test -z "$EGREP"; then
3198
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3199
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3200
 
   { (exit 1); exit 1; }; }
3201
 
fi
3202
 
 
 
3779
  if test -z "$ac_cv_path_EGREP"; then
 
3780
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3781
  fi
3203
3782
else
3204
3783
  ac_cv_path_EGREP=$EGREP
3205
3784
fi
3206
3785
 
3207
 
 
3208
3786
   fi
3209
3787
fi
3210
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3211
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3789
$as_echo "$ac_cv_path_EGREP" >&6; }
3212
3790
 EGREP="$ac_cv_path_EGREP"
3213
3791
 
3214
3792
 
3215
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3216
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3217
 
if test "${ac_cv_header_stdc+set}" = set; then
3218
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
3794
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3795
if test "${ac_cv_header_stdc+set}" = set; then :
 
3796
  $as_echo_n "(cached) " >&6
3219
3797
else
3220
 
  cat >conftest.$ac_ext <<_ACEOF
3221
 
/* confdefs.h.  */
3222
 
_ACEOF
3223
 
cat confdefs.h >>conftest.$ac_ext
3224
 
cat >>conftest.$ac_ext <<_ACEOF
 
3798
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225
3799
/* end confdefs.h.  */
3226
3800
#include <stdlib.h>
3227
3801
#include <stdarg.h>
3236
3810
  return 0;
3237
3811
}
3238
3812
_ACEOF
3239
 
rm -f conftest.$ac_objext
3240
 
if { (ac_try="$ac_compile"
3241
 
case "(($ac_try" in
3242
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243
 
  *) ac_try_echo=$ac_try;;
3244
 
esac
3245
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246
 
  (eval "$ac_compile") 2>conftest.er1
3247
 
  ac_status=$?
3248
 
  grep -v '^ *+' conftest.er1 >conftest.err
3249
 
  rm -f conftest.er1
3250
 
  cat conftest.err >&5
3251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252
 
  (exit $ac_status); } && {
3253
 
         test -z "$ac_c_werror_flag" ||
3254
 
         test ! -s conftest.err
3255
 
       } && test -s conftest.$ac_objext; then
 
3813
if ac_fn_c_try_compile "$LINENO"; then :
3256
3814
  ac_cv_header_stdc=yes
3257
3815
else
3258
 
  echo "$as_me: failed program was:" >&5
3259
 
sed 's/^/| /' conftest.$ac_ext >&5
3260
 
 
3261
 
        ac_cv_header_stdc=no
 
3816
  ac_cv_header_stdc=no
3262
3817
fi
3263
 
 
3264
3818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265
3819
 
3266
3820
if test $ac_cv_header_stdc = yes; then
3267
3821
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3268
 
  cat >conftest.$ac_ext <<_ACEOF
3269
 
/* confdefs.h.  */
3270
 
_ACEOF
3271
 
cat confdefs.h >>conftest.$ac_ext
3272
 
cat >>conftest.$ac_ext <<_ACEOF
 
3822
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273
3823
/* end confdefs.h.  */
3274
3824
#include <string.h>
3275
3825
 
3276
3826
_ACEOF
3277
3827
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278
 
  $EGREP "memchr" >/dev/null 2>&1; then
3279
 
  :
 
3828
  $EGREP "memchr" >/dev/null 2>&1; then :
 
3829
 
3280
3830
else
3281
3831
  ac_cv_header_stdc=no
3282
3832
fi
3286
3836
 
3287
3837
if test $ac_cv_header_stdc = yes; then
3288
3838
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3289
 
  cat >conftest.$ac_ext <<_ACEOF
3290
 
/* confdefs.h.  */
3291
 
_ACEOF
3292
 
cat confdefs.h >>conftest.$ac_ext
3293
 
cat >>conftest.$ac_ext <<_ACEOF
 
3839
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294
3840
/* end confdefs.h.  */
3295
3841
#include <stdlib.h>
3296
3842
 
3297
3843
_ACEOF
3298
3844
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3299
 
  $EGREP "free" >/dev/null 2>&1; then
3300
 
  :
 
3845
  $EGREP "free" >/dev/null 2>&1; then :
 
3846
 
3301
3847
else
3302
3848
  ac_cv_header_stdc=no
3303
3849
fi
3307
3853
 
3308
3854
if test $ac_cv_header_stdc = yes; then
3309
3855
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3310
 
  if test "$cross_compiling" = yes; then
 
3856
  if test "$cross_compiling" = yes; then :
3311
3857
  :
3312
3858
else
3313
 
  cat >conftest.$ac_ext <<_ACEOF
3314
 
/* confdefs.h.  */
3315
 
_ACEOF
3316
 
cat confdefs.h >>conftest.$ac_ext
3317
 
cat >>conftest.$ac_ext <<_ACEOF
 
3859
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318
3860
/* end confdefs.h.  */
3319
3861
#include <ctype.h>
3320
3862
#include <stdlib.h>
3341
3883
  return 0;
3342
3884
}
3343
3885
_ACEOF
3344
 
rm -f conftest$ac_exeext
3345
 
if { (ac_try="$ac_link"
3346
 
case "(($ac_try" in
3347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348
 
  *) ac_try_echo=$ac_try;;
3349
 
esac
3350
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351
 
  (eval "$ac_link") 2>&5
3352
 
  ac_status=$?
3353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3355
 
  { (case "(($ac_try" in
3356
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357
 
  *) ac_try_echo=$ac_try;;
3358
 
esac
3359
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360
 
  (eval "$ac_try") 2>&5
3361
 
  ac_status=$?
3362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363
 
  (exit $ac_status); }; }; then
3364
 
  :
 
3886
if ac_fn_c_try_run "$LINENO"; then :
 
3887
 
3365
3888
else
3366
 
  echo "$as_me: program exited with status $ac_status" >&5
3367
 
echo "$as_me: failed program was:" >&5
3368
 
sed 's/^/| /' conftest.$ac_ext >&5
3369
 
 
3370
 
( exit $ac_status )
3371
 
ac_cv_header_stdc=no
3372
 
fi
3373
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3374
 
fi
3375
 
 
3376
 
 
3377
 
fi
3378
 
fi
3379
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3380
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
3889
  ac_cv_header_stdc=no
 
3890
fi
 
3891
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
3892
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3893
fi
 
3894
 
 
3895
fi
 
3896
fi
 
3897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
3898
$as_echo "$ac_cv_header_stdc" >&6; }
3381
3899
if test $ac_cv_header_stdc = yes; then
3382
3900
 
3383
 
cat >>confdefs.h <<\_ACEOF
3384
 
#define STDC_HEADERS 1
3385
 
_ACEOF
 
3901
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3386
3902
 
3387
3903
fi
3388
3904
 
3389
3905
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3390
 
 
3391
 
 
3392
 
 
3393
 
 
3394
 
 
3395
 
 
3396
 
 
3397
 
 
3398
 
 
3399
3906
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3400
3907
                  inttypes.h stdint.h unistd.h
3401
 
do
3402
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3403
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3404
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3405
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3406
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3407
 
else
3408
 
  cat >conftest.$ac_ext <<_ACEOF
3409
 
/* confdefs.h.  */
3410
 
_ACEOF
3411
 
cat confdefs.h >>conftest.$ac_ext
3412
 
cat >>conftest.$ac_ext <<_ACEOF
3413
 
/* end confdefs.h.  */
3414
 
$ac_includes_default
3415
 
 
3416
 
#include <$ac_header>
3417
 
_ACEOF
3418
 
rm -f conftest.$ac_objext
3419
 
if { (ac_try="$ac_compile"
3420
 
case "(($ac_try" in
3421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422
 
  *) ac_try_echo=$ac_try;;
3423
 
esac
3424
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425
 
  (eval "$ac_compile") 2>conftest.er1
3426
 
  ac_status=$?
3427
 
  grep -v '^ *+' conftest.er1 >conftest.err
3428
 
  rm -f conftest.er1
3429
 
  cat conftest.err >&5
3430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431
 
  (exit $ac_status); } && {
3432
 
         test -z "$ac_c_werror_flag" ||
3433
 
         test ! -s conftest.err
3434
 
       } && test -s conftest.$ac_objext; then
3435
 
  eval "$as_ac_Header=yes"
3436
 
else
3437
 
  echo "$as_me: failed program was:" >&5
3438
 
sed 's/^/| /' conftest.$ac_ext >&5
3439
 
 
3440
 
        eval "$as_ac_Header=no"
3441
 
fi
3442
 
 
3443
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444
 
fi
3445
 
ac_res=`eval echo '${'$as_ac_Header'}'`
3446
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
3447
 
echo "${ECHO_T}$ac_res" >&6; }
3448
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3908
do :
 
3909
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3910
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3911
"
 
3912
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3449
3913
  cat >>confdefs.h <<_ACEOF
3450
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3914
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3451
3915
_ACEOF
3452
3916
 
3453
3917
fi
3455
3919
done
3456
3920
 
3457
3921
 
3458
 
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3459
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3460
 
if test "${ac_cv_c_bigendian+set}" = set; then
3461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3922
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
3923
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
3924
if test "${ac_cv_c_bigendian+set}" = set; then :
 
3925
  $as_echo_n "(cached) " >&6
3462
3926
else
3463
 
  # See if sys/param.h defines the BYTE_ORDER macro.
3464
 
cat >conftest.$ac_ext <<_ACEOF
3465
 
/* confdefs.h.  */
 
3927
  ac_cv_c_bigendian=unknown
 
3928
    # See if we're dealing with a universal compiler.
 
3929
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3930
/* end confdefs.h.  */
 
3931
#ifndef __APPLE_CC__
 
3932
               not a universal capable compiler
 
3933
             #endif
 
3934
             typedef int dummy;
 
3935
 
3466
3936
_ACEOF
3467
 
cat confdefs.h >>conftest.$ac_ext
3468
 
cat >>conftest.$ac_ext <<_ACEOF
 
3937
if ac_fn_c_try_compile "$LINENO"; then :
 
3938
 
 
3939
        # Check for potential -arch flags.  It is not universal unless
 
3940
        # there are at least two -arch flags with different values.
 
3941
        ac_arch=
 
3942
        ac_prev=
 
3943
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
3944
         if test -n "$ac_prev"; then
 
3945
           case $ac_word in
 
3946
             i?86 | x86_64 | ppc | ppc64)
 
3947
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
3948
                 ac_arch=$ac_word
 
3949
               else
 
3950
                 ac_cv_c_bigendian=universal
 
3951
                 break
 
3952
               fi
 
3953
               ;;
 
3954
           esac
 
3955
           ac_prev=
 
3956
         elif test "x$ac_word" = "x-arch"; then
 
3957
           ac_prev=arch
 
3958
         fi
 
3959
       done
 
3960
fi
 
3961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3962
    if test $ac_cv_c_bigendian = unknown; then
 
3963
      # See if sys/param.h defines the BYTE_ORDER macro.
 
3964
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469
3965
/* end confdefs.h.  */
3470
3966
#include <sys/types.h>
3471
 
#include <sys/param.h>
 
3967
             #include <sys/param.h>
3472
3968
 
3473
3969
int
3474
3970
main ()
3475
3971
{
3476
 
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3477
 
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3478
 
 bogus endian macros
3479
 
#endif
 
3972
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
3973
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
3974
                     && LITTLE_ENDIAN)
 
3975
              bogus endian macros
 
3976
             #endif
3480
3977
 
3481
3978
  ;
3482
3979
  return 0;
3483
3980
}
3484
3981
_ACEOF
3485
 
rm -f conftest.$ac_objext
3486
 
if { (ac_try="$ac_compile"
3487
 
case "(($ac_try" in
3488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489
 
  *) ac_try_echo=$ac_try;;
3490
 
esac
3491
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492
 
  (eval "$ac_compile") 2>conftest.er1
3493
 
  ac_status=$?
3494
 
  grep -v '^ *+' conftest.er1 >conftest.err
3495
 
  rm -f conftest.er1
3496
 
  cat conftest.err >&5
3497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498
 
  (exit $ac_status); } && {
3499
 
         test -z "$ac_c_werror_flag" ||
3500
 
         test ! -s conftest.err
3501
 
       } && test -s conftest.$ac_objext; then
 
3982
if ac_fn_c_try_compile "$LINENO"; then :
3502
3983
  # It does; now see whether it defined to BIG_ENDIAN or not.
3503
 
cat >conftest.$ac_ext <<_ACEOF
3504
 
/* confdefs.h.  */
3505
 
_ACEOF
3506
 
cat confdefs.h >>conftest.$ac_ext
3507
 
cat >>conftest.$ac_ext <<_ACEOF
 
3984
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508
3985
/* end confdefs.h.  */
3509
3986
#include <sys/types.h>
3510
 
#include <sys/param.h>
 
3987
                #include <sys/param.h>
3511
3988
 
3512
3989
int
3513
3990
main ()
3514
3991
{
3515
3992
#if BYTE_ORDER != BIG_ENDIAN
3516
 
 not big endian
3517
 
#endif
3518
 
 
3519
 
  ;
3520
 
  return 0;
3521
 
}
3522
 
_ACEOF
3523
 
rm -f conftest.$ac_objext
3524
 
if { (ac_try="$ac_compile"
3525
 
case "(($ac_try" in
3526
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527
 
  *) ac_try_echo=$ac_try;;
3528
 
esac
3529
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530
 
  (eval "$ac_compile") 2>conftest.er1
3531
 
  ac_status=$?
3532
 
  grep -v '^ *+' conftest.er1 >conftest.err
3533
 
  rm -f conftest.er1
3534
 
  cat conftest.err >&5
3535
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536
 
  (exit $ac_status); } && {
3537
 
         test -z "$ac_c_werror_flag" ||
3538
 
         test ! -s conftest.err
3539
 
       } && test -s conftest.$ac_objext; then
3540
 
  ac_cv_c_bigendian=yes
3541
 
else
3542
 
  echo "$as_me: failed program was:" >&5
3543
 
sed 's/^/| /' conftest.$ac_ext >&5
3544
 
 
3545
 
        ac_cv_c_bigendian=no
3546
 
fi
3547
 
 
3548
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549
 
else
3550
 
  echo "$as_me: failed program was:" >&5
3551
 
sed 's/^/| /' conftest.$ac_ext >&5
3552
 
 
3553
 
        # It does not; compile a test program.
3554
 
if test "$cross_compiling" = yes; then
3555
 
  # try to guess the endianness by grepping values into an object file
3556
 
  ac_cv_c_bigendian=unknown
3557
 
  cat >conftest.$ac_ext <<_ACEOF
3558
 
/* confdefs.h.  */
3559
 
_ACEOF
3560
 
cat confdefs.h >>conftest.$ac_ext
3561
 
cat >>conftest.$ac_ext <<_ACEOF
3562
 
/* end confdefs.h.  */
3563
 
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3564
 
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3565
 
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3566
 
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3567
 
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3568
 
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3569
 
int
3570
 
main ()
3571
 
{
3572
 
 _ascii (); _ebcdic ();
3573
 
  ;
3574
 
  return 0;
3575
 
}
3576
 
_ACEOF
3577
 
rm -f conftest.$ac_objext
3578
 
if { (ac_try="$ac_compile"
3579
 
case "(($ac_try" in
3580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581
 
  *) ac_try_echo=$ac_try;;
3582
 
esac
3583
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584
 
  (eval "$ac_compile") 2>conftest.er1
3585
 
  ac_status=$?
3586
 
  grep -v '^ *+' conftest.er1 >conftest.err
3587
 
  rm -f conftest.er1
3588
 
  cat conftest.err >&5
3589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590
 
  (exit $ac_status); } && {
3591
 
         test -z "$ac_c_werror_flag" ||
3592
 
         test ! -s conftest.err
3593
 
       } && test -s conftest.$ac_objext; then
3594
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3595
 
  ac_cv_c_bigendian=yes
3596
 
fi
3597
 
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3598
 
  if test "$ac_cv_c_bigendian" = unknown; then
3599
 
    ac_cv_c_bigendian=no
3600
 
  else
3601
 
    # finding both strings is unlikely to happen, but who knows?
3602
 
    ac_cv_c_bigendian=unknown
3603
 
  fi
3604
 
fi
3605
 
else
3606
 
  echo "$as_me: failed program was:" >&5
3607
 
sed 's/^/| /' conftest.$ac_ext >&5
3608
 
 
3609
 
 
3610
 
fi
3611
 
 
3612
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613
 
else
3614
 
  cat >conftest.$ac_ext <<_ACEOF
3615
 
/* confdefs.h.  */
3616
 
_ACEOF
3617
 
cat confdefs.h >>conftest.$ac_ext
3618
 
cat >>conftest.$ac_ext <<_ACEOF
 
3993
                 not big endian
 
3994
                #endif
 
3995
 
 
3996
  ;
 
3997
  return 0;
 
3998
}
 
3999
_ACEOF
 
4000
if ac_fn_c_try_compile "$LINENO"; then :
 
4001
  ac_cv_c_bigendian=yes
 
4002
else
 
4003
  ac_cv_c_bigendian=no
 
4004
fi
 
4005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4006
fi
 
4007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4008
    fi
 
4009
    if test $ac_cv_c_bigendian = unknown; then
 
4010
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
4011
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4012
/* end confdefs.h.  */
 
4013
#include <limits.h>
 
4014
 
 
4015
int
 
4016
main ()
 
4017
{
 
4018
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
4019
              bogus endian macros
 
4020
             #endif
 
4021
 
 
4022
  ;
 
4023
  return 0;
 
4024
}
 
4025
_ACEOF
 
4026
if ac_fn_c_try_compile "$LINENO"; then :
 
4027
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
4028
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4029
/* end confdefs.h.  */
 
4030
#include <limits.h>
 
4031
 
 
4032
int
 
4033
main ()
 
4034
{
 
4035
#ifndef _BIG_ENDIAN
 
4036
                 not big endian
 
4037
                #endif
 
4038
 
 
4039
  ;
 
4040
  return 0;
 
4041
}
 
4042
_ACEOF
 
4043
if ac_fn_c_try_compile "$LINENO"; then :
 
4044
  ac_cv_c_bigendian=yes
 
4045
else
 
4046
  ac_cv_c_bigendian=no
 
4047
fi
 
4048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4049
fi
 
4050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4051
    fi
 
4052
    if test $ac_cv_c_bigendian = unknown; then
 
4053
      # Compile a test program.
 
4054
      if test "$cross_compiling" = yes; then :
 
4055
  # Try to guess by grepping values from an object file.
 
4056
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4057
/* end confdefs.h.  */
 
4058
short int ascii_mm[] =
 
4059
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
4060
                short int ascii_ii[] =
 
4061
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
4062
                int use_ascii (int i) {
 
4063
                  return ascii_mm[i] + ascii_ii[i];
 
4064
                }
 
4065
                short int ebcdic_ii[] =
 
4066
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
4067
                short int ebcdic_mm[] =
 
4068
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
4069
                int use_ebcdic (int i) {
 
4070
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
4071
                }
 
4072
                extern int foo;
 
4073
 
 
4074
int
 
4075
main ()
 
4076
{
 
4077
return use_ascii (foo) == use_ebcdic (foo);
 
4078
  ;
 
4079
  return 0;
 
4080
}
 
4081
_ACEOF
 
4082
if ac_fn_c_try_compile "$LINENO"; then :
 
4083
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
4084
              ac_cv_c_bigendian=yes
 
4085
            fi
 
4086
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
4087
              if test "$ac_cv_c_bigendian" = unknown; then
 
4088
                ac_cv_c_bigendian=no
 
4089
              else
 
4090
                # finding both strings is unlikely to happen, but who knows?
 
4091
                ac_cv_c_bigendian=unknown
 
4092
              fi
 
4093
            fi
 
4094
fi
 
4095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4096
else
 
4097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619
4098
/* end confdefs.h.  */
3620
4099
$ac_includes_default
3621
4100
int
3622
4101
main ()
3623
4102
{
3624
4103
 
3625
 
  /* Are we little or big endian?  From Harbison&Steele.  */
3626
 
  union
3627
 
  {
3628
 
    long int l;
3629
 
    char c[sizeof (long int)];
3630
 
  } u;
3631
 
  u.l = 1;
3632
 
  return u.c[sizeof (long int) - 1] == 1;
 
4104
             /* Are we little or big endian?  From Harbison&Steele.  */
 
4105
             union
 
4106
             {
 
4107
               long int l;
 
4108
               char c[sizeof (long int)];
 
4109
             } u;
 
4110
             u.l = 1;
 
4111
             return u.c[sizeof (long int) - 1] == 1;
3633
4112
 
3634
4113
  ;
3635
4114
  return 0;
3636
4115
}
3637
4116
_ACEOF
3638
 
rm -f conftest$ac_exeext
3639
 
if { (ac_try="$ac_link"
3640
 
case "(($ac_try" in
3641
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642
 
  *) ac_try_echo=$ac_try;;
3643
 
esac
3644
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645
 
  (eval "$ac_link") 2>&5
3646
 
  ac_status=$?
3647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3649
 
  { (case "(($ac_try" in
3650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651
 
  *) ac_try_echo=$ac_try;;
3652
 
esac
3653
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654
 
  (eval "$ac_try") 2>&5
3655
 
  ac_status=$?
3656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657
 
  (exit $ac_status); }; }; then
 
4117
if ac_fn_c_try_run "$LINENO"; then :
3658
4118
  ac_cv_c_bigendian=no
3659
4119
else
3660
 
  echo "$as_me: program exited with status $ac_status" >&5
3661
 
echo "$as_me: failed program was:" >&5
3662
 
sed 's/^/| /' conftest.$ac_ext >&5
3663
 
 
3664
 
( exit $ac_status )
3665
 
ac_cv_c_bigendian=yes
3666
 
fi
3667
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668
 
fi
3669
 
 
3670
 
 
3671
 
fi
3672
 
 
3673
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674
 
fi
3675
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3676
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3677
 
case $ac_cv_c_bigendian in
3678
 
  yes)
3679
 
    cat >>confdefs.h <<\_ACEOF
3680
 
#define B_ENDIAN 1
3681
 
_ACEOF
3682
 
 ;;
3683
 
  no)
3684
 
    cat >>confdefs.h <<\_ACEOF
3685
 
#define L_ENDIAN 1
3686
 
_ACEOF
3687
 
 ;;
3688
 
  *)
3689
 
    { { echo "$as_me:$LINENO: error: unknown endianness
3690
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3691
 
echo "$as_me: error: unknown endianness
3692
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3693
 
   { (exit 1); exit 1; }; } ;;
3694
 
esac
3695
 
 
3696
 
{ echo "$as_me:$LINENO: checking for X" >&5
3697
 
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
4120
  ac_cv_c_bigendian=yes
 
4121
fi
 
4122
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4123
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4124
fi
 
4125
 
 
4126
    fi
 
4127
fi
 
4128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
4129
$as_echo "$ac_cv_c_bigendian" >&6; }
 
4130
 case $ac_cv_c_bigendian in #(
 
4131
   yes)
 
4132
     $as_echo "#define B_ENDIAN 1" >>confdefs.h
 
4133
;; #(
 
4134
   no)
 
4135
     $as_echo "#define L_ENDIAN 1" >>confdefs.h
 
4136
 ;; #(
 
4137
   universal)
 
4138
 
 
4139
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
4140
 
 
4141
     ;; #(
 
4142
   *)
 
4143
     as_fn_error $? "unknown endianness
 
4144
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
 
4145
 esac
 
4146
 
 
4147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
 
4148
$as_echo_n "checking for X... " >&6; }
3698
4149
 
3699
4150
 
3700
4151
# Check whether --with-x was given.
3701
 
if test "${with_x+set}" = set; then
 
4152
if test "${with_x+set}" = set; then :
3702
4153
  withval=$with_x;
3703
4154
fi
3704
4155
 
3708
4159
  have_x=disabled
3709
4160
else
3710
4161
  case $x_includes,$x_libraries in #(
3711
 
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3712
 
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3713
 
   { (exit 1); exit 1; }; };; #(
3714
 
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3715
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4162
    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
 
4163
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
 
4164
  $as_echo_n "(cached) " >&6
3716
4165
else
3717
4166
  # One or both of the vars are not set, and there is no cached value.
3718
4167
ac_x_includes=no ac_x_libraries=no
3728
4177
        @echo libdir='${LIBDIR}'
3729
4178
_ACEOF
3730
4179
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3731
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
4180
    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3732
4181
    for ac_var in incroot usrlibdir libdir; do
3733
4182
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3734
4183
    done
3735
4184
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3736
 
    for ac_extension in a so sl; do
 
4185
    for ac_extension in a so sl dylib la dll; do
3737
4186
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3738
4187
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
3739
4188
        ac_im_usrlibdir=$ac_im_libdir; break
3747
4196
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3748
4197
    esac
3749
4198
    case $ac_im_usrlibdir in
3750
 
        /usr/lib | /lib) ;;
 
4199
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3751
4200
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3752
4201
    esac
3753
4202
  fi
3759
4208
# Check X11 before X11Rn because it is often a symlink to the current release.
3760
4209
ac_x_header_dirs='
3761
4210
/usr/X11/include
 
4211
/usr/X11R7/include
3762
4212
/usr/X11R6/include
3763
4213
/usr/X11R5/include
3764
4214
/usr/X11R4/include
3765
4215
 
3766
4216
/usr/include/X11
 
4217
/usr/include/X11R7
3767
4218
/usr/include/X11R6
3768
4219
/usr/include/X11R5
3769
4220
/usr/include/X11R4
3770
4221
 
3771
4222
/usr/local/X11/include
 
4223
/usr/local/X11R7/include
3772
4224
/usr/local/X11R6/include
3773
4225
/usr/local/X11R5/include
3774
4226
/usr/local/X11R4/include
3775
4227
 
3776
4228
/usr/local/include/X11
 
4229
/usr/local/include/X11R7
3777
4230
/usr/local/include/X11R6
3778
4231
/usr/local/include/X11R5
3779
4232
/usr/local/include/X11R4
3795
4248
if test "$ac_x_includes" = no; then
3796
4249
  # Guess where to find include files, by looking for Xlib.h.
3797
4250
  # First, try using that file with no special directory specified.
3798
 
  cat >conftest.$ac_ext <<_ACEOF
3799
 
/* confdefs.h.  */
3800
 
_ACEOF
3801
 
cat confdefs.h >>conftest.$ac_ext
3802
 
cat >>conftest.$ac_ext <<_ACEOF
 
4251
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803
4252
/* end confdefs.h.  */
3804
4253
#include <X11/Xlib.h>
3805
4254
_ACEOF
3806
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3807
 
case "(($ac_try" in
3808
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809
 
  *) ac_try_echo=$ac_try;;
3810
 
esac
3811
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813
 
  ac_status=$?
3814
 
  grep -v '^ *+' conftest.er1 >conftest.err
3815
 
  rm -f conftest.er1
3816
 
  cat conftest.err >&5
3817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818
 
  (exit $ac_status); } >/dev/null && {
3819
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820
 
         test ! -s conftest.err
3821
 
       }; then
 
4255
if ac_fn_c_try_cpp "$LINENO"; then :
3822
4256
  # We can compile using X headers with no special include directory.
3823
4257
ac_x_includes=
3824
4258
else
3825
 
  echo "$as_me: failed program was:" >&5
3826
 
sed 's/^/| /' conftest.$ac_ext >&5
3827
 
 
3828
4259
  for ac_dir in $ac_x_header_dirs; do
3829
4260
  if test -r "$ac_dir/X11/Xlib.h"; then
3830
4261
    ac_x_includes=$ac_dir
3832
4263
  fi
3833
4264
done
3834
4265
fi
3835
 
 
3836
 
rm -f conftest.err conftest.$ac_ext
 
4266
rm -f conftest.err conftest.i conftest.$ac_ext
3837
4267
fi # $ac_x_includes = no
3838
4268
 
3839
4269
if test "$ac_x_libraries" = no; then
3842
4272
  # Don't add to $LIBS permanently.
3843
4273
  ac_save_LIBS=$LIBS
3844
4274
  LIBS="-lX11 $LIBS"
3845
 
  cat >conftest.$ac_ext <<_ACEOF
3846
 
/* confdefs.h.  */
3847
 
_ACEOF
3848
 
cat confdefs.h >>conftest.$ac_ext
3849
 
cat >>conftest.$ac_ext <<_ACEOF
 
4275
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850
4276
/* end confdefs.h.  */
3851
4277
#include <X11/Xlib.h>
3852
4278
int
3857
4283
  return 0;
3858
4284
}
3859
4285
_ACEOF
3860
 
rm -f conftest.$ac_objext conftest$ac_exeext
3861
 
if { (ac_try="$ac_link"
3862
 
case "(($ac_try" in
3863
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864
 
  *) ac_try_echo=$ac_try;;
3865
 
esac
3866
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867
 
  (eval "$ac_link") 2>conftest.er1
3868
 
  ac_status=$?
3869
 
  grep -v '^ *+' conftest.er1 >conftest.err
3870
 
  rm -f conftest.er1
3871
 
  cat conftest.err >&5
3872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873
 
  (exit $ac_status); } && {
3874
 
         test -z "$ac_c_werror_flag" ||
3875
 
         test ! -s conftest.err
3876
 
       } && test -s conftest$ac_exeext &&
3877
 
       $as_test_x conftest$ac_exeext; then
 
4286
if ac_fn_c_try_link "$LINENO"; then :
3878
4287
  LIBS=$ac_save_LIBS
3879
4288
# We can link X programs with no special library path.
3880
4289
ac_x_libraries=
3881
4290
else
3882
 
  echo "$as_me: failed program was:" >&5
3883
 
sed 's/^/| /' conftest.$ac_ext >&5
3884
 
 
3885
 
        LIBS=$ac_save_LIBS
3886
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
4291
  LIBS=$ac_save_LIBS
 
4292
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3887
4293
do
3888
4294
  # Don't even attempt the hair of trying to link an X program!
3889
 
  for ac_extension in a so sl; do
 
4295
  for ac_extension in a so sl dylib la dll; do
3890
4296
    if test -r "$ac_dir/libX11.$ac_extension"; then
3891
4297
      ac_x_libraries=$ac_dir
3892
4298
      break 2
3894
4300
  done
3895
4301
done
3896
4302
fi
3897
 
 
3898
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3899
 
      conftest$ac_exeext conftest.$ac_ext
 
4303
rm -f core conftest.err conftest.$ac_objext \
 
4304
    conftest$ac_exeext conftest.$ac_ext
3900
4305
fi # $ac_x_libraries = no
3901
4306
 
3902
4307
case $ac_x_includes,$ac_x_libraries in #(
3917
4322
fi # $with_x != no
3918
4323
 
3919
4324
if test "$have_x" != yes; then
3920
 
  { echo "$as_me:$LINENO: result: $have_x" >&5
3921
 
echo "${ECHO_T}$have_x" >&6; }
 
4325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
 
4326
$as_echo "$have_x" >&6; }
3922
4327
  no_x=yes
3923
4328
else
3924
4329
  # If each of the values was on the command line, it overrides each guess.
3928
4333
  ac_cv_have_x="have_x=yes\
3929
4334
        ac_x_includes='$x_includes'\
3930
4335
        ac_x_libraries='$x_libraries'"
3931
 
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3932
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
 
4336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
 
4337
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3933
4338
fi
3934
4339
 
3935
4340
if test "$no_x" = yes; then
3936
4341
  # Not all programs may use this symbol, but it does not hurt to define it.
3937
4342
 
3938
 
cat >>confdefs.h <<\_ACEOF
3939
 
#define X_DISPLAY_MISSING 1
3940
 
_ACEOF
 
4343
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
3941
4344
 
3942
4345
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3943
4346
else
3950
4353
    X_LIBS="$X_LIBS -L$x_libraries"
3951
4354
    # For Solaris; some versions of Sun CC require a space after -R and
3952
4355
    # others require no space.  Words are not sufficient . . . .
3953
 
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3954
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
4356
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
 
4357
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
3955
4358
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3956
4359
    ac_xsave_c_werror_flag=$ac_c_werror_flag
3957
4360
    ac_c_werror_flag=yes
3958
 
    cat >conftest.$ac_ext <<_ACEOF
3959
 
/* confdefs.h.  */
3960
 
_ACEOF
3961
 
cat confdefs.h >>conftest.$ac_ext
3962
 
cat >>conftest.$ac_ext <<_ACEOF
 
4361
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963
4362
/* end confdefs.h.  */
3964
4363
 
3965
4364
int
3970
4369
  return 0;
3971
4370
}
3972
4371
_ACEOF
3973
 
rm -f conftest.$ac_objext conftest$ac_exeext
3974
 
if { (ac_try="$ac_link"
3975
 
case "(($ac_try" in
3976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977
 
  *) ac_try_echo=$ac_try;;
3978
 
esac
3979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980
 
  (eval "$ac_link") 2>conftest.er1
3981
 
  ac_status=$?
3982
 
  grep -v '^ *+' conftest.er1 >conftest.err
3983
 
  rm -f conftest.er1
3984
 
  cat conftest.err >&5
3985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986
 
  (exit $ac_status); } && {
3987
 
         test -z "$ac_c_werror_flag" ||
3988
 
         test ! -s conftest.err
3989
 
       } && test -s conftest$ac_exeext &&
3990
 
       $as_test_x conftest$ac_exeext; then
3991
 
  { echo "$as_me:$LINENO: result: no" >&5
3992
 
echo "${ECHO_T}no" >&6; }
 
4372
if ac_fn_c_try_link "$LINENO"; then :
 
4373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4374
$as_echo "no" >&6; }
3993
4375
       X_LIBS="$X_LIBS -R$x_libraries"
3994
4376
else
3995
 
  echo "$as_me: failed program was:" >&5
3996
 
sed 's/^/| /' conftest.$ac_ext >&5
3997
 
 
3998
 
        LIBS="$ac_xsave_LIBS -R $x_libraries"
3999
 
       cat >conftest.$ac_ext <<_ACEOF
4000
 
/* confdefs.h.  */
4001
 
_ACEOF
4002
 
cat confdefs.h >>conftest.$ac_ext
4003
 
cat >>conftest.$ac_ext <<_ACEOF
 
4377
  LIBS="$ac_xsave_LIBS -R $x_libraries"
 
4378
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004
4379
/* end confdefs.h.  */
4005
4380
 
4006
4381
int
4011
4386
  return 0;
4012
4387
}
4013
4388
_ACEOF
4014
 
rm -f conftest.$ac_objext conftest$ac_exeext
4015
 
if { (ac_try="$ac_link"
4016
 
case "(($ac_try" in
4017
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018
 
  *) ac_try_echo=$ac_try;;
4019
 
esac
4020
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021
 
  (eval "$ac_link") 2>conftest.er1
4022
 
  ac_status=$?
4023
 
  grep -v '^ *+' conftest.er1 >conftest.err
4024
 
  rm -f conftest.er1
4025
 
  cat conftest.err >&5
4026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027
 
  (exit $ac_status); } && {
4028
 
         test -z "$ac_c_werror_flag" ||
4029
 
         test ! -s conftest.err
4030
 
       } && test -s conftest$ac_exeext &&
4031
 
       $as_test_x conftest$ac_exeext; then
4032
 
  { echo "$as_me:$LINENO: result: yes" >&5
4033
 
echo "${ECHO_T}yes" >&6; }
 
4389
if ac_fn_c_try_link "$LINENO"; then :
 
4390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4391
$as_echo "yes" >&6; }
4034
4392
          X_LIBS="$X_LIBS -R $x_libraries"
4035
4393
else
4036
 
  echo "$as_me: failed program was:" >&5
4037
 
sed 's/^/| /' conftest.$ac_ext >&5
4038
 
 
4039
 
        { echo "$as_me:$LINENO: result: neither works" >&5
4040
 
echo "${ECHO_T}neither works" >&6; }
4041
 
fi
4042
 
 
4043
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4044
 
      conftest$ac_exeext conftest.$ac_ext
4045
 
fi
4046
 
 
4047
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4048
 
      conftest$ac_exeext conftest.$ac_ext
 
4394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
 
4395
$as_echo "neither works" >&6; }
 
4396
fi
 
4397
rm -f core conftest.err conftest.$ac_objext \
 
4398
    conftest$ac_exeext conftest.$ac_ext
 
4399
fi
 
4400
rm -f core conftest.err conftest.$ac_objext \
 
4401
    conftest$ac_exeext conftest.$ac_ext
4049
4402
    ac_c_werror_flag=$ac_xsave_c_werror_flag
4050
4403
    LIBS=$ac_xsave_LIBS
4051
4404
  fi
4061
4414
    # libraries were built with DECnet support.  And Karl Berry says
4062
4415
    # the Alpha needs dnet_stub (dnet does not exist).
4063
4416
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4064
 
    cat >conftest.$ac_ext <<_ACEOF
4065
 
/* confdefs.h.  */
4066
 
_ACEOF
4067
 
cat confdefs.h >>conftest.$ac_ext
4068
 
cat >>conftest.$ac_ext <<_ACEOF
 
4417
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069
4418
/* end confdefs.h.  */
4070
4419
 
4071
4420
/* Override any GCC internal prototype to avoid an error.
4083
4432
  return 0;
4084
4433
}
4085
4434
_ACEOF
4086
 
rm -f conftest.$ac_objext conftest$ac_exeext
4087
 
if { (ac_try="$ac_link"
4088
 
case "(($ac_try" in
4089
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090
 
  *) ac_try_echo=$ac_try;;
4091
 
esac
4092
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093
 
  (eval "$ac_link") 2>conftest.er1
4094
 
  ac_status=$?
4095
 
  grep -v '^ *+' conftest.er1 >conftest.err
4096
 
  rm -f conftest.er1
4097
 
  cat conftest.err >&5
4098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099
 
  (exit $ac_status); } && {
4100
 
         test -z "$ac_c_werror_flag" ||
4101
 
         test ! -s conftest.err
4102
 
       } && test -s conftest$ac_exeext &&
4103
 
       $as_test_x conftest$ac_exeext; then
4104
 
  :
4105
 
else
4106
 
  echo "$as_me: failed program was:" >&5
4107
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4435
if ac_fn_c_try_link "$LINENO"; then :
4108
4436
 
4109
 
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4110
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4111
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4112
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4437
else
 
4438
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
 
4439
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
 
4440
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
 
4441
  $as_echo_n "(cached) " >&6
4113
4442
else
4114
4443
  ac_check_lib_save_LIBS=$LIBS
4115
4444
LIBS="-ldnet  $LIBS"
4116
 
cat >conftest.$ac_ext <<_ACEOF
4117
 
/* confdefs.h.  */
4118
 
_ACEOF
4119
 
cat confdefs.h >>conftest.$ac_ext
4120
 
cat >>conftest.$ac_ext <<_ACEOF
 
4445
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121
4446
/* end confdefs.h.  */
4122
4447
 
4123
4448
/* Override any GCC internal prototype to avoid an error.
4135
4460
  return 0;
4136
4461
}
4137
4462
_ACEOF
4138
 
rm -f conftest.$ac_objext conftest$ac_exeext
4139
 
if { (ac_try="$ac_link"
4140
 
case "(($ac_try" in
4141
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142
 
  *) ac_try_echo=$ac_try;;
4143
 
esac
4144
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145
 
  (eval "$ac_link") 2>conftest.er1
4146
 
  ac_status=$?
4147
 
  grep -v '^ *+' conftest.er1 >conftest.err
4148
 
  rm -f conftest.er1
4149
 
  cat conftest.err >&5
4150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
 
  (exit $ac_status); } && {
4152
 
         test -z "$ac_c_werror_flag" ||
4153
 
         test ! -s conftest.err
4154
 
       } && test -s conftest$ac_exeext &&
4155
 
       $as_test_x conftest$ac_exeext; then
 
4463
if ac_fn_c_try_link "$LINENO"; then :
4156
4464
  ac_cv_lib_dnet_dnet_ntoa=yes
4157
4465
else
4158
 
  echo "$as_me: failed program was:" >&5
4159
 
sed 's/^/| /' conftest.$ac_ext >&5
4160
 
 
4161
 
        ac_cv_lib_dnet_dnet_ntoa=no
 
4466
  ac_cv_lib_dnet_dnet_ntoa=no
4162
4467
fi
4163
 
 
4164
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4165
 
      conftest$ac_exeext conftest.$ac_ext
 
4468
rm -f core conftest.err conftest.$ac_objext \
 
4469
    conftest$ac_exeext conftest.$ac_ext
4166
4470
LIBS=$ac_check_lib_save_LIBS
4167
4471
fi
4168
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4169
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4170
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
4472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
4473
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
4474
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
4171
4475
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4172
4476
fi
4173
4477
 
4174
4478
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4175
 
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4176
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4177
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4479
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
 
4480
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
 
4481
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
 
4482
  $as_echo_n "(cached) " >&6
4179
4483
else
4180
4484
  ac_check_lib_save_LIBS=$LIBS
4181
4485
LIBS="-ldnet_stub  $LIBS"
4182
 
cat >conftest.$ac_ext <<_ACEOF
4183
 
/* confdefs.h.  */
4184
 
_ACEOF
4185
 
cat confdefs.h >>conftest.$ac_ext
4186
 
cat >>conftest.$ac_ext <<_ACEOF
 
4486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187
4487
/* end confdefs.h.  */
4188
4488
 
4189
4489
/* Override any GCC internal prototype to avoid an error.
4201
4501
  return 0;
4202
4502
}
4203
4503
_ACEOF
4204
 
rm -f conftest.$ac_objext conftest$ac_exeext
4205
 
if { (ac_try="$ac_link"
4206
 
case "(($ac_try" in
4207
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208
 
  *) ac_try_echo=$ac_try;;
4209
 
esac
4210
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211
 
  (eval "$ac_link") 2>conftest.er1
4212
 
  ac_status=$?
4213
 
  grep -v '^ *+' conftest.er1 >conftest.err
4214
 
  rm -f conftest.er1
4215
 
  cat conftest.err >&5
4216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
 
  (exit $ac_status); } && {
4218
 
         test -z "$ac_c_werror_flag" ||
4219
 
         test ! -s conftest.err
4220
 
       } && test -s conftest$ac_exeext &&
4221
 
       $as_test_x conftest$ac_exeext; then
 
4504
if ac_fn_c_try_link "$LINENO"; then :
4222
4505
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
4223
4506
else
4224
 
  echo "$as_me: failed program was:" >&5
4225
 
sed 's/^/| /' conftest.$ac_ext >&5
4226
 
 
4227
 
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
4507
  ac_cv_lib_dnet_stub_dnet_ntoa=no
4228
4508
fi
4229
 
 
4230
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4231
 
      conftest$ac_exeext conftest.$ac_ext
 
4509
rm -f core conftest.err conftest.$ac_objext \
 
4510
    conftest$ac_exeext conftest.$ac_ext
4232
4511
LIBS=$ac_check_lib_save_LIBS
4233
4512
fi
4234
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4235
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4236
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
4513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
4514
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
4515
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
4237
4516
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4238
4517
fi
4239
4518
 
4240
4519
    fi
4241
4520
fi
4242
 
 
4243
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4244
 
      conftest$ac_exeext conftest.$ac_ext
 
4521
rm -f core conftest.err conftest.$ac_objext \
 
4522
    conftest$ac_exeext conftest.$ac_ext
4245
4523
    LIBS="$ac_xsave_LIBS"
4246
4524
 
4247
4525
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4252
4530
    # on Irix 5.2, according to T.E. Dickey.
4253
4531
    # The functions gethostbyname, getservbyname, and inet_addr are
4254
4532
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4255
 
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4256
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4257
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
4258
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4259
 
else
4260
 
  cat >conftest.$ac_ext <<_ACEOF
4261
 
/* confdefs.h.  */
4262
 
_ACEOF
4263
 
cat confdefs.h >>conftest.$ac_ext
4264
 
cat >>conftest.$ac_ext <<_ACEOF
4265
 
/* end confdefs.h.  */
4266
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4267
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4268
 
#define gethostbyname innocuous_gethostbyname
4269
 
 
4270
 
/* System header to define __stub macros and hopefully few prototypes,
4271
 
    which can conflict with char gethostbyname (); below.
4272
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273
 
    <limits.h> exists even on freestanding compilers.  */
4274
 
 
4275
 
#ifdef __STDC__
4276
 
# include <limits.h>
4277
 
#else
4278
 
# include <assert.h>
4279
 
#endif
4280
 
 
4281
 
#undef gethostbyname
4282
 
 
4283
 
/* Override any GCC internal prototype to avoid an error.
4284
 
   Use char because int might match the return type of a GCC
4285
 
   builtin and then its argument prototype would still apply.  */
4286
 
#ifdef __cplusplus
4287
 
extern "C"
4288
 
#endif
4289
 
char gethostbyname ();
4290
 
/* The GNU C library defines this for functions which it implements
4291
 
    to always fail with ENOSYS.  Some functions are actually named
4292
 
    something starting with __ and the normal name is an alias.  */
4293
 
#if defined __stub_gethostbyname || defined __stub___gethostbyname
4294
 
choke me
4295
 
#endif
4296
 
 
4297
 
int
4298
 
main ()
4299
 
{
4300
 
return gethostbyname ();
4301
 
  ;
4302
 
  return 0;
4303
 
}
4304
 
_ACEOF
4305
 
rm -f conftest.$ac_objext conftest$ac_exeext
4306
 
if { (ac_try="$ac_link"
4307
 
case "(($ac_try" in
4308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309
 
  *) ac_try_echo=$ac_try;;
4310
 
esac
4311
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312
 
  (eval "$ac_link") 2>conftest.er1
4313
 
  ac_status=$?
4314
 
  grep -v '^ *+' conftest.er1 >conftest.err
4315
 
  rm -f conftest.er1
4316
 
  cat conftest.err >&5
4317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318
 
  (exit $ac_status); } && {
4319
 
         test -z "$ac_c_werror_flag" ||
4320
 
         test ! -s conftest.err
4321
 
       } && test -s conftest$ac_exeext &&
4322
 
       $as_test_x conftest$ac_exeext; then
4323
 
  ac_cv_func_gethostbyname=yes
4324
 
else
4325
 
  echo "$as_me: failed program was:" >&5
4326
 
sed 's/^/| /' conftest.$ac_ext >&5
4327
 
 
4328
 
        ac_cv_func_gethostbyname=no
4329
 
fi
4330
 
 
4331
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4332
 
      conftest$ac_exeext conftest.$ac_ext
4333
 
fi
4334
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4335
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
 
4533
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 
4534
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
 
4535
 
 
4536
fi
4336
4537
 
4337
4538
    if test $ac_cv_func_gethostbyname = no; then
4338
 
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4339
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4340
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4539
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 
4540
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 
4541
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
 
4542
  $as_echo_n "(cached) " >&6
4342
4543
else
4343
4544
  ac_check_lib_save_LIBS=$LIBS
4344
4545
LIBS="-lnsl  $LIBS"
4345
 
cat >conftest.$ac_ext <<_ACEOF
4346
 
/* confdefs.h.  */
4347
 
_ACEOF
4348
 
cat confdefs.h >>conftest.$ac_ext
4349
 
cat >>conftest.$ac_ext <<_ACEOF
 
4546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350
4547
/* end confdefs.h.  */
4351
4548
 
4352
4549
/* Override any GCC internal prototype to avoid an error.
4364
4561
  return 0;
4365
4562
}
4366
4563
_ACEOF
4367
 
rm -f conftest.$ac_objext conftest$ac_exeext
4368
 
if { (ac_try="$ac_link"
4369
 
case "(($ac_try" in
4370
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371
 
  *) ac_try_echo=$ac_try;;
4372
 
esac
4373
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374
 
  (eval "$ac_link") 2>conftest.er1
4375
 
  ac_status=$?
4376
 
  grep -v '^ *+' conftest.er1 >conftest.err
4377
 
  rm -f conftest.er1
4378
 
  cat conftest.err >&5
4379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380
 
  (exit $ac_status); } && {
4381
 
         test -z "$ac_c_werror_flag" ||
4382
 
         test ! -s conftest.err
4383
 
       } && test -s conftest$ac_exeext &&
4384
 
       $as_test_x conftest$ac_exeext; then
 
4564
if ac_fn_c_try_link "$LINENO"; then :
4385
4565
  ac_cv_lib_nsl_gethostbyname=yes
4386
4566
else
4387
 
  echo "$as_me: failed program was:" >&5
4388
 
sed 's/^/| /' conftest.$ac_ext >&5
4389
 
 
4390
 
        ac_cv_lib_nsl_gethostbyname=no
 
4567
  ac_cv_lib_nsl_gethostbyname=no
4391
4568
fi
4392
 
 
4393
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4394
 
      conftest$ac_exeext conftest.$ac_ext
 
4569
rm -f core conftest.err conftest.$ac_objext \
 
4570
    conftest$ac_exeext conftest.$ac_ext
4395
4571
LIBS=$ac_check_lib_save_LIBS
4396
4572
fi
4397
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4398
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4399
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
4574
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 
4575
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4400
4576
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4401
4577
fi
4402
4578
 
4403
4579
      if test $ac_cv_lib_nsl_gethostbyname = no; then
4404
 
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4405
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4406
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4407
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4580
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
 
4581
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
 
4582
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
 
4583
  $as_echo_n "(cached) " >&6
4408
4584
else
4409
4585
  ac_check_lib_save_LIBS=$LIBS
4410
4586
LIBS="-lbsd  $LIBS"
4411
 
cat >conftest.$ac_ext <<_ACEOF
4412
 
/* confdefs.h.  */
4413
 
_ACEOF
4414
 
cat confdefs.h >>conftest.$ac_ext
4415
 
cat >>conftest.$ac_ext <<_ACEOF
 
4587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416
4588
/* end confdefs.h.  */
4417
4589
 
4418
4590
/* Override any GCC internal prototype to avoid an error.
4430
4602
  return 0;
4431
4603
}
4432
4604
_ACEOF
4433
 
rm -f conftest.$ac_objext conftest$ac_exeext
4434
 
if { (ac_try="$ac_link"
4435
 
case "(($ac_try" in
4436
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437
 
  *) ac_try_echo=$ac_try;;
4438
 
esac
4439
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440
 
  (eval "$ac_link") 2>conftest.er1
4441
 
  ac_status=$?
4442
 
  grep -v '^ *+' conftest.er1 >conftest.err
4443
 
  rm -f conftest.er1
4444
 
  cat conftest.err >&5
4445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446
 
  (exit $ac_status); } && {
4447
 
         test -z "$ac_c_werror_flag" ||
4448
 
         test ! -s conftest.err
4449
 
       } && test -s conftest$ac_exeext &&
4450
 
       $as_test_x conftest$ac_exeext; then
 
4605
if ac_fn_c_try_link "$LINENO"; then :
4451
4606
  ac_cv_lib_bsd_gethostbyname=yes
4452
4607
else
4453
 
  echo "$as_me: failed program was:" >&5
4454
 
sed 's/^/| /' conftest.$ac_ext >&5
4455
 
 
4456
 
        ac_cv_lib_bsd_gethostbyname=no
 
4608
  ac_cv_lib_bsd_gethostbyname=no
4457
4609
fi
4458
 
 
4459
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4460
 
      conftest$ac_exeext conftest.$ac_ext
 
4610
rm -f core conftest.err conftest.$ac_objext \
 
4611
    conftest$ac_exeext conftest.$ac_ext
4461
4612
LIBS=$ac_check_lib_save_LIBS
4462
4613
fi
4463
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4464
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4465
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
4614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
4615
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
 
4616
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
4466
4617
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4467
4618
fi
4468
4619
 
4476
4627
    # variants that don't use the name server (or something).  -lsocket
4477
4628
    # must be given before -lnsl if both are needed.  We assume that
4478
4629
    # if connect needs -lnsl, so does gethostbyname.
4479
 
    { echo "$as_me:$LINENO: checking for connect" >&5
4480
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4481
 
if test "${ac_cv_func_connect+set}" = set; then
4482
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4483
 
else
4484
 
  cat >conftest.$ac_ext <<_ACEOF
4485
 
/* confdefs.h.  */
4486
 
_ACEOF
4487
 
cat confdefs.h >>conftest.$ac_ext
4488
 
cat >>conftest.$ac_ext <<_ACEOF
4489
 
/* end confdefs.h.  */
4490
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4491
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4492
 
#define connect innocuous_connect
4493
 
 
4494
 
/* System header to define __stub macros and hopefully few prototypes,
4495
 
    which can conflict with char connect (); below.
4496
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4497
 
    <limits.h> exists even on freestanding compilers.  */
4498
 
 
4499
 
#ifdef __STDC__
4500
 
# include <limits.h>
4501
 
#else
4502
 
# include <assert.h>
4503
 
#endif
4504
 
 
4505
 
#undef connect
4506
 
 
4507
 
/* Override any GCC internal prototype to avoid an error.
4508
 
   Use char because int might match the return type of a GCC
4509
 
   builtin and then its argument prototype would still apply.  */
4510
 
#ifdef __cplusplus
4511
 
extern "C"
4512
 
#endif
4513
 
char connect ();
4514
 
/* The GNU C library defines this for functions which it implements
4515
 
    to always fail with ENOSYS.  Some functions are actually named
4516
 
    something starting with __ and the normal name is an alias.  */
4517
 
#if defined __stub_connect || defined __stub___connect
4518
 
choke me
4519
 
#endif
4520
 
 
4521
 
int
4522
 
main ()
4523
 
{
4524
 
return connect ();
4525
 
  ;
4526
 
  return 0;
4527
 
}
4528
 
_ACEOF
4529
 
rm -f conftest.$ac_objext conftest$ac_exeext
4530
 
if { (ac_try="$ac_link"
4531
 
case "(($ac_try" in
4532
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533
 
  *) ac_try_echo=$ac_try;;
4534
 
esac
4535
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536
 
  (eval "$ac_link") 2>conftest.er1
4537
 
  ac_status=$?
4538
 
  grep -v '^ *+' conftest.er1 >conftest.err
4539
 
  rm -f conftest.er1
4540
 
  cat conftest.err >&5
4541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542
 
  (exit $ac_status); } && {
4543
 
         test -z "$ac_c_werror_flag" ||
4544
 
         test ! -s conftest.err
4545
 
       } && test -s conftest$ac_exeext &&
4546
 
       $as_test_x conftest$ac_exeext; then
4547
 
  ac_cv_func_connect=yes
4548
 
else
4549
 
  echo "$as_me: failed program was:" >&5
4550
 
sed 's/^/| /' conftest.$ac_ext >&5
4551
 
 
4552
 
        ac_cv_func_connect=no
4553
 
fi
4554
 
 
4555
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4556
 
      conftest$ac_exeext conftest.$ac_ext
4557
 
fi
4558
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4559
 
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
 
4630
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
 
4631
if test "x$ac_cv_func_connect" = x""yes; then :
 
4632
 
 
4633
fi
4560
4634
 
4561
4635
    if test $ac_cv_func_connect = no; then
4562
 
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4563
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4564
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
4565
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4636
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
 
4637
$as_echo_n "checking for connect in -lsocket... " >&6; }
 
4638
if test "${ac_cv_lib_socket_connect+set}" = set; then :
 
4639
  $as_echo_n "(cached) " >&6
4566
4640
else
4567
4641
  ac_check_lib_save_LIBS=$LIBS
4568
4642
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4569
 
cat >conftest.$ac_ext <<_ACEOF
4570
 
/* confdefs.h.  */
4571
 
_ACEOF
4572
 
cat confdefs.h >>conftest.$ac_ext
4573
 
cat >>conftest.$ac_ext <<_ACEOF
 
4643
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574
4644
/* end confdefs.h.  */
4575
4645
 
4576
4646
/* Override any GCC internal prototype to avoid an error.
4588
4658
  return 0;
4589
4659
}
4590
4660
_ACEOF
4591
 
rm -f conftest.$ac_objext conftest$ac_exeext
4592
 
if { (ac_try="$ac_link"
4593
 
case "(($ac_try" in
4594
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595
 
  *) ac_try_echo=$ac_try;;
4596
 
esac
4597
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598
 
  (eval "$ac_link") 2>conftest.er1
4599
 
  ac_status=$?
4600
 
  grep -v '^ *+' conftest.er1 >conftest.err
4601
 
  rm -f conftest.er1
4602
 
  cat conftest.err >&5
4603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604
 
  (exit $ac_status); } && {
4605
 
         test -z "$ac_c_werror_flag" ||
4606
 
         test ! -s conftest.err
4607
 
       } && test -s conftest$ac_exeext &&
4608
 
       $as_test_x conftest$ac_exeext; then
 
4661
if ac_fn_c_try_link "$LINENO"; then :
4609
4662
  ac_cv_lib_socket_connect=yes
4610
4663
else
4611
 
  echo "$as_me: failed program was:" >&5
4612
 
sed 's/^/| /' conftest.$ac_ext >&5
4613
 
 
4614
 
        ac_cv_lib_socket_connect=no
 
4664
  ac_cv_lib_socket_connect=no
4615
4665
fi
4616
 
 
4617
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4618
 
      conftest$ac_exeext conftest.$ac_ext
 
4666
rm -f core conftest.err conftest.$ac_objext \
 
4667
    conftest$ac_exeext conftest.$ac_ext
4619
4668
LIBS=$ac_check_lib_save_LIBS
4620
4669
fi
4621
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4622
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4623
 
if test $ac_cv_lib_socket_connect = yes; then
 
4670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
 
4671
$as_echo "$ac_cv_lib_socket_connect" >&6; }
 
4672
if test "x$ac_cv_lib_socket_connect" = x""yes; then :
4624
4673
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4625
4674
fi
4626
4675
 
4627
4676
    fi
4628
4677
 
4629
4678
    # Guillermo Gomez says -lposix is necessary on A/UX.
4630
 
    { echo "$as_me:$LINENO: checking for remove" >&5
4631
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4632
 
if test "${ac_cv_func_remove+set}" = set; then
4633
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4634
 
else
4635
 
  cat >conftest.$ac_ext <<_ACEOF
4636
 
/* confdefs.h.  */
4637
 
_ACEOF
4638
 
cat confdefs.h >>conftest.$ac_ext
4639
 
cat >>conftest.$ac_ext <<_ACEOF
4640
 
/* end confdefs.h.  */
4641
 
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4642
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4643
 
#define remove innocuous_remove
4644
 
 
4645
 
/* System header to define __stub macros and hopefully few prototypes,
4646
 
    which can conflict with char remove (); below.
4647
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648
 
    <limits.h> exists even on freestanding compilers.  */
4649
 
 
4650
 
#ifdef __STDC__
4651
 
# include <limits.h>
4652
 
#else
4653
 
# include <assert.h>
4654
 
#endif
4655
 
 
4656
 
#undef remove
4657
 
 
4658
 
/* Override any GCC internal prototype to avoid an error.
4659
 
   Use char because int might match the return type of a GCC
4660
 
   builtin and then its argument prototype would still apply.  */
4661
 
#ifdef __cplusplus
4662
 
extern "C"
4663
 
#endif
4664
 
char remove ();
4665
 
/* The GNU C library defines this for functions which it implements
4666
 
    to always fail with ENOSYS.  Some functions are actually named
4667
 
    something starting with __ and the normal name is an alias.  */
4668
 
#if defined __stub_remove || defined __stub___remove
4669
 
choke me
4670
 
#endif
4671
 
 
4672
 
int
4673
 
main ()
4674
 
{
4675
 
return remove ();
4676
 
  ;
4677
 
  return 0;
4678
 
}
4679
 
_ACEOF
4680
 
rm -f conftest.$ac_objext conftest$ac_exeext
4681
 
if { (ac_try="$ac_link"
4682
 
case "(($ac_try" in
4683
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684
 
  *) ac_try_echo=$ac_try;;
4685
 
esac
4686
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687
 
  (eval "$ac_link") 2>conftest.er1
4688
 
  ac_status=$?
4689
 
  grep -v '^ *+' conftest.er1 >conftest.err
4690
 
  rm -f conftest.er1
4691
 
  cat conftest.err >&5
4692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
 
  (exit $ac_status); } && {
4694
 
         test -z "$ac_c_werror_flag" ||
4695
 
         test ! -s conftest.err
4696
 
       } && test -s conftest$ac_exeext &&
4697
 
       $as_test_x conftest$ac_exeext; then
4698
 
  ac_cv_func_remove=yes
4699
 
else
4700
 
  echo "$as_me: failed program was:" >&5
4701
 
sed 's/^/| /' conftest.$ac_ext >&5
4702
 
 
4703
 
        ac_cv_func_remove=no
4704
 
fi
4705
 
 
4706
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4707
 
      conftest$ac_exeext conftest.$ac_ext
4708
 
fi
4709
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4710
 
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
 
4679
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
 
4680
if test "x$ac_cv_func_remove" = x""yes; then :
 
4681
 
 
4682
fi
4711
4683
 
4712
4684
    if test $ac_cv_func_remove = no; then
4713
 
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4714
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4715
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
4716
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4685
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
 
4686
$as_echo_n "checking for remove in -lposix... " >&6; }
 
4687
if test "${ac_cv_lib_posix_remove+set}" = set; then :
 
4688
  $as_echo_n "(cached) " >&6
4717
4689
else
4718
4690
  ac_check_lib_save_LIBS=$LIBS
4719
4691
LIBS="-lposix  $LIBS"
4720
 
cat >conftest.$ac_ext <<_ACEOF
4721
 
/* confdefs.h.  */
4722
 
_ACEOF
4723
 
cat confdefs.h >>conftest.$ac_ext
4724
 
cat >>conftest.$ac_ext <<_ACEOF
 
4692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725
4693
/* end confdefs.h.  */
4726
4694
 
4727
4695
/* Override any GCC internal prototype to avoid an error.
4739
4707
  return 0;
4740
4708
}
4741
4709
_ACEOF
4742
 
rm -f conftest.$ac_objext conftest$ac_exeext
4743
 
if { (ac_try="$ac_link"
4744
 
case "(($ac_try" in
4745
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746
 
  *) ac_try_echo=$ac_try;;
4747
 
esac
4748
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749
 
  (eval "$ac_link") 2>conftest.er1
4750
 
  ac_status=$?
4751
 
  grep -v '^ *+' conftest.er1 >conftest.err
4752
 
  rm -f conftest.er1
4753
 
  cat conftest.err >&5
4754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755
 
  (exit $ac_status); } && {
4756
 
         test -z "$ac_c_werror_flag" ||
4757
 
         test ! -s conftest.err
4758
 
       } && test -s conftest$ac_exeext &&
4759
 
       $as_test_x conftest$ac_exeext; then
 
4710
if ac_fn_c_try_link "$LINENO"; then :
4760
4711
  ac_cv_lib_posix_remove=yes
4761
4712
else
4762
 
  echo "$as_me: failed program was:" >&5
4763
 
sed 's/^/| /' conftest.$ac_ext >&5
4764
 
 
4765
 
        ac_cv_lib_posix_remove=no
 
4713
  ac_cv_lib_posix_remove=no
4766
4714
fi
4767
 
 
4768
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4769
 
      conftest$ac_exeext conftest.$ac_ext
 
4715
rm -f core conftest.err conftest.$ac_objext \
 
4716
    conftest$ac_exeext conftest.$ac_ext
4770
4717
LIBS=$ac_check_lib_save_LIBS
4771
4718
fi
4772
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4773
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4774
 
if test $ac_cv_lib_posix_remove = yes; then
 
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
 
4720
$as_echo "$ac_cv_lib_posix_remove" >&6; }
 
4721
if test "x$ac_cv_lib_posix_remove" = x""yes; then :
4775
4722
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4776
4723
fi
4777
4724
 
4778
4725
    fi
4779
4726
 
4780
4727
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4781
 
    { echo "$as_me:$LINENO: checking for shmat" >&5
4782
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4783
 
if test "${ac_cv_func_shmat+set}" = set; then
4784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4785
 
else
4786
 
  cat >conftest.$ac_ext <<_ACEOF
4787
 
/* confdefs.h.  */
4788
 
_ACEOF
4789
 
cat confdefs.h >>conftest.$ac_ext
4790
 
cat >>conftest.$ac_ext <<_ACEOF
4791
 
/* end confdefs.h.  */
4792
 
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4793
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4794
 
#define shmat innocuous_shmat
4795
 
 
4796
 
/* System header to define __stub macros and hopefully few prototypes,
4797
 
    which can conflict with char shmat (); below.
4798
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799
 
    <limits.h> exists even on freestanding compilers.  */
4800
 
 
4801
 
#ifdef __STDC__
4802
 
# include <limits.h>
4803
 
#else
4804
 
# include <assert.h>
4805
 
#endif
4806
 
 
4807
 
#undef shmat
4808
 
 
4809
 
/* Override any GCC internal prototype to avoid an error.
4810
 
   Use char because int might match the return type of a GCC
4811
 
   builtin and then its argument prototype would still apply.  */
4812
 
#ifdef __cplusplus
4813
 
extern "C"
4814
 
#endif
4815
 
char shmat ();
4816
 
/* The GNU C library defines this for functions which it implements
4817
 
    to always fail with ENOSYS.  Some functions are actually named
4818
 
    something starting with __ and the normal name is an alias.  */
4819
 
#if defined __stub_shmat || defined __stub___shmat
4820
 
choke me
4821
 
#endif
4822
 
 
4823
 
int
4824
 
main ()
4825
 
{
4826
 
return shmat ();
4827
 
  ;
4828
 
  return 0;
4829
 
}
4830
 
_ACEOF
4831
 
rm -f conftest.$ac_objext conftest$ac_exeext
4832
 
if { (ac_try="$ac_link"
4833
 
case "(($ac_try" in
4834
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835
 
  *) ac_try_echo=$ac_try;;
4836
 
esac
4837
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838
 
  (eval "$ac_link") 2>conftest.er1
4839
 
  ac_status=$?
4840
 
  grep -v '^ *+' conftest.er1 >conftest.err
4841
 
  rm -f conftest.er1
4842
 
  cat conftest.err >&5
4843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844
 
  (exit $ac_status); } && {
4845
 
         test -z "$ac_c_werror_flag" ||
4846
 
         test ! -s conftest.err
4847
 
       } && test -s conftest$ac_exeext &&
4848
 
       $as_test_x conftest$ac_exeext; then
4849
 
  ac_cv_func_shmat=yes
4850
 
else
4851
 
  echo "$as_me: failed program was:" >&5
4852
 
sed 's/^/| /' conftest.$ac_ext >&5
4853
 
 
4854
 
        ac_cv_func_shmat=no
4855
 
fi
4856
 
 
4857
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4858
 
      conftest$ac_exeext conftest.$ac_ext
4859
 
fi
4860
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4861
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
 
4728
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
 
4729
if test "x$ac_cv_func_shmat" = x""yes; then :
 
4730
 
 
4731
fi
4862
4732
 
4863
4733
    if test $ac_cv_func_shmat = no; then
4864
 
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4865
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4866
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4867
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4734
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
 
4735
$as_echo_n "checking for shmat in -lipc... " >&6; }
 
4736
if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
 
4737
  $as_echo_n "(cached) " >&6
4868
4738
else
4869
4739
  ac_check_lib_save_LIBS=$LIBS
4870
4740
LIBS="-lipc  $LIBS"
4871
 
cat >conftest.$ac_ext <<_ACEOF
4872
 
/* confdefs.h.  */
4873
 
_ACEOF
4874
 
cat confdefs.h >>conftest.$ac_ext
4875
 
cat >>conftest.$ac_ext <<_ACEOF
 
4741
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876
4742
/* end confdefs.h.  */
4877
4743
 
4878
4744
/* Override any GCC internal prototype to avoid an error.
4890
4756
  return 0;
4891
4757
}
4892
4758
_ACEOF
4893
 
rm -f conftest.$ac_objext conftest$ac_exeext
4894
 
if { (ac_try="$ac_link"
4895
 
case "(($ac_try" in
4896
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897
 
  *) ac_try_echo=$ac_try;;
4898
 
esac
4899
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900
 
  (eval "$ac_link") 2>conftest.er1
4901
 
  ac_status=$?
4902
 
  grep -v '^ *+' conftest.er1 >conftest.err
4903
 
  rm -f conftest.er1
4904
 
  cat conftest.err >&5
4905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906
 
  (exit $ac_status); } && {
4907
 
         test -z "$ac_c_werror_flag" ||
4908
 
         test ! -s conftest.err
4909
 
       } && test -s conftest$ac_exeext &&
4910
 
       $as_test_x conftest$ac_exeext; then
 
4759
if ac_fn_c_try_link "$LINENO"; then :
4911
4760
  ac_cv_lib_ipc_shmat=yes
4912
4761
else
4913
 
  echo "$as_me: failed program was:" >&5
4914
 
sed 's/^/| /' conftest.$ac_ext >&5
4915
 
 
4916
 
        ac_cv_lib_ipc_shmat=no
 
4762
  ac_cv_lib_ipc_shmat=no
4917
4763
fi
4918
 
 
4919
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4920
 
      conftest$ac_exeext conftest.$ac_ext
 
4764
rm -f core conftest.err conftest.$ac_objext \
 
4765
    conftest$ac_exeext conftest.$ac_ext
4921
4766
LIBS=$ac_check_lib_save_LIBS
4922
4767
fi
4923
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4924
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4925
 
if test $ac_cv_lib_ipc_shmat = yes; then
 
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
 
4769
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
 
4770
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
4926
4771
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4927
4772
fi
4928
4773
 
4938
4783
  # These have to be linked with before -lX11, unlike the other
4939
4784
  # libraries we check for below, so use a different variable.
4940
4785
  # John Interrante, Karl Berry
4941
 
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4942
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4943
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4944
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4786
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
 
4787
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
 
4788
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
 
4789
  $as_echo_n "(cached) " >&6
4945
4790
else
4946
4791
  ac_check_lib_save_LIBS=$LIBS
4947
4792
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4948
 
cat >conftest.$ac_ext <<_ACEOF
4949
 
/* confdefs.h.  */
4950
 
_ACEOF
4951
 
cat confdefs.h >>conftest.$ac_ext
4952
 
cat >>conftest.$ac_ext <<_ACEOF
 
4793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953
4794
/* end confdefs.h.  */
4954
4795
 
4955
4796
/* Override any GCC internal prototype to avoid an error.
4967
4808
  return 0;
4968
4809
}
4969
4810
_ACEOF
4970
 
rm -f conftest.$ac_objext conftest$ac_exeext
4971
 
if { (ac_try="$ac_link"
4972
 
case "(($ac_try" in
4973
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974
 
  *) ac_try_echo=$ac_try;;
4975
 
esac
4976
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977
 
  (eval "$ac_link") 2>conftest.er1
4978
 
  ac_status=$?
4979
 
  grep -v '^ *+' conftest.er1 >conftest.err
4980
 
  rm -f conftest.er1
4981
 
  cat conftest.err >&5
4982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983
 
  (exit $ac_status); } && {
4984
 
         test -z "$ac_c_werror_flag" ||
4985
 
         test ! -s conftest.err
4986
 
       } && test -s conftest$ac_exeext &&
4987
 
       $as_test_x conftest$ac_exeext; then
 
4811
if ac_fn_c_try_link "$LINENO"; then :
4988
4812
  ac_cv_lib_ICE_IceConnectionNumber=yes
4989
4813
else
4990
 
  echo "$as_me: failed program was:" >&5
4991
 
sed 's/^/| /' conftest.$ac_ext >&5
4992
 
 
4993
 
        ac_cv_lib_ICE_IceConnectionNumber=no
 
4814
  ac_cv_lib_ICE_IceConnectionNumber=no
4994
4815
fi
4995
 
 
4996
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4997
 
      conftest$ac_exeext conftest.$ac_ext
 
4816
rm -f core conftest.err conftest.$ac_objext \
 
4817
    conftest$ac_exeext conftest.$ac_ext
4998
4818
LIBS=$ac_check_lib_save_LIBS
4999
4819
fi
5000
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5001
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5002
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
4820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
4821
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
4822
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5003
4823
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5004
4824
fi
5005
4825
 
5022
4842
 
5023
4843
# Extract the first word of "pkg-config", so it can be a program name with args.
5024
4844
set dummy pkg-config; ac_word=$2
5025
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5026
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4846
$as_echo_n "checking for $ac_word... " >&6; }
 
4847
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
4848
  $as_echo_n "(cached) " >&6
5029
4849
else
5030
4850
  case $PKG_CONFIG in
5031
4851
  [\\/]* | ?:[\\/]*)
5037
4857
do
5038
4858
  IFS=$as_save_IFS
5039
4859
  test -z "$as_dir" && as_dir=.
5040
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4860
    for ac_exec_ext in '' $ac_executable_extensions; do
5041
4861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042
4862
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5043
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4863
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044
4864
    break 2
5045
4865
  fi
5046
4866
done
5047
 
done
 
4867
  done
5048
4868
IFS=$as_save_IFS
5049
4869
 
5050
4870
  ;;
5052
4872
fi
5053
4873
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5054
4874
if test -n "$PKG_CONFIG"; then
5055
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5056
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
4875
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
4876
$as_echo "$PKG_CONFIG" >&6; }
5057
4877
else
5058
 
  { echo "$as_me:$LINENO: result: no" >&5
5059
 
echo "${ECHO_T}no" >&6; }
 
4878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4879
$as_echo "no" >&6; }
5060
4880
fi
5061
4881
 
5062
4882
 
5063
4883
 
5064
 
{ echo "$as_me:$LINENO: checking for library containing socket" >&5
5065
 
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5066
 
if test "${ac_cv_search_socket+set}" = set; then
5067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
 
4885
$as_echo_n "checking for library containing socket... " >&6; }
 
4886
if test "${ac_cv_search_socket+set}" = set; then :
 
4887
  $as_echo_n "(cached) " >&6
5068
4888
else
5069
4889
  ac_func_search_save_LIBS=$LIBS
5070
 
cat >conftest.$ac_ext <<_ACEOF
5071
 
/* confdefs.h.  */
5072
 
_ACEOF
5073
 
cat confdefs.h >>conftest.$ac_ext
5074
 
cat >>conftest.$ac_ext <<_ACEOF
 
4890
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075
4891
/* end confdefs.h.  */
5076
4892
 
5077
4893
/* Override any GCC internal prototype to avoid an error.
5096
4912
    ac_res=-l$ac_lib
5097
4913
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5098
4914
  fi
5099
 
  rm -f conftest.$ac_objext conftest$ac_exeext
5100
 
if { (ac_try="$ac_link"
5101
 
case "(($ac_try" in
5102
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103
 
  *) ac_try_echo=$ac_try;;
5104
 
esac
5105
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106
 
  (eval "$ac_link") 2>conftest.er1
5107
 
  ac_status=$?
5108
 
  grep -v '^ *+' conftest.er1 >conftest.err
5109
 
  rm -f conftest.er1
5110
 
  cat conftest.err >&5
5111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112
 
  (exit $ac_status); } && {
5113
 
         test -z "$ac_c_werror_flag" ||
5114
 
         test ! -s conftest.err
5115
 
       } && test -s conftest$ac_exeext &&
5116
 
       $as_test_x conftest$ac_exeext; then
 
4915
  if ac_fn_c_try_link "$LINENO"; then :
5117
4916
  ac_cv_search_socket=$ac_res
5118
 
else
5119
 
  echo "$as_me: failed program was:" >&5
5120
 
sed 's/^/| /' conftest.$ac_ext >&5
5121
 
 
5122
 
 
5123
4917
fi
5124
 
 
5125
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5126
 
      conftest$ac_exeext
5127
 
  if test "${ac_cv_search_socket+set}" = set; then
 
4918
rm -f core conftest.err conftest.$ac_objext \
 
4919
    conftest$ac_exeext
 
4920
  if test "${ac_cv_search_socket+set}" = set; then :
5128
4921
  break
5129
4922
fi
5130
4923
done
5131
 
if test "${ac_cv_search_socket+set}" = set; then
5132
 
  :
 
4924
if test "${ac_cv_search_socket+set}" = set; then :
 
4925
 
5133
4926
else
5134
4927
  ac_cv_search_socket=no
5135
4928
fi
5136
4929
rm conftest.$ac_ext
5137
4930
LIBS=$ac_func_search_save_LIBS
5138
4931
fi
5139
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5140
 
echo "${ECHO_T}$ac_cv_search_socket" >&6; }
 
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
 
4933
$as_echo "$ac_cv_search_socket" >&6; }
5141
4934
ac_res=$ac_cv_search_socket
5142
 
if test "$ac_res" != no; then
 
4935
if test "$ac_res" != no; then :
5143
4936
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5144
4937
 
5145
4938
fi
5146
4939
 
5147
 
{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
5148
 
echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
5149
 
if test "${ac_cv_search_inet_aton+set}" = set; then
5150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
 
4941
$as_echo_n "checking for library containing inet_aton... " >&6; }
 
4942
if test "${ac_cv_search_inet_aton+set}" = set; then :
 
4943
  $as_echo_n "(cached) " >&6
5151
4944
else
5152
4945
  ac_func_search_save_LIBS=$LIBS
5153
 
cat >conftest.$ac_ext <<_ACEOF
5154
 
/* confdefs.h.  */
5155
 
_ACEOF
5156
 
cat confdefs.h >>conftest.$ac_ext
5157
 
cat >>conftest.$ac_ext <<_ACEOF
 
4946
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158
4947
/* end confdefs.h.  */
5159
4948
 
5160
4949
/* Override any GCC internal prototype to avoid an error.
5179
4968
    ac_res=-l$ac_lib
5180
4969
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5181
4970
  fi
5182
 
  rm -f conftest.$ac_objext conftest$ac_exeext
5183
 
if { (ac_try="$ac_link"
5184
 
case "(($ac_try" in
5185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186
 
  *) ac_try_echo=$ac_try;;
5187
 
esac
5188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189
 
  (eval "$ac_link") 2>conftest.er1
5190
 
  ac_status=$?
5191
 
  grep -v '^ *+' conftest.er1 >conftest.err
5192
 
  rm -f conftest.er1
5193
 
  cat conftest.err >&5
5194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195
 
  (exit $ac_status); } && {
5196
 
         test -z "$ac_c_werror_flag" ||
5197
 
         test ! -s conftest.err
5198
 
       } && test -s conftest$ac_exeext &&
5199
 
       $as_test_x conftest$ac_exeext; then
 
4971
  if ac_fn_c_try_link "$LINENO"; then :
5200
4972
  ac_cv_search_inet_aton=$ac_res
5201
 
else
5202
 
  echo "$as_me: failed program was:" >&5
5203
 
sed 's/^/| /' conftest.$ac_ext >&5
5204
 
 
5205
 
 
5206
4973
fi
5207
 
 
5208
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5209
 
      conftest$ac_exeext
5210
 
  if test "${ac_cv_search_inet_aton+set}" = set; then
 
4974
rm -f core conftest.err conftest.$ac_objext \
 
4975
    conftest$ac_exeext
 
4976
  if test "${ac_cv_search_inet_aton+set}" = set; then :
5211
4977
  break
5212
4978
fi
5213
4979
done
5214
 
if test "${ac_cv_search_inet_aton+set}" = set; then
5215
 
  :
 
4980
if test "${ac_cv_search_inet_aton+set}" = set; then :
 
4981
 
5216
4982
else
5217
4983
  ac_cv_search_inet_aton=no
5218
4984
fi
5219
4985
rm conftest.$ac_ext
5220
4986
LIBS=$ac_func_search_save_LIBS
5221
4987
fi
5222
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
5223
 
echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
 
4988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
 
4989
$as_echo "$ac_cv_search_inet_aton" >&6; }
5224
4990
ac_res=$ac_cv_search_inet_aton
5225
 
if test "$ac_res" != no; then
5226
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5227
 
 
5228
 
fi
5229
 
 
5230
 
 
5231
 
if test "${ac_cv_header_sys_select_h+set}" = set; then
5232
 
  { echo "$as_me:$LINENO: checking for sys/select.h" >&5
5233
 
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
5234
 
if test "${ac_cv_header_sys_select_h+set}" = set; then
5235
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5236
 
fi
5237
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5238
 
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
5239
 
else
5240
 
  # Is the header compilable?
5241
 
{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
5242
 
echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
5243
 
cat >conftest.$ac_ext <<_ACEOF
5244
 
/* confdefs.h.  */
5245
 
_ACEOF
5246
 
cat confdefs.h >>conftest.$ac_ext
5247
 
cat >>conftest.$ac_ext <<_ACEOF
5248
 
/* end confdefs.h.  */
5249
 
$ac_includes_default
5250
 
#include <sys/select.h>
5251
 
_ACEOF
5252
 
rm -f conftest.$ac_objext
5253
 
if { (ac_try="$ac_compile"
5254
 
case "(($ac_try" in
5255
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256
 
  *) ac_try_echo=$ac_try;;
5257
 
esac
5258
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259
 
  (eval "$ac_compile") 2>conftest.er1
5260
 
  ac_status=$?
5261
 
  grep -v '^ *+' conftest.er1 >conftest.err
5262
 
  rm -f conftest.er1
5263
 
  cat conftest.err >&5
5264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265
 
  (exit $ac_status); } && {
5266
 
         test -z "$ac_c_werror_flag" ||
5267
 
         test ! -s conftest.err
5268
 
       } && test -s conftest.$ac_objext; then
5269
 
  ac_header_compiler=yes
5270
 
else
5271
 
  echo "$as_me: failed program was:" >&5
5272
 
sed 's/^/| /' conftest.$ac_ext >&5
5273
 
 
5274
 
        ac_header_compiler=no
5275
 
fi
5276
 
 
5277
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5279
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5280
 
 
5281
 
# Is the header present?
5282
 
{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
5283
 
echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
5284
 
cat >conftest.$ac_ext <<_ACEOF
5285
 
/* confdefs.h.  */
5286
 
_ACEOF
5287
 
cat confdefs.h >>conftest.$ac_ext
5288
 
cat >>conftest.$ac_ext <<_ACEOF
5289
 
/* end confdefs.h.  */
5290
 
#include <sys/select.h>
5291
 
_ACEOF
5292
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5293
 
case "(($ac_try" in
5294
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295
 
  *) ac_try_echo=$ac_try;;
5296
 
esac
5297
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5299
 
  ac_status=$?
5300
 
  grep -v '^ *+' conftest.er1 >conftest.err
5301
 
  rm -f conftest.er1
5302
 
  cat conftest.err >&5
5303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304
 
  (exit $ac_status); } >/dev/null && {
5305
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5306
 
         test ! -s conftest.err
5307
 
       }; then
5308
 
  ac_header_preproc=yes
5309
 
else
5310
 
  echo "$as_me: failed program was:" >&5
5311
 
sed 's/^/| /' conftest.$ac_ext >&5
5312
 
 
5313
 
  ac_header_preproc=no
5314
 
fi
5315
 
 
5316
 
rm -f conftest.err conftest.$ac_ext
5317
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5318
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5319
 
 
5320
 
# So?  What about this header?
5321
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5322
 
  yes:no: )
5323
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
5324
 
echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5325
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
5326
 
echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
5327
 
    ac_header_preproc=yes
5328
 
    ;;
5329
 
  no:yes:* )
5330
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
5331
 
echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
5332
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h:     check for missing prerequisite headers?" >&5
5333
 
echo "$as_me: WARNING: sys/select.h:     check for missing prerequisite headers?" >&2;}
5334
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
5335
 
echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
5336
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&5
5337
 
echo "$as_me: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5338
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
5339
 
echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
5340
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
5341
 
echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
5342
 
 
5343
 
    ;;
5344
 
esac
5345
 
{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
5346
 
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
5347
 
if test "${ac_cv_header_sys_select_h+set}" = set; then
5348
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5349
 
else
5350
 
  ac_cv_header_sys_select_h=$ac_header_preproc
5351
 
fi
5352
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5353
 
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
5354
 
 
5355
 
fi
5356
 
if test $ac_cv_header_sys_select_h = yes; then
5357
 
  cat >>confdefs.h <<\_ACEOF
5358
 
#define HAVE_SYS_SELECT_H 1
5359
 
_ACEOF
5360
 
 
5361
 
fi
5362
 
 
5363
 
 
5364
 
if test "${ac_cv_header_sys_modem_h+set}" = set; then
5365
 
  { echo "$as_me:$LINENO: checking for sys/modem.h" >&5
5366
 
echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6; }
5367
 
if test "${ac_cv_header_sys_modem_h+set}" = set; then
5368
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5369
 
fi
5370
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
5371
 
echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6; }
5372
 
else
5373
 
  # Is the header compilable?
5374
 
{ echo "$as_me:$LINENO: checking sys/modem.h usability" >&5
5375
 
echo $ECHO_N "checking sys/modem.h usability... $ECHO_C" >&6; }
5376
 
cat >conftest.$ac_ext <<_ACEOF
5377
 
/* confdefs.h.  */
5378
 
_ACEOF
5379
 
cat confdefs.h >>conftest.$ac_ext
5380
 
cat >>conftest.$ac_ext <<_ACEOF
5381
 
/* end confdefs.h.  */
5382
 
$ac_includes_default
5383
 
#include <sys/modem.h>
5384
 
_ACEOF
5385
 
rm -f conftest.$ac_objext
5386
 
if { (ac_try="$ac_compile"
5387
 
case "(($ac_try" in
5388
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389
 
  *) ac_try_echo=$ac_try;;
5390
 
esac
5391
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392
 
  (eval "$ac_compile") 2>conftest.er1
5393
 
  ac_status=$?
5394
 
  grep -v '^ *+' conftest.er1 >conftest.err
5395
 
  rm -f conftest.er1
5396
 
  cat conftest.err >&5
5397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
 
  (exit $ac_status); } && {
5399
 
         test -z "$ac_c_werror_flag" ||
5400
 
         test ! -s conftest.err
5401
 
       } && test -s conftest.$ac_objext; then
5402
 
  ac_header_compiler=yes
5403
 
else
5404
 
  echo "$as_me: failed program was:" >&5
5405
 
sed 's/^/| /' conftest.$ac_ext >&5
5406
 
 
5407
 
        ac_header_compiler=no
5408
 
fi
5409
 
 
5410
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5412
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5413
 
 
5414
 
# Is the header present?
5415
 
{ echo "$as_me:$LINENO: checking sys/modem.h presence" >&5
5416
 
echo $ECHO_N "checking sys/modem.h presence... $ECHO_C" >&6; }
5417
 
cat >conftest.$ac_ext <<_ACEOF
5418
 
/* confdefs.h.  */
5419
 
_ACEOF
5420
 
cat confdefs.h >>conftest.$ac_ext
5421
 
cat >>conftest.$ac_ext <<_ACEOF
5422
 
/* end confdefs.h.  */
5423
 
#include <sys/modem.h>
5424
 
_ACEOF
5425
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5426
 
case "(($ac_try" in
5427
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428
 
  *) ac_try_echo=$ac_try;;
5429
 
esac
5430
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5432
 
  ac_status=$?
5433
 
  grep -v '^ *+' conftest.er1 >conftest.err
5434
 
  rm -f conftest.er1
5435
 
  cat conftest.err >&5
5436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
 
  (exit $ac_status); } >/dev/null && {
5438
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5439
 
         test ! -s conftest.err
5440
 
       }; then
5441
 
  ac_header_preproc=yes
5442
 
else
5443
 
  echo "$as_me: failed program was:" >&5
5444
 
sed 's/^/| /' conftest.$ac_ext >&5
5445
 
 
5446
 
  ac_header_preproc=no
5447
 
fi
5448
 
 
5449
 
rm -f conftest.err conftest.$ac_ext
5450
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5451
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5452
 
 
5453
 
# So?  What about this header?
5454
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5455
 
  yes:no: )
5456
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&5
5457
 
echo "$as_me: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5458
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the compiler's result" >&5
5459
 
echo "$as_me: WARNING: sys/modem.h: proceeding with the compiler's result" >&2;}
5460
 
    ac_header_preproc=yes
5461
 
    ;;
5462
 
  no:yes:* )
5463
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h: present but cannot be compiled" >&5
5464
 
echo "$as_me: WARNING: sys/modem.h: present but cannot be compiled" >&2;}
5465
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h:     check for missing prerequisite headers?" >&5
5466
 
echo "$as_me: WARNING: sys/modem.h:     check for missing prerequisite headers?" >&2;}
5467
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h: see the Autoconf documentation" >&5
5468
 
echo "$as_me: WARNING: sys/modem.h: see the Autoconf documentation" >&2;}
5469
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h:     section \"Present But Cannot Be Compiled\"" >&5
5470
 
echo "$as_me: WARNING: sys/modem.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5471
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&5
5472
 
echo "$as_me: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&2;}
5473
 
    { echo "$as_me:$LINENO: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&5
5474
 
echo "$as_me: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&2;}
5475
 
 
5476
 
    ;;
5477
 
esac
5478
 
{ echo "$as_me:$LINENO: checking for sys/modem.h" >&5
5479
 
echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6; }
5480
 
if test "${ac_cv_header_sys_modem_h+set}" = set; then
5481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5482
 
else
5483
 
  ac_cv_header_sys_modem_h=$ac_header_preproc
5484
 
fi
5485
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
5486
 
echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6; }
5487
 
 
5488
 
fi
5489
 
if test $ac_cv_header_sys_modem_h = yes; then
5490
 
  cat >>confdefs.h <<\_ACEOF
5491
 
#define HAVE_SYS_MODEM_H 1
5492
 
_ACEOF
5493
 
 
5494
 
fi
5495
 
 
5496
 
 
5497
 
if test "${ac_cv_header_sys_filio_h+set}" = set; then
5498
 
  { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
5499
 
echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
5500
 
if test "${ac_cv_header_sys_filio_h+set}" = set; then
5501
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5502
 
fi
5503
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
5504
 
echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
5505
 
else
5506
 
  # Is the header compilable?
5507
 
{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
5508
 
echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
5509
 
cat >conftest.$ac_ext <<_ACEOF
5510
 
/* confdefs.h.  */
5511
 
_ACEOF
5512
 
cat confdefs.h >>conftest.$ac_ext
5513
 
cat >>conftest.$ac_ext <<_ACEOF
5514
 
/* end confdefs.h.  */
5515
 
$ac_includes_default
5516
 
#include <sys/filio.h>
5517
 
_ACEOF
5518
 
rm -f conftest.$ac_objext
5519
 
if { (ac_try="$ac_compile"
5520
 
case "(($ac_try" in
5521
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522
 
  *) ac_try_echo=$ac_try;;
5523
 
esac
5524
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525
 
  (eval "$ac_compile") 2>conftest.er1
5526
 
  ac_status=$?
5527
 
  grep -v '^ *+' conftest.er1 >conftest.err
5528
 
  rm -f conftest.er1
5529
 
  cat conftest.err >&5
5530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531
 
  (exit $ac_status); } && {
5532
 
         test -z "$ac_c_werror_flag" ||
5533
 
         test ! -s conftest.err
5534
 
       } && test -s conftest.$ac_objext; then
5535
 
  ac_header_compiler=yes
5536
 
else
5537
 
  echo "$as_me: failed program was:" >&5
5538
 
sed 's/^/| /' conftest.$ac_ext >&5
5539
 
 
5540
 
        ac_header_compiler=no
5541
 
fi
5542
 
 
5543
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5545
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5546
 
 
5547
 
# Is the header present?
5548
 
{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
5549
 
echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
5550
 
cat >conftest.$ac_ext <<_ACEOF
5551
 
/* confdefs.h.  */
5552
 
_ACEOF
5553
 
cat confdefs.h >>conftest.$ac_ext
5554
 
cat >>conftest.$ac_ext <<_ACEOF
5555
 
/* end confdefs.h.  */
5556
 
#include <sys/filio.h>
5557
 
_ACEOF
5558
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5559
 
case "(($ac_try" in
5560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561
 
  *) ac_try_echo=$ac_try;;
5562
 
esac
5563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5565
 
  ac_status=$?
5566
 
  grep -v '^ *+' conftest.er1 >conftest.err
5567
 
  rm -f conftest.er1
5568
 
  cat conftest.err >&5
5569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570
 
  (exit $ac_status); } >/dev/null && {
5571
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5572
 
         test ! -s conftest.err
5573
 
       }; then
5574
 
  ac_header_preproc=yes
5575
 
else
5576
 
  echo "$as_me: failed program was:" >&5
5577
 
sed 's/^/| /' conftest.$ac_ext >&5
5578
 
 
5579
 
  ac_header_preproc=no
5580
 
fi
5581
 
 
5582
 
rm -f conftest.err conftest.$ac_ext
5583
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5584
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5585
 
 
5586
 
# So?  What about this header?
5587
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5588
 
  yes:no: )
5589
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5590
 
echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5591
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
5592
 
echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
5593
 
    ac_header_preproc=yes
5594
 
    ;;
5595
 
  no:yes:* )
5596
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
5597
 
echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
5598
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h:     check for missing prerequisite headers?" >&5
5599
 
echo "$as_me: WARNING: sys/filio.h:     check for missing prerequisite headers?" >&2;}
5600
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
5601
 
echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
5602
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h:     section \"Present But Cannot Be Compiled\"" >&5
5603
 
echo "$as_me: WARNING: sys/filio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5604
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
5605
 
echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
5606
 
    { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
5607
 
echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
5608
 
 
5609
 
    ;;
5610
 
esac
5611
 
{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5
5612
 
echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
5613
 
if test "${ac_cv_header_sys_filio_h+set}" = set; then
5614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5615
 
else
5616
 
  ac_cv_header_sys_filio_h=$ac_header_preproc
5617
 
fi
5618
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
5619
 
echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
5620
 
 
5621
 
fi
5622
 
if test $ac_cv_header_sys_filio_h = yes; then
5623
 
  cat >>confdefs.h <<\_ACEOF
5624
 
#define HAVE_SYS_FILIO_H 1
5625
 
_ACEOF
5626
 
 
5627
 
fi
5628
 
 
5629
 
 
5630
 
if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5631
 
  { echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
5632
 
echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6; }
5633
 
if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5634
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5635
 
fi
5636
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
5637
 
echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6; }
5638
 
else
5639
 
  # Is the header compilable?
5640
 
{ echo "$as_me:$LINENO: checking sys/strtio.h usability" >&5
5641
 
echo $ECHO_N "checking sys/strtio.h usability... $ECHO_C" >&6; }
5642
 
cat >conftest.$ac_ext <<_ACEOF
5643
 
/* confdefs.h.  */
5644
 
_ACEOF
5645
 
cat confdefs.h >>conftest.$ac_ext
5646
 
cat >>conftest.$ac_ext <<_ACEOF
5647
 
/* end confdefs.h.  */
5648
 
$ac_includes_default
5649
 
#include <sys/strtio.h>
5650
 
_ACEOF
5651
 
rm -f conftest.$ac_objext
5652
 
if { (ac_try="$ac_compile"
5653
 
case "(($ac_try" in
5654
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655
 
  *) ac_try_echo=$ac_try;;
5656
 
esac
5657
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658
 
  (eval "$ac_compile") 2>conftest.er1
5659
 
  ac_status=$?
5660
 
  grep -v '^ *+' conftest.er1 >conftest.err
5661
 
  rm -f conftest.er1
5662
 
  cat conftest.err >&5
5663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
 
  (exit $ac_status); } && {
5665
 
         test -z "$ac_c_werror_flag" ||
5666
 
         test ! -s conftest.err
5667
 
       } && test -s conftest.$ac_objext; then
5668
 
  ac_header_compiler=yes
5669
 
else
5670
 
  echo "$as_me: failed program was:" >&5
5671
 
sed 's/^/| /' conftest.$ac_ext >&5
5672
 
 
5673
 
        ac_header_compiler=no
5674
 
fi
5675
 
 
5676
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5678
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5679
 
 
5680
 
# Is the header present?
5681
 
{ echo "$as_me:$LINENO: checking sys/strtio.h presence" >&5
5682
 
echo $ECHO_N "checking sys/strtio.h presence... $ECHO_C" >&6; }
5683
 
cat >conftest.$ac_ext <<_ACEOF
5684
 
/* confdefs.h.  */
5685
 
_ACEOF
5686
 
cat confdefs.h >>conftest.$ac_ext
5687
 
cat >>conftest.$ac_ext <<_ACEOF
5688
 
/* end confdefs.h.  */
5689
 
#include <sys/strtio.h>
5690
 
_ACEOF
5691
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5692
 
case "(($ac_try" in
5693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694
 
  *) ac_try_echo=$ac_try;;
5695
 
esac
5696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698
 
  ac_status=$?
5699
 
  grep -v '^ *+' conftest.er1 >conftest.err
5700
 
  rm -f conftest.er1
5701
 
  cat conftest.err >&5
5702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703
 
  (exit $ac_status); } >/dev/null && {
5704
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5705
 
         test ! -s conftest.err
5706
 
       }; then
5707
 
  ac_header_preproc=yes
5708
 
else
5709
 
  echo "$as_me: failed program was:" >&5
5710
 
sed 's/^/| /' conftest.$ac_ext >&5
5711
 
 
5712
 
  ac_header_preproc=no
5713
 
fi
5714
 
 
5715
 
rm -f conftest.err conftest.$ac_ext
5716
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5718
 
 
5719
 
# So?  What about this header?
5720
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5721
 
  yes:no: )
5722
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5723
 
echo "$as_me: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the compiler's result" >&5
5725
 
echo "$as_me: WARNING: sys/strtio.h: proceeding with the compiler's result" >&2;}
5726
 
    ac_header_preproc=yes
5727
 
    ;;
5728
 
  no:yes:* )
5729
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h: present but cannot be compiled" >&5
5730
 
echo "$as_me: WARNING: sys/strtio.h: present but cannot be compiled" >&2;}
5731
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h:     check for missing prerequisite headers?" >&5
5732
 
echo "$as_me: WARNING: sys/strtio.h:     check for missing prerequisite headers?" >&2;}
5733
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h: see the Autoconf documentation" >&5
5734
 
echo "$as_me: WARNING: sys/strtio.h: see the Autoconf documentation" >&2;}
5735
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h:     section \"Present But Cannot Be Compiled\"" >&5
5736
 
echo "$as_me: WARNING: sys/strtio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5737
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&5
5738
 
echo "$as_me: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&2;}
5739
 
    { echo "$as_me:$LINENO: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&5
5740
 
echo "$as_me: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&2;}
5741
 
 
5742
 
    ;;
5743
 
esac
5744
 
{ echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
5745
 
echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6; }
5746
 
if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5747
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5748
 
else
5749
 
  ac_cv_header_sys_strtio_h=$ac_header_preproc
5750
 
fi
5751
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
5752
 
echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6; }
5753
 
 
5754
 
fi
5755
 
if test $ac_cv_header_sys_strtio_h = yes; then
5756
 
  cat >>confdefs.h <<\_ACEOF
5757
 
#define HAVE_SYS_STRTIO_H 1
5758
 
_ACEOF
5759
 
 
5760
 
fi
5761
 
 
5762
 
 
5763
 
if test "${ac_cv_header_locale_h+set}" = set; then
5764
 
  { echo "$as_me:$LINENO: checking for locale.h" >&5
5765
 
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
5766
 
if test "${ac_cv_header_locale_h+set}" = set; then
5767
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5768
 
fi
5769
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
5770
 
echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
5771
 
else
5772
 
  # Is the header compilable?
5773
 
{ echo "$as_me:$LINENO: checking locale.h usability" >&5
5774
 
echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
5775
 
cat >conftest.$ac_ext <<_ACEOF
5776
 
/* confdefs.h.  */
5777
 
_ACEOF
5778
 
cat confdefs.h >>conftest.$ac_ext
5779
 
cat >>conftest.$ac_ext <<_ACEOF
5780
 
/* end confdefs.h.  */
5781
 
$ac_includes_default
5782
 
#include <locale.h>
5783
 
_ACEOF
5784
 
rm -f conftest.$ac_objext
5785
 
if { (ac_try="$ac_compile"
5786
 
case "(($ac_try" in
5787
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788
 
  *) ac_try_echo=$ac_try;;
5789
 
esac
5790
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791
 
  (eval "$ac_compile") 2>conftest.er1
5792
 
  ac_status=$?
5793
 
  grep -v '^ *+' conftest.er1 >conftest.err
5794
 
  rm -f conftest.er1
5795
 
  cat conftest.err >&5
5796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
 
  (exit $ac_status); } && {
5798
 
         test -z "$ac_c_werror_flag" ||
5799
 
         test ! -s conftest.err
5800
 
       } && test -s conftest.$ac_objext; then
5801
 
  ac_header_compiler=yes
5802
 
else
5803
 
  echo "$as_me: failed program was:" >&5
5804
 
sed 's/^/| /' conftest.$ac_ext >&5
5805
 
 
5806
 
        ac_header_compiler=no
5807
 
fi
5808
 
 
5809
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5811
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5812
 
 
5813
 
# Is the header present?
5814
 
{ echo "$as_me:$LINENO: checking locale.h presence" >&5
5815
 
echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
5816
 
cat >conftest.$ac_ext <<_ACEOF
5817
 
/* confdefs.h.  */
5818
 
_ACEOF
5819
 
cat confdefs.h >>conftest.$ac_ext
5820
 
cat >>conftest.$ac_ext <<_ACEOF
5821
 
/* end confdefs.h.  */
5822
 
#include <locale.h>
5823
 
_ACEOF
5824
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5825
 
case "(($ac_try" in
5826
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827
 
  *) ac_try_echo=$ac_try;;
5828
 
esac
5829
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831
 
  ac_status=$?
5832
 
  grep -v '^ *+' conftest.er1 >conftest.err
5833
 
  rm -f conftest.er1
5834
 
  cat conftest.err >&5
5835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
 
  (exit $ac_status); } >/dev/null && {
5837
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838
 
         test ! -s conftest.err
5839
 
       }; then
5840
 
  ac_header_preproc=yes
5841
 
else
5842
 
  echo "$as_me: failed program was:" >&5
5843
 
sed 's/^/| /' conftest.$ac_ext >&5
5844
 
 
5845
 
  ac_header_preproc=no
5846
 
fi
5847
 
 
5848
 
rm -f conftest.err conftest.$ac_ext
5849
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5851
 
 
5852
 
# So?  What about this header?
5853
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5854
 
  yes:no: )
5855
 
    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
5856
 
echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857
 
    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
5858
 
echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
5859
 
    ac_header_preproc=yes
5860
 
    ;;
5861
 
  no:yes:* )
5862
 
    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
5863
 
echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
5864
 
    { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
5865
 
echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
5866
 
    { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
5867
 
echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
5868
 
    { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
5869
 
echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5870
 
    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
5871
 
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
5872
 
    { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
5873
 
echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
5874
 
 
5875
 
    ;;
5876
 
esac
5877
 
{ echo "$as_me:$LINENO: checking for locale.h" >&5
5878
 
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
5879
 
if test "${ac_cv_header_locale_h+set}" = set; then
5880
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5881
 
else
5882
 
  ac_cv_header_locale_h=$ac_header_preproc
5883
 
fi
5884
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
5885
 
echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
5886
 
 
5887
 
fi
5888
 
if test $ac_cv_header_locale_h = yes; then
5889
 
  cat >>confdefs.h <<\_ACEOF
5890
 
#define HAVE_LOCALE_H 1
5891
 
_ACEOF
5892
 
 
5893
 
fi
5894
 
 
5895
 
 
5896
 
if test "${ac_cv_header_langinfo_h+set}" = set; then
5897
 
  { echo "$as_me:$LINENO: checking for langinfo.h" >&5
5898
 
echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
5899
 
if test "${ac_cv_header_langinfo_h+set}" = set; then
5900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5901
 
fi
5902
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
5903
 
echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
5904
 
else
5905
 
  # Is the header compilable?
5906
 
{ echo "$as_me:$LINENO: checking langinfo.h usability" >&5
5907
 
echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6; }
5908
 
cat >conftest.$ac_ext <<_ACEOF
5909
 
/* confdefs.h.  */
5910
 
_ACEOF
5911
 
cat confdefs.h >>conftest.$ac_ext
5912
 
cat >>conftest.$ac_ext <<_ACEOF
5913
 
/* end confdefs.h.  */
5914
 
$ac_includes_default
5915
 
#include <langinfo.h>
5916
 
_ACEOF
5917
 
rm -f conftest.$ac_objext
5918
 
if { (ac_try="$ac_compile"
5919
 
case "(($ac_try" in
5920
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921
 
  *) ac_try_echo=$ac_try;;
5922
 
esac
5923
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924
 
  (eval "$ac_compile") 2>conftest.er1
5925
 
  ac_status=$?
5926
 
  grep -v '^ *+' conftest.er1 >conftest.err
5927
 
  rm -f conftest.er1
5928
 
  cat conftest.err >&5
5929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
 
  (exit $ac_status); } && {
5931
 
         test -z "$ac_c_werror_flag" ||
5932
 
         test ! -s conftest.err
5933
 
       } && test -s conftest.$ac_objext; then
5934
 
  ac_header_compiler=yes
5935
 
else
5936
 
  echo "$as_me: failed program was:" >&5
5937
 
sed 's/^/| /' conftest.$ac_ext >&5
5938
 
 
5939
 
        ac_header_compiler=no
5940
 
fi
5941
 
 
5942
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5945
 
 
5946
 
# Is the header present?
5947
 
{ echo "$as_me:$LINENO: checking langinfo.h presence" >&5
5948
 
echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6; }
5949
 
cat >conftest.$ac_ext <<_ACEOF
5950
 
/* confdefs.h.  */
5951
 
_ACEOF
5952
 
cat confdefs.h >>conftest.$ac_ext
5953
 
cat >>conftest.$ac_ext <<_ACEOF
5954
 
/* end confdefs.h.  */
5955
 
#include <langinfo.h>
5956
 
_ACEOF
5957
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5958
 
case "(($ac_try" in
5959
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960
 
  *) ac_try_echo=$ac_try;;
5961
 
esac
5962
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964
 
  ac_status=$?
5965
 
  grep -v '^ *+' conftest.er1 >conftest.err
5966
 
  rm -f conftest.er1
5967
 
  cat conftest.err >&5
5968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969
 
  (exit $ac_status); } >/dev/null && {
5970
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5971
 
         test ! -s conftest.err
5972
 
       }; then
5973
 
  ac_header_preproc=yes
5974
 
else
5975
 
  echo "$as_me: failed program was:" >&5
5976
 
sed 's/^/| /' conftest.$ac_ext >&5
5977
 
 
5978
 
  ac_header_preproc=no
5979
 
fi
5980
 
 
5981
 
rm -f conftest.err conftest.$ac_ext
5982
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5983
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5984
 
 
5985
 
# So?  What about this header?
5986
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5987
 
  yes:no: )
5988
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
5989
 
echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5990
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
5991
 
echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
5992
 
    ac_header_preproc=yes
5993
 
    ;;
5994
 
  no:yes:* )
5995
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
5996
 
echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
5997
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
5998
 
echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
5999
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
6000
 
echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
6001
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
6002
 
echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6003
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
6004
 
echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
6005
 
    { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
6006
 
echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
6007
 
 
6008
 
    ;;
6009
 
esac
6010
 
{ echo "$as_me:$LINENO: checking for langinfo.h" >&5
6011
 
echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
6012
 
if test "${ac_cv_header_langinfo_h+set}" = set; then
6013
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6014
 
else
6015
 
  ac_cv_header_langinfo_h=$ac_header_preproc
6016
 
fi
6017
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
6018
 
echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
6019
 
 
6020
 
fi
6021
 
if test $ac_cv_header_langinfo_h = yes; then
6022
 
  cat >>confdefs.h <<\_ACEOF
6023
 
#define HAVE_LANGINFO_H 1
6024
 
_ACEOF
 
4991
if test "$ac_res" != no; then :
 
4992
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4993
 
 
4994
fi
 
4995
 
 
4996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
 
4997
$as_echo_n "checking for library containing clock_gettime... " >&6; }
 
4998
if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
4999
  $as_echo_n "(cached) " >&6
 
5000
else
 
5001
  ac_func_search_save_LIBS=$LIBS
 
5002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5003
/* end confdefs.h.  */
 
5004
 
 
5005
/* Override any GCC internal prototype to avoid an error.
 
5006
   Use char because int might match the return type of a GCC
 
5007
   builtin and then its argument prototype would still apply.  */
 
5008
#ifdef __cplusplus
 
5009
extern "C"
 
5010
#endif
 
5011
char clock_gettime ();
 
5012
int
 
5013
main ()
 
5014
{
 
5015
return clock_gettime ();
 
5016
  ;
 
5017
  return 0;
 
5018
}
 
5019
_ACEOF
 
5020
for ac_lib in '' rt; do
 
5021
  if test -z "$ac_lib"; then
 
5022
    ac_res="none required"
 
5023
  else
 
5024
    ac_res=-l$ac_lib
 
5025
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5026
  fi
 
5027
  if ac_fn_c_try_link "$LINENO"; then :
 
5028
  ac_cv_search_clock_gettime=$ac_res
 
5029
fi
 
5030
rm -f core conftest.err conftest.$ac_objext \
 
5031
    conftest$ac_exeext
 
5032
  if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
5033
  break
 
5034
fi
 
5035
done
 
5036
if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
5037
 
 
5038
else
 
5039
  ac_cv_search_clock_gettime=no
 
5040
fi
 
5041
rm conftest.$ac_ext
 
5042
LIBS=$ac_func_search_save_LIBS
 
5043
fi
 
5044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
 
5045
$as_echo "$ac_cv_search_clock_gettime" >&6; }
 
5046
ac_res=$ac_cv_search_clock_gettime
 
5047
if test "$ac_res" != no; then :
 
5048
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5049
 
 
5050
fi
 
5051
 
 
5052
 
 
5053
ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
 
5054
if test "x$ac_cv_header_sys_select_h" = x""yes; then :
 
5055
  $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
 
5056
 
 
5057
fi
 
5058
 
 
5059
 
 
5060
ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
 
5061
if test "x$ac_cv_header_sys_modem_h" = x""yes; then :
 
5062
  $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
 
5063
 
 
5064
fi
 
5065
 
 
5066
 
 
5067
ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
 
5068
if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
 
5069
  $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
 
5070
 
 
5071
fi
 
5072
 
 
5073
 
 
5074
ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
 
5075
if test "x$ac_cv_header_sys_strtio_h" = x""yes; then :
 
5076
  $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
 
5077
 
 
5078
fi
 
5079
 
 
5080
 
 
5081
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
5082
if test "x$ac_cv_header_locale_h" = x""yes; then :
 
5083
  $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
 
5084
 
 
5085
fi
 
5086
 
 
5087
 
 
5088
ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
 
5089
if test "x$ac_cv_header_langinfo_h" = x""yes; then :
 
5090
  $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
6025
5091
 
6026
5092
fi
6027
5093
 
6030
5096
if test -n "$ac_tool_prefix"; then
6031
5097
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032
5098
set dummy ${ac_tool_prefix}strip; ac_word=$2
6033
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6036
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5100
$as_echo_n "checking for $ac_word... " >&6; }
 
5101
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5102
  $as_echo_n "(cached) " >&6
6037
5103
else
6038
5104
  if test -n "$STRIP"; then
6039
5105
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6043
5109
do
6044
5110
  IFS=$as_save_IFS
6045
5111
  test -z "$as_dir" && as_dir=.
6046
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5112
    for ac_exec_ext in '' $ac_executable_extensions; do
6047
5113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048
5114
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5115
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050
5116
    break 2
6051
5117
  fi
6052
5118
done
6053
 
done
 
5119
  done
6054
5120
IFS=$as_save_IFS
6055
5121
 
6056
5122
fi
6057
5123
fi
6058
5124
STRIP=$ac_cv_prog_STRIP
6059
5125
if test -n "$STRIP"; then
6060
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6061
 
echo "${ECHO_T}$STRIP" >&6; }
 
5126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5127
$as_echo "$STRIP" >&6; }
6062
5128
else
6063
 
  { echo "$as_me:$LINENO: result: no" >&5
6064
 
echo "${ECHO_T}no" >&6; }
 
5129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5130
$as_echo "no" >&6; }
6065
5131
fi
6066
5132
 
6067
5133
 
6070
5136
  ac_ct_STRIP=$STRIP
6071
5137
  # Extract the first word of "strip", so it can be a program name with args.
6072
5138
set dummy strip; ac_word=$2
6073
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6076
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5140
$as_echo_n "checking for $ac_word... " >&6; }
 
5141
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5142
  $as_echo_n "(cached) " >&6
6077
5143
else
6078
5144
  if test -n "$ac_ct_STRIP"; then
6079
5145
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6083
5149
do
6084
5150
  IFS=$as_save_IFS
6085
5151
  test -z "$as_dir" && as_dir=.
6086
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5152
    for ac_exec_ext in '' $ac_executable_extensions; do
6087
5153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088
5154
    ac_cv_prog_ac_ct_STRIP="strip"
6089
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090
5156
    break 2
6091
5157
  fi
6092
5158
done
6093
 
done
 
5159
  done
6094
5160
IFS=$as_save_IFS
6095
5161
 
6096
5162
fi
6097
5163
fi
6098
5164
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099
5165
if test -n "$ac_ct_STRIP"; then
6100
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6101
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
5166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5167
$as_echo "$ac_ct_STRIP" >&6; }
6102
5168
else
6103
 
  { echo "$as_me:$LINENO: result: no" >&5
6104
 
echo "${ECHO_T}no" >&6; }
 
5169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5170
$as_echo "no" >&6; }
6105
5171
fi
6106
5172
 
6107
5173
  if test "x$ac_ct_STRIP" = x; then
6109
5175
  else
6110
5176
    case $cross_compiling:$ac_tool_warned in
6111
5177
yes:)
6112
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113
 
whose name does not start with the host triplet.  If you think this
6114
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6115
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116
 
whose name does not start with the host triplet.  If you think this
6117
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118
5180
ac_tool_warned=yes ;;
6119
5181
esac
6120
5182
    STRIP=$ac_ct_STRIP
6126
5188
 
6127
5189
 
6128
5190
 
 
5191
 
 
5192
 
 
5193
 
6129
5194
rpath=""
6130
5195
 
6131
5196
#
6138
5203
    fi
6139
5204
    return 1
6140
5205
}
6141
 
{ echo "$as_me:$LINENO: checking for OpenSSL directory" >&5
6142
 
echo $ECHO_N "checking for OpenSSL directory... $ECHO_C" >&6; }
 
5206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
 
5207
$as_echo_n "checking for OpenSSL directory... " >&6; }
6143
5208
 
6144
5209
# Check whether --with-openssl was given.
6145
 
if test "${with_openssl+set}" = set; then
 
5210
if test "${with_openssl+set}" = set; then :
6146
5211
  withval=$with_openssl;
6147
5212
                checkssldir "$withval"
6148
5213
 
6158
5223
fi
6159
5224
 
6160
5225
if test -z "$ssldir"; then
6161
 
    { echo "$as_me:$LINENO: result: Not found" >&5
6162
 
echo "${ECHO_T}Not found" >&6; }
 
5226
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
 
5227
$as_echo "Not found" >&6; }
6163
5228
    echo
6164
5229
    echo "ERROR: Could not find OpenSSL headers/libraries."
6165
5230
    if test -f /etc/debian_version; then
6171
5236
    echo
6172
5237
    exit 1
6173
5238
fi
6174
 
{ echo "$as_me:$LINENO: result: $ssldir" >&5
6175
 
echo "${ECHO_T}$ssldir" >&6; }
 
5239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
 
5240
$as_echo "$ssldir" >&6; }
6176
5241
 
6177
5242
cat >>confdefs.h <<_ACEOF
6178
5243
#define ssldir "$ssldir"
6181
5246
 
6182
5247
CFLAGS="$CFLAGS -I$ssldir/include"
6183
5248
# Check whether --enable-static-openssl was given.
6184
 
if test "${enable_static_openssl+set}" = set; then
 
5249
if test "${enable_static_openssl+set}" = set; then :
6185
5250
  enableval=$enable_static_openssl;
6186
5251
LIBS="$LIBS $ssldir/lib/libcrypto.a"
6187
5252
 
6193
5258
fi
6194
5259
 
6195
5260
 
6196
 
 
6197
 
 
6198
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6199
 
        if test -n "$ac_tool_prefix"; then
6200
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6201
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6202
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6203
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6206
 
else
6207
 
  case $PKG_CONFIG in
6208
 
  [\\/]* | ?:[\\/]*)
6209
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6210
 
  ;;
6211
 
  *)
6212
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213
 
for as_dir in $PATH
6214
 
do
6215
 
  IFS=$as_save_IFS
6216
 
  test -z "$as_dir" && as_dir=.
6217
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6218
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6220
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221
 
    break 2
6222
 
  fi
6223
 
done
6224
 
done
6225
 
IFS=$as_save_IFS
6226
 
 
6227
 
  ;;
6228
 
esac
6229
 
fi
6230
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6231
 
if test -n "$PKG_CONFIG"; then
6232
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6233
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
6234
 
else
6235
 
  { echo "$as_me:$LINENO: result: no" >&5
6236
 
echo "${ECHO_T}no" >&6; }
6237
 
fi
6238
 
 
6239
 
 
6240
 
fi
6241
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
6242
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
6243
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
6244
 
set dummy pkg-config; ac_word=$2
6245
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6246
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6249
 
else
6250
 
  case $ac_pt_PKG_CONFIG in
6251
 
  [\\/]* | ?:[\\/]*)
6252
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6253
 
  ;;
6254
 
  *)
6255
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256
 
for as_dir in $PATH
6257
 
do
6258
 
  IFS=$as_save_IFS
6259
 
  test -z "$as_dir" && as_dir=.
6260
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6261
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6263
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264
 
    break 2
6265
 
  fi
6266
 
done
6267
 
done
6268
 
IFS=$as_save_IFS
6269
 
 
6270
 
  ;;
6271
 
esac
6272
 
fi
6273
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6274
 
if test -n "$ac_pt_PKG_CONFIG"; then
6275
 
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6276
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6277
 
else
6278
 
  { echo "$as_me:$LINENO: result: no" >&5
6279
 
echo "${ECHO_T}no" >&6; }
6280
 
fi
6281
 
 
6282
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
6283
 
    PKG_CONFIG=""
6284
 
  else
6285
 
    case $cross_compiling:$ac_tool_warned in
6286
 
yes:)
6287
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288
 
whose name does not start with the host triplet.  If you think this
6289
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6290
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291
 
whose name does not start with the host triplet.  If you think this
6292
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6293
 
ac_tool_warned=yes ;;
6294
 
esac
6295
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
6296
 
  fi
6297
 
else
6298
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6299
 
fi
6300
 
 
6301
 
fi
6302
 
if test -n "$PKG_CONFIG"; then
6303
 
        _pkg_min_version=0.9.0
6304
 
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6305
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6306
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6307
 
                { echo "$as_me:$LINENO: result: yes" >&5
6308
 
echo "${ECHO_T}yes" >&6; }
6309
 
        else
6310
 
                { echo "$as_me:$LINENO: result: no" >&5
6311
 
echo "${ECHO_T}no" >&6; }
6312
 
                PKG_CONFIG=""
6313
 
        fi
6314
 
 
6315
 
fi
6316
5261
# Check whether --enable-smartcard was given.
6317
 
if test "${enable_smartcard+set}" = set; then
 
5262
if test "${enable_smartcard+set}" = set; then :
6318
5263
  enableval=$enable_smartcard;
6319
5264
                case "$OSTYPE" in
6320
5265
                        darwin*)
6321
 
                                if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
6322
 
  { echo "$as_me:$LINENO: checking for PCSC/pcsclite.h" >&5
6323
 
echo $ECHO_N "checking for PCSC/pcsclite.h... $ECHO_C" >&6; }
6324
 
if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
6325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6326
 
fi
6327
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_PCSC_pcsclite_h" >&5
6328
 
echo "${ECHO_T}$ac_cv_header_PCSC_pcsclite_h" >&6; }
6329
 
else
6330
 
  # Is the header compilable?
6331
 
{ echo "$as_me:$LINENO: checking PCSC/pcsclite.h usability" >&5
6332
 
echo $ECHO_N "checking PCSC/pcsclite.h usability... $ECHO_C" >&6; }
6333
 
cat >conftest.$ac_ext <<_ACEOF
6334
 
/* confdefs.h.  */
6335
 
_ACEOF
6336
 
cat confdefs.h >>conftest.$ac_ext
6337
 
cat >>conftest.$ac_ext <<_ACEOF
6338
 
/* end confdefs.h.  */
6339
 
$ac_includes_default
6340
 
#include <PCSC/pcsclite.h>
6341
 
_ACEOF
6342
 
rm -f conftest.$ac_objext
6343
 
if { (ac_try="$ac_compile"
6344
 
case "(($ac_try" in
6345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346
 
  *) ac_try_echo=$ac_try;;
6347
 
esac
6348
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349
 
  (eval "$ac_compile") 2>conftest.er1
6350
 
  ac_status=$?
6351
 
  grep -v '^ *+' conftest.er1 >conftest.err
6352
 
  rm -f conftest.er1
6353
 
  cat conftest.err >&5
6354
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355
 
  (exit $ac_status); } && {
6356
 
         test -z "$ac_c_werror_flag" ||
6357
 
         test ! -s conftest.err
6358
 
       } && test -s conftest.$ac_objext; then
6359
 
  ac_header_compiler=yes
6360
 
else
6361
 
  echo "$as_me: failed program was:" >&5
6362
 
sed 's/^/| /' conftest.$ac_ext >&5
6363
 
 
6364
 
        ac_header_compiler=no
6365
 
fi
6366
 
 
6367
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6369
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6370
 
 
6371
 
# Is the header present?
6372
 
{ echo "$as_me:$LINENO: checking PCSC/pcsclite.h presence" >&5
6373
 
echo $ECHO_N "checking PCSC/pcsclite.h presence... $ECHO_C" >&6; }
6374
 
cat >conftest.$ac_ext <<_ACEOF
6375
 
/* confdefs.h.  */
6376
 
_ACEOF
6377
 
cat confdefs.h >>conftest.$ac_ext
6378
 
cat >>conftest.$ac_ext <<_ACEOF
6379
 
/* end confdefs.h.  */
6380
 
#include <PCSC/pcsclite.h>
6381
 
_ACEOF
6382
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6383
 
case "(($ac_try" in
6384
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385
 
  *) ac_try_echo=$ac_try;;
6386
 
esac
6387
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6389
 
  ac_status=$?
6390
 
  grep -v '^ *+' conftest.er1 >conftest.err
6391
 
  rm -f conftest.er1
6392
 
  cat conftest.err >&5
6393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394
 
  (exit $ac_status); } >/dev/null && {
6395
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6396
 
         test ! -s conftest.err
6397
 
       }; then
6398
 
  ac_header_preproc=yes
6399
 
else
6400
 
  echo "$as_me: failed program was:" >&5
6401
 
sed 's/^/| /' conftest.$ac_ext >&5
6402
 
 
6403
 
  ac_header_preproc=no
6404
 
fi
6405
 
 
6406
 
rm -f conftest.err conftest.$ac_ext
6407
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6408
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6409
 
 
6410
 
# So?  What about this header?
6411
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6412
 
  yes:no: )
6413
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: accepted by the compiler, rejected by the preprocessor!" >&5
6414
 
echo "$as_me: WARNING: PCSC/pcsclite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6415
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: proceeding with the compiler's result" >&5
6416
 
echo "$as_me: WARNING: PCSC/pcsclite.h: proceeding with the compiler's result" >&2;}
6417
 
    ac_header_preproc=yes
6418
 
    ;;
6419
 
  no:yes:* )
6420
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: present but cannot be compiled" >&5
6421
 
echo "$as_me: WARNING: PCSC/pcsclite.h: present but cannot be compiled" >&2;}
6422
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h:     check for missing prerequisite headers?" >&5
6423
 
echo "$as_me: WARNING: PCSC/pcsclite.h:     check for missing prerequisite headers?" >&2;}
6424
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: see the Autoconf documentation" >&5
6425
 
echo "$as_me: WARNING: PCSC/pcsclite.h: see the Autoconf documentation" >&2;}
6426
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h:     section \"Present But Cannot Be Compiled\"" >&5
6427
 
echo "$as_me: WARNING: PCSC/pcsclite.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6428
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: proceeding with the preprocessor's result" >&5
6429
 
echo "$as_me: WARNING: PCSC/pcsclite.h: proceeding with the preprocessor's result" >&2;}
6430
 
    { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: in the future, the compiler will take precedence" >&5
6431
 
echo "$as_me: WARNING: PCSC/pcsclite.h: in the future, the compiler will take precedence" >&2;}
6432
 
 
6433
 
    ;;
6434
 
esac
6435
 
{ echo "$as_me:$LINENO: checking for PCSC/pcsclite.h" >&5
6436
 
echo $ECHO_N "checking for PCSC/pcsclite.h... $ECHO_C" >&6; }
6437
 
if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
6438
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6439
 
else
6440
 
  ac_cv_header_PCSC_pcsclite_h=$ac_header_preproc
6441
 
fi
6442
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_PCSC_pcsclite_h" >&5
6443
 
echo "${ECHO_T}$ac_cv_header_PCSC_pcsclite_h" >&6; }
6444
 
 
6445
 
fi
6446
 
if test $ac_cv_header_PCSC_pcsclite_h = yes; then
 
5266
                                ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
 
5267
if test "x$ac_cv_header_PCSC_pcsclite_h" = x""yes; then :
6447
5268
  WITH_SCARD=1
6448
5269
else
6449
5270
  WITH_SCARD=0
6456
5277
                        *)
6457
5278
                                if test -n "$PKG_CONFIG"; then
6458
5279
 
6459
 
pkg_failed=no
6460
 
{ echo "$as_me:$LINENO: checking for PCSCLITE" >&5
6461
 
echo $ECHO_N "checking for PCSCLITE... $ECHO_C" >&6; }
6462
 
 
6463
 
if test -n "$PKG_CONFIG"; then
6464
 
    if test -n "$PCSCLITE_CFLAGS"; then
6465
 
        pkg_cv_PCSCLITE_CFLAGS="$PCSCLITE_CFLAGS"
6466
 
    else
6467
 
        if test -n "$PKG_CONFIG" && \
6468
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
6469
 
  ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
6470
 
  ac_status=$?
6471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472
 
  (exit $ac_status); }; then
6473
 
  pkg_cv_PCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
6474
 
else
6475
 
  pkg_failed=yes
6476
 
fi
6477
 
    fi
6478
 
else
6479
 
        pkg_failed=untried
6480
 
fi
6481
 
if test -n "$PKG_CONFIG"; then
6482
 
    if test -n "$PCSCLITE_LIBS"; then
6483
 
        pkg_cv_PCSCLITE_LIBS="$PCSCLITE_LIBS"
6484
 
    else
6485
 
        if test -n "$PKG_CONFIG" && \
6486
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
6487
 
  ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
6488
 
  ac_status=$?
6489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490
 
  (exit $ac_status); }; then
6491
 
  pkg_cv_PCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
6492
 
else
6493
 
  pkg_failed=yes
6494
 
fi
6495
 
    fi
6496
 
else
6497
 
        pkg_failed=untried
6498
 
fi
6499
 
 
6500
 
 
6501
 
 
6502
 
if test $pkg_failed = yes; then
6503
 
 
6504
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6505
 
        _pkg_short_errors_supported=yes
6506
 
else
6507
 
        _pkg_short_errors_supported=no
6508
 
fi
6509
 
        if test $_pkg_short_errors_supported = yes; then
6510
 
                PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcsclite"`
6511
 
        else
6512
 
                PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcsclite"`
6513
 
        fi
6514
 
        # Put the nasty error message in config.log where it belongs
6515
 
        echo "$PCSCLITE_PKG_ERRORS" >&5
6516
 
 
6517
 
        { echo "$as_me:$LINENO: result: no" >&5
6518
 
echo "${ECHO_T}no" >&6; }
6519
 
                WITH_SCARD=0
6520
 
elif test $pkg_failed = untried; then
6521
 
        WITH_SCARD=0
6522
 
else
6523
 
        PCSCLITE_CFLAGS=$pkg_cv_PCSCLITE_CFLAGS
6524
 
        PCSCLITE_LIBS=$pkg_cv_PCSCLITE_LIBS
6525
 
        { echo "$as_me:$LINENO: result: yes" >&5
6526
 
echo "${ECHO_T}yes" >&6; }
6527
 
        WITH_SCARD=1
6528
 
fi
 
5280
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for libpcsclite" >&5
 
5281
$as_echo "$as_me: WARNING: pkg-config not available, cannot check for libpcsclite" >&2;}
 
5282
                        WITH_SCARD=0
 
5283
 
6529
5284
                                fi
6530
5285
                                ;;
6531
5286
                esac
6534
5289
                        SCARDOBJ="scard.o"
6535
5290
                        CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
6536
5291
                        LIBS="$LIBS $PCSCLITE_LIBS"
6537
 
                        cat >>confdefs.h <<\_ACEOF
6538
 
#define WITH_SCARD 1
6539
 
_ACEOF
 
5292
                        $as_echo "#define WITH_SCARD 1" >>confdefs.h
6540
5293
 
6541
5294
                fi
6542
5295
 
6543
 
                { echo "$as_me:$LINENO: checking for old version of PCSC" >&5
6544
 
echo $ECHO_N "checking for old version of PCSC... $ECHO_C" >&6; }
6545
 
                cat >conftest.$ac_ext <<_ACEOF
6546
 
/* confdefs.h.  */
6547
 
_ACEOF
6548
 
cat confdefs.h >>conftest.$ac_ext
6549
 
cat >>conftest.$ac_ext <<_ACEOF
 
5296
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
 
5297
$as_echo_n "checking for old version of PCSC... " >&6; }
 
5298
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550
5299
/* end confdefs.h.  */
6551
5300
 
6552
5301
                        #include <stdlib.h>
6565
5314
  return 0;
6566
5315
}
6567
5316
_ACEOF
6568
 
rm -f conftest.$ac_objext conftest$ac_exeext
6569
 
if { (ac_try="$ac_link"
6570
 
case "(($ac_try" in
6571
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572
 
  *) ac_try_echo=$ac_try;;
6573
 
esac
6574
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575
 
  (eval "$ac_link") 2>conftest.er1
6576
 
  ac_status=$?
6577
 
  grep -v '^ *+' conftest.er1 >conftest.err
6578
 
  rm -f conftest.er1
6579
 
  cat conftest.err >&5
6580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581
 
  (exit $ac_status); } && {
6582
 
         test -z "$ac_c_werror_flag" ||
6583
 
         test ! -s conftest.err
6584
 
       } && test -s conftest$ac_exeext &&
6585
 
       $as_test_x conftest$ac_exeext; then
6586
 
  { echo "$as_me:$LINENO: result: yes" >&5
6587
 
echo "${ECHO_T}yes" >&6; }
6588
 
cat >>confdefs.h <<\_ACEOF
6589
 
#define WITH_PCSC120 1
6590
 
_ACEOF
 
5317
if ac_fn_c_try_link "$LINENO"; then :
 
5318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5319
$as_echo "yes" >&6; }
 
5320
$as_echo "#define WITH_PCSC120 1" >>confdefs.h
6591
5321
 
6592
5322
else
6593
 
  echo "$as_me: failed program was:" >&5
6594
 
sed 's/^/| /' conftest.$ac_ext >&5
6595
 
 
6596
 
        { echo "$as_me:$LINENO: result: no" >&5
6597
 
echo "${ECHO_T}no" >&6; }
 
5323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5324
$as_echo "no" >&6; }
6598
5325
 
6599
5326
fi
6600
 
 
6601
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6602
 
      conftest$ac_exeext conftest.$ac_ext
 
5327
rm -f core conftest.err conftest.$ac_objext \
 
5328
    conftest$ac_exeext conftest.$ac_ext
6603
5329
 
6604
5330
fi
6605
5331
 
6609
5335
#
6610
5336
# Alignment
6611
5337
#
6612
 
{ echo "$as_me:$LINENO: checking if architecture needs alignment" >&5
6613
 
echo $ECHO_N "checking if architecture needs alignment... $ECHO_C" >&6; }
6614
 
if test "$cross_compiling" = yes; then
6615
 
  { echo "$as_me:$LINENO: result: assuming yes" >&5
6616
 
echo "${ECHO_T}assuming yes" >&6; }
6617
 
  cat >>confdefs.h <<\_ACEOF
6618
 
#define NEED_ALIGN 1
6619
 
_ACEOF
 
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
 
5339
$as_echo_n "checking if architecture needs alignment... " >&6; }
 
5340
if test "$cross_compiling" = yes; then :
 
5341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
 
5342
$as_echo "assuming yes" >&6; }
 
5343
  $as_echo "#define NEED_ALIGN 1" >>confdefs.h
6620
5344
 
6621
5345
else
6622
 
  cat >conftest.$ac_ext <<_ACEOF
6623
 
/* confdefs.h.  */
6624
 
_ACEOF
6625
 
cat confdefs.h >>conftest.$ac_ext
6626
 
cat >>conftest.$ac_ext <<_ACEOF
 
5346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627
5347
/* end confdefs.h.  */
6628
5348
 
6629
5349
#include <stdlib.h>
6640
5360
        return 0;
6641
5361
}
6642
5362
_ACEOF
6643
 
rm -f conftest$ac_exeext
6644
 
if { (ac_try="$ac_link"
6645
 
case "(($ac_try" in
6646
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647
 
  *) ac_try_echo=$ac_try;;
6648
 
esac
6649
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650
 
  (eval "$ac_link") 2>&5
6651
 
  ac_status=$?
6652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6654
 
  { (case "(($ac_try" in
6655
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656
 
  *) ac_try_echo=$ac_try;;
6657
 
esac
6658
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659
 
  (eval "$ac_try") 2>&5
6660
 
  ac_status=$?
6661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662
 
  (exit $ac_status); }; }; then
6663
 
  { echo "$as_me:$LINENO: result: no" >&5
6664
 
echo "${ECHO_T}no" >&6; }
 
5363
if ac_fn_c_try_run "$LINENO"; then :
 
5364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5365
$as_echo "no" >&6; }
6665
5366
else
6666
 
  echo "$as_me: program exited with status $ac_status" >&5
6667
 
echo "$as_me: failed program was:" >&5
6668
 
sed 's/^/| /' conftest.$ac_ext >&5
6669
 
 
6670
 
( exit $ac_status )
6671
 
{ echo "$as_me:$LINENO: result: yes" >&5
6672
 
echo "${ECHO_T}yes" >&6; }
6673
 
  cat >>confdefs.h <<\_ACEOF
6674
 
#define NEED_ALIGN 1
6675
 
_ACEOF
6676
 
 
6677
 
fi
6678
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6679
 
fi
6680
 
 
 
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5368
$as_echo "yes" >&6; }
 
5369
  $as_echo "#define NEED_ALIGN 1" >>confdefs.h
 
5370
 
 
5371
fi
 
5372
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5373
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5374
fi
6681
5375
 
6682
5376
 
6683
5377
#
6684
5378
# linux/compiler.h
6685
5379
#
6686
 
echo "$as_me:$LINENO: checking if linux/compiler.h is required" >&5
6687
 
echo $ECHO_N "checking if linux/compiler.h is required... $ECHO_C" >&6
6688
 
cat >conftest.$ac_ext <<_ACEOF
6689
 
/* confdefs.h.  */
6690
 
_ACEOF
6691
 
cat confdefs.h >>conftest.$ac_ext
6692
 
cat >>conftest.$ac_ext <<_ACEOF
 
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linux/compiler.h is required" >&5
 
5381
$as_echo_n "checking if linux/compiler.h is required... " >&6; }
 
5382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693
5383
/* end confdefs.h.  */
6694
5384
 
6695
5385
#include <linux/compiler.h>
6702
5392
  return 0;
6703
5393
}
6704
5394
_ACEOF
6705
 
rm -f conftest.$ac_objext
6706
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707
 
  (eval $ac_compile) 2>conftest.er1
6708
 
  ac_status=$?
6709
 
  grep -v '^ *+' conftest.er1 >conftest.err
6710
 
  rm -f conftest.er1
6711
 
  cat conftest.err >&5
6712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713
 
  (exit $ac_status); } &&
6714
 
        { ac_try='test -z "$ac_c_werror_flag"
6715
 
                        || test ! -s conftest.err'
6716
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717
 
  (eval $ac_try) 2>&5
6718
 
  ac_status=$?
6719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
 
  (exit $ac_status); }; } &&
6721
 
        { ac_try='test -s conftest.$ac_objext'
6722
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723
 
  (eval $ac_try) 2>&5
6724
 
  ac_status=$?
6725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
 
  (exit $ac_status); }; }; then
6727
 
  echo "$as_me:$LINENO: result: yes" >&5
6728
 
echo "${ECHO_T}yes" >&6
6729
 
  cat >>confdefs.h <<\_ACEOF
6730
 
#define VBOX_WITH_LINUX_COMPILER_H 1
6731
 
_ACEOF
 
5395
if ac_fn_c_try_compile "$LINENO"; then :
 
5396
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5397
$as_echo "yes" >&6; }
 
5398
 $as_echo "#define VBOX_WITH_LINUX_COMPILER_H 1" >>confdefs.h
6732
5399
 
6733
5400
else
6734
 
  echo "$as_me: failed program was:" >&5
6735
 
sed 's/^/| /' conftest.$ac_ext >&5
6736
 
 
6737
 
echo "$as_me:$LINENO: result: no" >&5
6738
 
echo "${ECHO_T}no" >&6
6739
 
 
 
5401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5402
$as_echo "no" >&6; }
6740
5403
fi
6741
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6742
 
 
 
5404
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743
5405
 
6744
5406
 
6745
5407
#
6747
5409
#
6748
5410
 
6749
5411
# Check whether --with-egd-socket was given.
6750
 
if test "${with_egd_socket+set}" = set; then
 
5412
if test "${with_egd_socket+set}" = set; then :
6751
5413
  withval=$with_egd_socket; EGD_SOCKET="$withval"
6752
5414
else
6753
5415
  EGD_SOCKET="/var/run/egd-pool"
6766
5428
vncserverconfig=libvncserver-config
6767
5429
 
6768
5430
# Check whether --with-libvncserver-config was given.
6769
 
if test "${with_libvncserver_config+set}" = set; then
 
5431
if test "${with_libvncserver_config+set}" = set; then :
6770
5432
  withval=$with_libvncserver_config; vncserverconfig="$withval"
6771
5433
 
6772
5434
fi
6773
5435
 
6774
5436
 
6775
5437
# Check whether --with-libvncserver was given.
6776
 
if test "${with_libvncserver+set}" = set; then
 
5438
if test "${with_libvncserver+set}" = set; then :
6777
5439
  withval=$with_libvncserver;
6778
5440
    VNCINC=`$vncserverconfig --cflags`
6779
5441
 
6795
5457
sound="yes"
6796
5458
 
6797
5459
# Check whether --with-sound was given.
6798
 
if test "${with_sound+set}" = set; then
 
5460
if test "${with_sound+set}" = set; then :
6799
5461
  withval=$with_sound;
6800
5462
    sound="$withval"
6801
5463
 
6802
5464
fi
6803
5465
 
6804
5466
 
6805
 
if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6806
 
  { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
6807
 
echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
6808
 
if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6810
 
fi
6811
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
6812
 
echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
6813
 
else
6814
 
  # Is the header compilable?
6815
 
{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
6816
 
echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
6817
 
cat >conftest.$ac_ext <<_ACEOF
6818
 
/* confdefs.h.  */
6819
 
_ACEOF
6820
 
cat confdefs.h >>conftest.$ac_ext
6821
 
cat >>conftest.$ac_ext <<_ACEOF
6822
 
/* end confdefs.h.  */
6823
 
$ac_includes_default
6824
 
#include <sys/soundcard.h>
6825
 
_ACEOF
6826
 
rm -f conftest.$ac_objext
6827
 
if { (ac_try="$ac_compile"
6828
 
case "(($ac_try" in
6829
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830
 
  *) ac_try_echo=$ac_try;;
6831
 
esac
6832
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833
 
  (eval "$ac_compile") 2>conftest.er1
6834
 
  ac_status=$?
6835
 
  grep -v '^ *+' conftest.er1 >conftest.err
6836
 
  rm -f conftest.er1
6837
 
  cat conftest.err >&5
6838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839
 
  (exit $ac_status); } && {
6840
 
         test -z "$ac_c_werror_flag" ||
6841
 
         test ! -s conftest.err
6842
 
       } && test -s conftest.$ac_objext; then
6843
 
  ac_header_compiler=yes
6844
 
else
6845
 
  echo "$as_me: failed program was:" >&5
6846
 
sed 's/^/| /' conftest.$ac_ext >&5
6847
 
 
6848
 
        ac_header_compiler=no
6849
 
fi
6850
 
 
6851
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6853
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6854
 
 
6855
 
# Is the header present?
6856
 
{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
6857
 
echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
6858
 
cat >conftest.$ac_ext <<_ACEOF
6859
 
/* confdefs.h.  */
6860
 
_ACEOF
6861
 
cat confdefs.h >>conftest.$ac_ext
6862
 
cat >>conftest.$ac_ext <<_ACEOF
6863
 
/* end confdefs.h.  */
6864
 
#include <sys/soundcard.h>
6865
 
_ACEOF
6866
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6867
 
case "(($ac_try" in
6868
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869
 
  *) ac_try_echo=$ac_try;;
6870
 
esac
6871
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6873
 
  ac_status=$?
6874
 
  grep -v '^ *+' conftest.er1 >conftest.err
6875
 
  rm -f conftest.er1
6876
 
  cat conftest.err >&5
6877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878
 
  (exit $ac_status); } >/dev/null && {
6879
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6880
 
         test ! -s conftest.err
6881
 
       }; then
6882
 
  ac_header_preproc=yes
6883
 
else
6884
 
  echo "$as_me: failed program was:" >&5
6885
 
sed 's/^/| /' conftest.$ac_ext >&5
6886
 
 
6887
 
  ac_header_preproc=no
6888
 
fi
6889
 
 
6890
 
rm -f conftest.err conftest.$ac_ext
6891
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6892
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6893
 
 
6894
 
# So?  What about this header?
6895
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6896
 
  yes:no: )
6897
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
6898
 
echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6899
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
6900
 
echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
6901
 
    ac_header_preproc=yes
6902
 
    ;;
6903
 
  no:yes:* )
6904
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
6905
 
echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
6906
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
6907
 
echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
6908
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
6909
 
echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
6910
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
6911
 
echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6912
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
6913
 
echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
6914
 
    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
6915
 
echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
6916
 
 
6917
 
    ;;
6918
 
esac
6919
 
{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
6920
 
echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
6921
 
if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6922
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6923
 
else
6924
 
  ac_cv_header_sys_soundcard_h=$ac_header_preproc
6925
 
fi
6926
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
6927
 
echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
6928
 
 
6929
 
fi
6930
 
if test $ac_cv_header_sys_soundcard_h = yes; then
 
5467
ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
 
5468
if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
6931
5469
  HAVE_OSS=1
6932
5470
else
6933
5471
  HAVE_OSS=0
6934
5472
fi
6935
5473
 
6936
5474
 
6937
 
if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
6938
 
  { echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
6939
 
echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6; }
6940
 
if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
6941
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6942
 
fi
6943
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
6944
 
echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6; }
6945
 
else
6946
 
  # Is the header compilable?
6947
 
{ echo "$as_me:$LINENO: checking dmedia/audio.h usability" >&5
6948
 
echo $ECHO_N "checking dmedia/audio.h usability... $ECHO_C" >&6; }
6949
 
cat >conftest.$ac_ext <<_ACEOF
6950
 
/* confdefs.h.  */
6951
 
_ACEOF
6952
 
cat confdefs.h >>conftest.$ac_ext
6953
 
cat >>conftest.$ac_ext <<_ACEOF
6954
 
/* end confdefs.h.  */
6955
 
$ac_includes_default
6956
 
#include <dmedia/audio.h>
6957
 
_ACEOF
6958
 
rm -f conftest.$ac_objext
6959
 
if { (ac_try="$ac_compile"
6960
 
case "(($ac_try" in
6961
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962
 
  *) ac_try_echo=$ac_try;;
6963
 
esac
6964
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965
 
  (eval "$ac_compile") 2>conftest.er1
6966
 
  ac_status=$?
6967
 
  grep -v '^ *+' conftest.er1 >conftest.err
6968
 
  rm -f conftest.er1
6969
 
  cat conftest.err >&5
6970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971
 
  (exit $ac_status); } && {
6972
 
         test -z "$ac_c_werror_flag" ||
6973
 
         test ! -s conftest.err
6974
 
       } && test -s conftest.$ac_objext; then
6975
 
  ac_header_compiler=yes
6976
 
else
6977
 
  echo "$as_me: failed program was:" >&5
6978
 
sed 's/^/| /' conftest.$ac_ext >&5
6979
 
 
6980
 
        ac_header_compiler=no
6981
 
fi
6982
 
 
6983
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6985
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6986
 
 
6987
 
# Is the header present?
6988
 
{ echo "$as_me:$LINENO: checking dmedia/audio.h presence" >&5
6989
 
echo $ECHO_N "checking dmedia/audio.h presence... $ECHO_C" >&6; }
6990
 
cat >conftest.$ac_ext <<_ACEOF
6991
 
/* confdefs.h.  */
6992
 
_ACEOF
6993
 
cat confdefs.h >>conftest.$ac_ext
6994
 
cat >>conftest.$ac_ext <<_ACEOF
6995
 
/* end confdefs.h.  */
6996
 
#include <dmedia/audio.h>
6997
 
_ACEOF
6998
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6999
 
case "(($ac_try" in
7000
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001
 
  *) ac_try_echo=$ac_try;;
7002
 
esac
7003
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7005
 
  ac_status=$?
7006
 
  grep -v '^ *+' conftest.er1 >conftest.err
7007
 
  rm -f conftest.er1
7008
 
  cat conftest.err >&5
7009
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010
 
  (exit $ac_status); } >/dev/null && {
7011
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7012
 
         test ! -s conftest.err
7013
 
       }; then
7014
 
  ac_header_preproc=yes
7015
 
else
7016
 
  echo "$as_me: failed program was:" >&5
7017
 
sed 's/^/| /' conftest.$ac_ext >&5
7018
 
 
7019
 
  ac_header_preproc=no
7020
 
fi
7021
 
 
7022
 
rm -f conftest.err conftest.$ac_ext
7023
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7024
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
7025
 
 
7026
 
# So?  What about this header?
7027
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7028
 
  yes:no: )
7029
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7030
 
echo "$as_me: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7031
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&5
7032
 
echo "$as_me: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&2;}
7033
 
    ac_header_preproc=yes
7034
 
    ;;
7035
 
  no:yes:* )
7036
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: present but cannot be compiled" >&5
7037
 
echo "$as_me: WARNING: dmedia/audio.h: present but cannot be compiled" >&2;}
7038
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h:     check for missing prerequisite headers?" >&5
7039
 
echo "$as_me: WARNING: dmedia/audio.h:     check for missing prerequisite headers?" >&2;}
7040
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: see the Autoconf documentation" >&5
7041
 
echo "$as_me: WARNING: dmedia/audio.h: see the Autoconf documentation" >&2;}
7042
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h:     section \"Present But Cannot Be Compiled\"" >&5
7043
 
echo "$as_me: WARNING: dmedia/audio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7044
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&5
7045
 
echo "$as_me: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&2;}
7046
 
    { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&5
7047
 
echo "$as_me: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&2;}
7048
 
 
7049
 
    ;;
7050
 
esac
7051
 
{ echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
7052
 
echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6; }
7053
 
if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
7054
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7055
 
else
7056
 
  ac_cv_header_dmedia_audio_h=$ac_header_preproc
7057
 
fi
7058
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
7059
 
echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6; }
7060
 
 
7061
 
fi
7062
 
if test $ac_cv_header_dmedia_audio_h = yes; then
 
5475
ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
 
5476
if test "x$ac_cv_header_dmedia_audio_h" = x""yes; then :
7063
5477
  HAVE_SGI=1
7064
5478
else
7065
5479
  HAVE_SGI=0
7066
5480
fi
7067
5481
 
7068
5482
 
7069
 
if test "${ac_cv_header_sys_audioio_h+set}" = set; then
7070
 
  { echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
7071
 
echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6; }
7072
 
if test "${ac_cv_header_sys_audioio_h+set}" = set; then
7073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7074
 
fi
7075
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
7076
 
echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6; }
7077
 
else
7078
 
  # Is the header compilable?
7079
 
{ echo "$as_me:$LINENO: checking sys/audioio.h usability" >&5
7080
 
echo $ECHO_N "checking sys/audioio.h usability... $ECHO_C" >&6; }
7081
 
cat >conftest.$ac_ext <<_ACEOF
7082
 
/* confdefs.h.  */
7083
 
_ACEOF
7084
 
cat confdefs.h >>conftest.$ac_ext
7085
 
cat >>conftest.$ac_ext <<_ACEOF
7086
 
/* end confdefs.h.  */
7087
 
$ac_includes_default
7088
 
#include <sys/audioio.h>
7089
 
_ACEOF
7090
 
rm -f conftest.$ac_objext
7091
 
if { (ac_try="$ac_compile"
7092
 
case "(($ac_try" in
7093
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094
 
  *) ac_try_echo=$ac_try;;
7095
 
esac
7096
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097
 
  (eval "$ac_compile") 2>conftest.er1
7098
 
  ac_status=$?
7099
 
  grep -v '^ *+' conftest.er1 >conftest.err
7100
 
  rm -f conftest.er1
7101
 
  cat conftest.err >&5
7102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103
 
  (exit $ac_status); } && {
7104
 
         test -z "$ac_c_werror_flag" ||
7105
 
         test ! -s conftest.err
7106
 
       } && test -s conftest.$ac_objext; then
7107
 
  ac_header_compiler=yes
7108
 
else
7109
 
  echo "$as_me: failed program was:" >&5
7110
 
sed 's/^/| /' conftest.$ac_ext >&5
7111
 
 
7112
 
        ac_header_compiler=no
7113
 
fi
7114
 
 
7115
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7117
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
7118
 
 
7119
 
# Is the header present?
7120
 
{ echo "$as_me:$LINENO: checking sys/audioio.h presence" >&5
7121
 
echo $ECHO_N "checking sys/audioio.h presence... $ECHO_C" >&6; }
7122
 
cat >conftest.$ac_ext <<_ACEOF
7123
 
/* confdefs.h.  */
7124
 
_ACEOF
7125
 
cat confdefs.h >>conftest.$ac_ext
7126
 
cat >>conftest.$ac_ext <<_ACEOF
7127
 
/* end confdefs.h.  */
7128
 
#include <sys/audioio.h>
7129
 
_ACEOF
7130
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7131
 
case "(($ac_try" in
7132
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133
 
  *) ac_try_echo=$ac_try;;
7134
 
esac
7135
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7137
 
  ac_status=$?
7138
 
  grep -v '^ *+' conftest.er1 >conftest.err
7139
 
  rm -f conftest.er1
7140
 
  cat conftest.err >&5
7141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
 
  (exit $ac_status); } >/dev/null && {
7143
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7144
 
         test ! -s conftest.err
7145
 
       }; then
7146
 
  ac_header_preproc=yes
7147
 
else
7148
 
  echo "$as_me: failed program was:" >&5
7149
 
sed 's/^/| /' conftest.$ac_ext >&5
7150
 
 
7151
 
  ac_header_preproc=no
7152
 
fi
7153
 
 
7154
 
rm -f conftest.err conftest.$ac_ext
7155
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7156
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
7157
 
 
7158
 
# So?  What about this header?
7159
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7160
 
  yes:no: )
7161
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7162
 
echo "$as_me: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7163
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the compiler's result" >&5
7164
 
echo "$as_me: WARNING: sys/audioio.h: proceeding with the compiler's result" >&2;}
7165
 
    ac_header_preproc=yes
7166
 
    ;;
7167
 
  no:yes:* )
7168
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h: present but cannot be compiled" >&5
7169
 
echo "$as_me: WARNING: sys/audioio.h: present but cannot be compiled" >&2;}
7170
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h:     check for missing prerequisite headers?" >&5
7171
 
echo "$as_me: WARNING: sys/audioio.h:     check for missing prerequisite headers?" >&2;}
7172
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h: see the Autoconf documentation" >&5
7173
 
echo "$as_me: WARNING: sys/audioio.h: see the Autoconf documentation" >&2;}
7174
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h:     section \"Present But Cannot Be Compiled\"" >&5
7175
 
echo "$as_me: WARNING: sys/audioio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7176
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&5
7177
 
echo "$as_me: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&2;}
7178
 
    { echo "$as_me:$LINENO: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&5
7179
 
echo "$as_me: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&2;}
7180
 
 
7181
 
    ;;
7182
 
esac
7183
 
{ echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
7184
 
echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6; }
7185
 
if test "${ac_cv_header_sys_audioio_h+set}" = set; then
7186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7187
 
else
7188
 
  ac_cv_header_sys_audioio_h=$ac_header_preproc
7189
 
fi
7190
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
7191
 
echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6; }
7192
 
 
7193
 
fi
7194
 
if test $ac_cv_header_sys_audioio_h = yes; then
 
5483
ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
 
5484
if test "x$ac_cv_header_sys_audioio_h" = x""yes; then :
7195
5485
  HAVE_SUN=1
7196
5486
else
7197
5487
  HAVE_SUN=0
7200
5490
 
7201
5491
 
7202
5492
# Check whether --enable-static-libsamplerate was given.
7203
 
if test "${enable_static_libsamplerate+set}" = set; then
 
5493
if test "${enable_static_libsamplerate+set}" = set; then :
7204
5494
  enableval=$enable_static_libsamplerate; static_libsamplerate=yes
7205
5495
else
7206
5496
  static_libsamplerate=no
7209
5499
 
7210
5500
if test -n "$PKG_CONFIG"; then
7211
5501
 
7212
 
pkg_failed=no
7213
 
{ echo "$as_me:$LINENO: checking for LIBAO" >&5
7214
 
echo $ECHO_N "checking for LIBAO... $ECHO_C" >&6; }
7215
 
 
7216
 
if test -n "$PKG_CONFIG"; then
7217
 
    if test -n "$LIBAO_CFLAGS"; then
7218
 
        pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
7219
 
    else
7220
 
        if test -n "$PKG_CONFIG" && \
7221
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao\"") >&5
7222
 
  ($PKG_CONFIG --exists --print-errors "ao") 2>&5
7223
 
  ac_status=$?
7224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225
 
  (exit $ac_status); }; then
7226
 
  pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
7227
 
else
7228
 
  pkg_failed=yes
7229
 
fi
7230
 
    fi
7231
 
else
7232
 
        pkg_failed=untried
7233
 
fi
7234
 
if test -n "$PKG_CONFIG"; then
7235
 
    if test -n "$LIBAO_LIBS"; then
7236
 
        pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
7237
 
    else
7238
 
        if test -n "$PKG_CONFIG" && \
7239
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao\"") >&5
7240
 
  ($PKG_CONFIG --exists --print-errors "ao") 2>&5
7241
 
  ac_status=$?
7242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243
 
  (exit $ac_status); }; then
7244
 
  pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
7245
 
else
7246
 
  pkg_failed=yes
7247
 
fi
7248
 
    fi
7249
 
else
7250
 
        pkg_failed=untried
7251
 
fi
7252
 
 
7253
 
 
7254
 
 
7255
 
if test $pkg_failed = yes; then
7256
 
 
7257
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7258
 
        _pkg_short_errors_supported=yes
7259
 
else
7260
 
        _pkg_short_errors_supported=no
7261
 
fi
7262
 
        if test $_pkg_short_errors_supported = yes; then
7263
 
                LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ao"`
7264
 
        else
7265
 
                LIBAO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ao"`
7266
 
        fi
7267
 
        # Put the nasty error message in config.log where it belongs
7268
 
        echo "$LIBAO_PKG_ERRORS" >&5
7269
 
 
7270
 
        { echo "$as_me:$LINENO: result: no" >&5
7271
 
echo "${ECHO_T}no" >&6; }
7272
 
                HAVE_LIBAO=0
7273
 
elif test $pkg_failed = untried; then
7274
 
        HAVE_LIBAO=0
7275
 
else
7276
 
        LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
7277
 
        LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
7278
 
        { echo "$as_me:$LINENO: result: yes" >&5
7279
 
echo "${ECHO_T}yes" >&6; }
7280
 
        HAVE_LIBAO=1
7281
 
fi
7282
 
 
7283
 
pkg_failed=no
7284
 
{ echo "$as_me:$LINENO: checking for ALSA" >&5
7285
 
echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
7286
 
 
7287
 
if test -n "$PKG_CONFIG"; then
7288
 
    if test -n "$ALSA_CFLAGS"; then
7289
 
        pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
7290
 
    else
7291
 
        if test -n "$PKG_CONFIG" && \
7292
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7293
 
  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7294
 
  ac_status=$?
7295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296
 
  (exit $ac_status); }; then
7297
 
  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
7298
 
else
7299
 
  pkg_failed=yes
7300
 
fi
7301
 
    fi
7302
 
else
7303
 
        pkg_failed=untried
7304
 
fi
7305
 
if test -n "$PKG_CONFIG"; then
7306
 
    if test -n "$ALSA_LIBS"; then
7307
 
        pkg_cv_ALSA_LIBS="$ALSA_LIBS"
7308
 
    else
7309
 
        if test -n "$PKG_CONFIG" && \
7310
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7311
 
  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7312
 
  ac_status=$?
7313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314
 
  (exit $ac_status); }; then
7315
 
  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
7316
 
else
7317
 
  pkg_failed=yes
7318
 
fi
7319
 
    fi
7320
 
else
7321
 
        pkg_failed=untried
7322
 
fi
7323
 
 
7324
 
 
7325
 
 
7326
 
if test $pkg_failed = yes; then
7327
 
 
7328
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7329
 
        _pkg_short_errors_supported=yes
7330
 
else
7331
 
        _pkg_short_errors_supported=no
7332
 
fi
7333
 
        if test $_pkg_short_errors_supported = yes; then
7334
 
                ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
7335
 
        else
7336
 
                ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
7337
 
        fi
7338
 
        # Put the nasty error message in config.log where it belongs
7339
 
        echo "$ALSA_PKG_ERRORS" >&5
7340
 
 
7341
 
        { echo "$as_me:$LINENO: result: no" >&5
7342
 
echo "${ECHO_T}no" >&6; }
7343
 
                HAVE_ALSA=0
7344
 
elif test $pkg_failed = untried; then
7345
 
        HAVE_ALSA=0
7346
 
else
7347
 
        ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
7348
 
        ALSA_LIBS=$pkg_cv_ALSA_LIBS
7349
 
        { echo "$as_me:$LINENO: result: yes" >&5
7350
 
echo "${ECHO_T}yes" >&6; }
7351
 
        HAVE_ALSA=1
7352
 
fi
7353
 
 
7354
 
pkg_failed=no
7355
 
{ echo "$as_me:$LINENO: checking for LIBSAMPLERATE" >&5
7356
 
echo $ECHO_N "checking for LIBSAMPLERATE... $ECHO_C" >&6; }
7357
 
 
7358
 
if test -n "$PKG_CONFIG"; then
7359
 
    if test -n "$LIBSAMPLERATE_CFLAGS"; then
7360
 
        pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
7361
 
    else
7362
 
        if test -n "$PKG_CONFIG" && \
7363
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5
7364
 
  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
7365
 
  ac_status=$?
7366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367
 
  (exit $ac_status); }; then
7368
 
  pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
7369
 
else
7370
 
  pkg_failed=yes
7371
 
fi
7372
 
    fi
7373
 
else
7374
 
        pkg_failed=untried
7375
 
fi
7376
 
if test -n "$PKG_CONFIG"; then
7377
 
    if test -n "$LIBSAMPLERATE_LIBS"; then
7378
 
        pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
7379
 
    else
7380
 
        if test -n "$PKG_CONFIG" && \
7381
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5
7382
 
  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
7383
 
  ac_status=$?
7384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385
 
  (exit $ac_status); }; then
7386
 
  pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
7387
 
else
7388
 
  pkg_failed=yes
7389
 
fi
7390
 
    fi
7391
 
else
7392
 
        pkg_failed=untried
7393
 
fi
7394
 
 
7395
 
 
7396
 
 
7397
 
if test $pkg_failed = yes; then
7398
 
 
7399
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7400
 
        _pkg_short_errors_supported=yes
7401
 
else
7402
 
        _pkg_short_errors_supported=no
7403
 
fi
7404
 
        if test $_pkg_short_errors_supported = yes; then
7405
 
                LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate"`
7406
 
        else
7407
 
                LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate"`
7408
 
        fi
7409
 
        # Put the nasty error message in config.log where it belongs
7410
 
        echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
7411
 
 
7412
 
        { echo "$as_me:$LINENO: result: no" >&5
7413
 
echo "${ECHO_T}no" >&6; }
7414
 
                HAVE_LIBSAMPLERATE=0
7415
 
elif test $pkg_failed = untried; then
7416
 
        HAVE_LIBSAMPLERATE=0
7417
 
else
7418
 
        LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
7419
 
        LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
7420
 
        { echo "$as_me:$LINENO: result: yes" >&5
7421
 
echo "${ECHO_T}yes" >&6; }
7422
 
        HAVE_LIBSAMPLERATE=1
7423
 
fi
 
5502
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for ao" >&5
 
5503
$as_echo "$as_me: WARNING: pkg-config not available, cannot check for ao" >&2;}
 
5504
                        HAVE_LIBAO=0
 
5505
 
 
5506
 
 
5507
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for alsa" >&5
 
5508
$as_echo "$as_me: WARNING: pkg-config not available, cannot check for alsa" >&2;}
 
5509
                        HAVE_ALSA=0
 
5510
 
 
5511
 
 
5512
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for samplerate" >&5
 
5513
$as_echo "$as_me: WARNING: pkg-config not available, cannot check for samplerate" >&2;}
 
5514
                        HAVE_LIBSAMPLERATE=0
 
5515
 
7424
5516
    if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
7425
 
        cat >>confdefs.h <<\_ACEOF
7426
 
#define HAVE_LIBSAMPLERATE 1
7427
 
_ACEOF
 
5517
        $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
7428
5518
 
7429
5519
        if test x"$static_libsamplerate" = "xyes"; then
7430
5520
            _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
7438
5528
    SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
7439
5529
    CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
7440
5530
    LIBS="$LIBS $LIBSAMPLERATE_LIBS"
7441
 
    cat >>confdefs.h <<\_ACEOF
7442
 
#define WITH_RDPSND 1
7443
 
_ACEOF
 
5531
    $as_echo "#define WITH_RDPSND 1" >>confdefs.h
7444
5532
 
7445
5533
fi
7446
5534
 
7448
5536
    yes)
7449
5537
        if test x"$HAVE_OSS" = "x1"; then
7450
5538
            SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
7451
 
            cat >>confdefs.h <<\_ACEOF
7452
 
#define RDPSND_OSS 1
7453
 
_ACEOF
 
5539
            $as_echo "#define RDPSND_OSS 1" >>confdefs.h
7454
5540
 
7455
5541
        fi
7456
5542
 
7457
5543
        if test x"$HAVE_SGI" = "x1"; then
7458
5544
            SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
7459
5545
            LIBS="$LIBS -laudio"
7460
 
            cat >>confdefs.h <<\_ACEOF
7461
 
#define RDPSND_SGI 1
7462
 
_ACEOF
 
5546
            $as_echo "#define RDPSND_SGI 1" >>confdefs.h
7463
5547
 
7464
5548
        fi
7465
5549
 
7466
5550
        if test x"$HAVE_SUN" = "x1"; then
7467
5551
            SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
7468
 
            cat >>confdefs.h <<\_ACEOF
7469
 
#define RDPSND_SUN 1
7470
 
_ACEOF
 
5552
            $as_echo "#define RDPSND_SUN 1" >>confdefs.h
7471
5553
 
7472
5554
        fi
7473
5555
 
7475
5557
            SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
7476
5558
            CFLAGS="$CFLAGS $ALSA_CFLAGS"
7477
5559
            LIBS="$LIBS $ALSA_LIBS"
7478
 
            cat >>confdefs.h <<\_ACEOF
7479
 
#define RDPSND_ALSA 1
7480
 
_ACEOF
 
5560
            $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
7481
5561
 
7482
5562
        fi
7483
5563
 
7485
5565
            SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
7486
5566
            CFLAGS="$CFLAGS $LIBAO_CFLAGS"
7487
5567
            LIBS="$LIBS $LIBAO_LIBS"
7488
 
            cat >>confdefs.h <<\_ACEOF
7489
 
#define RDPSND_LIBAO 1
7490
 
_ACEOF
 
5568
            $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
7491
5569
 
7492
5570
        fi
7493
5571
 
7496
5574
    oss)
7497
5575
        if test x"$HAVE_OSS" = "x1"; then
7498
5576
            SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
7499
 
            cat >>confdefs.h <<\_ACEOF
7500
 
#define RDPSND_OSS 1
7501
 
_ACEOF
 
5577
            $as_echo "#define RDPSND_OSS 1" >>confdefs.h
7502
5578
 
7503
5579
        else
7504
 
            { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7505
 
echo "$as_me: error: Selected sound system is not available." >&2;}
7506
 
   { (exit 1); exit 1; }; }
 
5580
            as_fn_error $? "Selected sound system is not available." "$LINENO" 5
7507
5581
        fi
7508
5582
        ;;
7509
5583
 
7511
5585
        if test x"$HAVE_SGI" = "x1"; then
7512
5586
            SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
7513
5587
            LIBS="$LIBS -laudio"
7514
 
            cat >>confdefs.h <<\_ACEOF
7515
 
#define RDPSND_SGI 1
7516
 
_ACEOF
 
5588
            $as_echo "#define RDPSND_SGI 1" >>confdefs.h
7517
5589
 
7518
5590
        else
7519
 
            { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7520
 
echo "$as_me: error: Selected sound system is not available." >&2;}
7521
 
   { (exit 1); exit 1; }; }
 
5591
            as_fn_error $? "Selected sound system is not available." "$LINENO" 5
7522
5592
        fi
7523
5593
        ;;
7524
5594
 
7525
5595
    sun)
7526
5596
        if test x"$HAVE_SUN" = "x1"; then
7527
5597
            SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
7528
 
            cat >>confdefs.h <<\_ACEOF
7529
 
#define RDPSND_SUN 1
7530
 
_ACEOF
 
5598
            $as_echo "#define RDPSND_SUN 1" >>confdefs.h
7531
5599
 
7532
5600
        else
7533
 
            { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7534
 
echo "$as_me: error: Selected sound system is not available." >&2;}
7535
 
   { (exit 1); exit 1; }; }
 
5601
            as_fn_error $? "Selected sound system is not available." "$LINENO" 5
7536
5602
        fi
7537
5603
        ;;
7538
5604
 
7541
5607
            SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
7542
5608
            CFLAGS="$CFLAGS $ALSA_CFLAGS"
7543
5609
            LIBS="$LIBS $ALSA_LIBS"
7544
 
            cat >>confdefs.h <<\_ACEOF
7545
 
#define RDPSND_ALSA 1
7546
 
_ACEOF
 
5610
            $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
7547
5611
 
7548
5612
        else
7549
 
            { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7550
 
echo "$as_me: error: Selected sound system is not available." >&2;}
7551
 
   { (exit 1); exit 1; }; }
 
5613
            as_fn_error $? "Selected sound system is not available." "$LINENO" 5
7552
5614
        fi
7553
5615
        ;;
7554
5616
 
7557
5619
            SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
7558
5620
            CFLAGS="$CFLAGS $LIBAO_CFLAGS"
7559
5621
            LIBS="$LIBS $LIBAO_LIBS"
7560
 
            cat >>confdefs.h <<\_ACEOF
7561
 
#define RDPSND_LIBAO 1
7562
 
_ACEOF
 
5622
            $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
7563
5623
 
7564
5624
        else
7565
 
            { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7566
 
echo "$as_me: error: Selected sound system is not available." >&2;}
7567
 
   { (exit 1); exit 1; }; }
 
5625
            as_fn_error $? "Selected sound system is not available." "$LINENO" 5
7568
5626
        fi
7569
5627
        ;;
7570
5628
 
7572
5630
        ;;
7573
5631
 
7574
5632
    *)
7575
 
        { echo "$as_me:$LINENO: WARNING: sound support disabled" >&5
7576
 
echo "$as_me: WARNING: sound support disabled" >&2;}
7577
 
        { echo "$as_me:$LINENO: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
7578
 
echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
 
5633
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
 
5634
$as_echo "$as_me: WARNING: sound support disabled" >&2;}
 
5635
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
 
5636
$as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
7579
5637
        ;;
7580
5638
esac
7581
5639
 
7589
5647
 
7590
5648
 
7591
5649
 
7592
 
 
7593
 
 
7594
 
 
7595
 
 
7596
 
 
7597
 
ac_header_dirent=no
 
5650
  ac_header_dirent=no
7598
5651
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7599
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7600
 
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7601
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7602
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7603
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5652
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
5653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
5654
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
5655
if eval "test \"\${$as_ac_Header+set}\"" = set; then :
 
5656
  $as_echo_n "(cached) " >&6
7604
5657
else
7605
 
  cat >conftest.$ac_ext <<_ACEOF
7606
 
/* confdefs.h.  */
7607
 
_ACEOF
7608
 
cat confdefs.h >>conftest.$ac_ext
7609
 
cat >>conftest.$ac_ext <<_ACEOF
 
5658
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610
5659
/* end confdefs.h.  */
7611
5660
#include <sys/types.h>
7612
5661
#include <$ac_hdr>
7620
5669
  return 0;
7621
5670
}
7622
5671
_ACEOF
7623
 
rm -f conftest.$ac_objext
7624
 
if { (ac_try="$ac_compile"
7625
 
case "(($ac_try" in
7626
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627
 
  *) ac_try_echo=$ac_try;;
7628
 
esac
7629
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630
 
  (eval "$ac_compile") 2>conftest.er1
7631
 
  ac_status=$?
7632
 
  grep -v '^ *+' conftest.er1 >conftest.err
7633
 
  rm -f conftest.er1
7634
 
  cat conftest.err >&5
7635
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636
 
  (exit $ac_status); } && {
7637
 
         test -z "$ac_c_werror_flag" ||
7638
 
         test ! -s conftest.err
7639
 
       } && test -s conftest.$ac_objext; then
 
5672
if ac_fn_c_try_compile "$LINENO"; then :
7640
5673
  eval "$as_ac_Header=yes"
7641
5674
else
7642
 
  echo "$as_me: failed program was:" >&5
7643
 
sed 's/^/| /' conftest.$ac_ext >&5
7644
 
 
7645
 
        eval "$as_ac_Header=no"
 
5675
  eval "$as_ac_Header=no"
7646
5676
fi
7647
 
 
7648
5677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649
5678
fi
7650
 
ac_res=`eval echo '${'$as_ac_Header'}'`
7651
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7652
 
echo "${ECHO_T}$ac_res" >&6; }
7653
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5679
eval ac_res=\$$as_ac_Header
 
5680
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
5681
$as_echo "$ac_res" >&6; }
 
5682
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7654
5683
  cat >>confdefs.h <<_ACEOF
7655
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
5684
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7656
5685
_ACEOF
7657
5686
 
7658
5687
ac_header_dirent=$ac_hdr; break
7661
5690
done
7662
5691
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7663
5692
if test $ac_header_dirent = dirent.h; then
7664
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7665
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7666
 
if test "${ac_cv_search_opendir+set}" = set; then
7667
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
5694
$as_echo_n "checking for library containing opendir... " >&6; }
 
5695
if test "${ac_cv_search_opendir+set}" = set; then :
 
5696
  $as_echo_n "(cached) " >&6
7668
5697
else
7669
5698
  ac_func_search_save_LIBS=$LIBS
7670
 
cat >conftest.$ac_ext <<_ACEOF
7671
 
/* confdefs.h.  */
7672
 
_ACEOF
7673
 
cat confdefs.h >>conftest.$ac_ext
7674
 
cat >>conftest.$ac_ext <<_ACEOF
 
5699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675
5700
/* end confdefs.h.  */
7676
5701
 
7677
5702
/* Override any GCC internal prototype to avoid an error.
7696
5721
    ac_res=-l$ac_lib
7697
5722
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7698
5723
  fi
7699
 
  rm -f conftest.$ac_objext conftest$ac_exeext
7700
 
if { (ac_try="$ac_link"
7701
 
case "(($ac_try" in
7702
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703
 
  *) ac_try_echo=$ac_try;;
7704
 
esac
7705
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706
 
  (eval "$ac_link") 2>conftest.er1
7707
 
  ac_status=$?
7708
 
  grep -v '^ *+' conftest.er1 >conftest.err
7709
 
  rm -f conftest.er1
7710
 
  cat conftest.err >&5
7711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712
 
  (exit $ac_status); } && {
7713
 
         test -z "$ac_c_werror_flag" ||
7714
 
         test ! -s conftest.err
7715
 
       } && test -s conftest$ac_exeext &&
7716
 
       $as_test_x conftest$ac_exeext; then
 
5724
  if ac_fn_c_try_link "$LINENO"; then :
7717
5725
  ac_cv_search_opendir=$ac_res
7718
 
else
7719
 
  echo "$as_me: failed program was:" >&5
7720
 
sed 's/^/| /' conftest.$ac_ext >&5
7721
 
 
7722
 
 
7723
5726
fi
7724
 
 
7725
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7726
 
      conftest$ac_exeext
7727
 
  if test "${ac_cv_search_opendir+set}" = set; then
 
5727
rm -f core conftest.err conftest.$ac_objext \
 
5728
    conftest$ac_exeext
 
5729
  if test "${ac_cv_search_opendir+set}" = set; then :
7728
5730
  break
7729
5731
fi
7730
5732
done
7731
 
if test "${ac_cv_search_opendir+set}" = set; then
7732
 
  :
 
5733
if test "${ac_cv_search_opendir+set}" = set; then :
 
5734
 
7733
5735
else
7734
5736
  ac_cv_search_opendir=no
7735
5737
fi
7736
5738
rm conftest.$ac_ext
7737
5739
LIBS=$ac_func_search_save_LIBS
7738
5740
fi
7739
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7740
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
5742
$as_echo "$ac_cv_search_opendir" >&6; }
7741
5743
ac_res=$ac_cv_search_opendir
7742
 
if test "$ac_res" != no; then
 
5744
if test "$ac_res" != no; then :
7743
5745
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7744
5746
 
7745
5747
fi
7746
5748
 
7747
5749
else
7748
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7749
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7750
 
if test "${ac_cv_search_opendir+set}" = set; then
7751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5750
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
5751
$as_echo_n "checking for library containing opendir... " >&6; }
 
5752
if test "${ac_cv_search_opendir+set}" = set; then :
 
5753
  $as_echo_n "(cached) " >&6
7752
5754
else
7753
5755
  ac_func_search_save_LIBS=$LIBS
7754
 
cat >conftest.$ac_ext <<_ACEOF
7755
 
/* confdefs.h.  */
7756
 
_ACEOF
7757
 
cat confdefs.h >>conftest.$ac_ext
7758
 
cat >>conftest.$ac_ext <<_ACEOF
 
5756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759
5757
/* end confdefs.h.  */
7760
5758
 
7761
5759
/* Override any GCC internal prototype to avoid an error.
7780
5778
    ac_res=-l$ac_lib
7781
5779
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7782
5780
  fi
7783
 
  rm -f conftest.$ac_objext conftest$ac_exeext
7784
 
if { (ac_try="$ac_link"
7785
 
case "(($ac_try" in
7786
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787
 
  *) ac_try_echo=$ac_try;;
7788
 
esac
7789
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790
 
  (eval "$ac_link") 2>conftest.er1
7791
 
  ac_status=$?
7792
 
  grep -v '^ *+' conftest.er1 >conftest.err
7793
 
  rm -f conftest.er1
7794
 
  cat conftest.err >&5
7795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796
 
  (exit $ac_status); } && {
7797
 
         test -z "$ac_c_werror_flag" ||
7798
 
         test ! -s conftest.err
7799
 
       } && test -s conftest$ac_exeext &&
7800
 
       $as_test_x conftest$ac_exeext; then
 
5781
  if ac_fn_c_try_link "$LINENO"; then :
7801
5782
  ac_cv_search_opendir=$ac_res
7802
 
else
7803
 
  echo "$as_me: failed program was:" >&5
7804
 
sed 's/^/| /' conftest.$ac_ext >&5
7805
 
 
7806
 
 
7807
5783
fi
7808
 
 
7809
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810
 
      conftest$ac_exeext
7811
 
  if test "${ac_cv_search_opendir+set}" = set; then
 
5784
rm -f core conftest.err conftest.$ac_objext \
 
5785
    conftest$ac_exeext
 
5786
  if test "${ac_cv_search_opendir+set}" = set; then :
7812
5787
  break
7813
5788
fi
7814
5789
done
7815
 
if test "${ac_cv_search_opendir+set}" = set; then
7816
 
  :
 
5790
if test "${ac_cv_search_opendir+set}" = set; then :
 
5791
 
7817
5792
else
7818
5793
  ac_cv_search_opendir=no
7819
5794
fi
7820
5795
rm conftest.$ac_ext
7821
5796
LIBS=$ac_func_search_save_LIBS
7822
5797
fi
7823
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7824
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
5798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
5799
$as_echo "$ac_cv_search_opendir" >&6; }
7825
5800
ac_res=$ac_cv_search_opendir
7826
 
if test "$ac_res" != no; then
 
5801
if test "$ac_res" != no; then :
7827
5802
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7828
5803
 
7829
5804
fi
7846
5821
# endif /* HAVE_NDIR_H */
7847
5822
#endif /* HAVE_DIRENT_H */
7848
5823
'
7849
 
 
7850
 
for ac_func in dirfd
7851
 
do
7852
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7853
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7854
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7855
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7857
 
else
7858
 
  cat >conftest.$ac_ext <<_ACEOF
7859
 
/* confdefs.h.  */
7860
 
_ACEOF
7861
 
cat confdefs.h >>conftest.$ac_ext
7862
 
cat >>conftest.$ac_ext <<_ACEOF
7863
 
/* end confdefs.h.  */
7864
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7865
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7866
 
#define $ac_func innocuous_$ac_func
7867
 
 
7868
 
/* System header to define __stub macros and hopefully few prototypes,
7869
 
    which can conflict with char $ac_func (); below.
7870
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7871
 
    <limits.h> exists even on freestanding compilers.  */
7872
 
 
7873
 
#ifdef __STDC__
7874
 
# include <limits.h>
7875
 
#else
7876
 
# include <assert.h>
7877
 
#endif
7878
 
 
7879
 
#undef $ac_func
7880
 
 
7881
 
/* Override any GCC internal prototype to avoid an error.
7882
 
   Use char because int might match the return type of a GCC
7883
 
   builtin and then its argument prototype would still apply.  */
7884
 
#ifdef __cplusplus
7885
 
extern "C"
7886
 
#endif
7887
 
char $ac_func ();
7888
 
/* The GNU C library defines this for functions which it implements
7889
 
    to always fail with ENOSYS.  Some functions are actually named
7890
 
    something starting with __ and the normal name is an alias.  */
7891
 
#if defined __stub_$ac_func || defined __stub___$ac_func
7892
 
choke me
7893
 
#endif
7894
 
 
7895
 
int
7896
 
main ()
7897
 
{
7898
 
return $ac_func ();
7899
 
  ;
7900
 
  return 0;
7901
 
}
7902
 
_ACEOF
7903
 
rm -f conftest.$ac_objext conftest$ac_exeext
7904
 
if { (ac_try="$ac_link"
7905
 
case "(($ac_try" in
7906
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907
 
  *) ac_try_echo=$ac_try;;
7908
 
esac
7909
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910
 
  (eval "$ac_link") 2>conftest.er1
7911
 
  ac_status=$?
7912
 
  grep -v '^ *+' conftest.er1 >conftest.err
7913
 
  rm -f conftest.er1
7914
 
  cat conftest.err >&5
7915
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916
 
  (exit $ac_status); } && {
7917
 
         test -z "$ac_c_werror_flag" ||
7918
 
         test ! -s conftest.err
7919
 
       } && test -s conftest$ac_exeext &&
7920
 
       $as_test_x conftest$ac_exeext; then
7921
 
  eval "$as_ac_var=yes"
7922
 
else
7923
 
  echo "$as_me: failed program was:" >&5
7924
 
sed 's/^/| /' conftest.$ac_ext >&5
7925
 
 
7926
 
        eval "$as_ac_var=no"
7927
 
fi
7928
 
 
7929
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7930
 
      conftest$ac_exeext conftest.$ac_ext
7931
 
fi
7932
 
ac_res=`eval echo '${'$as_ac_var'}'`
7933
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7934
 
echo "${ECHO_T}$ac_res" >&6; }
7935
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5824
  for ac_func in dirfd
 
5825
do :
 
5826
  ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
 
5827
if test "x$ac_cv_func_dirfd" = x""yes; then :
7936
5828
  cat >>confdefs.h <<_ACEOF
7937
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5829
#define HAVE_DIRFD 1
7938
5830
_ACEOF
7939
5831
 
7940
5832
fi
7941
5833
done
7942
5834
 
7943
 
  { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
7944
 
echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
7945
 
if test "${ac_cv_have_decl_dirfd+set}" = set; then
7946
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7947
 
else
7948
 
  cat >conftest.$ac_ext <<_ACEOF
7949
 
/* confdefs.h.  */
7950
 
_ACEOF
7951
 
cat confdefs.h >>conftest.$ac_ext
7952
 
cat >>conftest.$ac_ext <<_ACEOF
7953
 
/* end confdefs.h.  */
7954
 
$dirfd_headers
7955
 
 
7956
 
int
7957
 
main ()
7958
 
{
7959
 
#ifndef dirfd
7960
 
  (void) dirfd;
7961
 
#endif
7962
 
 
7963
 
  ;
7964
 
  return 0;
7965
 
}
7966
 
_ACEOF
7967
 
rm -f conftest.$ac_objext
7968
 
if { (ac_try="$ac_compile"
7969
 
case "(($ac_try" in
7970
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971
 
  *) ac_try_echo=$ac_try;;
7972
 
esac
7973
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974
 
  (eval "$ac_compile") 2>conftest.er1
7975
 
  ac_status=$?
7976
 
  grep -v '^ *+' conftest.er1 >conftest.err
7977
 
  rm -f conftest.er1
7978
 
  cat conftest.err >&5
7979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980
 
  (exit $ac_status); } && {
7981
 
         test -z "$ac_c_werror_flag" ||
7982
 
         test ! -s conftest.err
7983
 
       } && test -s conftest.$ac_objext; then
7984
 
  ac_cv_have_decl_dirfd=yes
7985
 
else
7986
 
  echo "$as_me: failed program was:" >&5
7987
 
sed 's/^/| /' conftest.$ac_ext >&5
7988
 
 
7989
 
        ac_cv_have_decl_dirfd=no
7990
 
fi
7991
 
 
7992
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993
 
fi
7994
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
7995
 
echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
7996
 
if test $ac_cv_have_decl_dirfd = yes; then
 
5835
  ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
 
5836
"
 
5837
if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
 
5838
  ac_have_decl=1
 
5839
else
 
5840
  ac_have_decl=0
 
5841
fi
7997
5842
 
7998
5843
cat >>confdefs.h <<_ACEOF
7999
 
#define HAVE_DECL_DIRFD 1
8000
 
_ACEOF
8001
 
 
8002
 
 
8003
 
else
8004
 
  cat >>confdefs.h <<_ACEOF
8005
 
#define HAVE_DECL_DIRFD 0
8006
 
_ACEOF
8007
 
 
8008
 
 
8009
 
fi
8010
 
 
8011
 
 
8012
 
 
8013
 
  { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
8014
 
echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
8015
 
if test "${jm_cv_func_dirfd_macro+set}" = set; then
8016
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8017
 
else
8018
 
  cat >conftest.$ac_ext <<_ACEOF
8019
 
/* confdefs.h.  */
8020
 
_ACEOF
8021
 
cat confdefs.h >>conftest.$ac_ext
8022
 
cat >>conftest.$ac_ext <<_ACEOF
 
5844
#define HAVE_DECL_DIRFD $ac_have_decl
 
5845
_ACEOF
 
5846
 
 
5847
 
 
5848
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
 
5849
$as_echo_n "checking whether dirfd is a macro... " >&6; }
 
5850
if test "${jm_cv_func_dirfd_macro+set}" = set; then :
 
5851
  $as_echo_n "(cached) " >&6
 
5852
else
 
5853
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023
5854
/* end confdefs.h.  */
8024
5855
$dirfd_headers
8025
5856
#ifdef dirfd
8027
5858
#endif
8028
5859
_ACEOF
8029
5860
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030
 
  $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
 
5861
  $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
8031
5862
  jm_cv_func_dirfd_macro=yes
8032
5863
else
8033
5864
  jm_cv_func_dirfd_macro=no
8035
5866
rm -f conftest*
8036
5867
 
8037
5868
fi
8038
 
{ echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
8039
 
echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6; }
 
5869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
 
5870
$as_echo "$jm_cv_func_dirfd_macro" >&6; }
8040
5871
 
8041
5872
  # Use the replacement only if we have no function, macro,
8042
5873
  # or declaration with that name.
8043
5874
  if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
8044
5875
      = no,no,no; then
8045
 
 
8046
 
for ac_func in dirfd
8047
 
do
8048
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8050
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8051
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8052
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8053
 
else
8054
 
  cat >conftest.$ac_ext <<_ACEOF
8055
 
/* confdefs.h.  */
8056
 
_ACEOF
8057
 
cat confdefs.h >>conftest.$ac_ext
8058
 
cat >>conftest.$ac_ext <<_ACEOF
8059
 
/* end confdefs.h.  */
8060
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8062
 
#define $ac_func innocuous_$ac_func
8063
 
 
8064
 
/* System header to define __stub macros and hopefully few prototypes,
8065
 
    which can conflict with char $ac_func (); below.
8066
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067
 
    <limits.h> exists even on freestanding compilers.  */
8068
 
 
8069
 
#ifdef __STDC__
8070
 
# include <limits.h>
8071
 
#else
8072
 
# include <assert.h>
8073
 
#endif
8074
 
 
8075
 
#undef $ac_func
8076
 
 
8077
 
/* Override any GCC internal prototype to avoid an error.
8078
 
   Use char because int might match the return type of a GCC
8079
 
   builtin and then its argument prototype would still apply.  */
8080
 
#ifdef __cplusplus
8081
 
extern "C"
8082
 
#endif
8083
 
char $ac_func ();
8084
 
/* The GNU C library defines this for functions which it implements
8085
 
    to always fail with ENOSYS.  Some functions are actually named
8086
 
    something starting with __ and the normal name is an alias.  */
8087
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8088
 
choke me
8089
 
#endif
8090
 
 
8091
 
int
8092
 
main ()
8093
 
{
8094
 
return $ac_func ();
8095
 
  ;
8096
 
  return 0;
8097
 
}
8098
 
_ACEOF
8099
 
rm -f conftest.$ac_objext conftest$ac_exeext
8100
 
if { (ac_try="$ac_link"
8101
 
case "(($ac_try" in
8102
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103
 
  *) ac_try_echo=$ac_try;;
8104
 
esac
8105
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106
 
  (eval "$ac_link") 2>conftest.er1
8107
 
  ac_status=$?
8108
 
  grep -v '^ *+' conftest.er1 >conftest.err
8109
 
  rm -f conftest.er1
8110
 
  cat conftest.err >&5
8111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112
 
  (exit $ac_status); } && {
8113
 
         test -z "$ac_c_werror_flag" ||
8114
 
         test ! -s conftest.err
8115
 
       } && test -s conftest$ac_exeext &&
8116
 
       $as_test_x conftest$ac_exeext; then
8117
 
  eval "$as_ac_var=yes"
8118
 
else
8119
 
  echo "$as_me: failed program was:" >&5
8120
 
sed 's/^/| /' conftest.$ac_ext >&5
8121
 
 
8122
 
        eval "$as_ac_var=no"
8123
 
fi
8124
 
 
8125
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126
 
      conftest$ac_exeext conftest.$ac_ext
8127
 
fi
8128
 
ac_res=`eval echo '${'$as_ac_var'}'`
8129
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8130
 
echo "${ECHO_T}$ac_res" >&6; }
8131
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
8132
 
  cat >>confdefs.h <<_ACEOF
8133
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8134
 
_ACEOF
 
5876
    ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
 
5877
if test "x$ac_cv_func_dirfd" = x""yes; then :
 
5878
  $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
8135
5879
 
8136
5880
else
8137
5881
  case " $LIBOBJS " in
8138
 
  *" $ac_func.$ac_objext "* ) ;;
8139
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
5882
  *" dirfd.$ac_objext "* ) ;;
 
5883
  *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
8140
5884
 ;;
8141
5885
esac
8142
5886
 
8143
5887
fi
8144
 
done
8145
 
 
8146
 
 
8147
 
    { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
8148
 
echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
8149
 
if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
8150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5888
 
 
5889
 
 
5890
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
 
5891
$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
 
5892
if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
 
5893
  $as_echo_n "(cached) " >&6
8151
5894
else
8152
5895
 
8153
5896
        dirfd_save_CFLAGS=$CFLAGS
8154
5897
        for ac_expr in d_fd dd_fd; do
8155
5898
 
8156
5899
          CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
8157
 
          cat >conftest.$ac_ext <<_ACEOF
8158
 
/* confdefs.h.  */
8159
 
_ACEOF
8160
 
cat confdefs.h >>conftest.$ac_ext
8161
 
cat >>conftest.$ac_ext <<_ACEOF
 
5900
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162
5901
/* end confdefs.h.  */
8163
5902
$dirfd_headers
8164
5903
 
8170
5909
  return 0;
8171
5910
}
8172
5911
_ACEOF
8173
 
rm -f conftest.$ac_objext
8174
 
if { (ac_try="$ac_compile"
8175
 
case "(($ac_try" in
8176
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177
 
  *) ac_try_echo=$ac_try;;
8178
 
esac
8179
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180
 
  (eval "$ac_compile") 2>conftest.er1
8181
 
  ac_status=$?
8182
 
  grep -v '^ *+' conftest.er1 >conftest.err
8183
 
  rm -f conftest.er1
8184
 
  cat conftest.err >&5
8185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186
 
  (exit $ac_status); } && {
8187
 
         test -z "$ac_c_werror_flag" ||
8188
 
         test ! -s conftest.err
8189
 
       } && test -s conftest.$ac_objext; then
 
5912
if ac_fn_c_try_compile "$LINENO"; then :
8190
5913
  dir_fd_found=yes
8191
5914
 
8192
 
else
8193
 
  echo "$as_me: failed program was:" >&5
8194
 
sed 's/^/| /' conftest.$ac_ext >&5
8195
 
 
8196
 
 
8197
5915
fi
8198
 
 
8199
5916
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200
5917
          CFLAGS=$dirfd_save_CFLAGS
8201
5918
          test "$dir_fd_found" = yes && break
8206
5923
 
8207
5924
 
8208
5925
fi
8209
 
{ echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
8210
 
echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
 
5926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
 
5927
$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
8211
5928
    if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
8212
5929
 
8213
5930
cat >>confdefs.h <<_ACEOF
8216
5933
 
8217
5934
    fi
8218
5935
 
8219
 
 
8220
5936
  fi
8221
5937
 
8222
5938
 
8231
5947
 
8232
5948
 
8233
5949
# Check whether --with-libiconv-prefix was given.
8234
 
if test "${with_libiconv_prefix+set}" = set; then
 
5950
if test "${with_libiconv_prefix+set}" = set; then :
8235
5951
  withval=$with_libiconv_prefix;
8236
5952
    for dir in `echo "$withval" | tr : ' '`; do
8237
5953
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8240
5956
 
8241
5957
fi
8242
5958
 
8243
 
  if test "${ac_cv_header_iconv_h+set}" = set; then
8244
 
  { echo "$as_me:$LINENO: checking for iconv.h" >&5
8245
 
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
8246
 
if test "${ac_cv_header_iconv_h+set}" = set; then
8247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8248
 
fi
8249
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
8250
 
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
8251
 
else
8252
 
  # Is the header compilable?
8253
 
{ echo "$as_me:$LINENO: checking iconv.h usability" >&5
8254
 
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
8255
 
cat >conftest.$ac_ext <<_ACEOF
8256
 
/* confdefs.h.  */
8257
 
_ACEOF
8258
 
cat confdefs.h >>conftest.$ac_ext
8259
 
cat >>conftest.$ac_ext <<_ACEOF
8260
 
/* end confdefs.h.  */
8261
 
$ac_includes_default
8262
 
#include <iconv.h>
8263
 
_ACEOF
8264
 
rm -f conftest.$ac_objext
8265
 
if { (ac_try="$ac_compile"
8266
 
case "(($ac_try" in
8267
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268
 
  *) ac_try_echo=$ac_try;;
8269
 
esac
8270
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271
 
  (eval "$ac_compile") 2>conftest.er1
8272
 
  ac_status=$?
8273
 
  grep -v '^ *+' conftest.er1 >conftest.err
8274
 
  rm -f conftest.er1
8275
 
  cat conftest.err >&5
8276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277
 
  (exit $ac_status); } && {
8278
 
         test -z "$ac_c_werror_flag" ||
8279
 
         test ! -s conftest.err
8280
 
       } && test -s conftest.$ac_objext; then
8281
 
  ac_header_compiler=yes
8282
 
else
8283
 
  echo "$as_me: failed program was:" >&5
8284
 
sed 's/^/| /' conftest.$ac_ext >&5
8285
 
 
8286
 
        ac_header_compiler=no
8287
 
fi
8288
 
 
8289
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
8292
 
 
8293
 
# Is the header present?
8294
 
{ echo "$as_me:$LINENO: checking iconv.h presence" >&5
8295
 
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
8296
 
cat >conftest.$ac_ext <<_ACEOF
8297
 
/* confdefs.h.  */
8298
 
_ACEOF
8299
 
cat confdefs.h >>conftest.$ac_ext
8300
 
cat >>conftest.$ac_ext <<_ACEOF
8301
 
/* end confdefs.h.  */
8302
 
#include <iconv.h>
8303
 
_ACEOF
8304
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8305
 
case "(($ac_try" in
8306
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307
 
  *) ac_try_echo=$ac_try;;
8308
 
esac
8309
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8311
 
  ac_status=$?
8312
 
  grep -v '^ *+' conftest.er1 >conftest.err
8313
 
  rm -f conftest.er1
8314
 
  cat conftest.err >&5
8315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316
 
  (exit $ac_status); } >/dev/null && {
8317
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8318
 
         test ! -s conftest.err
8319
 
       }; then
8320
 
  ac_header_preproc=yes
8321
 
else
8322
 
  echo "$as_me: failed program was:" >&5
8323
 
sed 's/^/| /' conftest.$ac_ext >&5
8324
 
 
8325
 
  ac_header_preproc=no
8326
 
fi
8327
 
 
8328
 
rm -f conftest.err conftest.$ac_ext
8329
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8330
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
8331
 
 
8332
 
# So?  What about this header?
8333
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8334
 
  yes:no: )
8335
 
    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
8336
 
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8337
 
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
8338
 
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
8339
 
    ac_header_preproc=yes
8340
 
    ;;
8341
 
  no:yes:* )
8342
 
    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
8343
 
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
8344
 
    { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
8345
 
echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
8346
 
    { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
8347
 
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
8348
 
    { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
8349
 
echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8350
 
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
8351
 
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
8352
 
    { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
8353
 
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
8354
 
 
8355
 
    ;;
8356
 
esac
8357
 
{ echo "$as_me:$LINENO: checking for iconv.h" >&5
8358
 
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
8359
 
if test "${ac_cv_header_iconv_h+set}" = set; then
8360
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8361
 
else
8362
 
  ac_cv_header_iconv_h=$ac_header_preproc
8363
 
fi
8364
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
8365
 
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
8366
 
 
8367
 
fi
8368
 
if test $ac_cv_header_iconv_h = yes; then
8369
 
  cat >>confdefs.h <<\_ACEOF
8370
 
#define HAVE_ICONV_H 1
8371
 
_ACEOF
8372
 
 
8373
 
fi
8374
 
 
8375
 
 
8376
 
 
8377
 
  { echo "$as_me:$LINENO: checking for iconv" >&5
8378
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8379
 
if test "${am_cv_func_iconv+set}" = set; then
8380
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5959
  ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
 
5960
if test "x$ac_cv_header_iconv_h" = x""yes; then :
 
5961
  $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
 
5962
 
 
5963
fi
 
5964
 
 
5965
 
 
5966
 
 
5967
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
5968
$as_echo_n "checking for iconv... " >&6; }
 
5969
if test "${am_cv_func_iconv+set}" = set; then :
 
5970
  $as_echo_n "(cached) " >&6
8381
5971
else
8382
5972
 
8383
5973
    am_cv_func_iconv="no, consider installing GNU libiconv"
8384
5974
    am_cv_lib_iconv=no
8385
 
    cat >conftest.$ac_ext <<_ACEOF
8386
 
/* confdefs.h.  */
8387
 
_ACEOF
8388
 
cat confdefs.h >>conftest.$ac_ext
8389
 
cat >>conftest.$ac_ext <<_ACEOF
 
5975
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390
5976
/* end confdefs.h.  */
8391
5977
#include <stdlib.h>
8392
5978
#include <iconv.h>
8400
5986
  return 0;
8401
5987
}
8402
5988
_ACEOF
8403
 
rm -f conftest.$ac_objext conftest$ac_exeext
8404
 
if { (ac_try="$ac_link"
8405
 
case "(($ac_try" in
8406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407
 
  *) ac_try_echo=$ac_try;;
8408
 
esac
8409
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410
 
  (eval "$ac_link") 2>conftest.er1
8411
 
  ac_status=$?
8412
 
  grep -v '^ *+' conftest.er1 >conftest.err
8413
 
  rm -f conftest.er1
8414
 
  cat conftest.err >&5
8415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
 
  (exit $ac_status); } && {
8417
 
         test -z "$ac_c_werror_flag" ||
8418
 
         test ! -s conftest.err
8419
 
       } && test -s conftest$ac_exeext &&
8420
 
       $as_test_x conftest$ac_exeext; then
 
5989
if ac_fn_c_try_link "$LINENO"; then :
8421
5990
  am_cv_func_iconv=yes
8422
 
else
8423
 
  echo "$as_me: failed program was:" >&5
8424
 
sed 's/^/| /' conftest.$ac_ext >&5
8425
 
 
8426
 
 
8427
5991
fi
8428
 
 
8429
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8430
 
      conftest$ac_exeext conftest.$ac_ext
 
5992
rm -f core conftest.err conftest.$ac_objext \
 
5993
    conftest$ac_exeext conftest.$ac_ext
8431
5994
    if test "$am_cv_func_iconv" != yes; then
8432
5995
      am_save_LIBS="$LIBS"
8433
5996
      LIBS="$LIBS -liconv"
8434
 
      cat >conftest.$ac_ext <<_ACEOF
8435
 
/* confdefs.h.  */
8436
 
_ACEOF
8437
 
cat confdefs.h >>conftest.$ac_ext
8438
 
cat >>conftest.$ac_ext <<_ACEOF
 
5997
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439
5998
/* end confdefs.h.  */
8440
5999
#include <stdlib.h>
8441
6000
#include <iconv.h>
8449
6008
  return 0;
8450
6009
}
8451
6010
_ACEOF
8452
 
rm -f conftest.$ac_objext conftest$ac_exeext
8453
 
if { (ac_try="$ac_link"
8454
 
case "(($ac_try" in
8455
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456
 
  *) ac_try_echo=$ac_try;;
8457
 
esac
8458
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459
 
  (eval "$ac_link") 2>conftest.er1
8460
 
  ac_status=$?
8461
 
  grep -v '^ *+' conftest.er1 >conftest.err
8462
 
  rm -f conftest.er1
8463
 
  cat conftest.err >&5
8464
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465
 
  (exit $ac_status); } && {
8466
 
         test -z "$ac_c_werror_flag" ||
8467
 
         test ! -s conftest.err
8468
 
       } && test -s conftest$ac_exeext &&
8469
 
       $as_test_x conftest$ac_exeext; then
 
6011
if ac_fn_c_try_link "$LINENO"; then :
8470
6012
  am_cv_lib_iconv=yes
8471
6013
        am_cv_func_iconv=yes
8472
 
else
8473
 
  echo "$as_me: failed program was:" >&5
8474
 
sed 's/^/| /' conftest.$ac_ext >&5
8475
 
 
8476
 
 
8477
6014
fi
8478
 
 
8479
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8480
 
      conftest$ac_exeext conftest.$ac_ext
 
6015
rm -f core conftest.err conftest.$ac_objext \
 
6016
    conftest$ac_exeext conftest.$ac_ext
8481
6017
      LIBS="$am_save_LIBS"
8482
6018
    fi
8483
6019
 
8484
6020
fi
8485
 
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8486
 
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
 
6021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
6022
$as_echo "$am_cv_func_iconv" >&6; }
8487
6023
  if test "$am_cv_func_iconv" = yes; then
8488
6024
 
8489
 
cat >>confdefs.h <<\_ACEOF
8490
 
#define HAVE_ICONV 1
8491
 
_ACEOF
 
6025
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8492
6026
 
8493
 
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8494
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8495
 
    if test "${am_cv_proto_iconv+set}" = set; then
8496
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6027
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
 
6028
$as_echo_n "checking for iconv declaration... " >&6; }
 
6029
    if test "${am_cv_proto_iconv+set}" = set; then :
 
6030
  $as_echo_n "(cached) " >&6
8497
6031
else
8498
6032
 
8499
 
      cat >conftest.$ac_ext <<_ACEOF
8500
 
/* confdefs.h.  */
8501
 
_ACEOF
8502
 
cat confdefs.h >>conftest.$ac_ext
8503
 
cat >>conftest.$ac_ext <<_ACEOF
 
6033
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504
6034
/* end confdefs.h.  */
8505
6035
 
8506
6036
#include <stdlib.h>
8523
6053
  return 0;
8524
6054
}
8525
6055
_ACEOF
8526
 
rm -f conftest.$ac_objext
8527
 
if { (ac_try="$ac_compile"
8528
 
case "(($ac_try" in
8529
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530
 
  *) ac_try_echo=$ac_try;;
8531
 
esac
8532
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533
 
  (eval "$ac_compile") 2>conftest.er1
8534
 
  ac_status=$?
8535
 
  grep -v '^ *+' conftest.er1 >conftest.err
8536
 
  rm -f conftest.er1
8537
 
  cat conftest.err >&5
8538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539
 
  (exit $ac_status); } && {
8540
 
         test -z "$ac_c_werror_flag" ||
8541
 
         test ! -s conftest.err
8542
 
       } && test -s conftest.$ac_objext; then
 
6056
if ac_fn_c_try_compile "$LINENO"; then :
8543
6057
  am_cv_proto_iconv_arg1=""
8544
6058
else
8545
 
  echo "$as_me: failed program was:" >&5
8546
 
sed 's/^/| /' conftest.$ac_ext >&5
8547
 
 
8548
 
        am_cv_proto_iconv_arg1="const"
 
6059
  am_cv_proto_iconv_arg1="const"
8549
6060
fi
8550
 
 
8551
6061
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552
6062
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8553
6063
fi
8554
6064
 
8555
6065
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8556
 
    { echo "$as_me:$LINENO: result: ${ac_t:-
 
6066
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8557
6067
         }$am_cv_proto_iconv" >&5
8558
 
echo "${ECHO_T}${ac_t:-
 
6068
$as_echo "${ac_t:-
8559
6069
         }$am_cv_proto_iconv" >&6; }
8560
6070
 
8561
6071
cat >>confdefs.h <<_ACEOF
8578
6088
 
8579
6089
 
8580
6090
 
8581
 
   { echo "$as_me:$LINENO: checking for socklen_t" >&5
8582
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8583
 
if test "${ac_cv_type_socklen_t+set}" = set; then
8584
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8585
 
else
8586
 
  cat >conftest.$ac_ext <<_ACEOF
8587
 
/* confdefs.h.  */
8588
 
_ACEOF
8589
 
cat confdefs.h >>conftest.$ac_ext
8590
 
cat >>conftest.$ac_ext <<_ACEOF
8591
 
/* end confdefs.h.  */
8592
 
#include <sys/types.h>
 
6091
   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8593
6092
#include <sys/socket.h>
8594
 
 
8595
 
typedef socklen_t ac__type_new_;
8596
 
int
8597
 
main ()
8598
 
{
8599
 
if ((ac__type_new_ *) 0)
8600
 
  return 0;
8601
 
if (sizeof (ac__type_new_))
8602
 
  return 0;
8603
 
  ;
8604
 
  return 0;
8605
 
}
8606
 
_ACEOF
8607
 
rm -f conftest.$ac_objext
8608
 
if { (ac_try="$ac_compile"
8609
 
case "(($ac_try" in
8610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611
 
  *) ac_try_echo=$ac_try;;
8612
 
esac
8613
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614
 
  (eval "$ac_compile") 2>conftest.er1
8615
 
  ac_status=$?
8616
 
  grep -v '^ *+' conftest.er1 >conftest.err
8617
 
  rm -f conftest.er1
8618
 
  cat conftest.err >&5
8619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620
 
  (exit $ac_status); } && {
8621
 
         test -z "$ac_c_werror_flag" ||
8622
 
         test ! -s conftest.err
8623
 
       } && test -s conftest.$ac_objext; then
8624
 
  ac_cv_type_socklen_t=yes
8625
 
else
8626
 
  echo "$as_me: failed program was:" >&5
8627
 
sed 's/^/| /' conftest.$ac_ext >&5
8628
 
 
8629
 
        ac_cv_type_socklen_t=no
8630
 
fi
8631
 
 
8632
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633
 
fi
8634
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8635
 
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8636
 
if test $ac_cv_type_socklen_t = yes; then
8637
 
  :
8638
 
else
8639
 
 
8640
 
      { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8641
 
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8642
 
      if test "${socklen_t_equiv+set}" = set; then
8643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6093
"
 
6094
if test "x$ac_cv_type_socklen_t" = x""yes; then :
 
6095
 
 
6096
else
 
6097
 
 
6098
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
 
6099
$as_echo_n "checking for socklen_t equivalent... " >&6; }
 
6100
      if test "${socklen_t_equiv+set}" = set; then :
 
6101
  $as_echo_n "(cached) " >&6
8644
6102
else
8645
6103
 
8646
6104
         # Systems have either "struct sockaddr *" or
8648
6106
         socklen_t_equiv=
8649
6107
         for arg2 in "struct sockaddr" void; do
8650
6108
            for t in int size_t unsigned long "unsigned long"; do
8651
 
               cat >conftest.$ac_ext <<_ACEOF
8652
 
/* confdefs.h.  */
8653
 
_ACEOF
8654
 
cat confdefs.h >>conftest.$ac_ext
8655
 
cat >>conftest.$ac_ext <<_ACEOF
 
6109
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656
6110
/* end confdefs.h.  */
8657
6111
 
8658
6112
                  #include <sys/types.h>
8671
6125
  return 0;
8672
6126
}
8673
6127
_ACEOF
8674
 
rm -f conftest.$ac_objext
8675
 
if { (ac_try="$ac_compile"
8676
 
case "(($ac_try" in
8677
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678
 
  *) ac_try_echo=$ac_try;;
8679
 
esac
8680
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681
 
  (eval "$ac_compile") 2>conftest.er1
8682
 
  ac_status=$?
8683
 
  grep -v '^ *+' conftest.er1 >conftest.err
8684
 
  rm -f conftest.er1
8685
 
  cat conftest.err >&5
8686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687
 
  (exit $ac_status); } && {
8688
 
         test -z "$ac_c_werror_flag" ||
8689
 
         test ! -s conftest.err
8690
 
       } && test -s conftest.$ac_objext; then
 
6128
if ac_fn_c_try_compile "$LINENO"; then :
8691
6129
 
8692
6130
                  socklen_t_equiv="$t"
8693
6131
                  break
8694
6132
 
8695
 
else
8696
 
  echo "$as_me: failed program was:" >&5
8697
 
sed 's/^/| /' conftest.$ac_ext >&5
8698
 
 
8699
 
 
8700
6133
fi
8701
 
 
8702
6134
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703
6135
            done
8704
6136
         done
8705
6137
 
8706
6138
         if test "x$socklen_t_equiv" = x; then
8707
 
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
8708
 
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
8709
 
   { (exit 1); exit 1; }; }
 
6139
            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
8710
6140
         fi
8711
6141
 
8712
6142
fi
8713
6143
 
8714
 
      { echo "$as_me:$LINENO: result: $socklen_t_equiv" >&5
8715
 
echo "${ECHO_T}$socklen_t_equiv" >&6; }
 
6144
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_equiv" >&5
 
6145
$as_echo "$socklen_t_equiv" >&6; }
8716
6146
 
8717
6147
cat >>confdefs.h <<_ACEOF
8718
6148
#define socklen_t $socklen_t_equiv
8725
6155
#
8726
6156
# statfs stuff
8727
6157
#
8728
 
 
8729
6158
for ac_header in sys/vfs.h
8730
 
do
8731
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8737
 
fi
8738
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8739
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8740
 
echo "${ECHO_T}$ac_res" >&6; }
8741
 
else
8742
 
  # Is the header compilable?
8743
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745
 
cat >conftest.$ac_ext <<_ACEOF
8746
 
/* confdefs.h.  */
8747
 
_ACEOF
8748
 
cat confdefs.h >>conftest.$ac_ext
8749
 
cat >>conftest.$ac_ext <<_ACEOF
8750
 
/* end confdefs.h.  */
8751
 
$ac_includes_default
8752
 
#include <$ac_header>
8753
 
_ACEOF
8754
 
rm -f conftest.$ac_objext
8755
 
if { (ac_try="$ac_compile"
8756
 
case "(($ac_try" in
8757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758
 
  *) ac_try_echo=$ac_try;;
8759
 
esac
8760
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761
 
  (eval "$ac_compile") 2>conftest.er1
8762
 
  ac_status=$?
8763
 
  grep -v '^ *+' conftest.er1 >conftest.err
8764
 
  rm -f conftest.er1
8765
 
  cat conftest.err >&5
8766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767
 
  (exit $ac_status); } && {
8768
 
         test -z "$ac_c_werror_flag" ||
8769
 
         test ! -s conftest.err
8770
 
       } && test -s conftest.$ac_objext; then
8771
 
  ac_header_compiler=yes
8772
 
else
8773
 
  echo "$as_me: failed program was:" >&5
8774
 
sed 's/^/| /' conftest.$ac_ext >&5
8775
 
 
8776
 
        ac_header_compiler=no
8777
 
fi
8778
 
 
8779
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
8782
 
 
8783
 
# Is the header present?
8784
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8786
 
cat >conftest.$ac_ext <<_ACEOF
8787
 
/* confdefs.h.  */
8788
 
_ACEOF
8789
 
cat confdefs.h >>conftest.$ac_ext
8790
 
cat >>conftest.$ac_ext <<_ACEOF
8791
 
/* end confdefs.h.  */
8792
 
#include <$ac_header>
8793
 
_ACEOF
8794
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8795
 
case "(($ac_try" in
8796
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797
 
  *) ac_try_echo=$ac_try;;
8798
 
esac
8799
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8801
 
  ac_status=$?
8802
 
  grep -v '^ *+' conftest.er1 >conftest.err
8803
 
  rm -f conftest.er1
8804
 
  cat conftest.err >&5
8805
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806
 
  (exit $ac_status); } >/dev/null && {
8807
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808
 
         test ! -s conftest.err
8809
 
       }; then
8810
 
  ac_header_preproc=yes
8811
 
else
8812
 
  echo "$as_me: failed program was:" >&5
8813
 
sed 's/^/| /' conftest.$ac_ext >&5
8814
 
 
8815
 
  ac_header_preproc=no
8816
 
fi
8817
 
 
8818
 
rm -f conftest.err conftest.$ac_ext
8819
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
8821
 
 
8822
 
# So?  What about this header?
8823
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8824
 
  yes:no: )
8825
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829
 
    ac_header_preproc=yes
8830
 
    ;;
8831
 
  no:yes:* )
8832
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8835
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8836
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8839
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8840
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8844
 
 
8845
 
    ;;
8846
 
esac
8847
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8848
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8851
 
else
8852
 
  eval "$as_ac_Header=\$ac_header_preproc"
8853
 
fi
8854
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8855
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8856
 
echo "${ECHO_T}$ac_res" >&6; }
8857
 
 
8858
 
fi
8859
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6159
do :
 
6160
  ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
 
6161
if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
8860
6162
  cat >>confdefs.h <<_ACEOF
8861
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6163
#define HAVE_SYS_VFS_H 1
8862
6164
_ACEOF
8863
6165
 
8864
6166
fi
8865
6167
 
8866
6168
done
8867
6169
 
8868
 
 
8869
6170
for ac_header in sys/statvfs.h
8870
 
do
8871
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8872
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8873
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8874
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8875
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8876
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8877
 
fi
8878
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8879
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8880
 
echo "${ECHO_T}$ac_res" >&6; }
8881
 
else
8882
 
  # Is the header compilable?
8883
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8884
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8885
 
cat >conftest.$ac_ext <<_ACEOF
8886
 
/* confdefs.h.  */
8887
 
_ACEOF
8888
 
cat confdefs.h >>conftest.$ac_ext
8889
 
cat >>conftest.$ac_ext <<_ACEOF
8890
 
/* end confdefs.h.  */
8891
 
$ac_includes_default
8892
 
#include <$ac_header>
8893
 
_ACEOF
8894
 
rm -f conftest.$ac_objext
8895
 
if { (ac_try="$ac_compile"
8896
 
case "(($ac_try" in
8897
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898
 
  *) ac_try_echo=$ac_try;;
8899
 
esac
8900
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901
 
  (eval "$ac_compile") 2>conftest.er1
8902
 
  ac_status=$?
8903
 
  grep -v '^ *+' conftest.er1 >conftest.err
8904
 
  rm -f conftest.er1
8905
 
  cat conftest.err >&5
8906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907
 
  (exit $ac_status); } && {
8908
 
         test -z "$ac_c_werror_flag" ||
8909
 
         test ! -s conftest.err
8910
 
       } && test -s conftest.$ac_objext; then
8911
 
  ac_header_compiler=yes
8912
 
else
8913
 
  echo "$as_me: failed program was:" >&5
8914
 
sed 's/^/| /' conftest.$ac_ext >&5
8915
 
 
8916
 
        ac_header_compiler=no
8917
 
fi
8918
 
 
8919
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8921
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
8922
 
 
8923
 
# Is the header present?
8924
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8925
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8926
 
cat >conftest.$ac_ext <<_ACEOF
8927
 
/* confdefs.h.  */
8928
 
_ACEOF
8929
 
cat confdefs.h >>conftest.$ac_ext
8930
 
cat >>conftest.$ac_ext <<_ACEOF
8931
 
/* end confdefs.h.  */
8932
 
#include <$ac_header>
8933
 
_ACEOF
8934
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8935
 
case "(($ac_try" in
8936
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937
 
  *) ac_try_echo=$ac_try;;
8938
 
esac
8939
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8941
 
  ac_status=$?
8942
 
  grep -v '^ *+' conftest.er1 >conftest.err
8943
 
  rm -f conftest.er1
8944
 
  cat conftest.err >&5
8945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946
 
  (exit $ac_status); } >/dev/null && {
8947
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8948
 
         test ! -s conftest.err
8949
 
       }; then
8950
 
  ac_header_preproc=yes
8951
 
else
8952
 
  echo "$as_me: failed program was:" >&5
8953
 
sed 's/^/| /' conftest.$ac_ext >&5
8954
 
 
8955
 
  ac_header_preproc=no
8956
 
fi
8957
 
 
8958
 
rm -f conftest.err conftest.$ac_ext
8959
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8960
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
8961
 
 
8962
 
# So?  What about this header?
8963
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8964
 
  yes:no: )
8965
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8966
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8967
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8968
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8969
 
    ac_header_preproc=yes
8970
 
    ;;
8971
 
  no:yes:* )
8972
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8973
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8974
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8975
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8976
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8977
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8978
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8979
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8980
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8981
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8982
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8983
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8984
 
 
8985
 
    ;;
8986
 
esac
8987
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8988
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8989
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8991
 
else
8992
 
  eval "$as_ac_Header=\$ac_header_preproc"
8993
 
fi
8994
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8995
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8996
 
echo "${ECHO_T}$ac_res" >&6; }
8997
 
 
8998
 
fi
8999
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6171
do :
 
6172
  ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
 
6173
if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
9000
6174
  cat >>confdefs.h <<_ACEOF
9001
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6175
#define HAVE_SYS_STATVFS_H 1
9002
6176
_ACEOF
9003
6177
 
9004
6178
fi
9005
6179
 
9006
6180
done
9007
6181
 
9008
 
 
9009
6182
for ac_header in sys/statfs.h
9010
 
do
9011
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9012
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9013
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9014
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9015
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9016
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9017
 
fi
9018
 
ac_res=`eval echo '${'$as_ac_Header'}'`
9019
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9020
 
echo "${ECHO_T}$ac_res" >&6; }
9021
 
else
9022
 
  # Is the header compilable?
9023
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9025
 
cat >conftest.$ac_ext <<_ACEOF
9026
 
/* confdefs.h.  */
9027
 
_ACEOF
9028
 
cat confdefs.h >>conftest.$ac_ext
9029
 
cat >>conftest.$ac_ext <<_ACEOF
9030
 
/* end confdefs.h.  */
9031
 
$ac_includes_default
9032
 
#include <$ac_header>
9033
 
_ACEOF
9034
 
rm -f conftest.$ac_objext
9035
 
if { (ac_try="$ac_compile"
9036
 
case "(($ac_try" in
9037
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038
 
  *) ac_try_echo=$ac_try;;
9039
 
esac
9040
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041
 
  (eval "$ac_compile") 2>conftest.er1
9042
 
  ac_status=$?
9043
 
  grep -v '^ *+' conftest.er1 >conftest.err
9044
 
  rm -f conftest.er1
9045
 
  cat conftest.err >&5
9046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047
 
  (exit $ac_status); } && {
9048
 
         test -z "$ac_c_werror_flag" ||
9049
 
         test ! -s conftest.err
9050
 
       } && test -s conftest.$ac_objext; then
9051
 
  ac_header_compiler=yes
9052
 
else
9053
 
  echo "$as_me: failed program was:" >&5
9054
 
sed 's/^/| /' conftest.$ac_ext >&5
9055
 
 
9056
 
        ac_header_compiler=no
9057
 
fi
9058
 
 
9059
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9061
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
9062
 
 
9063
 
# Is the header present?
9064
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9065
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9066
 
cat >conftest.$ac_ext <<_ACEOF
9067
 
/* confdefs.h.  */
9068
 
_ACEOF
9069
 
cat confdefs.h >>conftest.$ac_ext
9070
 
cat >>conftest.$ac_ext <<_ACEOF
9071
 
/* end confdefs.h.  */
9072
 
#include <$ac_header>
9073
 
_ACEOF
9074
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9075
 
case "(($ac_try" in
9076
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077
 
  *) ac_try_echo=$ac_try;;
9078
 
esac
9079
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9081
 
  ac_status=$?
9082
 
  grep -v '^ *+' conftest.er1 >conftest.err
9083
 
  rm -f conftest.er1
9084
 
  cat conftest.err >&5
9085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086
 
  (exit $ac_status); } >/dev/null && {
9087
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9088
 
         test ! -s conftest.err
9089
 
       }; then
9090
 
  ac_header_preproc=yes
9091
 
else
9092
 
  echo "$as_me: failed program was:" >&5
9093
 
sed 's/^/| /' conftest.$ac_ext >&5
9094
 
 
9095
 
  ac_header_preproc=no
9096
 
fi
9097
 
 
9098
 
rm -f conftest.err conftest.$ac_ext
9099
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9100
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
9101
 
 
9102
 
# So?  What about this header?
9103
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9104
 
  yes:no: )
9105
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9106
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9107
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9108
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9109
 
    ac_header_preproc=yes
9110
 
    ;;
9111
 
  no:yes:* )
9112
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9113
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9114
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9115
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9116
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9117
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9118
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9119
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9120
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9121
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9122
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9123
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9124
 
 
9125
 
    ;;
9126
 
esac
9127
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9128
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9129
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9130
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9131
 
else
9132
 
  eval "$as_ac_Header=\$ac_header_preproc"
9133
 
fi
9134
 
ac_res=`eval echo '${'$as_ac_Header'}'`
9135
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9136
 
echo "${ECHO_T}$ac_res" >&6; }
9137
 
 
9138
 
fi
9139
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6183
do :
 
6184
  ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
 
6185
if test "x$ac_cv_header_sys_statfs_h" = x""yes; then :
9140
6186
  cat >>confdefs.h <<_ACEOF
9141
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6187
#define HAVE_SYS_STATFS_H 1
9142
6188
_ACEOF
9143
6189
 
9144
6190
fi
9145
6191
 
9146
6192
done
9147
6193
 
9148
 
 
9149
6194
for ac_header in sys/param.h
9150
 
do
9151
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9152
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9153
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9154
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9155
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9156
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9157
 
fi
9158
 
ac_res=`eval echo '${'$as_ac_Header'}'`
9159
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9160
 
echo "${ECHO_T}$ac_res" >&6; }
9161
 
else
9162
 
  # Is the header compilable?
9163
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9164
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9165
 
cat >conftest.$ac_ext <<_ACEOF
9166
 
/* confdefs.h.  */
9167
 
_ACEOF
9168
 
cat confdefs.h >>conftest.$ac_ext
9169
 
cat >>conftest.$ac_ext <<_ACEOF
9170
 
/* end confdefs.h.  */
9171
 
$ac_includes_default
9172
 
#include <$ac_header>
9173
 
_ACEOF
9174
 
rm -f conftest.$ac_objext
9175
 
if { (ac_try="$ac_compile"
9176
 
case "(($ac_try" in
9177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178
 
  *) ac_try_echo=$ac_try;;
9179
 
esac
9180
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181
 
  (eval "$ac_compile") 2>conftest.er1
9182
 
  ac_status=$?
9183
 
  grep -v '^ *+' conftest.er1 >conftest.err
9184
 
  rm -f conftest.er1
9185
 
  cat conftest.err >&5
9186
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187
 
  (exit $ac_status); } && {
9188
 
         test -z "$ac_c_werror_flag" ||
9189
 
         test ! -s conftest.err
9190
 
       } && test -s conftest.$ac_objext; then
9191
 
  ac_header_compiler=yes
9192
 
else
9193
 
  echo "$as_me: failed program was:" >&5
9194
 
sed 's/^/| /' conftest.$ac_ext >&5
9195
 
 
9196
 
        ac_header_compiler=no
9197
 
fi
9198
 
 
9199
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9201
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
9202
 
 
9203
 
# Is the header present?
9204
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9205
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9206
 
cat >conftest.$ac_ext <<_ACEOF
9207
 
/* confdefs.h.  */
9208
 
_ACEOF
9209
 
cat confdefs.h >>conftest.$ac_ext
9210
 
cat >>conftest.$ac_ext <<_ACEOF
9211
 
/* end confdefs.h.  */
9212
 
#include <$ac_header>
9213
 
_ACEOF
9214
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9215
 
case "(($ac_try" in
9216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217
 
  *) ac_try_echo=$ac_try;;
9218
 
esac
9219
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9221
 
  ac_status=$?
9222
 
  grep -v '^ *+' conftest.er1 >conftest.err
9223
 
  rm -f conftest.er1
9224
 
  cat conftest.err >&5
9225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226
 
  (exit $ac_status); } >/dev/null && {
9227
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9228
 
         test ! -s conftest.err
9229
 
       }; then
9230
 
  ac_header_preproc=yes
9231
 
else
9232
 
  echo "$as_me: failed program was:" >&5
9233
 
sed 's/^/| /' conftest.$ac_ext >&5
9234
 
 
9235
 
  ac_header_preproc=no
9236
 
fi
9237
 
 
9238
 
rm -f conftest.err conftest.$ac_ext
9239
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9240
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
9241
 
 
9242
 
# So?  What about this header?
9243
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9244
 
  yes:no: )
9245
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9246
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9247
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9248
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9249
 
    ac_header_preproc=yes
9250
 
    ;;
9251
 
  no:yes:* )
9252
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9253
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9254
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9255
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9256
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9257
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9258
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9259
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9260
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9261
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9262
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9263
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9264
 
 
9265
 
    ;;
9266
 
esac
9267
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9268
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9269
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9270
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9271
 
else
9272
 
  eval "$as_ac_Header=\$ac_header_preproc"
9273
 
fi
9274
 
ac_res=`eval echo '${'$as_ac_Header'}'`
9275
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9276
 
echo "${ECHO_T}$ac_res" >&6; }
9277
 
 
9278
 
fi
9279
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6195
do :
 
6196
  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
 
6197
if test "x$ac_cv_header_sys_param_h" = x""yes; then :
9280
6198
  cat >>confdefs.h <<_ACEOF
9281
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6199
#define HAVE_SYS_PARAM_H 1
9282
6200
_ACEOF
9283
6201
 
9284
6202
fi
9293
6211
  #endif
9294
6212
  "
9295
6213
 
9296
 
 
9297
6214
for ac_header in sys/mount.h
9298
 
do
9299
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9300
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9301
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9302
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9303
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9304
 
else
9305
 
  cat >conftest.$ac_ext <<_ACEOF
9306
 
/* confdefs.h.  */
9307
 
_ACEOF
9308
 
cat confdefs.h >>conftest.$ac_ext
9309
 
cat >>conftest.$ac_ext <<_ACEOF
9310
 
/* end confdefs.h.  */
9311
 
$mount_includes
9312
 
 
9313
 
#include <$ac_header>
9314
 
_ACEOF
9315
 
rm -f conftest.$ac_objext
9316
 
if { (ac_try="$ac_compile"
9317
 
case "(($ac_try" in
9318
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319
 
  *) ac_try_echo=$ac_try;;
9320
 
esac
9321
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322
 
  (eval "$ac_compile") 2>conftest.er1
9323
 
  ac_status=$?
9324
 
  grep -v '^ *+' conftest.er1 >conftest.err
9325
 
  rm -f conftest.er1
9326
 
  cat conftest.err >&5
9327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328
 
  (exit $ac_status); } && {
9329
 
         test -z "$ac_c_werror_flag" ||
9330
 
         test ! -s conftest.err
9331
 
       } && test -s conftest.$ac_objext; then
9332
 
  eval "$as_ac_Header=yes"
9333
 
else
9334
 
  echo "$as_me: failed program was:" >&5
9335
 
sed 's/^/| /' conftest.$ac_ext >&5
9336
 
 
9337
 
        eval "$as_ac_Header=no"
9338
 
fi
9339
 
 
9340
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341
 
fi
9342
 
ac_res=`eval echo '${'$as_ac_Header'}'`
9343
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9344
 
echo "${ECHO_T}$ac_res" >&6; }
9345
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6215
do :
 
6216
  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
 
6217
"
 
6218
if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
9346
6219
  cat >>confdefs.h <<_ACEOF
9347
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6220
#define HAVE_SYS_MOUNT_H 1
9348
6221
_ACEOF
9349
6222
 
9350
6223
fi
9354
6227
 
9355
6228
#################################################
9356
6229
# these tests are taken from the GNU fileutils package
9357
 
{ echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
9358
 
echo "$as_me: checking how to get filesystem space usage..." >&6;}
 
6230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
 
6231
$as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
9359
6232
space=no
9360
6233
 
9361
6234
# Test for statvfs64.
9362
6235
if test $space = no; then
9363
6236
  # SVR4
9364
 
  { echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
9365
 
echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6; }
9366
 
if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
9367
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6237
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
 
6238
$as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
 
6239
if test "${fu_cv_sys_stat_statvfs64+set}" = set; then :
 
6240
  $as_echo_n "(cached) " >&6
9368
6241
else
9369
 
  if test "$cross_compiling" = yes; then
 
6242
  if test "$cross_compiling" = yes; then :
9370
6243
  fu_cv_sys_stat_statvfs64=cross
9371
6244
else
9372
 
  cat >conftest.$ac_ext <<_ACEOF
9373
 
/* confdefs.h.  */
9374
 
_ACEOF
9375
 
cat confdefs.h >>conftest.$ac_ext
9376
 
cat >>conftest.$ac_ext <<_ACEOF
 
6245
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377
6246
/* end confdefs.h.  */
9378
6247
 
9379
6248
#if defined(HAVE_UNISTD_H)
9387
6256
    exit (statvfs64 (".", &fsd));
9388
6257
  }
9389
6258
_ACEOF
9390
 
rm -f conftest$ac_exeext
9391
 
if { (ac_try="$ac_link"
9392
 
case "(($ac_try" in
9393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394
 
  *) ac_try_echo=$ac_try;;
9395
 
esac
9396
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397
 
  (eval "$ac_link") 2>&5
9398
 
  ac_status=$?
9399
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9401
 
  { (case "(($ac_try" in
9402
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403
 
  *) ac_try_echo=$ac_try;;
9404
 
esac
9405
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406
 
  (eval "$ac_try") 2>&5
9407
 
  ac_status=$?
9408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409
 
  (exit $ac_status); }; }; then
 
6259
if ac_fn_c_try_run "$LINENO"; then :
9410
6260
  fu_cv_sys_stat_statvfs64=yes
9411
6261
else
9412
 
  echo "$as_me: program exited with status $ac_status" >&5
9413
 
echo "$as_me: failed program was:" >&5
9414
 
sed 's/^/| /' conftest.$ac_ext >&5
9415
 
 
9416
 
( exit $ac_status )
9417
 
fu_cv_sys_stat_statvfs64=no
9418
 
fi
9419
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9420
 
fi
9421
 
 
9422
 
 
9423
 
fi
9424
 
{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
9425
 
echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6; }
 
6262
  fu_cv_sys_stat_statvfs64=no
 
6263
fi
 
6264
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6265
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6266
fi
 
6267
 
 
6268
fi
 
6269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
 
6270
$as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
9426
6271
  if test $fu_cv_sys_stat_statvfs64 = yes; then
9427
6272
    space=yes
9428
6273
 
9429
 
cat >>confdefs.h <<\_ACEOF
9430
 
#define STAT_STATVFS64 1
9431
 
_ACEOF
 
6274
$as_echo "#define STAT_STATVFS64 1" >>confdefs.h
9432
6275
 
9433
6276
  fi
9434
6277
fi
9441
6284
# is what it gets when this test fails.
9442
6285
if test $space = no; then
9443
6286
  # SVR4
9444
 
  { echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
9445
 
echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6; }
9446
 
if test "${fu_cv_sys_stat_statvfs+set}" = set; then
9447
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6287
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
 
6288
$as_echo_n "checking statvfs function (SVR4)... " >&6; }
 
6289
if test "${fu_cv_sys_stat_statvfs+set}" = set; then :
 
6290
  $as_echo_n "(cached) " >&6
9448
6291
else
9449
 
  cat >conftest.$ac_ext <<_ACEOF
9450
 
/* confdefs.h.  */
9451
 
_ACEOF
9452
 
cat confdefs.h >>conftest.$ac_ext
9453
 
cat >>conftest.$ac_ext <<_ACEOF
 
6292
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454
6293
/* end confdefs.h.  */
9455
6294
#include <sys/types.h>
9456
6295
#include <sys/statvfs.h>
9462
6301
  return 0;
9463
6302
}
9464
6303
_ACEOF
9465
 
rm -f conftest.$ac_objext conftest$ac_exeext
9466
 
if { (ac_try="$ac_link"
9467
 
case "(($ac_try" in
9468
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469
 
  *) ac_try_echo=$ac_try;;
9470
 
esac
9471
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472
 
  (eval "$ac_link") 2>conftest.er1
9473
 
  ac_status=$?
9474
 
  grep -v '^ *+' conftest.er1 >conftest.err
9475
 
  rm -f conftest.er1
9476
 
  cat conftest.err >&5
9477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478
 
  (exit $ac_status); } && {
9479
 
         test -z "$ac_c_werror_flag" ||
9480
 
         test ! -s conftest.err
9481
 
       } && test -s conftest$ac_exeext &&
9482
 
       $as_test_x conftest$ac_exeext; then
 
6304
if ac_fn_c_try_link "$LINENO"; then :
9483
6305
  fu_cv_sys_stat_statvfs=yes
9484
6306
else
9485
 
  echo "$as_me: failed program was:" >&5
9486
 
sed 's/^/| /' conftest.$ac_ext >&5
9487
 
 
9488
 
        fu_cv_sys_stat_statvfs=no
9489
 
fi
9490
 
 
9491
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9492
 
      conftest$ac_exeext conftest.$ac_ext
9493
 
fi
9494
 
{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
9495
 
echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
 
6307
  fu_cv_sys_stat_statvfs=no
 
6308
fi
 
6309
rm -f core conftest.err conftest.$ac_objext \
 
6310
    conftest$ac_exeext conftest.$ac_ext
 
6311
fi
 
6312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
 
6313
$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
9496
6314
  if test $fu_cv_sys_stat_statvfs = yes; then
9497
6315
    space=yes
9498
6316
 
9499
 
cat >>confdefs.h <<\_ACEOF
9500
 
#define STAT_STATVFS 1
9501
 
_ACEOF
 
6317
$as_echo "#define STAT_STATVFS 1" >>confdefs.h
9502
6318
 
9503
6319
  fi
9504
6320
fi
9505
6321
 
9506
6322
if test $space = no; then
9507
6323
  # DEC Alpha running OSF/1
9508
 
  { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
9509
 
echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
9510
 
  if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
9511
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6324
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
 
6325
$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
 
6326
  if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then :
 
6327
  $as_echo_n "(cached) " >&6
9512
6328
else
9513
 
  if test "$cross_compiling" = yes; then
 
6329
  if test "$cross_compiling" = yes; then :
9514
6330
  fu_cv_sys_stat_statfs3_osf1=no
9515
6331
else
9516
 
  cat >conftest.$ac_ext <<_ACEOF
9517
 
/* confdefs.h.  */
9518
 
_ACEOF
9519
 
cat confdefs.h >>conftest.$ac_ext
9520
 
cat >>conftest.$ac_ext <<_ACEOF
 
6332
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521
6333
/* end confdefs.h.  */
9522
6334
 
9523
6335
#include <sys/param.h>
9530
6342
    exit (statfs (".", &fsd, sizeof (struct statfs)));
9531
6343
  }
9532
6344
_ACEOF
9533
 
rm -f conftest$ac_exeext
9534
 
if { (ac_try="$ac_link"
9535
 
case "(($ac_try" in
9536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537
 
  *) ac_try_echo=$ac_try;;
9538
 
esac
9539
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540
 
  (eval "$ac_link") 2>&5
9541
 
  ac_status=$?
9542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9544
 
  { (case "(($ac_try" in
9545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546
 
  *) ac_try_echo=$ac_try;;
9547
 
esac
9548
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549
 
  (eval "$ac_try") 2>&5
9550
 
  ac_status=$?
9551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552
 
  (exit $ac_status); }; }; then
 
6345
if ac_fn_c_try_run "$LINENO"; then :
9553
6346
  fu_cv_sys_stat_statfs3_osf1=yes
9554
6347
else
9555
 
  echo "$as_me: program exited with status $ac_status" >&5
9556
 
echo "$as_me: failed program was:" >&5
9557
 
sed 's/^/| /' conftest.$ac_ext >&5
9558
 
 
9559
 
( exit $ac_status )
9560
 
fu_cv_sys_stat_statfs3_osf1=no
9561
 
fi
9562
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9563
 
fi
9564
 
 
 
6348
  fu_cv_sys_stat_statfs3_osf1=no
 
6349
fi
 
6350
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6351
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6352
fi
9565
6353
 
9566
6354
fi
9567
6355
 
9571
6359
  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9572
6360
    space=yes
9573
6361
 
9574
 
cat >>confdefs.h <<\_ACEOF
9575
 
#define STAT_STATFS3_OSF1 1
9576
 
_ACEOF
 
6362
$as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
9577
6363
 
9578
6364
  fi
9579
6365
fi
9580
6366
 
9581
6367
if test $space = no; then
9582
6368
# AIX
9583
 
  { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9584
 
echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
9585
 
  if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
9586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
 
6370
$as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
 
6371
  if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then :
 
6372
  $as_echo_n "(cached) " >&6
9587
6373
else
9588
 
  if test "$cross_compiling" = yes; then
 
6374
  if test "$cross_compiling" = yes; then :
9589
6375
  fu_cv_sys_stat_statfs2_bsize=no
9590
6376
else
9591
 
  cat >conftest.$ac_ext <<_ACEOF
9592
 
/* confdefs.h.  */
9593
 
_ACEOF
9594
 
cat confdefs.h >>conftest.$ac_ext
9595
 
cat >>conftest.$ac_ext <<_ACEOF
 
6377
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596
6378
/* end confdefs.h.  */
9597
6379
 
9598
6380
#ifdef HAVE_SYS_PARAM_H
9611
6393
  exit (statfs (".", &fsd));
9612
6394
  }
9613
6395
_ACEOF
9614
 
rm -f conftest$ac_exeext
9615
 
if { (ac_try="$ac_link"
9616
 
case "(($ac_try" in
9617
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618
 
  *) ac_try_echo=$ac_try;;
9619
 
esac
9620
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621
 
  (eval "$ac_link") 2>&5
9622
 
  ac_status=$?
9623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9625
 
  { (case "(($ac_try" in
9626
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627
 
  *) ac_try_echo=$ac_try;;
9628
 
esac
9629
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630
 
  (eval "$ac_try") 2>&5
9631
 
  ac_status=$?
9632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633
 
  (exit $ac_status); }; }; then
 
6396
if ac_fn_c_try_run "$LINENO"; then :
9634
6397
  fu_cv_sys_stat_statfs2_bsize=yes
9635
6398
else
9636
 
  echo "$as_me: program exited with status $ac_status" >&5
9637
 
echo "$as_me: failed program was:" >&5
9638
 
sed 's/^/| /' conftest.$ac_ext >&5
9639
 
 
9640
 
( exit $ac_status )
9641
 
fu_cv_sys_stat_statfs2_bsize=no
9642
 
fi
9643
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9644
 
fi
9645
 
 
9646
 
 
9647
 
fi
9648
 
 
9649
 
  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
9650
 
echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
 
6399
  fu_cv_sys_stat_statfs2_bsize=no
 
6400
fi
 
6401
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6402
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6403
fi
 
6404
 
 
6405
fi
 
6406
 
 
6407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
 
6408
$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
9651
6409
  if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9652
6410
    space=yes
9653
6411
 
9654
 
cat >>confdefs.h <<\_ACEOF
9655
 
#define STAT_STATFS2_BSIZE 1
9656
 
_ACEOF
 
6412
$as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
9657
6413
 
9658
6414
  fi
9659
6415
fi
9660
6416
 
9661
6417
if test $space = no; then
9662
6418
# SVR3
9663
 
  { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9664
 
echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
9665
 
  if test "${fu_cv_sys_stat_statfs4+set}" = set; then
9666
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6419
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
 
6420
$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
 
6421
  if test "${fu_cv_sys_stat_statfs4+set}" = set; then :
 
6422
  $as_echo_n "(cached) " >&6
9667
6423
else
9668
 
  if test "$cross_compiling" = yes; then
 
6424
  if test "$cross_compiling" = yes; then :
9669
6425
  fu_cv_sys_stat_statfs4=no
9670
6426
else
9671
 
  cat >conftest.$ac_ext <<_ACEOF
9672
 
/* confdefs.h.  */
9673
 
_ACEOF
9674
 
cat confdefs.h >>conftest.$ac_ext
9675
 
cat >>conftest.$ac_ext <<_ACEOF
 
6427
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676
6428
/* end confdefs.h.  */
9677
6429
#include <sys/types.h>
9678
6430
#include <sys/statfs.h>
9682
6434
  exit (statfs (".", &fsd, sizeof fsd, 0));
9683
6435
  }
9684
6436
_ACEOF
9685
 
rm -f conftest$ac_exeext
9686
 
if { (ac_try="$ac_link"
9687
 
case "(($ac_try" in
9688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689
 
  *) ac_try_echo=$ac_try;;
9690
 
esac
9691
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692
 
  (eval "$ac_link") 2>&5
9693
 
  ac_status=$?
9694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9696
 
  { (case "(($ac_try" in
9697
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698
 
  *) ac_try_echo=$ac_try;;
9699
 
esac
9700
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701
 
  (eval "$ac_try") 2>&5
9702
 
  ac_status=$?
9703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704
 
  (exit $ac_status); }; }; then
 
6437
if ac_fn_c_try_run "$LINENO"; then :
9705
6438
  fu_cv_sys_stat_statfs4=yes
9706
6439
else
9707
 
  echo "$as_me: program exited with status $ac_status" >&5
9708
 
echo "$as_me: failed program was:" >&5
9709
 
sed 's/^/| /' conftest.$ac_ext >&5
9710
 
 
9711
 
( exit $ac_status )
9712
 
fu_cv_sys_stat_statfs4=no
9713
 
fi
9714
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9715
 
fi
9716
 
 
9717
 
 
9718
 
fi
9719
 
 
9720
 
  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
9721
 
echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
 
6440
  fu_cv_sys_stat_statfs4=no
 
6441
fi
 
6442
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6443
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6444
fi
 
6445
 
 
6446
fi
 
6447
 
 
6448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
 
6449
$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
9722
6450
  if test $fu_cv_sys_stat_statfs4 = yes; then
9723
6451
    space=yes
9724
6452
 
9725
 
cat >>confdefs.h <<\_ACEOF
9726
 
#define STAT_STATFS4 1
9727
 
_ACEOF
 
6453
$as_echo "#define STAT_STATFS4 1" >>confdefs.h
9728
6454
 
9729
6455
  fi
9730
6456
fi
9731
6457
 
9732
6458
if test $space = no; then
9733
6459
# 4.4BSD and NetBSD
9734
 
  { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9735
 
echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
9736
 
  if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
9737
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6460
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
 
6461
$as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
 
6462
  if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then :
 
6463
  $as_echo_n "(cached) " >&6
9738
6464
else
9739
 
  if test "$cross_compiling" = yes; then
 
6465
  if test "$cross_compiling" = yes; then :
9740
6466
  fu_cv_sys_stat_statfs2_fsize=no
9741
6467
else
9742
 
  cat >conftest.$ac_ext <<_ACEOF
9743
 
/* confdefs.h.  */
9744
 
_ACEOF
9745
 
cat confdefs.h >>conftest.$ac_ext
9746
 
cat >>conftest.$ac_ext <<_ACEOF
 
6468
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747
6469
/* end confdefs.h.  */
9748
6470
#include <sys/types.h>
9749
6471
#ifdef HAVE_SYS_PARAM_H
9759
6481
  exit (statfs (".", &fsd));
9760
6482
  }
9761
6483
_ACEOF
9762
 
rm -f conftest$ac_exeext
9763
 
if { (ac_try="$ac_link"
9764
 
case "(($ac_try" in
9765
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766
 
  *) ac_try_echo=$ac_try;;
9767
 
esac
9768
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769
 
  (eval "$ac_link") 2>&5
9770
 
  ac_status=$?
9771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9773
 
  { (case "(($ac_try" in
9774
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775
 
  *) ac_try_echo=$ac_try;;
9776
 
esac
9777
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778
 
  (eval "$ac_try") 2>&5
9779
 
  ac_status=$?
9780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781
 
  (exit $ac_status); }; }; then
 
6484
if ac_fn_c_try_run "$LINENO"; then :
9782
6485
  fu_cv_sys_stat_statfs2_fsize=yes
9783
6486
else
9784
 
  echo "$as_me: program exited with status $ac_status" >&5
9785
 
echo "$as_me: failed program was:" >&5
9786
 
sed 's/^/| /' conftest.$ac_ext >&5
9787
 
 
9788
 
( exit $ac_status )
9789
 
fu_cv_sys_stat_statfs2_fsize=no
9790
 
fi
9791
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9792
 
fi
9793
 
 
9794
 
 
9795
 
fi
9796
 
 
9797
 
  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
9798
 
echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
 
6487
  fu_cv_sys_stat_statfs2_fsize=no
 
6488
fi
 
6489
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6490
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6491
fi
 
6492
 
 
6493
fi
 
6494
 
 
6495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
 
6496
$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
9799
6497
  if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9800
6498
    space=yes
9801
6499
 
9802
 
cat >>confdefs.h <<\_ACEOF
9803
 
#define STAT_STATFS2_FSIZE 1
9804
 
_ACEOF
 
6500
$as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
9805
6501
 
9806
6502
  fi
9807
6503
fi
9808
6504
 
9809
6505
if test $space = no; then
9810
6506
  # Ultrix
9811
 
  { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9812
 
echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
9813
 
  if test "${fu_cv_sys_stat_fs_data+set}" = set; then
9814
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6507
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
 
6508
$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
 
6509
  if test "${fu_cv_sys_stat_fs_data+set}" = set; then :
 
6510
  $as_echo_n "(cached) " >&6
9815
6511
else
9816
 
  if test "$cross_compiling" = yes; then
 
6512
  if test "$cross_compiling" = yes; then :
9817
6513
  fu_cv_sys_stat_fs_data=no
9818
6514
else
9819
 
  cat >conftest.$ac_ext <<_ACEOF
9820
 
/* confdefs.h.  */
9821
 
_ACEOF
9822
 
cat confdefs.h >>conftest.$ac_ext
9823
 
cat >>conftest.$ac_ext <<_ACEOF
 
6515
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824
6516
/* end confdefs.h.  */
9825
6517
#include <sys/types.h>
9826
6518
#ifdef HAVE_SYS_PARAM_H
9840
6532
  exit (statfs (".", &fsd) != 1);
9841
6533
  }
9842
6534
_ACEOF
9843
 
rm -f conftest$ac_exeext
9844
 
if { (ac_try="$ac_link"
9845
 
case "(($ac_try" in
9846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847
 
  *) ac_try_echo=$ac_try;;
9848
 
esac
9849
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850
 
  (eval "$ac_link") 2>&5
9851
 
  ac_status=$?
9852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854
 
  { (case "(($ac_try" in
9855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856
 
  *) ac_try_echo=$ac_try;;
9857
 
esac
9858
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859
 
  (eval "$ac_try") 2>&5
9860
 
  ac_status=$?
9861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862
 
  (exit $ac_status); }; }; then
 
6535
if ac_fn_c_try_run "$LINENO"; then :
9863
6536
  fu_cv_sys_stat_fs_data=yes
9864
6537
else
9865
 
  echo "$as_me: program exited with status $ac_status" >&5
9866
 
echo "$as_me: failed program was:" >&5
9867
 
sed 's/^/| /' conftest.$ac_ext >&5
9868
 
 
9869
 
( exit $ac_status )
9870
 
fu_cv_sys_stat_fs_data=no
9871
 
fi
9872
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9873
 
fi
9874
 
 
9875
 
 
9876
 
fi
9877
 
 
9878
 
  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
9879
 
echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
 
6538
  fu_cv_sys_stat_fs_data=no
 
6539
fi
 
6540
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6541
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6542
fi
 
6543
 
 
6544
fi
 
6545
 
 
6546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
 
6547
$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
9880
6548
  if test $fu_cv_sys_stat_fs_data = yes; then
9881
6549
    space=yes
9882
6550
 
9883
 
cat >>confdefs.h <<\_ACEOF
9884
 
#define STAT_STATFS2_FS_DATA 1
9885
 
_ACEOF
 
6551
$as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
9886
6552
 
9887
6553
  fi
9888
6554
fi
9909
6575
#endif
9910
6576
"
9911
6577
 
9912
 
{ echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
9913
 
echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
9914
 
if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
9915
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9916
 
else
9917
 
  cat >conftest.$ac_ext <<_ACEOF
9918
 
/* confdefs.h.  */
9919
 
_ACEOF
9920
 
cat confdefs.h >>conftest.$ac_ext
9921
 
cat >>conftest.$ac_ext <<_ACEOF
9922
 
/* end confdefs.h.  */
9923
 
$statxfs_includes
9924
 
 
9925
 
int
9926
 
main ()
9927
 
{
9928
 
static struct statfs ac_aggr;
9929
 
if (ac_aggr.f_namemax)
9930
 
return 0;
9931
 
  ;
9932
 
  return 0;
9933
 
}
9934
 
_ACEOF
9935
 
rm -f conftest.$ac_objext
9936
 
if { (ac_try="$ac_compile"
9937
 
case "(($ac_try" in
9938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939
 
  *) ac_try_echo=$ac_try;;
9940
 
esac
9941
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942
 
  (eval "$ac_compile") 2>conftest.er1
9943
 
  ac_status=$?
9944
 
  grep -v '^ *+' conftest.er1 >conftest.err
9945
 
  rm -f conftest.er1
9946
 
  cat conftest.err >&5
9947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948
 
  (exit $ac_status); } && {
9949
 
         test -z "$ac_c_werror_flag" ||
9950
 
         test ! -s conftest.err
9951
 
       } && test -s conftest.$ac_objext; then
9952
 
  ac_cv_member_struct_statfs_f_namemax=yes
9953
 
else
9954
 
  echo "$as_me: failed program was:" >&5
9955
 
sed 's/^/| /' conftest.$ac_ext >&5
9956
 
 
9957
 
        cat >conftest.$ac_ext <<_ACEOF
9958
 
/* confdefs.h.  */
9959
 
_ACEOF
9960
 
cat confdefs.h >>conftest.$ac_ext
9961
 
cat >>conftest.$ac_ext <<_ACEOF
9962
 
/* end confdefs.h.  */
9963
 
$statxfs_includes
9964
 
 
9965
 
int
9966
 
main ()
9967
 
{
9968
 
static struct statfs ac_aggr;
9969
 
if (sizeof ac_aggr.f_namemax)
9970
 
return 0;
9971
 
  ;
9972
 
  return 0;
9973
 
}
9974
 
_ACEOF
9975
 
rm -f conftest.$ac_objext
9976
 
if { (ac_try="$ac_compile"
9977
 
case "(($ac_try" in
9978
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979
 
  *) ac_try_echo=$ac_try;;
9980
 
esac
9981
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982
 
  (eval "$ac_compile") 2>conftest.er1
9983
 
  ac_status=$?
9984
 
  grep -v '^ *+' conftest.er1 >conftest.err
9985
 
  rm -f conftest.er1
9986
 
  cat conftest.err >&5
9987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988
 
  (exit $ac_status); } && {
9989
 
         test -z "$ac_c_werror_flag" ||
9990
 
         test ! -s conftest.err
9991
 
       } && test -s conftest.$ac_objext; then
9992
 
  ac_cv_member_struct_statfs_f_namemax=yes
9993
 
else
9994
 
  echo "$as_me: failed program was:" >&5
9995
 
sed 's/^/| /' conftest.$ac_ext >&5
9996
 
 
9997
 
        ac_cv_member_struct_statfs_f_namemax=no
9998
 
fi
9999
 
 
10000
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001
 
fi
10002
 
 
10003
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004
 
fi
10005
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
10006
 
echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
10007
 
if test $ac_cv_member_struct_statfs_f_namemax = yes; then
 
6578
ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
 
6579
"
 
6580
if test "x$ac_cv_member_struct_statfs_f_namemax" = x""yes; then :
10008
6581
 
10009
6582
cat >>confdefs.h <<_ACEOF
10010
6583
#define HAVE_STRUCT_STATFS_F_NAMEMAX 1
10013
6586
 
10014
6587
fi
10015
6588
 
10016
 
{ echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
10017
 
echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
10018
 
if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
10019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10020
 
else
10021
 
  cat >conftest.$ac_ext <<_ACEOF
10022
 
/* confdefs.h.  */
10023
 
_ACEOF
10024
 
cat confdefs.h >>conftest.$ac_ext
10025
 
cat >>conftest.$ac_ext <<_ACEOF
10026
 
/* end confdefs.h.  */
10027
 
$statxfs_includes
10028
 
 
10029
 
int
10030
 
main ()
10031
 
{
10032
 
static struct statvfs ac_aggr;
10033
 
if (ac_aggr.f_namemax)
10034
 
return 0;
10035
 
  ;
10036
 
  return 0;
10037
 
}
10038
 
_ACEOF
10039
 
rm -f conftest.$ac_objext
10040
 
if { (ac_try="$ac_compile"
10041
 
case "(($ac_try" in
10042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043
 
  *) ac_try_echo=$ac_try;;
10044
 
esac
10045
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046
 
  (eval "$ac_compile") 2>conftest.er1
10047
 
  ac_status=$?
10048
 
  grep -v '^ *+' conftest.er1 >conftest.err
10049
 
  rm -f conftest.er1
10050
 
  cat conftest.err >&5
10051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052
 
  (exit $ac_status); } && {
10053
 
         test -z "$ac_c_werror_flag" ||
10054
 
         test ! -s conftest.err
10055
 
       } && test -s conftest.$ac_objext; then
10056
 
  ac_cv_member_struct_statvfs_f_namemax=yes
10057
 
else
10058
 
  echo "$as_me: failed program was:" >&5
10059
 
sed 's/^/| /' conftest.$ac_ext >&5
10060
 
 
10061
 
        cat >conftest.$ac_ext <<_ACEOF
10062
 
/* confdefs.h.  */
10063
 
_ACEOF
10064
 
cat confdefs.h >>conftest.$ac_ext
10065
 
cat >>conftest.$ac_ext <<_ACEOF
10066
 
/* end confdefs.h.  */
10067
 
$statxfs_includes
10068
 
 
10069
 
int
10070
 
main ()
10071
 
{
10072
 
static struct statvfs ac_aggr;
10073
 
if (sizeof ac_aggr.f_namemax)
10074
 
return 0;
10075
 
  ;
10076
 
  return 0;
10077
 
}
10078
 
_ACEOF
10079
 
rm -f conftest.$ac_objext
10080
 
if { (ac_try="$ac_compile"
10081
 
case "(($ac_try" in
10082
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083
 
  *) ac_try_echo=$ac_try;;
10084
 
esac
10085
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086
 
  (eval "$ac_compile") 2>conftest.er1
10087
 
  ac_status=$?
10088
 
  grep -v '^ *+' conftest.er1 >conftest.err
10089
 
  rm -f conftest.er1
10090
 
  cat conftest.err >&5
10091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092
 
  (exit $ac_status); } && {
10093
 
         test -z "$ac_c_werror_flag" ||
10094
 
         test ! -s conftest.err
10095
 
       } && test -s conftest.$ac_objext; then
10096
 
  ac_cv_member_struct_statvfs_f_namemax=yes
10097
 
else
10098
 
  echo "$as_me: failed program was:" >&5
10099
 
sed 's/^/| /' conftest.$ac_ext >&5
10100
 
 
10101
 
        ac_cv_member_struct_statvfs_f_namemax=no
10102
 
fi
10103
 
 
10104
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105
 
fi
10106
 
 
10107
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108
 
fi
10109
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
10110
 
echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
10111
 
if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
 
6589
ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
 
6590
"
 
6591
if test "x$ac_cv_member_struct_statvfs_f_namemax" = x""yes; then :
10112
6592
 
10113
6593
cat >>confdefs.h <<_ACEOF
10114
6594
#define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
10117
6597
 
10118
6598
fi
10119
6599
 
10120
 
{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
10121
 
echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
10122
 
if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
10123
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10124
 
else
10125
 
  cat >conftest.$ac_ext <<_ACEOF
10126
 
/* confdefs.h.  */
10127
 
_ACEOF
10128
 
cat confdefs.h >>conftest.$ac_ext
10129
 
cat >>conftest.$ac_ext <<_ACEOF
10130
 
/* end confdefs.h.  */
10131
 
$statxfs_includes
10132
 
 
10133
 
int
10134
 
main ()
10135
 
{
10136
 
static struct statfs ac_aggr;
10137
 
if (ac_aggr.f_namelen)
10138
 
return 0;
10139
 
  ;
10140
 
  return 0;
10141
 
}
10142
 
_ACEOF
10143
 
rm -f conftest.$ac_objext
10144
 
if { (ac_try="$ac_compile"
10145
 
case "(($ac_try" in
10146
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147
 
  *) ac_try_echo=$ac_try;;
10148
 
esac
10149
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150
 
  (eval "$ac_compile") 2>conftest.er1
10151
 
  ac_status=$?
10152
 
  grep -v '^ *+' conftest.er1 >conftest.err
10153
 
  rm -f conftest.er1
10154
 
  cat conftest.err >&5
10155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156
 
  (exit $ac_status); } && {
10157
 
         test -z "$ac_c_werror_flag" ||
10158
 
         test ! -s conftest.err
10159
 
       } && test -s conftest.$ac_objext; then
10160
 
  ac_cv_member_struct_statfs_f_namelen=yes
10161
 
else
10162
 
  echo "$as_me: failed program was:" >&5
10163
 
sed 's/^/| /' conftest.$ac_ext >&5
10164
 
 
10165
 
        cat >conftest.$ac_ext <<_ACEOF
10166
 
/* confdefs.h.  */
10167
 
_ACEOF
10168
 
cat confdefs.h >>conftest.$ac_ext
10169
 
cat >>conftest.$ac_ext <<_ACEOF
10170
 
/* end confdefs.h.  */
10171
 
$statxfs_includes
10172
 
 
10173
 
int
10174
 
main ()
10175
 
{
10176
 
static struct statfs ac_aggr;
10177
 
if (sizeof ac_aggr.f_namelen)
10178
 
return 0;
10179
 
  ;
10180
 
  return 0;
10181
 
}
10182
 
_ACEOF
10183
 
rm -f conftest.$ac_objext
10184
 
if { (ac_try="$ac_compile"
10185
 
case "(($ac_try" in
10186
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187
 
  *) ac_try_echo=$ac_try;;
10188
 
esac
10189
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190
 
  (eval "$ac_compile") 2>conftest.er1
10191
 
  ac_status=$?
10192
 
  grep -v '^ *+' conftest.er1 >conftest.err
10193
 
  rm -f conftest.er1
10194
 
  cat conftest.err >&5
10195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
 
  (exit $ac_status); } && {
10197
 
         test -z "$ac_c_werror_flag" ||
10198
 
         test ! -s conftest.err
10199
 
       } && test -s conftest.$ac_objext; then
10200
 
  ac_cv_member_struct_statfs_f_namelen=yes
10201
 
else
10202
 
  echo "$as_me: failed program was:" >&5
10203
 
sed 's/^/| /' conftest.$ac_ext >&5
10204
 
 
10205
 
        ac_cv_member_struct_statfs_f_namelen=no
10206
 
fi
10207
 
 
10208
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209
 
fi
10210
 
 
10211
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212
 
fi
10213
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
10214
 
echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
10215
 
if test $ac_cv_member_struct_statfs_f_namelen = yes; then
 
6600
ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
 
6601
"
 
6602
if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
10216
6603
 
10217
6604
cat >>confdefs.h <<_ACEOF
10218
6605
#define HAVE_STRUCT_STATFS_F_NAMELEN 1
10221
6608
 
10222
6609
fi
10223
6610
 
10224
 
{ echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
10225
 
echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
10226
 
if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
10227
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10228
 
else
10229
 
  cat >conftest.$ac_ext <<_ACEOF
10230
 
/* confdefs.h.  */
10231
 
_ACEOF
10232
 
cat confdefs.h >>conftest.$ac_ext
10233
 
cat >>conftest.$ac_ext <<_ACEOF
10234
 
/* end confdefs.h.  */
10235
 
$statxfs_includes
10236
 
 
10237
 
int
10238
 
main ()
10239
 
{
10240
 
static struct statvfs ac_aggr;
10241
 
if (ac_aggr.f_namelen)
10242
 
return 0;
10243
 
  ;
10244
 
  return 0;
10245
 
}
10246
 
_ACEOF
10247
 
rm -f conftest.$ac_objext
10248
 
if { (ac_try="$ac_compile"
10249
 
case "(($ac_try" in
10250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251
 
  *) ac_try_echo=$ac_try;;
10252
 
esac
10253
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254
 
  (eval "$ac_compile") 2>conftest.er1
10255
 
  ac_status=$?
10256
 
  grep -v '^ *+' conftest.er1 >conftest.err
10257
 
  rm -f conftest.er1
10258
 
  cat conftest.err >&5
10259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260
 
  (exit $ac_status); } && {
10261
 
         test -z "$ac_c_werror_flag" ||
10262
 
         test ! -s conftest.err
10263
 
       } && test -s conftest.$ac_objext; then
10264
 
  ac_cv_member_struct_statvfs_f_namelen=yes
10265
 
else
10266
 
  echo "$as_me: failed program was:" >&5
10267
 
sed 's/^/| /' conftest.$ac_ext >&5
10268
 
 
10269
 
        cat >conftest.$ac_ext <<_ACEOF
10270
 
/* confdefs.h.  */
10271
 
_ACEOF
10272
 
cat confdefs.h >>conftest.$ac_ext
10273
 
cat >>conftest.$ac_ext <<_ACEOF
10274
 
/* end confdefs.h.  */
10275
 
$statxfs_includes
10276
 
 
10277
 
int
10278
 
main ()
10279
 
{
10280
 
static struct statvfs ac_aggr;
10281
 
if (sizeof ac_aggr.f_namelen)
10282
 
return 0;
10283
 
  ;
10284
 
  return 0;
10285
 
}
10286
 
_ACEOF
10287
 
rm -f conftest.$ac_objext
10288
 
if { (ac_try="$ac_compile"
10289
 
case "(($ac_try" in
10290
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291
 
  *) ac_try_echo=$ac_try;;
10292
 
esac
10293
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294
 
  (eval "$ac_compile") 2>conftest.er1
10295
 
  ac_status=$?
10296
 
  grep -v '^ *+' conftest.er1 >conftest.err
10297
 
  rm -f conftest.er1
10298
 
  cat conftest.err >&5
10299
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300
 
  (exit $ac_status); } && {
10301
 
         test -z "$ac_c_werror_flag" ||
10302
 
         test ! -s conftest.err
10303
 
       } && test -s conftest.$ac_objext; then
10304
 
  ac_cv_member_struct_statvfs_f_namelen=yes
10305
 
else
10306
 
  echo "$as_me: failed program was:" >&5
10307
 
sed 's/^/| /' conftest.$ac_ext >&5
10308
 
 
10309
 
        ac_cv_member_struct_statvfs_f_namelen=no
10310
 
fi
10311
 
 
10312
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313
 
fi
10314
 
 
10315
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316
 
fi
10317
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
10318
 
echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
10319
 
if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
 
6611
ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
 
6612
"
 
6613
if test "x$ac_cv_member_struct_statvfs_f_namelen" = x""yes; then :
10320
6614
 
10321
6615
cat >>confdefs.h <<_ACEOF
10322
6616
#define HAVE_STRUCT_STATVFS_F_NAMELEN 1
10330
6624
# Large file support
10331
6625
#
10332
6626
# Check whether --enable-largefile was given.
10333
 
if test "${enable_largefile+set}" = set; then
 
6627
if test "${enable_largefile+set}" = set; then :
10334
6628
  enableval=$enable_largefile;
10335
6629
fi
10336
6630
 
10337
6631
if test "$enable_largefile" != no; then
10338
6632
 
10339
 
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10340
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10341
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then
10342
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6633
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
6634
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
6635
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
6636
  $as_echo_n "(cached) " >&6
10343
6637
else
10344
6638
  ac_cv_sys_largefile_CC=no
10345
6639
     if test "$GCC" != yes; then
10347
6641
       while :; do
10348
6642
         # IRIX 6.2 and later do not support large files by default,
10349
6643
         # so use the C compiler's -n32 option if that helps.
10350
 
         cat >conftest.$ac_ext <<_ACEOF
10351
 
/* confdefs.h.  */
10352
 
_ACEOF
10353
 
cat confdefs.h >>conftest.$ac_ext
10354
 
cat >>conftest.$ac_ext <<_ACEOF
 
6644
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355
6645
/* end confdefs.h.  */
10356
6646
#include <sys/types.h>
10357
6647
 /* Check that off_t can represent 2**63 - 1 correctly.
10370
6660
  return 0;
10371
6661
}
10372
6662
_ACEOF
10373
 
         rm -f conftest.$ac_objext
10374
 
if { (ac_try="$ac_compile"
10375
 
case "(($ac_try" in
10376
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377
 
  *) ac_try_echo=$ac_try;;
10378
 
esac
10379
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380
 
  (eval "$ac_compile") 2>conftest.er1
10381
 
  ac_status=$?
10382
 
  grep -v '^ *+' conftest.er1 >conftest.err
10383
 
  rm -f conftest.er1
10384
 
  cat conftest.err >&5
10385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386
 
  (exit $ac_status); } && {
10387
 
         test -z "$ac_c_werror_flag" ||
10388
 
         test ! -s conftest.err
10389
 
       } && test -s conftest.$ac_objext; then
 
6663
         if ac_fn_c_try_compile "$LINENO"; then :
10390
6664
  break
10391
 
else
10392
 
  echo "$as_me: failed program was:" >&5
10393
 
sed 's/^/| /' conftest.$ac_ext >&5
10394
 
 
10395
 
 
10396
6665
fi
10397
 
 
10398
6666
rm -f core conftest.err conftest.$ac_objext
10399
6667
         CC="$CC -n32"
10400
 
         rm -f conftest.$ac_objext
10401
 
if { (ac_try="$ac_compile"
10402
 
case "(($ac_try" in
10403
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404
 
  *) ac_try_echo=$ac_try;;
10405
 
esac
10406
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407
 
  (eval "$ac_compile") 2>conftest.er1
10408
 
  ac_status=$?
10409
 
  grep -v '^ *+' conftest.er1 >conftest.err
10410
 
  rm -f conftest.er1
10411
 
  cat conftest.err >&5
10412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413
 
  (exit $ac_status); } && {
10414
 
         test -z "$ac_c_werror_flag" ||
10415
 
         test ! -s conftest.err
10416
 
       } && test -s conftest.$ac_objext; then
 
6668
         if ac_fn_c_try_compile "$LINENO"; then :
10417
6669
  ac_cv_sys_largefile_CC=' -n32'; break
10418
 
else
10419
 
  echo "$as_me: failed program was:" >&5
10420
 
sed 's/^/| /' conftest.$ac_ext >&5
10421
 
 
10422
 
 
10423
6670
fi
10424
 
 
10425
6671
rm -f core conftest.err conftest.$ac_objext
10426
6672
         break
10427
6673
       done
10429
6675
       rm -f conftest.$ac_ext
10430
6676
    fi
10431
6677
fi
10432
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10433
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
 
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
6679
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10434
6680
  if test "$ac_cv_sys_largefile_CC" != no; then
10435
6681
    CC=$CC$ac_cv_sys_largefile_CC
10436
6682
  fi
10437
6683
 
10438
 
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10439
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10440
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10441
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6684
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
6685
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
6686
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
6687
  $as_echo_n "(cached) " >&6
10442
6688
else
10443
6689
  while :; do
10444
 
  cat >conftest.$ac_ext <<_ACEOF
10445
 
/* confdefs.h.  */
10446
 
_ACEOF
10447
 
cat confdefs.h >>conftest.$ac_ext
10448
 
cat >>conftest.$ac_ext <<_ACEOF
 
6690
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449
6691
/* end confdefs.h.  */
10450
6692
#include <sys/types.h>
10451
6693
 /* Check that off_t can represent 2**63 - 1 correctly.
10464
6706
  return 0;
10465
6707
}
10466
6708
_ACEOF
10467
 
rm -f conftest.$ac_objext
10468
 
if { (ac_try="$ac_compile"
10469
 
case "(($ac_try" in
10470
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471
 
  *) ac_try_echo=$ac_try;;
10472
 
esac
10473
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474
 
  (eval "$ac_compile") 2>conftest.er1
10475
 
  ac_status=$?
10476
 
  grep -v '^ *+' conftest.er1 >conftest.err
10477
 
  rm -f conftest.er1
10478
 
  cat conftest.err >&5
10479
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480
 
  (exit $ac_status); } && {
10481
 
         test -z "$ac_c_werror_flag" ||
10482
 
         test ! -s conftest.err
10483
 
       } && test -s conftest.$ac_objext; then
 
6709
if ac_fn_c_try_compile "$LINENO"; then :
10484
6710
  ac_cv_sys_file_offset_bits=no; break
10485
 
else
10486
 
  echo "$as_me: failed program was:" >&5
10487
 
sed 's/^/| /' conftest.$ac_ext >&5
10488
 
 
10489
 
 
10490
6711
fi
10491
 
 
10492
6712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493
 
  cat >conftest.$ac_ext <<_ACEOF
10494
 
/* confdefs.h.  */
10495
 
_ACEOF
10496
 
cat confdefs.h >>conftest.$ac_ext
10497
 
cat >>conftest.$ac_ext <<_ACEOF
 
6713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498
6714
/* end confdefs.h.  */
10499
6715
#define _FILE_OFFSET_BITS 64
10500
6716
#include <sys/types.h>
10514
6730
  return 0;
10515
6731
}
10516
6732
_ACEOF
10517
 
rm -f conftest.$ac_objext
10518
 
if { (ac_try="$ac_compile"
10519
 
case "(($ac_try" in
10520
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521
 
  *) ac_try_echo=$ac_try;;
10522
 
esac
10523
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524
 
  (eval "$ac_compile") 2>conftest.er1
10525
 
  ac_status=$?
10526
 
  grep -v '^ *+' conftest.er1 >conftest.err
10527
 
  rm -f conftest.er1
10528
 
  cat conftest.err >&5
10529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530
 
  (exit $ac_status); } && {
10531
 
         test -z "$ac_c_werror_flag" ||
10532
 
         test ! -s conftest.err
10533
 
       } && test -s conftest.$ac_objext; then
 
6733
if ac_fn_c_try_compile "$LINENO"; then :
10534
6734
  ac_cv_sys_file_offset_bits=64; break
10535
 
else
10536
 
  echo "$as_me: failed program was:" >&5
10537
 
sed 's/^/| /' conftest.$ac_ext >&5
10538
 
 
10539
 
 
10540
6735
fi
10541
 
 
10542
6736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543
6737
  ac_cv_sys_file_offset_bits=unknown
10544
6738
  break
10545
6739
done
10546
6740
fi
10547
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10548
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
6741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
6742
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10549
6743
case $ac_cv_sys_file_offset_bits in #(
10550
6744
  no | unknown) ;;
10551
6745
  *)
10554
6748
_ACEOF
10555
6749
;;
10556
6750
esac
10557
 
rm -f conftest*
 
6751
rm -rf conftest*
10558
6752
  if test $ac_cv_sys_file_offset_bits = unknown; then
10559
 
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10560
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10561
 
if test "${ac_cv_sys_large_files+set}" = set; then
10562
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6753
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
6754
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
6755
if test "${ac_cv_sys_large_files+set}" = set; then :
 
6756
  $as_echo_n "(cached) " >&6
10563
6757
else
10564
6758
  while :; do
10565
 
  cat >conftest.$ac_ext <<_ACEOF
10566
 
/* confdefs.h.  */
10567
 
_ACEOF
10568
 
cat confdefs.h >>conftest.$ac_ext
10569
 
cat >>conftest.$ac_ext <<_ACEOF
 
6759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570
6760
/* end confdefs.h.  */
10571
6761
#include <sys/types.h>
10572
6762
 /* Check that off_t can represent 2**63 - 1 correctly.
10585
6775
  return 0;
10586
6776
}
10587
6777
_ACEOF
10588
 
rm -f conftest.$ac_objext
10589
 
if { (ac_try="$ac_compile"
10590
 
case "(($ac_try" in
10591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592
 
  *) ac_try_echo=$ac_try;;
10593
 
esac
10594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595
 
  (eval "$ac_compile") 2>conftest.er1
10596
 
  ac_status=$?
10597
 
  grep -v '^ *+' conftest.er1 >conftest.err
10598
 
  rm -f conftest.er1
10599
 
  cat conftest.err >&5
10600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601
 
  (exit $ac_status); } && {
10602
 
         test -z "$ac_c_werror_flag" ||
10603
 
         test ! -s conftest.err
10604
 
       } && test -s conftest.$ac_objext; then
 
6778
if ac_fn_c_try_compile "$LINENO"; then :
10605
6779
  ac_cv_sys_large_files=no; break
10606
 
else
10607
 
  echo "$as_me: failed program was:" >&5
10608
 
sed 's/^/| /' conftest.$ac_ext >&5
10609
 
 
10610
 
 
10611
6780
fi
10612
 
 
10613
6781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614
 
  cat >conftest.$ac_ext <<_ACEOF
10615
 
/* confdefs.h.  */
10616
 
_ACEOF
10617
 
cat confdefs.h >>conftest.$ac_ext
10618
 
cat >>conftest.$ac_ext <<_ACEOF
 
6782
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619
6783
/* end confdefs.h.  */
10620
6784
#define _LARGE_FILES 1
10621
6785
#include <sys/types.h>
10635
6799
  return 0;
10636
6800
}
10637
6801
_ACEOF
10638
 
rm -f conftest.$ac_objext
10639
 
if { (ac_try="$ac_compile"
10640
 
case "(($ac_try" in
10641
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642
 
  *) ac_try_echo=$ac_try;;
10643
 
esac
10644
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645
 
  (eval "$ac_compile") 2>conftest.er1
10646
 
  ac_status=$?
10647
 
  grep -v '^ *+' conftest.er1 >conftest.err
10648
 
  rm -f conftest.er1
10649
 
  cat conftest.err >&5
10650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651
 
  (exit $ac_status); } && {
10652
 
         test -z "$ac_c_werror_flag" ||
10653
 
         test ! -s conftest.err
10654
 
       } && test -s conftest.$ac_objext; then
 
6802
if ac_fn_c_try_compile "$LINENO"; then :
10655
6803
  ac_cv_sys_large_files=1; break
10656
 
else
10657
 
  echo "$as_me: failed program was:" >&5
10658
 
sed 's/^/| /' conftest.$ac_ext >&5
10659
 
 
10660
 
 
10661
6804
fi
10662
 
 
10663
6805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664
6806
  ac_cv_sys_large_files=unknown
10665
6807
  break
10666
6808
done
10667
6809
fi
10668
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10669
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
6810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
6811
$as_echo "$ac_cv_sys_large_files" >&6; }
10670
6812
case $ac_cv_sys_large_files in #(
10671
6813
  no | unknown) ;;
10672
6814
  *)
10675
6817
_ACEOF
10676
6818
;;
10677
6819
esac
10678
 
rm -f conftest*
 
6820
rm -rf conftest*
10679
6821
  fi
10680
6822
fi
10681
6823
 
10683
6825
#
10684
6826
# mntent
10685
6827
#
10686
 
if test "${ac_cv_header_mntent_h+set}" = set; then
10687
 
  { echo "$as_me:$LINENO: checking for mntent.h" >&5
10688
 
echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6; }
10689
 
if test "${ac_cv_header_mntent_h+set}" = set; then
10690
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10691
 
fi
10692
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
10693
 
echo "${ECHO_T}$ac_cv_header_mntent_h" >&6; }
10694
 
else
10695
 
  # Is the header compilable?
10696
 
{ echo "$as_me:$LINENO: checking mntent.h usability" >&5
10697
 
echo $ECHO_N "checking mntent.h usability... $ECHO_C" >&6; }
10698
 
cat >conftest.$ac_ext <<_ACEOF
10699
 
/* confdefs.h.  */
10700
 
_ACEOF
10701
 
cat confdefs.h >>conftest.$ac_ext
10702
 
cat >>conftest.$ac_ext <<_ACEOF
10703
 
/* end confdefs.h.  */
10704
 
$ac_includes_default
10705
 
#include <mntent.h>
10706
 
_ACEOF
10707
 
rm -f conftest.$ac_objext
10708
 
if { (ac_try="$ac_compile"
10709
 
case "(($ac_try" in
10710
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711
 
  *) ac_try_echo=$ac_try;;
10712
 
esac
10713
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714
 
  (eval "$ac_compile") 2>conftest.er1
10715
 
  ac_status=$?
10716
 
  grep -v '^ *+' conftest.er1 >conftest.err
10717
 
  rm -f conftest.er1
10718
 
  cat conftest.err >&5
10719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720
 
  (exit $ac_status); } && {
10721
 
         test -z "$ac_c_werror_flag" ||
10722
 
         test ! -s conftest.err
10723
 
       } && test -s conftest.$ac_objext; then
10724
 
  ac_header_compiler=yes
10725
 
else
10726
 
  echo "$as_me: failed program was:" >&5
10727
 
sed 's/^/| /' conftest.$ac_ext >&5
10728
 
 
10729
 
        ac_header_compiler=no
10730
 
fi
10731
 
 
10732
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10734
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
10735
 
 
10736
 
# Is the header present?
10737
 
{ echo "$as_me:$LINENO: checking mntent.h presence" >&5
10738
 
echo $ECHO_N "checking mntent.h presence... $ECHO_C" >&6; }
10739
 
cat >conftest.$ac_ext <<_ACEOF
10740
 
/* confdefs.h.  */
10741
 
_ACEOF
10742
 
cat confdefs.h >>conftest.$ac_ext
10743
 
cat >>conftest.$ac_ext <<_ACEOF
10744
 
/* end confdefs.h.  */
10745
 
#include <mntent.h>
10746
 
_ACEOF
10747
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10748
 
case "(($ac_try" in
10749
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750
 
  *) ac_try_echo=$ac_try;;
10751
 
esac
10752
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754
 
  ac_status=$?
10755
 
  grep -v '^ *+' conftest.er1 >conftest.err
10756
 
  rm -f conftest.er1
10757
 
  cat conftest.err >&5
10758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759
 
  (exit $ac_status); } >/dev/null && {
10760
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10761
 
         test ! -s conftest.err
10762
 
       }; then
10763
 
  ac_header_preproc=yes
10764
 
else
10765
 
  echo "$as_me: failed program was:" >&5
10766
 
sed 's/^/| /' conftest.$ac_ext >&5
10767
 
 
10768
 
  ac_header_preproc=no
10769
 
fi
10770
 
 
10771
 
rm -f conftest.err conftest.$ac_ext
10772
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
 
 
10775
 
# So?  What about this header?
10776
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777
 
  yes:no: )
10778
 
    { echo "$as_me:$LINENO: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10779
 
echo "$as_me: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780
 
    { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the compiler's result" >&5
10781
 
echo "$as_me: WARNING: mntent.h: proceeding with the compiler's result" >&2;}
10782
 
    ac_header_preproc=yes
10783
 
    ;;
10784
 
  no:yes:* )
10785
 
    { echo "$as_me:$LINENO: WARNING: mntent.h: present but cannot be compiled" >&5
10786
 
echo "$as_me: WARNING: mntent.h: present but cannot be compiled" >&2;}
10787
 
    { echo "$as_me:$LINENO: WARNING: mntent.h:     check for missing prerequisite headers?" >&5
10788
 
echo "$as_me: WARNING: mntent.h:     check for missing prerequisite headers?" >&2;}
10789
 
    { echo "$as_me:$LINENO: WARNING: mntent.h: see the Autoconf documentation" >&5
10790
 
echo "$as_me: WARNING: mntent.h: see the Autoconf documentation" >&2;}
10791
 
    { echo "$as_me:$LINENO: WARNING: mntent.h:     section \"Present But Cannot Be Compiled\"" >&5
10792
 
echo "$as_me: WARNING: mntent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10793
 
    { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the preprocessor's result" >&5
10794
 
echo "$as_me: WARNING: mntent.h: proceeding with the preprocessor's result" >&2;}
10795
 
    { echo "$as_me:$LINENO: WARNING: mntent.h: in the future, the compiler will take precedence" >&5
10796
 
echo "$as_me: WARNING: mntent.h: in the future, the compiler will take precedence" >&2;}
10797
 
 
10798
 
    ;;
10799
 
esac
10800
 
{ echo "$as_me:$LINENO: checking for mntent.h" >&5
10801
 
echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6; }
10802
 
if test "${ac_cv_header_mntent_h+set}" = set; then
10803
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10804
 
else
10805
 
  ac_cv_header_mntent_h=$ac_header_preproc
10806
 
fi
10807
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
10808
 
echo "${ECHO_T}$ac_cv_header_mntent_h" >&6; }
10809
 
 
10810
 
fi
10811
 
if test $ac_cv_header_mntent_h = yes; then
10812
 
  cat >>confdefs.h <<\_ACEOF
10813
 
#define HAVE_MNTENT_H 1
10814
 
_ACEOF
10815
 
 
10816
 
fi
10817
 
 
 
6828
ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
 
6829
if test "x$ac_cv_header_mntent_h" = x""yes; then :
 
6830
  $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
 
6831
 
 
6832
fi
10818
6833
 
10819
6834
 
10820
6835
for ac_func in setmntent
10821
 
do
10822
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10823
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10824
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10825
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10826
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10827
 
else
10828
 
  cat >conftest.$ac_ext <<_ACEOF
10829
 
/* confdefs.h.  */
10830
 
_ACEOF
10831
 
cat confdefs.h >>conftest.$ac_ext
10832
 
cat >>conftest.$ac_ext <<_ACEOF
10833
 
/* end confdefs.h.  */
10834
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10835
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10836
 
#define $ac_func innocuous_$ac_func
10837
 
 
10838
 
/* System header to define __stub macros and hopefully few prototypes,
10839
 
    which can conflict with char $ac_func (); below.
10840
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841
 
    <limits.h> exists even on freestanding compilers.  */
10842
 
 
10843
 
#ifdef __STDC__
10844
 
# include <limits.h>
10845
 
#else
10846
 
# include <assert.h>
10847
 
#endif
10848
 
 
10849
 
#undef $ac_func
10850
 
 
10851
 
/* Override any GCC internal prototype to avoid an error.
10852
 
   Use char because int might match the return type of a GCC
10853
 
   builtin and then its argument prototype would still apply.  */
10854
 
#ifdef __cplusplus
10855
 
extern "C"
10856
 
#endif
10857
 
char $ac_func ();
10858
 
/* The GNU C library defines this for functions which it implements
10859
 
    to always fail with ENOSYS.  Some functions are actually named
10860
 
    something starting with __ and the normal name is an alias.  */
10861
 
#if defined __stub_$ac_func || defined __stub___$ac_func
10862
 
choke me
10863
 
#endif
10864
 
 
10865
 
int
10866
 
main ()
10867
 
{
10868
 
return $ac_func ();
10869
 
  ;
10870
 
  return 0;
10871
 
}
10872
 
_ACEOF
10873
 
rm -f conftest.$ac_objext conftest$ac_exeext
10874
 
if { (ac_try="$ac_link"
10875
 
case "(($ac_try" in
10876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877
 
  *) ac_try_echo=$ac_try;;
10878
 
esac
10879
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880
 
  (eval "$ac_link") 2>conftest.er1
10881
 
  ac_status=$?
10882
 
  grep -v '^ *+' conftest.er1 >conftest.err
10883
 
  rm -f conftest.er1
10884
 
  cat conftest.err >&5
10885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886
 
  (exit $ac_status); } && {
10887
 
         test -z "$ac_c_werror_flag" ||
10888
 
         test ! -s conftest.err
10889
 
       } && test -s conftest$ac_exeext &&
10890
 
       $as_test_x conftest$ac_exeext; then
10891
 
  eval "$as_ac_var=yes"
10892
 
else
10893
 
  echo "$as_me: failed program was:" >&5
10894
 
sed 's/^/| /' conftest.$ac_ext >&5
10895
 
 
10896
 
        eval "$as_ac_var=no"
10897
 
fi
10898
 
 
10899
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10900
 
      conftest$ac_exeext conftest.$ac_ext
10901
 
fi
10902
 
ac_res=`eval echo '${'$as_ac_var'}'`
10903
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
10904
 
echo "${ECHO_T}$ac_res" >&6; }
10905
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6836
do :
 
6837
  ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
 
6838
if test "x$ac_cv_func_setmntent" = x""yes; then :
10906
6839
  cat >>confdefs.h <<_ACEOF
10907
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6840
#define HAVE_SETMNTENT 1
10908
6841
_ACEOF
10909
6842
 
10910
6843
fi
10916
6849
#
10917
6850
 
10918
6851
# Check whether --with-ipv6 was given.
10919
 
if test "${with_ipv6+set}" = set; then
 
6852
if test "${with_ipv6+set}" = set; then :
10920
6853
  withval=$with_ipv6;
10921
6854
        if test $withval != "no";
10922
6855
        then
10923
 
            cat >>confdefs.h <<\_ACEOF
10924
 
#define IPv6 1
10925
 
_ACEOF
 
6856
            $as_echo "#define IPv6 1" >>confdefs.h
10926
6857
 
10927
6858
        fi
10928
6859
 
10935
6866
#
10936
6867
 
10937
6868
# Check whether --with-debug was given.
10938
 
if test "${with_debug+set}" = set; then
 
6869
if test "${with_debug+set}" = set; then :
10939
6870
  withval=$with_debug;
10940
6871
        if test $withval != "no";
10941
6872
        then
10942
 
            cat >>confdefs.h <<\_ACEOF
10943
 
#define WITH_DEBUG 1
10944
 
_ACEOF
 
6873
            $as_echo "#define WITH_DEBUG 1" >>confdefs.h
10945
6874
 
10946
6875
        fi
10947
6876
 
10950
6879
 
10951
6880
 
10952
6881
# Check whether --with-debug-kbd was given.
10953
 
if test "${with_debug_kbd+set}" = set; then
 
6882
if test "${with_debug_kbd+set}" = set; then :
10954
6883
  withval=$with_debug_kbd;
10955
6884
        if test $withval != "no";
10956
6885
        then
10957
 
            cat >>confdefs.h <<\_ACEOF
10958
 
#define WITH_DEBUG_KBD 1
10959
 
_ACEOF
 
6886
            $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
10960
6887
 
10961
6888
        fi
10962
6889
 
10965
6892
 
10966
6893
 
10967
6894
# Check whether --with-debug-rdp5 was given.
10968
 
if test "${with_debug_rdp5+set}" = set; then
 
6895
if test "${with_debug_rdp5+set}" = set; then :
10969
6896
  withval=$with_debug_rdp5;
10970
6897
        if test $withval != "no";
10971
6898
        then
10972
 
            cat >>confdefs.h <<\_ACEOF
10973
 
#define WITH_DEBUG_RDP5 1
10974
 
_ACEOF
 
6899
            $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
10975
6900
 
10976
6901
        fi
10977
6902
 
10980
6905
 
10981
6906
 
10982
6907
# Check whether --with-debug-clipboard was given.
10983
 
if test "${with_debug_clipboard+set}" = set; then
 
6908
if test "${with_debug_clipboard+set}" = set; then :
10984
6909
  withval=$with_debug_clipboard;
10985
6910
        if test $withval != "no";
10986
6911
        then
10987
 
            cat >>confdefs.h <<\_ACEOF
10988
 
#define WITH_DEBUG_CLIPBOARD 1
10989
 
_ACEOF
 
6912
            $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
10990
6913
 
10991
6914
        fi
10992
6915
 
10995
6918
 
10996
6919
 
10997
6920
# Check whether --with-debug-sound was given.
10998
 
if test "${with_debug_sound+set}" = set; then
 
6921
if test "${with_debug_sound+set}" = set; then :
10999
6922
  withval=$with_debug_sound;
11000
6923
        if test $withval != "no";
11001
6924
        then
11002
 
            cat >>confdefs.h <<\_ACEOF
11003
 
#define WITH_DEBUG_SOUND 1
11004
 
_ACEOF
 
6925
            $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
11005
6926
 
11006
6927
        fi
11007
6928
 
11010
6931
 
11011
6932
 
11012
6933
# Check whether --with-debug-channel was given.
11013
 
if test "${with_debug_channel+set}" = set; then
 
6934
if test "${with_debug_channel+set}" = set; then :
11014
6935
  withval=$with_debug_channel;
11015
6936
        if test $withval != "no";
11016
6937
        then
11017
 
            cat >>confdefs.h <<\_ACEOF
11018
 
#define WITH_DEBUG_CHANNEL 1
11019
 
_ACEOF
 
6938
            $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
11020
6939
 
11021
6940
        fi
11022
6941
 
11025
6944
 
11026
6945
 
11027
6946
# Check whether --with-debug-seamless was given.
11028
 
if test "${with_debug_seamless+set}" = set; then
 
6947
if test "${with_debug_seamless+set}" = set; then :
11029
6948
  withval=$with_debug_seamless;
11030
6949
        if test $withval != "no";
11031
6950
        then
11032
 
            cat >>confdefs.h <<\_ACEOF
11033
 
#define WITH_DEBUG_SEAMLESS 1
11034
 
_ACEOF
 
6951
            $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
11035
6952
 
11036
6953
        fi
11037
6954
 
11040
6957
 
11041
6958
 
11042
6959
# Check whether --with-debug-smartcard was given.
11043
 
if test "${with_debug_smartcard+set}" = set; then
 
6960
if test "${with_debug_smartcard+set}" = set; then :
11044
6961
  withval=$with_debug_smartcard;
11045
6962
        if test $withval != "no";
11046
6963
        then
11047
6964
                if test x"$WITH_SCARD" = "x1"; then
11048
 
                        cat >>confdefs.h <<\_ACEOF
11049
 
#define WITH_DEBUG_SCARD 1
11050
 
_ACEOF
 
6965
                        $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
11051
6966
 
11052
6967
                fi
11053
6968
        fi
11062
6977
rpath=`echo $rpath |sed 's/^://'`
11063
6978
# Make sure we can run config.sub.
11064
6979
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11065
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11066
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11067
 
   { (exit 1); exit 1; }; }
 
6980
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
11068
6981
 
11069
 
{ echo "$as_me:$LINENO: checking build system type" >&5
11070
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
11071
 
if test "${ac_cv_build+set}" = set; then
11072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
6983
$as_echo_n "checking build system type... " >&6; }
 
6984
if test "${ac_cv_build+set}" = set; then :
 
6985
  $as_echo_n "(cached) " >&6
11073
6986
else
11074
6987
  ac_build_alias=$build_alias
11075
6988
test "x$ac_build_alias" = x &&
11076
6989
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11077
6990
test "x$ac_build_alias" = x &&
11078
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11079
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11080
 
   { (exit 1); exit 1; }; }
 
6991
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
11081
6992
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11082
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11083
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11084
 
   { (exit 1); exit 1; }; }
 
6993
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
11085
6994
 
11086
6995
fi
11087
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11088
 
echo "${ECHO_T}$ac_cv_build" >&6; }
 
6996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
6997
$as_echo "$ac_cv_build" >&6; }
11089
6998
case $ac_cv_build in
11090
6999
*-*-*) ;;
11091
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11092
 
echo "$as_me: error: invalid value of canonical build" >&2;}
11093
 
   { (exit 1); exit 1; }; };;
 
7000
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
11094
7001
esac
11095
7002
build=$ac_cv_build
11096
7003
ac_save_IFS=$IFS; IFS='-'
11106
7013
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11107
7014
 
11108
7015
 
11109
 
{ echo "$as_me:$LINENO: checking host system type" >&5
11110
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11111
 
if test "${ac_cv_host+set}" = set; then
11112
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
7017
$as_echo_n "checking host system type... " >&6; }
 
7018
if test "${ac_cv_host+set}" = set; then :
 
7019
  $as_echo_n "(cached) " >&6
11113
7020
else
11114
7021
  if test "x$host_alias" = x; then
11115
7022
  ac_cv_host=$ac_cv_build
11116
7023
else
11117
7024
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11118
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11119
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11120
 
   { (exit 1); exit 1; }; }
 
7025
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
11121
7026
fi
11122
7027
 
11123
7028
fi
11124
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11125
 
echo "${ECHO_T}$ac_cv_host" >&6; }
 
7029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
7030
$as_echo "$ac_cv_host" >&6; }
11126
7031
case $ac_cv_host in
11127
7032
*-*-*) ;;
11128
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11129
 
echo "$as_me: error: invalid value of canonical host" >&2;}
11130
 
   { (exit 1); exit 1; }; };;
 
7033
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
11131
7034
esac
11132
7035
host=$ac_cv_host
11133
7036
ac_save_IFS=$IFS; IFS='-'
11189
7092
    case $ac_val in #(
11190
7093
    *${as_nl}*)
11191
7094
      case $ac_var in #(
11192
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11193
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
7095
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
7096
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11194
7097
      esac
11195
7098
      case $ac_var in #(
11196
7099
      _ | IFS | as_nl) ;; #(
11197
 
      *) $as_unset $ac_var ;;
 
7100
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
7101
      *) { eval $ac_var=; unset $ac_var;} ;;
11198
7102
      esac ;;
11199
7103
    esac
11200
7104
  done
11202
7106
  (set) 2>&1 |
11203
7107
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11204
7108
    *${as_nl}ac_space=\ *)
11205
 
      # `set' does not quote correctly, so add quotes (double-quote
11206
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7109
      # `set' does not quote correctly, so add quotes: double-quote
 
7110
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11207
7111
      sed -n \
11208
7112
        "s/'/'\\\\''/g;
11209
7113
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11226
7130
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11227
7131
  if test -w "$cache_file"; then
11228
7132
    test "x$cache_file" != "x/dev/null" &&
11229
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11230
 
echo "$as_me: updating cache $cache_file" >&6;}
 
7133
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
7134
$as_echo "$as_me: updating cache $cache_file" >&6;}
11231
7135
    cat confcache >$cache_file
11232
7136
  else
11233
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11234
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
7137
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
7138
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11235
7139
  fi
11236
7140
fi
11237
7141
rm -f confcache
11248
7152
# take arguments), then branch to the quote section.  Otherwise,
11249
7153
# look for a macro that doesn't take arguments.
11250
7154
ac_script='
 
7155
:mline
 
7156
/\\$/{
 
7157
 N
 
7158
 s,\\\n,,
 
7159
 b mline
 
7160
}
11251
7161
t clear
11252
7162
:clear
11253
7163
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11274
7184
 
11275
7185
ac_libobjs=
11276
7186
ac_ltlibobjs=
 
7187
U=
11277
7188
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11278
7189
  # 1. Remove the extension, and $U if already installed.
11279
7190
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11280
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
7191
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11281
7192
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11282
7193
  #    will be set to the directory where LIBOBJS objects are built.
11283
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11284
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
7194
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
7195
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11285
7196
done
11286
7197
LIBOBJS=$ac_libobjs
11287
7198
 
11289
7200
 
11290
7201
 
11291
7202
 
 
7203
 
11292
7204
: ${CONFIG_STATUS=./config.status}
 
7205
ac_write_fail=0
11293
7206
ac_clean_files_save=$ac_clean_files
11294
7207
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11295
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11296
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11297
 
cat >$CONFIG_STATUS <<_ACEOF
 
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
7209
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7210
as_write_fail=0
 
7211
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11298
7212
#! $SHELL
11299
7213
# Generated by $as_me.
11300
7214
# Run this file to recreate the current configuration.
11304
7218
debug=false
11305
7219
ac_cs_recheck=false
11306
7220
ac_cs_silent=false
 
7221
 
11307
7222
SHELL=\${CONFIG_SHELL-$SHELL}
11308
 
_ACEOF
11309
 
 
11310
 
cat >>$CONFIG_STATUS <<\_ACEOF
11311
 
## --------------------- ##
11312
 
## M4sh Initialization.  ##
11313
 
## --------------------- ##
 
7223
export SHELL
 
7224
_ASEOF
 
7225
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
7226
## -------------------- ##
 
7227
## M4sh Initialization. ##
 
7228
## -------------------- ##
11314
7229
 
11315
7230
# Be more Bourne compatible
11316
7231
DUALCASE=1; export DUALCASE # for MKS sh
11317
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7232
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11318
7233
  emulate sh
11319
7234
  NULLCMD=:
11320
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
7235
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11321
7236
  # is contrary to our usage.  Disable this feature.
11322
7237
  alias -g '${1+"$@"}'='"$@"'
11323
7238
  setopt NO_GLOB_SUBST
11324
7239
else
11325
 
  case `(set -o) 2>/dev/null` in
11326
 
  *posix*) set -o posix ;;
 
7240
  case `(set -o) 2>/dev/null` in #(
 
7241
  *posix*) :
 
7242
    set -o posix ;; #(
 
7243
  *) :
 
7244
     ;;
11327
7245
esac
11328
 
 
11329
 
fi
11330
 
 
11331
 
 
11332
 
 
11333
 
 
11334
 
# PATH needs CR
11335
 
# Avoid depending upon Character Ranges.
11336
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11337
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11338
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11339
 
as_cr_digits='0123456789'
11340
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
7246
fi
 
7247
 
 
7248
 
 
7249
as_nl='
 
7250
'
 
7251
export as_nl
 
7252
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
7253
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
7254
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
7255
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
7256
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
7257
# but without wasting forks for bash or zsh.
 
7258
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
7259
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7260
  as_echo='print -r --'
 
7261
  as_echo_n='print -rn --'
 
7262
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7263
  as_echo='printf %s\n'
 
7264
  as_echo_n='printf %s'
 
7265
else
 
7266
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
7267
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
7268
    as_echo_n='/usr/ucb/echo -n'
 
7269
  else
 
7270
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
7271
    as_echo_n_body='eval
 
7272
      arg=$1;
 
7273
      case $arg in #(
 
7274
      *"$as_nl"*)
 
7275
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
7276
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
7277
      esac;
 
7278
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
7279
    '
 
7280
    export as_echo_n_body
 
7281
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
7282
  fi
 
7283
  export as_echo_body
 
7284
  as_echo='sh -c $as_echo_body as_echo'
 
7285
fi
11341
7286
 
11342
7287
# The user is always right.
11343
7288
if test "${PATH_SEPARATOR+set}" != set; then
11344
 
  echo "#! /bin/sh" >conf$$.sh
11345
 
  echo  "exit 0"   >>conf$$.sh
11346
 
  chmod +x conf$$.sh
11347
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11348
 
    PATH_SEPARATOR=';'
11349
 
  else
11350
 
    PATH_SEPARATOR=:
11351
 
  fi
11352
 
  rm -f conf$$.sh
11353
 
fi
11354
 
 
11355
 
# Support unset when possible.
11356
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11357
 
  as_unset=unset
11358
 
else
11359
 
  as_unset=false
 
7289
  PATH_SEPARATOR=:
 
7290
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
7291
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
7292
      PATH_SEPARATOR=';'
 
7293
  }
11360
7294
fi
11361
7295
 
11362
7296
 
11365
7299
# there to prevent editors from complaining about space-tab.
11366
7300
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11367
7301
# splitting by setting IFS to empty value.)
11368
 
as_nl='
11369
 
'
11370
7302
IFS=" ""        $as_nl"
11371
7303
 
11372
7304
# Find who we are.  Look in the path if we contain no directory separator.
11373
 
case $0 in
 
7305
case $0 in #((
11374
7306
  *[\\/]* ) as_myself=$0 ;;
11375
7307
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376
7308
for as_dir in $PATH
11377
7309
do
11378
7310
  IFS=$as_save_IFS
11379
7311
  test -z "$as_dir" && as_dir=.
11380
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11381
 
done
 
7312
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7313
  done
11382
7314
IFS=$as_save_IFS
11383
7315
 
11384
7316
     ;;
11389
7321
  as_myself=$0
11390
7322
fi
11391
7323
if test ! -f "$as_myself"; then
11392
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11393
 
  { (exit 1); exit 1; }
 
7324
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
7325
  exit 1
11394
7326
fi
11395
7327
 
11396
 
# Work around bugs in pre-3.0 UWIN ksh.
11397
 
for as_var in ENV MAIL MAILPATH
11398
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7328
# Unset variables that we do not need and which cause bugs (e.g. in
 
7329
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
7330
# suppresses any "Segmentation fault" message there.  '((' could
 
7331
# trigger a bug in pdksh 5.2.14.
 
7332
for as_var in BASH_ENV ENV MAIL MAILPATH
 
7333
do eval test x\${$as_var+set} = xset \
 
7334
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11399
7335
done
11400
7336
PS1='$ '
11401
7337
PS2='> '
11402
7338
PS4='+ '
11403
7339
 
11404
7340
# NLS nuisances.
11405
 
for as_var in \
11406
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11407
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11408
 
  LC_TELEPHONE LC_TIME
11409
 
do
11410
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11411
 
    eval $as_var=C; export $as_var
11412
 
  else
11413
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7341
LC_ALL=C
 
7342
export LC_ALL
 
7343
LANGUAGE=C
 
7344
export LANGUAGE
 
7345
 
 
7346
# CDPATH.
 
7347
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
7348
 
 
7349
 
 
7350
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
7351
# ----------------------------------------
 
7352
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
7353
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
7354
# script with STATUS, using 1 if that was 0.
 
7355
as_fn_error ()
 
7356
{
 
7357
  as_status=$1; test $as_status -eq 0 && as_status=1
 
7358
  if test "$4"; then
 
7359
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
7360
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11414
7361
  fi
11415
 
done
11416
 
 
11417
 
# Required to use basename.
 
7362
  $as_echo "$as_me: error: $2" >&2
 
7363
  as_fn_exit $as_status
 
7364
} # as_fn_error
 
7365
 
 
7366
 
 
7367
# as_fn_set_status STATUS
 
7368
# -----------------------
 
7369
# Set $? to STATUS, without forking.
 
7370
as_fn_set_status ()
 
7371
{
 
7372
  return $1
 
7373
} # as_fn_set_status
 
7374
 
 
7375
# as_fn_exit STATUS
 
7376
# -----------------
 
7377
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
7378
as_fn_exit ()
 
7379
{
 
7380
  set +e
 
7381
  as_fn_set_status $1
 
7382
  exit $1
 
7383
} # as_fn_exit
 
7384
 
 
7385
# as_fn_unset VAR
 
7386
# ---------------
 
7387
# Portably unset VAR.
 
7388
as_fn_unset ()
 
7389
{
 
7390
  { eval $1=; unset $1;}
 
7391
}
 
7392
as_unset=as_fn_unset
 
7393
# as_fn_append VAR VALUE
 
7394
# ----------------------
 
7395
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
7396
# advantage of any shell optimizations that allow amortized linear growth over
 
7397
# repeated appends, instead of the typical quadratic growth present in naive
 
7398
# implementations.
 
7399
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
7400
  eval 'as_fn_append ()
 
7401
  {
 
7402
    eval $1+=\$2
 
7403
  }'
 
7404
else
 
7405
  as_fn_append ()
 
7406
  {
 
7407
    eval $1=\$$1\$2
 
7408
  }
 
7409
fi # as_fn_append
 
7410
 
 
7411
# as_fn_arith ARG...
 
7412
# ------------------
 
7413
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
7414
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
7415
# must be portable across $(()) and expr.
 
7416
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
7417
  eval 'as_fn_arith ()
 
7418
  {
 
7419
    as_val=$(( $* ))
 
7420
  }'
 
7421
else
 
7422
  as_fn_arith ()
 
7423
  {
 
7424
    as_val=`expr "$@" || test $? -eq 1`
 
7425
  }
 
7426
fi # as_fn_arith
 
7427
 
 
7428
 
11418
7429
if expr a : '\(a\)' >/dev/null 2>&1 &&
11419
7430
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11420
7431
  as_expr=expr
11428
7439
  as_basename=false
11429
7440
fi
11430
7441
 
 
7442
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
7443
  as_dirname=dirname
 
7444
else
 
7445
  as_dirname=false
 
7446
fi
11431
7447
 
11432
 
# Name of the executable.
11433
7448
as_me=`$as_basename -- "$0" ||
11434
7449
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11435
7450
         X"$0" : 'X\(//\)$' \| \
11436
7451
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11437
 
echo X/"$0" |
 
7452
$as_echo X/"$0" |
11438
7453
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11439
7454
            s//\1/
11440
7455
            q
11449
7464
          }
11450
7465
          s/.*/./; q'`
11451
7466
 
11452
 
# CDPATH.
11453
 
$as_unset CDPATH
11454
 
 
11455
 
 
11456
 
 
11457
 
  as_lineno_1=$LINENO
11458
 
  as_lineno_2=$LINENO
11459
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11460
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11461
 
 
11462
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11463
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
11464
 
  # line-number line after each line using $LINENO; the second 'sed'
11465
 
  # does the real work.  The second script uses 'N' to pair each
11466
 
  # line-number line with the line containing $LINENO, and appends
11467
 
  # trailing '-' during substitution so that $LINENO is not a special
11468
 
  # case at line end.
11469
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11470
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11471
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
11472
 
  sed -n '
11473
 
    p
11474
 
    /[$]LINENO/=
11475
 
  ' <$as_myself |
11476
 
    sed '
11477
 
      s/[$]LINENO.*/&-/
11478
 
      t lineno
11479
 
      b
11480
 
      :lineno
11481
 
      N
11482
 
      :loop
11483
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11484
 
      t loop
11485
 
      s/-\n.*//
11486
 
    ' >$as_me.lineno &&
11487
 
  chmod +x "$as_me.lineno" ||
11488
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11489
 
   { (exit 1); exit 1; }; }
11490
 
 
11491
 
  # Don't try to exec as it changes $[0], causing all sort of problems
11492
 
  # (the dirname of $[0] is not the place where we might find the
11493
 
  # original and so on.  Autoconf is especially sensitive to this).
11494
 
  . "./$as_me.lineno"
11495
 
  # Exit status is that of the last command.
11496
 
  exit
11497
 
}
11498
 
 
11499
 
 
11500
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11501
 
  as_dirname=dirname
11502
 
else
11503
 
  as_dirname=false
11504
 
fi
 
7467
# Avoid depending upon Character Ranges.
 
7468
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
7469
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
7470
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
7471
as_cr_digits='0123456789'
 
7472
as_cr_alnum=$as_cr_Letters$as_cr_digits
11505
7473
 
11506
7474
ECHO_C= ECHO_N= ECHO_T=
11507
 
case `echo -n x` in
 
7475
case `echo -n x` in #(((((
11508
7476
-n*)
11509
 
  case `echo 'x\c'` in
 
7477
  case `echo 'xy\c'` in
11510
7478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11511
 
  *)   ECHO_C='\c';;
 
7479
  xy)  ECHO_C='\c';;
 
7480
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
7481
       ECHO_T=' ';;
11512
7482
  esac;;
11513
7483
*)
11514
7484
  ECHO_N='-n';;
11515
7485
esac
11516
7486
 
11517
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
11518
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11519
 
  as_expr=expr
11520
 
else
11521
 
  as_expr=false
11522
 
fi
11523
 
 
11524
7487
rm -f conf$$ conf$$.exe conf$$.file
11525
7488
if test -d conf$$.dir; then
11526
7489
  rm -f conf$$.dir/conf$$.file
11527
7490
else
11528
7491
  rm -f conf$$.dir
11529
 
  mkdir conf$$.dir
 
7492
  mkdir conf$$.dir 2>/dev/null
11530
7493
fi
11531
 
echo >conf$$.file
11532
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
11533
 
  as_ln_s='ln -s'
11534
 
  # ... but there are two gotchas:
11535
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11536
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11537
 
  # In both cases, we have to default to `cp -p'.
11538
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7494
if (echo >conf$$.file) 2>/dev/null; then
 
7495
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7496
    as_ln_s='ln -s'
 
7497
    # ... but there are two gotchas:
 
7498
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
7499
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
7500
    # In both cases, we have to default to `cp -p'.
 
7501
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7502
      as_ln_s='cp -p'
 
7503
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
7504
    as_ln_s=ln
 
7505
  else
11539
7506
    as_ln_s='cp -p'
11540
 
elif ln conf$$.file conf$$ 2>/dev/null; then
11541
 
  as_ln_s=ln
 
7507
  fi
11542
7508
else
11543
7509
  as_ln_s='cp -p'
11544
7510
fi
11545
7511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11546
7512
rmdir conf$$.dir 2>/dev/null
11547
7513
 
 
7514
 
 
7515
# as_fn_mkdir_p
 
7516
# -------------
 
7517
# Create "$as_dir" as a directory, including parents if necessary.
 
7518
as_fn_mkdir_p ()
 
7519
{
 
7520
 
 
7521
  case $as_dir in #(
 
7522
  -*) as_dir=./$as_dir;;
 
7523
  esac
 
7524
  test -d "$as_dir" || eval $as_mkdir_p || {
 
7525
    as_dirs=
 
7526
    while :; do
 
7527
      case $as_dir in #(
 
7528
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
7529
      *) as_qdir=$as_dir;;
 
7530
      esac
 
7531
      as_dirs="'$as_qdir' $as_dirs"
 
7532
      as_dir=`$as_dirname -- "$as_dir" ||
 
7533
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7534
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7535
         X"$as_dir" : 'X\(//\)$' \| \
 
7536
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
7537
$as_echo X"$as_dir" |
 
7538
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
7539
            s//\1/
 
7540
            q
 
7541
          }
 
7542
          /^X\(\/\/\)[^/].*/{
 
7543
            s//\1/
 
7544
            q
 
7545
          }
 
7546
          /^X\(\/\/\)$/{
 
7547
            s//\1/
 
7548
            q
 
7549
          }
 
7550
          /^X\(\/\).*/{
 
7551
            s//\1/
 
7552
            q
 
7553
          }
 
7554
          s/.*/./; q'`
 
7555
      test -d "$as_dir" && break
 
7556
    done
 
7557
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
7558
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
7559
 
 
7560
 
 
7561
} # as_fn_mkdir_p
11548
7562
if mkdir -p . 2>/dev/null; then
11549
 
  as_mkdir_p=:
 
7563
  as_mkdir_p='mkdir -p "$as_dir"'
11550
7564
else
11551
7565
  test -d ./-p && rmdir ./-p
11552
7566
  as_mkdir_p=false
11563
7577
  as_test_x='
11564
7578
    eval sh -c '\''
11565
7579
      if test -d "$1"; then
11566
 
        test -d "$1/.";
 
7580
        test -d "$1/.";
11567
7581
      else
11568
 
        case $1 in
11569
 
        -*)set "./$1";;
 
7582
        case $1 in #(
 
7583
        -*)set "./$1";;
11570
7584
        esac;
11571
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
7585
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11572
7586
        ???[sx]*):;;*)false;;esac;fi
11573
7587
    '\'' sh
11574
7588
  '
11583
7597
 
11584
7598
 
11585
7599
exec 6>&1
 
7600
## ----------------------------------- ##
 
7601
## Main body of $CONFIG_STATUS script. ##
 
7602
## ----------------------------------- ##
 
7603
_ASEOF
 
7604
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11586
7605
 
11587
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
7606
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7607
# Save the log message, to keep $0 and so on meaningful, and to
11588
7608
# report actual input values of CONFIG_FILES etc. instead of their
11589
7609
# values after options handling.
11590
7610
ac_log="
11591
7611
This file was extended by rdesktop $as_me 1.6.0, which was
11592
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
7612
generated by GNU Autoconf 2.67.  Invocation command line was
11593
7613
 
11594
7614
  CONFIG_FILES    = $CONFIG_FILES
11595
7615
  CONFIG_HEADERS  = $CONFIG_HEADERS
11602
7622
 
11603
7623
_ACEOF
11604
7624
 
11605
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7625
case $ac_config_files in *"
 
7626
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
7627
esac
 
7628
 
 
7629
 
 
7630
 
 
7631
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11606
7632
# Files that config.status was made for.
11607
7633
config_files="$ac_config_files"
11608
7634
 
11609
7635
_ACEOF
11610
7636
 
11611
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7637
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11612
7638
ac_cs_usage="\
11613
 
\`$as_me' instantiates files from templates according to the
11614
 
current configuration.
 
7639
\`$as_me' instantiates files and other configuration actions
 
7640
from templates according to the current configuration.  Unless the files
 
7641
and actions are specified as TAGs, all are instantiated by default.
11615
7642
 
11616
 
Usage: $0 [OPTIONS] [FILE]...
 
7643
Usage: $0 [OPTION]... [TAG]...
11617
7644
 
11618
7645
  -h, --help       print this help, then exit
11619
7646
  -V, --version    print version number and configuration settings, then exit
11620
 
  -q, --quiet      do not print progress messages
 
7647
      --config     print configuration, then exit
 
7648
  -q, --quiet, --silent
 
7649
                   do not print progress messages
11621
7650
  -d, --debug      don't remove temporary files
11622
7651
      --recheck    update $as_me by reconfiguring in the same conditions
11623
 
  --file=FILE[:TEMPLATE]
11624
 
                   instantiate the configuration file FILE
 
7652
      --file=FILE[:TEMPLATE]
 
7653
                   instantiate the configuration file FILE
11625
7654
 
11626
7655
Configuration files:
11627
7656
$config_files
11628
7657
 
11629
 
Report bugs to <bug-autoconf@gnu.org>."
 
7658
Report bugs to the package provider."
11630
7659
 
11631
7660
_ACEOF
11632
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7661
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7662
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11633
7663
ac_cs_version="\\
11634
7664
rdesktop config.status 1.6.0
11635
 
configured by $0, generated by GNU Autoconf 2.61,
11636
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
7665
configured by $0, generated by GNU Autoconf 2.67,
 
7666
  with options \\"\$ac_cs_config\\"
11637
7667
 
11638
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
7668
Copyright (C) 2010 Free Software Foundation, Inc.
11639
7669
This config.status script is free software; the Free Software Foundation
11640
7670
gives unlimited permission to copy, distribute and modify it."
11641
7671
 
11642
7672
ac_pwd='$ac_pwd'
11643
7673
srcdir='$srcdir'
11644
7674
INSTALL='$INSTALL'
 
7675
test -n "\$AWK" || AWK=awk
11645
7676
_ACEOF
11646
7677
 
11647
 
cat >>$CONFIG_STATUS <<\_ACEOF
11648
 
# If no file are specified by the user, then we need to provide default
11649
 
# value.  By we need to know if files were specified by the user.
 
7678
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7679
# The default lists apply if the user does not specify any file.
11650
7680
ac_need_defaults=:
11651
7681
while test $# != 0
11652
7682
do
11653
7683
  case $1 in
11654
 
  --*=*)
 
7684
  --*=?*)
11655
7685
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11656
7686
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11657
7687
    ac_shift=:
11658
7688
    ;;
 
7689
  --*=)
 
7690
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
7691
    ac_optarg=
 
7692
    ac_shift=:
 
7693
    ;;
11659
7694
  *)
11660
7695
    ac_option=$1
11661
7696
    ac_optarg=$2
11668
7703
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11669
7704
    ac_cs_recheck=: ;;
11670
7705
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11671
 
    echo "$ac_cs_version"; exit ;;
 
7706
    $as_echo "$ac_cs_version"; exit ;;
 
7707
  --config | --confi | --conf | --con | --co | --c )
 
7708
    $as_echo "$ac_cs_config"; exit ;;
11672
7709
  --debug | --debu | --deb | --de | --d | -d )
11673
7710
    debug=: ;;
11674
7711
  --file | --fil | --fi | --f )
11675
7712
    $ac_shift
11676
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
7713
    case $ac_optarg in
 
7714
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7715
    '') as_fn_error $? "missing file argument" ;;
 
7716
    esac
 
7717
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11677
7718
    ac_need_defaults=false;;
11678
7719
  --he | --h |  --help | --hel | -h )
11679
 
    echo "$ac_cs_usage"; exit ;;
 
7720
    $as_echo "$ac_cs_usage"; exit ;;
11680
7721
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11681
7722
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11682
7723
    ac_cs_silent=: ;;
11683
7724
 
11684
7725
  # This is an error.
11685
 
  -*) { echo "$as_me: error: unrecognized option: $1
11686
 
Try \`$0 --help' for more information." >&2
11687
 
   { (exit 1); exit 1; }; } ;;
 
7726
  -*) as_fn_error $? "unrecognized option: \`$1'
 
7727
Try \`$0 --help' for more information." ;;
11688
7728
 
11689
 
  *) ac_config_targets="$ac_config_targets $1"
 
7729
  *) as_fn_append ac_config_targets " $1"
11690
7730
     ac_need_defaults=false ;;
11691
7731
 
11692
7732
  esac
11701
7741
fi
11702
7742
 
11703
7743
_ACEOF
11704
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7744
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11705
7745
if \$ac_cs_recheck; then
11706
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11707
 
  CONFIG_SHELL=$SHELL
 
7746
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7747
  shift
 
7748
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
7749
  CONFIG_SHELL='$SHELL'
11708
7750
  export CONFIG_SHELL
11709
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7751
  exec "\$@"
11710
7752
fi
11711
7753
 
11712
7754
_ACEOF
11713
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7755
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714
7756
exec 5>>config.log
11715
7757
{
11716
7758
  echo
11717
7759
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11718
7760
## Running $as_me. ##
11719
7761
_ASBOX
11720
 
  echo "$ac_log"
 
7762
  $as_echo "$ac_log"
11721
7763
} >&5
11722
7764
 
11723
7765
_ACEOF
11724
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7766
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11725
7767
_ACEOF
11726
7768
 
11727
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7769
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11728
7770
 
11729
7771
# Handling of arguments.
11730
7772
for ac_config_target in $ac_config_targets
11732
7774
  case $ac_config_target in
11733
7775
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11734
7776
 
11735
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11736
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11737
 
   { (exit 1); exit 1; }; };;
 
7777
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11738
7778
  esac
11739
7779
done
11740
7780
 
11759
7799
  trap 'exit_status=$?
11760
7800
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11761
7801
' 0
11762
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7802
  trap 'as_fn_exit 1' 1 2 13 15
11763
7803
}
11764
7804
# Create a (secure) tmp directory for tmp files.
11765
7805
 
11770
7810
{
11771
7811
  tmp=./conf$$-$RANDOM
11772
7812
  (umask 077 && mkdir "$tmp")
11773
 
} ||
11774
 
{
11775
 
   echo "$me: cannot create a temporary directory in ." >&2
11776
 
   { (exit 1); exit 1; }
11777
 
}
11778
 
 
11779
 
#
11780
 
# Set up the sed scripts for CONFIG_FILES section.
11781
 
#
11782
 
 
11783
 
# No need to generate the scripts if there are no CONFIG_FILES.
11784
 
# This happens for instance when ./config.status config.h
 
7813
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
7814
 
 
7815
# Set up the scripts for CONFIG_FILES section.
 
7816
# No need to generate them if there are no CONFIG_FILES.
 
7817
# This happens for instance with `./config.status config.h'.
11785
7818
if test -n "$CONFIG_FILES"; then
11786
7819
 
 
7820
 
 
7821
ac_cr=`echo X | tr X '\015'`
 
7822
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
7823
# But we know of no other shell where ac_cr would be empty at this
 
7824
# point, so we can use a bashism as a fallback.
 
7825
if test "x$ac_cr" = x; then
 
7826
  eval ac_cr=\$\'\\r\'
 
7827
fi
 
7828
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
7829
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
7830
  ac_cs_awk_cr='\\r'
 
7831
else
 
7832
  ac_cs_awk_cr=$ac_cr
 
7833
fi
 
7834
 
 
7835
echo 'BEGIN {' >"$tmp/subs1.awk" &&
11787
7836
_ACEOF
11788
7837
 
11789
7838
 
11790
 
 
 
7839
{
 
7840
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
7841
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
7842
  echo "_ACEOF"
 
7843
} >conf$$subs.sh ||
 
7844
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7845
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11791
7846
ac_delim='%!_!# '
11792
7847
for ac_last_try in false false false false false :; do
11793
 
  cat >conf$$subs.sed <<_ACEOF
11794
 
SHELL!$SHELL$ac_delim
11795
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11796
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11797
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11798
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11799
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11800
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11801
 
exec_prefix!$exec_prefix$ac_delim
11802
 
prefix!$prefix$ac_delim
11803
 
program_transform_name!$program_transform_name$ac_delim
11804
 
bindir!$bindir$ac_delim
11805
 
sbindir!$sbindir$ac_delim
11806
 
libexecdir!$libexecdir$ac_delim
11807
 
datarootdir!$datarootdir$ac_delim
11808
 
datadir!$datadir$ac_delim
11809
 
sysconfdir!$sysconfdir$ac_delim
11810
 
sharedstatedir!$sharedstatedir$ac_delim
11811
 
localstatedir!$localstatedir$ac_delim
11812
 
includedir!$includedir$ac_delim
11813
 
oldincludedir!$oldincludedir$ac_delim
11814
 
docdir!$docdir$ac_delim
11815
 
infodir!$infodir$ac_delim
11816
 
htmldir!$htmldir$ac_delim
11817
 
dvidir!$dvidir$ac_delim
11818
 
pdfdir!$pdfdir$ac_delim
11819
 
psdir!$psdir$ac_delim
11820
 
libdir!$libdir$ac_delim
11821
 
localedir!$localedir$ac_delim
11822
 
mandir!$mandir$ac_delim
11823
 
DEFS!$DEFS$ac_delim
11824
 
ECHO_C!$ECHO_C$ac_delim
11825
 
ECHO_N!$ECHO_N$ac_delim
11826
 
ECHO_T!$ECHO_T$ac_delim
11827
 
LIBS!$LIBS$ac_delim
11828
 
build_alias!$build_alias$ac_delim
11829
 
host_alias!$host_alias$ac_delim
11830
 
target_alias!$target_alias$ac_delim
11831
 
CC!$CC$ac_delim
11832
 
CFLAGS!$CFLAGS$ac_delim
11833
 
LDFLAGS!$LDFLAGS$ac_delim
11834
 
CPPFLAGS!$CPPFLAGS$ac_delim
11835
 
ac_ct_CC!$ac_ct_CC$ac_delim
11836
 
EXEEXT!$EXEEXT$ac_delim
11837
 
OBJEXT!$OBJEXT$ac_delim
11838
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11839
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11840
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
11841
 
CPP!$CPP$ac_delim
11842
 
GREP!$GREP$ac_delim
11843
 
EGREP!$EGREP$ac_delim
11844
 
XMKMF!$XMKMF$ac_delim
11845
 
X_CFLAGS!$X_CFLAGS$ac_delim
11846
 
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
11847
 
X_LIBS!$X_LIBS$ac_delim
11848
 
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
11849
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
11850
 
STRIP!$STRIP$ac_delim
11851
 
ssldir!$ssldir$ac_delim
11852
 
PCSCLITE_CFLAGS!$PCSCLITE_CFLAGS$ac_delim
11853
 
PCSCLITE_LIBS!$PCSCLITE_LIBS$ac_delim
11854
 
SCARDOBJ!$SCARDOBJ$ac_delim
11855
 
VNCINC!$VNCINC$ac_delim
11856
 
LDVNC!$LDVNC$ac_delim
11857
 
VNCLINK!$VNCLINK$ac_delim
11858
 
RDP2VNCTARGET!$RDP2VNCTARGET$ac_delim
11859
 
LIBAO_CFLAGS!$LIBAO_CFLAGS$ac_delim
11860
 
LIBAO_LIBS!$LIBAO_LIBS$ac_delim
11861
 
ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
11862
 
ALSA_LIBS!$ALSA_LIBS$ac_delim
11863
 
LIBSAMPLERATE_CFLAGS!$LIBSAMPLERATE_CFLAGS$ac_delim
11864
 
LIBSAMPLERATE_LIBS!$LIBSAMPLERATE_LIBS$ac_delim
11865
 
SOUNDOBJ!$SOUNDOBJ$ac_delim
11866
 
LIBOBJS!$LIBOBJS$ac_delim
11867
 
LIBICONV!$LIBICONV$ac_delim
11868
 
build!$build$ac_delim
11869
 
build_cpu!$build_cpu$ac_delim
11870
 
build_vendor!$build_vendor$ac_delim
11871
 
build_os!$build_os$ac_delim
11872
 
host!$host$ac_delim
11873
 
host_cpu!$host_cpu$ac_delim
11874
 
host_vendor!$host_vendor$ac_delim
11875
 
host_os!$host_os$ac_delim
11876
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
11877
 
_ACEOF
 
7848
  . ./conf$$subs.sh ||
 
7849
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11878
7850
 
11879
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
 
7851
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
7852
  if test $ac_delim_n = $ac_delim_num; then
11880
7853
    break
11881
7854
  elif $ac_last_try; then
11882
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11883
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11884
 
   { (exit 1); exit 1; }; }
 
7855
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11885
7856
  else
11886
7857
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11887
7858
  fi
11888
7859
done
11889
 
 
11890
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11891
 
if test -n "$ac_eof"; then
11892
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11893
 
  ac_eof=`expr $ac_eof + 1`
11894
 
fi
11895
 
 
11896
 
cat >>$CONFIG_STATUS <<_ACEOF
11897
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11898
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11899
 
_ACEOF
11900
 
sed '
11901
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11902
 
s/^/s,@/; s/!/@,|#_!!_#|/
11903
 
:n
11904
 
t n
11905
 
s/'"$ac_delim"'$/,g/; t
11906
 
s/$/\\/; p
11907
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11908
 
' >>$CONFIG_STATUS <conf$$subs.sed
11909
 
rm -f conf$$subs.sed
11910
 
cat >>$CONFIG_STATUS <<_ACEOF
11911
 
:end
11912
 
s/|#_!!_#|//g
11913
 
CEOF$ac_eof
11914
 
_ACEOF
11915
 
 
11916
 
 
11917
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11918
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
7860
rm -f conf$$subs.sh
 
7861
 
 
7862
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7863
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
7864
_ACEOF
 
7865
sed -n '
 
7866
h
 
7867
s/^/S["/; s/!.*/"]=/
 
7868
p
 
7869
g
 
7870
s/^[^!]*!//
 
7871
:repl
 
7872
t repl
 
7873
s/'"$ac_delim"'$//
 
7874
t delim
 
7875
:nl
 
7876
h
 
7877
s/\(.\{148\}\)..*/\1/
 
7878
t more1
 
7879
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
7880
p
 
7881
n
 
7882
b repl
 
7883
:more1
 
7884
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7885
p
 
7886
g
 
7887
s/.\{148\}//
 
7888
t nl
 
7889
:delim
 
7890
h
 
7891
s/\(.\{148\}\)..*/\1/
 
7892
t more2
 
7893
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
7894
p
 
7895
b
 
7896
:more2
 
7897
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7898
p
 
7899
g
 
7900
s/.\{148\}//
 
7901
t delim
 
7902
' <conf$$subs.awk | sed '
 
7903
/^[^""]/{
 
7904
  N
 
7905
  s/\n//
 
7906
}
 
7907
' >>$CONFIG_STATUS || ac_write_fail=1
 
7908
rm -f conf$$subs.awk
 
7909
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7910
_ACAWK
 
7911
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
7912
  for (key in S) S_is_set[key] = 1
 
7913
  FS = ""
 
7914
 
 
7915
}
 
7916
{
 
7917
  line = $ 0
 
7918
  nfields = split(line, field, "@")
 
7919
  substed = 0
 
7920
  len = length(field[1])
 
7921
  for (i = 2; i < nfields; i++) {
 
7922
    key = field[i]
 
7923
    keylen = length(key)
 
7924
    if (S_is_set[key]) {
 
7925
      value = S[key]
 
7926
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
7927
      len += length(value) + length(field[++i])
 
7928
      substed = 1
 
7929
    } else
 
7930
      len += 1 + keylen
 
7931
  }
 
7932
 
 
7933
  print line
 
7934
}
 
7935
 
 
7936
_ACAWK
 
7937
_ACEOF
 
7938
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7939
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
7940
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
7941
else
 
7942
  cat
 
7943
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
7944
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
7945
_ACEOF
 
7946
 
 
7947
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
7948
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11919
7949
# trailing colons and then remove the whole line if VPATH becomes empty
11920
7950
# (actually we leave an empty line to preserve line numbers).
11921
7951
if test "x$srcdir" = x.; then
11922
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11923
 
s/:*\$(srcdir):*/:/
11924
 
s/:*\${srcdir}:*/:/
11925
 
s/:*@srcdir@:*/:/
11926
 
s/^\([^=]*=[     ]*\):*/\1/
 
7952
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
7953
h
 
7954
s///
 
7955
s/^/:/
 
7956
s/[      ]*$/:/
 
7957
s/:\$(srcdir):/:/g
 
7958
s/:\${srcdir}:/:/g
 
7959
s/:@srcdir@:/:/g
 
7960
s/^:*//
11927
7961
s/:*$//
 
7962
x
 
7963
s/\(=[   ]*\).*/\1/
 
7964
G
 
7965
s/\n//
11928
7966
s/^[^=]*=[       ]*$//
11929
7967
}'
11930
7968
fi
11931
7969
 
11932
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7970
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11933
7971
fi # test -n "$CONFIG_FILES"
11934
7972
 
11935
7973
 
11936
 
for ac_tag in  :F $CONFIG_FILES
 
7974
eval set X "  :F $CONFIG_FILES      "
 
7975
shift
 
7976
for ac_tag
11937
7977
do
11938
7978
  case $ac_tag in
11939
7979
  :[FHLC]) ac_mode=$ac_tag; continue;;
11940
7980
  esac
11941
7981
  case $ac_mode$ac_tag in
11942
7982
  :[FHL]*:*);;
11943
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11944
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11945
 
   { (exit 1); exit 1; }; };;
 
7983
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
11946
7984
  :[FH]-) ac_tag=-:-;;
11947
7985
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11948
7986
  esac
11970
8008
           [\\/$]*) false;;
11971
8009
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11972
8010
           esac ||
11973
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11974
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11975
 
   { (exit 1); exit 1; }; };;
 
8011
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
11976
8012
      esac
11977
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
8013
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
8014
      as_fn_append ac_file_inputs " '$ac_f'"
11978
8015
    done
11979
8016
 
11980
8017
    # Let's still pretend it is `configure' which instantiates (i.e., don't
11981
8018
    # use $as_me), people would be surprised to read:
11982
8019
    #    /* config.h.  Generated by config.status.  */
11983
 
    configure_input="Generated from "`IFS=:
11984
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
8020
    configure_input='Generated from '`
 
8021
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
8022
        `' by configure.'
11985
8023
    if test x"$ac_file" != x-; then
11986
8024
      configure_input="$ac_file.  $configure_input"
11987
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
11988
 
echo "$as_me: creating $ac_file" >&6;}
 
8025
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
8026
$as_echo "$as_me: creating $ac_file" >&6;}
11989
8027
    fi
 
8028
    # Neutralize special characters interpreted by sed in replacement strings.
 
8029
    case $configure_input in #(
 
8030
    *\&* | *\|* | *\\* )
 
8031
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
8032
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
8033
    *) ac_sed_conf_input=$configure_input;;
 
8034
    esac
11990
8035
 
11991
8036
    case $ac_tag in
11992
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
8037
    *:-:* | *:-) cat >"$tmp/stdin" \
 
8038
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
11993
8039
    esac
11994
8040
    ;;
11995
8041
  esac
11999
8045
         X"$ac_file" : 'X\(//\)[^/]' \| \
12000
8046
         X"$ac_file" : 'X\(//\)$' \| \
12001
8047
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12002
 
echo X"$ac_file" |
12003
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12004
 
            s//\1/
12005
 
            q
12006
 
          }
12007
 
          /^X\(\/\/\)[^/].*/{
12008
 
            s//\1/
12009
 
            q
12010
 
          }
12011
 
          /^X\(\/\/\)$/{
12012
 
            s//\1/
12013
 
            q
12014
 
          }
12015
 
          /^X\(\/\).*/{
12016
 
            s//\1/
12017
 
            q
12018
 
          }
12019
 
          s/.*/./; q'`
12020
 
  { as_dir="$ac_dir"
12021
 
  case $as_dir in #(
12022
 
  -*) as_dir=./$as_dir;;
12023
 
  esac
12024
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12025
 
    as_dirs=
12026
 
    while :; do
12027
 
      case $as_dir in #(
12028
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12029
 
      *) as_qdir=$as_dir;;
12030
 
      esac
12031
 
      as_dirs="'$as_qdir' $as_dirs"
12032
 
      as_dir=`$as_dirname -- "$as_dir" ||
12033
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12034
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
12035
 
         X"$as_dir" : 'X\(//\)$' \| \
12036
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12037
 
echo X"$as_dir" |
12038
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12039
 
            s//\1/
12040
 
            q
12041
 
          }
12042
 
          /^X\(\/\/\)[^/].*/{
12043
 
            s//\1/
12044
 
            q
12045
 
          }
12046
 
          /^X\(\/\/\)$/{
12047
 
            s//\1/
12048
 
            q
12049
 
          }
12050
 
          /^X\(\/\).*/{
12051
 
            s//\1/
12052
 
            q
12053
 
          }
12054
 
          s/.*/./; q'`
12055
 
      test -d "$as_dir" && break
12056
 
    done
12057
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12058
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12059
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
12060
 
   { (exit 1); exit 1; }; }; }
 
8048
$as_echo X"$ac_file" |
 
8049
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8050
            s//\1/
 
8051
            q
 
8052
          }
 
8053
          /^X\(\/\/\)[^/].*/{
 
8054
            s//\1/
 
8055
            q
 
8056
          }
 
8057
          /^X\(\/\/\)$/{
 
8058
            s//\1/
 
8059
            q
 
8060
          }
 
8061
          /^X\(\/\).*/{
 
8062
            s//\1/
 
8063
            q
 
8064
          }
 
8065
          s/.*/./; q'`
 
8066
  as_dir="$ac_dir"; as_fn_mkdir_p
12061
8067
  ac_builddir=.
12062
8068
 
12063
8069
case "$ac_dir" in
12064
8070
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12065
8071
*)
12066
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
8072
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12067
8073
  # A ".." for each directory in $ac_dir_suffix.
12068
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
8074
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12069
8075
  case $ac_top_builddir_sub in
12070
8076
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12071
8077
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12105
8111
  esac
12106
8112
_ACEOF
12107
8113
 
12108
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8114
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109
8115
# If the template does not know about datarootdir, expand it.
12110
8116
# FIXME: This hack should be removed a few years after 2.60.
12111
8117
ac_datarootdir_hack=; ac_datarootdir_seen=
12112
 
 
12113
 
case `sed -n '/datarootdir/ {
 
8118
ac_sed_dataroot='
 
8119
/datarootdir/ {
12114
8120
  p
12115
8121
  q
12116
8122
}
12118
8124
/@docdir@/p
12119
8125
/@infodir@/p
12120
8126
/@localedir@/p
12121
 
/@mandir@/p
12122
 
' $ac_file_inputs` in
 
8127
/@mandir@/p'
 
8128
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12123
8129
*datarootdir*) ac_datarootdir_seen=yes;;
12124
8130
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12125
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12126
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
8131
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
8132
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12127
8133
_ACEOF
12128
 
cat >>$CONFIG_STATUS <<_ACEOF
 
8134
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129
8135
  ac_datarootdir_hack='
12130
8136
  s&@datadir@&$datadir&g
12131
8137
  s&@docdir@&$docdir&g
12132
8138
  s&@infodir@&$infodir&g
12133
8139
  s&@localedir@&$localedir&g
12134
8140
  s&@mandir@&$mandir&g
12135
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
8141
  s&\\\${datarootdir}&$datarootdir&g' ;;
12136
8142
esac
12137
8143
_ACEOF
12138
8144
 
12139
8145
# Neutralize VPATH when `$srcdir' = `.'.
12140
8146
# Shell code in configure.ac might set extrasub.
12141
8147
# FIXME: do we really want to maintain this feature?
12142
 
cat >>$CONFIG_STATUS <<_ACEOF
12143
 
  sed "$ac_vpsub
 
8148
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8149
ac_sed_extra="$ac_vpsub
12144
8150
$extrasub
12145
8151
_ACEOF
12146
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8152
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147
8153
:t
12148
8154
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12149
 
s&@configure_input@&$configure_input&;t t
 
8155
s|@configure_input@|$ac_sed_conf_input|;t t
12150
8156
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8157
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12151
8158
s&@srcdir@&$ac_srcdir&;t t
12152
8159
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12153
8160
s&@top_srcdir@&$ac_top_srcdir&;t t
12157
8164
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12158
8165
s&@INSTALL@&$ac_INSTALL&;t t
12159
8166
$ac_datarootdir_hack
12160
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
 
8167
"
 
8168
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
8169
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12161
8170
 
12162
8171
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12163
8172
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12164
8173
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12165
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12166
 
which seems to be undefined.  Please make sure it is defined." >&5
12167
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12168
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
8174
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8175
which seems to be undefined.  Please make sure it is defined" >&5
 
8176
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8177
which seems to be undefined.  Please make sure it is defined" >&2;}
12169
8178
 
12170
8179
  rm -f "$tmp/stdin"
12171
8180
  case $ac_file in
12172
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
12173
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12174
 
  esac
 
8181
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
8182
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
8183
  esac \
 
8184
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12175
8185
 ;;
12176
8186
 
12177
8187
 
12181
8191
done # for ac_tag
12182
8192
 
12183
8193
 
12184
 
{ (exit 0); exit 0; }
 
8194
as_fn_exit 0
12185
8195
_ACEOF
12186
 
chmod +x $CONFIG_STATUS
12187
8196
ac_clean_files=$ac_clean_files_save
12188
8197
 
 
8198
test $ac_write_fail = 0 ||
 
8199
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
8200
 
12189
8201
 
12190
8202
# configure is writing to config.log, and then calls config.status.
12191
8203
# config.status does its own redirection, appending to config.log.
12205
8217
  exec 5>>config.log
12206
8218
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12207
8219
  # would make configure fail if this is the last instruction.
12208
 
  $ac_cs_success || { (exit 1); exit 1; }
 
8220
  $ac_cs_success || as_fn_exit 1
 
8221
fi
 
8222
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
8223
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
8224
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12209
8225
fi
12210
8226
 
12211
8227