~ubuntu-branches/ubuntu/trusty/fluxbox/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Paul Tagliamonte
  • Date: 2010-08-12 21:16:02 UTC
  • mfrom: (0.1.1) (1.1.10)
  • Revision ID: package-import@ubuntu.com-20100812211602-3tsmzl9in5nmwz7z
Tags: 1.1.1+git20100807.0cc08f9-1
* debian/ dir has been cleaned out, complete repackage
  of most files.
* pulled new archive from git.fluxbox.org HEAD, saved as
  tar.gz.
* Added in fluxbox.* files from the old dfsg tree.
* Added in system.fluxbox-menu file from the old dfsg tree
* Added the source/format file to bump package source
  version from 1.0 to 3.0 (quilt). 
* Changed rules file to match the old dfsg setup so that
  fluxbox behaves nicely.
* Removed entries from copyright that no longer apply.
* Added theme based on Denis Brand ( naran )'s old theme.
* Added a background I whipped up.
* Changed compile flags to point to debian theme by default
* Adding a patch to have fluxbox use x-terminal-emulator
  over xterm. Closes: #591694 (LP: #580485)
* Adding a patch to allow titlebar-window dragging.
* Changed the flags in rules to pull from a script. This script
  lets us un-hardcode what theme is default. Be sure there
  is a theme pack!
* Added comments to my patches.
* Removing debian/docs, empty file.
* Fixing fluxbox.desktop to remove all the warnings from
  desktop-file-validate
* Fixing libtool issue by running an update before
  configure in the rules script.
* Added a compile flag script to auto-detect what platform
  we are running on, and apply the correct theme. This
  should solve Ubuntnu issues later on.
* adding in a get-orig-source rule
* fixing the upstream version number to pinpoint
  the commit ( thanks, lfaraone ).
* adding a rule for get-orig-source. ( thanks again,
  lfaraone ).
* Updated rules to actually allow us to do a build from it
* Removed Denis from the uploaders ( as per an email
  conversation )
* Removing madduck from the uploaders ( thanks for asking,
  lfaraone. ). Thanks for your hard work, madduck.

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.
 
3
# Generated by GNU Autoconf 2.65.
 
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 Free Software Foundation,
 
8
# 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 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=$?; test $as_status -eq 0 && as_status=1
 
367
  if test "$3"; then
 
368
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
370
  fi
 
371
  $as_echo "$as_me: error: $1" >&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
533
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
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=
575
552
PACKAGE_VERSION=
576
553
PACKAGE_STRING=
577
554
PACKAGE_BUGREPORT=
 
555
PACKAGE_URL=
578
556
 
579
557
ac_unique_file="src/main.cc"
580
558
# Factoring default headers for most tests.
613
591
# include <unistd.h>
614
592
#endif"
615
593
 
616
 
ac_subst_vars='SHELL
617
 
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
 
INSTALL_PROGRAM
654
 
INSTALL_SCRIPT
655
 
INSTALL_DATA
656
 
am__isrc
657
 
CYGPATH_W
658
 
PACKAGE
659
 
VERSION
660
 
ACLOCAL
661
 
AUTOCONF
662
 
AUTOMAKE
663
 
AUTOHEADER
664
 
MAKEINFO
665
 
install_sh
666
 
STRIP
667
 
INSTALL_STRIP_PROGRAM
668
 
mkdir_p
669
 
AWK
670
 
SET_MAKE
671
 
am__leading_dot
672
 
AMTAR
673
 
am__tar
674
 
am__untar
675
 
CC
676
 
CFLAGS
677
 
LDFLAGS
678
 
CPPFLAGS
679
 
ac_ct_CC
680
 
EXEEXT
681
 
OBJEXT
682
 
DEPDIR
683
 
am__include
684
 
am__quote
685
 
AMDEP_TRUE
686
 
AMDEP_FALSE
687
 
AMDEPBACKSLASH
688
 
CCDEPMODE
689
 
am__fastdepCC_TRUE
690
 
am__fastdepCC_FALSE
691
 
CXX
692
 
CXXFLAGS
693
 
ac_ct_CXX
694
 
CXXDEPMODE
695
 
am__fastdepCXX_TRUE
696
 
am__fastdepCXX_FALSE
697
 
RANLIB
 
594
ac_subst_vars='am__EXEEXT_FALSE
 
595
am__EXEEXT_TRUE
 
596
LTLIBOBJS
 
597
program_suffix
 
598
program_prefix
 
599
LOCALE_PATH
 
600
DEFAULT_INIT
 
601
DEFAULT_OVERLAY
 
602
DEFAULT_APPS
 
603
DEFAULT_KEYS
 
604
DEFAULT_STYLE
 
605
DEFAULT_WINDOWMENU
 
606
DEFAULT_MENU
 
607
MULTIBYTE_FALSE
 
608
MULTIBYTE_TRUE
 
609
IMLIB2_FALSE
 
610
IMLIB2_TRUE
 
611
IMLIB2_LIBS
 
612
IMLIB2_CFLAGS
 
613
IMLIB2_CONFIG
 
614
XPM_FALSE
 
615
XPM_TRUE
 
616
XFT_FALSE
 
617
XFT_TRUE
 
618
PKG_CONFIG
 
619
GNOME_FALSE
 
620
GNOME_TRUE
 
621
NLS
 
622
DEBUG
 
623
NEWWMSPEC_FALSE
 
624
NEWWMSPEC_TRUE
 
625
REGEXP_SRC_FALSE
 
626
REGEXP_SRC_TRUE
 
627
TOOLBAR_SRC_FALSE
 
628
TOOLBAR_SRC_TRUE
 
629
REMEMBER_SRC_FALSE
 
630
REMEMBER_SRC_TRUE
 
631
gencat_cmd
 
632
X_EXTRA_LIBS
 
633
X_LIBS
 
634
X_PRE_LIBS
 
635
X_CFLAGS
 
636
XMKMF
 
637
LIBOBJS
698
638
regex_cmd
699
 
CXXCPP
 
639
EGREP
700
640
GREP
701
 
EGREP
702
 
XMKMF
703
 
X_CFLAGS
704
 
X_PRE_LIBS
705
 
X_LIBS
706
 
X_EXTRA_LIBS
707
 
gencat_cmd
708
 
REMEMBER_SRC_TRUE
709
 
REMEMBER_SRC_FALSE
710
 
TOOLBAR_SRC_TRUE
711
 
TOOLBAR_SRC_FALSE
712
 
REGEXP_SRC_TRUE
713
 
REGEXP_SRC_FALSE
714
 
NEWWMSPEC_TRUE
715
 
NEWWMSPEC_FALSE
716
 
DEBUG
717
 
NLS
718
 
GNOME_TRUE
719
 
GNOME_FALSE
720
 
PKG_CONFIG
721
 
XFT_TRUE
722
 
XFT_FALSE
723
 
XPM_TRUE
724
 
XPM_FALSE
725
 
IMLIB2_CONFIG
726
 
IMLIB2_CFLAGS
727
 
IMLIB2_LIBS
728
 
IMLIB2_TRUE
729
 
IMLIB2_FALSE
730
 
MULTIBYTE_TRUE
731
 
MULTIBYTE_FALSE
732
 
DEFAULT_MENU
733
 
DEFAULT_WINDOWMENU
734
 
DEFAULT_STYLE
735
 
DEFAULT_KEYS
736
 
DEFAULT_APPS
737
 
DEFAULT_OVERLAY
738
 
DEFAULT_INIT
739
 
LOCALE_PATH
740
 
program_prefix
741
 
program_suffix
742
 
LIBOBJS
743
 
LTLIBOBJS'
 
641
CXXCPP
 
642
RANLIB
 
643
am__fastdepCXX_FALSE
 
644
am__fastdepCXX_TRUE
 
645
CXXDEPMODE
 
646
ac_ct_CXX
 
647
CXXFLAGS
 
648
CXX
 
649
am__fastdepCC_FALSE
 
650
am__fastdepCC_TRUE
 
651
CCDEPMODE
 
652
AMDEPBACKSLASH
 
653
AMDEP_FALSE
 
654
AMDEP_TRUE
 
655
am__quote
 
656
am__include
 
657
DEPDIR
 
658
OBJEXT
 
659
EXEEXT
 
660
ac_ct_CC
 
661
CPPFLAGS
 
662
LDFLAGS
 
663
CFLAGS
 
664
CC
 
665
am__untar
 
666
am__tar
 
667
AMTAR
 
668
am__leading_dot
 
669
SET_MAKE
 
670
AWK
 
671
mkdir_p
 
672
MKDIR_P
 
673
INSTALL_STRIP_PROGRAM
 
674
STRIP
 
675
install_sh
 
676
MAKEINFO
 
677
AUTOHEADER
 
678
AUTOMAKE
 
679
AUTOCONF
 
680
ACLOCAL
 
681
VERSION
 
682
PACKAGE
 
683
CYGPATH_W
 
684
am__isrc
 
685
INSTALL_DATA
 
686
INSTALL_SCRIPT
 
687
INSTALL_PROGRAM
 
688
target_alias
 
689
host_alias
 
690
build_alias
 
691
LIBS
 
692
ECHO_T
 
693
ECHO_N
 
694
ECHO_C
 
695
DEFS
 
696
mandir
 
697
localedir
 
698
libdir
 
699
psdir
 
700
pdfdir
 
701
dvidir
 
702
htmldir
 
703
infodir
 
704
docdir
 
705
oldincludedir
 
706
includedir
 
707
localstatedir
 
708
sharedstatedir
 
709
sysconfdir
 
710
datadir
 
711
datarootdir
 
712
libexecdir
 
713
sbindir
 
714
bindir
 
715
program_transform_name
 
716
prefix
 
717
exec_prefix
 
718
PACKAGE_URL
 
719
PACKAGE_BUGREPORT
 
720
PACKAGE_STRING
 
721
PACKAGE_VERSION
 
722
PACKAGE_TARNAME
 
723
PACKAGE_NAME
 
724
PATH_SEPARATOR
 
725
SHELL'
744
726
ac_subst_files=''
 
727
ac_user_opts='
 
728
enable_option_checking
 
729
enable_dependency_tracking
 
730
with_x
 
731
enable_slit
 
732
enable_remember
 
733
enable_toolbar
 
734
enable_regexp
 
735
enable_newwmspec
 
736
enable_debug
 
737
enable_nls
 
738
enable_timed_cache
 
739
enable_gnome
 
740
with_xft_prefix
 
741
with_pkg_exec_prefix
 
742
enable_xft
 
743
enable_xrender
 
744
enable_xpm
 
745
enable_imlib2
 
746
with_imlib2_prefix
 
747
with_imlib2_exec_prefix
 
748
enable_xmb
 
749
enable_xinerama
 
750
enable_shape
 
751
enable_randr
 
752
enable_randr1_2
 
753
with_menu
 
754
with_windowmenu
 
755
with_style
 
756
with_keys
 
757
with_apps
 
758
with_overlay
 
759
with_init
 
760
with_locale
 
761
'
745
762
      ac_precious_vars='build_alias
746
763
host_alias
747
764
target_alias
760
777
# Initialize some variables set by options.
761
778
ac_init_help=
762
779
ac_init_version=false
 
780
ac_unrecognized_opts=
 
781
ac_unrecognized_sep=
763
782
# The variables have the same names as the options, with
764
783
# dashes changed to underlines.
765
784
cache_file=/dev/null
858
877
    datarootdir=$ac_optarg ;;
859
878
 
860
879
  -disable-* | --disable-*)
861
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
880
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862
881
    # Reject names that are not valid shell variable names.
863
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865
 
   { (exit 1); exit 1; }; }
866
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867
 
    eval enable_$ac_feature=no ;;
 
882
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
883
      as_fn_error "invalid feature name: $ac_useropt"
 
884
    ac_useropt_orig=$ac_useropt
 
885
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
886
    case $ac_user_opts in
 
887
      *"
 
888
"enable_$ac_useropt"
 
889
"*) ;;
 
890
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
891
         ac_unrecognized_sep=', ';;
 
892
    esac
 
893
    eval enable_$ac_useropt=no ;;
868
894
 
869
895
  -docdir | --docdir | --docdi | --doc | --do)
870
896
    ac_prev=docdir ;;
877
903
    dvidir=$ac_optarg ;;
878
904
 
879
905
  -enable-* | --enable-*)
880
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
906
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881
907
    # Reject names that are not valid shell variable names.
882
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
883
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
884
 
   { (exit 1); exit 1; }; }
885
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
886
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
908
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
909
      as_fn_error "invalid feature name: $ac_useropt"
 
910
    ac_useropt_orig=$ac_useropt
 
911
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
912
    case $ac_user_opts in
 
913
      *"
 
914
"enable_$ac_useropt"
 
915
"*) ;;
 
916
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
917
         ac_unrecognized_sep=', ';;
 
918
    esac
 
919
    eval enable_$ac_useropt=\$ac_optarg ;;
887
920
 
888
921
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889
922
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074
1107
    ac_init_version=: ;;
1075
1108
 
1076
1109
  -with-* | --with-*)
1077
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1110
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1078
1111
    # Reject names that are not valid shell variable names.
1079
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1081
 
   { (exit 1); exit 1; }; }
1082
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083
 
    eval with_$ac_package=\$ac_optarg ;;
 
1112
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1113
      as_fn_error "invalid package name: $ac_useropt"
 
1114
    ac_useropt_orig=$ac_useropt
 
1115
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1116
    case $ac_user_opts in
 
1117
      *"
 
1118
"with_$ac_useropt"
 
1119
"*) ;;
 
1120
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1121
         ac_unrecognized_sep=', ';;
 
1122
    esac
 
1123
    eval with_$ac_useropt=\$ac_optarg ;;
1084
1124
 
1085
1125
  -without-* | --without-*)
1086
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1126
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087
1127
    # Reject names that are not valid shell variable names.
1088
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1090
 
   { (exit 1); exit 1; }; }
1091
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092
 
    eval with_$ac_package=no ;;
 
1128
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1129
      as_fn_error "invalid package name: $ac_useropt"
 
1130
    ac_useropt_orig=$ac_useropt
 
1131
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1132
    case $ac_user_opts in
 
1133
      *"
 
1134
"with_$ac_useropt"
 
1135
"*) ;;
 
1136
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1137
         ac_unrecognized_sep=', ';;
 
1138
    esac
 
1139
    eval with_$ac_useropt=no ;;
1093
1140
 
1094
1141
  --x)
1095
1142
    # Obsolete; use --with-x.
1109
1156
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110
1157
    x_libraries=$ac_optarg ;;
1111
1158
 
1112
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1113
 
Try \`$0 --help' for more information." >&2
1114
 
   { (exit 1); exit 1; }; }
 
1159
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1160
Try \`$0 --help' for more information."
1115
1161
    ;;
1116
1162
 
1117
1163
  *=*)
1118
1164
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119
1165
    # Reject names that are not valid shell variable names.
1120
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1121
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1122
 
   { (exit 1); exit 1; }; }
 
1166
    case $ac_envvar in #(
 
1167
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1168
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1169
    esac
1123
1170
    eval $ac_envvar=\$ac_optarg
1124
1171
    export $ac_envvar ;;
1125
1172
 
1126
1173
  *)
1127
1174
    # FIXME: should be removed in autoconf 3.0.
1128
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1175
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129
1176
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1177
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131
1178
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132
1179
    ;;
1133
1180
 
1136
1183
 
1137
1184
if test -n "$ac_prev"; then
1138
1185
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1140
 
   { (exit 1); exit 1; }; }
1141
 
fi
1142
 
 
1143
 
# Be sure to have absolute directory names.
 
1186
  as_fn_error "missing argument to $ac_option"
 
1187
fi
 
1188
 
 
1189
if test -n "$ac_unrecognized_opts"; then
 
1190
  case $enable_option_checking in
 
1191
    no) ;;
 
1192
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1193
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1194
  esac
 
1195
fi
 
1196
 
 
1197
# Check all directory arguments for consistency.
1144
1198
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145
1199
                datadir sysconfdir sharedstatedir localstatedir includedir \
1146
1200
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147
1201
                libdir localedir mandir
1148
1202
do
1149
1203
  eval ac_val=\$$ac_var
 
1204
  # Remove trailing slashes.
 
1205
  case $ac_val in
 
1206
    */ )
 
1207
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1208
      eval $ac_var=\$ac_val;;
 
1209
  esac
 
1210
  # Be sure to have absolute directory names.
1150
1211
  case $ac_val in
1151
1212
    [\\/$]* | ?:[\\/]* )  continue;;
1152
1213
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153
1214
  esac
1154
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1155
 
   { (exit 1); exit 1; }; }
 
1215
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1156
1216
done
1157
1217
 
1158
1218
# There might be people who depend on the old broken behavior: `$host'
1166
1226
if test "x$host_alias" != x; then
1167
1227
  if test "x$build_alias" = x; then
1168
1228
    cross_compiling=maybe
1169
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1229
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1170
1230
    If a cross compiler is detected then cross compile mode will be used." >&2
1171
1231
  elif test "x$build_alias" != "x$host_alias"; then
1172
1232
    cross_compiling=yes
1182
1242
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183
1243
ac_ls_di=`ls -di .` &&
1184
1244
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1186
 
   { (exit 1); exit 1; }; }
 
1245
  as_fn_error "working directory cannot be determined"
1187
1246
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1189
 
   { (exit 1); exit 1; }; }
 
1247
  as_fn_error "pwd does not report name of working directory"
1190
1248
 
1191
1249
 
1192
1250
# Find the source files, if location was not specified.
1193
1251
if test -z "$srcdir"; then
1194
1252
  ac_srcdir_defaulted=yes
1195
1253
  # Try the directory containing this script, then the parent directory.
1196
 
  ac_confdir=`$as_dirname -- "$0" ||
1197
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198
 
         X"$0" : 'X\(//\)[^/]' \| \
1199
 
         X"$0" : 'X\(//\)$' \| \
1200
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1201
 
echo X"$0" |
 
1254
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1255
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1256
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1257
         X"$as_myself" : 'X\(//\)$' \| \
 
1258
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1259
$as_echo X"$as_myself" |
1202
1260
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203
1261
            s//\1/
1204
1262
            q
1225
1283
fi
1226
1284
if test ! -r "$srcdir/$ac_unique_file"; then
1227
1285
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1229
 
   { (exit 1); exit 1; }; }
 
1286
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1230
1287
fi
1231
1288
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232
1289
ac_abs_confdir=`(
1233
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1234
 
   { (exit 1); exit 1; }; }
 
1290
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1235
1291
        pwd)`
1236
1292
# When building in place, set srcdir=.
1237
1293
if test "$ac_abs_confdir" = "$ac_pwd"; then
1279
1335
 
1280
1336
Installation directories:
1281
1337
  --prefix=PREFIX         install architecture-independent files in PREFIX
1282
 
                          [$ac_default_prefix]
 
1338
                          [$ac_default_prefix]
1283
1339
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1284
 
                          [PREFIX]
 
1340
                          [PREFIX]
1285
1341
 
1286
1342
By default, \`make install' will install all the files in
1287
1343
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1291
1347
For better control, use the options below.
1292
1348
 
1293
1349
Fine tuning of the installation directories:
1294
 
  --bindir=DIR           user executables [EPREFIX/bin]
1295
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1296
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1297
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1298
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1299
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1300
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1301
 
  --includedir=DIR       C header files [PREFIX/include]
1302
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1303
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1304
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1305
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1306
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1307
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1308
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1309
 
  --htmldir=DIR          html documentation [DOCDIR]
1310
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1311
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1312
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1350
  --bindir=DIR            user executables [EPREFIX/bin]
 
1351
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1352
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1353
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1354
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1355
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1356
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1357
  --includedir=DIR        C header files [PREFIX/include]
 
1358
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1359
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1360
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1361
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1362
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1363
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1364
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1365
  --htmldir=DIR           html documentation [DOCDIR]
 
1366
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1367
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1368
  --psdir=DIR             ps documentation [DOCDIR]
1313
1369
_ACEOF
1314
1370
 
1315
1371
  cat <<\_ACEOF
1330
1386
  cat <<\_ACEOF
1331
1387
 
1332
1388
Optional Features:
 
1389
  --disable-option-checking  ignore unrecognized --enable/--with options
1333
1390
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1334
1391
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1335
1392
  --disable-dependency-tracking  speeds up one-time build
1336
1393
  --enable-dependency-tracking   do not reject slow dependency extractors
1337
 
  --enable-shape          enable support of the XShape extension (default=yes)
1338
1394
  --enable-slit           include code for the Slit (default=yes)
1339
1395
  --enable-remember       include code for Remembering attributes (default=yes)
1340
1396
  --enable-toolbar        include code for Toolbar (default=yes)
1347
1403
  --enable-xft            Xft (antialias) support (default=yes)
1348
1404
  --enable-xrender        Xrender (transparent) support (default=yes)
1349
1405
  --enable-xpm            Xpm (pixmap themes) support (default=yes)
1350
 
  --enable-imlib2         Imlib2 (pixmap themes) support (default=yes)
 
1406
  --enable-imlib2         Imlib2 (pixmap themes) support ([default=yes])
1351
1407
  --enable-xmb            Xmb (multibyte font, utf-8) support (default=yes)
1352
 
  --enable-randr          RANDR (The X Resize and Rotate Extension) support (default=yes)
1353
 
  --enable-randr1.2       RANDR 1.2 support (default=yes)
1354
 
  --enable-xinerama       enable xinerama extension (default=yes)
 
1408
  --enable-xinerama       enable support of the Xinerama extension
 
1409
                          [default=yes]
 
1410
  --enable-shape          enable support of the XShape extension [default=yes]
 
1411
  --enable-randr          enable support of the Xrandr extension [default=yes]
 
1412
  --enable-randr1.2       RANDR 1.2 support [default=yes]
1355
1413
 
1356
1414
Optional Packages:
1357
1415
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1376
1434
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1377
1435
              nonstandard directory <lib dir>
1378
1436
  LIBS        libraries to pass to the linker, e.g. -l<library>
1379
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1437
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380
1438
              you have headers in a nonstandard directory <include dir>
1381
1439
  CXX         C++ compiler command
1382
1440
  CXXFLAGS    C++ compiler flags
1386
1444
Use these variables to override the choices made by `configure' or to help
1387
1445
it to find libraries and programs with nonstandard names/locations.
1388
1446
 
 
1447
Report bugs to the package provider.
1389
1448
_ACEOF
1390
1449
ac_status=$?
1391
1450
fi
1393
1452
if test "$ac_init_help" = "recursive"; then
1394
1453
  # If there are subdirs, report their specific --help.
1395
1454
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1396
 
    test -d "$ac_dir" || continue
 
1455
    test -d "$ac_dir" ||
 
1456
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1457
      continue
1397
1458
    ac_builddir=.
1398
1459
 
1399
1460
case "$ac_dir" in
1400
1461
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401
1462
*)
1402
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1463
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1403
1464
  # A ".." for each directory in $ac_dir_suffix.
1404
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1465
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1405
1466
  case $ac_top_builddir_sub in
1406
1467
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407
1468
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437
1498
      echo &&
1438
1499
      $SHELL "$ac_srcdir/configure" --help=recursive
1439
1500
    else
1440
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1501
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441
1502
    fi || ac_status=$?
1442
1503
    cd "$ac_pwd" || { ac_status=$?; break; }
1443
1504
  done
1447
1508
if $ac_init_version; then
1448
1509
  cat <<\_ACEOF
1449
1510
configure
1450
 
generated by GNU Autoconf 2.61
 
1511
generated by GNU Autoconf 2.65
1451
1512
 
1452
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1453
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1513
Copyright (C) 2009 Free Software Foundation, Inc.
1454
1514
This configure script is free software; the Free Software Foundation
1455
1515
gives unlimited permission to copy, distribute and modify it.
1456
1516
_ACEOF
1457
1517
  exit
1458
1518
fi
 
1519
 
 
1520
## ------------------------ ##
 
1521
## Autoconf initialization. ##
 
1522
## ------------------------ ##
 
1523
 
 
1524
# ac_fn_c_try_compile LINENO
 
1525
# --------------------------
 
1526
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1527
ac_fn_c_try_compile ()
 
1528
{
 
1529
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1530
  rm -f conftest.$ac_objext
 
1531
  if { { ac_try="$ac_compile"
 
1532
case "(($ac_try" in
 
1533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1534
  *) ac_try_echo=$ac_try;;
 
1535
esac
 
1536
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1537
$as_echo "$ac_try_echo"; } >&5
 
1538
  (eval "$ac_compile") 2>conftest.err
 
1539
  ac_status=$?
 
1540
  if test -s conftest.err; then
 
1541
    grep -v '^ *+' conftest.err >conftest.er1
 
1542
    cat conftest.er1 >&5
 
1543
    mv -f conftest.er1 conftest.err
 
1544
  fi
 
1545
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1546
  test $ac_status = 0; } && {
 
1547
         test -z "$ac_c_werror_flag" ||
 
1548
         test ! -s conftest.err
 
1549
       } && test -s conftest.$ac_objext; then :
 
1550
  ac_retval=0
 
1551
else
 
1552
  $as_echo "$as_me: failed program was:" >&5
 
1553
sed 's/^/| /' conftest.$ac_ext >&5
 
1554
 
 
1555
        ac_retval=1
 
1556
fi
 
1557
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1558
  as_fn_set_status $ac_retval
 
1559
 
 
1560
} # ac_fn_c_try_compile
 
1561
 
 
1562
# ac_fn_cxx_try_compile LINENO
 
1563
# ----------------------------
 
1564
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1565
ac_fn_cxx_try_compile ()
 
1566
{
 
1567
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1568
  rm -f conftest.$ac_objext
 
1569
  if { { ac_try="$ac_compile"
 
1570
case "(($ac_try" in
 
1571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1572
  *) ac_try_echo=$ac_try;;
 
1573
esac
 
1574
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1575
$as_echo "$ac_try_echo"; } >&5
 
1576
  (eval "$ac_compile") 2>conftest.err
 
1577
  ac_status=$?
 
1578
  if test -s conftest.err; then
 
1579
    grep -v '^ *+' conftest.err >conftest.er1
 
1580
    cat conftest.er1 >&5
 
1581
    mv -f conftest.er1 conftest.err
 
1582
  fi
 
1583
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1584
  test $ac_status = 0; } && {
 
1585
         test -z "$ac_cxx_werror_flag" ||
 
1586
         test ! -s conftest.err
 
1587
       } && test -s conftest.$ac_objext; then :
 
1588
  ac_retval=0
 
1589
else
 
1590
  $as_echo "$as_me: failed program was:" >&5
 
1591
sed 's/^/| /' conftest.$ac_ext >&5
 
1592
 
 
1593
        ac_retval=1
 
1594
fi
 
1595
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1596
  as_fn_set_status $ac_retval
 
1597
 
 
1598
} # ac_fn_cxx_try_compile
 
1599
 
 
1600
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
 
1601
# ---------------------------------------------
 
1602
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1603
# variable VAR accordingly.
 
1604
ac_fn_cxx_check_type ()
 
1605
{
 
1606
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1607
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1608
$as_echo_n "checking for $2... " >&6; }
 
1609
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1610
  $as_echo_n "(cached) " >&6
 
1611
else
 
1612
  eval "$3=no"
 
1613
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1614
/* end confdefs.h.  */
 
1615
$4
 
1616
int
 
1617
main ()
 
1618
{
 
1619
if (sizeof ($2))
 
1620
         return 0;
 
1621
  ;
 
1622
  return 0;
 
1623
}
 
1624
_ACEOF
 
1625
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1627
/* end confdefs.h.  */
 
1628
$4
 
1629
int
 
1630
main ()
 
1631
{
 
1632
if (sizeof (($2)))
 
1633
            return 0;
 
1634
  ;
 
1635
  return 0;
 
1636
}
 
1637
_ACEOF
 
1638
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1639
 
 
1640
else
 
1641
  eval "$3=yes"
 
1642
fi
 
1643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1644
fi
 
1645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1646
fi
 
1647
eval ac_res=\$$3
 
1648
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1649
$as_echo "$ac_res" >&6; }
 
1650
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1651
 
 
1652
} # ac_fn_cxx_check_type
 
1653
 
 
1654
# ac_fn_cxx_try_cpp LINENO
 
1655
# ------------------------
 
1656
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1657
ac_fn_cxx_try_cpp ()
 
1658
{
 
1659
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1660
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1661
case "(($ac_try" in
 
1662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1663
  *) ac_try_echo=$ac_try;;
 
1664
esac
 
1665
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1666
$as_echo "$ac_try_echo"; } >&5
 
1667
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1668
  ac_status=$?
 
1669
  if test -s conftest.err; then
 
1670
    grep -v '^ *+' conftest.err >conftest.er1
 
1671
    cat conftest.er1 >&5
 
1672
    mv -f conftest.er1 conftest.err
 
1673
  fi
 
1674
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1675
  test $ac_status = 0; } >/dev/null && {
 
1676
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1677
         test ! -s conftest.err
 
1678
       }; then :
 
1679
  ac_retval=0
 
1680
else
 
1681
  $as_echo "$as_me: failed program was:" >&5
 
1682
sed 's/^/| /' conftest.$ac_ext >&5
 
1683
 
 
1684
    ac_retval=1
 
1685
fi
 
1686
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1687
  as_fn_set_status $ac_retval
 
1688
 
 
1689
} # ac_fn_cxx_try_cpp
 
1690
 
 
1691
# ac_fn_cxx_try_run LINENO
 
1692
# ------------------------
 
1693
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1694
# that executables *can* be run.
 
1695
ac_fn_cxx_try_run ()
 
1696
{
 
1697
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1698
  if { { ac_try="$ac_link"
 
1699
case "(($ac_try" in
 
1700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1701
  *) ac_try_echo=$ac_try;;
 
1702
esac
 
1703
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1704
$as_echo "$ac_try_echo"; } >&5
 
1705
  (eval "$ac_link") 2>&5
 
1706
  ac_status=$?
 
1707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1708
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1709
  { { case "(($ac_try" in
 
1710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1711
  *) ac_try_echo=$ac_try;;
 
1712
esac
 
1713
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1714
$as_echo "$ac_try_echo"; } >&5
 
1715
  (eval "$ac_try") 2>&5
 
1716
  ac_status=$?
 
1717
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1718
  test $ac_status = 0; }; }; then :
 
1719
  ac_retval=0
 
1720
else
 
1721
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1722
       $as_echo "$as_me: failed program was:" >&5
 
1723
sed 's/^/| /' conftest.$ac_ext >&5
 
1724
 
 
1725
       ac_retval=$ac_status
 
1726
fi
 
1727
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1728
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1729
  as_fn_set_status $ac_retval
 
1730
 
 
1731
} # ac_fn_cxx_try_run
 
1732
 
 
1733
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
 
1734
# ---------------------------------------------------------
 
1735
# Tests whether HEADER exists and can be compiled using the include files in
 
1736
# INCLUDES, setting the cache variable VAR accordingly.
 
1737
ac_fn_cxx_check_header_compile ()
 
1738
{
 
1739
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1740
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1741
$as_echo_n "checking for $2... " >&6; }
 
1742
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1743
  $as_echo_n "(cached) " >&6
 
1744
else
 
1745
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1746
/* end confdefs.h.  */
 
1747
$4
 
1748
#include <$2>
 
1749
_ACEOF
 
1750
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1751
  eval "$3=yes"
 
1752
else
 
1753
  eval "$3=no"
 
1754
fi
 
1755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1756
fi
 
1757
eval ac_res=\$$3
 
1758
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1759
$as_echo "$ac_res" >&6; }
 
1760
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1761
 
 
1762
} # ac_fn_cxx_check_header_compile
 
1763
 
 
1764
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1765
# ---------------------------------------------------------
 
1766
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1767
# the include files in INCLUDES and setting the cache variable VAR
 
1768
# accordingly.
 
1769
ac_fn_cxx_check_header_mongrel ()
 
1770
{
 
1771
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1772
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1773
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1774
$as_echo_n "checking for $2... " >&6; }
 
1775
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1776
  $as_echo_n "(cached) " >&6
 
1777
fi
 
1778
eval ac_res=\$$3
 
1779
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1780
$as_echo "$ac_res" >&6; }
 
1781
else
 
1782
  # Is the header compilable?
 
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1784
$as_echo_n "checking $2 usability... " >&6; }
 
1785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1786
/* end confdefs.h.  */
 
1787
$4
 
1788
#include <$2>
 
1789
_ACEOF
 
1790
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1791
  ac_header_compiler=yes
 
1792
else
 
1793
  ac_header_compiler=no
 
1794
fi
 
1795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1797
$as_echo "$ac_header_compiler" >&6; }
 
1798
 
 
1799
# Is the header present?
 
1800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1801
$as_echo_n "checking $2 presence... " >&6; }
 
1802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1803
/* end confdefs.h.  */
 
1804
#include <$2>
 
1805
_ACEOF
 
1806
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
1807
  ac_header_preproc=yes
 
1808
else
 
1809
  ac_header_preproc=no
 
1810
fi
 
1811
rm -f conftest.err conftest.$ac_ext
 
1812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1813
$as_echo "$ac_header_preproc" >&6; }
 
1814
 
 
1815
# So?  What about this header?
 
1816
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
 
1817
  yes:no: )
 
1818
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1819
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1820
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1821
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1822
    ;;
 
1823
  no:yes:* )
 
1824
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1825
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1826
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1827
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1829
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1830
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1831
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1833
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1834
    ;;
 
1835
esac
 
1836
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1837
$as_echo_n "checking for $2... " >&6; }
 
1838
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1839
  $as_echo_n "(cached) " >&6
 
1840
else
 
1841
  eval "$3=\$ac_header_compiler"
 
1842
fi
 
1843
eval ac_res=\$$3
 
1844
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1845
$as_echo "$ac_res" >&6; }
 
1846
fi
 
1847
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1848
 
 
1849
} # ac_fn_cxx_check_header_mongrel
 
1850
 
 
1851
# ac_fn_cxx_try_link LINENO
 
1852
# -------------------------
 
1853
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1854
ac_fn_cxx_try_link ()
 
1855
{
 
1856
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1857
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1858
  if { { ac_try="$ac_link"
 
1859
case "(($ac_try" in
 
1860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1861
  *) ac_try_echo=$ac_try;;
 
1862
esac
 
1863
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1864
$as_echo "$ac_try_echo"; } >&5
 
1865
  (eval "$ac_link") 2>conftest.err
 
1866
  ac_status=$?
 
1867
  if test -s conftest.err; then
 
1868
    grep -v '^ *+' conftest.err >conftest.er1
 
1869
    cat conftest.er1 >&5
 
1870
    mv -f conftest.er1 conftest.err
 
1871
  fi
 
1872
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1873
  test $ac_status = 0; } && {
 
1874
         test -z "$ac_cxx_werror_flag" ||
 
1875
         test ! -s conftest.err
 
1876
       } && test -s conftest$ac_exeext && {
 
1877
         test "$cross_compiling" = yes ||
 
1878
         $as_test_x conftest$ac_exeext
 
1879
       }; then :
 
1880
  ac_retval=0
 
1881
else
 
1882
  $as_echo "$as_me: failed program was:" >&5
 
1883
sed 's/^/| /' conftest.$ac_ext >&5
 
1884
 
 
1885
        ac_retval=1
 
1886
fi
 
1887
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1888
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1889
  # interfere with the next link command; also delete a directory that is
 
1890
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1891
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1892
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1893
  as_fn_set_status $ac_retval
 
1894
 
 
1895
} # ac_fn_cxx_try_link
 
1896
 
 
1897
# ac_fn_cxx_check_func LINENO FUNC VAR
 
1898
# ------------------------------------
 
1899
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1900
ac_fn_cxx_check_func ()
 
1901
{
 
1902
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1903
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1904
$as_echo_n "checking for $2... " >&6; }
 
1905
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1906
  $as_echo_n "(cached) " >&6
 
1907
else
 
1908
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1909
/* end confdefs.h.  */
 
1910
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1911
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1912
#define $2 innocuous_$2
 
1913
 
 
1914
/* System header to define __stub macros and hopefully few prototypes,
 
1915
    which can conflict with char $2 (); below.
 
1916
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1917
    <limits.h> exists even on freestanding compilers.  */
 
1918
 
 
1919
#ifdef __STDC__
 
1920
# include <limits.h>
 
1921
#else
 
1922
# include <assert.h>
 
1923
#endif
 
1924
 
 
1925
#undef $2
 
1926
 
 
1927
/* Override any GCC internal prototype to avoid an error.
 
1928
   Use char because int might match the return type of a GCC
 
1929
   builtin and then its argument prototype would still apply.  */
 
1930
#ifdef __cplusplus
 
1931
extern "C"
 
1932
#endif
 
1933
char $2 ();
 
1934
/* The GNU C library defines this for functions which it implements
 
1935
    to always fail with ENOSYS.  Some functions are actually named
 
1936
    something starting with __ and the normal name is an alias.  */
 
1937
#if defined __stub_$2 || defined __stub___$2
 
1938
choke me
 
1939
#endif
 
1940
 
 
1941
int
 
1942
main ()
 
1943
{
 
1944
return $2 ();
 
1945
  ;
 
1946
  return 0;
 
1947
}
 
1948
_ACEOF
 
1949
if ac_fn_cxx_try_link "$LINENO"; then :
 
1950
  eval "$3=yes"
 
1951
else
 
1952
  eval "$3=no"
 
1953
fi
 
1954
rm -f core conftest.err conftest.$ac_objext \
 
1955
    conftest$ac_exeext conftest.$ac_ext
 
1956
fi
 
1957
eval ac_res=\$$3
 
1958
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1959
$as_echo "$ac_res" >&6; }
 
1960
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1961
 
 
1962
} # ac_fn_cxx_check_func
1459
1963
cat >config.log <<_ACEOF
1460
1964
This file contains any messages produced by compilers while
1461
1965
running configure, to aid debugging if configure makes a mistake.
1462
1966
 
1463
1967
It was created by $as_me, which was
1464
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
1968
generated by GNU Autoconf 2.65.  Invocation command line was
1465
1969
 
1466
1970
  $ $0 $@
1467
1971
 
1497
2001
do
1498
2002
  IFS=$as_save_IFS
1499
2003
  test -z "$as_dir" && as_dir=.
1500
 
  echo "PATH: $as_dir"
1501
 
done
 
2004
    $as_echo "PATH: $as_dir"
 
2005
  done
1502
2006
IFS=$as_save_IFS
1503
2007
 
1504
2008
} >&5
1532
2036
    | -silent | --silent | --silen | --sile | --sil)
1533
2037
      continue ;;
1534
2038
    *\'*)
1535
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2039
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1536
2040
    esac
1537
2041
    case $ac_pass in
1538
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2042
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1539
2043
    2)
1540
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2044
      as_fn_append ac_configure_args1 " '$ac_arg'"
1541
2045
      if test $ac_must_keep_next = true; then
1542
2046
        ac_must_keep_next=false # Got value, back to normal.
1543
2047
      else
1553
2057
          -* ) ac_must_keep_next=true ;;
1554
2058
        esac
1555
2059
      fi
1556
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2060
      as_fn_append ac_configure_args " '$ac_arg'"
1557
2061
      ;;
1558
2062
    esac
1559
2063
  done
1560
2064
done
1561
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1562
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2065
{ ac_configure_args0=; unset ac_configure_args0;}
 
2066
{ ac_configure_args1=; unset ac_configure_args1;}
1563
2067
 
1564
2068
# When interrupted or exit'd, cleanup temporary files, and complete
1565
2069
# config.log.  We remove comments because anyway the quotes in there
1584
2088
    case $ac_val in #(
1585
2089
    *${as_nl}*)
1586
2090
      case $ac_var in #(
1587
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1588
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2091
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2092
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1589
2093
      esac
1590
2094
      case $ac_var in #(
1591
2095
      _ | IFS | as_nl) ;; #(
1592
 
      *) $as_unset $ac_var ;;
 
2096
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2097
      *) { eval $ac_var=; unset $ac_var;} ;;
1593
2098
      esac ;;
1594
2099
    esac
1595
2100
  done
1618
2123
    do
1619
2124
      eval ac_val=\$$ac_var
1620
2125
      case $ac_val in
1621
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2126
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622
2127
      esac
1623
 
      echo "$ac_var='\''$ac_val'\''"
 
2128
      $as_echo "$ac_var='\''$ac_val'\''"
1624
2129
    done | sort
1625
2130
    echo
1626
2131
 
1635
2140
      do
1636
2141
        eval ac_val=\$$ac_var
1637
2142
        case $ac_val in
1638
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2143
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639
2144
        esac
1640
 
        echo "$ac_var='\''$ac_val'\''"
 
2145
        $as_echo "$ac_var='\''$ac_val'\''"
1641
2146
      done | sort
1642
2147
      echo
1643
2148
    fi
1653
2158
      echo
1654
2159
    fi
1655
2160
    test "$ac_signal" != 0 &&
1656
 
      echo "$as_me: caught signal $ac_signal"
1657
 
    echo "$as_me: exit $exit_status"
 
2161
      $as_echo "$as_me: caught signal $ac_signal"
 
2162
    $as_echo "$as_me: exit $exit_status"
1658
2163
  } >&5
1659
2164
  rm -f core *.core core.conftest.* &&
1660
2165
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1661
2166
    exit $exit_status
1662
2167
' 0
1663
2168
for ac_signal in 1 2 13 15; do
1664
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2169
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1665
2170
done
1666
2171
ac_signal=0
1667
2172
 
1668
2173
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1669
2174
rm -f -r conftest* confdefs.h
1670
2175
 
 
2176
$as_echo "/* confdefs.h */" > confdefs.h
 
2177
 
1671
2178
# Predefined preprocessor variables.
1672
2179
 
1673
2180
cat >>confdefs.h <<_ACEOF
1674
2181
#define PACKAGE_NAME "$PACKAGE_NAME"
1675
2182
_ACEOF
1676
2183
 
1677
 
 
1678
2184
cat >>confdefs.h <<_ACEOF
1679
2185
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1680
2186
_ACEOF
1681
2187
 
1682
 
 
1683
2188
cat >>confdefs.h <<_ACEOF
1684
2189
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1685
2190
_ACEOF
1686
2191
 
1687
 
 
1688
2192
cat >>confdefs.h <<_ACEOF
1689
2193
#define PACKAGE_STRING "$PACKAGE_STRING"
1690
2194
_ACEOF
1691
2195
 
1692
 
 
1693
2196
cat >>confdefs.h <<_ACEOF
1694
2197
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1695
2198
_ACEOF
1696
2199
 
 
2200
cat >>confdefs.h <<_ACEOF
 
2201
#define PACKAGE_URL "$PACKAGE_URL"
 
2202
_ACEOF
 
2203
 
1697
2204
 
1698
2205
# Let the site file select an alternate cache file if it wants to.
1699
 
# Prefer explicitly selected file to automatically selected ones.
 
2206
# Prefer an explicitly selected file to automatically selected ones.
 
2207
ac_site_file1=NONE
 
2208
ac_site_file2=NONE
1700
2209
if test -n "$CONFIG_SITE"; then
1701
 
  set x "$CONFIG_SITE"
 
2210
  ac_site_file1=$CONFIG_SITE
1702
2211
elif test "x$prefix" != xNONE; then
1703
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2212
  ac_site_file1=$prefix/share/config.site
 
2213
  ac_site_file2=$prefix/etc/config.site
1704
2214
else
1705
 
  set x "$ac_default_prefix/share/config.site" \
1706
 
        "$ac_default_prefix/etc/config.site"
 
2215
  ac_site_file1=$ac_default_prefix/share/config.site
 
2216
  ac_site_file2=$ac_default_prefix/etc/config.site
1707
2217
fi
1708
 
shift
1709
 
for ac_site_file
 
2218
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1710
2219
do
1711
 
  if test -r "$ac_site_file"; then
1712
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1713
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2220
  test "x$ac_site_file" = xNONE && continue
 
2221
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2222
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2223
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1714
2224
    sed 's/^/| /' "$ac_site_file" >&5
1715
2225
    . "$ac_site_file"
1716
2226
  fi
1717
2227
done
1718
2228
 
1719
2229
if test -r "$cache_file"; then
1720
 
  # Some versions of bash will fail to source /dev/null (special
1721
 
  # files actually), so we avoid doing that.
1722
 
  if test -f "$cache_file"; then
1723
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1724
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2230
  # Some versions of bash will fail to source /dev/null (special files
 
2231
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2232
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2233
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2234
$as_echo "$as_me: loading cache $cache_file" >&6;}
1725
2235
    case $cache_file in
1726
2236
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1727
2237
      *)                      . "./$cache_file";;
1728
2238
    esac
1729
2239
  fi
1730
2240
else
1731
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1732
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2241
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2242
$as_echo "$as_me: creating cache $cache_file" >&6;}
1733
2243
  >$cache_file
1734
2244
fi
1735
2245
 
1743
2253
  eval ac_new_val=\$ac_env_${ac_var}_value
1744
2254
  case $ac_old_set,$ac_new_set in
1745
2255
    set,)
1746
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1747
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2256
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2257
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1748
2258
      ac_cache_corrupted=: ;;
1749
2259
    ,set)
1750
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1751
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2260
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2261
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1752
2262
      ac_cache_corrupted=: ;;
1753
2263
    ,);;
1754
2264
    *)
1755
2265
      if test "x$ac_old_val" != "x$ac_new_val"; then
1756
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1757
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1758
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1759
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1760
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1761
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1762
 
        ac_cache_corrupted=:
 
2266
        # differences in whitespace do not lead to failure.
 
2267
        ac_old_val_w=`echo x $ac_old_val`
 
2268
        ac_new_val_w=`echo x $ac_new_val`
 
2269
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2270
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2271
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2272
          ac_cache_corrupted=:
 
2273
        else
 
2274
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2275
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2276
          eval $ac_var=\$ac_old_val
 
2277
        fi
 
2278
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2279
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2280
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2281
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1763
2282
      fi;;
1764
2283
  esac
1765
2284
  # Pass precious variables to config.status.
1766
2285
  if test "$ac_new_set" = set; then
1767
2286
    case $ac_new_val in
1768
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2287
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1769
2288
    *) ac_arg=$ac_var=$ac_new_val ;;
1770
2289
    esac
1771
2290
    case " $ac_configure_args " in
1772
2291
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1773
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2292
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1774
2293
    esac
1775
2294
  fi
1776
2295
done
1777
2296
if $ac_cache_corrupted; then
1778
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1779
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1780
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1781
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1782
 
   { (exit 1); exit 1; }; }
 
2297
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2298
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2299
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2300
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2301
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1783
2302
fi
1784
 
 
1785
 
 
1786
 
 
1787
 
 
1788
 
 
1789
 
 
1790
 
 
1791
 
 
1792
 
 
1793
 
 
1794
 
 
1795
 
 
1796
 
 
1797
 
 
1798
 
 
1799
 
 
 
2303
## -------------------- ##
 
2304
## Main body of script. ##
 
2305
## -------------------- ##
1800
2306
 
1801
2307
ac_ext=c
1802
2308
ac_cpp='$CPP $CPPFLAGS'
1806
2312
 
1807
2313
 
1808
2314
 
1809
 
am__api_version='1.10'
 
2315
am__api_version='1.11'
1810
2316
 
1811
2317
ac_aux_dir=
1812
2318
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1813
 
  if test -f "$ac_dir/install-sh"; then
1814
 
    ac_aux_dir=$ac_dir
1815
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1816
 
    break
1817
 
  elif test -f "$ac_dir/install.sh"; then
1818
 
    ac_aux_dir=$ac_dir
1819
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1820
 
    break
1821
 
  elif test -f "$ac_dir/shtool"; then
1822
 
    ac_aux_dir=$ac_dir
1823
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1824
 
    break
1825
 
  fi
 
2319
  for ac_t in install-sh install.sh shtool; do
 
2320
    if test -f "$ac_dir/$ac_t"; then
 
2321
      ac_aux_dir=$ac_dir
 
2322
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2323
      break 2
 
2324
    fi
 
2325
  done
1826
2326
done
1827
2327
if test -z "$ac_aux_dir"; then
1828
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1829
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1830
 
   { (exit 1); exit 1; }; }
 
2328
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1831
2329
fi
1832
2330
 
1833
2331
# These three variables are undocumented and unsupported,
1852
2350
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1853
2351
# OS/2's system install, which has a completely different semantic
1854
2352
# ./install, which can be erroneously created by make from ./install.sh.
1855
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1856
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2353
# Reject install programs that cannot install multiple files.
 
2354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2355
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1857
2356
if test -z "$INSTALL"; then
1858
 
if test "${ac_cv_path_install+set}" = set; then
1859
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2357
if test "${ac_cv_path_install+set}" = set; then :
 
2358
  $as_echo_n "(cached) " >&6
1860
2359
else
1861
2360
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862
2361
for as_dir in $PATH
1863
2362
do
1864
2363
  IFS=$as_save_IFS
1865
2364
  test -z "$as_dir" && as_dir=.
1866
 
  # Account for people who put trailing slashes in PATH elements.
1867
 
case $as_dir/ in
1868
 
  ./ | .// | /cC/* | \
 
2365
    # Account for people who put trailing slashes in PATH elements.
 
2366
case $as_dir/ in #((
 
2367
  ./ | .// | /[cC]/* | \
1869
2368
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1870
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2369
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1871
2370
  /usr/ucb/* ) ;;
1872
2371
  *)
1873
2372
    # OSF1 and SCO ODT 3.0 have their own names for install.
1885
2384
            # program-specific install script used by HP pwplus--don't use.
1886
2385
            :
1887
2386
          else
1888
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1889
 
            break 3
 
2387
            rm -rf conftest.one conftest.two conftest.dir
 
2388
            echo one > conftest.one
 
2389
            echo two > conftest.two
 
2390
            mkdir conftest.dir
 
2391
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2392
              test -s conftest.one && test -s conftest.two &&
 
2393
              test -s conftest.dir/conftest.one &&
 
2394
              test -s conftest.dir/conftest.two
 
2395
            then
 
2396
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2397
              break 3
 
2398
            fi
1890
2399
          fi
1891
2400
        fi
1892
2401
      done
1893
2402
    done
1894
2403
    ;;
1895
2404
esac
1896
 
done
 
2405
 
 
2406
  done
1897
2407
IFS=$as_save_IFS
1898
2408
 
 
2409
rm -rf conftest.one conftest.two conftest.dir
1899
2410
 
1900
2411
fi
1901
2412
  if test "${ac_cv_path_install+set}" = set; then
1908
2419
    INSTALL=$ac_install_sh
1909
2420
  fi
1910
2421
fi
1911
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1912
 
echo "${ECHO_T}$INSTALL" >&6; }
 
2422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2423
$as_echo "$INSTALL" >&6; }
1913
2424
 
1914
2425
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915
2426
# It thinks the first close brace ends the variable substitution.
1919
2430
 
1920
2431
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921
2432
 
1922
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1923
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2434
$as_echo_n "checking whether build environment is sane... " >&6; }
1924
2435
# Just in case
1925
2436
sleep 1
1926
2437
echo timestamp > conftest.file
 
2438
# Reject unsafe characters in $srcdir or the absolute working directory
 
2439
# name.  Accept space and tab only in the latter.
 
2440
am_lf='
 
2441
'
 
2442
case `pwd` in
 
2443
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2444
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2445
esac
 
2446
case $srcdir in
 
2447
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2448
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2449
esac
 
2450
 
1927
2451
# Do `set' in a subshell so we don't clobber the current shell's
1928
2452
# arguments.  Must try -L first in case configure is actually a
1929
2453
# symlink; some systems play weird games with the mod time of symlinks
1930
2454
# (eg FreeBSD returns the mod time of the symlink's containing
1931
2455
# directory).
1932
2456
if (
1933
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2457
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1934
2458
   if test "$*" = "X"; then
1935
2459
      # -L didn't work.
1936
 
      set X `ls -t $srcdir/configure conftest.file`
 
2460
      set X `ls -t "$srcdir/configure" conftest.file`
1937
2461
   fi
1938
2462
   rm -f conftest.file
1939
2463
   if test "$*" != "X $srcdir/configure conftest.file" \
1943
2467
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1944
2468
      # broken ls alias from the environment.  This has actually
1945
2469
      # happened.  Such a system could not be considered "sane".
1946
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1947
 
alias in your environment" >&5
1948
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1949
 
alias in your environment" >&2;}
1950
 
   { (exit 1); exit 1; }; }
 
2470
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2471
alias in your environment" "$LINENO" 5
1951
2472
   fi
1952
2473
 
1953
2474
   test "$2" = conftest.file
1956
2477
   # Ok.
1957
2478
   :
1958
2479
else
1959
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1960
 
Check your system clock" >&5
1961
 
echo "$as_me: error: newly created file is older than distributed files!
1962
 
Check your system clock" >&2;}
1963
 
   { (exit 1); exit 1; }; }
 
2480
   as_fn_error "newly created file is older than distributed files!
 
2481
Check your system clock" "$LINENO" 5
1964
2482
fi
1965
 
{ echo "$as_me:$LINENO: result: yes" >&5
1966
 
echo "${ECHO_T}yes" >&6; }
 
2483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2484
$as_echo "yes" >&6; }
1967
2485
test "$program_prefix" != NONE &&
1968
2486
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1969
2487
# Use a double $ so make ignores it.
1970
2488
test "$program_suffix" != NONE &&
1971
2489
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1972
 
# Double any \ or $.  echo might interpret backslashes.
 
2490
# Double any \ or $.
1973
2491
# By default was `s,x,x', remove it if useless.
1974
 
cat <<\_ACEOF >conftest.sed
1975
 
s/[\\$]/&&/g;s/;s,x,x,$//
1976
 
_ACEOF
1977
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1978
 
rm -f conftest.sed
 
2492
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2493
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1979
2494
 
1980
2495
# expand $ac_aux_dir to an absolute path
1981
2496
am_aux_dir=`cd $ac_aux_dir && pwd`
1982
2497
 
1983
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2498
if test x"${MISSING+set}" != xset; then
 
2499
  case $am_aux_dir in
 
2500
  *\ * | *\     *)
 
2501
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2502
  *)
 
2503
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2504
  esac
 
2505
fi
1984
2506
# Use eval to expand $SHELL
1985
2507
if eval "$MISSING --run true"; then
1986
2508
  am_missing_run="$MISSING --run "
1987
2509
else
1988
2510
  am_missing_run=
1989
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1990
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1991
 
fi
1992
 
 
1993
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1994
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2511
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2512
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2513
fi
 
2514
 
 
2515
if test x"${install_sh}" != xset; then
 
2516
  case $am_aux_dir in
 
2517
  *\ * | *\     *)
 
2518
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2519
  *)
 
2520
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2521
  esac
 
2522
fi
 
2523
 
 
2524
# Installed binaries are usually stripped using `strip' when the user
 
2525
# run `make install-strip'.  However `strip' might not be the right
 
2526
# tool to use in cross-compilation environments, therefore Automake
 
2527
# will honor the `STRIP' environment variable to overrule this program.
 
2528
if test "$cross_compiling" != no; then
 
2529
  if test -n "$ac_tool_prefix"; then
 
2530
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2531
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2533
$as_echo_n "checking for $ac_word... " >&6; }
 
2534
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2535
  $as_echo_n "(cached) " >&6
 
2536
else
 
2537
  if test -n "$STRIP"; then
 
2538
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2539
else
 
2540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2541
for as_dir in $PATH
 
2542
do
 
2543
  IFS=$as_save_IFS
 
2544
  test -z "$as_dir" && as_dir=.
 
2545
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2547
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2548
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2549
    break 2
 
2550
  fi
 
2551
done
 
2552
  done
 
2553
IFS=$as_save_IFS
 
2554
 
 
2555
fi
 
2556
fi
 
2557
STRIP=$ac_cv_prog_STRIP
 
2558
if test -n "$STRIP"; then
 
2559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2560
$as_echo "$STRIP" >&6; }
 
2561
else
 
2562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2563
$as_echo "no" >&6; }
 
2564
fi
 
2565
 
 
2566
 
 
2567
fi
 
2568
if test -z "$ac_cv_prog_STRIP"; then
 
2569
  ac_ct_STRIP=$STRIP
 
2570
  # Extract the first word of "strip", so it can be a program name with args.
 
2571
set dummy strip; ac_word=$2
 
2572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2573
$as_echo_n "checking for $ac_word... " >&6; }
 
2574
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2575
  $as_echo_n "(cached) " >&6
 
2576
else
 
2577
  if test -n "$ac_ct_STRIP"; then
 
2578
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2579
else
 
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2581
for as_dir in $PATH
 
2582
do
 
2583
  IFS=$as_save_IFS
 
2584
  test -z "$as_dir" && as_dir=.
 
2585
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2587
    ac_cv_prog_ac_ct_STRIP="strip"
 
2588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2589
    break 2
 
2590
  fi
 
2591
done
 
2592
  done
 
2593
IFS=$as_save_IFS
 
2594
 
 
2595
fi
 
2596
fi
 
2597
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2598
if test -n "$ac_ct_STRIP"; then
 
2599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2600
$as_echo "$ac_ct_STRIP" >&6; }
 
2601
else
 
2602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2603
$as_echo "no" >&6; }
 
2604
fi
 
2605
 
 
2606
  if test "x$ac_ct_STRIP" = x; then
 
2607
    STRIP=":"
 
2608
  else
 
2609
    case $cross_compiling:$ac_tool_warned in
 
2610
yes:)
 
2611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2613
ac_tool_warned=yes ;;
 
2614
esac
 
2615
    STRIP=$ac_ct_STRIP
 
2616
  fi
 
2617
else
 
2618
  STRIP="$ac_cv_prog_STRIP"
 
2619
fi
 
2620
 
 
2621
fi
 
2622
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2623
 
 
2624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2625
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
1995
2626
if test -z "$MKDIR_P"; then
1996
 
  if test "${ac_cv_path_mkdir+set}" = set; then
1997
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2627
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2628
  $as_echo_n "(cached) " >&6
1998
2629
else
1999
2630
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000
2631
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2001
2632
do
2002
2633
  IFS=$as_save_IFS
2003
2634
  test -z "$as_dir" && as_dir=.
2004
 
  for ac_prog in mkdir gmkdir; do
 
2635
    for ac_prog in mkdir gmkdir; do
2005
2636
         for ac_exec_ext in '' $ac_executable_extensions; do
2006
2637
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2007
2638
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2013
2644
           esac
2014
2645
         done
2015
2646
       done
2016
 
done
 
2647
  done
2017
2648
IFS=$as_save_IFS
2018
2649
 
2019
2650
fi
2020
2651
 
 
2652
  test -d ./--version && rmdir ./--version
2021
2653
  if test "${ac_cv_path_mkdir+set}" = set; then
2022
2654
    MKDIR_P="$ac_cv_path_mkdir -p"
2023
2655
  else
2025
2657
    # value for MKDIR_P within a source directory, because that will
2026
2658
    # break other packages using the cache if that directory is
2027
2659
    # removed, or if the value is a relative name.
2028
 
    test -d ./--version && rmdir ./--version
2029
2660
    MKDIR_P="$ac_install_sh -d"
2030
2661
  fi
2031
2662
fi
2032
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2033
 
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2664
$as_echo "$MKDIR_P" >&6; }
2034
2665
 
2035
2666
mkdir_p="$MKDIR_P"
2036
2667
case $mkdir_p in
2042
2673
do
2043
2674
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2044
2675
set dummy $ac_prog; ac_word=$2
2045
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2046
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047
 
if test "${ac_cv_prog_AWK+set}" = set; then
2048
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2677
$as_echo_n "checking for $ac_word... " >&6; }
 
2678
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2679
  $as_echo_n "(cached) " >&6
2049
2680
else
2050
2681
  if test -n "$AWK"; then
2051
2682
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2055
2686
do
2056
2687
  IFS=$as_save_IFS
2057
2688
  test -z "$as_dir" && as_dir=.
2058
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2689
    for ac_exec_ext in '' $ac_executable_extensions; do
2059
2690
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060
2691
    ac_cv_prog_AWK="$ac_prog"
2061
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2692
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2062
2693
    break 2
2063
2694
  fi
2064
2695
done
2065
 
done
 
2696
  done
2066
2697
IFS=$as_save_IFS
2067
2698
 
2068
2699
fi
2069
2700
fi
2070
2701
AWK=$ac_cv_prog_AWK
2071
2702
if test -n "$AWK"; then
2072
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2073
 
echo "${ECHO_T}$AWK" >&6; }
 
2703
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2704
$as_echo "$AWK" >&6; }
2074
2705
else
2075
 
  { echo "$as_me:$LINENO: result: no" >&5
2076
 
echo "${ECHO_T}no" >&6; }
 
2706
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2707
$as_echo "no" >&6; }
2077
2708
fi
2078
2709
 
2079
2710
 
2080
2711
  test -n "$AWK" && break
2081
2712
done
2082
2713
 
2083
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2084
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2085
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2086
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2087
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2715
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2716
set x ${MAKE-make}
 
2717
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2718
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2719
  $as_echo_n "(cached) " >&6
2088
2720
else
2089
2721
  cat >conftest.make <<\_ACEOF
2090
2722
SHELL = /bin/sh
2101
2733
rm -f conftest.make
2102
2734
fi
2103
2735
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2104
 
  { echo "$as_me:$LINENO: result: yes" >&5
2105
 
echo "${ECHO_T}yes" >&6; }
 
2736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2737
$as_echo "yes" >&6; }
2106
2738
  SET_MAKE=
2107
2739
else
2108
 
  { echo "$as_me:$LINENO: result: no" >&5
2109
 
echo "${ECHO_T}no" >&6; }
 
2740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2741
$as_echo "no" >&6; }
2110
2742
  SET_MAKE="MAKE=${MAKE-make}"
2111
2743
fi
2112
2744
 
2125
2757
  am__isrc=' -I$(srcdir)'
2126
2758
  # test to see if srcdir already configured
2127
2759
  if test -f $srcdir/config.status; then
2128
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2129
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2130
 
   { (exit 1); exit 1; }; }
 
2760
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2131
2761
  fi
2132
2762
fi
2133
2763
 
2143
2773
 
2144
2774
# Define the identity of the package.
2145
2775
 PACKAGE=fluxbox
2146
 
 VERSION=1.1.1
 
2776
 VERSION=git
2147
2777
 
2148
2778
 
2149
2779
# Some tools Automake needs.
2162
2792
 
2163
2793
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2164
2794
 
2165
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2166
 
 
2167
 
# Installed binaries are usually stripped using `strip' when the user
2168
 
# run `make install-strip'.  However `strip' might not be the right
2169
 
# tool to use in cross-compilation environments, therefore Automake
2170
 
# will honor the `STRIP' environment variable to overrule this program.
2171
 
if test "$cross_compiling" != no; then
2172
 
  if test -n "$ac_tool_prefix"; then
2173
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2174
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2175
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2179
 
else
2180
 
  if test -n "$STRIP"; then
2181
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2182
 
else
2183
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184
 
for as_dir in $PATH
2185
 
do
2186
 
  IFS=$as_save_IFS
2187
 
  test -z "$as_dir" && as_dir=.
2188
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2189
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2191
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192
 
    break 2
2193
 
  fi
2194
 
done
2195
 
done
2196
 
IFS=$as_save_IFS
2197
 
 
2198
 
fi
2199
 
fi
2200
 
STRIP=$ac_cv_prog_STRIP
2201
 
if test -n "$STRIP"; then
2202
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2203
 
echo "${ECHO_T}$STRIP" >&6; }
2204
 
else
2205
 
  { echo "$as_me:$LINENO: result: no" >&5
2206
 
echo "${ECHO_T}no" >&6; }
2207
 
fi
2208
 
 
2209
 
 
2210
 
fi
2211
 
if test -z "$ac_cv_prog_STRIP"; then
2212
 
  ac_ct_STRIP=$STRIP
2213
 
  # Extract the first word of "strip", so it can be a program name with args.
2214
 
set dummy strip; ac_word=$2
2215
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2216
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2218
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2219
 
else
2220
 
  if test -n "$ac_ct_STRIP"; then
2221
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2222
 
else
2223
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224
 
for as_dir in $PATH
2225
 
do
2226
 
  IFS=$as_save_IFS
2227
 
  test -z "$as_dir" && as_dir=.
2228
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2229
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230
 
    ac_cv_prog_ac_ct_STRIP="strip"
2231
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232
 
    break 2
2233
 
  fi
2234
 
done
2235
 
done
2236
 
IFS=$as_save_IFS
2237
 
 
2238
 
fi
2239
 
fi
2240
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2241
 
if test -n "$ac_ct_STRIP"; then
2242
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2243
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2244
 
else
2245
 
  { echo "$as_me:$LINENO: result: no" >&5
2246
 
echo "${ECHO_T}no" >&6; }
2247
 
fi
2248
 
 
2249
 
  if test "x$ac_ct_STRIP" = x; then
2250
 
    STRIP=":"
2251
 
  else
2252
 
    case $cross_compiling:$ac_tool_warned in
2253
 
yes:)
2254
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2255
 
whose name does not start with the host triplet.  If you think this
2256
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2257
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2258
 
whose name does not start with the host triplet.  If you think this
2259
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2260
 
ac_tool_warned=yes ;;
2261
 
esac
2262
 
    STRIP=$ac_ct_STRIP
2263
 
  fi
2264
 
else
2265
 
  STRIP="$ac_cv_prog_STRIP"
2266
 
fi
2267
 
 
2268
 
fi
2269
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2270
 
 
2271
2795
# We need awk for the "check" target.  The system "awk" is bad on
2272
2796
# some platforms.
2273
2797
# Always define AMTAR for backward compatibility.
2299
2823
if test -n "$ac_tool_prefix"; then
2300
2824
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2301
2825
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2302
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2303
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304
 
if test "${ac_cv_prog_CC+set}" = set; then
2305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2827
$as_echo_n "checking for $ac_word... " >&6; }
 
2828
if test "${ac_cv_prog_CC+set}" = set; then :
 
2829
  $as_echo_n "(cached) " >&6
2306
2830
else
2307
2831
  if test -n "$CC"; then
2308
2832
  ac_cv_prog_CC="$CC" # Let the user override the test.
2312
2836
do
2313
2837
  IFS=$as_save_IFS
2314
2838
  test -z "$as_dir" && as_dir=.
2315
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2839
    for ac_exec_ext in '' $ac_executable_extensions; do
2316
2840
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317
2841
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2318
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2842
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2319
2843
    break 2
2320
2844
  fi
2321
2845
done
2322
 
done
 
2846
  done
2323
2847
IFS=$as_save_IFS
2324
2848
 
2325
2849
fi
2326
2850
fi
2327
2851
CC=$ac_cv_prog_CC
2328
2852
if test -n "$CC"; then
2329
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2330
 
echo "${ECHO_T}$CC" >&6; }
 
2853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2854
$as_echo "$CC" >&6; }
2331
2855
else
2332
 
  { echo "$as_me:$LINENO: result: no" >&5
2333
 
echo "${ECHO_T}no" >&6; }
 
2856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2857
$as_echo "no" >&6; }
2334
2858
fi
2335
2859
 
2336
2860
 
2339
2863
  ac_ct_CC=$CC
2340
2864
  # Extract the first word of "gcc", so it can be a program name with args.
2341
2865
set dummy gcc; ac_word=$2
2342
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2343
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2345
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2867
$as_echo_n "checking for $ac_word... " >&6; }
 
2868
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2869
  $as_echo_n "(cached) " >&6
2346
2870
else
2347
2871
  if test -n "$ac_ct_CC"; then
2348
2872
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2352
2876
do
2353
2877
  IFS=$as_save_IFS
2354
2878
  test -z "$as_dir" && as_dir=.
2355
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2879
    for ac_exec_ext in '' $ac_executable_extensions; do
2356
2880
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357
2881
    ac_cv_prog_ac_ct_CC="gcc"
2358
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2882
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2359
2883
    break 2
2360
2884
  fi
2361
2885
done
2362
 
done
 
2886
  done
2363
2887
IFS=$as_save_IFS
2364
2888
 
2365
2889
fi
2366
2890
fi
2367
2891
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2368
2892
if test -n "$ac_ct_CC"; then
2369
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2370
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2894
$as_echo "$ac_ct_CC" >&6; }
2371
2895
else
2372
 
  { echo "$as_me:$LINENO: result: no" >&5
2373
 
echo "${ECHO_T}no" >&6; }
 
2896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2897
$as_echo "no" >&6; }
2374
2898
fi
2375
2899
 
2376
2900
  if test "x$ac_ct_CC" = x; then
2378
2902
  else
2379
2903
    case $cross_compiling:$ac_tool_warned in
2380
2904
yes:)
2381
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2382
 
whose name does not start with the host triplet.  If you think this
2383
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2384
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2385
 
whose name does not start with the host triplet.  If you think this
2386
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2906
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2387
2907
ac_tool_warned=yes ;;
2388
2908
esac
2389
2909
    CC=$ac_ct_CC
2396
2916
          if test -n "$ac_tool_prefix"; then
2397
2917
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2398
2918
set dummy ${ac_tool_prefix}cc; ac_word=$2
2399
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401
 
if test "${ac_cv_prog_CC+set}" = set; then
2402
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2920
$as_echo_n "checking for $ac_word... " >&6; }
 
2921
if test "${ac_cv_prog_CC+set}" = set; then :
 
2922
  $as_echo_n "(cached) " >&6
2403
2923
else
2404
2924
  if test -n "$CC"; then
2405
2925
  ac_cv_prog_CC="$CC" # Let the user override the test.
2409
2929
do
2410
2930
  IFS=$as_save_IFS
2411
2931
  test -z "$as_dir" && as_dir=.
2412
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2932
    for ac_exec_ext in '' $ac_executable_extensions; do
2413
2933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414
2934
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2415
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2935
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2416
2936
    break 2
2417
2937
  fi
2418
2938
done
2419
 
done
 
2939
  done
2420
2940
IFS=$as_save_IFS
2421
2941
 
2422
2942
fi
2423
2943
fi
2424
2944
CC=$ac_cv_prog_CC
2425
2945
if test -n "$CC"; then
2426
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2427
 
echo "${ECHO_T}$CC" >&6; }
 
2946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2947
$as_echo "$CC" >&6; }
2428
2948
else
2429
 
  { echo "$as_me:$LINENO: result: no" >&5
2430
 
echo "${ECHO_T}no" >&6; }
 
2949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2950
$as_echo "no" >&6; }
2431
2951
fi
2432
2952
 
2433
2953
 
2436
2956
if test -z "$CC"; then
2437
2957
  # Extract the first word of "cc", so it can be a program name with args.
2438
2958
set dummy cc; ac_word=$2
2439
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441
 
if test "${ac_cv_prog_CC+set}" = set; then
2442
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2960
$as_echo_n "checking for $ac_word... " >&6; }
 
2961
if test "${ac_cv_prog_CC+set}" = set; then :
 
2962
  $as_echo_n "(cached) " >&6
2443
2963
else
2444
2964
  if test -n "$CC"; then
2445
2965
  ac_cv_prog_CC="$CC" # Let the user override the test.
2450
2970
do
2451
2971
  IFS=$as_save_IFS
2452
2972
  test -z "$as_dir" && as_dir=.
2453
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2973
    for ac_exec_ext in '' $ac_executable_extensions; do
2454
2974
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455
2975
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2456
2976
       ac_prog_rejected=yes
2457
2977
       continue
2458
2978
     fi
2459
2979
    ac_cv_prog_CC="cc"
2460
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2980
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461
2981
    break 2
2462
2982
  fi
2463
2983
done
2464
 
done
 
2984
  done
2465
2985
IFS=$as_save_IFS
2466
2986
 
2467
2987
if test $ac_prog_rejected = yes; then
2480
3000
fi
2481
3001
CC=$ac_cv_prog_CC
2482
3002
if test -n "$CC"; then
2483
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2484
 
echo "${ECHO_T}$CC" >&6; }
 
3003
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3004
$as_echo "$CC" >&6; }
2485
3005
else
2486
 
  { echo "$as_me:$LINENO: result: no" >&5
2487
 
echo "${ECHO_T}no" >&6; }
 
3006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3007
$as_echo "no" >&6; }
2488
3008
fi
2489
3009
 
2490
3010
 
2495
3015
  do
2496
3016
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497
3017
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2499
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500
 
if test "${ac_cv_prog_CC+set}" = set; then
2501
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3019
$as_echo_n "checking for $ac_word... " >&6; }
 
3020
if test "${ac_cv_prog_CC+set}" = set; then :
 
3021
  $as_echo_n "(cached) " >&6
2502
3022
else
2503
3023
  if test -n "$CC"; then
2504
3024
  ac_cv_prog_CC="$CC" # Let the user override the test.
2508
3028
do
2509
3029
  IFS=$as_save_IFS
2510
3030
  test -z "$as_dir" && as_dir=.
2511
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3031
    for ac_exec_ext in '' $ac_executable_extensions; do
2512
3032
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513
3033
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2514
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3034
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515
3035
    break 2
2516
3036
  fi
2517
3037
done
2518
 
done
 
3038
  done
2519
3039
IFS=$as_save_IFS
2520
3040
 
2521
3041
fi
2522
3042
fi
2523
3043
CC=$ac_cv_prog_CC
2524
3044
if test -n "$CC"; then
2525
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2526
 
echo "${ECHO_T}$CC" >&6; }
 
3045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3046
$as_echo "$CC" >&6; }
2527
3047
else
2528
 
  { echo "$as_me:$LINENO: result: no" >&5
2529
 
echo "${ECHO_T}no" >&6; }
 
3048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3049
$as_echo "no" >&6; }
2530
3050
fi
2531
3051
 
2532
3052
 
2539
3059
do
2540
3060
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2541
3061
set dummy $ac_prog; ac_word=$2
2542
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2543
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2545
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3063
$as_echo_n "checking for $ac_word... " >&6; }
 
3064
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3065
  $as_echo_n "(cached) " >&6
2546
3066
else
2547
3067
  if test -n "$ac_ct_CC"; then
2548
3068
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2552
3072
do
2553
3073
  IFS=$as_save_IFS
2554
3074
  test -z "$as_dir" && as_dir=.
2555
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3075
    for ac_exec_ext in '' $ac_executable_extensions; do
2556
3076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557
3077
    ac_cv_prog_ac_ct_CC="$ac_prog"
2558
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3078
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559
3079
    break 2
2560
3080
  fi
2561
3081
done
2562
 
done
 
3082
  done
2563
3083
IFS=$as_save_IFS
2564
3084
 
2565
3085
fi
2566
3086
fi
2567
3087
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2568
3088
if test -n "$ac_ct_CC"; then
2569
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2570
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3090
$as_echo "$ac_ct_CC" >&6; }
2571
3091
else
2572
 
  { echo "$as_me:$LINENO: result: no" >&5
2573
 
echo "${ECHO_T}no" >&6; }
 
3092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3093
$as_echo "no" >&6; }
2574
3094
fi
2575
3095
 
2576
3096
 
2582
3102
  else
2583
3103
    case $cross_compiling:$ac_tool_warned in
2584
3104
yes:)
2585
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2586
 
whose name does not start with the host triplet.  If you think this
2587
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2588
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2589
 
whose name does not start with the host triplet.  If you think this
2590
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3105
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3106
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591
3107
ac_tool_warned=yes ;;
2592
3108
esac
2593
3109
    CC=$ac_ct_CC
2597
3113
fi
2598
3114
 
2599
3115
 
2600
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2601
 
See \`config.log' for more details." >&5
2602
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2603
 
See \`config.log' for more details." >&2;}
2604
 
   { (exit 1); exit 1; }; }
 
3116
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3117
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3118
as_fn_error "no acceptable C compiler found in \$PATH
 
3119
See \`config.log' for more details." "$LINENO" 5; }
2605
3120
 
2606
3121
# Provide some information about the compiler.
2607
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2608
 
ac_compiler=`set X $ac_compile; echo $2`
2609
 
{ (ac_try="$ac_compiler --version >&5"
2610
 
case "(($ac_try" in
2611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612
 
  *) ac_try_echo=$ac_try;;
2613
 
esac
2614
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615
 
  (eval "$ac_compiler --version >&5") 2>&5
2616
 
  ac_status=$?
2617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618
 
  (exit $ac_status); }
2619
 
{ (ac_try="$ac_compiler -v >&5"
2620
 
case "(($ac_try" in
2621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622
 
  *) ac_try_echo=$ac_try;;
2623
 
esac
2624
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625
 
  (eval "$ac_compiler -v >&5") 2>&5
2626
 
  ac_status=$?
2627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
 
  (exit $ac_status); }
2629
 
{ (ac_try="$ac_compiler -V >&5"
2630
 
case "(($ac_try" in
2631
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632
 
  *) ac_try_echo=$ac_try;;
2633
 
esac
2634
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635
 
  (eval "$ac_compiler -V >&5") 2>&5
2636
 
  ac_status=$?
2637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
 
  (exit $ac_status); }
 
3122
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3123
set X $ac_compile
 
3124
ac_compiler=$2
 
3125
for ac_option in --version -v -V -qversion; do
 
3126
  { { ac_try="$ac_compiler $ac_option >&5"
 
3127
case "(($ac_try" in
 
3128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3129
  *) ac_try_echo=$ac_try;;
 
3130
esac
 
3131
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3132
$as_echo "$ac_try_echo"; } >&5
 
3133
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3134
  ac_status=$?
 
3135
  if test -s conftest.err; then
 
3136
    sed '10a\
 
3137
... rest of stderr output deleted ...
 
3138
         10q' conftest.err >conftest.er1
 
3139
    cat conftest.er1 >&5
 
3140
  fi
 
3141
  rm -f conftest.er1 conftest.err
 
3142
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3143
  test $ac_status = 0; }
 
3144
done
2639
3145
 
2640
 
cat >conftest.$ac_ext <<_ACEOF
2641
 
/* confdefs.h.  */
2642
 
_ACEOF
2643
 
cat confdefs.h >>conftest.$ac_ext
2644
 
cat >>conftest.$ac_ext <<_ACEOF
 
3146
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645
3147
/* end confdefs.h.  */
2646
3148
 
2647
3149
int
2653
3155
}
2654
3156
_ACEOF
2655
3157
ac_clean_files_save=$ac_clean_files
2656
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3158
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2657
3159
# Try to create an executable without -o first, disregard a.out.
2658
3160
# It will help us diagnose broken compilers, and finding out an intuition
2659
3161
# of exeext.
2660
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2661
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2662
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2663
 
#
2664
 
# List of possible output files, starting from the most likely.
2665
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2666
 
# only as a last resort.  b.out is created by i960 compilers.
2667
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2668
 
#
2669
 
# The IRIX 6 linker writes into existing files which may not be
2670
 
# executable, retaining their permissions.  Remove them first so a
2671
 
# subsequent execution test works.
 
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3163
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3164
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3165
 
 
3166
# The possible output files:
 
3167
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3168
 
2672
3169
ac_rmfiles=
2673
3170
for ac_file in $ac_files
2674
3171
do
2675
3172
  case $ac_file in
2676
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3173
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2677
3174
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2678
3175
  esac
2679
3176
done
2680
3177
rm -f $ac_rmfiles
2681
3178
 
2682
 
if { (ac_try="$ac_link_default"
 
3179
if { { ac_try="$ac_link_default"
2683
3180
case "(($ac_try" in
2684
3181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685
3182
  *) ac_try_echo=$ac_try;;
2686
3183
esac
2687
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3184
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3185
$as_echo "$ac_try_echo"; } >&5
2688
3186
  (eval "$ac_link_default") 2>&5
2689
3187
  ac_status=$?
2690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
 
  (exit $ac_status); }; then
 
3188
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3189
  test $ac_status = 0; }; then :
2692
3190
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2693
3191
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2694
3192
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2698
3196
do
2699
3197
  test -f "$ac_file" || continue
2700
3198
  case $ac_file in
2701
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3199
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2702
3200
        ;;
2703
3201
    [ab].out )
2704
3202
        # We found the default executable, but exeext='' is most
2705
3203
        # certainly right.
2706
3204
        break;;
2707
3205
    *.* )
2708
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3206
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2709
3207
        then :; else
2710
3208
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2711
3209
        fi
2724
3222
else
2725
3223
  ac_file=''
2726
3224
fi
2727
 
 
2728
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2729
 
echo "${ECHO_T}$ac_file" >&6; }
2730
 
if test -z "$ac_file"; then
2731
 
  echo "$as_me: failed program was:" >&5
 
3225
if test -z "$ac_file"; then :
 
3226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3227
$as_echo "no" >&6; }
 
3228
$as_echo "$as_me: failed program was:" >&5
2732
3229
sed 's/^/| /' conftest.$ac_ext >&5
2733
3230
 
2734
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2735
 
See \`config.log' for more details." >&5
2736
 
echo "$as_me: error: C compiler cannot create executables
2737
 
See \`config.log' for more details." >&2;}
2738
 
   { (exit 77); exit 77; }; }
 
3231
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3232
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3233
{ as_fn_set_status 77
 
3234
as_fn_error "C compiler cannot create executables
 
3235
See \`config.log' for more details." "$LINENO" 5; }; }
 
3236
else
 
3237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3238
$as_echo "yes" >&6; }
2739
3239
fi
2740
 
 
 
3240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3241
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3243
$as_echo "$ac_file" >&6; }
2741
3244
ac_exeext=$ac_cv_exeext
2742
3245
 
2743
 
# Check that the compiler produces executables we can run.  If not, either
2744
 
# the compiler is broken, or we cross compile.
2745
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2746
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2747
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2748
 
# If not cross compiling, check that we can run a simple program.
2749
 
if test "$cross_compiling" != yes; then
2750
 
  if { ac_try='./$ac_file'
2751
 
  { (case "(($ac_try" in
2752
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753
 
  *) ac_try_echo=$ac_try;;
2754
 
esac
2755
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756
 
  (eval "$ac_try") 2>&5
2757
 
  ac_status=$?
2758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759
 
  (exit $ac_status); }; }; then
2760
 
    cross_compiling=no
2761
 
  else
2762
 
    if test "$cross_compiling" = maybe; then
2763
 
        cross_compiling=yes
2764
 
    else
2765
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2766
 
If you meant to cross compile, use \`--host'.
2767
 
See \`config.log' for more details." >&5
2768
 
echo "$as_me: error: cannot run C compiled programs.
2769
 
If you meant to cross compile, use \`--host'.
2770
 
See \`config.log' for more details." >&2;}
2771
 
   { (exit 1); exit 1; }; }
2772
 
    fi
2773
 
  fi
2774
 
fi
2775
 
{ echo "$as_me:$LINENO: result: yes" >&5
2776
 
echo "${ECHO_T}yes" >&6; }
2777
 
 
2778
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3246
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2779
3247
ac_clean_files=$ac_clean_files_save
2780
 
# Check that the compiler produces executables we can run.  If not, either
2781
 
# the compiler is broken, or we cross compile.
2782
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2783
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2784
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2785
 
echo "${ECHO_T}$cross_compiling" >&6; }
2786
 
 
2787
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2788
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2789
 
if { (ac_try="$ac_link"
 
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3249
$as_echo_n "checking for suffix of executables... " >&6; }
 
3250
if { { ac_try="$ac_link"
2790
3251
case "(($ac_try" in
2791
3252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792
3253
  *) ac_try_echo=$ac_try;;
2793
3254
esac
2794
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3255
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3256
$as_echo "$ac_try_echo"; } >&5
2795
3257
  (eval "$ac_link") 2>&5
2796
3258
  ac_status=$?
2797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798
 
  (exit $ac_status); }; then
 
3259
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3260
  test $ac_status = 0; }; then :
2799
3261
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2800
3262
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2801
3263
# work properly (i.e., refer to `conftest.exe'), while it won't with
2803
3265
for ac_file in conftest.exe conftest conftest.*; do
2804
3266
  test -f "$ac_file" || continue
2805
3267
  case $ac_file in
2806
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3268
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2807
3269
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808
3270
          break;;
2809
3271
    * ) break;;
2810
3272
  esac
2811
3273
done
2812
3274
else
2813
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2814
 
See \`config.log' for more details." >&5
2815
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2816
 
See \`config.log' for more details." >&2;}
2817
 
   { (exit 1); exit 1; }; }
 
3275
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3276
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3277
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3278
See \`config.log' for more details." "$LINENO" 5; }
2818
3279
fi
2819
 
 
2820
 
rm -f conftest$ac_cv_exeext
2821
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2822
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3280
rm -f conftest conftest$ac_cv_exeext
 
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3282
$as_echo "$ac_cv_exeext" >&6; }
2823
3283
 
2824
3284
rm -f conftest.$ac_ext
2825
3285
EXEEXT=$ac_cv_exeext
2826
3286
ac_exeext=$EXEEXT
2827
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2828
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2829
 
if test "${ac_cv_objext+set}" = set; then
2830
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3287
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3288
/* end confdefs.h.  */
 
3289
#include <stdio.h>
 
3290
int
 
3291
main ()
 
3292
{
 
3293
FILE *f = fopen ("conftest.out", "w");
 
3294
 return ferror (f) || fclose (f) != 0;
 
3295
 
 
3296
  ;
 
3297
  return 0;
 
3298
}
 
3299
_ACEOF
 
3300
ac_clean_files="$ac_clean_files conftest.out"
 
3301
# Check that the compiler produces executables we can run.  If not, either
 
3302
# the compiler is broken, or we cross compile.
 
3303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3304
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3305
if test "$cross_compiling" != yes; then
 
3306
  { { ac_try="$ac_link"
 
3307
case "(($ac_try" in
 
3308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3309
  *) ac_try_echo=$ac_try;;
 
3310
esac
 
3311
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3312
$as_echo "$ac_try_echo"; } >&5
 
3313
  (eval "$ac_link") 2>&5
 
3314
  ac_status=$?
 
3315
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3316
  test $ac_status = 0; }
 
3317
  if { ac_try='./conftest$ac_cv_exeext'
 
3318
  { { case "(($ac_try" in
 
3319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3320
  *) ac_try_echo=$ac_try;;
 
3321
esac
 
3322
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3323
$as_echo "$ac_try_echo"; } >&5
 
3324
  (eval "$ac_try") 2>&5
 
3325
  ac_status=$?
 
3326
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3327
  test $ac_status = 0; }; }; then
 
3328
    cross_compiling=no
 
3329
  else
 
3330
    if test "$cross_compiling" = maybe; then
 
3331
        cross_compiling=yes
 
3332
    else
 
3333
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3334
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3335
as_fn_error "cannot run C compiled programs.
 
3336
If you meant to cross compile, use \`--host'.
 
3337
See \`config.log' for more details." "$LINENO" 5; }
 
3338
    fi
 
3339
  fi
 
3340
fi
 
3341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3342
$as_echo "$cross_compiling" >&6; }
 
3343
 
 
3344
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3345
ac_clean_files=$ac_clean_files_save
 
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3347
$as_echo_n "checking for suffix of object files... " >&6; }
 
3348
if test "${ac_cv_objext+set}" = set; then :
 
3349
  $as_echo_n "(cached) " >&6
2831
3350
else
2832
 
  cat >conftest.$ac_ext <<_ACEOF
2833
 
/* confdefs.h.  */
2834
 
_ACEOF
2835
 
cat confdefs.h >>conftest.$ac_ext
2836
 
cat >>conftest.$ac_ext <<_ACEOF
 
3351
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837
3352
/* end confdefs.h.  */
2838
3353
 
2839
3354
int
2845
3360
}
2846
3361
_ACEOF
2847
3362
rm -f conftest.o conftest.obj
2848
 
if { (ac_try="$ac_compile"
 
3363
if { { ac_try="$ac_compile"
2849
3364
case "(($ac_try" in
2850
3365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851
3366
  *) ac_try_echo=$ac_try;;
2852
3367
esac
2853
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3368
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3369
$as_echo "$ac_try_echo"; } >&5
2854
3370
  (eval "$ac_compile") 2>&5
2855
3371
  ac_status=$?
2856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
 
  (exit $ac_status); }; then
 
3372
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3373
  test $ac_status = 0; }; then :
2858
3374
  for ac_file in conftest.o conftest.obj conftest.*; do
2859
3375
  test -f "$ac_file" || continue;
2860
3376
  case $ac_file in
2861
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3377
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2862
3378
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2863
3379
       break;;
2864
3380
  esac
2865
3381
done
2866
3382
else
2867
 
  echo "$as_me: failed program was:" >&5
 
3383
  $as_echo "$as_me: failed program was:" >&5
2868
3384
sed 's/^/| /' conftest.$ac_ext >&5
2869
3385
 
2870
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2871
 
See \`config.log' for more details." >&5
2872
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2873
 
See \`config.log' for more details." >&2;}
2874
 
   { (exit 1); exit 1; }; }
 
3386
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3387
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3388
as_fn_error "cannot compute suffix of object files: cannot compile
 
3389
See \`config.log' for more details." "$LINENO" 5; }
2875
3390
fi
2876
 
 
2877
3391
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2878
3392
fi
2879
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2880
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3394
$as_echo "$ac_cv_objext" >&6; }
2881
3395
OBJEXT=$ac_cv_objext
2882
3396
ac_objext=$OBJEXT
2883
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2884
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2885
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3398
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3399
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3400
  $as_echo_n "(cached) " >&6
2887
3401
else
2888
 
  cat >conftest.$ac_ext <<_ACEOF
2889
 
/* confdefs.h.  */
2890
 
_ACEOF
2891
 
cat confdefs.h >>conftest.$ac_ext
2892
 
cat >>conftest.$ac_ext <<_ACEOF
 
3402
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893
3403
/* end confdefs.h.  */
2894
3404
 
2895
3405
int
2903
3413
  return 0;
2904
3414
}
2905
3415
_ACEOF
2906
 
rm -f conftest.$ac_objext
2907
 
if { (ac_try="$ac_compile"
2908
 
case "(($ac_try" in
2909
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910
 
  *) ac_try_echo=$ac_try;;
2911
 
esac
2912
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913
 
  (eval "$ac_compile") 2>conftest.er1
2914
 
  ac_status=$?
2915
 
  grep -v '^ *+' conftest.er1 >conftest.err
2916
 
  rm -f conftest.er1
2917
 
  cat conftest.err >&5
2918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919
 
  (exit $ac_status); } && {
2920
 
         test -z "$ac_c_werror_flag" ||
2921
 
         test ! -s conftest.err
2922
 
       } && test -s conftest.$ac_objext; then
 
3416
if ac_fn_c_try_compile "$LINENO"; then :
2923
3417
  ac_compiler_gnu=yes
2924
3418
else
2925
 
  echo "$as_me: failed program was:" >&5
2926
 
sed 's/^/| /' conftest.$ac_ext >&5
2927
 
 
2928
 
        ac_compiler_gnu=no
 
3419
  ac_compiler_gnu=no
2929
3420
fi
2930
 
 
2931
3421
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932
3422
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2933
3423
 
2934
3424
fi
2935
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2936
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2937
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3426
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3427
if test $ac_compiler_gnu = yes; then
 
3428
  GCC=yes
 
3429
else
 
3430
  GCC=
 
3431
fi
2938
3432
ac_test_CFLAGS=${CFLAGS+set}
2939
3433
ac_save_CFLAGS=$CFLAGS
2940
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2941
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2942
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2943
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3435
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3436
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3437
  $as_echo_n "(cached) " >&6
2944
3438
else
2945
3439
  ac_save_c_werror_flag=$ac_c_werror_flag
2946
3440
   ac_c_werror_flag=yes
2947
3441
   ac_cv_prog_cc_g=no
2948
3442
   CFLAGS="-g"
2949
 
   cat >conftest.$ac_ext <<_ACEOF
2950
 
/* confdefs.h.  */
2951
 
_ACEOF
2952
 
cat confdefs.h >>conftest.$ac_ext
2953
 
cat >>conftest.$ac_ext <<_ACEOF
 
3443
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954
3444
/* end confdefs.h.  */
2955
3445
 
2956
3446
int
2961
3451
  return 0;
2962
3452
}
2963
3453
_ACEOF
2964
 
rm -f conftest.$ac_objext
2965
 
if { (ac_try="$ac_compile"
2966
 
case "(($ac_try" in
2967
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968
 
  *) ac_try_echo=$ac_try;;
2969
 
esac
2970
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971
 
  (eval "$ac_compile") 2>conftest.er1
2972
 
  ac_status=$?
2973
 
  grep -v '^ *+' conftest.er1 >conftest.err
2974
 
  rm -f conftest.er1
2975
 
  cat conftest.err >&5
2976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977
 
  (exit $ac_status); } && {
2978
 
         test -z "$ac_c_werror_flag" ||
2979
 
         test ! -s conftest.err
2980
 
       } && test -s conftest.$ac_objext; then
 
3454
if ac_fn_c_try_compile "$LINENO"; then :
2981
3455
  ac_cv_prog_cc_g=yes
2982
3456
else
2983
 
  echo "$as_me: failed program was:" >&5
2984
 
sed 's/^/| /' conftest.$ac_ext >&5
2985
 
 
2986
 
        CFLAGS=""
2987
 
      cat >conftest.$ac_ext <<_ACEOF
2988
 
/* confdefs.h.  */
2989
 
_ACEOF
2990
 
cat confdefs.h >>conftest.$ac_ext
2991
 
cat >>conftest.$ac_ext <<_ACEOF
 
3457
  CFLAGS=""
 
3458
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992
3459
/* end confdefs.h.  */
2993
3460
 
2994
3461
int
2999
3466
  return 0;
3000
3467
}
3001
3468
_ACEOF
3002
 
rm -f conftest.$ac_objext
3003
 
if { (ac_try="$ac_compile"
3004
 
case "(($ac_try" in
3005
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006
 
  *) ac_try_echo=$ac_try;;
3007
 
esac
3008
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009
 
  (eval "$ac_compile") 2>conftest.er1
3010
 
  ac_status=$?
3011
 
  grep -v '^ *+' conftest.er1 >conftest.err
3012
 
  rm -f conftest.er1
3013
 
  cat conftest.err >&5
3014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015
 
  (exit $ac_status); } && {
3016
 
         test -z "$ac_c_werror_flag" ||
3017
 
         test ! -s conftest.err
3018
 
       } && test -s conftest.$ac_objext; then
3019
 
  :
 
3469
if ac_fn_c_try_compile "$LINENO"; then :
 
3470
 
3020
3471
else
3021
 
  echo "$as_me: failed program was:" >&5
3022
 
sed 's/^/| /' conftest.$ac_ext >&5
3023
 
 
3024
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3472
  ac_c_werror_flag=$ac_save_c_werror_flag
3025
3473
         CFLAGS="-g"
3026
 
         cat >conftest.$ac_ext <<_ACEOF
3027
 
/* confdefs.h.  */
3028
 
_ACEOF
3029
 
cat confdefs.h >>conftest.$ac_ext
3030
 
cat >>conftest.$ac_ext <<_ACEOF
 
3474
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031
3475
/* end confdefs.h.  */
3032
3476
 
3033
3477
int
3038
3482
  return 0;
3039
3483
}
3040
3484
_ACEOF
3041
 
rm -f conftest.$ac_objext
3042
 
if { (ac_try="$ac_compile"
3043
 
case "(($ac_try" in
3044
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045
 
  *) ac_try_echo=$ac_try;;
3046
 
esac
3047
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048
 
  (eval "$ac_compile") 2>conftest.er1
3049
 
  ac_status=$?
3050
 
  grep -v '^ *+' conftest.er1 >conftest.err
3051
 
  rm -f conftest.er1
3052
 
  cat conftest.err >&5
3053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054
 
  (exit $ac_status); } && {
3055
 
         test -z "$ac_c_werror_flag" ||
3056
 
         test ! -s conftest.err
3057
 
       } && test -s conftest.$ac_objext; then
 
3485
if ac_fn_c_try_compile "$LINENO"; then :
3058
3486
  ac_cv_prog_cc_g=yes
3059
 
else
3060
 
  echo "$as_me: failed program was:" >&5
3061
 
sed 's/^/| /' conftest.$ac_ext >&5
3062
 
 
3063
 
 
3064
 
fi
3065
 
 
3066
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067
 
fi
3068
 
 
3069
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070
 
fi
3071
 
 
 
3487
fi
 
3488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3489
fi
 
3490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3491
fi
3072
3492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073
3493
   ac_c_werror_flag=$ac_save_c_werror_flag
3074
3494
fi
3075
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3076
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3496
$as_echo "$ac_cv_prog_cc_g" >&6; }
3077
3497
if test "$ac_test_CFLAGS" = set; then
3078
3498
  CFLAGS=$ac_save_CFLAGS
3079
3499
elif test $ac_cv_prog_cc_g = yes; then
3089
3509
    CFLAGS=
3090
3510
  fi
3091
3511
fi
3092
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3093
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3094
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3095
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3513
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3514
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3515
  $as_echo_n "(cached) " >&6
3096
3516
else
3097
3517
  ac_cv_prog_cc_c89=no
3098
3518
ac_save_CC=$CC
3099
 
cat >conftest.$ac_ext <<_ACEOF
3100
 
/* confdefs.h.  */
3101
 
_ACEOF
3102
 
cat confdefs.h >>conftest.$ac_ext
3103
 
cat >>conftest.$ac_ext <<_ACEOF
 
3519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104
3520
/* end confdefs.h.  */
3105
3521
#include <stdarg.h>
3106
3522
#include <stdio.h>
3157
3573
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3158
3574
do
3159
3575
  CC="$ac_save_CC $ac_arg"
3160
 
  rm -f conftest.$ac_objext
3161
 
if { (ac_try="$ac_compile"
3162
 
case "(($ac_try" in
3163
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164
 
  *) ac_try_echo=$ac_try;;
3165
 
esac
3166
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167
 
  (eval "$ac_compile") 2>conftest.er1
3168
 
  ac_status=$?
3169
 
  grep -v '^ *+' conftest.er1 >conftest.err
3170
 
  rm -f conftest.er1
3171
 
  cat conftest.err >&5
3172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173
 
  (exit $ac_status); } && {
3174
 
         test -z "$ac_c_werror_flag" ||
3175
 
         test ! -s conftest.err
3176
 
       } && test -s conftest.$ac_objext; then
 
3576
  if ac_fn_c_try_compile "$LINENO"; then :
3177
3577
  ac_cv_prog_cc_c89=$ac_arg
3178
 
else
3179
 
  echo "$as_me: failed program was:" >&5
3180
 
sed 's/^/| /' conftest.$ac_ext >&5
3181
 
 
3182
 
 
3183
3578
fi
3184
 
 
3185
3579
rm -f core conftest.err conftest.$ac_objext
3186
3580
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3187
3581
done
3192
3586
# AC_CACHE_VAL
3193
3587
case "x$ac_cv_prog_cc_c89" in
3194
3588
  x)
3195
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3196
 
echo "${ECHO_T}none needed" >&6; } ;;
 
3589
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3590
$as_echo "none needed" >&6; } ;;
3197
3591
  xno)
3198
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3199
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
3592
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3593
$as_echo "unsupported" >&6; } ;;
3200
3594
  *)
3201
3595
    CC="$CC $ac_cv_prog_cc_c89"
3202
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3203
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3596
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3597
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3204
3598
esac
 
3599
if test "x$ac_cv_prog_cc_c89" != xno; then :
3205
3600
 
 
3601
fi
3206
3602
 
3207
3603
ac_ext=cpp
3208
3604
ac_cpp='$CXXCPP $CPPFLAGS'
3217
3613
am_make=${MAKE-make}
3218
3614
cat > confinc << 'END'
3219
3615
am__doit:
3220
 
        @echo done
 
3616
        @echo this is the am__doit target
3221
3617
.PHONY: am__doit
3222
3618
END
3223
3619
# If we don't find an include directive, just comment out the code.
3224
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3225
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3621
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3226
3622
am__include="#"
3227
3623
am__quote=
3228
3624
_am_result=none
3229
3625
# First try GNU make style include.
3230
3626
echo "include confinc" > confmf
3231
 
# We grep out `Entering directory' and `Leaving directory'
3232
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3233
 
# In particular we don't look at `^make:' because GNU make might
3234
 
# be invoked under some other name (usually "gmake"), in which
3235
 
# case it prints its new name instead of `make'.
3236
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3237
 
   am__include=include
3238
 
   am__quote=
3239
 
   _am_result=GNU
3240
 
fi
 
3627
# Ignore all kinds of additional output from `make'.
 
3628
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3629
*the\ am__doit\ target*)
 
3630
  am__include=include
 
3631
  am__quote=
 
3632
  _am_result=GNU
 
3633
  ;;
 
3634
esac
3241
3635
# Now try BSD make style include.
3242
3636
if test "$am__include" = "#"; then
3243
3637
   echo '.include "confinc"' > confmf
3244
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3245
 
      am__include=.include
3246
 
      am__quote="\""
3247
 
      _am_result=BSD
3248
 
   fi
 
3638
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3639
   *the\ am__doit\ target*)
 
3640
     am__include=.include
 
3641
     am__quote="\""
 
3642
     _am_result=BSD
 
3643
     ;;
 
3644
   esac
3249
3645
fi
3250
3646
 
3251
3647
 
3252
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3253
 
echo "${ECHO_T}$_am_result" >&6; }
 
3648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3649
$as_echo "$_am_result" >&6; }
3254
3650
rm -f confinc confmf
3255
3651
 
3256
3652
# Check whether --enable-dependency-tracking was given.
3257
 
if test "${enable_dependency_tracking+set}" = set; then
 
3653
if test "${enable_dependency_tracking+set}" = set; then :
3258
3654
  enableval=$enable_dependency_tracking;
3259
3655
fi
3260
3656
 
3274
3670
 
3275
3671
depcc="$CC"   am_compiler_list=
3276
3672
 
3277
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3278
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3279
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3674
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3675
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3676
  $as_echo_n "(cached) " >&6
3281
3677
else
3282
3678
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3283
3679
  # We make a subdir and do the tests there.  Otherwise we can end up
3302
3698
  if test "$am_compiler_list" = ""; then
3303
3699
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3304
3700
  fi
 
3701
  am__universal=false
 
3702
  case " $depcc " in #(
 
3703
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3704
     esac
 
3705
 
3305
3706
  for depmode in $am_compiler_list; do
3306
3707
    # Setup a source with many dependencies, because some compilers
3307
3708
    # like to wrap large dependency lists on column 80 (with \), and
3319
3720
    done
3320
3721
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3321
3722
 
 
3723
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3724
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3725
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3726
    # versions had trouble with output in subdirs
 
3727
    am__obj=sub/conftest.${OBJEXT-o}
 
3728
    am__minus_obj="-o $am__obj"
3322
3729
    case $depmode in
 
3730
    gcc)
 
3731
      # This depmode causes a compiler race in universal mode.
 
3732
      test "$am__universal" = false || continue
 
3733
      ;;
3323
3734
    nosideeffect)
3324
3735
      # after this tag, mechanisms are not by side-effect, so they'll
3325
3736
      # only be used when explicitly requested
3329
3740
        break
3330
3741
      fi
3331
3742
      ;;
 
3743
    msvisualcpp | msvcmsys)
 
3744
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3745
      # not run yet.  These depmodes are late enough in the game, and
 
3746
      # so weak that their functioning should not be impacted.
 
3747
      am__obj=conftest.${OBJEXT-o}
 
3748
      am__minus_obj=
 
3749
      ;;
3332
3750
    none) break ;;
3333
3751
    esac
3334
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3335
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3336
 
    # handle `-M -o', and we need to detect this.
3337
3752
    if depmode=$depmode \
3338
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3753
       source=sub/conftest.c object=$am__obj \
3339
3754
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3340
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3755
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3341
3756
         >/dev/null 2>conftest.err &&
3342
3757
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3343
3758
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3344
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3759
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3345
3760
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3346
3761
      # icc doesn't choke on unknown options, it will just issue warnings
3347
3762
      # or remarks (even with -Werror).  So we grep stderr for any message
3365
3780
fi
3366
3781
 
3367
3782
fi
3368
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3369
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3784
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3370
3785
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3371
3786
 
3372
3787
 if
3394
3809
  do
3395
3810
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396
3811
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3397
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3398
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3399
 
if test "${ac_cv_prog_CXX+set}" = set; then
3400
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3813
$as_echo_n "checking for $ac_word... " >&6; }
 
3814
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3815
  $as_echo_n "(cached) " >&6
3401
3816
else
3402
3817
  if test -n "$CXX"; then
3403
3818
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3407
3822
do
3408
3823
  IFS=$as_save_IFS
3409
3824
  test -z "$as_dir" && as_dir=.
3410
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3825
    for ac_exec_ext in '' $ac_executable_extensions; do
3411
3826
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412
3827
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3413
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3828
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414
3829
    break 2
3415
3830
  fi
3416
3831
done
3417
 
done
 
3832
  done
3418
3833
IFS=$as_save_IFS
3419
3834
 
3420
3835
fi
3421
3836
fi
3422
3837
CXX=$ac_cv_prog_CXX
3423
3838
if test -n "$CXX"; then
3424
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
3425
 
echo "${ECHO_T}$CXX" >&6; }
 
3839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3840
$as_echo "$CXX" >&6; }
3426
3841
else
3427
 
  { echo "$as_me:$LINENO: result: no" >&5
3428
 
echo "${ECHO_T}no" >&6; }
 
3842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3843
$as_echo "no" >&6; }
3429
3844
fi
3430
3845
 
3431
3846
 
3438
3853
do
3439
3854
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3440
3855
set dummy $ac_prog; ac_word=$2
3441
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3442
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3857
$as_echo_n "checking for $ac_word... " >&6; }
 
3858
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3859
  $as_echo_n "(cached) " >&6
3445
3860
else
3446
3861
  if test -n "$ac_ct_CXX"; then
3447
3862
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3451
3866
do
3452
3867
  IFS=$as_save_IFS
3453
3868
  test -z "$as_dir" && as_dir=.
3454
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3869
    for ac_exec_ext in '' $ac_executable_extensions; do
3455
3870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456
3871
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3457
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3872
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458
3873
    break 2
3459
3874
  fi
3460
3875
done
3461
 
done
 
3876
  done
3462
3877
IFS=$as_save_IFS
3463
3878
 
3464
3879
fi
3465
3880
fi
3466
3881
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3467
3882
if test -n "$ac_ct_CXX"; then
3468
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3469
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
3883
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3884
$as_echo "$ac_ct_CXX" >&6; }
3470
3885
else
3471
 
  { echo "$as_me:$LINENO: result: no" >&5
3472
 
echo "${ECHO_T}no" >&6; }
 
3886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3887
$as_echo "no" >&6; }
3473
3888
fi
3474
3889
 
3475
3890
 
3481
3896
  else
3482
3897
    case $cross_compiling:$ac_tool_warned in
3483
3898
yes:)
3484
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3485
 
whose name does not start with the host triplet.  If you think this
3486
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3487
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3488
 
whose name does not start with the host triplet.  If you think this
3489
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3900
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490
3901
ac_tool_warned=yes ;;
3491
3902
esac
3492
3903
    CXX=$ac_ct_CXX
3496
3907
  fi
3497
3908
fi
3498
3909
# Provide some information about the compiler.
3499
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3500
 
ac_compiler=`set X $ac_compile; echo $2`
3501
 
{ (ac_try="$ac_compiler --version >&5"
3502
 
case "(($ac_try" in
3503
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504
 
  *) ac_try_echo=$ac_try;;
3505
 
esac
3506
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507
 
  (eval "$ac_compiler --version >&5") 2>&5
3508
 
  ac_status=$?
3509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510
 
  (exit $ac_status); }
3511
 
{ (ac_try="$ac_compiler -v >&5"
3512
 
case "(($ac_try" in
3513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514
 
  *) ac_try_echo=$ac_try;;
3515
 
esac
3516
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517
 
  (eval "$ac_compiler -v >&5") 2>&5
3518
 
  ac_status=$?
3519
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
 
  (exit $ac_status); }
3521
 
{ (ac_try="$ac_compiler -V >&5"
3522
 
case "(($ac_try" in
3523
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524
 
  *) ac_try_echo=$ac_try;;
3525
 
esac
3526
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527
 
  (eval "$ac_compiler -V >&5") 2>&5
3528
 
  ac_status=$?
3529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530
 
  (exit $ac_status); }
 
3910
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3911
set X $ac_compile
 
3912
ac_compiler=$2
 
3913
for ac_option in --version -v -V -qversion; do
 
3914
  { { ac_try="$ac_compiler $ac_option >&5"
 
3915
case "(($ac_try" in
 
3916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3917
  *) ac_try_echo=$ac_try;;
 
3918
esac
 
3919
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3920
$as_echo "$ac_try_echo"; } >&5
 
3921
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3922
  ac_status=$?
 
3923
  if test -s conftest.err; then
 
3924
    sed '10a\
 
3925
... rest of stderr output deleted ...
 
3926
         10q' conftest.err >conftest.er1
 
3927
    cat conftest.er1 >&5
 
3928
  fi
 
3929
  rm -f conftest.er1 conftest.err
 
3930
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3931
  test $ac_status = 0; }
 
3932
done
3531
3933
 
3532
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3533
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3534
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3535
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3935
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3936
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3937
  $as_echo_n "(cached) " >&6
3536
3938
else
3537
 
  cat >conftest.$ac_ext <<_ACEOF
3538
 
/* confdefs.h.  */
3539
 
_ACEOF
3540
 
cat confdefs.h >>conftest.$ac_ext
3541
 
cat >>conftest.$ac_ext <<_ACEOF
 
3939
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542
3940
/* end confdefs.h.  */
3543
3941
 
3544
3942
int
3552
3950
  return 0;
3553
3951
}
3554
3952
_ACEOF
3555
 
rm -f conftest.$ac_objext
3556
 
if { (ac_try="$ac_compile"
3557
 
case "(($ac_try" in
3558
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559
 
  *) ac_try_echo=$ac_try;;
3560
 
esac
3561
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562
 
  (eval "$ac_compile") 2>conftest.er1
3563
 
  ac_status=$?
3564
 
  grep -v '^ *+' conftest.er1 >conftest.err
3565
 
  rm -f conftest.er1
3566
 
  cat conftest.err >&5
3567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568
 
  (exit $ac_status); } && {
3569
 
         test -z "$ac_cxx_werror_flag" ||
3570
 
         test ! -s conftest.err
3571
 
       } && test -s conftest.$ac_objext; then
 
3953
if ac_fn_cxx_try_compile "$LINENO"; then :
3572
3954
  ac_compiler_gnu=yes
3573
3955
else
3574
 
  echo "$as_me: failed program was:" >&5
3575
 
sed 's/^/| /' conftest.$ac_ext >&5
3576
 
 
3577
 
        ac_compiler_gnu=no
 
3956
  ac_compiler_gnu=no
3578
3957
fi
3579
 
 
3580
3958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581
3959
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3582
3960
 
3583
3961
fi
3584
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3585
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3586
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3963
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3964
if test $ac_compiler_gnu = yes; then
 
3965
  GXX=yes
 
3966
else
 
3967
  GXX=
 
3968
fi
3587
3969
ac_test_CXXFLAGS=${CXXFLAGS+set}
3588
3970
ac_save_CXXFLAGS=$CXXFLAGS
3589
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3590
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3591
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
3592
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3972
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3973
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3974
  $as_echo_n "(cached) " >&6
3593
3975
else
3594
3976
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3595
3977
   ac_cxx_werror_flag=yes
3596
3978
   ac_cv_prog_cxx_g=no
3597
3979
   CXXFLAGS="-g"
3598
 
   cat >conftest.$ac_ext <<_ACEOF
3599
 
/* confdefs.h.  */
3600
 
_ACEOF
3601
 
cat confdefs.h >>conftest.$ac_ext
3602
 
cat >>conftest.$ac_ext <<_ACEOF
 
3980
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603
3981
/* end confdefs.h.  */
3604
3982
 
3605
3983
int
3610
3988
  return 0;
3611
3989
}
3612
3990
_ACEOF
3613
 
rm -f conftest.$ac_objext
3614
 
if { (ac_try="$ac_compile"
3615
 
case "(($ac_try" in
3616
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617
 
  *) ac_try_echo=$ac_try;;
3618
 
esac
3619
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620
 
  (eval "$ac_compile") 2>conftest.er1
3621
 
  ac_status=$?
3622
 
  grep -v '^ *+' conftest.er1 >conftest.err
3623
 
  rm -f conftest.er1
3624
 
  cat conftest.err >&5
3625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626
 
  (exit $ac_status); } && {
3627
 
         test -z "$ac_cxx_werror_flag" ||
3628
 
         test ! -s conftest.err
3629
 
       } && test -s conftest.$ac_objext; then
 
3991
if ac_fn_cxx_try_compile "$LINENO"; then :
3630
3992
  ac_cv_prog_cxx_g=yes
3631
3993
else
3632
 
  echo "$as_me: failed program was:" >&5
3633
 
sed 's/^/| /' conftest.$ac_ext >&5
3634
 
 
3635
 
        CXXFLAGS=""
3636
 
      cat >conftest.$ac_ext <<_ACEOF
3637
 
/* confdefs.h.  */
3638
 
_ACEOF
3639
 
cat confdefs.h >>conftest.$ac_ext
3640
 
cat >>conftest.$ac_ext <<_ACEOF
 
3994
  CXXFLAGS=""
 
3995
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641
3996
/* end confdefs.h.  */
3642
3997
 
3643
3998
int
3648
4003
  return 0;
3649
4004
}
3650
4005
_ACEOF
3651
 
rm -f conftest.$ac_objext
3652
 
if { (ac_try="$ac_compile"
3653
 
case "(($ac_try" in
3654
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655
 
  *) ac_try_echo=$ac_try;;
3656
 
esac
3657
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658
 
  (eval "$ac_compile") 2>conftest.er1
3659
 
  ac_status=$?
3660
 
  grep -v '^ *+' conftest.er1 >conftest.err
3661
 
  rm -f conftest.er1
3662
 
  cat conftest.err >&5
3663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664
 
  (exit $ac_status); } && {
3665
 
         test -z "$ac_cxx_werror_flag" ||
3666
 
         test ! -s conftest.err
3667
 
       } && test -s conftest.$ac_objext; then
3668
 
  :
 
4006
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4007
 
3669
4008
else
3670
 
  echo "$as_me: failed program was:" >&5
3671
 
sed 's/^/| /' conftest.$ac_ext >&5
3672
 
 
3673
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4009
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3674
4010
         CXXFLAGS="-g"
3675
 
         cat >conftest.$ac_ext <<_ACEOF
3676
 
/* confdefs.h.  */
3677
 
_ACEOF
3678
 
cat confdefs.h >>conftest.$ac_ext
3679
 
cat >>conftest.$ac_ext <<_ACEOF
 
4011
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680
4012
/* end confdefs.h.  */
3681
4013
 
3682
4014
int
3687
4019
  return 0;
3688
4020
}
3689
4021
_ACEOF
3690
 
rm -f conftest.$ac_objext
3691
 
if { (ac_try="$ac_compile"
3692
 
case "(($ac_try" in
3693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694
 
  *) ac_try_echo=$ac_try;;
3695
 
esac
3696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697
 
  (eval "$ac_compile") 2>conftest.er1
3698
 
  ac_status=$?
3699
 
  grep -v '^ *+' conftest.er1 >conftest.err
3700
 
  rm -f conftest.er1
3701
 
  cat conftest.err >&5
3702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703
 
  (exit $ac_status); } && {
3704
 
         test -z "$ac_cxx_werror_flag" ||
3705
 
         test ! -s conftest.err
3706
 
       } && test -s conftest.$ac_objext; then
 
4022
if ac_fn_cxx_try_compile "$LINENO"; then :
3707
4023
  ac_cv_prog_cxx_g=yes
3708
 
else
3709
 
  echo "$as_me: failed program was:" >&5
3710
 
sed 's/^/| /' conftest.$ac_ext >&5
3711
 
 
3712
 
 
3713
 
fi
3714
 
 
3715
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716
 
fi
3717
 
 
3718
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719
 
fi
3720
 
 
 
4024
fi
 
4025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4026
fi
 
4027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4028
fi
3721
4029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722
4030
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3723
4031
fi
3724
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3725
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
4032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
4033
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3726
4034
if test "$ac_test_CXXFLAGS" = set; then
3727
4035
  CXXFLAGS=$ac_save_CXXFLAGS
3728
4036
elif test $ac_cv_prog_cxx_g = yes; then
3746
4054
 
3747
4055
depcc="$CXX"  am_compiler_list=
3748
4056
 
3749
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3750
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3751
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3752
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4058
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4059
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
4060
  $as_echo_n "(cached) " >&6
3753
4061
else
3754
4062
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755
4063
  # We make a subdir and do the tests there.  Otherwise we can end up
3774
4082
  if test "$am_compiler_list" = ""; then
3775
4083
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3776
4084
  fi
 
4085
  am__universal=false
 
4086
  case " $depcc " in #(
 
4087
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4088
     esac
 
4089
 
3777
4090
  for depmode in $am_compiler_list; do
3778
4091
    # Setup a source with many dependencies, because some compilers
3779
4092
    # like to wrap large dependency lists on column 80 (with \), and
3791
4104
    done
3792
4105
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
4106
 
 
4107
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4108
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4109
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4110
    # versions had trouble with output in subdirs
 
4111
    am__obj=sub/conftest.${OBJEXT-o}
 
4112
    am__minus_obj="-o $am__obj"
3794
4113
    case $depmode in
 
4114
    gcc)
 
4115
      # This depmode causes a compiler race in universal mode.
 
4116
      test "$am__universal" = false || continue
 
4117
      ;;
3795
4118
    nosideeffect)
3796
4119
      # after this tag, mechanisms are not by side-effect, so they'll
3797
4120
      # only be used when explicitly requested
3801
4124
        break
3802
4125
      fi
3803
4126
      ;;
 
4127
    msvisualcpp | msvcmsys)
 
4128
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4129
      # not run yet.  These depmodes are late enough in the game, and
 
4130
      # so weak that their functioning should not be impacted.
 
4131
      am__obj=conftest.${OBJEXT-o}
 
4132
      am__minus_obj=
 
4133
      ;;
3804
4134
    none) break ;;
3805
4135
    esac
3806
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3807
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3808
 
    # handle `-M -o', and we need to detect this.
3809
4136
    if depmode=$depmode \
3810
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4137
       source=sub/conftest.c object=$am__obj \
3811
4138
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3812
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4139
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3813
4140
         >/dev/null 2>conftest.err &&
3814
4141
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3815
4142
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4143
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3817
4144
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818
4145
      # icc doesn't choke on unknown options, it will just issue warnings
3819
4146
      # or remarks (even with -Werror).  So we grep stderr for any message
3837
4164
fi
3838
4165
 
3839
4166
fi
3840
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3841
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4168
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3842
4169
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3843
4170
 
3844
4171
 if
3852
4179
fi
3853
4180
 
3854
4181
 
3855
 
# Find a good install program.  We prefer a C program (faster),
3856
 
# so one script is as good as another.  But avoid the broken or
3857
 
# incompatible versions:
3858
 
# SysV /etc/install, /usr/sbin/install
3859
 
# SunOS /usr/etc/install
3860
 
# IRIX /sbin/install
3861
 
# AIX /bin/install
3862
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3863
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3864
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3865
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3866
 
# OS/2's system install, which has a completely different semantic
3867
 
# ./install, which can be erroneously created by make from ./install.sh.
3868
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3869
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3870
 
if test -z "$INSTALL"; then
3871
 
if test "${ac_cv_path_install+set}" = set; then
3872
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3873
 
else
3874
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875
 
for as_dir in $PATH
3876
 
do
3877
 
  IFS=$as_save_IFS
3878
 
  test -z "$as_dir" && as_dir=.
3879
 
  # Account for people who put trailing slashes in PATH elements.
3880
 
case $as_dir/ in
3881
 
  ./ | .// | /cC/* | \
3882
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3883
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3884
 
  /usr/ucb/* ) ;;
3885
 
  *)
3886
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3887
 
    # Don't use installbsd from OSF since it installs stuff as root
3888
 
    # by default.
3889
 
    for ac_prog in ginstall scoinst install; do
3890
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3891
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3892
 
          if test $ac_prog = install &&
3893
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3894
 
            # AIX install.  It has an incompatible calling convention.
3895
 
            :
3896
 
          elif test $ac_prog = install &&
3897
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3898
 
            # program-specific install script used by HP pwplus--don't use.
3899
 
            :
3900
 
          else
3901
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3902
 
            break 3
3903
 
          fi
3904
 
        fi
3905
 
      done
3906
 
    done
3907
 
    ;;
3908
 
esac
3909
 
done
3910
 
IFS=$as_save_IFS
3911
 
 
3912
 
 
3913
 
fi
3914
 
  if test "${ac_cv_path_install+set}" = set; then
3915
 
    INSTALL=$ac_cv_path_install
3916
 
  else
3917
 
    # As a last resort, use the slow shell script.  Don't cache a
3918
 
    # value for INSTALL within a source directory, because that will
3919
 
    # break other packages using the cache if that directory is
3920
 
    # removed, or if the value is a relative name.
3921
 
    INSTALL=$ac_install_sh
3922
 
  fi
3923
 
fi
3924
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3925
 
echo "${ECHO_T}$INSTALL" >&6; }
3926
 
 
3927
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3928
 
# It thinks the first close brace ends the variable substitution.
3929
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3930
 
 
3931
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3932
 
 
3933
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3934
4182
 
3935
4183
if test -n "$ac_tool_prefix"; then
3936
4184
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3937
4185
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3938
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3939
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3940
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
3941
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4187
$as_echo_n "checking for $ac_word... " >&6; }
 
4188
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
4189
  $as_echo_n "(cached) " >&6
3942
4190
else
3943
4191
  if test -n "$RANLIB"; then
3944
4192
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3948
4196
do
3949
4197
  IFS=$as_save_IFS
3950
4198
  test -z "$as_dir" && as_dir=.
3951
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4199
    for ac_exec_ext in '' $ac_executable_extensions; do
3952
4200
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953
4201
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3954
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4202
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955
4203
    break 2
3956
4204
  fi
3957
4205
done
3958
 
done
 
4206
  done
3959
4207
IFS=$as_save_IFS
3960
4208
 
3961
4209
fi
3962
4210
fi
3963
4211
RANLIB=$ac_cv_prog_RANLIB
3964
4212
if test -n "$RANLIB"; then
3965
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3966
 
echo "${ECHO_T}$RANLIB" >&6; }
 
4213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
4214
$as_echo "$RANLIB" >&6; }
3967
4215
else
3968
 
  { echo "$as_me:$LINENO: result: no" >&5
3969
 
echo "${ECHO_T}no" >&6; }
 
4216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4217
$as_echo "no" >&6; }
3970
4218
fi
3971
4219
 
3972
4220
 
3975
4223
  ac_ct_RANLIB=$RANLIB
3976
4224
  # Extract the first word of "ranlib", so it can be a program name with args.
3977
4225
set dummy ranlib; ac_word=$2
3978
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3979
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3980
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3981
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4227
$as_echo_n "checking for $ac_word... " >&6; }
 
4228
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
4229
  $as_echo_n "(cached) " >&6
3982
4230
else
3983
4231
  if test -n "$ac_ct_RANLIB"; then
3984
4232
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3988
4236
do
3989
4237
  IFS=$as_save_IFS
3990
4238
  test -z "$as_dir" && as_dir=.
3991
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4239
    for ac_exec_ext in '' $ac_executable_extensions; do
3992
4240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993
4241
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3994
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4242
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995
4243
    break 2
3996
4244
  fi
3997
4245
done
3998
 
done
 
4246
  done
3999
4247
IFS=$as_save_IFS
4000
4248
 
4001
4249
fi
4002
4250
fi
4003
4251
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4004
4252
if test -n "$ac_ct_RANLIB"; then
4005
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4006
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
4253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
4254
$as_echo "$ac_ct_RANLIB" >&6; }
4007
4255
else
4008
 
  { echo "$as_me:$LINENO: result: no" >&5
4009
 
echo "${ECHO_T}no" >&6; }
 
4256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4257
$as_echo "no" >&6; }
4010
4258
fi
4011
4259
 
4012
4260
  if test "x$ac_ct_RANLIB" = x; then
4014
4262
  else
4015
4263
    case $cross_compiling:$ac_tool_warned in
4016
4264
yes:)
4017
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4018
 
whose name does not start with the host triplet.  If you think this
4019
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4020
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4021
 
whose name does not start with the host triplet.  If you think this
4022
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4266
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023
4267
ac_tool_warned=yes ;;
4024
4268
esac
4025
4269
    RANLIB=$ac_ct_RANLIB
4029
4273
fi
4030
4274
 
4031
4275
 
4032
 
for ac_prog in sed
4033
 
do
4034
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4035
 
set dummy $ac_prog; ac_word=$2
4036
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4037
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4038
 
if test "${ac_cv_prog_regex_cmd+set}" = set; then
4039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4040
 
else
4041
 
  if test -n "$regex_cmd"; then
4042
 
  ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
4043
 
else
4044
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045
 
for as_dir in $PATH
4046
 
do
4047
 
  IFS=$as_save_IFS
4048
 
  test -z "$as_dir" && as_dir=.
4049
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4050
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051
 
    ac_cv_prog_regex_cmd="$ac_prog"
4052
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053
 
    break 2
4054
 
  fi
4055
 
done
4056
 
done
4057
 
IFS=$as_save_IFS
4058
 
 
4059
 
fi
4060
 
fi
4061
 
regex_cmd=$ac_cv_prog_regex_cmd
4062
 
if test -n "$regex_cmd"; then
4063
 
  { echo "$as_me:$LINENO: result: $regex_cmd" >&5
4064
 
echo "${ECHO_T}$regex_cmd" >&6; }
4065
 
else
4066
 
  { echo "$as_me:$LINENO: result: no" >&5
4067
 
echo "${ECHO_T}no" >&6; }
4068
 
fi
4069
 
 
4070
 
 
4071
 
  test -n "$regex_cmd" && break
4072
 
done
4073
 
 
4074
 
if test x$regex_cmd = "x"; then
4075
 
  { { echo "$as_me:$LINENO: error: error. sed is required to build the data files." >&5
4076
 
echo "$as_me: error: error. sed is required to build the data files." >&2;}
4077
 
   { (exit 1); exit 1; }; }
4078
 
fi
 
4276
 
 
4277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
4278
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
4279
if test "${ac_cv_c_const+set}" = set; then :
 
4280
  $as_echo_n "(cached) " >&6
 
4281
else
 
4282
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4283
/* end confdefs.h.  */
 
4284
 
 
4285
int
 
4286
main ()
 
4287
{
 
4288
/* FIXME: Include the comments suggested by Paul. */
 
4289
#ifndef __cplusplus
 
4290
  /* Ultrix mips cc rejects this.  */
 
4291
  typedef int charset[2];
 
4292
  const charset cs;
 
4293
  /* SunOS 4.1.1 cc rejects this.  */
 
4294
  char const *const *pcpcc;
 
4295
  char **ppc;
 
4296
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4297
  struct point {int x, y;};
 
4298
  static struct point const zero = {0,0};
 
4299
  /* AIX XL C 1.02.0.0 rejects this.
 
4300
     It does not let you subtract one const X* pointer from another in
 
4301
     an arm of an if-expression whose if-part is not a constant
 
4302
     expression */
 
4303
  const char *g = "string";
 
4304
  pcpcc = &g + (g ? g-g : 0);
 
4305
  /* HPUX 7.0 cc rejects these. */
 
4306
  ++pcpcc;
 
4307
  ppc = (char**) pcpcc;
 
4308
  pcpcc = (char const *const *) ppc;
 
4309
  { /* SCO 3.2v4 cc rejects this.  */
 
4310
    char *t;
 
4311
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4312
 
 
4313
    *t++ = 0;
 
4314
    if (s) return 0;
 
4315
  }
 
4316
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4317
    int x[] = {25, 17};
 
4318
    const int *foo = &x[0];
 
4319
    ++foo;
 
4320
  }
 
4321
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4322
    typedef const int *iptr;
 
4323
    iptr p = 0;
 
4324
    ++p;
 
4325
  }
 
4326
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4327
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4328
    struct s { int j; const int *ap[3]; };
 
4329
    struct s *b; b->j = 5;
 
4330
  }
 
4331
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4332
    const int foo = 10;
 
4333
    if (!foo) return 0;
 
4334
  }
 
4335
  return !cs[0] && !zero.x;
 
4336
#endif
 
4337
 
 
4338
  ;
 
4339
  return 0;
 
4340
}
 
4341
_ACEOF
 
4342
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4343
  ac_cv_c_const=yes
 
4344
else
 
4345
  ac_cv_c_const=no
 
4346
fi
 
4347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4348
fi
 
4349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
4350
$as_echo "$ac_cv_c_const" >&6; }
 
4351
if test $ac_cv_c_const = no; then
 
4352
 
 
4353
$as_echo "#define const /**/" >>confdefs.h
 
4354
 
 
4355
fi
 
4356
 
 
4357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
4358
$as_echo_n "checking for inline... " >&6; }
 
4359
if test "${ac_cv_c_inline+set}" = set; then :
 
4360
  $as_echo_n "(cached) " >&6
 
4361
else
 
4362
  ac_cv_c_inline=no
 
4363
for ac_kw in inline __inline__ __inline; do
 
4364
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4365
/* end confdefs.h.  */
 
4366
#ifndef __cplusplus
 
4367
typedef int foo_t;
 
4368
static $ac_kw foo_t static_foo () {return 0; }
 
4369
$ac_kw foo_t foo () {return 0; }
 
4370
#endif
 
4371
 
 
4372
_ACEOF
 
4373
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4374
  ac_cv_c_inline=$ac_kw
 
4375
fi
 
4376
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4377
  test "$ac_cv_c_inline" != no && break
 
4378
done
 
4379
 
 
4380
fi
 
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
4382
$as_echo "$ac_cv_c_inline" >&6; }
 
4383
 
 
4384
case $ac_cv_c_inline in
 
4385
  inline | yes) ;;
 
4386
  *)
 
4387
    case $ac_cv_c_inline in
 
4388
      no) ac_val=;;
 
4389
      *) ac_val=$ac_cv_c_inline;;
 
4390
    esac
 
4391
    cat >>confdefs.h <<_ACEOF
 
4392
#ifndef __cplusplus
 
4393
#define inline $ac_val
 
4394
#endif
 
4395
_ACEOF
 
4396
    ;;
 
4397
esac
4079
4398
 
4080
4399
 
4081
4400
ac_ext=cpp
4083
4402
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084
4403
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085
4404
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4086
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4087
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
4405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
4406
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4088
4407
if test -z "$CXXCPP"; then
4089
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4408
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
4409
  $as_echo_n "(cached) " >&6
4091
4410
else
4092
4411
      # Double quotes because CXXCPP needs to be expanded
4093
4412
    for CXXCPP in "$CXX -E" "/lib/cpp"
4101
4420
  # <limits.h> exists even on freestanding compilers.
4102
4421
  # On the NeXT, cc -E runs the code through the compiler's parser,
4103
4422
  # not just through cpp. "Syntax error" is here to catch this case.
4104
 
  cat >conftest.$ac_ext <<_ACEOF
4105
 
/* confdefs.h.  */
4106
 
_ACEOF
4107
 
cat confdefs.h >>conftest.$ac_ext
4108
 
cat >>conftest.$ac_ext <<_ACEOF
 
4423
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109
4424
/* end confdefs.h.  */
4110
4425
#ifdef __STDC__
4111
4426
# include <limits.h>
4114
4429
#endif
4115
4430
                     Syntax error
4116
4431
_ACEOF
4117
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4118
 
case "(($ac_try" in
4119
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120
 
  *) ac_try_echo=$ac_try;;
4121
 
esac
4122
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4124
 
  ac_status=$?
4125
 
  grep -v '^ *+' conftest.er1 >conftest.err
4126
 
  rm -f conftest.er1
4127
 
  cat conftest.err >&5
4128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129
 
  (exit $ac_status); } >/dev/null && {
4130
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4131
 
         test ! -s conftest.err
4132
 
       }; then
4133
 
  :
 
4432
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4433
 
4134
4434
else
4135
 
  echo "$as_me: failed program was:" >&5
4136
 
sed 's/^/| /' conftest.$ac_ext >&5
4137
 
 
4138
4435
  # Broken: fails on valid input.
4139
4436
continue
4140
4437
fi
4141
 
 
4142
4438
rm -f conftest.err conftest.$ac_ext
4143
4439
 
4144
4440
  # OK, works on sane cases.  Now check whether nonexistent headers
4145
4441
  # can be detected and how.
4146
 
  cat >conftest.$ac_ext <<_ACEOF
4147
 
/* confdefs.h.  */
4148
 
_ACEOF
4149
 
cat confdefs.h >>conftest.$ac_ext
4150
 
cat >>conftest.$ac_ext <<_ACEOF
 
4442
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151
4443
/* end confdefs.h.  */
4152
4444
#include <ac_nonexistent.h>
4153
4445
_ACEOF
4154
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4155
 
case "(($ac_try" in
4156
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157
 
  *) ac_try_echo=$ac_try;;
4158
 
esac
4159
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161
 
  ac_status=$?
4162
 
  grep -v '^ *+' conftest.er1 >conftest.err
4163
 
  rm -f conftest.er1
4164
 
  cat conftest.err >&5
4165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166
 
  (exit $ac_status); } >/dev/null && {
4167
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4168
 
         test ! -s conftest.err
4169
 
       }; then
 
4446
if ac_fn_cxx_try_cpp "$LINENO"; then :
4170
4447
  # Broken: success on invalid input.
4171
4448
continue
4172
4449
else
4173
 
  echo "$as_me: failed program was:" >&5
4174
 
sed 's/^/| /' conftest.$ac_ext >&5
4175
 
 
4176
4450
  # Passes both tests.
4177
4451
ac_preproc_ok=:
4178
4452
break
4179
4453
fi
4180
 
 
4181
4454
rm -f conftest.err conftest.$ac_ext
4182
4455
 
4183
4456
done
4184
4457
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185
4458
rm -f conftest.err conftest.$ac_ext
4186
 
if $ac_preproc_ok; then
 
4459
if $ac_preproc_ok; then :
4187
4460
  break
4188
4461
fi
4189
4462
 
4195
4468
else
4196
4469
  ac_cv_prog_CXXCPP=$CXXCPP
4197
4470
fi
4198
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4199
 
echo "${ECHO_T}$CXXCPP" >&6; }
 
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
4472
$as_echo "$CXXCPP" >&6; }
4200
4473
ac_preproc_ok=false
4201
4474
for ac_cxx_preproc_warn_flag in '' yes
4202
4475
do
4206
4479
  # <limits.h> exists even on freestanding compilers.
4207
4480
  # On the NeXT, cc -E runs the code through the compiler's parser,
4208
4481
  # not just through cpp. "Syntax error" is here to catch this case.
4209
 
  cat >conftest.$ac_ext <<_ACEOF
4210
 
/* confdefs.h.  */
4211
 
_ACEOF
4212
 
cat confdefs.h >>conftest.$ac_ext
4213
 
cat >>conftest.$ac_ext <<_ACEOF
 
4482
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214
4483
/* end confdefs.h.  */
4215
4484
#ifdef __STDC__
4216
4485
# include <limits.h>
4219
4488
#endif
4220
4489
                     Syntax error
4221
4490
_ACEOF
4222
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4223
 
case "(($ac_try" in
4224
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225
 
  *) ac_try_echo=$ac_try;;
4226
 
esac
4227
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4229
 
  ac_status=$?
4230
 
  grep -v '^ *+' conftest.er1 >conftest.err
4231
 
  rm -f conftest.er1
4232
 
  cat conftest.err >&5
4233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234
 
  (exit $ac_status); } >/dev/null && {
4235
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4236
 
         test ! -s conftest.err
4237
 
       }; then
4238
 
  :
 
4491
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4492
 
4239
4493
else
4240
 
  echo "$as_me: failed program was:" >&5
4241
 
sed 's/^/| /' conftest.$ac_ext >&5
4242
 
 
4243
4494
  # Broken: fails on valid input.
4244
4495
continue
4245
4496
fi
4246
 
 
4247
4497
rm -f conftest.err conftest.$ac_ext
4248
4498
 
4249
4499
  # OK, works on sane cases.  Now check whether nonexistent headers
4250
4500
  # can be detected and how.
4251
 
  cat >conftest.$ac_ext <<_ACEOF
4252
 
/* confdefs.h.  */
4253
 
_ACEOF
4254
 
cat confdefs.h >>conftest.$ac_ext
4255
 
cat >>conftest.$ac_ext <<_ACEOF
 
4501
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256
4502
/* end confdefs.h.  */
4257
4503
#include <ac_nonexistent.h>
4258
4504
_ACEOF
4259
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4260
 
case "(($ac_try" in
4261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262
 
  *) ac_try_echo=$ac_try;;
4263
 
esac
4264
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4266
 
  ac_status=$?
4267
 
  grep -v '^ *+' conftest.er1 >conftest.err
4268
 
  rm -f conftest.er1
4269
 
  cat conftest.err >&5
4270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271
 
  (exit $ac_status); } >/dev/null && {
4272
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4273
 
         test ! -s conftest.err
4274
 
       }; then
 
4505
if ac_fn_cxx_try_cpp "$LINENO"; then :
4275
4506
  # Broken: success on invalid input.
4276
4507
continue
4277
4508
else
4278
 
  echo "$as_me: failed program was:" >&5
4279
 
sed 's/^/| /' conftest.$ac_ext >&5
4280
 
 
4281
4509
  # Passes both tests.
4282
4510
ac_preproc_ok=:
4283
4511
break
4284
4512
fi
4285
 
 
4286
4513
rm -f conftest.err conftest.$ac_ext
4287
4514
 
4288
4515
done
4289
4516
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4290
4517
rm -f conftest.err conftest.$ac_ext
4291
 
if $ac_preproc_ok; then
4292
 
  :
 
4518
if $ac_preproc_ok; then :
 
4519
 
4293
4520
else
4294
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4295
 
See \`config.log' for more details." >&5
4296
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4297
 
See \`config.log' for more details." >&2;}
4298
 
   { (exit 1); exit 1; }; }
 
4521
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4522
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4523
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
 
4524
See \`config.log' for more details." "$LINENO" 5; }
4299
4525
fi
4300
4526
 
4301
4527
ac_ext=cpp
4305
4531
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4306
4532
 
4307
4533
 
4308
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4309
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4310
 
if test "${ac_cv_path_GREP+set}" = set; then
4311
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4312
 
else
4313
 
  # Extract the first word of "grep ggrep" to use in msg output
4314
 
if test -z "$GREP"; then
4315
 
set dummy grep ggrep; ac_prog_name=$2
4316
 
if test "${ac_cv_path_GREP+set}" = set; then
4317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4318
 
else
 
4534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4535
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4536
if test "${ac_cv_path_GREP+set}" = set; then :
 
4537
  $as_echo_n "(cached) " >&6
 
4538
else
 
4539
  if test -z "$GREP"; then
4319
4540
  ac_path_GREP_found=false
4320
 
# Loop through the user's path and test for each of PROGNAME-LIST
4321
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4541
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4542
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322
4543
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323
4544
do
4324
4545
  IFS=$as_save_IFS
4325
4546
  test -z "$as_dir" && as_dir=.
4326
 
  for ac_prog in grep ggrep; do
4327
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4328
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4330
 
    # Check for GNU ac_path_GREP and select it if it is found.
 
4547
    for ac_prog in grep ggrep; do
 
4548
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4549
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4550
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4551
# Check for GNU ac_path_GREP and select it if it is found.
4331
4552
  # Check for GNU $ac_path_GREP
4332
4553
case `"$ac_path_GREP" --version 2>&1` in
4333
4554
*GNU*)
4334
4555
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335
4556
*)
4336
4557
  ac_count=0
4337
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4558
  $as_echo_n 0123456789 >"conftest.in"
4338
4559
  while :
4339
4560
  do
4340
4561
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4341
4562
    mv "conftest.tmp" "conftest.in"
4342
4563
    cp "conftest.in" "conftest.nl"
4343
 
    echo 'GREP' >> "conftest.nl"
 
4564
    $as_echo 'GREP' >> "conftest.nl"
4344
4565
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345
4566
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346
 
    ac_count=`expr $ac_count + 1`
 
4567
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4347
4568
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348
4569
      # Best one so far, save it but keep looking for a better one
4349
4570
      ac_cv_path_GREP="$ac_path_GREP"
4355
4576
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356
4577
esac
4357
4578
 
4358
 
 
4359
 
    $ac_path_GREP_found && break 3
4360
 
  done
4361
 
done
4362
 
 
4363
 
done
 
4579
      $ac_path_GREP_found && break 3
 
4580
    done
 
4581
  done
 
4582
  done
4364
4583
IFS=$as_save_IFS
4365
 
 
4366
 
 
4367
 
fi
4368
 
 
4369
 
GREP="$ac_cv_path_GREP"
4370
 
if test -z "$GREP"; then
4371
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4372
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4373
 
   { (exit 1); exit 1; }; }
4374
 
fi
4375
 
 
 
4584
  if test -z "$ac_cv_path_GREP"; then
 
4585
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4586
  fi
4376
4587
else
4377
4588
  ac_cv_path_GREP=$GREP
4378
4589
fi
4379
4590
 
4380
 
 
4381
4591
fi
4382
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4383
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4593
$as_echo "$ac_cv_path_GREP" >&6; }
4384
4594
 GREP="$ac_cv_path_GREP"
4385
4595
 
4386
4596
 
4387
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4388
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4389
 
if test "${ac_cv_path_EGREP+set}" = set; then
4390
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4598
$as_echo_n "checking for egrep... " >&6; }
 
4599
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4600
  $as_echo_n "(cached) " >&6
4391
4601
else
4392
4602
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4393
4603
   then ac_cv_path_EGREP="$GREP -E"
4394
4604
   else
4395
 
     # Extract the first word of "egrep" to use in msg output
4396
 
if test -z "$EGREP"; then
4397
 
set dummy egrep; ac_prog_name=$2
4398
 
if test "${ac_cv_path_EGREP+set}" = set; then
4399
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4400
 
else
 
4605
     if test -z "$EGREP"; then
4401
4606
  ac_path_EGREP_found=false
4402
 
# Loop through the user's path and test for each of PROGNAME-LIST
4403
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4607
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4608
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404
4609
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405
4610
do
4406
4611
  IFS=$as_save_IFS
4407
4612
  test -z "$as_dir" && as_dir=.
4408
 
  for ac_prog in egrep; do
4409
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4410
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4411
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4412
 
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4613
    for ac_prog in egrep; do
 
4614
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4615
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4616
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4617
# Check for GNU ac_path_EGREP and select it if it is found.
4413
4618
  # Check for GNU $ac_path_EGREP
4414
4619
case `"$ac_path_EGREP" --version 2>&1` in
4415
4620
*GNU*)
4416
4621
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4417
4622
*)
4418
4623
  ac_count=0
4419
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4624
  $as_echo_n 0123456789 >"conftest.in"
4420
4625
  while :
4421
4626
  do
4422
4627
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4423
4628
    mv "conftest.tmp" "conftest.in"
4424
4629
    cp "conftest.in" "conftest.nl"
4425
 
    echo 'EGREP' >> "conftest.nl"
 
4630
    $as_echo 'EGREP' >> "conftest.nl"
4426
4631
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427
4632
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428
 
    ac_count=`expr $ac_count + 1`
 
4633
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4429
4634
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4430
4635
      # Best one so far, save it but keep looking for a better one
4431
4636
      ac_cv_path_EGREP="$ac_path_EGREP"
4437
4642
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438
4643
esac
4439
4644
 
4440
 
 
4441
 
    $ac_path_EGREP_found && break 3
4442
 
  done
4443
 
done
4444
 
 
4445
 
done
 
4645
      $ac_path_EGREP_found && break 3
 
4646
    done
 
4647
  done
 
4648
  done
4446
4649
IFS=$as_save_IFS
4447
 
 
4448
 
 
4449
 
fi
4450
 
 
4451
 
EGREP="$ac_cv_path_EGREP"
4452
 
if test -z "$EGREP"; then
4453
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4454
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4455
 
   { (exit 1); exit 1; }; }
4456
 
fi
4457
 
 
 
4650
  if test -z "$ac_cv_path_EGREP"; then
 
4651
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4652
  fi
4458
4653
else
4459
4654
  ac_cv_path_EGREP=$EGREP
4460
4655
fi
4461
4656
 
4462
 
 
4463
4657
   fi
4464
4658
fi
4465
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4466
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4660
$as_echo "$ac_cv_path_EGREP" >&6; }
4467
4661
 EGREP="$ac_cv_path_EGREP"
4468
4662
 
4469
4663
 
4470
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4471
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4472
 
if test "${ac_cv_header_stdc+set}" = set; then
4473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4665
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4666
if test "${ac_cv_header_stdc+set}" = set; then :
 
4667
  $as_echo_n "(cached) " >&6
4474
4668
else
4475
 
  cat >conftest.$ac_ext <<_ACEOF
4476
 
/* confdefs.h.  */
4477
 
_ACEOF
4478
 
cat confdefs.h >>conftest.$ac_ext
4479
 
cat >>conftest.$ac_ext <<_ACEOF
 
4669
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480
4670
/* end confdefs.h.  */
4481
4671
#include <stdlib.h>
4482
4672
#include <stdarg.h>
4491
4681
  return 0;
4492
4682
}
4493
4683
_ACEOF
4494
 
rm -f conftest.$ac_objext
4495
 
if { (ac_try="$ac_compile"
4496
 
case "(($ac_try" in
4497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498
 
  *) ac_try_echo=$ac_try;;
4499
 
esac
4500
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501
 
  (eval "$ac_compile") 2>conftest.er1
4502
 
  ac_status=$?
4503
 
  grep -v '^ *+' conftest.er1 >conftest.err
4504
 
  rm -f conftest.er1
4505
 
  cat conftest.err >&5
4506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507
 
  (exit $ac_status); } && {
4508
 
         test -z "$ac_cxx_werror_flag" ||
4509
 
         test ! -s conftest.err
4510
 
       } && test -s conftest.$ac_objext; then
 
4684
if ac_fn_cxx_try_compile "$LINENO"; then :
4511
4685
  ac_cv_header_stdc=yes
4512
4686
else
4513
 
  echo "$as_me: failed program was:" >&5
4514
 
sed 's/^/| /' conftest.$ac_ext >&5
4515
 
 
4516
 
        ac_cv_header_stdc=no
 
4687
  ac_cv_header_stdc=no
4517
4688
fi
4518
 
 
4519
4689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520
4690
 
4521
4691
if test $ac_cv_header_stdc = yes; then
4522
4692
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4523
 
  cat >conftest.$ac_ext <<_ACEOF
4524
 
/* confdefs.h.  */
4525
 
_ACEOF
4526
 
cat confdefs.h >>conftest.$ac_ext
4527
 
cat >>conftest.$ac_ext <<_ACEOF
 
4693
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528
4694
/* end confdefs.h.  */
4529
4695
#include <string.h>
4530
4696
 
4531
4697
_ACEOF
4532
4698
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533
 
  $EGREP "memchr" >/dev/null 2>&1; then
4534
 
  :
 
4699
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4700
 
4535
4701
else
4536
4702
  ac_cv_header_stdc=no
4537
4703
fi
4541
4707
 
4542
4708
if test $ac_cv_header_stdc = yes; then
4543
4709
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4544
 
  cat >conftest.$ac_ext <<_ACEOF
4545
 
/* confdefs.h.  */
4546
 
_ACEOF
4547
 
cat confdefs.h >>conftest.$ac_ext
4548
 
cat >>conftest.$ac_ext <<_ACEOF
 
4710
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549
4711
/* end confdefs.h.  */
4550
4712
#include <stdlib.h>
4551
4713
 
4552
4714
_ACEOF
4553
4715
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554
 
  $EGREP "free" >/dev/null 2>&1; then
4555
 
  :
 
4716
  $EGREP "free" >/dev/null 2>&1; then :
 
4717
 
4556
4718
else
4557
4719
  ac_cv_header_stdc=no
4558
4720
fi
4562
4724
 
4563
4725
if test $ac_cv_header_stdc = yes; then
4564
4726
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565
 
  if test "$cross_compiling" = yes; then
 
4727
  if test "$cross_compiling" = yes; then :
4566
4728
  :
4567
4729
else
4568
 
  cat >conftest.$ac_ext <<_ACEOF
4569
 
/* confdefs.h.  */
4570
 
_ACEOF
4571
 
cat confdefs.h >>conftest.$ac_ext
4572
 
cat >>conftest.$ac_ext <<_ACEOF
 
4730
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573
4731
/* end confdefs.h.  */
4574
4732
#include <ctype.h>
4575
4733
#include <stdlib.h>
4596
4754
  return 0;
4597
4755
}
4598
4756
_ACEOF
4599
 
rm -f conftest$ac_exeext
4600
 
if { (ac_try="$ac_link"
4601
 
case "(($ac_try" in
4602
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603
 
  *) ac_try_echo=$ac_try;;
4604
 
esac
4605
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606
 
  (eval "$ac_link") 2>&5
4607
 
  ac_status=$?
4608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4610
 
  { (case "(($ac_try" in
4611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612
 
  *) ac_try_echo=$ac_try;;
4613
 
esac
4614
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615
 
  (eval "$ac_try") 2>&5
4616
 
  ac_status=$?
4617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618
 
  (exit $ac_status); }; }; then
4619
 
  :
 
4757
if ac_fn_cxx_try_run "$LINENO"; then :
 
4758
 
4620
4759
else
4621
 
  echo "$as_me: program exited with status $ac_status" >&5
4622
 
echo "$as_me: failed program was:" >&5
4623
 
sed 's/^/| /' conftest.$ac_ext >&5
4624
 
 
4625
 
( exit $ac_status )
4626
 
ac_cv_header_stdc=no
4627
 
fi
4628
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4629
 
fi
4630
 
 
4631
 
 
4632
 
fi
4633
 
fi
4634
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4635
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4760
  ac_cv_header_stdc=no
 
4761
fi
 
4762
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4763
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4764
fi
 
4765
 
 
4766
fi
 
4767
fi
 
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4769
$as_echo "$ac_cv_header_stdc" >&6; }
4636
4770
if test $ac_cv_header_stdc = yes; then
4637
4771
 
4638
 
cat >>confdefs.h <<\_ACEOF
4639
 
#define STDC_HEADERS 1
4640
 
_ACEOF
 
4772
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4641
4773
 
4642
4774
fi
4643
4775
 
4644
4776
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645
 
 
4646
 
 
4647
 
 
4648
 
 
4649
 
 
4650
 
 
4651
 
 
4652
 
 
4653
 
 
4654
4777
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4655
4778
                  inttypes.h stdint.h unistd.h
4656
 
do
4657
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4658
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4659
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4660
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4661
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4662
 
else
4663
 
  cat >conftest.$ac_ext <<_ACEOF
4664
 
/* confdefs.h.  */
4665
 
_ACEOF
4666
 
cat confdefs.h >>conftest.$ac_ext
4667
 
cat >>conftest.$ac_ext <<_ACEOF
4668
 
/* end confdefs.h.  */
4669
 
$ac_includes_default
4670
 
 
4671
 
#include <$ac_header>
4672
 
_ACEOF
4673
 
rm -f conftest.$ac_objext
4674
 
if { (ac_try="$ac_compile"
4675
 
case "(($ac_try" in
4676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677
 
  *) ac_try_echo=$ac_try;;
4678
 
esac
4679
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680
 
  (eval "$ac_compile") 2>conftest.er1
4681
 
  ac_status=$?
4682
 
  grep -v '^ *+' conftest.er1 >conftest.err
4683
 
  rm -f conftest.er1
4684
 
  cat conftest.err >&5
4685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686
 
  (exit $ac_status); } && {
4687
 
         test -z "$ac_cxx_werror_flag" ||
4688
 
         test ! -s conftest.err
4689
 
       } && test -s conftest.$ac_objext; then
4690
 
  eval "$as_ac_Header=yes"
4691
 
else
4692
 
  echo "$as_me: failed program was:" >&5
4693
 
sed 's/^/| /' conftest.$ac_ext >&5
4694
 
 
4695
 
        eval "$as_ac_Header=no"
4696
 
fi
4697
 
 
4698
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699
 
fi
4700
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4701
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4702
 
echo "${ECHO_T}$ac_res" >&6; }
4703
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4779
do :
 
4780
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4781
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4782
"
 
4783
eval as_val=\$$as_ac_Header
 
4784
   if test "x$as_val" = x""yes; then :
4704
4785
  cat >>confdefs.h <<_ACEOF
4705
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4706
 
_ACEOF
4707
 
 
4708
 
fi
4709
 
 
4710
 
done
4711
 
 
4712
 
 
4713
 
 
4714
 
 
4715
 
 
4716
 
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
4725
 
 
4726
 
 
4727
 
 
4728
 
 
4729
 
 
4730
 
 
4731
 
 
4732
 
 
 
4786
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4787
_ACEOF
 
4788
 
 
4789
fi
 
4790
 
 
4791
done
 
4792
 
 
4793
 
 
4794
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
4795
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
4796
 
 
4797
else
 
4798
 
 
4799
cat >>confdefs.h <<_ACEOF
 
4800
#define pid_t int
 
4801
_ACEOF
 
4802
 
 
4803
fi
 
4804
 
 
4805
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
4806
if test "x$ac_cv_type_size_t" = x""yes; then :
 
4807
 
 
4808
else
 
4809
 
 
4810
cat >>confdefs.h <<_ACEOF
 
4811
#define size_t unsigned int
 
4812
_ACEOF
 
4813
 
 
4814
fi
 
4815
 
 
4816
 
 
4817
 
 
4818
for ac_prog in sed
 
4819
do
 
4820
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4821
set dummy $ac_prog; ac_word=$2
 
4822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4823
$as_echo_n "checking for $ac_word... " >&6; }
 
4824
if test "${ac_cv_prog_regex_cmd+set}" = set; then :
 
4825
  $as_echo_n "(cached) " >&6
 
4826
else
 
4827
  if test -n "$regex_cmd"; then
 
4828
  ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
 
4829
else
 
4830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4831
for as_dir in $PATH
 
4832
do
 
4833
  IFS=$as_save_IFS
 
4834
  test -z "$as_dir" && as_dir=.
 
4835
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4837
    ac_cv_prog_regex_cmd="$ac_prog"
 
4838
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4839
    break 2
 
4840
  fi
 
4841
done
 
4842
  done
 
4843
IFS=$as_save_IFS
 
4844
 
 
4845
fi
 
4846
fi
 
4847
regex_cmd=$ac_cv_prog_regex_cmd
 
4848
if test -n "$regex_cmd"; then
 
4849
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $regex_cmd" >&5
 
4850
$as_echo "$regex_cmd" >&6; }
 
4851
else
 
4852
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4853
$as_echo "no" >&6; }
 
4854
fi
 
4855
 
 
4856
 
 
4857
  test -n "$regex_cmd" && break
 
4858
done
 
4859
 
 
4860
if test x$regex_cmd = "x"; then
 
4861
  as_fn_error "error. sed is required to build the data files." "$LINENO" 5
 
4862
fi
 
4863
 
 
4864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4865
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4866
if test "${ac_cv_header_stdc+set}" = set; then :
 
4867
  $as_echo_n "(cached) " >&6
 
4868
else
 
4869
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4870
/* end confdefs.h.  */
 
4871
#include <stdlib.h>
 
4872
#include <stdarg.h>
 
4873
#include <string.h>
 
4874
#include <float.h>
 
4875
 
 
4876
int
 
4877
main ()
 
4878
{
 
4879
 
 
4880
  ;
 
4881
  return 0;
 
4882
}
 
4883
_ACEOF
 
4884
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4885
  ac_cv_header_stdc=yes
 
4886
else
 
4887
  ac_cv_header_stdc=no
 
4888
fi
 
4889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4890
 
 
4891
if test $ac_cv_header_stdc = yes; then
 
4892
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4893
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4894
/* end confdefs.h.  */
 
4895
#include <string.h>
 
4896
 
 
4897
_ACEOF
 
4898
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4899
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4900
 
 
4901
else
 
4902
  ac_cv_header_stdc=no
 
4903
fi
 
4904
rm -f conftest*
 
4905
 
 
4906
fi
 
4907
 
 
4908
if test $ac_cv_header_stdc = yes; then
 
4909
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4910
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4911
/* end confdefs.h.  */
 
4912
#include <stdlib.h>
 
4913
 
 
4914
_ACEOF
 
4915
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4916
  $EGREP "free" >/dev/null 2>&1; then :
 
4917
 
 
4918
else
 
4919
  ac_cv_header_stdc=no
 
4920
fi
 
4921
rm -f conftest*
 
4922
 
 
4923
fi
 
4924
 
 
4925
if test $ac_cv_header_stdc = yes; then
 
4926
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4927
  if test "$cross_compiling" = yes; then :
 
4928
  :
 
4929
else
 
4930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4931
/* end confdefs.h.  */
 
4932
#include <ctype.h>
 
4933
#include <stdlib.h>
 
4934
#if ((' ' & 0x0FF) == 0x020)
 
4935
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4936
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4937
#else
 
4938
# define ISLOWER(c) \
 
4939
                   (('a' <= (c) && (c) <= 'i') \
 
4940
                     || ('j' <= (c) && (c) <= 'r') \
 
4941
                     || ('s' <= (c) && (c) <= 'z'))
 
4942
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4943
#endif
 
4944
 
 
4945
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4946
int
 
4947
main ()
 
4948
{
 
4949
  int i;
 
4950
  for (i = 0; i < 256; i++)
 
4951
    if (XOR (islower (i), ISLOWER (i))
 
4952
        || toupper (i) != TOUPPER (i))
 
4953
      return 2;
 
4954
  return 0;
 
4955
}
 
4956
_ACEOF
 
4957
if ac_fn_cxx_try_run "$LINENO"; then :
 
4958
 
 
4959
else
 
4960
  ac_cv_header_stdc=no
 
4961
fi
 
4962
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4963
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4964
fi
 
4965
 
 
4966
fi
 
4967
fi
 
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4969
$as_echo "$ac_cv_header_stdc" >&6; }
 
4970
if test $ac_cv_header_stdc = yes; then
 
4971
 
 
4972
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4973
 
 
4974
fi
 
4975
 
 
4976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
4977
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
4978
if test "${ac_cv_header_stdbool_h+set}" = set; then :
 
4979
  $as_echo_n "(cached) " >&6
 
4980
else
 
4981
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4982
/* end confdefs.h.  */
 
4983
 
 
4984
#include <stdbool.h>
 
4985
#ifndef bool
 
4986
 "error: bool is not defined"
 
4987
#endif
 
4988
#ifndef false
 
4989
 "error: false is not defined"
 
4990
#endif
 
4991
#if false
 
4992
 "error: false is not 0"
 
4993
#endif
 
4994
#ifndef true
 
4995
 "error: true is not defined"
 
4996
#endif
 
4997
#if true != 1
 
4998
 "error: true is not 1"
 
4999
#endif
 
5000
#ifndef __bool_true_false_are_defined
 
5001
 "error: __bool_true_false_are_defined is not defined"
 
5002
#endif
 
5003
 
 
5004
        struct s { _Bool s: 1; _Bool t; } s;
 
5005
 
 
5006
        char a[true == 1 ? 1 : -1];
 
5007
        char b[false == 0 ? 1 : -1];
 
5008
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
5009
        char d[(bool) 0.5 == true ? 1 : -1];
 
5010
        bool e = &s;
 
5011
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
5012
        char g[true];
 
5013
        char h[sizeof (_Bool)];
 
5014
        char i[sizeof s.t];
 
5015
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
5016
        /* The following fails for
 
5017
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
5018
        _Bool n[m];
 
5019
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
5020
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
5021
#       if defined __xlc__ || defined __GNUC__
 
5022
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
5023
            reported by James Lemley on 2005-10-05; see
 
5024
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
5025
            This test is not quite right, since xlc is allowed to
 
5026
            reject this program, as the initializer for xlcbug is
 
5027
            not one of the forms that C requires support for.
 
5028
            However, doing the test right would require a runtime
 
5029
            test, and that would make cross-compilation harder.
 
5030
            Let us hope that IBM fixes the xlc bug, and also adds
 
5031
            support for this kind of constant expression.  In the
 
5032
            meantime, this test will reject xlc, which is OK, since
 
5033
            our stdbool.h substitute should suffice.  We also test
 
5034
            this with GCC, where it should work, to detect more
 
5035
            quickly whether someone messes up the test in the
 
5036
            future.  */
 
5037
         char digs[] = "0123456789";
 
5038
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
5039
#       endif
 
5040
        /* Catch a bug in an HP-UX C compiler.  See
 
5041
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
5042
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
5043
         */
 
5044
        _Bool q = true;
 
5045
        _Bool *pq = &q;
 
5046
 
 
5047
int
 
5048
main ()
 
5049
{
 
5050
 
 
5051
        *pq |= q;
 
5052
        *pq |= ! q;
 
5053
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
5054
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
5055
                + !m + !n + !o + !p + !q + !pq);
 
5056
 
 
5057
  ;
 
5058
  return 0;
 
5059
}
 
5060
_ACEOF
 
5061
if ac_fn_cxx_try_compile "$LINENO"; then :
 
5062
  ac_cv_header_stdbool_h=yes
 
5063
else
 
5064
  ac_cv_header_stdbool_h=no
 
5065
fi
 
5066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5067
fi
 
5068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
5069
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
5070
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
5071
if test "x$ac_cv_type__Bool" = x""yes; then :
 
5072
 
 
5073
cat >>confdefs.h <<_ACEOF
 
5074
#define HAVE__BOOL 1
 
5075
_ACEOF
 
5076
 
 
5077
 
 
5078
fi
 
5079
 
 
5080
if test $ac_cv_header_stdbool_h = yes; then
 
5081
 
 
5082
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 
5083
 
 
5084
fi
4733
5085
 
4734
5086
for ac_header in errno.h ctype.h dirent.h fcntl.h libgen.h \
4735
5087
                 locale.h nl_types.h process.h signal.h stdarg.h \
4736
5088
                 stdio.h time.h unistd.h \
4737
5089
                 sys/param.h sys/select.h sys/signal.h sys/stat.h \
4738
5090
                 sys/time.h sys/types.h sys/wait.h \
4739
 
                 iconv.h
4740
 
do
4741
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4742
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4743
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4744
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4745
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4746
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4747
 
fi
4748
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4749
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4750
 
echo "${ECHO_T}$ac_res" >&6; }
4751
 
else
4752
 
  # Is the header compilable?
4753
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4754
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4755
 
cat >conftest.$ac_ext <<_ACEOF
4756
 
/* confdefs.h.  */
4757
 
_ACEOF
4758
 
cat confdefs.h >>conftest.$ac_ext
4759
 
cat >>conftest.$ac_ext <<_ACEOF
4760
 
/* end confdefs.h.  */
4761
 
$ac_includes_default
4762
 
#include <$ac_header>
4763
 
_ACEOF
4764
 
rm -f conftest.$ac_objext
4765
 
if { (ac_try="$ac_compile"
4766
 
case "(($ac_try" in
4767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768
 
  *) ac_try_echo=$ac_try;;
4769
 
esac
4770
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771
 
  (eval "$ac_compile") 2>conftest.er1
4772
 
  ac_status=$?
4773
 
  grep -v '^ *+' conftest.er1 >conftest.err
4774
 
  rm -f conftest.er1
4775
 
  cat conftest.err >&5
4776
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
 
  (exit $ac_status); } && {
4778
 
         test -z "$ac_cxx_werror_flag" ||
4779
 
         test ! -s conftest.err
4780
 
       } && test -s conftest.$ac_objext; then
4781
 
  ac_header_compiler=yes
4782
 
else
4783
 
  echo "$as_me: failed program was:" >&5
4784
 
sed 's/^/| /' conftest.$ac_ext >&5
4785
 
 
4786
 
        ac_header_compiler=no
4787
 
fi
4788
 
 
4789
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4791
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
4792
 
 
4793
 
# Is the header present?
4794
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4795
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4796
 
cat >conftest.$ac_ext <<_ACEOF
4797
 
/* confdefs.h.  */
4798
 
_ACEOF
4799
 
cat confdefs.h >>conftest.$ac_ext
4800
 
cat >>conftest.$ac_ext <<_ACEOF
4801
 
/* end confdefs.h.  */
4802
 
#include <$ac_header>
4803
 
_ACEOF
4804
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4805
 
case "(($ac_try" in
4806
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807
 
  *) ac_try_echo=$ac_try;;
4808
 
esac
4809
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4811
 
  ac_status=$?
4812
 
  grep -v '^ *+' conftest.er1 >conftest.err
4813
 
  rm -f conftest.er1
4814
 
  cat conftest.err >&5
4815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816
 
  (exit $ac_status); } >/dev/null && {
4817
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4818
 
         test ! -s conftest.err
4819
 
       }; then
4820
 
  ac_header_preproc=yes
4821
 
else
4822
 
  echo "$as_me: failed program was:" >&5
4823
 
sed 's/^/| /' conftest.$ac_ext >&5
4824
 
 
4825
 
  ac_header_preproc=no
4826
 
fi
4827
 
 
4828
 
rm -f conftest.err conftest.$ac_ext
4829
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4830
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
4831
 
 
4832
 
# So?  What about this header?
4833
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4834
 
  yes:no: )
4835
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4836
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4837
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4838
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4839
 
    ac_header_preproc=yes
4840
 
    ;;
4841
 
  no:yes:* )
4842
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4843
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4844
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4845
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4846
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4847
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4848
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4849
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4850
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4851
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4853
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4854
 
 
4855
 
    ;;
4856
 
esac
4857
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4858
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4859
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4860
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4861
 
else
4862
 
  eval "$as_ac_Header=\$ac_header_preproc"
4863
 
fi
4864
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4865
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4866
 
echo "${ECHO_T}$ac_res" >&6; }
4867
 
 
4868
 
fi
4869
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5091
                 langinfo.h iconv.h
 
5092
do :
 
5093
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5094
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5095
eval as_val=\$$as_ac_Header
 
5096
   if test "x$as_val" = x""yes; then :
4870
5097
  cat >>confdefs.h <<_ACEOF
4871
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5098
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4872
5099
_ACEOF
4873
5100
 
4874
5101
fi
4877
5104
 
4878
5105
 
4879
5106
 
 
5107
 
4880
5108
for ac_header in sstream
4881
 
do
4882
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4884
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4885
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4886
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4887
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4888
 
fi
4889
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4890
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4891
 
echo "${ECHO_T}$ac_res" >&6; }
4892
 
else
4893
 
  # Is the header compilable?
4894
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4895
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4896
 
cat >conftest.$ac_ext <<_ACEOF
4897
 
/* confdefs.h.  */
4898
 
_ACEOF
4899
 
cat confdefs.h >>conftest.$ac_ext
4900
 
cat >>conftest.$ac_ext <<_ACEOF
4901
 
/* end confdefs.h.  */
4902
 
$ac_includes_default
4903
 
#include <$ac_header>
4904
 
_ACEOF
4905
 
rm -f conftest.$ac_objext
4906
 
if { (ac_try="$ac_compile"
4907
 
case "(($ac_try" in
4908
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909
 
  *) ac_try_echo=$ac_try;;
4910
 
esac
4911
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912
 
  (eval "$ac_compile") 2>conftest.er1
4913
 
  ac_status=$?
4914
 
  grep -v '^ *+' conftest.er1 >conftest.err
4915
 
  rm -f conftest.er1
4916
 
  cat conftest.err >&5
4917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918
 
  (exit $ac_status); } && {
4919
 
         test -z "$ac_cxx_werror_flag" ||
4920
 
         test ! -s conftest.err
4921
 
       } && test -s conftest.$ac_objext; then
4922
 
  ac_header_compiler=yes
4923
 
else
4924
 
  echo "$as_me: failed program was:" >&5
4925
 
sed 's/^/| /' conftest.$ac_ext >&5
4926
 
 
4927
 
        ac_header_compiler=no
4928
 
fi
4929
 
 
4930
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4932
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
4933
 
 
4934
 
# Is the header present?
4935
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4936
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4937
 
cat >conftest.$ac_ext <<_ACEOF
4938
 
/* confdefs.h.  */
4939
 
_ACEOF
4940
 
cat confdefs.h >>conftest.$ac_ext
4941
 
cat >>conftest.$ac_ext <<_ACEOF
4942
 
/* end confdefs.h.  */
4943
 
#include <$ac_header>
4944
 
_ACEOF
4945
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4946
 
case "(($ac_try" in
4947
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948
 
  *) ac_try_echo=$ac_try;;
4949
 
esac
4950
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952
 
  ac_status=$?
4953
 
  grep -v '^ *+' conftest.er1 >conftest.err
4954
 
  rm -f conftest.er1
4955
 
  cat conftest.err >&5
4956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957
 
  (exit $ac_status); } >/dev/null && {
4958
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4959
 
         test ! -s conftest.err
4960
 
       }; then
4961
 
  ac_header_preproc=yes
4962
 
else
4963
 
  echo "$as_me: failed program was:" >&5
4964
 
sed 's/^/| /' conftest.$ac_ext >&5
4965
 
 
4966
 
  ac_header_preproc=no
4967
 
fi
4968
 
 
4969
 
rm -f conftest.err conftest.$ac_ext
4970
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4971
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
4972
 
 
4973
 
# So?  What about this header?
4974
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4975
 
  yes:no: )
4976
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4977
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4978
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4979
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4980
 
    ac_header_preproc=yes
4981
 
    ;;
4982
 
  no:yes:* )
4983
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4984
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4985
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4986
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4987
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4988
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4989
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4990
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4991
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4992
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4993
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4994
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4995
 
 
4996
 
    ;;
4997
 
esac
4998
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4999
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5000
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5002
 
else
5003
 
  eval "$as_ac_Header=\$ac_header_preproc"
5004
 
fi
5005
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5006
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5007
 
echo "${ECHO_T}$ac_res" >&6; }
5008
 
 
5009
 
fi
5010
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5011
 
  cat >>confdefs.h <<_ACEOF
5012
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5013
 
_ACEOF
5014
 
 
5015
 
else
5016
 
 
5017
 
for ac_header in strstream
5018
 
do
5019
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5020
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5022
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5023
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5025
 
fi
5026
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5027
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5028
 
echo "${ECHO_T}$ac_res" >&6; }
5029
 
else
5030
 
  # Is the header compilable?
5031
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5032
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5033
 
cat >conftest.$ac_ext <<_ACEOF
5034
 
/* confdefs.h.  */
5035
 
_ACEOF
5036
 
cat confdefs.h >>conftest.$ac_ext
5037
 
cat >>conftest.$ac_ext <<_ACEOF
5038
 
/* end confdefs.h.  */
5039
 
$ac_includes_default
5040
 
#include <$ac_header>
5041
 
_ACEOF
5042
 
rm -f conftest.$ac_objext
5043
 
if { (ac_try="$ac_compile"
5044
 
case "(($ac_try" in
5045
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046
 
  *) ac_try_echo=$ac_try;;
5047
 
esac
5048
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049
 
  (eval "$ac_compile") 2>conftest.er1
5050
 
  ac_status=$?
5051
 
  grep -v '^ *+' conftest.er1 >conftest.err
5052
 
  rm -f conftest.er1
5053
 
  cat conftest.err >&5
5054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055
 
  (exit $ac_status); } && {
5056
 
         test -z "$ac_cxx_werror_flag" ||
5057
 
         test ! -s conftest.err
5058
 
       } && test -s conftest.$ac_objext; then
5059
 
  ac_header_compiler=yes
5060
 
else
5061
 
  echo "$as_me: failed program was:" >&5
5062
 
sed 's/^/| /' conftest.$ac_ext >&5
5063
 
 
5064
 
        ac_header_compiler=no
5065
 
fi
5066
 
 
5067
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5070
 
 
5071
 
# Is the header present?
5072
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5074
 
cat >conftest.$ac_ext <<_ACEOF
5075
 
/* confdefs.h.  */
5076
 
_ACEOF
5077
 
cat confdefs.h >>conftest.$ac_ext
5078
 
cat >>conftest.$ac_ext <<_ACEOF
5079
 
/* end confdefs.h.  */
5080
 
#include <$ac_header>
5081
 
_ACEOF
5082
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5083
 
case "(($ac_try" in
5084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085
 
  *) ac_try_echo=$ac_try;;
5086
 
esac
5087
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089
 
  ac_status=$?
5090
 
  grep -v '^ *+' conftest.er1 >conftest.err
5091
 
  rm -f conftest.er1
5092
 
  cat conftest.err >&5
5093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094
 
  (exit $ac_status); } >/dev/null && {
5095
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5096
 
         test ! -s conftest.err
5097
 
       }; then
5098
 
  ac_header_preproc=yes
5099
 
else
5100
 
  echo "$as_me: failed program was:" >&5
5101
 
sed 's/^/| /' conftest.$ac_ext >&5
5102
 
 
5103
 
  ac_header_preproc=no
5104
 
fi
5105
 
 
5106
 
rm -f conftest.err conftest.$ac_ext
5107
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5108
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5109
 
 
5110
 
# So?  What about this header?
5111
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5112
 
  yes:no: )
5113
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5114
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5115
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5116
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5117
 
    ac_header_preproc=yes
5118
 
    ;;
5119
 
  no:yes:* )
5120
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5123
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5124
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5125
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5126
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5127
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5128
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5131
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5132
 
 
5133
 
    ;;
5134
 
esac
5135
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5136
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5137
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5139
 
else
5140
 
  eval "$as_ac_Header=\$ac_header_preproc"
5141
 
fi
5142
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5143
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5144
 
echo "${ECHO_T}$ac_res" >&6; }
5145
 
 
5146
 
fi
5147
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148
 
  cat >>confdefs.h <<_ACEOF
5149
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150
 
_ACEOF
5151
 
 
5152
 
else
5153
 
  { { echo "$as_me:$LINENO: error: Your libstdc++ doesn't have the sstream or strstream classes" >&5
5154
 
echo "$as_me: error: Your libstdc++ doesn't have the sstream or strstream classes" >&2;}
5155
 
   { (exit 1); exit 1; }; }
5156
 
 
5157
 
fi
5158
 
 
5159
 
done
5160
 
 
5161
 
 
5162
 
fi
5163
 
 
5164
 
done
5165
 
 
5166
 
 
5167
 
 
5168
 
 
5169
 
 
5170
 
 
5171
 
 
5172
 
 
5173
 
 
 
5109
do :
 
5110
  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
 
5111
if test "x$ac_cv_header_sstream" = x""yes; then :
 
5112
  cat >>confdefs.h <<_ACEOF
 
5113
#define HAVE_SSTREAM 1
 
5114
_ACEOF
 
5115
 
 
5116
else
 
5117
   for ac_header in strstream
 
5118
do :
 
5119
  ac_fn_cxx_check_header_mongrel "$LINENO" "strstream" "ac_cv_header_strstream" "$ac_includes_default"
 
5120
if test "x$ac_cv_header_strstream" = x""yes; then :
 
5121
  cat >>confdefs.h <<_ACEOF
 
5122
#define HAVE_STRSTREAM 1
 
5123
_ACEOF
 
5124
 
 
5125
else
 
5126
  as_fn_error "Your libstdc++ doesn't have the sstream or strstream classes" "$LINENO" 5
 
5127
 
 
5128
fi
 
5129
 
 
5130
done
 
5131
 
 
5132
 
 
5133
fi
 
5134
 
 
5135
done
5174
5136
 
5175
5137
 
5176
5138
for ac_header in cassert cctype cerrno cmath cstdarg cstdio cstdlib cstring ctime
5177
 
do
5178
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5181
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5182
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5183
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5184
 
fi
5185
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5186
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5187
 
echo "${ECHO_T}$ac_res" >&6; }
5188
 
else
5189
 
  # Is the header compilable?
5190
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5191
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5192
 
cat >conftest.$ac_ext <<_ACEOF
5193
 
/* confdefs.h.  */
5194
 
_ACEOF
5195
 
cat confdefs.h >>conftest.$ac_ext
5196
 
cat >>conftest.$ac_ext <<_ACEOF
5197
 
/* end confdefs.h.  */
5198
 
$ac_includes_default
5199
 
#include <$ac_header>
5200
 
_ACEOF
5201
 
rm -f conftest.$ac_objext
5202
 
if { (ac_try="$ac_compile"
5203
 
case "(($ac_try" in
5204
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205
 
  *) ac_try_echo=$ac_try;;
5206
 
esac
5207
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208
 
  (eval "$ac_compile") 2>conftest.er1
5209
 
  ac_status=$?
5210
 
  grep -v '^ *+' conftest.er1 >conftest.err
5211
 
  rm -f conftest.er1
5212
 
  cat conftest.err >&5
5213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214
 
  (exit $ac_status); } && {
5215
 
         test -z "$ac_cxx_werror_flag" ||
5216
 
         test ! -s conftest.err
5217
 
       } && test -s conftest.$ac_objext; then
5218
 
  ac_header_compiler=yes
5219
 
else
5220
 
  echo "$as_me: failed program was:" >&5
5221
 
sed 's/^/| /' conftest.$ac_ext >&5
5222
 
 
5223
 
        ac_header_compiler=no
5224
 
fi
5225
 
 
5226
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5228
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5229
 
 
5230
 
# Is the header present?
5231
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5232
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5233
 
cat >conftest.$ac_ext <<_ACEOF
5234
 
/* confdefs.h.  */
5235
 
_ACEOF
5236
 
cat confdefs.h >>conftest.$ac_ext
5237
 
cat >>conftest.$ac_ext <<_ACEOF
5238
 
/* end confdefs.h.  */
5239
 
#include <$ac_header>
5240
 
_ACEOF
5241
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5242
 
case "(($ac_try" in
5243
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244
 
  *) ac_try_echo=$ac_try;;
5245
 
esac
5246
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5248
 
  ac_status=$?
5249
 
  grep -v '^ *+' conftest.er1 >conftest.err
5250
 
  rm -f conftest.er1
5251
 
  cat conftest.err >&5
5252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253
 
  (exit $ac_status); } >/dev/null && {
5254
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5255
 
         test ! -s conftest.err
5256
 
       }; then
5257
 
  ac_header_preproc=yes
5258
 
else
5259
 
  echo "$as_me: failed program was:" >&5
5260
 
sed 's/^/| /' conftest.$ac_ext >&5
5261
 
 
5262
 
  ac_header_preproc=no
5263
 
fi
5264
 
 
5265
 
rm -f conftest.err conftest.$ac_ext
5266
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5267
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5268
 
 
5269
 
# So?  What about this header?
5270
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5271
 
  yes:no: )
5272
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5273
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5274
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5275
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5276
 
    ac_header_preproc=yes
5277
 
    ;;
5278
 
  no:yes:* )
5279
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5280
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5281
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5282
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5283
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5284
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5285
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5286
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5287
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5288
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5289
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5290
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5291
 
 
5292
 
    ;;
5293
 
esac
5294
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5295
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5296
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5297
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5298
 
else
5299
 
  eval "$as_ac_Header=\$ac_header_preproc"
5300
 
fi
5301
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5302
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5303
 
echo "${ECHO_T}$ac_res" >&6; }
5304
 
 
5305
 
fi
5306
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5139
do :
 
5140
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5141
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5142
eval as_val=\$$as_ac_Header
 
5143
   if test "x$as_val" = x""yes; then :
5307
5144
  cat >>confdefs.h <<_ACEOF
5308
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5145
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5309
5146
_ACEOF
5310
5147
 
5311
5148
fi
5313
5150
done
5314
5151
 
5315
5152
 
5316
 
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5317
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5318
 
if test "${ac_cv_header_time+set}" = set; then
5319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5153
 
 
5154
ac_header_dirent=no
 
5155
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
5156
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
5157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
5158
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
5159
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
 
5160
  $as_echo_n "(cached) " >&6
5320
5161
else
5321
 
  cat >conftest.$ac_ext <<_ACEOF
5322
 
/* confdefs.h.  */
5323
 
_ACEOF
5324
 
cat confdefs.h >>conftest.$ac_ext
5325
 
cat >>conftest.$ac_ext <<_ACEOF
 
5162
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326
5163
/* end confdefs.h.  */
5327
5164
#include <sys/types.h>
5328
 
#include <sys/time.h>
5329
 
#include <time.h>
 
5165
#include <$ac_hdr>
5330
5166
 
5331
5167
int
5332
5168
main ()
5333
5169
{
5334
 
if ((struct tm *) 0)
 
5170
if ((DIR *) 0)
5335
5171
return 0;
5336
5172
  ;
5337
5173
  return 0;
5338
5174
}
5339
5175
_ACEOF
5340
 
rm -f conftest.$ac_objext
5341
 
if { (ac_try="$ac_compile"
5342
 
case "(($ac_try" in
5343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344
 
  *) ac_try_echo=$ac_try;;
5345
 
esac
5346
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347
 
  (eval "$ac_compile") 2>conftest.er1
5348
 
  ac_status=$?
5349
 
  grep -v '^ *+' conftest.er1 >conftest.err
5350
 
  rm -f conftest.er1
5351
 
  cat conftest.err >&5
5352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353
 
  (exit $ac_status); } && {
5354
 
         test -z "$ac_cxx_werror_flag" ||
5355
 
         test ! -s conftest.err
5356
 
       } && test -s conftest.$ac_objext; then
5357
 
  ac_cv_header_time=yes
5358
 
else
5359
 
  echo "$as_me: failed program was:" >&5
5360
 
sed 's/^/| /' conftest.$ac_ext >&5
5361
 
 
5362
 
        ac_cv_header_time=no
5363
 
fi
5364
 
 
5365
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366
 
fi
5367
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5368
 
echo "${ECHO_T}$ac_cv_header_time" >&6; }
5369
 
if test $ac_cv_header_time = yes; then
5370
 
 
5371
 
cat >>confdefs.h <<\_ACEOF
5372
 
#define TIME_WITH_SYS_TIME 1
5373
 
_ACEOF
5374
 
 
5375
 
fi
5376
 
 
 
5176
if ac_fn_cxx_try_compile "$LINENO"; then :
 
5177
  eval "$as_ac_Header=yes"
 
5178
else
 
5179
  eval "$as_ac_Header=no"
 
5180
fi
 
5181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5182
fi
 
5183
eval ac_res=\$$as_ac_Header
 
5184
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
5185
$as_echo "$ac_res" >&6; }
 
5186
eval as_val=\$$as_ac_Header
 
5187
   if test "x$as_val" = x""yes; then :
 
5188
  cat >>confdefs.h <<_ACEOF
 
5189
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
5190
_ACEOF
 
5191
 
 
5192
ac_header_dirent=$ac_hdr; break
 
5193
fi
 
5194
 
 
5195
done
 
5196
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
5197
if test $ac_header_dirent = dirent.h; then
 
5198
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
5199
$as_echo_n "checking for library containing opendir... " >&6; }
 
5200
if test "${ac_cv_search_opendir+set}" = set; then :
 
5201
  $as_echo_n "(cached) " >&6
 
5202
else
 
5203
  ac_func_search_save_LIBS=$LIBS
 
5204
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5205
/* end confdefs.h.  */
 
5206
 
 
5207
/* Override any GCC internal prototype to avoid an error.
 
5208
   Use char because int might match the return type of a GCC
 
5209
   builtin and then its argument prototype would still apply.  */
 
5210
#ifdef __cplusplus
 
5211
extern "C"
 
5212
#endif
 
5213
char opendir ();
 
5214
int
 
5215
main ()
 
5216
{
 
5217
return opendir ();
 
5218
  ;
 
5219
  return 0;
 
5220
}
 
5221
_ACEOF
 
5222
for ac_lib in '' dir; do
 
5223
  if test -z "$ac_lib"; then
 
5224
    ac_res="none required"
 
5225
  else
 
5226
    ac_res=-l$ac_lib
 
5227
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5228
  fi
 
5229
  if ac_fn_cxx_try_link "$LINENO"; then :
 
5230
  ac_cv_search_opendir=$ac_res
 
5231
fi
 
5232
rm -f core conftest.err conftest.$ac_objext \
 
5233
    conftest$ac_exeext
 
5234
  if test "${ac_cv_search_opendir+set}" = set; then :
 
5235
  break
 
5236
fi
 
5237
done
 
5238
if test "${ac_cv_search_opendir+set}" = set; then :
 
5239
 
 
5240
else
 
5241
  ac_cv_search_opendir=no
 
5242
fi
 
5243
rm conftest.$ac_ext
 
5244
LIBS=$ac_func_search_save_LIBS
 
5245
fi
 
5246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
5247
$as_echo "$ac_cv_search_opendir" >&6; }
 
5248
ac_res=$ac_cv_search_opendir
 
5249
if test "$ac_res" != no; then :
 
5250
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5251
 
 
5252
fi
 
5253
 
 
5254
else
 
5255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
5256
$as_echo_n "checking for library containing opendir... " >&6; }
 
5257
if test "${ac_cv_search_opendir+set}" = set; then :
 
5258
  $as_echo_n "(cached) " >&6
 
5259
else
 
5260
  ac_func_search_save_LIBS=$LIBS
 
5261
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5262
/* end confdefs.h.  */
 
5263
 
 
5264
/* Override any GCC internal prototype to avoid an error.
 
5265
   Use char because int might match the return type of a GCC
 
5266
   builtin and then its argument prototype would still apply.  */
 
5267
#ifdef __cplusplus
 
5268
extern "C"
 
5269
#endif
 
5270
char opendir ();
 
5271
int
 
5272
main ()
 
5273
{
 
5274
return opendir ();
 
5275
  ;
 
5276
  return 0;
 
5277
}
 
5278
_ACEOF
 
5279
for ac_lib in '' x; do
 
5280
  if test -z "$ac_lib"; then
 
5281
    ac_res="none required"
 
5282
  else
 
5283
    ac_res=-l$ac_lib
 
5284
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5285
  fi
 
5286
  if ac_fn_cxx_try_link "$LINENO"; then :
 
5287
  ac_cv_search_opendir=$ac_res
 
5288
fi
 
5289
rm -f core conftest.err conftest.$ac_objext \
 
5290
    conftest$ac_exeext
 
5291
  if test "${ac_cv_search_opendir+set}" = set; then :
 
5292
  break
 
5293
fi
 
5294
done
 
5295
if test "${ac_cv_search_opendir+set}" = set; then :
 
5296
 
 
5297
else
 
5298
  ac_cv_search_opendir=no
 
5299
fi
 
5300
rm conftest.$ac_ext
 
5301
LIBS=$ac_func_search_save_LIBS
 
5302
fi
 
5303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
5304
$as_echo "$ac_cv_search_opendir" >&6; }
 
5305
ac_res=$ac_cv_search_opendir
 
5306
if test "$ac_res" != no; then :
 
5307
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5308
 
 
5309
fi
 
5310
 
 
5311
fi
 
5312
 
 
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
 
5314
$as_echo_n "checking whether closedir returns void... " >&6; }
 
5315
if test "${ac_cv_func_closedir_void+set}" = set; then :
 
5316
  $as_echo_n "(cached) " >&6
 
5317
else
 
5318
  if test "$cross_compiling" = yes; then :
 
5319
  ac_cv_func_closedir_void=yes
 
5320
else
 
5321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5322
/* end confdefs.h.  */
 
5323
$ac_includes_default
 
5324
#include <$ac_header_dirent>
 
5325
#ifndef __cplusplus
 
5326
int closedir ();
 
5327
#endif
 
5328
 
 
5329
int
 
5330
main ()
 
5331
{
 
5332
return closedir (opendir (".")) != 0;
 
5333
  ;
 
5334
  return 0;
 
5335
}
 
5336
_ACEOF
 
5337
if ac_fn_cxx_try_run "$LINENO"; then :
 
5338
  ac_cv_func_closedir_void=no
 
5339
else
 
5340
  ac_cv_func_closedir_void=yes
 
5341
fi
 
5342
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5343
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5344
fi
 
5345
 
 
5346
fi
 
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
 
5348
$as_echo "$ac_cv_func_closedir_void" >&6; }
 
5349
if test $ac_cv_func_closedir_void = yes; then
 
5350
 
 
5351
$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
 
5352
 
 
5353
fi
 
5354
 
 
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
 
5356
$as_echo_n "checking for error_at_line... " >&6; }
 
5357
if test "${ac_cv_lib_error_at_line+set}" = set; then :
 
5358
  $as_echo_n "(cached) " >&6
 
5359
else
 
5360
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5361
/* end confdefs.h.  */
 
5362
#include <error.h>
 
5363
int
 
5364
main ()
 
5365
{
 
5366
error_at_line (0, 0, "", 0, "an error occurred");
 
5367
  ;
 
5368
  return 0;
 
5369
}
 
5370
_ACEOF
 
5371
if ac_fn_cxx_try_link "$LINENO"; then :
 
5372
  ac_cv_lib_error_at_line=yes
 
5373
else
 
5374
  ac_cv_lib_error_at_line=no
 
5375
fi
 
5376
rm -f core conftest.err conftest.$ac_objext \
 
5377
    conftest$ac_exeext conftest.$ac_ext
 
5378
fi
 
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
 
5380
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
5381
if test $ac_cv_lib_error_at_line = no; then
 
5382
  case " $LIBOBJS " in
 
5383
  *" error.$ac_objext "* ) ;;
 
5384
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
5385
 ;;
 
5386
esac
 
5387
 
 
5388
fi
 
5389
 
 
5390
for ac_header in vfork.h
 
5391
do :
 
5392
  ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
5393
if test "x$ac_cv_header_vfork_h" = x""yes; then :
 
5394
  cat >>confdefs.h <<_ACEOF
 
5395
#define HAVE_VFORK_H 1
 
5396
_ACEOF
 
5397
 
 
5398
fi
 
5399
 
 
5400
done
 
5401
 
 
5402
for ac_func in fork vfork
 
5403
do :
 
5404
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5405
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5406
eval as_val=\$$as_ac_var
 
5407
   if test "x$as_val" = x""yes; then :
 
5408
  cat >>confdefs.h <<_ACEOF
 
5409
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5410
_ACEOF
 
5411
 
 
5412
fi
 
5413
done
 
5414
 
 
5415
if test "x$ac_cv_func_fork" = xyes; then
 
5416
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
5417
$as_echo_n "checking for working fork... " >&6; }
 
5418
if test "${ac_cv_func_fork_works+set}" = set; then :
 
5419
  $as_echo_n "(cached) " >&6
 
5420
else
 
5421
  if test "$cross_compiling" = yes; then :
 
5422
  ac_cv_func_fork_works=cross
 
5423
else
 
5424
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5425
/* end confdefs.h.  */
 
5426
$ac_includes_default
 
5427
int
 
5428
main ()
 
5429
{
 
5430
 
 
5431
          /* By Ruediger Kuhlmann. */
 
5432
          return fork () < 0;
 
5433
 
 
5434
  ;
 
5435
  return 0;
 
5436
}
 
5437
_ACEOF
 
5438
if ac_fn_cxx_try_run "$LINENO"; then :
 
5439
  ac_cv_func_fork_works=yes
 
5440
else
 
5441
  ac_cv_func_fork_works=no
 
5442
fi
 
5443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5444
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5445
fi
 
5446
 
 
5447
fi
 
5448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
5449
$as_echo "$ac_cv_func_fork_works" >&6; }
 
5450
 
 
5451
else
 
5452
  ac_cv_func_fork_works=$ac_cv_func_fork
 
5453
fi
 
5454
if test "x$ac_cv_func_fork_works" = xcross; then
 
5455
  case $host in
 
5456
    *-*-amigaos* | *-*-msdosdjgpp*)
 
5457
      # Override, as these systems have only a dummy fork() stub
 
5458
      ac_cv_func_fork_works=no
 
5459
      ;;
 
5460
    *)
 
5461
      ac_cv_func_fork_works=yes
 
5462
      ;;
 
5463
  esac
 
5464
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
5465
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
5466
fi
 
5467
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5468
if test "x$ac_cv_func_vfork" = xyes; then
 
5469
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
5470
$as_echo_n "checking for working vfork... " >&6; }
 
5471
if test "${ac_cv_func_vfork_works+set}" = set; then :
 
5472
  $as_echo_n "(cached) " >&6
 
5473
else
 
5474
  if test "$cross_compiling" = yes; then :
 
5475
  ac_cv_func_vfork_works=cross
 
5476
else
 
5477
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5478
/* end confdefs.h.  */
 
5479
/* Thanks to Paul Eggert for this test.  */
 
5480
$ac_includes_default
 
5481
#include <sys/wait.h>
 
5482
#ifdef HAVE_VFORK_H
 
5483
# include <vfork.h>
 
5484
#endif
 
5485
/* On some sparc systems, changes by the child to local and incoming
 
5486
   argument registers are propagated back to the parent.  The compiler
 
5487
   is told about this with #include <vfork.h>, but some compilers
 
5488
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
5489
   static variable whose address is put into a register that is
 
5490
   clobbered by the vfork.  */
 
5491
static void
 
5492
#ifdef __cplusplus
 
5493
sparc_address_test (int arg)
 
5494
# else
 
5495
sparc_address_test (arg) int arg;
 
5496
#endif
 
5497
{
 
5498
  static pid_t child;
 
5499
  if (!child) {
 
5500
    child = vfork ();
 
5501
    if (child < 0) {
 
5502
      perror ("vfork");
 
5503
      _exit(2);
 
5504
    }
 
5505
    if (!child) {
 
5506
      arg = getpid();
 
5507
      write(-1, "", 0);
 
5508
      _exit (arg);
 
5509
    }
 
5510
  }
 
5511
}
 
5512
 
 
5513
int
 
5514
main ()
 
5515
{
 
5516
  pid_t parent = getpid ();
 
5517
  pid_t child;
 
5518
 
 
5519
  sparc_address_test (0);
 
5520
 
 
5521
  child = vfork ();
 
5522
 
 
5523
  if (child == 0) {
 
5524
    /* Here is another test for sparc vfork register problems.  This
 
5525
       test uses lots of local variables, at least as many local
 
5526
       variables as main has allocated so far including compiler
 
5527
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
5528
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
5529
       reuse the register of parent for one of the local variables,
 
5530
       since it will think that parent can't possibly be used any more
 
5531
       in this routine.  Assigning to the local variable will thus
 
5532
       munge parent in the parent process.  */
 
5533
    pid_t
 
5534
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
5535
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
5536
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
5537
       use the same hardware register for all 8 local variables.  */
 
5538
    if (p != p1 || p != p2 || p != p3 || p != p4
 
5539
        || p != p5 || p != p6 || p != p7)
 
5540
      _exit(1);
 
5541
 
 
5542
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
5543
       from child file descriptors.  If the child closes a descriptor
 
5544
       before it execs or exits, this munges the parent's descriptor
 
5545
       as well.  Test for this by closing stdout in the child.  */
 
5546
    _exit(close(fileno(stdout)) != 0);
 
5547
  } else {
 
5548
    int status;
 
5549
    struct stat st;
 
5550
 
 
5551
    while (wait(&status) != child)
 
5552
      ;
 
5553
    return (
 
5554
         /* Was there some problem with vforking?  */
 
5555
         child < 0
 
5556
 
 
5557
         /* Did the child fail?  (This shouldn't happen.)  */
 
5558
         || status
 
5559
 
 
5560
         /* Did the vfork/compiler bug occur?  */
 
5561
         || parent != getpid()
 
5562
 
 
5563
         /* Did the file descriptor bug occur?  */
 
5564
         || fstat(fileno(stdout), &st) != 0
 
5565
         );
 
5566
  }
 
5567
}
 
5568
_ACEOF
 
5569
if ac_fn_cxx_try_run "$LINENO"; then :
 
5570
  ac_cv_func_vfork_works=yes
 
5571
else
 
5572
  ac_cv_func_vfork_works=no
 
5573
fi
 
5574
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5575
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5576
fi
 
5577
 
 
5578
fi
 
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
5580
$as_echo "$ac_cv_func_vfork_works" >&6; }
 
5581
 
 
5582
fi;
 
5583
if test "x$ac_cv_func_fork_works" = xcross; then
 
5584
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5585
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
5586
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
5587
fi
 
5588
 
 
5589
if test "x$ac_cv_func_vfork_works" = xyes; then
 
5590
 
 
5591
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 
5592
 
 
5593
else
 
5594
 
 
5595
$as_echo "#define vfork fork" >>confdefs.h
 
5596
 
 
5597
fi
 
5598
if test "x$ac_cv_func_fork_works" = xyes; then
 
5599
 
 
5600
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
5601
 
 
5602
fi
 
5603
 
 
5604
for ac_header in stdlib.h
 
5605
do :
 
5606
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
5607
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
5608
  cat >>confdefs.h <<_ACEOF
 
5609
#define HAVE_STDLIB_H 1
 
5610
_ACEOF
 
5611
 
 
5612
fi
 
5613
 
 
5614
done
 
5615
 
 
5616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 
5617
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
5618
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
 
5619
  $as_echo_n "(cached) " >&6
 
5620
else
 
5621
  if test "$cross_compiling" = yes; then :
 
5622
  ac_cv_func_malloc_0_nonnull=no
 
5623
else
 
5624
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5625
/* end confdefs.h.  */
 
5626
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
5627
# include <stdlib.h>
 
5628
#else
 
5629
char *malloc ();
 
5630
#endif
 
5631
 
 
5632
int
 
5633
main ()
 
5634
{
 
5635
return ! malloc (0);
 
5636
  ;
 
5637
  return 0;
 
5638
}
 
5639
_ACEOF
 
5640
if ac_fn_cxx_try_run "$LINENO"; then :
 
5641
  ac_cv_func_malloc_0_nonnull=yes
 
5642
else
 
5643
  ac_cv_func_malloc_0_nonnull=no
 
5644
fi
 
5645
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5646
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5647
fi
 
5648
 
 
5649
fi
 
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 
5651
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
5652
if test $ac_cv_func_malloc_0_nonnull = yes; then :
 
5653
 
 
5654
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
 
5655
 
 
5656
else
 
5657
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
 
5658
 
 
5659
   case " $LIBOBJS " in
 
5660
  *" malloc.$ac_objext "* ) ;;
 
5661
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
5662
 ;;
 
5663
esac
 
5664
 
 
5665
 
 
5666
$as_echo "#define malloc rpl_malloc" >>confdefs.h
 
5667
 
 
5668
fi
 
5669
 
 
5670
 
 
5671
for ac_header in stdlib.h
 
5672
do :
 
5673
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
5674
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
5675
  cat >>confdefs.h <<_ACEOF
 
5676
#define HAVE_STDLIB_H 1
 
5677
_ACEOF
 
5678
 
 
5679
fi
 
5680
 
 
5681
done
 
5682
 
 
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
 
5684
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
 
5685
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
 
5686
  $as_echo_n "(cached) " >&6
 
5687
else
 
5688
  if test "$cross_compiling" = yes; then :
 
5689
  ac_cv_func_realloc_0_nonnull=no
 
5690
else
 
5691
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5692
/* end confdefs.h.  */
 
5693
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
5694
# include <stdlib.h>
 
5695
#else
 
5696
char *realloc ();
 
5697
#endif
 
5698
 
 
5699
int
 
5700
main ()
 
5701
{
 
5702
return ! realloc (0, 0);
 
5703
  ;
 
5704
  return 0;
 
5705
}
 
5706
_ACEOF
 
5707
if ac_fn_cxx_try_run "$LINENO"; then :
 
5708
  ac_cv_func_realloc_0_nonnull=yes
 
5709
else
 
5710
  ac_cv_func_realloc_0_nonnull=no
 
5711
fi
 
5712
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5713
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5714
fi
 
5715
 
 
5716
fi
 
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
 
5718
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
 
5719
if test $ac_cv_func_realloc_0_nonnull = yes; then :
 
5720
 
 
5721
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
 
5722
 
 
5723
else
 
5724
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
 
5725
 
 
5726
   case " $LIBOBJS " in
 
5727
  *" realloc.$ac_objext "* ) ;;
 
5728
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
5729
 ;;
 
5730
esac
 
5731
 
 
5732
 
 
5733
$as_echo "#define realloc rpl_realloc" >>confdefs.h
 
5734
 
 
5735
fi
 
5736
 
 
5737
 
 
5738
for ac_header in sys/select.h sys/socket.h
 
5739
do :
 
5740
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5741
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5742
eval as_val=\$$as_ac_Header
 
5743
   if test "x$as_val" = x""yes; then :
 
5744
  cat >>confdefs.h <<_ACEOF
 
5745
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5746
_ACEOF
 
5747
 
 
5748
fi
 
5749
 
 
5750
done
 
5751
 
 
5752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
 
5753
$as_echo_n "checking types of arguments for select... " >&6; }
 
5754
if test "${ac_cv_func_select_args+set}" = set; then :
 
5755
  $as_echo_n "(cached) " >&6
 
5756
else
 
5757
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 
5758
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
 
5759
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
 
5760
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5761
/* end confdefs.h.  */
 
5762
$ac_includes_default
 
5763
#ifdef HAVE_SYS_SELECT_H
 
5764
# include <sys/select.h>
 
5765
#endif
 
5766
#ifdef HAVE_SYS_SOCKET_H
 
5767
# include <sys/socket.h>
 
5768
#endif
 
5769
 
 
5770
int
 
5771
main ()
 
5772
{
 
5773
extern int select ($ac_arg1,
 
5774
                                            $ac_arg234, $ac_arg234, $ac_arg234,
 
5775
                                            $ac_arg5);
 
5776
  ;
 
5777
  return 0;
 
5778
}
 
5779
_ACEOF
 
5780
if ac_fn_cxx_try_compile "$LINENO"; then :
 
5781
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
 
5782
fi
 
5783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5784
  done
 
5785
 done
 
5786
done
 
5787
# Provide a safe default value.
 
5788
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
 
5789
 
 
5790
fi
 
5791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
 
5792
$as_echo "$ac_cv_func_select_args" >&6; }
 
5793
ac_save_IFS=$IFS; IFS=','
 
5794
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
 
5795
IFS=$ac_save_IFS
 
5796
shift
 
5797
 
 
5798
cat >>confdefs.h <<_ACEOF
 
5799
#define SELECT_TYPE_ARG1 $1
 
5800
_ACEOF
 
5801
 
 
5802
 
 
5803
cat >>confdefs.h <<_ACEOF
 
5804
#define SELECT_TYPE_ARG234 ($2)
 
5805
_ACEOF
 
5806
 
 
5807
 
 
5808
cat >>confdefs.h <<_ACEOF
 
5809
#define SELECT_TYPE_ARG5 ($3)
 
5810
_ACEOF
 
5811
 
 
5812
rm -f conftest*
 
5813
 
 
5814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
 
5815
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
 
5816
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
 
5817
  $as_echo_n "(cached) " >&6
 
5818
else
 
5819
  rm -f conftest.sym conftest.file
 
5820
echo >conftest.file
 
5821
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
5822
  if test "$cross_compiling" = yes; then :
 
5823
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5824
else
 
5825
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5826
/* end confdefs.h.  */
 
5827
$ac_includes_default
 
5828
int
 
5829
main ()
 
5830
{
 
5831
struct stat sbuf;
 
5832
     /* Linux will dereference the symlink and fail, as required by POSIX.
 
5833
        That is better in the sense that it means we will not
 
5834
        have to compile and use the lstat wrapper.  */
 
5835
     return lstat ("conftest.sym/", &sbuf) == 0;
 
5836
  ;
 
5837
  return 0;
 
5838
}
 
5839
_ACEOF
 
5840
if ac_fn_cxx_try_run "$LINENO"; then :
 
5841
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
5842
else
 
5843
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5844
fi
 
5845
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5846
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5847
fi
 
5848
 
 
5849
else
 
5850
  # If the `ln -s' command failed, then we probably don't even
 
5851
  # have an lstat function.
 
5852
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5853
fi
 
5854
rm -f conftest.sym conftest.file
 
5855
 
 
5856
fi
 
5857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
5858
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
5859
 
 
5860
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
5861
 
 
5862
cat >>confdefs.h <<_ACEOF
 
5863
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
5864
_ACEOF
 
5865
 
 
5866
 
 
5867
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
 
5868
  case " $LIBOBJS " in
 
5869
  *" lstat.$ac_objext "* ) ;;
 
5870
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
5871
 ;;
 
5872
esac
 
5873
 
 
5874
fi
 
5875
 
 
5876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
 
5877
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
 
5878
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
 
5879
  $as_echo_n "(cached) " >&6
 
5880
else
 
5881
  if test "$cross_compiling" = yes; then :
 
5882
  ac_cv_func_stat_empty_string_bug=yes
 
5883
else
 
5884
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5885
/* end confdefs.h.  */
 
5886
$ac_includes_default
 
5887
int
 
5888
main ()
 
5889
{
 
5890
struct stat sbuf;
 
5891
  return stat ("", &sbuf) == 0;
 
5892
  ;
 
5893
  return 0;
 
5894
}
 
5895
_ACEOF
 
5896
if ac_fn_cxx_try_run "$LINENO"; then :
 
5897
  ac_cv_func_stat_empty_string_bug=no
 
5898
else
 
5899
  ac_cv_func_stat_empty_string_bug=yes
 
5900
fi
 
5901
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5902
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5903
fi
 
5904
 
 
5905
fi
 
5906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
 
5907
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
 
5908
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
5909
  case " $LIBOBJS " in
 
5910
  *" stat.$ac_objext "* ) ;;
 
5911
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
5912
 ;;
 
5913
esac
 
5914
 
 
5915
 
 
5916
cat >>confdefs.h <<_ACEOF
 
5917
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
5918
_ACEOF
 
5919
 
 
5920
fi
5377
5921
 
5378
5922
 
5379
5923
for ac_func in basename
5380
 
do
5381
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5382
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5383
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5384
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5385
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5386
 
else
5387
 
  cat >conftest.$ac_ext <<_ACEOF
5388
 
/* confdefs.h.  */
5389
 
_ACEOF
5390
 
cat confdefs.h >>conftest.$ac_ext
5391
 
cat >>conftest.$ac_ext <<_ACEOF
5392
 
/* end confdefs.h.  */
5393
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5394
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5395
 
#define $ac_func innocuous_$ac_func
5396
 
 
5397
 
/* System header to define __stub macros and hopefully few prototypes,
5398
 
    which can conflict with char $ac_func (); below.
5399
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400
 
    <limits.h> exists even on freestanding compilers.  */
5401
 
 
5402
 
#ifdef __STDC__
5403
 
# include <limits.h>
5404
 
#else
5405
 
# include <assert.h>
5406
 
#endif
5407
 
 
5408
 
#undef $ac_func
5409
 
 
5410
 
/* Override any GCC internal prototype to avoid an error.
5411
 
   Use char because int might match the return type of a GCC
5412
 
   builtin and then its argument prototype would still apply.  */
5413
 
#ifdef __cplusplus
5414
 
extern "C"
5415
 
#endif
5416
 
char $ac_func ();
5417
 
/* The GNU C library defines this for functions which it implements
5418
 
    to always fail with ENOSYS.  Some functions are actually named
5419
 
    something starting with __ and the normal name is an alias.  */
5420
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5421
 
choke me
5422
 
#endif
5423
 
 
5424
 
int
5425
 
main ()
5426
 
{
5427
 
return $ac_func ();
5428
 
  ;
5429
 
  return 0;
5430
 
}
5431
 
_ACEOF
5432
 
rm -f conftest.$ac_objext conftest$ac_exeext
5433
 
if { (ac_try="$ac_link"
5434
 
case "(($ac_try" in
5435
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436
 
  *) ac_try_echo=$ac_try;;
5437
 
esac
5438
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439
 
  (eval "$ac_link") 2>conftest.er1
5440
 
  ac_status=$?
5441
 
  grep -v '^ *+' conftest.er1 >conftest.err
5442
 
  rm -f conftest.er1
5443
 
  cat conftest.err >&5
5444
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445
 
  (exit $ac_status); } && {
5446
 
         test -z "$ac_cxx_werror_flag" ||
5447
 
         test ! -s conftest.err
5448
 
       } && test -s conftest$ac_exeext &&
5449
 
       $as_test_x conftest$ac_exeext; then
5450
 
  eval "$as_ac_var=yes"
5451
 
else
5452
 
  echo "$as_me: failed program was:" >&5
5453
 
sed 's/^/| /' conftest.$ac_ext >&5
5454
 
 
5455
 
        eval "$as_ac_var=no"
5456
 
fi
5457
 
 
5458
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5459
 
      conftest$ac_exeext conftest.$ac_ext
5460
 
fi
5461
 
ac_res=`eval echo '${'$as_ac_var'}'`
5462
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5463
 
echo "${ECHO_T}$ac_res" >&6; }
5464
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5924
do :
 
5925
  ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
 
5926
if test "x$ac_cv_func_basename" = x""yes; then :
5465
5927
  cat >>confdefs.h <<_ACEOF
5466
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5928
#define HAVE_BASENAME 1
5467
5929
_ACEOF
5468
5930
 
5469
5931
else
5470
 
  { echo "$as_me:$LINENO: checking for basename in -lgen" >&5
5471
 
echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6; }
5472
 
if test "${ac_cv_lib_gen_basename+set}" = set; then
5473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5932
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
 
5933
$as_echo_n "checking for basename in -lgen... " >&6; }
 
5934
if test "${ac_cv_lib_gen_basename+set}" = set; then :
 
5935
  $as_echo_n "(cached) " >&6
5474
5936
else
5475
5937
  ac_check_lib_save_LIBS=$LIBS
5476
5938
LIBS="-lgen  $LIBS"
5477
 
cat >conftest.$ac_ext <<_ACEOF
5478
 
/* confdefs.h.  */
5479
 
_ACEOF
5480
 
cat confdefs.h >>conftest.$ac_ext
5481
 
cat >>conftest.$ac_ext <<_ACEOF
 
5939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482
5940
/* end confdefs.h.  */
5483
5941
 
5484
5942
/* Override any GCC internal prototype to avoid an error.
5496
5954
  return 0;
5497
5955
}
5498
5956
_ACEOF
5499
 
rm -f conftest.$ac_objext conftest$ac_exeext
5500
 
if { (ac_try="$ac_link"
5501
 
case "(($ac_try" in
5502
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503
 
  *) ac_try_echo=$ac_try;;
5504
 
esac
5505
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506
 
  (eval "$ac_link") 2>conftest.er1
5507
 
  ac_status=$?
5508
 
  grep -v '^ *+' conftest.er1 >conftest.err
5509
 
  rm -f conftest.er1
5510
 
  cat conftest.err >&5
5511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512
 
  (exit $ac_status); } && {
5513
 
         test -z "$ac_cxx_werror_flag" ||
5514
 
         test ! -s conftest.err
5515
 
       } && test -s conftest$ac_exeext &&
5516
 
       $as_test_x conftest$ac_exeext; then
 
5957
if ac_fn_cxx_try_link "$LINENO"; then :
5517
5958
  ac_cv_lib_gen_basename=yes
5518
5959
else
5519
 
  echo "$as_me: failed program was:" >&5
5520
 
sed 's/^/| /' conftest.$ac_ext >&5
5521
 
 
5522
 
        ac_cv_lib_gen_basename=no
 
5960
  ac_cv_lib_gen_basename=no
5523
5961
fi
5524
 
 
5525
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5526
 
      conftest$ac_exeext conftest.$ac_ext
 
5962
rm -f core conftest.err conftest.$ac_objext \
 
5963
    conftest$ac_exeext conftest.$ac_ext
5527
5964
LIBS=$ac_check_lib_save_LIBS
5528
5965
fi
5529
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
5530
 
echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6; }
5531
 
if test $ac_cv_lib_gen_basename = yes; then
 
5966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
 
5967
$as_echo "$ac_cv_lib_gen_basename" >&6; }
 
5968
if test "x$ac_cv_lib_gen_basename" = x""yes; then :
5532
5969
  LIBS="$LIBS -lgen"
5533
5970
fi
5534
5971
 
5535
5972
fi
5536
5973
done
5537
5974
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
 
 
5546
 
 
5547
 
for ac_func in getpid setlocale sigaction strcasestr snprintf vsnprintf catopen catgets catclose
5548
 
do
5549
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5550
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5551
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5552
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5553
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5554
 
else
5555
 
  cat >conftest.$ac_ext <<_ACEOF
5556
 
/* confdefs.h.  */
5557
 
_ACEOF
5558
 
cat confdefs.h >>conftest.$ac_ext
5559
 
cat >>conftest.$ac_ext <<_ACEOF
5560
 
/* end confdefs.h.  */
5561
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5562
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5563
 
#define $ac_func innocuous_$ac_func
5564
 
 
5565
 
/* System header to define __stub macros and hopefully few prototypes,
5566
 
    which can conflict with char $ac_func (); below.
5567
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5568
 
    <limits.h> exists even on freestanding compilers.  */
5569
 
 
5570
 
#ifdef __STDC__
5571
 
# include <limits.h>
5572
 
#else
5573
 
# include <assert.h>
5574
 
#endif
5575
 
 
5576
 
#undef $ac_func
5577
 
 
5578
 
/* Override any GCC internal prototype to avoid an error.
5579
 
   Use char because int might match the return type of a GCC
5580
 
   builtin and then its argument prototype would still apply.  */
5581
 
#ifdef __cplusplus
5582
 
extern "C"
5583
 
#endif
5584
 
char $ac_func ();
5585
 
/* The GNU C library defines this for functions which it implements
5586
 
    to always fail with ENOSYS.  Some functions are actually named
5587
 
    something starting with __ and the normal name is an alias.  */
5588
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5589
 
choke me
5590
 
#endif
5591
 
 
5592
 
int
5593
 
main ()
5594
 
{
5595
 
return $ac_func ();
5596
 
  ;
5597
 
  return 0;
5598
 
}
5599
 
_ACEOF
5600
 
rm -f conftest.$ac_objext conftest$ac_exeext
5601
 
if { (ac_try="$ac_link"
5602
 
case "(($ac_try" in
5603
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604
 
  *) ac_try_echo=$ac_try;;
5605
 
esac
5606
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607
 
  (eval "$ac_link") 2>conftest.er1
5608
 
  ac_status=$?
5609
 
  grep -v '^ *+' conftest.er1 >conftest.err
5610
 
  rm -f conftest.er1
5611
 
  cat conftest.err >&5
5612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613
 
  (exit $ac_status); } && {
5614
 
         test -z "$ac_cxx_werror_flag" ||
5615
 
         test ! -s conftest.err
5616
 
       } && test -s conftest$ac_exeext &&
5617
 
       $as_test_x conftest$ac_exeext; then
5618
 
  eval "$as_ac_var=yes"
5619
 
else
5620
 
  echo "$as_me: failed program was:" >&5
5621
 
sed 's/^/| /' conftest.$ac_ext >&5
5622
 
 
5623
 
        eval "$as_ac_var=no"
5624
 
fi
5625
 
 
5626
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5627
 
      conftest$ac_exeext conftest.$ac_ext
5628
 
fi
5629
 
ac_res=`eval echo '${'$as_ac_var'}'`
5630
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5631
 
echo "${ECHO_T}$ac_res" >&6; }
5632
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5975
for ac_func in catclose catgets catopen getpid gettimeofday memset mkdir \
 
5976
    nl_langinfo putenv regcomp select setenv setlocale sigaction snprintf \
 
5977
    sqrt strcasecmp strcasestr strchr strstr strtol strtoul vsnprintf
 
5978
do :
 
5979
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5980
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5981
eval as_val=\$$as_ac_var
 
5982
   if test "x$as_val" = x""yes; then :
5633
5983
  cat >>confdefs.h <<_ACEOF
5634
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5984
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5635
5985
_ACEOF
5636
5986
 
5637
5987
fi
5639
5989
 
5640
5990
 
5641
5991
 
5642
 
{ echo "$as_me:$LINENO: checking for strftime" >&5
5643
 
echo $ECHO_N "checking for strftime... $ECHO_C" >&6; }
5644
 
 
5645
 
cat >conftest.$ac_ext <<_ACEOF
5646
 
/* confdefs.h.  */
5647
 
_ACEOF
5648
 
cat confdefs.h >>conftest.$ac_ext
5649
 
cat >>conftest.$ac_ext <<_ACEOF
 
5992
 
 
5993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime" >&5
 
5994
$as_echo_n "checking for strftime... " >&6; }
 
5995
 
 
5996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650
5997
/* end confdefs.h.  */
5651
5998
#include <time.h>
5652
5999
int
5662
6009
  return 0;
5663
6010
}
5664
6011
_ACEOF
5665
 
rm -f conftest.$ac_objext
5666
 
if { (ac_try="$ac_compile"
5667
 
case "(($ac_try" in
5668
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669
 
  *) ac_try_echo=$ac_try;;
5670
 
esac
5671
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672
 
  (eval "$ac_compile") 2>conftest.er1
5673
 
  ac_status=$?
5674
 
  grep -v '^ *+' conftest.er1 >conftest.err
5675
 
  rm -f conftest.er1
5676
 
  cat conftest.err >&5
5677
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678
 
  (exit $ac_status); } && {
5679
 
         test -z "$ac_cxx_werror_flag" ||
5680
 
         test ! -s conftest.err
5681
 
       } && test -s conftest.$ac_objext; then
5682
 
 
5683
 
 
5684
 
cat >>confdefs.h <<\_ACEOF
5685
 
#define HAVE_STRFTIME 1
 
6012
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6013
 
 
6014
 
 
6015
$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
 
6016
 
 
6017
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6018
$as_echo "yes" >&6; }
 
6019
 
 
6020
else
 
6021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6022
$as_echo "no" >&6; }
 
6023
fi
 
6024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6025
 
 
6026
 
 
6027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
 
6028
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
 
6029
if test "${ac_cv_struct_tm+set}" = set; then :
 
6030
  $as_echo_n "(cached) " >&6
 
6031
else
 
6032
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6033
/* end confdefs.h.  */
 
6034
#include <sys/types.h>
 
6035
#include <time.h>
 
6036
 
 
6037
int
 
6038
main ()
 
6039
{
 
6040
struct tm tm;
 
6041
                                     int *p = &tm.tm_sec;
 
6042
                                     return !p;
 
6043
  ;
 
6044
  return 0;
 
6045
}
5686
6046
_ACEOF
5687
 
 
5688
 
        { echo "$as_me:$LINENO: result: yes" >&5
5689
 
echo "${ECHO_T}yes" >&6; }
5690
 
 
 
6047
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6048
  ac_cv_struct_tm=time.h
5691
6049
else
5692
 
  echo "$as_me: failed program was:" >&5
5693
 
sed 's/^/| /' conftest.$ac_ext >&5
5694
 
 
5695
 
        { echo "$as_me:$LINENO: result: no" >&5
5696
 
echo "${ECHO_T}no" >&6; }
 
6050
  ac_cv_struct_tm=sys/time.h
5697
6051
fi
5698
 
 
5699
6052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6053
fi
 
6054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
 
6055
$as_echo "$ac_cv_struct_tm" >&6; }
 
6056
if test $ac_cv_struct_tm = sys/time.h; then
 
6057
 
 
6058
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
 
6059
 
 
6060
fi
5700
6061
 
5701
6062
 
5702
6063
if test "x$ac_cv_header_iconv_h" = "xyes"; then
5703
6064
    ac_found_iconv=no
5704
 
    cat >conftest.$ac_ext <<_ACEOF
5705
 
/* confdefs.h.  */
5706
 
_ACEOF
5707
 
cat confdefs.h >>conftest.$ac_ext
5708
 
cat >>conftest.$ac_ext <<_ACEOF
 
6065
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709
6066
/* end confdefs.h.  */
5710
6067
#include <stdlib.h>
5711
6068
          #include <iconv.h>
5721
6078
  return 0;
5722
6079
}
5723
6080
_ACEOF
5724
 
rm -f conftest.$ac_objext
5725
 
if { (ac_try="$ac_compile"
5726
 
case "(($ac_try" in
5727
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728
 
  *) ac_try_echo=$ac_try;;
5729
 
esac
5730
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731
 
  (eval "$ac_compile") 2>conftest.er1
5732
 
  ac_status=$?
5733
 
  grep -v '^ *+' conftest.er1 >conftest.err
5734
 
  rm -f conftest.er1
5735
 
  cat conftest.err >&5
5736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737
 
  (exit $ac_status); } && {
5738
 
         test -z "$ac_cxx_werror_flag" ||
5739
 
         test ! -s conftest.err
5740
 
       } && test -s conftest.$ac_objext; then
 
6081
if ac_fn_cxx_try_compile "$LINENO"; then :
5741
6082
 
5742
6083
            ac_found_iconv=yes
5743
6084
 
5744
 
else
5745
 
  echo "$as_me: failed program was:" >&5
5746
 
sed 's/^/| /' conftest.$ac_ext >&5
5747
 
 
5748
 
 
5749
6085
fi
5750
 
 
5751
6086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752
6087
 
5753
 
    cat >conftest.$ac_ext <<_ACEOF
5754
 
/* confdefs.h.  */
5755
 
_ACEOF
5756
 
cat confdefs.h >>conftest.$ac_ext
5757
 
cat >>conftest.$ac_ext <<_ACEOF
 
6088
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758
6089
/* end confdefs.h.  */
5759
6090
#include <stdlib.h>
5760
6091
          #include <iconv.h>
5770
6101
  return 0;
5771
6102
}
5772
6103
_ACEOF
5773
 
rm -f conftest.$ac_objext
5774
 
if { (ac_try="$ac_compile"
5775
 
case "(($ac_try" in
5776
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777
 
  *) ac_try_echo=$ac_try;;
5778
 
esac
5779
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780
 
  (eval "$ac_compile") 2>conftest.er1
5781
 
  ac_status=$?
5782
 
  grep -v '^ *+' conftest.er1 >conftest.err
5783
 
  rm -f conftest.er1
5784
 
  cat conftest.err >&5
5785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786
 
  (exit $ac_status); } && {
5787
 
         test -z "$ac_cxx_werror_flag" ||
5788
 
         test ! -s conftest.err
5789
 
       } && test -s conftest.$ac_objext; then
 
6104
if ac_fn_cxx_try_compile "$LINENO"; then :
5790
6105
 
5791
6106
            ac_found_iconv=yes
5792
6107
 
5793
 
else
5794
 
  echo "$as_me: failed program was:" >&5
5795
 
sed 's/^/| /' conftest.$ac_ext >&5
5796
 
 
5797
 
 
5798
6108
fi
5799
 
 
5800
6109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801
6110
 
5802
6111
    if test "x$ac_found_iconv" = xyes; then
5803
6112
 
5804
 
cat >>confdefs.h <<\_ACEOF
5805
 
#define HAVE_ICONV 1
5806
 
_ACEOF
 
6113
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5807
6114
 
5808
 
        { echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
5809
 
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
5810
 
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
5811
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6115
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
 
6116
$as_echo_n "checking for iconv_open in -liconv... " >&6; }
 
6117
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then :
 
6118
  $as_echo_n "(cached) " >&6
5812
6119
else
5813
6120
  ac_check_lib_save_LIBS=$LIBS
5814
6121
LIBS="-liconv  $LIBS"
5815
 
cat >conftest.$ac_ext <<_ACEOF
5816
 
/* confdefs.h.  */
5817
 
_ACEOF
5818
 
cat confdefs.h >>conftest.$ac_ext
5819
 
cat >>conftest.$ac_ext <<_ACEOF
 
6122
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820
6123
/* end confdefs.h.  */
5821
6124
 
5822
6125
/* Override any GCC internal prototype to avoid an error.
5834
6137
  return 0;
5835
6138
}
5836
6139
_ACEOF
5837
 
rm -f conftest.$ac_objext conftest$ac_exeext
5838
 
if { (ac_try="$ac_link"
5839
 
case "(($ac_try" in
5840
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841
 
  *) ac_try_echo=$ac_try;;
5842
 
esac
5843
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844
 
  (eval "$ac_link") 2>conftest.er1
5845
 
  ac_status=$?
5846
 
  grep -v '^ *+' conftest.er1 >conftest.err
5847
 
  rm -f conftest.er1
5848
 
  cat conftest.err >&5
5849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850
 
  (exit $ac_status); } && {
5851
 
         test -z "$ac_cxx_werror_flag" ||
5852
 
         test ! -s conftest.err
5853
 
       } && test -s conftest$ac_exeext &&
5854
 
       $as_test_x conftest$ac_exeext; then
 
6140
if ac_fn_cxx_try_link "$LINENO"; then :
5855
6141
  ac_cv_lib_iconv_iconv_open=yes
5856
6142
else
5857
 
  echo "$as_me: failed program was:" >&5
5858
 
sed 's/^/| /' conftest.$ac_ext >&5
5859
 
 
5860
 
        ac_cv_lib_iconv_iconv_open=no
 
6143
  ac_cv_lib_iconv_iconv_open=no
5861
6144
fi
5862
 
 
5863
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5864
 
      conftest$ac_exeext conftest.$ac_ext
 
6145
rm -f core conftest.err conftest.$ac_objext \
 
6146
    conftest$ac_exeext conftest.$ac_ext
5865
6147
LIBS=$ac_check_lib_save_LIBS
5866
6148
fi
5867
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
5868
 
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
5869
 
if test $ac_cv_lib_iconv_iconv_open = yes; then
 
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
 
6150
$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
 
6151
if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then :
5870
6152
 
5871
6153
                        LIBS="$LIBS -liconv"
5872
6154
 
5873
6155
fi
5874
6156
 
5875
 
        { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
5876
 
echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
5877
 
if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
5878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6157
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
 
6158
$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
 
6159
if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then :
 
6160
  $as_echo_n "(cached) " >&6
5879
6161
else
5880
6162
  ac_check_lib_save_LIBS=$LIBS
5881
6163
LIBS="-liconv  $LIBS"
5882
 
cat >conftest.$ac_ext <<_ACEOF
5883
 
/* confdefs.h.  */
5884
 
_ACEOF
5885
 
cat confdefs.h >>conftest.$ac_ext
5886
 
cat >>conftest.$ac_ext <<_ACEOF
 
6164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887
6165
/* end confdefs.h.  */
5888
6166
 
5889
6167
/* Override any GCC internal prototype to avoid an error.
5901
6179
  return 0;
5902
6180
}
5903
6181
_ACEOF
5904
 
rm -f conftest.$ac_objext conftest$ac_exeext
5905
 
if { (ac_try="$ac_link"
5906
 
case "(($ac_try" in
5907
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908
 
  *) ac_try_echo=$ac_try;;
5909
 
esac
5910
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911
 
  (eval "$ac_link") 2>conftest.er1
5912
 
  ac_status=$?
5913
 
  grep -v '^ *+' conftest.er1 >conftest.err
5914
 
  rm -f conftest.er1
5915
 
  cat conftest.err >&5
5916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917
 
  (exit $ac_status); } && {
5918
 
         test -z "$ac_cxx_werror_flag" ||
5919
 
         test ! -s conftest.err
5920
 
       } && test -s conftest$ac_exeext &&
5921
 
       $as_test_x conftest$ac_exeext; then
 
6182
if ac_fn_cxx_try_link "$LINENO"; then :
5922
6183
  ac_cv_lib_iconv_libiconv_open=yes
5923
6184
else
5924
 
  echo "$as_me: failed program was:" >&5
5925
 
sed 's/^/| /' conftest.$ac_ext >&5
5926
 
 
5927
 
        ac_cv_lib_iconv_libiconv_open=no
 
6185
  ac_cv_lib_iconv_libiconv_open=no
5928
6186
fi
5929
 
 
5930
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5931
 
      conftest$ac_exeext conftest.$ac_ext
 
6187
rm -f core conftest.err conftest.$ac_objext \
 
6188
    conftest$ac_exeext conftest.$ac_ext
5932
6189
LIBS=$ac_check_lib_save_LIBS
5933
6190
fi
5934
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
5935
 
echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
5936
 
if test $ac_cv_lib_iconv_libiconv_open = yes; then
 
6191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
 
6192
$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
 
6193
if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then :
5937
6194
 
5938
6195
                        LIBS="$LIBS -liconv"
5939
6196
 
5940
6197
fi
5941
6198
 
5942
6199
 
5943
 
        { echo "$as_me:$LINENO: checking for iconv declaration" >&5
5944
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
5945
 
if test "${ac_cv_iconv_const+set}" = set; then
5946
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6200
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
 
6201
$as_echo_n "checking for iconv declaration... " >&6; }
 
6202
if test "${ac_cv_iconv_const+set}" = set; then :
 
6203
  $as_echo_n "(cached) " >&6
5947
6204
else
5948
 
  cat >conftest.$ac_ext <<_ACEOF
5949
 
/* confdefs.h.  */
5950
 
_ACEOF
5951
 
cat confdefs.h >>conftest.$ac_ext
5952
 
cat >>conftest.$ac_ext <<_ACEOF
 
6205
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953
6206
/* end confdefs.h.  */
5954
6207
#include <stdlib.h>
5955
6208
                               #include <iconv.h>
5967
6220
  return 0;
5968
6221
}
5969
6222
_ACEOF
5970
 
rm -f conftest.$ac_objext
5971
 
if { (ac_try="$ac_compile"
5972
 
case "(($ac_try" in
5973
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974
 
  *) ac_try_echo=$ac_try;;
5975
 
esac
5976
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977
 
  (eval "$ac_compile") 2>conftest.er1
5978
 
  ac_status=$?
5979
 
  grep -v '^ *+' conftest.er1 >conftest.err
5980
 
  rm -f conftest.er1
5981
 
  cat conftest.err >&5
5982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983
 
  (exit $ac_status); } && {
5984
 
         test -z "$ac_cxx_werror_flag" ||
5985
 
         test ! -s conftest.err
5986
 
       } && test -s conftest.$ac_objext; then
 
6223
if ac_fn_cxx_try_compile "$LINENO"; then :
5987
6224
  ac_cv_iconv_const=no
5988
6225
else
5989
 
  echo "$as_me: failed program was:" >&5
5990
 
sed 's/^/| /' conftest.$ac_ext >&5
5991
 
 
5992
 
        ac_cv_iconv_const=yes
 
6226
  ac_cv_iconv_const=yes
5993
6227
fi
5994
 
 
5995
6228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996
6229
 
5997
6230
fi
5998
 
{ echo "$as_me:$LINENO: result: $ac_cv_iconv_const" >&5
5999
 
echo "${ECHO_T}$ac_cv_iconv_const" >&6; }
 
6231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iconv_const" >&5
 
6232
$as_echo "$ac_cv_iconv_const" >&6; }
6000
6233
        if test "x$ac_cv_iconv_const" = xyes; then
6001
6234
 
6002
 
cat >>confdefs.h <<\_ACEOF
6003
 
#define HAVE_CONST_ICONV 1
6004
 
_ACEOF
 
6235
$as_echo "#define HAVE_CONST_ICONV 1" >>confdefs.h
6005
6236
 
6006
6237
        fi
6007
6238
    fi
6009
6240
 
6010
6241
 
6011
6242
 
6012
 
{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
6013
 
echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
6014
 
if test "${ac_cv_lib_nsl_t_open+set}" = set; then
6015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
 
6244
$as_echo_n "checking for t_open in -lnsl... " >&6; }
 
6245
if test "${ac_cv_lib_nsl_t_open+set}" = set; then :
 
6246
  $as_echo_n "(cached) " >&6
6016
6247
else
6017
6248
  ac_check_lib_save_LIBS=$LIBS
6018
6249
LIBS="-lnsl  $LIBS"
6019
 
cat >conftest.$ac_ext <<_ACEOF
6020
 
/* confdefs.h.  */
6021
 
_ACEOF
6022
 
cat confdefs.h >>conftest.$ac_ext
6023
 
cat >>conftest.$ac_ext <<_ACEOF
 
6250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024
6251
/* end confdefs.h.  */
6025
6252
 
6026
6253
/* Override any GCC internal prototype to avoid an error.
6038
6265
  return 0;
6039
6266
}
6040
6267
_ACEOF
6041
 
rm -f conftest.$ac_objext conftest$ac_exeext
6042
 
if { (ac_try="$ac_link"
6043
 
case "(($ac_try" in
6044
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045
 
  *) ac_try_echo=$ac_try;;
6046
 
esac
6047
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048
 
  (eval "$ac_link") 2>conftest.er1
6049
 
  ac_status=$?
6050
 
  grep -v '^ *+' conftest.er1 >conftest.err
6051
 
  rm -f conftest.er1
6052
 
  cat conftest.err >&5
6053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
 
  (exit $ac_status); } && {
6055
 
         test -z "$ac_cxx_werror_flag" ||
6056
 
         test ! -s conftest.err
6057
 
       } && test -s conftest$ac_exeext &&
6058
 
       $as_test_x conftest$ac_exeext; then
 
6268
if ac_fn_cxx_try_link "$LINENO"; then :
6059
6269
  ac_cv_lib_nsl_t_open=yes
6060
6270
else
6061
 
  echo "$as_me: failed program was:" >&5
6062
 
sed 's/^/| /' conftest.$ac_ext >&5
6063
 
 
6064
 
        ac_cv_lib_nsl_t_open=no
 
6271
  ac_cv_lib_nsl_t_open=no
6065
6272
fi
6066
 
 
6067
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6068
 
      conftest$ac_exeext conftest.$ac_ext
 
6273
rm -f core conftest.err conftest.$ac_objext \
 
6274
    conftest$ac_exeext conftest.$ac_ext
6069
6275
LIBS=$ac_check_lib_save_LIBS
6070
6276
fi
6071
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
6072
 
echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
6073
 
if test $ac_cv_lib_nsl_t_open = yes; then
 
6277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
 
6278
$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
 
6279
if test "x$ac_cv_lib_nsl_t_open" = x""yes; then :
6074
6280
  LIBS="$LIBS -lnsl"
6075
6281
fi
6076
6282
 
6077
 
{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6078
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6079
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
6080
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
 
6284
$as_echo_n "checking for socket in -lsocket... " >&6; }
 
6285
if test "${ac_cv_lib_socket_socket+set}" = set; then :
 
6286
  $as_echo_n "(cached) " >&6
6081
6287
else
6082
6288
  ac_check_lib_save_LIBS=$LIBS
6083
6289
LIBS="-lsocket  $LIBS"
6084
 
cat >conftest.$ac_ext <<_ACEOF
6085
 
/* confdefs.h.  */
6086
 
_ACEOF
6087
 
cat confdefs.h >>conftest.$ac_ext
6088
 
cat >>conftest.$ac_ext <<_ACEOF
 
6290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089
6291
/* end confdefs.h.  */
6090
6292
 
6091
6293
/* Override any GCC internal prototype to avoid an error.
6103
6305
  return 0;
6104
6306
}
6105
6307
_ACEOF
6106
 
rm -f conftest.$ac_objext conftest$ac_exeext
6107
 
if { (ac_try="$ac_link"
6108
 
case "(($ac_try" in
6109
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110
 
  *) ac_try_echo=$ac_try;;
6111
 
esac
6112
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113
 
  (eval "$ac_link") 2>conftest.er1
6114
 
  ac_status=$?
6115
 
  grep -v '^ *+' conftest.er1 >conftest.err
6116
 
  rm -f conftest.er1
6117
 
  cat conftest.err >&5
6118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
 
  (exit $ac_status); } && {
6120
 
         test -z "$ac_cxx_werror_flag" ||
6121
 
         test ! -s conftest.err
6122
 
       } && test -s conftest$ac_exeext &&
6123
 
       $as_test_x conftest$ac_exeext; then
 
6308
if ac_fn_cxx_try_link "$LINENO"; then :
6124
6309
  ac_cv_lib_socket_socket=yes
6125
6310
else
6126
 
  echo "$as_me: failed program was:" >&5
6127
 
sed 's/^/| /' conftest.$ac_ext >&5
6128
 
 
6129
 
        ac_cv_lib_socket_socket=no
 
6311
  ac_cv_lib_socket_socket=no
6130
6312
fi
6131
 
 
6132
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6133
 
      conftest$ac_exeext conftest.$ac_ext
 
6313
rm -f core conftest.err conftest.$ac_objext \
 
6314
    conftest$ac_exeext conftest.$ac_ext
6134
6315
LIBS=$ac_check_lib_save_LIBS
6135
6316
fi
6136
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6137
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6138
 
if test $ac_cv_lib_socket_socket = yes; then
 
6317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
 
6318
$as_echo "$ac_cv_lib_socket_socket" >&6; }
 
6319
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
6139
6320
  LIBS="$LIBS -lsocket"
6140
6321
fi
6141
6322
 
6142
6323
 
6143
 
{ echo "$as_me:$LINENO: checking for X" >&5
6144
 
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
6324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
 
6325
$as_echo_n "checking for X... " >&6; }
6145
6326
 
6146
6327
 
6147
6328
# Check whether --with-x was given.
6148
 
if test "${with_x+set}" = set; then
 
6329
if test "${with_x+set}" = set; then :
6149
6330
  withval=$with_x;
6150
6331
fi
6151
6332
 
6155
6336
  have_x=disabled
6156
6337
else
6157
6338
  case $x_includes,$x_libraries in #(
6158
 
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6159
 
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6160
 
   { (exit 1); exit 1; }; };; #(
6161
 
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6162
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6339
    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
 
6340
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
 
6341
  $as_echo_n "(cached) " >&6
6163
6342
else
6164
6343
  # One or both of the vars are not set, and there is no cached value.
6165
6344
ac_x_includes=no ac_x_libraries=no
6180
6359
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6181
6360
    done
6182
6361
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6183
 
    for ac_extension in a so sl; do
 
6362
    for ac_extension in a so sl dylib la dll; do
6184
6363
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6185
6364
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
6186
6365
        ac_im_usrlibdir=$ac_im_libdir; break
6194
6373
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6195
6374
    esac
6196
6375
    case $ac_im_usrlibdir in
6197
 
        /usr/lib | /lib) ;;
 
6376
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6198
6377
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6199
6378
    esac
6200
6379
  fi
6206
6385
# Check X11 before X11Rn because it is often a symlink to the current release.
6207
6386
ac_x_header_dirs='
6208
6387
/usr/X11/include
 
6388
/usr/X11R7/include
6209
6389
/usr/X11R6/include
6210
6390
/usr/X11R5/include
6211
6391
/usr/X11R4/include
6212
6392
 
6213
6393
/usr/include/X11
 
6394
/usr/include/X11R7
6214
6395
/usr/include/X11R6
6215
6396
/usr/include/X11R5
6216
6397
/usr/include/X11R4
6217
6398
 
6218
6399
/usr/local/X11/include
 
6400
/usr/local/X11R7/include
6219
6401
/usr/local/X11R6/include
6220
6402
/usr/local/X11R5/include
6221
6403
/usr/local/X11R4/include
6222
6404
 
6223
6405
/usr/local/include/X11
 
6406
/usr/local/include/X11R7
6224
6407
/usr/local/include/X11R6
6225
6408
/usr/local/include/X11R5
6226
6409
/usr/local/include/X11R4
6242
6425
if test "$ac_x_includes" = no; then
6243
6426
  # Guess where to find include files, by looking for Xlib.h.
6244
6427
  # First, try using that file with no special directory specified.
6245
 
  cat >conftest.$ac_ext <<_ACEOF
6246
 
/* confdefs.h.  */
6247
 
_ACEOF
6248
 
cat confdefs.h >>conftest.$ac_ext
6249
 
cat >>conftest.$ac_ext <<_ACEOF
 
6428
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250
6429
/* end confdefs.h.  */
6251
6430
#include <X11/Xlib.h>
6252
6431
_ACEOF
6253
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6254
 
case "(($ac_try" in
6255
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256
 
  *) ac_try_echo=$ac_try;;
6257
 
esac
6258
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6260
 
  ac_status=$?
6261
 
  grep -v '^ *+' conftest.er1 >conftest.err
6262
 
  rm -f conftest.er1
6263
 
  cat conftest.err >&5
6264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265
 
  (exit $ac_status); } >/dev/null && {
6266
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6267
 
         test ! -s conftest.err
6268
 
       }; then
 
6432
if ac_fn_cxx_try_cpp "$LINENO"; then :
6269
6433
  # We can compile using X headers with no special include directory.
6270
6434
ac_x_includes=
6271
6435
else
6272
 
  echo "$as_me: failed program was:" >&5
6273
 
sed 's/^/| /' conftest.$ac_ext >&5
6274
 
 
6275
6436
  for ac_dir in $ac_x_header_dirs; do
6276
6437
  if test -r "$ac_dir/X11/Xlib.h"; then
6277
6438
    ac_x_includes=$ac_dir
6279
6440
  fi
6280
6441
done
6281
6442
fi
6282
 
 
6283
6443
rm -f conftest.err conftest.$ac_ext
6284
6444
fi # $ac_x_includes = no
6285
6445
 
6289
6449
  # Don't add to $LIBS permanently.
6290
6450
  ac_save_LIBS=$LIBS
6291
6451
  LIBS="-lX11 $LIBS"
6292
 
  cat >conftest.$ac_ext <<_ACEOF
6293
 
/* confdefs.h.  */
6294
 
_ACEOF
6295
 
cat confdefs.h >>conftest.$ac_ext
6296
 
cat >>conftest.$ac_ext <<_ACEOF
 
6452
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297
6453
/* end confdefs.h.  */
6298
6454
#include <X11/Xlib.h>
6299
6455
int
6304
6460
  return 0;
6305
6461
}
6306
6462
_ACEOF
6307
 
rm -f conftest.$ac_objext conftest$ac_exeext
6308
 
if { (ac_try="$ac_link"
6309
 
case "(($ac_try" in
6310
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311
 
  *) ac_try_echo=$ac_try;;
6312
 
esac
6313
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314
 
  (eval "$ac_link") 2>conftest.er1
6315
 
  ac_status=$?
6316
 
  grep -v '^ *+' conftest.er1 >conftest.err
6317
 
  rm -f conftest.er1
6318
 
  cat conftest.err >&5
6319
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320
 
  (exit $ac_status); } && {
6321
 
         test -z "$ac_cxx_werror_flag" ||
6322
 
         test ! -s conftest.err
6323
 
       } && test -s conftest$ac_exeext &&
6324
 
       $as_test_x conftest$ac_exeext; then
 
6463
if ac_fn_cxx_try_link "$LINENO"; then :
6325
6464
  LIBS=$ac_save_LIBS
6326
6465
# We can link X programs with no special library path.
6327
6466
ac_x_libraries=
6328
6467
else
6329
 
  echo "$as_me: failed program was:" >&5
6330
 
sed 's/^/| /' conftest.$ac_ext >&5
6331
 
 
6332
 
        LIBS=$ac_save_LIBS
6333
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
6468
  LIBS=$ac_save_LIBS
 
6469
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6334
6470
do
6335
6471
  # Don't even attempt the hair of trying to link an X program!
6336
 
  for ac_extension in a so sl; do
 
6472
  for ac_extension in a so sl dylib la dll; do
6337
6473
    if test -r "$ac_dir/libX11.$ac_extension"; then
6338
6474
      ac_x_libraries=$ac_dir
6339
6475
      break 2
6341
6477
  done
6342
6478
done
6343
6479
fi
6344
 
 
6345
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6346
 
      conftest$ac_exeext conftest.$ac_ext
 
6480
rm -f core conftest.err conftest.$ac_objext \
 
6481
    conftest$ac_exeext conftest.$ac_ext
6347
6482
fi # $ac_x_libraries = no
6348
6483
 
6349
6484
case $ac_x_includes,$ac_x_libraries in #(
6364
6499
fi # $with_x != no
6365
6500
 
6366
6501
if test "$have_x" != yes; then
6367
 
  { echo "$as_me:$LINENO: result: $have_x" >&5
6368
 
echo "${ECHO_T}$have_x" >&6; }
 
6502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
 
6503
$as_echo "$have_x" >&6; }
6369
6504
  no_x=yes
6370
6505
else
6371
6506
  # If each of the values was on the command line, it overrides each guess.
6375
6510
  ac_cv_have_x="have_x=yes\
6376
6511
        ac_x_includes='$x_includes'\
6377
6512
        ac_x_libraries='$x_libraries'"
6378
 
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6379
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
 
6513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
 
6514
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6380
6515
fi
6381
6516
 
6382
6517
if test "$no_x" = yes; then
6383
6518
  # Not all programs may use this symbol, but it does not hurt to define it.
6384
6519
 
6385
 
cat >>confdefs.h <<\_ACEOF
6386
 
#define X_DISPLAY_MISSING 1
6387
 
_ACEOF
 
6520
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6388
6521
 
6389
6522
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6390
6523
else
6397
6530
    X_LIBS="$X_LIBS -L$x_libraries"
6398
6531
    # For Solaris; some versions of Sun CC require a space after -R and
6399
6532
    # others require no space.  Words are not sufficient . . . .
6400
 
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6401
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
6533
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
 
6534
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6402
6535
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6403
6536
    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
6404
6537
    ac_cxx_werror_flag=yes
6405
 
    cat >conftest.$ac_ext <<_ACEOF
6406
 
/* confdefs.h.  */
6407
 
_ACEOF
6408
 
cat confdefs.h >>conftest.$ac_ext
6409
 
cat >>conftest.$ac_ext <<_ACEOF
 
6538
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410
6539
/* end confdefs.h.  */
6411
6540
 
6412
6541
int
6417
6546
  return 0;
6418
6547
}
6419
6548
_ACEOF
6420
 
rm -f conftest.$ac_objext conftest$ac_exeext
6421
 
if { (ac_try="$ac_link"
6422
 
case "(($ac_try" in
6423
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424
 
  *) ac_try_echo=$ac_try;;
6425
 
esac
6426
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427
 
  (eval "$ac_link") 2>conftest.er1
6428
 
  ac_status=$?
6429
 
  grep -v '^ *+' conftest.er1 >conftest.err
6430
 
  rm -f conftest.er1
6431
 
  cat conftest.err >&5
6432
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433
 
  (exit $ac_status); } && {
6434
 
         test -z "$ac_cxx_werror_flag" ||
6435
 
         test ! -s conftest.err
6436
 
       } && test -s conftest$ac_exeext &&
6437
 
       $as_test_x conftest$ac_exeext; then
6438
 
  { echo "$as_me:$LINENO: result: no" >&5
6439
 
echo "${ECHO_T}no" >&6; }
 
6549
if ac_fn_cxx_try_link "$LINENO"; then :
 
6550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6551
$as_echo "no" >&6; }
6440
6552
       X_LIBS="$X_LIBS -R$x_libraries"
6441
6553
else
6442
 
  echo "$as_me: failed program was:" >&5
6443
 
sed 's/^/| /' conftest.$ac_ext >&5
6444
 
 
6445
 
        LIBS="$ac_xsave_LIBS -R $x_libraries"
6446
 
       cat >conftest.$ac_ext <<_ACEOF
6447
 
/* confdefs.h.  */
6448
 
_ACEOF
6449
 
cat confdefs.h >>conftest.$ac_ext
6450
 
cat >>conftest.$ac_ext <<_ACEOF
 
6554
  LIBS="$ac_xsave_LIBS -R $x_libraries"
 
6555
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451
6556
/* end confdefs.h.  */
6452
6557
 
6453
6558
int
6458
6563
  return 0;
6459
6564
}
6460
6565
_ACEOF
6461
 
rm -f conftest.$ac_objext conftest$ac_exeext
6462
 
if { (ac_try="$ac_link"
6463
 
case "(($ac_try" in
6464
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465
 
  *) ac_try_echo=$ac_try;;
6466
 
esac
6467
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468
 
  (eval "$ac_link") 2>conftest.er1
6469
 
  ac_status=$?
6470
 
  grep -v '^ *+' conftest.er1 >conftest.err
6471
 
  rm -f conftest.er1
6472
 
  cat conftest.err >&5
6473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
 
  (exit $ac_status); } && {
6475
 
         test -z "$ac_cxx_werror_flag" ||
6476
 
         test ! -s conftest.err
6477
 
       } && test -s conftest$ac_exeext &&
6478
 
       $as_test_x conftest$ac_exeext; then
6479
 
  { echo "$as_me:$LINENO: result: yes" >&5
6480
 
echo "${ECHO_T}yes" >&6; }
 
6566
if ac_fn_cxx_try_link "$LINENO"; then :
 
6567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6568
$as_echo "yes" >&6; }
6481
6569
          X_LIBS="$X_LIBS -R $x_libraries"
6482
6570
else
6483
 
  echo "$as_me: failed program was:" >&5
6484
 
sed 's/^/| /' conftest.$ac_ext >&5
6485
 
 
6486
 
        { echo "$as_me:$LINENO: result: neither works" >&5
6487
 
echo "${ECHO_T}neither works" >&6; }
6488
 
fi
6489
 
 
6490
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6491
 
      conftest$ac_exeext conftest.$ac_ext
6492
 
fi
6493
 
 
6494
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6495
 
      conftest$ac_exeext conftest.$ac_ext
 
6571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
 
6572
$as_echo "neither works" >&6; }
 
6573
fi
 
6574
rm -f core conftest.err conftest.$ac_objext \
 
6575
    conftest$ac_exeext conftest.$ac_ext
 
6576
fi
 
6577
rm -f core conftest.err conftest.$ac_objext \
 
6578
    conftest$ac_exeext conftest.$ac_ext
6496
6579
    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
6497
6580
    LIBS=$ac_xsave_LIBS
6498
6581
  fi
6508
6591
    # libraries were built with DECnet support.  And Karl Berry says
6509
6592
    # the Alpha needs dnet_stub (dnet does not exist).
6510
6593
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6511
 
    cat >conftest.$ac_ext <<_ACEOF
6512
 
/* confdefs.h.  */
6513
 
_ACEOF
6514
 
cat confdefs.h >>conftest.$ac_ext
6515
 
cat >>conftest.$ac_ext <<_ACEOF
 
6594
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516
6595
/* end confdefs.h.  */
6517
6596
 
6518
6597
/* Override any GCC internal prototype to avoid an error.
6530
6609
  return 0;
6531
6610
}
6532
6611
_ACEOF
6533
 
rm -f conftest.$ac_objext conftest$ac_exeext
6534
 
if { (ac_try="$ac_link"
6535
 
case "(($ac_try" in
6536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537
 
  *) ac_try_echo=$ac_try;;
6538
 
esac
6539
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540
 
  (eval "$ac_link") 2>conftest.er1
6541
 
  ac_status=$?
6542
 
  grep -v '^ *+' conftest.er1 >conftest.err
6543
 
  rm -f conftest.er1
6544
 
  cat conftest.err >&5
6545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546
 
  (exit $ac_status); } && {
6547
 
         test -z "$ac_cxx_werror_flag" ||
6548
 
         test ! -s conftest.err
6549
 
       } && test -s conftest$ac_exeext &&
6550
 
       $as_test_x conftest$ac_exeext; then
6551
 
  :
6552
 
else
6553
 
  echo "$as_me: failed program was:" >&5
6554
 
sed 's/^/| /' conftest.$ac_ext >&5
 
6612
if ac_fn_cxx_try_link "$LINENO"; then :
6555
6613
 
6556
 
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6557
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6558
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6559
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6614
else
 
6615
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
 
6616
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
 
6617
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
 
6618
  $as_echo_n "(cached) " >&6
6560
6619
else
6561
6620
  ac_check_lib_save_LIBS=$LIBS
6562
6621
LIBS="-ldnet  $LIBS"
6563
 
cat >conftest.$ac_ext <<_ACEOF
6564
 
/* confdefs.h.  */
6565
 
_ACEOF
6566
 
cat confdefs.h >>conftest.$ac_ext
6567
 
cat >>conftest.$ac_ext <<_ACEOF
 
6622
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568
6623
/* end confdefs.h.  */
6569
6624
 
6570
6625
/* Override any GCC internal prototype to avoid an error.
6582
6637
  return 0;
6583
6638
}
6584
6639
_ACEOF
6585
 
rm -f conftest.$ac_objext conftest$ac_exeext
6586
 
if { (ac_try="$ac_link"
6587
 
case "(($ac_try" in
6588
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589
 
  *) ac_try_echo=$ac_try;;
6590
 
esac
6591
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592
 
  (eval "$ac_link") 2>conftest.er1
6593
 
  ac_status=$?
6594
 
  grep -v '^ *+' conftest.er1 >conftest.err
6595
 
  rm -f conftest.er1
6596
 
  cat conftest.err >&5
6597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598
 
  (exit $ac_status); } && {
6599
 
         test -z "$ac_cxx_werror_flag" ||
6600
 
         test ! -s conftest.err
6601
 
       } && test -s conftest$ac_exeext &&
6602
 
       $as_test_x conftest$ac_exeext; then
 
6640
if ac_fn_cxx_try_link "$LINENO"; then :
6603
6641
  ac_cv_lib_dnet_dnet_ntoa=yes
6604
6642
else
6605
 
  echo "$as_me: failed program was:" >&5
6606
 
sed 's/^/| /' conftest.$ac_ext >&5
6607
 
 
6608
 
        ac_cv_lib_dnet_dnet_ntoa=no
 
6643
  ac_cv_lib_dnet_dnet_ntoa=no
6609
6644
fi
6610
 
 
6611
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6612
 
      conftest$ac_exeext conftest.$ac_ext
 
6645
rm -f core conftest.err conftest.$ac_objext \
 
6646
    conftest$ac_exeext conftest.$ac_ext
6613
6647
LIBS=$ac_check_lib_save_LIBS
6614
6648
fi
6615
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6616
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6617
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
6649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
6650
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
6651
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6618
6652
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6619
6653
fi
6620
6654
 
6621
6655
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6622
 
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6623
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6624
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6625
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6656
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
 
6657
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
 
6658
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
 
6659
  $as_echo_n "(cached) " >&6
6626
6660
else
6627
6661
  ac_check_lib_save_LIBS=$LIBS
6628
6662
LIBS="-ldnet_stub  $LIBS"
6629
 
cat >conftest.$ac_ext <<_ACEOF
6630
 
/* confdefs.h.  */
6631
 
_ACEOF
6632
 
cat confdefs.h >>conftest.$ac_ext
6633
 
cat >>conftest.$ac_ext <<_ACEOF
 
6663
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634
6664
/* end confdefs.h.  */
6635
6665
 
6636
6666
/* Override any GCC internal prototype to avoid an error.
6648
6678
  return 0;
6649
6679
}
6650
6680
_ACEOF
6651
 
rm -f conftest.$ac_objext conftest$ac_exeext
6652
 
if { (ac_try="$ac_link"
6653
 
case "(($ac_try" in
6654
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655
 
  *) ac_try_echo=$ac_try;;
6656
 
esac
6657
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658
 
  (eval "$ac_link") 2>conftest.er1
6659
 
  ac_status=$?
6660
 
  grep -v '^ *+' conftest.er1 >conftest.err
6661
 
  rm -f conftest.er1
6662
 
  cat conftest.err >&5
6663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664
 
  (exit $ac_status); } && {
6665
 
         test -z "$ac_cxx_werror_flag" ||
6666
 
         test ! -s conftest.err
6667
 
       } && test -s conftest$ac_exeext &&
6668
 
       $as_test_x conftest$ac_exeext; then
 
6681
if ac_fn_cxx_try_link "$LINENO"; then :
6669
6682
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6670
6683
else
6671
 
  echo "$as_me: failed program was:" >&5
6672
 
sed 's/^/| /' conftest.$ac_ext >&5
6673
 
 
6674
 
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
6684
  ac_cv_lib_dnet_stub_dnet_ntoa=no
6675
6685
fi
6676
 
 
6677
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6678
 
      conftest$ac_exeext conftest.$ac_ext
 
6686
rm -f core conftest.err conftest.$ac_objext \
 
6687
    conftest$ac_exeext conftest.$ac_ext
6679
6688
LIBS=$ac_check_lib_save_LIBS
6680
6689
fi
6681
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6682
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6683
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
6690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
6691
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
6692
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6684
6693
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6685
6694
fi
6686
6695
 
6687
6696
    fi
6688
6697
fi
6689
 
 
6690
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6691
 
      conftest$ac_exeext conftest.$ac_ext
 
6698
rm -f core conftest.err conftest.$ac_objext \
 
6699
    conftest$ac_exeext conftest.$ac_ext
6692
6700
    LIBS="$ac_xsave_LIBS"
6693
6701
 
6694
6702
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6699
6707
    # on Irix 5.2, according to T.E. Dickey.
6700
6708
    # The functions gethostbyname, getservbyname, and inet_addr are
6701
6709
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6702
 
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6703
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6704
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
6705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6706
 
else
6707
 
  cat >conftest.$ac_ext <<_ACEOF
6708
 
/* confdefs.h.  */
6709
 
_ACEOF
6710
 
cat confdefs.h >>conftest.$ac_ext
6711
 
cat >>conftest.$ac_ext <<_ACEOF
6712
 
/* end confdefs.h.  */
6713
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6714
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6715
 
#define gethostbyname innocuous_gethostbyname
6716
 
 
6717
 
/* System header to define __stub macros and hopefully few prototypes,
6718
 
    which can conflict with char gethostbyname (); below.
6719
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6720
 
    <limits.h> exists even on freestanding compilers.  */
6721
 
 
6722
 
#ifdef __STDC__
6723
 
# include <limits.h>
6724
 
#else
6725
 
# include <assert.h>
6726
 
#endif
6727
 
 
6728
 
#undef gethostbyname
6729
 
 
6730
 
/* Override any GCC internal prototype to avoid an error.
6731
 
   Use char because int might match the return type of a GCC
6732
 
   builtin and then its argument prototype would still apply.  */
6733
 
#ifdef __cplusplus
6734
 
extern "C"
6735
 
#endif
6736
 
char gethostbyname ();
6737
 
/* The GNU C library defines this for functions which it implements
6738
 
    to always fail with ENOSYS.  Some functions are actually named
6739
 
    something starting with __ and the normal name is an alias.  */
6740
 
#if defined __stub_gethostbyname || defined __stub___gethostbyname
6741
 
choke me
6742
 
#endif
6743
 
 
6744
 
int
6745
 
main ()
6746
 
{
6747
 
return gethostbyname ();
6748
 
  ;
6749
 
  return 0;
6750
 
}
6751
 
_ACEOF
6752
 
rm -f conftest.$ac_objext conftest$ac_exeext
6753
 
if { (ac_try="$ac_link"
6754
 
case "(($ac_try" in
6755
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756
 
  *) ac_try_echo=$ac_try;;
6757
 
esac
6758
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759
 
  (eval "$ac_link") 2>conftest.er1
6760
 
  ac_status=$?
6761
 
  grep -v '^ *+' conftest.er1 >conftest.err
6762
 
  rm -f conftest.er1
6763
 
  cat conftest.err >&5
6764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765
 
  (exit $ac_status); } && {
6766
 
         test -z "$ac_cxx_werror_flag" ||
6767
 
         test ! -s conftest.err
6768
 
       } && test -s conftest$ac_exeext &&
6769
 
       $as_test_x conftest$ac_exeext; then
6770
 
  ac_cv_func_gethostbyname=yes
6771
 
else
6772
 
  echo "$as_me: failed program was:" >&5
6773
 
sed 's/^/| /' conftest.$ac_ext >&5
6774
 
 
6775
 
        ac_cv_func_gethostbyname=no
6776
 
fi
6777
 
 
6778
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6779
 
      conftest$ac_exeext conftest.$ac_ext
6780
 
fi
6781
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6782
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
 
6710
    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 
6711
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
 
6712
 
 
6713
fi
6783
6714
 
6784
6715
    if test $ac_cv_func_gethostbyname = no; then
6785
 
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6786
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6787
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6716
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 
6717
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 
6718
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
 
6719
  $as_echo_n "(cached) " >&6
6789
6720
else
6790
6721
  ac_check_lib_save_LIBS=$LIBS
6791
6722
LIBS="-lnsl  $LIBS"
6792
 
cat >conftest.$ac_ext <<_ACEOF
6793
 
/* confdefs.h.  */
6794
 
_ACEOF
6795
 
cat confdefs.h >>conftest.$ac_ext
6796
 
cat >>conftest.$ac_ext <<_ACEOF
 
6723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797
6724
/* end confdefs.h.  */
6798
6725
 
6799
6726
/* Override any GCC internal prototype to avoid an error.
6811
6738
  return 0;
6812
6739
}
6813
6740
_ACEOF
6814
 
rm -f conftest.$ac_objext conftest$ac_exeext
6815
 
if { (ac_try="$ac_link"
6816
 
case "(($ac_try" in
6817
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818
 
  *) ac_try_echo=$ac_try;;
6819
 
esac
6820
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821
 
  (eval "$ac_link") 2>conftest.er1
6822
 
  ac_status=$?
6823
 
  grep -v '^ *+' conftest.er1 >conftest.err
6824
 
  rm -f conftest.er1
6825
 
  cat conftest.err >&5
6826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827
 
  (exit $ac_status); } && {
6828
 
         test -z "$ac_cxx_werror_flag" ||
6829
 
         test ! -s conftest.err
6830
 
       } && test -s conftest$ac_exeext &&
6831
 
       $as_test_x conftest$ac_exeext; then
 
6741
if ac_fn_cxx_try_link "$LINENO"; then :
6832
6742
  ac_cv_lib_nsl_gethostbyname=yes
6833
6743
else
6834
 
  echo "$as_me: failed program was:" >&5
6835
 
sed 's/^/| /' conftest.$ac_ext >&5
6836
 
 
6837
 
        ac_cv_lib_nsl_gethostbyname=no
 
6744
  ac_cv_lib_nsl_gethostbyname=no
6838
6745
fi
6839
 
 
6840
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6841
 
      conftest$ac_exeext conftest.$ac_ext
 
6746
rm -f core conftest.err conftest.$ac_objext \
 
6747
    conftest$ac_exeext conftest.$ac_ext
6842
6748
LIBS=$ac_check_lib_save_LIBS
6843
6749
fi
6844
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6845
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6846
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
6750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
6751
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 
6752
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6847
6753
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6848
6754
fi
6849
6755
 
6850
6756
      if test $ac_cv_lib_nsl_gethostbyname = no; then
6851
 
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6852
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6853
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6854
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6757
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
 
6758
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
 
6759
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
 
6760
  $as_echo_n "(cached) " >&6
6855
6761
else
6856
6762
  ac_check_lib_save_LIBS=$LIBS
6857
6763
LIBS="-lbsd  $LIBS"
6858
 
cat >conftest.$ac_ext <<_ACEOF
6859
 
/* confdefs.h.  */
6860
 
_ACEOF
6861
 
cat confdefs.h >>conftest.$ac_ext
6862
 
cat >>conftest.$ac_ext <<_ACEOF
 
6764
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863
6765
/* end confdefs.h.  */
6864
6766
 
6865
6767
/* Override any GCC internal prototype to avoid an error.
6877
6779
  return 0;
6878
6780
}
6879
6781
_ACEOF
6880
 
rm -f conftest.$ac_objext conftest$ac_exeext
6881
 
if { (ac_try="$ac_link"
6882
 
case "(($ac_try" in
6883
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884
 
  *) ac_try_echo=$ac_try;;
6885
 
esac
6886
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887
 
  (eval "$ac_link") 2>conftest.er1
6888
 
  ac_status=$?
6889
 
  grep -v '^ *+' conftest.er1 >conftest.err
6890
 
  rm -f conftest.er1
6891
 
  cat conftest.err >&5
6892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893
 
  (exit $ac_status); } && {
6894
 
         test -z "$ac_cxx_werror_flag" ||
6895
 
         test ! -s conftest.err
6896
 
       } && test -s conftest$ac_exeext &&
6897
 
       $as_test_x conftest$ac_exeext; then
 
6782
if ac_fn_cxx_try_link "$LINENO"; then :
6898
6783
  ac_cv_lib_bsd_gethostbyname=yes
6899
6784
else
6900
 
  echo "$as_me: failed program was:" >&5
6901
 
sed 's/^/| /' conftest.$ac_ext >&5
6902
 
 
6903
 
        ac_cv_lib_bsd_gethostbyname=no
 
6785
  ac_cv_lib_bsd_gethostbyname=no
6904
6786
fi
6905
 
 
6906
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6907
 
      conftest$ac_exeext conftest.$ac_ext
 
6787
rm -f core conftest.err conftest.$ac_objext \
 
6788
    conftest$ac_exeext conftest.$ac_ext
6908
6789
LIBS=$ac_check_lib_save_LIBS
6909
6790
fi
6910
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6911
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6912
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
6791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
6792
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
 
6793
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6913
6794
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6914
6795
fi
6915
6796
 
6923
6804
    # variants that don't use the name server (or something).  -lsocket
6924
6805
    # must be given before -lnsl if both are needed.  We assume that
6925
6806
    # if connect needs -lnsl, so does gethostbyname.
6926
 
    { echo "$as_me:$LINENO: checking for connect" >&5
6927
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6928
 
if test "${ac_cv_func_connect+set}" = set; then
6929
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6930
 
else
6931
 
  cat >conftest.$ac_ext <<_ACEOF
6932
 
/* confdefs.h.  */
6933
 
_ACEOF
6934
 
cat confdefs.h >>conftest.$ac_ext
6935
 
cat >>conftest.$ac_ext <<_ACEOF
6936
 
/* end confdefs.h.  */
6937
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6938
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6939
 
#define connect innocuous_connect
6940
 
 
6941
 
/* System header to define __stub macros and hopefully few prototypes,
6942
 
    which can conflict with char connect (); below.
6943
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6944
 
    <limits.h> exists even on freestanding compilers.  */
6945
 
 
6946
 
#ifdef __STDC__
6947
 
# include <limits.h>
6948
 
#else
6949
 
# include <assert.h>
6950
 
#endif
6951
 
 
6952
 
#undef connect
6953
 
 
6954
 
/* Override any GCC internal prototype to avoid an error.
6955
 
   Use char because int might match the return type of a GCC
6956
 
   builtin and then its argument prototype would still apply.  */
6957
 
#ifdef __cplusplus
6958
 
extern "C"
6959
 
#endif
6960
 
char connect ();
6961
 
/* The GNU C library defines this for functions which it implements
6962
 
    to always fail with ENOSYS.  Some functions are actually named
6963
 
    something starting with __ and the normal name is an alias.  */
6964
 
#if defined __stub_connect || defined __stub___connect
6965
 
choke me
6966
 
#endif
6967
 
 
6968
 
int
6969
 
main ()
6970
 
{
6971
 
return connect ();
6972
 
  ;
6973
 
  return 0;
6974
 
}
6975
 
_ACEOF
6976
 
rm -f conftest.$ac_objext conftest$ac_exeext
6977
 
if { (ac_try="$ac_link"
6978
 
case "(($ac_try" in
6979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980
 
  *) ac_try_echo=$ac_try;;
6981
 
esac
6982
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983
 
  (eval "$ac_link") 2>conftest.er1
6984
 
  ac_status=$?
6985
 
  grep -v '^ *+' conftest.er1 >conftest.err
6986
 
  rm -f conftest.er1
6987
 
  cat conftest.err >&5
6988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989
 
  (exit $ac_status); } && {
6990
 
         test -z "$ac_cxx_werror_flag" ||
6991
 
         test ! -s conftest.err
6992
 
       } && test -s conftest$ac_exeext &&
6993
 
       $as_test_x conftest$ac_exeext; then
6994
 
  ac_cv_func_connect=yes
6995
 
else
6996
 
  echo "$as_me: failed program was:" >&5
6997
 
sed 's/^/| /' conftest.$ac_ext >&5
6998
 
 
6999
 
        ac_cv_func_connect=no
7000
 
fi
7001
 
 
7002
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7003
 
      conftest$ac_exeext conftest.$ac_ext
7004
 
fi
7005
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7006
 
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
 
6807
    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
 
6808
if test "x$ac_cv_func_connect" = x""yes; then :
 
6809
 
 
6810
fi
7007
6811
 
7008
6812
    if test $ac_cv_func_connect = no; then
7009
 
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7010
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7011
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
7012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6813
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
 
6814
$as_echo_n "checking for connect in -lsocket... " >&6; }
 
6815
if test "${ac_cv_lib_socket_connect+set}" = set; then :
 
6816
  $as_echo_n "(cached) " >&6
7013
6817
else
7014
6818
  ac_check_lib_save_LIBS=$LIBS
7015
6819
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7016
 
cat >conftest.$ac_ext <<_ACEOF
7017
 
/* confdefs.h.  */
7018
 
_ACEOF
7019
 
cat confdefs.h >>conftest.$ac_ext
7020
 
cat >>conftest.$ac_ext <<_ACEOF
 
6820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021
6821
/* end confdefs.h.  */
7022
6822
 
7023
6823
/* Override any GCC internal prototype to avoid an error.
7035
6835
  return 0;
7036
6836
}
7037
6837
_ACEOF
7038
 
rm -f conftest.$ac_objext conftest$ac_exeext
7039
 
if { (ac_try="$ac_link"
7040
 
case "(($ac_try" in
7041
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042
 
  *) ac_try_echo=$ac_try;;
7043
 
esac
7044
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045
 
  (eval "$ac_link") 2>conftest.er1
7046
 
  ac_status=$?
7047
 
  grep -v '^ *+' conftest.er1 >conftest.err
7048
 
  rm -f conftest.er1
7049
 
  cat conftest.err >&5
7050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051
 
  (exit $ac_status); } && {
7052
 
         test -z "$ac_cxx_werror_flag" ||
7053
 
         test ! -s conftest.err
7054
 
       } && test -s conftest$ac_exeext &&
7055
 
       $as_test_x conftest$ac_exeext; then
 
6838
if ac_fn_cxx_try_link "$LINENO"; then :
7056
6839
  ac_cv_lib_socket_connect=yes
7057
6840
else
7058
 
  echo "$as_me: failed program was:" >&5
7059
 
sed 's/^/| /' conftest.$ac_ext >&5
7060
 
 
7061
 
        ac_cv_lib_socket_connect=no
 
6841
  ac_cv_lib_socket_connect=no
7062
6842
fi
7063
 
 
7064
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7065
 
      conftest$ac_exeext conftest.$ac_ext
 
6843
rm -f core conftest.err conftest.$ac_objext \
 
6844
    conftest$ac_exeext conftest.$ac_ext
7066
6845
LIBS=$ac_check_lib_save_LIBS
7067
6846
fi
7068
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7069
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7070
 
if test $ac_cv_lib_socket_connect = yes; then
 
6847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
 
6848
$as_echo "$ac_cv_lib_socket_connect" >&6; }
 
6849
if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7071
6850
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7072
6851
fi
7073
6852
 
7074
6853
    fi
7075
6854
 
7076
6855
    # Guillermo Gomez says -lposix is necessary on A/UX.
7077
 
    { echo "$as_me:$LINENO: checking for remove" >&5
7078
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7079
 
if test "${ac_cv_func_remove+set}" = set; then
7080
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7081
 
else
7082
 
  cat >conftest.$ac_ext <<_ACEOF
7083
 
/* confdefs.h.  */
7084
 
_ACEOF
7085
 
cat confdefs.h >>conftest.$ac_ext
7086
 
cat >>conftest.$ac_ext <<_ACEOF
7087
 
/* end confdefs.h.  */
7088
 
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7089
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7090
 
#define remove innocuous_remove
7091
 
 
7092
 
/* System header to define __stub macros and hopefully few prototypes,
7093
 
    which can conflict with char remove (); below.
7094
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095
 
    <limits.h> exists even on freestanding compilers.  */
7096
 
 
7097
 
#ifdef __STDC__
7098
 
# include <limits.h>
7099
 
#else
7100
 
# include <assert.h>
7101
 
#endif
7102
 
 
7103
 
#undef remove
7104
 
 
7105
 
/* Override any GCC internal prototype to avoid an error.
7106
 
   Use char because int might match the return type of a GCC
7107
 
   builtin and then its argument prototype would still apply.  */
7108
 
#ifdef __cplusplus
7109
 
extern "C"
7110
 
#endif
7111
 
char remove ();
7112
 
/* The GNU C library defines this for functions which it implements
7113
 
    to always fail with ENOSYS.  Some functions are actually named
7114
 
    something starting with __ and the normal name is an alias.  */
7115
 
#if defined __stub_remove || defined __stub___remove
7116
 
choke me
7117
 
#endif
7118
 
 
7119
 
int
7120
 
main ()
7121
 
{
7122
 
return remove ();
7123
 
  ;
7124
 
  return 0;
7125
 
}
7126
 
_ACEOF
7127
 
rm -f conftest.$ac_objext conftest$ac_exeext
7128
 
if { (ac_try="$ac_link"
7129
 
case "(($ac_try" in
7130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131
 
  *) ac_try_echo=$ac_try;;
7132
 
esac
7133
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134
 
  (eval "$ac_link") 2>conftest.er1
7135
 
  ac_status=$?
7136
 
  grep -v '^ *+' conftest.er1 >conftest.err
7137
 
  rm -f conftest.er1
7138
 
  cat conftest.err >&5
7139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140
 
  (exit $ac_status); } && {
7141
 
         test -z "$ac_cxx_werror_flag" ||
7142
 
         test ! -s conftest.err
7143
 
       } && test -s conftest$ac_exeext &&
7144
 
       $as_test_x conftest$ac_exeext; then
7145
 
  ac_cv_func_remove=yes
7146
 
else
7147
 
  echo "$as_me: failed program was:" >&5
7148
 
sed 's/^/| /' conftest.$ac_ext >&5
7149
 
 
7150
 
        ac_cv_func_remove=no
7151
 
fi
7152
 
 
7153
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7154
 
      conftest$ac_exeext conftest.$ac_ext
7155
 
fi
7156
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7157
 
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
 
6856
    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
 
6857
if test "x$ac_cv_func_remove" = x""yes; then :
 
6858
 
 
6859
fi
7158
6860
 
7159
6861
    if test $ac_cv_func_remove = no; then
7160
 
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7161
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7162
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
7163
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6862
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
 
6863
$as_echo_n "checking for remove in -lposix... " >&6; }
 
6864
if test "${ac_cv_lib_posix_remove+set}" = set; then :
 
6865
  $as_echo_n "(cached) " >&6
7164
6866
else
7165
6867
  ac_check_lib_save_LIBS=$LIBS
7166
6868
LIBS="-lposix  $LIBS"
7167
 
cat >conftest.$ac_ext <<_ACEOF
7168
 
/* confdefs.h.  */
7169
 
_ACEOF
7170
 
cat confdefs.h >>conftest.$ac_ext
7171
 
cat >>conftest.$ac_ext <<_ACEOF
 
6869
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172
6870
/* end confdefs.h.  */
7173
6871
 
7174
6872
/* Override any GCC internal prototype to avoid an error.
7186
6884
  return 0;
7187
6885
}
7188
6886
_ACEOF
7189
 
rm -f conftest.$ac_objext conftest$ac_exeext
7190
 
if { (ac_try="$ac_link"
7191
 
case "(($ac_try" in
7192
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193
 
  *) ac_try_echo=$ac_try;;
7194
 
esac
7195
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196
 
  (eval "$ac_link") 2>conftest.er1
7197
 
  ac_status=$?
7198
 
  grep -v '^ *+' conftest.er1 >conftest.err
7199
 
  rm -f conftest.er1
7200
 
  cat conftest.err >&5
7201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202
 
  (exit $ac_status); } && {
7203
 
         test -z "$ac_cxx_werror_flag" ||
7204
 
         test ! -s conftest.err
7205
 
       } && test -s conftest$ac_exeext &&
7206
 
       $as_test_x conftest$ac_exeext; then
 
6887
if ac_fn_cxx_try_link "$LINENO"; then :
7207
6888
  ac_cv_lib_posix_remove=yes
7208
6889
else
7209
 
  echo "$as_me: failed program was:" >&5
7210
 
sed 's/^/| /' conftest.$ac_ext >&5
7211
 
 
7212
 
        ac_cv_lib_posix_remove=no
 
6890
  ac_cv_lib_posix_remove=no
7213
6891
fi
7214
 
 
7215
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7216
 
      conftest$ac_exeext conftest.$ac_ext
 
6892
rm -f core conftest.err conftest.$ac_objext \
 
6893
    conftest$ac_exeext conftest.$ac_ext
7217
6894
LIBS=$ac_check_lib_save_LIBS
7218
6895
fi
7219
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7220
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7221
 
if test $ac_cv_lib_posix_remove = yes; then
 
6896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
 
6897
$as_echo "$ac_cv_lib_posix_remove" >&6; }
 
6898
if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7222
6899
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7223
6900
fi
7224
6901
 
7225
6902
    fi
7226
6903
 
7227
6904
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7228
 
    { echo "$as_me:$LINENO: checking for shmat" >&5
7229
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7230
 
if test "${ac_cv_func_shmat+set}" = set; then
7231
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7232
 
else
7233
 
  cat >conftest.$ac_ext <<_ACEOF
7234
 
/* confdefs.h.  */
7235
 
_ACEOF
7236
 
cat confdefs.h >>conftest.$ac_ext
7237
 
cat >>conftest.$ac_ext <<_ACEOF
7238
 
/* end confdefs.h.  */
7239
 
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7240
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7241
 
#define shmat innocuous_shmat
7242
 
 
7243
 
/* System header to define __stub macros and hopefully few prototypes,
7244
 
    which can conflict with char shmat (); below.
7245
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246
 
    <limits.h> exists even on freestanding compilers.  */
7247
 
 
7248
 
#ifdef __STDC__
7249
 
# include <limits.h>
7250
 
#else
7251
 
# include <assert.h>
7252
 
#endif
7253
 
 
7254
 
#undef shmat
7255
 
 
7256
 
/* Override any GCC internal prototype to avoid an error.
7257
 
   Use char because int might match the return type of a GCC
7258
 
   builtin and then its argument prototype would still apply.  */
7259
 
#ifdef __cplusplus
7260
 
extern "C"
7261
 
#endif
7262
 
char shmat ();
7263
 
/* The GNU C library defines this for functions which it implements
7264
 
    to always fail with ENOSYS.  Some functions are actually named
7265
 
    something starting with __ and the normal name is an alias.  */
7266
 
#if defined __stub_shmat || defined __stub___shmat
7267
 
choke me
7268
 
#endif
7269
 
 
7270
 
int
7271
 
main ()
7272
 
{
7273
 
return shmat ();
7274
 
  ;
7275
 
  return 0;
7276
 
}
7277
 
_ACEOF
7278
 
rm -f conftest.$ac_objext conftest$ac_exeext
7279
 
if { (ac_try="$ac_link"
7280
 
case "(($ac_try" in
7281
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282
 
  *) ac_try_echo=$ac_try;;
7283
 
esac
7284
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285
 
  (eval "$ac_link") 2>conftest.er1
7286
 
  ac_status=$?
7287
 
  grep -v '^ *+' conftest.er1 >conftest.err
7288
 
  rm -f conftest.er1
7289
 
  cat conftest.err >&5
7290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291
 
  (exit $ac_status); } && {
7292
 
         test -z "$ac_cxx_werror_flag" ||
7293
 
         test ! -s conftest.err
7294
 
       } && test -s conftest$ac_exeext &&
7295
 
       $as_test_x conftest$ac_exeext; then
7296
 
  ac_cv_func_shmat=yes
7297
 
else
7298
 
  echo "$as_me: failed program was:" >&5
7299
 
sed 's/^/| /' conftest.$ac_ext >&5
7300
 
 
7301
 
        ac_cv_func_shmat=no
7302
 
fi
7303
 
 
7304
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305
 
      conftest$ac_exeext conftest.$ac_ext
7306
 
fi
7307
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7308
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
 
6905
    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
 
6906
if test "x$ac_cv_func_shmat" = x""yes; then :
 
6907
 
 
6908
fi
7309
6909
 
7310
6910
    if test $ac_cv_func_shmat = no; then
7311
 
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7312
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7313
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7314
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6911
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
 
6912
$as_echo_n "checking for shmat in -lipc... " >&6; }
 
6913
if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
 
6914
  $as_echo_n "(cached) " >&6
7315
6915
else
7316
6916
  ac_check_lib_save_LIBS=$LIBS
7317
6917
LIBS="-lipc  $LIBS"
7318
 
cat >conftest.$ac_ext <<_ACEOF
7319
 
/* confdefs.h.  */
7320
 
_ACEOF
7321
 
cat confdefs.h >>conftest.$ac_ext
7322
 
cat >>conftest.$ac_ext <<_ACEOF
 
6918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323
6919
/* end confdefs.h.  */
7324
6920
 
7325
6921
/* Override any GCC internal prototype to avoid an error.
7337
6933
  return 0;
7338
6934
}
7339
6935
_ACEOF
7340
 
rm -f conftest.$ac_objext conftest$ac_exeext
7341
 
if { (ac_try="$ac_link"
7342
 
case "(($ac_try" in
7343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344
 
  *) ac_try_echo=$ac_try;;
7345
 
esac
7346
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347
 
  (eval "$ac_link") 2>conftest.er1
7348
 
  ac_status=$?
7349
 
  grep -v '^ *+' conftest.er1 >conftest.err
7350
 
  rm -f conftest.er1
7351
 
  cat conftest.err >&5
7352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
 
  (exit $ac_status); } && {
7354
 
         test -z "$ac_cxx_werror_flag" ||
7355
 
         test ! -s conftest.err
7356
 
       } && test -s conftest$ac_exeext &&
7357
 
       $as_test_x conftest$ac_exeext; then
 
6936
if ac_fn_cxx_try_link "$LINENO"; then :
7358
6937
  ac_cv_lib_ipc_shmat=yes
7359
6938
else
7360
 
  echo "$as_me: failed program was:" >&5
7361
 
sed 's/^/| /' conftest.$ac_ext >&5
7362
 
 
7363
 
        ac_cv_lib_ipc_shmat=no
 
6939
  ac_cv_lib_ipc_shmat=no
7364
6940
fi
7365
 
 
7366
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367
 
      conftest$ac_exeext conftest.$ac_ext
 
6941
rm -f core conftest.err conftest.$ac_objext \
 
6942
    conftest$ac_exeext conftest.$ac_ext
7368
6943
LIBS=$ac_check_lib_save_LIBS
7369
6944
fi
7370
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7371
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7372
 
if test $ac_cv_lib_ipc_shmat = yes; then
 
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
 
6946
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
 
6947
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7373
6948
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7374
6949
fi
7375
6950
 
7385
6960
  # These have to be linked with before -lX11, unlike the other
7386
6961
  # libraries we check for below, so use a different variable.
7387
6962
  # John Interrante, Karl Berry
7388
 
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7389
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7390
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7391
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6963
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
 
6964
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
 
6965
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
 
6966
  $as_echo_n "(cached) " >&6
7392
6967
else
7393
6968
  ac_check_lib_save_LIBS=$LIBS
7394
6969
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7395
 
cat >conftest.$ac_ext <<_ACEOF
7396
 
/* confdefs.h.  */
7397
 
_ACEOF
7398
 
cat confdefs.h >>conftest.$ac_ext
7399
 
cat >>conftest.$ac_ext <<_ACEOF
 
6970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400
6971
/* end confdefs.h.  */
7401
6972
 
7402
6973
/* Override any GCC internal prototype to avoid an error.
7414
6985
  return 0;
7415
6986
}
7416
6987
_ACEOF
7417
 
rm -f conftest.$ac_objext conftest$ac_exeext
7418
 
if { (ac_try="$ac_link"
7419
 
case "(($ac_try" in
7420
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421
 
  *) ac_try_echo=$ac_try;;
7422
 
esac
7423
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424
 
  (eval "$ac_link") 2>conftest.er1
7425
 
  ac_status=$?
7426
 
  grep -v '^ *+' conftest.er1 >conftest.err
7427
 
  rm -f conftest.er1
7428
 
  cat conftest.err >&5
7429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430
 
  (exit $ac_status); } && {
7431
 
         test -z "$ac_cxx_werror_flag" ||
7432
 
         test ! -s conftest.err
7433
 
       } && test -s conftest$ac_exeext &&
7434
 
       $as_test_x conftest$ac_exeext; then
 
6988
if ac_fn_cxx_try_link "$LINENO"; then :
7435
6989
  ac_cv_lib_ICE_IceConnectionNumber=yes
7436
6990
else
7437
 
  echo "$as_me: failed program was:" >&5
7438
 
sed 's/^/| /' conftest.$ac_ext >&5
7439
 
 
7440
 
        ac_cv_lib_ICE_IceConnectionNumber=no
 
6991
  ac_cv_lib_ICE_IceConnectionNumber=no
7441
6992
fi
7442
 
 
7443
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444
 
      conftest$ac_exeext conftest.$ac_ext
 
6993
rm -f core conftest.err conftest.$ac_objext \
 
6994
    conftest$ac_exeext conftest.$ac_ext
7445
6995
LIBS=$ac_check_lib_save_LIBS
7446
6996
fi
7447
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7448
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7449
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
6997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
6998
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
6999
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7450
7000
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7451
7001
fi
7452
7002
 
7455
7005
fi
7456
7006
 
7457
7007
 
7458
 
test x$no_x = "xyes" && { { echo "$as_me:$LINENO: error: Fluxbox requires the X Window System libraries and headers." >&5
7459
 
echo "$as_me: error: Fluxbox requires the X Window System libraries and headers." >&2;}
7460
 
   { (exit 1); exit 1; }; }
 
7008
test x$no_x = "xyes" && as_fn_error "Fluxbox requires the X Window System libraries and headers." "$LINENO" 5
7461
7009
 
7462
7010
test x$x_includes = "x" && x_includes="/usr/include"
7463
7011
test x$x_libraries = "x" && x_libraries="/usr/lib"
7468
7016
LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
7469
7017
 
7470
7018
 
7471
 
{ echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
7472
 
echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
7473
 
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
7474
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
 
7020
$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
 
7021
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then :
 
7022
  $as_echo_n "(cached) " >&6
7475
7023
else
7476
7024
  ac_check_lib_save_LIBS=$LIBS
7477
7025
LIBS="-lX11  $LIBS"
7478
 
cat >conftest.$ac_ext <<_ACEOF
7479
 
/* confdefs.h.  */
7480
 
_ACEOF
7481
 
cat confdefs.h >>conftest.$ac_ext
7482
 
cat >>conftest.$ac_ext <<_ACEOF
 
7026
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483
7027
/* end confdefs.h.  */
7484
7028
 
7485
7029
/* Override any GCC internal prototype to avoid an error.
7497
7041
  return 0;
7498
7042
}
7499
7043
_ACEOF
7500
 
rm -f conftest.$ac_objext conftest$ac_exeext
7501
 
if { (ac_try="$ac_link"
7502
 
case "(($ac_try" in
7503
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504
 
  *) ac_try_echo=$ac_try;;
7505
 
esac
7506
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507
 
  (eval "$ac_link") 2>conftest.er1
7508
 
  ac_status=$?
7509
 
  grep -v '^ *+' conftest.er1 >conftest.err
7510
 
  rm -f conftest.er1
7511
 
  cat conftest.err >&5
7512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513
 
  (exit $ac_status); } && {
7514
 
         test -z "$ac_cxx_werror_flag" ||
7515
 
         test ! -s conftest.err
7516
 
       } && test -s conftest$ac_exeext &&
7517
 
       $as_test_x conftest$ac_exeext; then
 
7044
if ac_fn_cxx_try_link "$LINENO"; then :
7518
7045
  ac_cv_lib_X11_XOpenDisplay=yes
7519
7046
else
7520
 
  echo "$as_me: failed program was:" >&5
7521
 
sed 's/^/| /' conftest.$ac_ext >&5
7522
 
 
7523
 
        ac_cv_lib_X11_XOpenDisplay=no
 
7047
  ac_cv_lib_X11_XOpenDisplay=no
7524
7048
fi
7525
 
 
7526
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7527
 
      conftest$ac_exeext conftest.$ac_ext
 
7049
rm -f core conftest.err conftest.$ac_objext \
 
7050
    conftest$ac_exeext conftest.$ac_ext
7528
7051
LIBS=$ac_check_lib_save_LIBS
7529
7052
fi
7530
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
7531
 
echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
7532
 
if test $ac_cv_lib_X11_XOpenDisplay = yes; then
 
7053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
 
7054
$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
 
7055
if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then :
7533
7056
  LIBS="$LIBS -lX11"
7534
7057
else
7535
 
  { { echo "$as_me:$LINENO: error: Could not find XOpenDisplay in -lX11." >&5
7536
 
echo "$as_me: error: Could not find XOpenDisplay in -lX11." >&2;}
7537
 
   { (exit 1); exit 1; }; }
 
7058
  as_fn_error "Could not find XOpenDisplay in -lX11." "$LINENO" 5
7538
7059
 
7539
7060
fi
7540
7061
 
7541
7062
LIBS="$LIBS $X_EXTRA_LIBS"
7542
7063
 
7543
 
{ echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
7544
 
echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
7545
 
if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
7546
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
 
7065
$as_echo_n "checking for setlocale in -lxpg4... " >&6; }
 
7066
if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then :
 
7067
  $as_echo_n "(cached) " >&6
7547
7068
else
7548
7069
  ac_check_lib_save_LIBS=$LIBS
7549
7070
LIBS="-lxpg4  $LIBS"
7550
 
cat >conftest.$ac_ext <<_ACEOF
7551
 
/* confdefs.h.  */
7552
 
_ACEOF
7553
 
cat confdefs.h >>conftest.$ac_ext
7554
 
cat >>conftest.$ac_ext <<_ACEOF
 
7071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555
7072
/* end confdefs.h.  */
7556
7073
 
7557
7074
/* Override any GCC internal prototype to avoid an error.
7569
7086
  return 0;
7570
7087
}
7571
7088
_ACEOF
7572
 
rm -f conftest.$ac_objext conftest$ac_exeext
7573
 
if { (ac_try="$ac_link"
7574
 
case "(($ac_try" in
7575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576
 
  *) ac_try_echo=$ac_try;;
7577
 
esac
7578
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579
 
  (eval "$ac_link") 2>conftest.er1
7580
 
  ac_status=$?
7581
 
  grep -v '^ *+' conftest.er1 >conftest.err
7582
 
  rm -f conftest.er1
7583
 
  cat conftest.err >&5
7584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585
 
  (exit $ac_status); } && {
7586
 
         test -z "$ac_cxx_werror_flag" ||
7587
 
         test ! -s conftest.err
7588
 
       } && test -s conftest$ac_exeext &&
7589
 
       $as_test_x conftest$ac_exeext; then
 
7089
if ac_fn_cxx_try_link "$LINENO"; then :
7590
7090
  ac_cv_lib_xpg4_setlocale=yes
7591
7091
else
7592
 
  echo "$as_me: failed program was:" >&5
7593
 
sed 's/^/| /' conftest.$ac_ext >&5
7594
 
 
7595
 
        ac_cv_lib_xpg4_setlocale=no
 
7092
  ac_cv_lib_xpg4_setlocale=no
7596
7093
fi
7597
 
 
7598
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7599
 
      conftest$ac_exeext conftest.$ac_ext
 
7094
rm -f core conftest.err conftest.$ac_objext \
 
7095
    conftest$ac_exeext conftest.$ac_ext
7600
7096
LIBS=$ac_check_lib_save_LIBS
7601
7097
fi
7602
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
7603
 
echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
7604
 
if test $ac_cv_lib_xpg4_setlocale = yes; then
 
7098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
 
7099
$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
 
7100
if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then :
7605
7101
  LIBS="$LIBS -lxpg4"
7606
7102
fi
7607
7103
 
7610
7106
do
7611
7107
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7612
7108
set dummy $ac_prog; ac_word=$2
7613
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7614
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615
 
if test "${ac_cv_prog_gencat_cmd+set}" = set; then
7616
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7110
$as_echo_n "checking for $ac_word... " >&6; }
 
7111
if test "${ac_cv_prog_gencat_cmd+set}" = set; then :
 
7112
  $as_echo_n "(cached) " >&6
7617
7113
else
7618
7114
  if test -n "$gencat_cmd"; then
7619
7115
  ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
7623
7119
do
7624
7120
  IFS=$as_save_IFS
7625
7121
  test -z "$as_dir" && as_dir=.
7626
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7122
    for ac_exec_ext in '' $ac_executable_extensions; do
7627
7123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628
7124
    ac_cv_prog_gencat_cmd="$ac_prog"
7629
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630
7126
    break 2
7631
7127
  fi
7632
7128
done
7633
 
done
 
7129
  done
7634
7130
IFS=$as_save_IFS
7635
7131
 
7636
7132
fi
7637
7133
fi
7638
7134
gencat_cmd=$ac_cv_prog_gencat_cmd
7639
7135
if test -n "$gencat_cmd"; then
7640
 
  { echo "$as_me:$LINENO: result: $gencat_cmd" >&5
7641
 
echo "${ECHO_T}$gencat_cmd" >&6; }
 
7136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gencat_cmd" >&5
 
7137
$as_echo "$gencat_cmd" >&6; }
7642
7138
else
7643
 
  { echo "$as_me:$LINENO: result: no" >&5
7644
 
echo "${ECHO_T}no" >&6; }
 
7139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7140
$as_echo "no" >&6; }
7645
7141
fi
7646
7142
 
7647
7143
 
7654
7150
 
7655
7151
Xext_lib=""
7656
7152
 
7657
 
{ echo "$as_me:$LINENO: checking whether to build support for the XShape extension" >&5
7658
 
echo $ECHO_N "checking whether to build support for the XShape extension... $ECHO_C" >&6; }
7659
 
# Check whether --enable-shape was given.
7660
 
if test "${enable_shape+set}" = set; then
7661
 
  enableval=$enable_shape; if test x$enableval = "xyes"; then
7662
 
    { echo "$as_me:$LINENO: result: yes" >&5
7663
 
echo "${ECHO_T}yes" >&6; }
7664
 
    { echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
7665
 
echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6; }
7666
 
if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
7667
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7668
 
else
7669
 
  ac_check_lib_save_LIBS=$LIBS
7670
 
LIBS="-lXext  $LIBS"
7671
 
cat >conftest.$ac_ext <<_ACEOF
7672
 
/* confdefs.h.  */
7673
 
_ACEOF
7674
 
cat confdefs.h >>conftest.$ac_ext
7675
 
cat >>conftest.$ac_ext <<_ACEOF
7676
 
/* end confdefs.h.  */
7677
 
 
7678
 
/* Override any GCC internal prototype to avoid an error.
7679
 
   Use char because int might match the return type of a GCC
7680
 
   builtin and then its argument prototype would still apply.  */
7681
 
#ifdef __cplusplus
7682
 
extern "C"
7683
 
#endif
7684
 
char XShapeCombineShape ();
7685
 
int
7686
 
main ()
7687
 
{
7688
 
return XShapeCombineShape ();
7689
 
  ;
7690
 
  return 0;
7691
 
}
7692
 
_ACEOF
7693
 
rm -f conftest.$ac_objext conftest$ac_exeext
7694
 
if { (ac_try="$ac_link"
7695
 
case "(($ac_try" in
7696
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697
 
  *) ac_try_echo=$ac_try;;
7698
 
esac
7699
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700
 
  (eval "$ac_link") 2>conftest.er1
7701
 
  ac_status=$?
7702
 
  grep -v '^ *+' conftest.er1 >conftest.err
7703
 
  rm -f conftest.er1
7704
 
  cat conftest.err >&5
7705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706
 
  (exit $ac_status); } && {
7707
 
         test -z "$ac_cxx_werror_flag" ||
7708
 
         test ! -s conftest.err
7709
 
       } && test -s conftest$ac_exeext &&
7710
 
       $as_test_x conftest$ac_exeext; then
7711
 
  ac_cv_lib_Xext_XShapeCombineShape=yes
7712
 
else
7713
 
  echo "$as_me: failed program was:" >&5
7714
 
sed 's/^/| /' conftest.$ac_ext >&5
7715
 
 
7716
 
        ac_cv_lib_Xext_XShapeCombineShape=no
7717
 
fi
7718
 
 
7719
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7720
 
      conftest$ac_exeext conftest.$ac_ext
7721
 
LIBS=$ac_check_lib_save_LIBS
7722
 
fi
7723
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
7724
 
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6; }
7725
 
if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
7726
 
 
7727
 
cat >>confdefs.h <<\_ACEOF
7728
 
#define SHAPE 1
7729
 
_ACEOF
7730
 
 
7731
 
      LIBS="$LIBS -lXext"
7732
 
fi
7733
 
 
7734
 
  else
7735
 
    { echo "$as_me:$LINENO: result: no" >&5
7736
 
echo "${ECHO_T}no" >&6; }
7737
 
  fi
7738
 
else
7739
 
  { echo "$as_me:$LINENO: result: yes" >&5
7740
 
echo "${ECHO_T}yes" >&6; }
7741
 
  { echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
7742
 
echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6; }
7743
 
if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
7744
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7745
 
else
7746
 
  ac_check_lib_save_LIBS=$LIBS
7747
 
LIBS="-lXext  $LIBS"
7748
 
cat >conftest.$ac_ext <<_ACEOF
7749
 
/* confdefs.h.  */
7750
 
_ACEOF
7751
 
cat confdefs.h >>conftest.$ac_ext
7752
 
cat >>conftest.$ac_ext <<_ACEOF
7753
 
/* end confdefs.h.  */
7754
 
 
7755
 
/* Override any GCC internal prototype to avoid an error.
7756
 
   Use char because int might match the return type of a GCC
7757
 
   builtin and then its argument prototype would still apply.  */
7758
 
#ifdef __cplusplus
7759
 
extern "C"
7760
 
#endif
7761
 
char XShapeCombineShape ();
7762
 
int
7763
 
main ()
7764
 
{
7765
 
return XShapeCombineShape ();
7766
 
  ;
7767
 
  return 0;
7768
 
}
7769
 
_ACEOF
7770
 
rm -f conftest.$ac_objext conftest$ac_exeext
7771
 
if { (ac_try="$ac_link"
7772
 
case "(($ac_try" in
7773
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774
 
  *) ac_try_echo=$ac_try;;
7775
 
esac
7776
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777
 
  (eval "$ac_link") 2>conftest.er1
7778
 
  ac_status=$?
7779
 
  grep -v '^ *+' conftest.er1 >conftest.err
7780
 
  rm -f conftest.er1
7781
 
  cat conftest.err >&5
7782
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783
 
  (exit $ac_status); } && {
7784
 
         test -z "$ac_cxx_werror_flag" ||
7785
 
         test ! -s conftest.err
7786
 
       } && test -s conftest$ac_exeext &&
7787
 
       $as_test_x conftest$ac_exeext; then
7788
 
  ac_cv_lib_Xext_XShapeCombineShape=yes
7789
 
else
7790
 
  echo "$as_me: failed program was:" >&5
7791
 
sed 's/^/| /' conftest.$ac_ext >&5
7792
 
 
7793
 
        ac_cv_lib_Xext_XShapeCombineShape=no
7794
 
fi
7795
 
 
7796
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7797
 
      conftest$ac_exeext conftest.$ac_ext
7798
 
LIBS=$ac_check_lib_save_LIBS
7799
 
fi
7800
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
7801
 
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6; }
7802
 
if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
7803
 
 
7804
 
cat >>confdefs.h <<\_ACEOF
7805
 
#define SHAPE 1
7806
 
_ACEOF
7807
 
 
7808
 
    LIBS="$LIBS -lXext"
7809
 
fi
7810
 
 
7811
 
 
7812
 
fi
7813
 
 
7814
 
 
7815
 
{ echo "$as_me:$LINENO: checking whether to include the Slit" >&5
7816
 
echo $ECHO_N "checking whether to include the Slit... $ECHO_C" >&6; }
 
7153
 
 
7154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Slit" >&5
 
7155
$as_echo_n "checking whether to include the Slit... " >&6; }
7817
7156
# Check whether --enable-slit was given.
7818
 
if test "${enable_slit+set}" = set; then
 
7157
if test "${enable_slit+set}" = set; then :
7819
7158
  enableval=$enable_slit; if test x$enableval = "xyes"; then
7820
 
    { echo "$as_me:$LINENO: result: yes" >&5
7821
 
echo "${ECHO_T}yes" >&6; }
 
7159
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7160
$as_echo "yes" >&6; }
7822
7161
 
7823
 
cat >>confdefs.h <<\_ACEOF
7824
 
#define SLIT 1
7825
 
_ACEOF
 
7162
$as_echo "#define SLIT 1" >>confdefs.h
7826
7163
 
7827
7164
  else
7828
 
    { echo "$as_me:$LINENO: result: no" >&5
7829
 
echo "${ECHO_T}no" >&6; }
 
7165
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7166
$as_echo "no" >&6; }
7830
7167
  fi
7831
7168
else
7832
 
  { echo "$as_me:$LINENO: result: yes" >&5
7833
 
echo "${ECHO_T}yes" >&6; }
 
7169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7170
$as_echo "yes" >&6; }
7834
7171
 
7835
 
cat >>confdefs.h <<\_ACEOF
7836
 
#define SLIT 1
7837
 
_ACEOF
 
7172
$as_echo "#define SLIT 1" >>confdefs.h
7838
7173
 
7839
7174
 
7840
7175
fi
7841
7176
 
7842
7177
 
7843
 
{ echo "$as_me:$LINENO: checking whether to include remember functionality" >&5
7844
 
echo $ECHO_N "checking whether to include remember functionality... $ECHO_C" >&6; }
 
7178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include remember functionality" >&5
 
7179
$as_echo_n "checking whether to include remember functionality... " >&6; }
7845
7180
# Check whether --enable-remember was given.
7846
 
if test "${enable_remember+set}" = set; then
 
7181
if test "${enable_remember+set}" = set; then :
7847
7182
  enableval=$enable_remember; if test x$enableval = "xyes"; then
7848
 
    { echo "$as_me:$LINENO: result: yes" >&5
7849
 
echo "${ECHO_T}yes" >&6; }
 
7183
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7184
$as_echo "yes" >&6; }
7850
7185
 
7851
 
cat >>confdefs.h <<\_ACEOF
7852
 
#define REMEMBER 1
7853
 
_ACEOF
 
7186
$as_echo "#define REMEMBER 1" >>confdefs.h
7854
7187
 
7855
7188
    REMEMBER_SRC=true
7856
7189
  else
7857
 
    { echo "$as_me:$LINENO: result: no" >&5
7858
 
echo "${ECHO_T}no" >&6; }
 
7190
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7191
$as_echo "no" >&6; }
7859
7192
    REMEMBER_SRC=false
7860
7193
  fi
7861
7194
else
7862
 
  { echo "$as_me:$LINENO: result: yes" >&5
7863
 
echo "${ECHO_T}yes" >&6; }
 
7195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7196
$as_echo "yes" >&6; }
7864
7197
 
7865
 
cat >>confdefs.h <<\_ACEOF
7866
 
#define REMEMBER 1
7867
 
_ACEOF
 
7198
$as_echo "#define REMEMBER 1" >>confdefs.h
7868
7199
 
7869
7200
  REMEMBER_SRC=true
7870
7201
 
7879
7210
fi
7880
7211
 
7881
7212
 
7882
 
{ echo "$as_me:$LINENO: checking whether to include Toolbar" >&5
7883
 
echo $ECHO_N "checking whether to include Toolbar... $ECHO_C" >&6; }
 
7213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Toolbar" >&5
 
7214
$as_echo_n "checking whether to include Toolbar... " >&6; }
7884
7215
# Check whether --enable-toolbar was given.
7885
 
if test "${enable_toolbar+set}" = set; then
 
7216
if test "${enable_toolbar+set}" = set; then :
7886
7217
  enableval=$enable_toolbar; if test x$enableval = "xyes"; then
7887
 
    { echo "$as_me:$LINENO: result: yes" >&5
7888
 
echo "${ECHO_T}yes" >&6; }
 
7218
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7219
$as_echo "yes" >&6; }
7889
7220
 
7890
 
cat >>confdefs.h <<\_ACEOF
7891
 
#define USE_TOOLBAR 1
7892
 
_ACEOF
 
7221
$as_echo "#define USE_TOOLBAR 1" >>confdefs.h
7893
7222
 
7894
7223
    TOOLBAR_SRC=true
7895
7224
  else
7896
 
    { echo "$as_me:$LINENO: result: no" >&5
7897
 
echo "${ECHO_T}no" >&6; }
 
7225
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7226
$as_echo "no" >&6; }
7898
7227
    TOOLBAR_SRC=false
7899
7228
  fi
7900
7229
else
7901
 
  { echo "$as_me:$LINENO: result: yes" >&5
7902
 
echo "${ECHO_T}yes" >&6; }
 
7230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7231
$as_echo "yes" >&6; }
7903
7232
 
7904
 
cat >>confdefs.h <<\_ACEOF
7905
 
#define USE_TOOLBAR 1
7906
 
_ACEOF
 
7233
$as_echo "#define USE_TOOLBAR 1" >>confdefs.h
7907
7234
 
7908
7235
  TOOLBAR_SRC=true
7909
7236
 
7918
7245
fi
7919
7246
 
7920
7247
 
7921
 
{ echo "$as_me:$LINENO: checking whether to have (POSIX) regular expression support" >&5
7922
 
echo $ECHO_N "checking whether to have (POSIX) regular expression support... $ECHO_C" >&6; }
 
7248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have (POSIX) regular expression support" >&5
 
7249
$as_echo_n "checking whether to have (POSIX) regular expression support... " >&6; }
7923
7250
# Check whether --enable-regexp was given.
7924
 
if test "${enable_regexp+set}" = set; then
 
7251
if test "${enable_regexp+set}" = set; then :
7925
7252
  enableval=$enable_regexp; if test x$enableval = "xyes"; then
7926
 
        cat >conftest.$ac_ext <<_ACEOF
7927
 
/* confdefs.h.  */
7928
 
_ACEOF
7929
 
cat confdefs.h >>conftest.$ac_ext
7930
 
cat >>conftest.$ac_ext <<_ACEOF
 
7253
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931
7254
/* end confdefs.h.  */
7932
7255
#include <regex.h>
7933
7256
 
7934
7257
_ACEOF
7935
7258
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936
 
  $EGREP "regex_t" >/dev/null 2>&1; then
7937
 
 
7938
 
cat >>confdefs.h <<\_ACEOF
7939
 
#define USE_REGEXP 1
7940
 
_ACEOF
7941
 
 
7942
 
                { echo "$as_me:$LINENO: result: yes" >&5
7943
 
echo "${ECHO_T}yes" >&6; }
 
7259
  $EGREP "regex_t" >/dev/null 2>&1; then :
 
7260
 
 
7261
$as_echo "#define USE_REGEXP 1" >>confdefs.h
 
7262
 
 
7263
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7264
$as_echo "yes" >&6; }
7944
7265
                REGEXP_SRC=true
7945
7266
else
7946
 
  { echo "$as_me:$LINENO: result: no" >&5
7947
 
echo "${ECHO_T}no" >&6; }
 
7267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7268
$as_echo "no" >&6; }
7948
7269
                REGEXP_SRC=false
7949
7270
 
7950
7271
fi
7951
7272
rm -f conftest*
7952
7273
 
7953
7274
  else
7954
 
    { echo "$as_me:$LINENO: result: no" >&5
7955
 
echo "${ECHO_T}no" >&6; }
 
7275
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7276
$as_echo "no" >&6; }
7956
7277
    REGEXP_SRC=false
7957
7278
  fi
7958
7279
else
7959
 
  cat >conftest.$ac_ext <<_ACEOF
7960
 
/* confdefs.h.  */
7961
 
_ACEOF
7962
 
cat confdefs.h >>conftest.$ac_ext
7963
 
cat >>conftest.$ac_ext <<_ACEOF
 
7280
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964
7281
/* end confdefs.h.  */
7965
7282
#include <regex.h>
7966
7283
 
7967
7284
_ACEOF
7968
7285
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7969
 
  $EGREP "regex_t" >/dev/null 2>&1; then
7970
 
 
7971
 
cat >>confdefs.h <<\_ACEOF
7972
 
#define USE_REGEXP 1
7973
 
_ACEOF
7974
 
 
7975
 
        { echo "$as_me:$LINENO: result: yes" >&5
7976
 
echo "${ECHO_T}yes" >&6; }
 
7286
  $EGREP "regex_t" >/dev/null 2>&1; then :
 
7287
 
 
7288
$as_echo "#define USE_REGEXP 1" >>confdefs.h
 
7289
 
 
7290
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7291
$as_echo "yes" >&6; }
7977
7292
        REGEXP_SRC=true
7978
7293
else
7979
 
  { echo "$as_me:$LINENO: result: no" >&5
7980
 
echo "${ECHO_T}no" >&6; }
 
7294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7295
$as_echo "no" >&6; }
7981
7296
        REGEXP_SRC=false
7982
7297
 
7983
7298
fi
7995
7310
fi
7996
7311
 
7997
7312
 
7998
 
{ echo "$as_me:$LINENO: checking whether to include the new WM Spec" >&5
7999
 
echo $ECHO_N "checking whether to include the new WM Spec... $ECHO_C" >&6; }
 
7313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the new WM Spec" >&5
 
7314
$as_echo_n "checking whether to include the new WM Spec... " >&6; }
8000
7315
# Check whether --enable-newwmspec was given.
8001
 
if test "${enable_newwmspec+set}" = set; then
 
7316
if test "${enable_newwmspec+set}" = set; then :
8002
7317
  enableval=$enable_newwmspec; if test x$enableval = "xyes"; then
8003
 
        { echo "$as_me:$LINENO: result: yes" >&5
8004
 
echo "${ECHO_T}yes" >&6; }
 
7318
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7319
$as_echo "yes" >&6; }
8005
7320
        NEWWMSPEC=true
8006
7321
 
8007
 
cat >>confdefs.h <<\_ACEOF
8008
 
#define USE_NEWWMSPEC 1
8009
 
_ACEOF
 
7322
$as_echo "#define USE_NEWWMSPEC 1" >>confdefs.h
8010
7323
 
8011
7324
  else
8012
 
    { echo "$as_me:$LINENO: result: no" >&5
8013
 
echo "${ECHO_T}no" >&6; }
 
7325
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7326
$as_echo "no" >&6; }
8014
7327
        NEWWMSPEC=false
8015
7328
  fi
8016
7329
else
8017
 
  { echo "$as_me:$LINENO: result: yes" >&5
8018
 
echo "${ECHO_T}yes" >&6; }
 
7330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7331
$as_echo "yes" >&6; }
8019
7332
 
8020
 
cat >>confdefs.h <<\_ACEOF
8021
 
#define USE_NEWWMSPEC 1
8022
 
_ACEOF
 
7333
$as_echo "#define USE_NEWWMSPEC 1" >>confdefs.h
8023
7334
 
8024
7335
  NEWWMSPEC=true
8025
7336
 
8035
7346
 
8036
7347
 
8037
7348
DEBUG=""
8038
 
{ echo "$as_me:$LINENO: checking whether to include verbose debugging code" >&5
8039
 
echo $ECHO_N "checking whether to include verbose debugging code... $ECHO_C" >&6; }
 
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include verbose debugging code" >&5
 
7350
$as_echo_n "checking whether to include verbose debugging code... " >&6; }
8040
7351
# Check whether --enable-debug was given.
8041
 
if test "${enable_debug+set}" = set; then
 
7352
if test "${enable_debug+set}" = set; then :
8042
7353
  enableval=$enable_debug; if test x$enableval = "xyes"; then
8043
 
    { echo "$as_me:$LINENO: result: yes" >&5
8044
 
echo "${ECHO_T}yes" >&6; }
 
7354
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7355
$as_echo "yes" >&6; }
8045
7356
    DEBUG="-DDEBUG -Wall"
8046
7357
  else
8047
 
    { echo "$as_me:$LINENO: result: no" >&5
8048
 
echo "${ECHO_T}no" >&6; }
 
7358
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7359
$as_echo "no" >&6; }
8049
7360
  fi
8050
7361
else
8051
 
  { echo "$as_me:$LINENO: result: no" >&5
8052
 
echo "${ECHO_T}no" >&6; }
 
7362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7363
$as_echo "no" >&6; }
8053
7364
 
8054
7365
fi
8055
7366
 
8056
7367
 
8057
7368
CXXFLAGS="$CXXFLAGS $DEBUG"
8058
7369
 
8059
 
{ echo "$as_me:$LINENO: checking whether to include NLS support" >&5
8060
 
echo $ECHO_N "checking whether to include NLS support... $ECHO_C" >&6; }
 
7370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include NLS support" >&5
 
7371
$as_echo_n "checking whether to include NLS support... " >&6; }
8061
7372
# Check whether --enable-nls was given.
8062
 
if test "${enable_nls+set}" = set; then
 
7373
if test "${enable_nls+set}" = set; then :
8063
7374
  enableval=$enable_nls; if test x$enableval = "xyes"; then
8064
 
    { echo "$as_me:$LINENO: result: yes" >&5
8065
 
echo "${ECHO_T}yes" >&6; }
 
7375
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7376
$as_echo "yes" >&6; }
8066
7377
 
8067
 
cat >>confdefs.h <<\_ACEOF
8068
 
#define NLS 1
8069
 
_ACEOF
 
7378
$as_echo "#define NLS 1" >>confdefs.h
8070
7379
 
8071
7380
    NLS="-DNLS"
8072
7381
  else
8073
 
    { echo "$as_me:$LINENO: result: no" >&5
8074
 
echo "${ECHO_T}no" >&6; }
 
7382
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7383
$as_echo "no" >&6; }
8075
7384
  fi
8076
7385
else
8077
 
  { echo "$as_me:$LINENO: result: no" >&5
8078
 
echo "${ECHO_T}no" >&6; }
 
7386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7387
$as_echo "no" >&6; }
8079
7388
 
8080
7389
fi
8081
7390
 
8086
7395
 
8087
7396
 
8088
7397
 
8089
 
{ echo "$as_me:$LINENO: checking whether to use the new timed pixmap cache" >&5
8090
 
echo $ECHO_N "checking whether to use the new timed pixmap cache... $ECHO_C" >&6; }
 
7398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the new timed pixmap cache" >&5
 
7399
$as_echo_n "checking whether to use the new timed pixmap cache... " >&6; }
8091
7400
# Check whether --enable-timed-cache was given.
8092
 
if test "${enable_timed_cache+set}" = set; then
 
7401
if test "${enable_timed_cache+set}" = set; then :
8093
7402
  enableval=$enable_timed_cache; if test x$enableval = "xyes"; then
8094
 
    { echo "$as_me:$LINENO: result: yes" >&5
8095
 
echo "${ECHO_T}yes" >&6; }
 
7403
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7404
$as_echo "yes" >&6; }
8096
7405
 
8097
 
cat >>confdefs.h <<\_ACEOF
8098
 
#define TIMEDCACHE 1
8099
 
_ACEOF
 
7406
$as_echo "#define TIMEDCACHE 1" >>confdefs.h
8100
7407
 
8101
7408
  else
8102
 
    { echo "$as_me:$LINENO: result: no" >&5
8103
 
echo "${ECHO_T}no" >&6; }
 
7409
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7410
$as_echo "no" >&6; }
8104
7411
  fi
8105
7412
else
8106
 
  { echo "$as_me:$LINENO: result: yes" >&5
8107
 
echo "${ECHO_T}yes" >&6; }
 
7413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7414
$as_echo "yes" >&6; }
8108
7415
 
8109
 
cat >>confdefs.h <<\_ACEOF
8110
 
#define TIMEDCACHE 1
8111
 
_ACEOF
 
7416
$as_echo "#define TIMEDCACHE 1" >>confdefs.h
8112
7417
 
8113
7418
 
8114
7419
fi
8115
7420
 
8116
7421
 
8117
7422
 
8118
 
{ echo "$as_me:$LINENO: checking whether to have GNOME support" >&5
8119
 
echo $ECHO_N "checking whether to have GNOME support... $ECHO_C" >&6; }
 
7423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have GNOME support" >&5
 
7424
$as_echo_n "checking whether to have GNOME support... " >&6; }
8120
7425
# Check whether --enable-gnome was given.
8121
 
if test "${enable_gnome+set}" = set; then
 
7426
if test "${enable_gnome+set}" = set; then :
8122
7427
  enableval=$enable_gnome; if test x$enableval = "xyes"; then
8123
 
    { echo "$as_me:$LINENO: result: yes" >&5
8124
 
echo "${ECHO_T}yes" >&6; }
 
7428
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7429
$as_echo "yes" >&6; }
8125
7430
 
8126
 
cat >>confdefs.h <<\_ACEOF
8127
 
#define USE_GNOME 1
8128
 
_ACEOF
 
7431
$as_echo "#define USE_GNOME 1" >>confdefs.h
8129
7432
 
8130
7433
        GNOME=true
8131
7434
  else
8132
 
    { echo "$as_me:$LINENO: result: no" >&5
8133
 
echo "${ECHO_T}no" >&6; }
 
7435
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7436
$as_echo "no" >&6; }
8134
7437
        GNOME=false
8135
7438
  fi
8136
7439
else
8137
 
  { echo "$as_me:$LINENO: result: yes" >&5
8138
 
echo "${ECHO_T}yes" >&6; }
 
7440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7441
$as_echo "yes" >&6; }
8139
7442
 
8140
 
cat >>confdefs.h <<\_ACEOF
8141
 
#define USE_GNOME 1
8142
 
_ACEOF
 
7443
$as_echo "#define USE_GNOME 1" >>confdefs.h
8143
7444
 
8144
7445
 GNOME=true
8145
7446
 
8154
7455
fi
8155
7456
 
8156
7457
 
8157
 
{ echo "$as_me:$LINENO: checking whether to have Xft support" >&5
8158
 
echo $ECHO_N "checking whether to have Xft support... $ECHO_C" >&6; }
 
7458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have Xft support" >&5
 
7459
$as_echo_n "checking whether to have Xft support... " >&6; }
8159
7460
 
8160
7461
 
8161
7462
# Check whether --with-xft-prefix was given.
8162
 
if test "${with_xft_prefix+set}" = set; then
 
7463
if test "${with_xft_prefix+set}" = set; then :
8163
7464
  withval=$with_xft_prefix; xft_prefix="$withval"
8164
7465
else
8165
7466
  xft_prefix=""
8167
7468
 
8168
7469
 
8169
7470
# Check whether --with-pkg-exec-prefix was given.
8170
 
if test "${with_pkg_exec_prefix+set}" = set; then
 
7471
if test "${with_pkg_exec_prefix+set}" = set; then :
8171
7472
  withval=$with_pkg_exec_prefix; pkg_exec_prefix="$withval"
8172
7473
else
8173
7474
  pkg_exec_prefix=""
8174
7475
fi
8175
7476
 
8176
7477
 # Check whether --enable-xft was given.
8177
 
if test "${enable_xft+set}" = set; then
 
7478
if test "${enable_xft+set}" = set; then :
8178
7479
  enableval=$enable_xft; if test "x$enableval" = "xyes"; then
8179
7480
                TRY_XFT=yes
8180
7481
        else
8188
7489
 
8189
7490
 
8190
7491
if test "x$TRY_XFT" = "xyes"; then
8191
 
        { echo "$as_me:$LINENO: result: yes" >&5
8192
 
echo "${ECHO_T}yes" >&6; }
 
7492
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7493
$as_echo "yes" >&6; }
8193
7494
 
8194
7495
        if test x$pkg_exec_prefix != x ; then
8195
7496
           xft_args="$xft_args --exec-prefix=$pkg_exec_prefix"
8207
7508
 
8208
7509
# Extract the first word of "pkg-config", so it can be a program name with args.
8209
7510
set dummy pkg-config; ac_word=$2
8210
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8211
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7512
$as_echo_n "checking for $ac_word... " >&6; }
 
7513
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
7514
  $as_echo_n "(cached) " >&6
8214
7515
else
8215
7516
  case $PKG_CONFIG in
8216
7517
  [\\/]* | ?:[\\/]*)
8222
7523
do
8223
7524
  IFS=$as_save_IFS
8224
7525
  test -z "$as_dir" && as_dir=.
8225
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7526
    for ac_exec_ext in '' $ac_executable_extensions; do
8226
7527
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227
7528
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8228
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7529
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229
7530
    break 2
8230
7531
  fi
8231
7532
done
8232
 
done
 
7533
  done
8233
7534
IFS=$as_save_IFS
8234
7535
 
8235
7536
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8238
7539
fi
8239
7540
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8240
7541
if test -n "$PKG_CONFIG"; then
8241
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8242
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
7542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
7543
$as_echo "$PKG_CONFIG" >&6; }
8243
7544
else
8244
 
  { echo "$as_me:$LINENO: result: no" >&5
8245
 
echo "${ECHO_T}no" >&6; }
 
7545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7546
$as_echo "no" >&6; }
8246
7547
fi
8247
7548
 
8248
7549
 
8249
7550
if test "x$PKG_CONFIG" = "xno" ; then
8250
7551
        # xft2 failed: try xft1
8251
7552
 
8252
 
        { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
8253
 
echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
8254
 
if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
8255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7553
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
 
7554
$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
 
7555
if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
 
7556
  $as_echo_n "(cached) " >&6
8256
7557
else
8257
7558
  ac_check_lib_save_LIBS=$LIBS
8258
7559
LIBS="-lXft  $LIBS"
8259
 
cat >conftest.$ac_ext <<_ACEOF
8260
 
/* confdefs.h.  */
8261
 
_ACEOF
8262
 
cat confdefs.h >>conftest.$ac_ext
8263
 
cat >>conftest.$ac_ext <<_ACEOF
 
7560
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264
7561
/* end confdefs.h.  */
8265
7562
 
8266
7563
/* Override any GCC internal prototype to avoid an error.
8278
7575
  return 0;
8279
7576
}
8280
7577
_ACEOF
8281
 
rm -f conftest.$ac_objext conftest$ac_exeext
8282
 
if { (ac_try="$ac_link"
8283
 
case "(($ac_try" in
8284
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285
 
  *) ac_try_echo=$ac_try;;
8286
 
esac
8287
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288
 
  (eval "$ac_link") 2>conftest.er1
8289
 
  ac_status=$?
8290
 
  grep -v '^ *+' conftest.er1 >conftest.err
8291
 
  rm -f conftest.er1
8292
 
  cat conftest.err >&5
8293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294
 
  (exit $ac_status); } && {
8295
 
         test -z "$ac_cxx_werror_flag" ||
8296
 
         test ! -s conftest.err
8297
 
       } && test -s conftest$ac_exeext &&
8298
 
       $as_test_x conftest$ac_exeext; then
 
7578
if ac_fn_cxx_try_link "$LINENO"; then :
8299
7579
  ac_cv_lib_Xft_XftFontOpen=yes
8300
7580
else
8301
 
  echo "$as_me: failed program was:" >&5
8302
 
sed 's/^/| /' conftest.$ac_ext >&5
8303
 
 
8304
 
        ac_cv_lib_Xft_XftFontOpen=no
 
7581
  ac_cv_lib_Xft_XftFontOpen=no
8305
7582
fi
8306
 
 
8307
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8308
 
      conftest$ac_exeext conftest.$ac_ext
 
7583
rm -f core conftest.err conftest.$ac_objext \
 
7584
    conftest$ac_exeext conftest.$ac_ext
8309
7585
LIBS=$ac_check_lib_save_LIBS
8310
7586
fi
8311
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
8312
 
echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
8313
 
if test $ac_cv_lib_Xft_XftFontOpen = yes; then
 
7587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
 
7588
$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
 
7589
if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
8314
7590
  XFT_LIBS="-lXft"
8315
7591
                XFT=true
8316
7592
else
8317
7593
  XFT=false
8318
7594
 
8319
 
                { echo "$as_me:$LINENO: result: Cant find Xft libraries! Disabling Xft" >&5
8320
 
echo "${ECHO_T}Cant find Xft libraries! Disabling Xft" >&6; }
 
7595
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cant find Xft libraries! Disabling Xft" >&5
 
7596
$as_echo "Cant find Xft libraries! Disabling Xft" >&6; }
8321
7597
 
8322
7598
fi
8323
7599
 
8331
7607
 
8332
7608
 
8333
7609
else
8334
 
        { echo "$as_me:$LINENO: result: no" >&5
8335
 
echo "${ECHO_T}no" >&6; }
 
7610
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7611
$as_echo "no" >&6; }
8336
7612
        XFT=false
8337
7613
 
8338
7614
fi
8344
7620
 
8345
7621
 
8346
7622
if test "x$XFT" = "xtrue" ; then
8347
 
        cat >conftest.$ac_ext <<_ACEOF
8348
 
/* confdefs.h.  */
8349
 
_ACEOF
8350
 
cat confdefs.h >>conftest.$ac_ext
8351
 
cat >>conftest.$ac_ext <<_ACEOF
 
7623
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352
7624
/* end confdefs.h.  */
8353
7625
 
8354
7626
                        #include <X11/Xft/Xft.h>
8361
7633
  return 0;
8362
7634
}
8363
7635
_ACEOF
8364
 
rm -f conftest.$ac_objext conftest$ac_exeext
8365
 
if { (ac_try="$ac_link"
8366
 
case "(($ac_try" in
8367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368
 
  *) ac_try_echo=$ac_try;;
8369
 
esac
8370
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371
 
  (eval "$ac_link") 2>conftest.er1
8372
 
  ac_status=$?
8373
 
  grep -v '^ *+' conftest.er1 >conftest.err
8374
 
  rm -f conftest.er1
8375
 
  cat conftest.err >&5
8376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377
 
  (exit $ac_status); } && {
8378
 
         test -z "$ac_cxx_werror_flag" ||
8379
 
         test ! -s conftest.err
8380
 
       } && test -s conftest$ac_exeext &&
8381
 
       $as_test_x conftest$ac_exeext; then
8382
 
 
8383
 
 
8384
 
 
8385
 
cat >>confdefs.h <<\_ACEOF
8386
 
#define USE_XFT 1
8387
 
_ACEOF
8388
 
 
8389
 
            { echo "$as_me:$LINENO: checking Xft UTF-8 support" >&5
8390
 
echo $ECHO_N "checking Xft UTF-8 support... $ECHO_C" >&6; }
8391
 
             cat >conftest.$ac_ext <<_ACEOF
8392
 
/* confdefs.h.  */
8393
 
_ACEOF
8394
 
cat confdefs.h >>conftest.$ac_ext
8395
 
cat >>conftest.$ac_ext <<_ACEOF
 
7636
if ac_fn_cxx_try_link "$LINENO"; then :
 
7637
 
 
7638
 
 
7639
 
 
7640
$as_echo "#define USE_XFT 1" >>confdefs.h
 
7641
 
 
7642
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xft UTF-8 support" >&5
 
7643
$as_echo_n "checking Xft UTF-8 support... " >&6; }
 
7644
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396
7645
/* end confdefs.h.  */
8397
7646
 
8398
7647
                        #include <X11/Xft/Xft.h>
8405
7654
  return 0;
8406
7655
}
8407
7656
_ACEOF
8408
 
rm -f conftest.$ac_objext conftest$ac_exeext
8409
 
if { (ac_try="$ac_link"
8410
 
case "(($ac_try" in
8411
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412
 
  *) ac_try_echo=$ac_try;;
8413
 
esac
8414
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415
 
  (eval "$ac_link") 2>conftest.er1
8416
 
  ac_status=$?
8417
 
  grep -v '^ *+' conftest.er1 >conftest.err
8418
 
  rm -f conftest.er1
8419
 
  cat conftest.err >&5
8420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421
 
  (exit $ac_status); } && {
8422
 
         test -z "$ac_cxx_werror_flag" ||
8423
 
         test ! -s conftest.err
8424
 
       } && test -s conftest$ac_exeext &&
8425
 
       $as_test_x conftest$ac_exeext; then
8426
 
 
8427
 
cat >>confdefs.h <<\_ACEOF
8428
 
#define HAVE_XFT_UTF8_STRING 1
8429
 
_ACEOF
8430
 
 
8431
 
                { echo "$as_me:$LINENO: result: yes" >&5
8432
 
echo "${ECHO_T}yes" >&6; }
 
7657
if ac_fn_cxx_try_link "$LINENO"; then :
 
7658
 
 
7659
$as_echo "#define HAVE_XFT_UTF8_STRING 1" >>confdefs.h
 
7660
 
 
7661
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7662
$as_echo "yes" >&6; }
8433
7663
else
8434
 
  echo "$as_me: failed program was:" >&5
8435
 
sed 's/^/| /' conftest.$ac_ext >&5
8436
 
 
8437
 
        { echo "$as_me:$LINENO: result: no" >&5
8438
 
echo "${ECHO_T}no" >&6; }
 
7664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7665
$as_echo "no" >&6; }
8439
7666
 
8440
7667
fi
8441
 
 
8442
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8443
 
      conftest$ac_exeext conftest.$ac_ext
 
7668
rm -f core conftest.err conftest.$ac_objext \
 
7669
    conftest$ac_exeext conftest.$ac_ext
8444
7670
 
8445
7671
else
8446
 
  echo "$as_me: failed program was:" >&5
8447
 
sed 's/^/| /' conftest.$ac_ext >&5
8448
 
 
8449
 
                { echo "$as_me:$LINENO: result: Could not link with Xft. Install Xft if you want support for it." >&5
8450
 
echo "${ECHO_T}Could not link with Xft. Install Xft if you want support for it." >&6; }
 
7672
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not link with Xft. Install Xft if you want support for it." >&5
 
7673
$as_echo "Could not link with Xft. Install Xft if you want support for it." >&6; }
8451
7674
                XFT=false
8452
7675
 
8453
7676
fi
8454
 
 
8455
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8456
 
      conftest$ac_exeext conftest.$ac_ext
 
7677
rm -f core conftest.err conftest.$ac_objext \
 
7678
    conftest$ac_exeext conftest.$ac_ext
8457
7679
fi
8458
7680
 
8459
7681
 if test x$XFT = xtrue; then
8465
7687
fi
8466
7688
 
8467
7689
 
8468
 
{ echo "$as_me:$LINENO: checking whether to have Xrender (transparent) support" >&5
8469
 
echo $ECHO_N "checking whether to have Xrender (transparent) support... $ECHO_C" >&6; }
 
7690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have Xrender (transparent) support" >&5
 
7691
$as_echo_n "checking whether to have Xrender (transparent) support... " >&6; }
8470
7692
# Check whether --enable-xrender was given.
8471
 
if test "${enable_xrender+set}" = set; then
 
7693
if test "${enable_xrender+set}" = set; then :
8472
7694
  enableval=$enable_xrender; if test x$enableval = "xyes"; then
8473
 
        { echo "$as_me:$LINENO: result: yes" >&5
8474
 
echo "${ECHO_T}yes" >&6; }
8475
 
        { echo "$as_me:$LINENO: checking for XRenderCreatePicture in -lXrender" >&5
8476
 
echo $ECHO_N "checking for XRenderCreatePicture in -lXrender... $ECHO_C" >&6; }
8477
 
if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then
8478
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7695
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7696
$as_echo "yes" >&6; }
 
7697
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5
 
7698
$as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; }
 
7699
if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then :
 
7700
  $as_echo_n "(cached) " >&6
8479
7701
else
8480
7702
  ac_check_lib_save_LIBS=$LIBS
8481
7703
LIBS="-lXrender  $LIBS"
8482
 
cat >conftest.$ac_ext <<_ACEOF
8483
 
/* confdefs.h.  */
8484
 
_ACEOF
8485
 
cat confdefs.h >>conftest.$ac_ext
8486
 
cat >>conftest.$ac_ext <<_ACEOF
 
7704
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487
7705
/* end confdefs.h.  */
8488
7706
 
8489
7707
/* Override any GCC internal prototype to avoid an error.
8501
7719
  return 0;
8502
7720
}
8503
7721
_ACEOF
8504
 
rm -f conftest.$ac_objext conftest$ac_exeext
8505
 
if { (ac_try="$ac_link"
8506
 
case "(($ac_try" in
8507
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508
 
  *) ac_try_echo=$ac_try;;
8509
 
esac
8510
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511
 
  (eval "$ac_link") 2>conftest.er1
8512
 
  ac_status=$?
8513
 
  grep -v '^ *+' conftest.er1 >conftest.err
8514
 
  rm -f conftest.er1
8515
 
  cat conftest.err >&5
8516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517
 
  (exit $ac_status); } && {
8518
 
         test -z "$ac_cxx_werror_flag" ||
8519
 
         test ! -s conftest.err
8520
 
       } && test -s conftest$ac_exeext &&
8521
 
       $as_test_x conftest$ac_exeext; then
 
7722
if ac_fn_cxx_try_link "$LINENO"; then :
8522
7723
  ac_cv_lib_Xrender_XRenderCreatePicture=yes
8523
7724
else
8524
 
  echo "$as_me: failed program was:" >&5
8525
 
sed 's/^/| /' conftest.$ac_ext >&5
8526
 
 
8527
 
        ac_cv_lib_Xrender_XRenderCreatePicture=no
 
7725
  ac_cv_lib_Xrender_XRenderCreatePicture=no
8528
7726
fi
8529
 
 
8530
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8531
 
      conftest$ac_exeext conftest.$ac_ext
 
7727
rm -f core conftest.err conftest.$ac_objext \
 
7728
    conftest$ac_exeext conftest.$ac_ext
8532
7729
LIBS=$ac_check_lib_save_LIBS
8533
7730
fi
8534
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5
8535
 
echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; }
8536
 
if test $ac_cv_lib_Xrender_XRenderCreatePicture = yes; then
 
7731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5
 
7732
$as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; }
 
7733
if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then :
8537
7734
 
8538
 
cat >>confdefs.h <<\_ACEOF
8539
 
#define HAVE_XRENDER 1
8540
 
_ACEOF
 
7735
$as_echo "#define HAVE_XRENDER 1" >>confdefs.h
8541
7736
 
8542
7737
                LIBS="$LIBS -lXrender"
8543
7738
fi
8544
7739
 
8545
7740
  else
8546
 
    { echo "$as_me:$LINENO: result: no" >&5
8547
 
echo "${ECHO_T}no" >&6; }
 
7741
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7742
$as_echo "no" >&6; }
8548
7743
  fi
8549
7744
else
8550
 
  { echo "$as_me:$LINENO: result: yes" >&5
8551
 
echo "${ECHO_T}yes" >&6; }
8552
 
  { echo "$as_me:$LINENO: checking for XRenderCreatePicture in -lXrender" >&5
8553
 
echo $ECHO_N "checking for XRenderCreatePicture in -lXrender... $ECHO_C" >&6; }
8554
 
if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then
8555
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7746
$as_echo "yes" >&6; }
 
7747
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5
 
7748
$as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; }
 
7749
if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then :
 
7750
  $as_echo_n "(cached) " >&6
8556
7751
else
8557
7752
  ac_check_lib_save_LIBS=$LIBS
8558
7753
LIBS="-lXrender  $LIBS"
8559
 
cat >conftest.$ac_ext <<_ACEOF
8560
 
/* confdefs.h.  */
8561
 
_ACEOF
8562
 
cat confdefs.h >>conftest.$ac_ext
8563
 
cat >>conftest.$ac_ext <<_ACEOF
 
7754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564
7755
/* end confdefs.h.  */
8565
7756
 
8566
7757
/* Override any GCC internal prototype to avoid an error.
8578
7769
  return 0;
8579
7770
}
8580
7771
_ACEOF
8581
 
rm -f conftest.$ac_objext conftest$ac_exeext
8582
 
if { (ac_try="$ac_link"
8583
 
case "(($ac_try" in
8584
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585
 
  *) ac_try_echo=$ac_try;;
8586
 
esac
8587
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588
 
  (eval "$ac_link") 2>conftest.er1
8589
 
  ac_status=$?
8590
 
  grep -v '^ *+' conftest.er1 >conftest.err
8591
 
  rm -f conftest.er1
8592
 
  cat conftest.err >&5
8593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594
 
  (exit $ac_status); } && {
8595
 
         test -z "$ac_cxx_werror_flag" ||
8596
 
         test ! -s conftest.err
8597
 
       } && test -s conftest$ac_exeext &&
8598
 
       $as_test_x conftest$ac_exeext; then
 
7772
if ac_fn_cxx_try_link "$LINENO"; then :
8599
7773
  ac_cv_lib_Xrender_XRenderCreatePicture=yes
8600
7774
else
8601
 
  echo "$as_me: failed program was:" >&5
8602
 
sed 's/^/| /' conftest.$ac_ext >&5
8603
 
 
8604
 
        ac_cv_lib_Xrender_XRenderCreatePicture=no
 
7775
  ac_cv_lib_Xrender_XRenderCreatePicture=no
8605
7776
fi
8606
 
 
8607
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608
 
      conftest$ac_exeext conftest.$ac_ext
 
7777
rm -f core conftest.err conftest.$ac_objext \
 
7778
    conftest$ac_exeext conftest.$ac_ext
8609
7779
LIBS=$ac_check_lib_save_LIBS
8610
7780
fi
8611
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5
8612
 
echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; }
8613
 
if test $ac_cv_lib_Xrender_XRenderCreatePicture = yes; then
 
7781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5
 
7782
$as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; }
 
7783
if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then :
8614
7784
 
8615
 
cat >>confdefs.h <<\_ACEOF
8616
 
#define HAVE_XRENDER 1
8617
 
_ACEOF
 
7785
$as_echo "#define HAVE_XRENDER 1" >>confdefs.h
8618
7786
 
8619
7787
        LIBS="$LIBS -lXrender"
8620
7788
fi
8624
7792
 
8625
7793
 
8626
7794
XPM=false
8627
 
{ echo "$as_me:$LINENO: checking whether to have Xpm (pixmap themes) support" >&5
8628
 
echo $ECHO_N "checking whether to have Xpm (pixmap themes) support... $ECHO_C" >&6; }
 
7795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have Xpm (pixmap themes) support" >&5
 
7796
$as_echo_n "checking whether to have Xpm (pixmap themes) support... " >&6; }
8629
7797
# Check whether --enable-xpm was given.
8630
 
if test "${enable_xpm+set}" = set; then
 
7798
if test "${enable_xpm+set}" = set; then :
8631
7799
  enableval=$enable_xpm; if test x$enableval = "xyes"; then
8632
 
        { echo "$as_me:$LINENO: result: yes" >&5
8633
 
echo "${ECHO_T}yes" >&6; }
8634
 
        { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8635
 
echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
8636
 
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8637
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7800
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7801
$as_echo "yes" >&6; }
 
7802
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
 
7803
$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
 
7804
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
 
7805
  $as_echo_n "(cached) " >&6
8638
7806
else
8639
7807
  ac_check_lib_save_LIBS=$LIBS
8640
7808
LIBS="-lXpm  $LIBS"
8641
 
cat >conftest.$ac_ext <<_ACEOF
8642
 
/* confdefs.h.  */
8643
 
_ACEOF
8644
 
cat confdefs.h >>conftest.$ac_ext
8645
 
cat >>conftest.$ac_ext <<_ACEOF
 
7809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646
7810
/* end confdefs.h.  */
8647
7811
 
8648
7812
/* Override any GCC internal prototype to avoid an error.
8660
7824
  return 0;
8661
7825
}
8662
7826
_ACEOF
8663
 
rm -f conftest.$ac_objext conftest$ac_exeext
8664
 
if { (ac_try="$ac_link"
8665
 
case "(($ac_try" in
8666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667
 
  *) ac_try_echo=$ac_try;;
8668
 
esac
8669
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670
 
  (eval "$ac_link") 2>conftest.er1
8671
 
  ac_status=$?
8672
 
  grep -v '^ *+' conftest.er1 >conftest.err
8673
 
  rm -f conftest.er1
8674
 
  cat conftest.err >&5
8675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676
 
  (exit $ac_status); } && {
8677
 
         test -z "$ac_cxx_werror_flag" ||
8678
 
         test ! -s conftest.err
8679
 
       } && test -s conftest$ac_exeext &&
8680
 
       $as_test_x conftest$ac_exeext; then
 
7827
if ac_fn_cxx_try_link "$LINENO"; then :
8681
7828
  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8682
7829
else
8683
 
  echo "$as_me: failed program was:" >&5
8684
 
sed 's/^/| /' conftest.$ac_ext >&5
8685
 
 
8686
 
        ac_cv_lib_Xpm_XpmReadFileToPixmap=no
 
7830
  ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8687
7831
fi
8688
 
 
8689
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690
 
      conftest$ac_exeext conftest.$ac_ext
 
7832
rm -f core conftest.err conftest.$ac_objext \
 
7833
    conftest$ac_exeext conftest.$ac_ext
8691
7834
LIBS=$ac_check_lib_save_LIBS
8692
7835
fi
8693
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8694
 
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
8695
 
if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
 
7836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
 
7837
$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
 
7838
if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
8696
7839
 
8697
 
cat >>confdefs.h <<\_ACEOF
8698
 
#define HAVE_XPM 1
8699
 
_ACEOF
 
7840
$as_echo "#define HAVE_XPM 1" >>confdefs.h
8700
7841
 
8701
7842
                XPM=true
8702
7843
                LIBS="$LIBS -lXpm"
8703
7844
fi
8704
7845
 
8705
7846
  else
8706
 
    { echo "$as_me:$LINENO: result: no" >&5
8707
 
echo "${ECHO_T}no" >&6; }
 
7847
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7848
$as_echo "no" >&6; }
8708
7849
  fi
8709
7850
else
8710
 
  { echo "$as_me:$LINENO: result: yes" >&5
8711
 
echo "${ECHO_T}yes" >&6; }
8712
 
  { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8713
 
echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
8714
 
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8715
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7852
$as_echo "yes" >&6; }
 
7853
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
 
7854
$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
 
7855
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
 
7856
  $as_echo_n "(cached) " >&6
8716
7857
else
8717
7858
  ac_check_lib_save_LIBS=$LIBS
8718
7859
LIBS="-lXpm  $LIBS"
8719
 
cat >conftest.$ac_ext <<_ACEOF
8720
 
/* confdefs.h.  */
8721
 
_ACEOF
8722
 
cat confdefs.h >>conftest.$ac_ext
8723
 
cat >>conftest.$ac_ext <<_ACEOF
 
7860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724
7861
/* end confdefs.h.  */
8725
7862
 
8726
7863
/* Override any GCC internal prototype to avoid an error.
8738
7875
  return 0;
8739
7876
}
8740
7877
_ACEOF
8741
 
rm -f conftest.$ac_objext conftest$ac_exeext
8742
 
if { (ac_try="$ac_link"
8743
 
case "(($ac_try" in
8744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745
 
  *) ac_try_echo=$ac_try;;
8746
 
esac
8747
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748
 
  (eval "$ac_link") 2>conftest.er1
8749
 
  ac_status=$?
8750
 
  grep -v '^ *+' conftest.er1 >conftest.err
8751
 
  rm -f conftest.er1
8752
 
  cat conftest.err >&5
8753
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754
 
  (exit $ac_status); } && {
8755
 
         test -z "$ac_cxx_werror_flag" ||
8756
 
         test ! -s conftest.err
8757
 
       } && test -s conftest$ac_exeext &&
8758
 
       $as_test_x conftest$ac_exeext; then
 
7878
if ac_fn_cxx_try_link "$LINENO"; then :
8759
7879
  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8760
7880
else
8761
 
  echo "$as_me: failed program was:" >&5
8762
 
sed 's/^/| /' conftest.$ac_ext >&5
8763
 
 
8764
 
        ac_cv_lib_Xpm_XpmReadFileToPixmap=no
 
7881
  ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8765
7882
fi
8766
 
 
8767
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8768
 
      conftest$ac_exeext conftest.$ac_ext
 
7883
rm -f core conftest.err conftest.$ac_objext \
 
7884
    conftest$ac_exeext conftest.$ac_ext
8769
7885
LIBS=$ac_check_lib_save_LIBS
8770
7886
fi
8771
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8772
 
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
8773
 
if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
 
7887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
 
7888
$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
 
7889
if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
8774
7890
 
8775
 
cat >>confdefs.h <<\_ACEOF
8776
 
#define HAVE_XPM 1
8777
 
_ACEOF
 
7891
$as_echo "#define HAVE_XPM 1" >>confdefs.h
8778
7892
 
8779
7893
        XPM=true
8780
7894
        LIBS="$LIBS -lXpm"
8794
7908
 
8795
7909
 
8796
7910
IMLIB2=false
8797
 
{ echo "$as_me:$LINENO: checking whether to have Imlib2 (pixmap themes) support" >&5
8798
 
echo $ECHO_N "checking whether to have Imlib2 (pixmap themes) support... $ECHO_C" >&6; }
 
7911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have Imlib2 (pixmap themes) support" >&5
 
7912
$as_echo_n "checking whether to have Imlib2 (pixmap themes) support... " >&6; }
8799
7913
# Check whether --enable-imlib2 was given.
8800
 
if test "${enable_imlib2+set}" = set; then
 
7914
if test "${enable_imlib2+set}" = set; then :
8801
7915
  enableval=$enable_imlib2;
8802
7916
else
8803
7917
  enable_imlib2=yes
8804
7918
fi
8805
7919
 
8806
7920
if test x$enable_imlib2 = "xyes"; then
8807
 
    { echo "$as_me:$LINENO: result: yes" >&5
8808
 
echo "${ECHO_T}yes" >&6; }
 
7921
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7922
$as_echo "yes" >&6; }
8809
7923
 
8810
7924
 
8811
7925
# Check whether --with-imlib2-prefix was given.
8812
 
if test "${with_imlib2_prefix+set}" = set; then
 
7926
if test "${with_imlib2_prefix+set}" = set; then :
8813
7927
  withval=$with_imlib2_prefix; imlib2_config_prefix="$withval"
8814
7928
else
8815
7929
  imlib2_config_prefix=""
8817
7931
 
8818
7932
 
8819
7933
# Check whether --with-imlib2-exec-prefix was given.
8820
 
if test "${with_imlib2_exec_prefix+set}" = set; then
 
7934
if test "${with_imlib2_exec_prefix+set}" = set; then :
8821
7935
  withval=$with_imlib2_exec_prefix; imlib2_config_exec_prefix="$withval"
8822
7936
else
8823
7937
  imlib2_config_exec_prefix=""
8839
7953
 
8840
7954
  # Extract the first word of "imlib2-config", so it can be a program name with args.
8841
7955
set dummy imlib2-config; ac_word=$2
8842
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8843
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8844
 
if test "${ac_cv_path_IMLIB2_CONFIG+set}" = set; then
8845
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7957
$as_echo_n "checking for $ac_word... " >&6; }
 
7958
if test "${ac_cv_path_IMLIB2_CONFIG+set}" = set; then :
 
7959
  $as_echo_n "(cached) " >&6
8846
7960
else
8847
7961
  case $IMLIB2_CONFIG in
8848
7962
  [\\/]* | ?:[\\/]*)
8854
7968
do
8855
7969
  IFS=$as_save_IFS
8856
7970
  test -z "$as_dir" && as_dir=.
8857
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7971
    for ac_exec_ext in '' $ac_executable_extensions; do
8858
7972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859
7973
    ac_cv_path_IMLIB2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8860
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7974
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861
7975
    break 2
8862
7976
  fi
8863
7977
done
8864
 
done
 
7978
  done
8865
7979
IFS=$as_save_IFS
8866
7980
 
8867
7981
  test -z "$ac_cv_path_IMLIB2_CONFIG" && ac_cv_path_IMLIB2_CONFIG="no"
8870
7984
fi
8871
7985
IMLIB2_CONFIG=$ac_cv_path_IMLIB2_CONFIG
8872
7986
if test -n "$IMLIB2_CONFIG"; then
8873
 
  { echo "$as_me:$LINENO: result: $IMLIB2_CONFIG" >&5
8874
 
echo "${ECHO_T}$IMLIB2_CONFIG" >&6; }
 
7987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMLIB2_CONFIG" >&5
 
7988
$as_echo "$IMLIB2_CONFIG" >&6; }
8875
7989
else
8876
 
  { echo "$as_me:$LINENO: result: no" >&5
8877
 
echo "${ECHO_T}no" >&6; }
 
7990
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7991
$as_echo "no" >&6; }
8878
7992
fi
8879
7993
 
8880
7994
 
8881
 
  { echo "$as_me:$LINENO: checking for imlib2 - version >= 1.0.0" >&5
8882
 
echo $ECHO_N "checking for imlib2 - version >= 1.0.0... $ECHO_C" >&6; }
 
7995
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2 - version >= 1.0.0" >&5
 
7996
$as_echo_n "checking for imlib2 - version >= 1.0.0... " >&6; }
8883
7997
 
8884
7998
  no_imlib2=""
8885
7999
  if test "$IMLIB2_CONFIG" = "no" ; then
8936
8050
 
8937
8051
  fi
8938
8052
  if test "x$no_imlib2" = x ; then
8939
 
     { echo "$as_me:$LINENO: result: yes" >&5
8940
 
echo "${ECHO_T}yes" >&6; }
 
8053
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8054
$as_echo "yes" >&6; }
8941
8055
 
8942
8056
         IMLIB2=true
8943
8057
 
8944
 
cat >>confdefs.h <<\_ACEOF
8945
 
#define HAVE_IMLIB2
8946
 
_ACEOF
 
8058
$as_echo "#define HAVE_IMLIB2 /**/" >>confdefs.h
8947
8059
 
8948
8060
         IMLIB2_LIBS=`imlib2-config --libs`
8949
8061
         IMLIB2_CFLAGS=`imlib2-config --cflags`
8951
8063
         CXXFLAGS="$CXXFLAGS $IMLIB2_CFLAGS"
8952
8064
 
8953
8065
  else
8954
 
     { echo "$as_me:$LINENO: result: no" >&5
8955
 
echo "${ECHO_T}no" >&6; }
 
8066
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8067
$as_echo "no" >&6; }
8956
8068
     if test "$IMLIB2_CONFIG" = "no" ; then
8957
8069
       echo "*** The imlib2-config script installed by imlib2 could not be found"
8958
8070
       echo "*** If imlib2 was installed in PREFIX, make sure PREFIX/bin is in"
8961
8073
     fi
8962
8074
     IMLIB2_CFLAGS=""
8963
8075
     IMLIB2_LIBS=""
8964
 
      { echo "$as_me:$LINENO: result: no" >&5
8965
 
echo "${ECHO_T}no" >&6; }
 
8076
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8077
$as_echo "no" >&6; }
8966
8078
 
8967
8079
  fi
8968
8080
 
8972
8084
 
8973
8085
 
8974
8086
else
8975
 
    { echo "$as_me:$LINENO: result: no" >&5
8976
 
echo "${ECHO_T}no" >&6; }
 
8087
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8088
$as_echo "no" >&6; }
8977
8089
fi
8978
8090
 
8979
8091
 if test x$IMLIB2 = xtrue; then
8987
8099
 
8988
8100
 
8989
8101
 
8990
 
{ echo "$as_me:$LINENO: checking whether to have Xmb (multibyte font, utf-8) support" >&5
8991
 
echo $ECHO_N "checking whether to have Xmb (multibyte font, utf-8) support... $ECHO_C" >&6; }
 
8102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have Xmb (multibyte font, utf-8) support" >&5
 
8103
$as_echo_n "checking whether to have Xmb (multibyte font, utf-8) support... " >&6; }
8992
8104
# Check whether --enable-xmb was given.
8993
 
if test "${enable_xmb+set}" = set; then
 
8105
if test "${enable_xmb+set}" = set; then :
8994
8106
  enableval=$enable_xmb; if test x$enableval = "xyes"; then
8995
 
        { echo "$as_me:$LINENO: result: yes" >&5
8996
 
echo "${ECHO_T}yes" >&6; }
 
8107
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8108
$as_echo "yes" >&6; }
8997
8109
 
8998
 
cat >>confdefs.h <<\_ACEOF
8999
 
#define USE_XMB 1
9000
 
_ACEOF
 
8110
$as_echo "#define USE_XMB 1" >>confdefs.h
9001
8111
 
9002
8112
        MULTIBYTE=true
9003
8113
  else
9004
 
    { echo "$as_me:$LINENO: result: no" >&5
9005
 
echo "${ECHO_T}no" >&6; }
 
8114
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8115
$as_echo "no" >&6; }
9006
8116
        MULTIBYTE=false
9007
8117
  fi
9008
8118
else
9009
 
  { echo "$as_me:$LINENO: result: yes" >&5
9010
 
echo "${ECHO_T}yes" >&6; }
 
8119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8120
$as_echo "yes" >&6; }
9011
8121
 
9012
 
cat >>confdefs.h <<\_ACEOF
9013
 
#define USE_XMB 1
9014
 
_ACEOF
 
8122
$as_echo "#define USE_XMB 1" >>confdefs.h
9015
8123
 
9016
8124
  MULTIBYTE=true
9017
8125
 
9026
8134
fi
9027
8135
 
9028
8136
 
9029
 
{ echo "$as_me:$LINENO: checking whether to have RANDR (The X Resize and Rotate Extension) support" >&5
9030
 
echo $ECHO_N "checking whether to have RANDR (The X Resize and Rotate Extension) support... $ECHO_C" >&6; }
 
8137
 
 
8138
enableval="yes"
 
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for the Xinerama extension" >&5
 
8140
$as_echo_n "checking whether to build support for the Xinerama extension... " >&6; }
 
8141
# Check whether --enable-xinerama was given.
 
8142
if test "${enable_xinerama+set}" = set; then :
 
8143
  enableval=$enable_xinerama;
 
8144
else
 
8145
  enableval=yes
 
8146
fi
 
8147
 
 
8148
if test "x$enableval" = "xyes"; then
 
8149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8150
$as_echo "yes" >&6; }
 
8151
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
 
8152
$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
 
8153
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then :
 
8154
  $as_echo_n "(cached) " >&6
 
8155
else
 
8156
  ac_check_lib_save_LIBS=$LIBS
 
8157
LIBS="-lXinerama  $LIBS"
 
8158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8159
/* end confdefs.h.  */
 
8160
 
 
8161
/* Override any GCC internal prototype to avoid an error.
 
8162
   Use char because int might match the return type of a GCC
 
8163
   builtin and then its argument prototype would still apply.  */
 
8164
#ifdef __cplusplus
 
8165
extern "C"
 
8166
#endif
 
8167
char XineramaQueryScreens ();
 
8168
int
 
8169
main ()
 
8170
{
 
8171
return XineramaQueryScreens ();
 
8172
  ;
 
8173
  return 0;
 
8174
}
 
8175
_ACEOF
 
8176
if ac_fn_cxx_try_link "$LINENO"; then :
 
8177
  ac_cv_lib_Xinerama_XineramaQueryScreens=yes
 
8178
else
 
8179
  ac_cv_lib_Xinerama_XineramaQueryScreens=no
 
8180
fi
 
8181
rm -f core conftest.err conftest.$ac_objext \
 
8182
    conftest$ac_exeext conftest.$ac_ext
 
8183
LIBS=$ac_check_lib_save_LIBS
 
8184
fi
 
8185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
 
8186
$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
 
8187
if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then :
 
8188
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xinerama.h" >&5
 
8189
$as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
 
8190
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8191
/* end confdefs.h.  */
 
8192
#include <X11/Xlib.h>
 
8193
#include <X11/Xutil.h>
 
8194
#include <X11/extensions/Xinerama.h>
 
8195
 
 
8196
int
 
8197
main ()
 
8198
{
 
8199
XineramaQueryScreens(0, 0)
 
8200
  ;
 
8201
  return 0;
 
8202
}
 
8203
_ACEOF
 
8204
if ac_fn_cxx_try_compile "$LINENO"; then :
 
8205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8206
$as_echo "yes" >&6; }
 
8207
 
 
8208
$as_echo "#define XINERAMA 1" >>confdefs.h
 
8209
 
 
8210
                        LIBS="$LIBS -lXinerama"
 
8211
else
 
8212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8213
$as_echo "no" >&6; }
 
8214
fi
 
8215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8216
fi
 
8217
 
 
8218
else
 
8219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8220
$as_echo "no" >&6; }
 
8221
  CONFIGOPTS="$CONFIGOPTS --disable-xinerama"
 
8222
fi
 
8223
 
 
8224
enableval="yes"
 
8225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for the XShape extension" >&5
 
8226
$as_echo_n "checking whether to build support for the XShape extension... " >&6; }
 
8227
# Check whether --enable-shape was given.
 
8228
if test "${enable_shape+set}" = set; then :
 
8229
  enableval=$enable_shape;
 
8230
else
 
8231
  enableval=yes
 
8232
fi
 
8233
 
 
8234
if test "x$enableval" = "xyes"; then
 
8235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8236
$as_echo "yes" >&6; }
 
8237
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineShape in -lXext" >&5
 
8238
$as_echo_n "checking for XShapeCombineShape in -lXext... " >&6; }
 
8239
if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then :
 
8240
  $as_echo_n "(cached) " >&6
 
8241
else
 
8242
  ac_check_lib_save_LIBS=$LIBS
 
8243
LIBS="-lXext  $LIBS"
 
8244
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8245
/* end confdefs.h.  */
 
8246
 
 
8247
/* Override any GCC internal prototype to avoid an error.
 
8248
   Use char because int might match the return type of a GCC
 
8249
   builtin and then its argument prototype would still apply.  */
 
8250
#ifdef __cplusplus
 
8251
extern "C"
 
8252
#endif
 
8253
char XShapeCombineShape ();
 
8254
int
 
8255
main ()
 
8256
{
 
8257
return XShapeCombineShape ();
 
8258
  ;
 
8259
  return 0;
 
8260
}
 
8261
_ACEOF
 
8262
if ac_fn_cxx_try_link "$LINENO"; then :
 
8263
  ac_cv_lib_Xext_XShapeCombineShape=yes
 
8264
else
 
8265
  ac_cv_lib_Xext_XShapeCombineShape=no
 
8266
fi
 
8267
rm -f core conftest.err conftest.$ac_objext \
 
8268
    conftest$ac_exeext conftest.$ac_ext
 
8269
LIBS=$ac_check_lib_save_LIBS
 
8270
fi
 
8271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
 
8272
$as_echo "$ac_cv_lib_Xext_XShapeCombineShape" >&6; }
 
8273
if test "x$ac_cv_lib_Xext_XShapeCombineShape" = x""yes; then :
 
8274
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/shape.h" >&5
 
8275
$as_echo_n "checking for X11/extensions/shape.h... " >&6; }
 
8276
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8277
/* end confdefs.h.  */
 
8278
#include <X11/Xlib.h>
 
8279
#include <X11/Xutil.h>
 
8280
#include <X11/extensions/shape.h>
 
8281
 
 
8282
int
 
8283
main ()
 
8284
{
 
8285
long foo = ShapeSet
 
8286
  ;
 
8287
  return 0;
 
8288
}
 
8289
_ACEOF
 
8290
if ac_fn_cxx_try_compile "$LINENO"; then :
 
8291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8292
$as_echo "yes" >&6; }
 
8293
 
 
8294
$as_echo "#define SHAPE 1" >>confdefs.h
 
8295
 
 
8296
                        LIBS="$LIBS -lXext"
 
8297
                        FEATURES="$FEATURES XShape"
 
8298
else
 
8299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8300
$as_echo "no" >&6; }
 
8301
fi
 
8302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8303
fi
 
8304
 
 
8305
else
 
8306
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8307
$as_echo "no" >&6; }
 
8308
  CONFIGOPTS="$CONFIGOPTS --disable-shape"
 
8309
fi
 
8310
 
 
8311
 
 
8312
 
 
8313
enableval="yes"
 
8314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for the Xrandr (X resize and rotate) extension" >&5
 
8315
$as_echo_n "checking whether to build support for the Xrandr (X resize and rotate) extension... " >&6; }
9031
8316
# Check whether --enable-randr was given.
9032
 
if test "${enable_randr+set}" = set; then
9033
 
  enableval=$enable_randr; if test x$enableval = "xyes"; then
9034
 
        { echo "$as_me:$LINENO: result: yes" >&5
9035
 
echo "${ECHO_T}yes" >&6; }
9036
 
        { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
9037
 
echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
9038
 
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
9039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9040
 
else
9041
 
  ac_check_lib_save_LIBS=$LIBS
9042
 
LIBS="-lXrandr  $LIBS"
9043
 
cat >conftest.$ac_ext <<_ACEOF
9044
 
/* confdefs.h.  */
9045
 
_ACEOF
9046
 
cat confdefs.h >>conftest.$ac_ext
9047
 
cat >>conftest.$ac_ext <<_ACEOF
9048
 
/* end confdefs.h.  */
9049
 
 
9050
 
/* Override any GCC internal prototype to avoid an error.
9051
 
   Use char because int might match the return type of a GCC
9052
 
   builtin and then its argument prototype would still apply.  */
9053
 
#ifdef __cplusplus
9054
 
extern "C"
9055
 
#endif
9056
 
char XRRQueryExtension ();
9057
 
int
9058
 
main ()
9059
 
{
9060
 
return XRRQueryExtension ();
9061
 
  ;
9062
 
  return 0;
9063
 
}
9064
 
_ACEOF
9065
 
rm -f conftest.$ac_objext conftest$ac_exeext
9066
 
if { (ac_try="$ac_link"
9067
 
case "(($ac_try" in
9068
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069
 
  *) ac_try_echo=$ac_try;;
9070
 
esac
9071
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072
 
  (eval "$ac_link") 2>conftest.er1
9073
 
  ac_status=$?
9074
 
  grep -v '^ *+' conftest.er1 >conftest.err
9075
 
  rm -f conftest.er1
9076
 
  cat conftest.err >&5
9077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078
 
  (exit $ac_status); } && {
9079
 
         test -z "$ac_cxx_werror_flag" ||
9080
 
         test ! -s conftest.err
9081
 
       } && test -s conftest$ac_exeext &&
9082
 
       $as_test_x conftest$ac_exeext; then
9083
 
  ac_cv_lib_Xrandr_XRRQueryExtension=yes
9084
 
else
9085
 
  echo "$as_me: failed program was:" >&5
9086
 
sed 's/^/| /' conftest.$ac_ext >&5
9087
 
 
9088
 
        ac_cv_lib_Xrandr_XRRQueryExtension=no
9089
 
fi
9090
 
 
9091
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9092
 
      conftest$ac_exeext conftest.$ac_ext
9093
 
LIBS=$ac_check_lib_save_LIBS
9094
 
fi
9095
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
9096
 
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
9097
 
if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
9098
 
 
9099
 
cat >>confdefs.h <<\_ACEOF
9100
 
#define HAVE_RANDR 1
9101
 
_ACEOF
9102
 
 
9103
 
                LIBS="$LIBS -lXrandr"
9104
 
fi
9105
 
 
9106
 
  else
9107
 
    { echo "$as_me:$LINENO: result: no" >&5
9108
 
echo "${ECHO_T}no" >&6; }
9109
 
  fi
9110
 
else
9111
 
  { echo "$as_me:$LINENO: result: yes" >&5
9112
 
echo "${ECHO_T}yes" >&6; }
9113
 
  { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
9114
 
echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
9115
 
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
9116
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9117
 
else
9118
 
  ac_check_lib_save_LIBS=$LIBS
9119
 
LIBS="-lXrandr  $LIBS"
9120
 
cat >conftest.$ac_ext <<_ACEOF
9121
 
/* confdefs.h.  */
9122
 
_ACEOF
9123
 
cat confdefs.h >>conftest.$ac_ext
9124
 
cat >>conftest.$ac_ext <<_ACEOF
9125
 
/* end confdefs.h.  */
9126
 
 
9127
 
/* Override any GCC internal prototype to avoid an error.
9128
 
   Use char because int might match the return type of a GCC
9129
 
   builtin and then its argument prototype would still apply.  */
9130
 
#ifdef __cplusplus
9131
 
extern "C"
9132
 
#endif
9133
 
char XRRQueryExtension ();
9134
 
int
9135
 
main ()
9136
 
{
9137
 
return XRRQueryExtension ();
9138
 
  ;
9139
 
  return 0;
9140
 
}
9141
 
_ACEOF
9142
 
rm -f conftest.$ac_objext conftest$ac_exeext
9143
 
if { (ac_try="$ac_link"
9144
 
case "(($ac_try" in
9145
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146
 
  *) ac_try_echo=$ac_try;;
9147
 
esac
9148
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149
 
  (eval "$ac_link") 2>conftest.er1
9150
 
  ac_status=$?
9151
 
  grep -v '^ *+' conftest.er1 >conftest.err
9152
 
  rm -f conftest.er1
9153
 
  cat conftest.err >&5
9154
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155
 
  (exit $ac_status); } && {
9156
 
         test -z "$ac_cxx_werror_flag" ||
9157
 
         test ! -s conftest.err
9158
 
       } && test -s conftest$ac_exeext &&
9159
 
       $as_test_x conftest$ac_exeext; then
9160
 
  ac_cv_lib_Xrandr_XRRQueryExtension=yes
9161
 
else
9162
 
  echo "$as_me: failed program was:" >&5
9163
 
sed 's/^/| /' conftest.$ac_ext >&5
9164
 
 
9165
 
        ac_cv_lib_Xrandr_XRRQueryExtension=no
9166
 
fi
9167
 
 
9168
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9169
 
      conftest$ac_exeext conftest.$ac_ext
9170
 
LIBS=$ac_check_lib_save_LIBS
9171
 
fi
9172
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
9173
 
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
9174
 
if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
9175
 
 
9176
 
cat >>confdefs.h <<\_ACEOF
9177
 
#define HAVE_RANDR 1
9178
 
_ACEOF
9179
 
 
9180
 
                LIBS="$LIBS -lXrandr"
9181
 
fi
9182
 
 
9183
 
 
9184
 
fi
9185
 
 
9186
 
 
9187
 
{ echo "$as_me:$LINENO: checking whether to have RANDR 1.2 support" >&5
9188
 
echo $ECHO_N "checking whether to have RANDR 1.2 support... $ECHO_C" >&6; }
 
8317
if test "${enable_randr+set}" = set; then :
 
8318
  enableval=$enable_randr;
 
8319
else
 
8320
  enableval=yes
 
8321
fi
 
8322
 
 
8323
if test "x$enableval" = "xyes"; then
 
8324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8325
$as_echo "yes" >&6; }
 
8326
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
 
8327
$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
 
8328
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
 
8329
  $as_echo_n "(cached) " >&6
 
8330
else
 
8331
  ac_check_lib_save_LIBS=$LIBS
 
8332
LIBS="-lXrandr  $LIBS"
 
8333
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8334
/* end confdefs.h.  */
 
8335
 
 
8336
/* Override any GCC internal prototype to avoid an error.
 
8337
   Use char because int might match the return type of a GCC
 
8338
   builtin and then its argument prototype would still apply.  */
 
8339
#ifdef __cplusplus
 
8340
extern "C"
 
8341
#endif
 
8342
char XRRQueryExtension ();
 
8343
int
 
8344
main ()
 
8345
{
 
8346
return XRRQueryExtension ();
 
8347
  ;
 
8348
  return 0;
 
8349
}
 
8350
_ACEOF
 
8351
if ac_fn_cxx_try_link "$LINENO"; then :
 
8352
  ac_cv_lib_Xrandr_XRRQueryExtension=yes
 
8353
else
 
8354
  ac_cv_lib_Xrandr_XRRQueryExtension=no
 
8355
fi
 
8356
rm -f core conftest.err conftest.$ac_objext \
 
8357
    conftest$ac_exeext conftest.$ac_ext
 
8358
LIBS=$ac_check_lib_save_LIBS
 
8359
fi
 
8360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
 
8361
$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
 
8362
if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
 
8363
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xrandr.h" >&5
 
8364
$as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
 
8365
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8366
/* end confdefs.h.  */
 
8367
#include <X11/Xlib.h>
 
8368
#include <X11/Xutil.h>
 
8369
#include <X11/extensions/Xrandr.h>
 
8370
 
 
8371
int
 
8372
main ()
 
8373
{
 
8374
XRRQueryExtension(0, 0, 0)
 
8375
  ;
 
8376
  return 0;
 
8377
}
 
8378
_ACEOF
 
8379
if ac_fn_cxx_try_compile "$LINENO"; then :
 
8380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8381
$as_echo "yes" >&6; }
 
8382
 
 
8383
$as_echo "#define HAVE_RANDR 1" >>confdefs.h
 
8384
 
 
8385
                        LIBS="$LIBS -lXrandr"
 
8386
else
 
8387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8388
$as_echo "no" >&6; }
 
8389
fi
 
8390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8391
fi
 
8392
 
 
8393
else
 
8394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8395
$as_echo "no" >&6; }
 
8396
  CONFIGOPTS="$CONFIGOPTS --disable-randr"
 
8397
fi
 
8398
 
 
8399
enableval="yes"
 
8400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have RANDR 1.2 support" >&5
 
8401
$as_echo_n "checking whether to have RANDR 1.2 support... " >&6; }
9189
8402
# Check whether --enable-randr1.2 was given.
9190
 
if test "${enable_randr1_2+set}" = set; then
9191
 
  enableval=$enable_randr1_2; if test x$enableval = "xyes"; then
9192
 
        { echo "$as_me:$LINENO: result: yes" >&5
9193
 
echo "${ECHO_T}yes" >&6; }
9194
 
        { echo "$as_me:$LINENO: checking for XRRUpdateConfiguration in -lXrandr" >&5
9195
 
echo $ECHO_N "checking for XRRUpdateConfiguration in -lXrandr... $ECHO_C" >&6; }
9196
 
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then
9197
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9198
 
else
9199
 
  ac_check_lib_save_LIBS=$LIBS
9200
 
LIBS="-lXrandr  $LIBS"
9201
 
cat >conftest.$ac_ext <<_ACEOF
9202
 
/* confdefs.h.  */
9203
 
_ACEOF
9204
 
cat confdefs.h >>conftest.$ac_ext
9205
 
cat >>conftest.$ac_ext <<_ACEOF
9206
 
/* end confdefs.h.  */
9207
 
 
9208
 
/* Override any GCC internal prototype to avoid an error.
9209
 
   Use char because int might match the return type of a GCC
9210
 
   builtin and then its argument prototype would still apply.  */
9211
 
#ifdef __cplusplus
9212
 
extern "C"
9213
 
#endif
9214
 
char XRRUpdateConfiguration ();
9215
 
int
9216
 
main ()
9217
 
{
9218
 
return XRRUpdateConfiguration ();
9219
 
  ;
9220
 
  return 0;
9221
 
}
9222
 
_ACEOF
9223
 
rm -f conftest.$ac_objext conftest$ac_exeext
9224
 
if { (ac_try="$ac_link"
9225
 
case "(($ac_try" in
9226
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227
 
  *) ac_try_echo=$ac_try;;
9228
 
esac
9229
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230
 
  (eval "$ac_link") 2>conftest.er1
9231
 
  ac_status=$?
9232
 
  grep -v '^ *+' conftest.er1 >conftest.err
9233
 
  rm -f conftest.er1
9234
 
  cat conftest.err >&5
9235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236
 
  (exit $ac_status); } && {
9237
 
         test -z "$ac_cxx_werror_flag" ||
9238
 
         test ! -s conftest.err
9239
 
       } && test -s conftest$ac_exeext &&
9240
 
       $as_test_x conftest$ac_exeext; then
9241
 
  ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
9242
 
else
9243
 
  echo "$as_me: failed program was:" >&5
9244
 
sed 's/^/| /' conftest.$ac_ext >&5
9245
 
 
9246
 
        ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
9247
 
fi
9248
 
 
9249
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9250
 
      conftest$ac_exeext conftest.$ac_ext
9251
 
LIBS=$ac_check_lib_save_LIBS
9252
 
fi
9253
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
9254
 
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
9255
 
if test $ac_cv_lib_Xrandr_XRRUpdateConfiguration = yes; then
9256
 
 
9257
 
cat >>confdefs.h <<\_ACEOF
9258
 
#define HAVE_RANDR1_2 1
9259
 
_ACEOF
9260
 
 
9261
 
fi
9262
 
 
9263
 
  else
9264
 
    { echo "$as_me:$LINENO: result: no" >&5
9265
 
echo "${ECHO_T}no" >&6; }
9266
 
  fi
9267
 
else
9268
 
  { echo "$as_me:$LINENO: result: yes" >&5
9269
 
echo "${ECHO_T}yes" >&6; }
9270
 
  { echo "$as_me:$LINENO: checking for XRRUpdateConfiguration in -lXrandr" >&5
9271
 
echo $ECHO_N "checking for XRRUpdateConfiguration in -lXrandr... $ECHO_C" >&6; }
9272
 
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then
9273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9274
 
else
9275
 
  ac_check_lib_save_LIBS=$LIBS
9276
 
LIBS="-lXrandr  $LIBS"
9277
 
cat >conftest.$ac_ext <<_ACEOF
9278
 
/* confdefs.h.  */
9279
 
_ACEOF
9280
 
cat confdefs.h >>conftest.$ac_ext
9281
 
cat >>conftest.$ac_ext <<_ACEOF
9282
 
/* end confdefs.h.  */
9283
 
 
9284
 
/* Override any GCC internal prototype to avoid an error.
9285
 
   Use char because int might match the return type of a GCC
9286
 
   builtin and then its argument prototype would still apply.  */
9287
 
#ifdef __cplusplus
9288
 
extern "C"
9289
 
#endif
9290
 
char XRRUpdateConfiguration ();
9291
 
int
9292
 
main ()
9293
 
{
9294
 
return XRRUpdateConfiguration ();
9295
 
  ;
9296
 
  return 0;
9297
 
}
9298
 
_ACEOF
9299
 
rm -f conftest.$ac_objext conftest$ac_exeext
9300
 
if { (ac_try="$ac_link"
9301
 
case "(($ac_try" in
9302
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303
 
  *) ac_try_echo=$ac_try;;
9304
 
esac
9305
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306
 
  (eval "$ac_link") 2>conftest.er1
9307
 
  ac_status=$?
9308
 
  grep -v '^ *+' conftest.er1 >conftest.err
9309
 
  rm -f conftest.er1
9310
 
  cat conftest.err >&5
9311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312
 
  (exit $ac_status); } && {
9313
 
         test -z "$ac_cxx_werror_flag" ||
9314
 
         test ! -s conftest.err
9315
 
       } && test -s conftest$ac_exeext &&
9316
 
       $as_test_x conftest$ac_exeext; then
9317
 
  ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
9318
 
else
9319
 
  echo "$as_me: failed program was:" >&5
9320
 
sed 's/^/| /' conftest.$ac_ext >&5
9321
 
 
9322
 
        ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
9323
 
fi
9324
 
 
9325
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9326
 
      conftest$ac_exeext conftest.$ac_ext
9327
 
LIBS=$ac_check_lib_save_LIBS
9328
 
fi
9329
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
9330
 
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
9331
 
if test $ac_cv_lib_Xrandr_XRRUpdateConfiguration = yes; then
9332
 
 
9333
 
cat >>confdefs.h <<\_ACEOF
9334
 
#define HAVE_RANDR1_2 1
9335
 
_ACEOF
9336
 
 
9337
 
fi
9338
 
 
9339
 
 
9340
 
fi
9341
 
 
9342
 
 
9343
 
 
9344
 
{ echo "$as_me:$LINENO: checking whether to build support for the Xinerama extension" >&5
9345
 
echo $ECHO_N "checking whether to build support for the Xinerama extension... $ECHO_C" >&6; }
9346
 
# Check whether --enable-xinerama was given.
9347
 
if test "${enable_xinerama+set}" = set; then
9348
 
  enableval=$enable_xinerama; if test x$enableval = "xyes"; then
9349
 
        { echo "$as_me:$LINENO: result: yes" >&5
9350
 
echo "${ECHO_T}yes" >&6; }
9351
 
        { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
9352
 
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
9353
 
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
9354
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9355
 
else
9356
 
  ac_check_lib_save_LIBS=$LIBS
9357
 
LIBS="-lXinerama  $LIBS"
9358
 
cat >conftest.$ac_ext <<_ACEOF
9359
 
/* confdefs.h.  */
9360
 
_ACEOF
9361
 
cat confdefs.h >>conftest.$ac_ext
9362
 
cat >>conftest.$ac_ext <<_ACEOF
9363
 
/* end confdefs.h.  */
9364
 
 
9365
 
/* Override any GCC internal prototype to avoid an error.
9366
 
   Use char because int might match the return type of a GCC
9367
 
   builtin and then its argument prototype would still apply.  */
9368
 
#ifdef __cplusplus
9369
 
extern "C"
9370
 
#endif
9371
 
char XineramaQueryScreens ();
9372
 
int
9373
 
main ()
9374
 
{
9375
 
return XineramaQueryScreens ();
9376
 
  ;
9377
 
  return 0;
9378
 
}
9379
 
_ACEOF
9380
 
rm -f conftest.$ac_objext conftest$ac_exeext
9381
 
if { (ac_try="$ac_link"
9382
 
case "(($ac_try" in
9383
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384
 
  *) ac_try_echo=$ac_try;;
9385
 
esac
9386
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387
 
  (eval "$ac_link") 2>conftest.er1
9388
 
  ac_status=$?
9389
 
  grep -v '^ *+' conftest.er1 >conftest.err
9390
 
  rm -f conftest.er1
9391
 
  cat conftest.err >&5
9392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393
 
  (exit $ac_status); } && {
9394
 
         test -z "$ac_cxx_werror_flag" ||
9395
 
         test ! -s conftest.err
9396
 
       } && test -s conftest$ac_exeext &&
9397
 
       $as_test_x conftest$ac_exeext; then
9398
 
  ac_cv_lib_Xinerama_XineramaQueryScreens=yes
9399
 
else
9400
 
  echo "$as_me: failed program was:" >&5
9401
 
sed 's/^/| /' conftest.$ac_ext >&5
9402
 
 
9403
 
        ac_cv_lib_Xinerama_XineramaQueryScreens=no
9404
 
fi
9405
 
 
9406
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407
 
      conftest$ac_exeext conftest.$ac_ext
9408
 
LIBS=$ac_check_lib_save_LIBS
9409
 
fi
9410
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
9411
 
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
9412
 
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
9413
 
 
9414
 
cat >>confdefs.h <<\_ACEOF
9415
 
#define XINERAMA 1
9416
 
_ACEOF
9417
 
 
9418
 
                LIBS="$LIBS -lXinerama"
9419
 
fi
9420
 
 
9421
 
   else
9422
 
        { echo "$as_me:$LINENO: result: no" >&5
9423
 
echo "${ECHO_T}no" >&6; }
9424
 
   fi
9425
 
else
9426
 
  { echo "$as_me:$LINENO: result: yes" >&5
9427
 
echo "${ECHO_T}yes" >&6; }
9428
 
   { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
9429
 
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
9430
 
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
9431
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9432
 
else
9433
 
  ac_check_lib_save_LIBS=$LIBS
9434
 
LIBS="-lXinerama  $LIBS"
9435
 
cat >conftest.$ac_ext <<_ACEOF
9436
 
/* confdefs.h.  */
9437
 
_ACEOF
9438
 
cat confdefs.h >>conftest.$ac_ext
9439
 
cat >>conftest.$ac_ext <<_ACEOF
9440
 
/* end confdefs.h.  */
9441
 
 
9442
 
/* Override any GCC internal prototype to avoid an error.
9443
 
   Use char because int might match the return type of a GCC
9444
 
   builtin and then its argument prototype would still apply.  */
9445
 
#ifdef __cplusplus
9446
 
extern "C"
9447
 
#endif
9448
 
char XineramaQueryScreens ();
9449
 
int
9450
 
main ()
9451
 
{
9452
 
return XineramaQueryScreens ();
9453
 
  ;
9454
 
  return 0;
9455
 
}
9456
 
_ACEOF
9457
 
rm -f conftest.$ac_objext conftest$ac_exeext
9458
 
if { (ac_try="$ac_link"
9459
 
case "(($ac_try" in
9460
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461
 
  *) ac_try_echo=$ac_try;;
9462
 
esac
9463
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464
 
  (eval "$ac_link") 2>conftest.er1
9465
 
  ac_status=$?
9466
 
  grep -v '^ *+' conftest.er1 >conftest.err
9467
 
  rm -f conftest.er1
9468
 
  cat conftest.err >&5
9469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470
 
  (exit $ac_status); } && {
9471
 
         test -z "$ac_cxx_werror_flag" ||
9472
 
         test ! -s conftest.err
9473
 
       } && test -s conftest$ac_exeext &&
9474
 
       $as_test_x conftest$ac_exeext; then
9475
 
  ac_cv_lib_Xinerama_XineramaQueryScreens=yes
9476
 
else
9477
 
  echo "$as_me: failed program was:" >&5
9478
 
sed 's/^/| /' conftest.$ac_ext >&5
9479
 
 
9480
 
        ac_cv_lib_Xinerama_XineramaQueryScreens=no
9481
 
fi
9482
 
 
9483
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484
 
      conftest$ac_exeext conftest.$ac_ext
9485
 
LIBS=$ac_check_lib_save_LIBS
9486
 
fi
9487
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
9488
 
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
9489
 
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
9490
 
 
9491
 
cat >>confdefs.h <<\_ACEOF
9492
 
#define XINERAMA 1
9493
 
_ACEOF
9494
 
 
9495
 
                LIBS="$LIBS -lXinerama"
9496
 
fi
9497
 
 
9498
 
 
9499
 
fi
 
8403
if test "${enable_randr1_2+set}" = set; then :
 
8404
  enableval=$enable_randr1_2;
 
8405
else
 
8406
  enableval=yes
 
8407
fi
 
8408
 
 
8409
if test "x$enableval" = "xyes"; then
 
8410
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8411
$as_echo "yes" >&6; }
 
8412
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
 
8413
$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
 
8414
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
 
8415
  $as_echo_n "(cached) " >&6
 
8416
else
 
8417
  ac_check_lib_save_LIBS=$LIBS
 
8418
LIBS="-lXrandr  $LIBS"
 
8419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8420
/* end confdefs.h.  */
 
8421
 
 
8422
/* Override any GCC internal prototype to avoid an error.
 
8423
   Use char because int might match the return type of a GCC
 
8424
   builtin and then its argument prototype would still apply.  */
 
8425
#ifdef __cplusplus
 
8426
extern "C"
 
8427
#endif
 
8428
char XRRQueryExtension ();
 
8429
int
 
8430
main ()
 
8431
{
 
8432
return XRRQueryExtension ();
 
8433
  ;
 
8434
  return 0;
 
8435
}
 
8436
_ACEOF
 
8437
if ac_fn_cxx_try_link "$LINENO"; then :
 
8438
  ac_cv_lib_Xrandr_XRRQueryExtension=yes
 
8439
else
 
8440
  ac_cv_lib_Xrandr_XRRQueryExtension=no
 
8441
fi
 
8442
rm -f core conftest.err conftest.$ac_objext \
 
8443
    conftest$ac_exeext conftest.$ac_ext
 
8444
LIBS=$ac_check_lib_save_LIBS
 
8445
fi
 
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
 
8447
$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
 
8448
if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
 
8449
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xrandr.h" >&5
 
8450
$as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
 
8451
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8452
/* end confdefs.h.  */
 
8453
#include <X11/Xlib.h>
 
8454
#include <X11/Xutil.h>
 
8455
#include <X11/extensions/Xrandr.h>
 
8456
 
 
8457
int
 
8458
main ()
 
8459
{
 
8460
XRRUpdateConfiguration(0)
 
8461
  ;
 
8462
  return 0;
 
8463
}
 
8464
_ACEOF
 
8465
if ac_fn_cxx_try_compile "$LINENO"; then :
 
8466
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
8467
$as_echo "yes" >&6; }
 
8468
 
 
8469
$as_echo "#define HAVE_RANDR1_2 1" >>confdefs.h
 
8470
 
 
8471
                        LIBS="$LIBS -lXrandr"
 
8472
else
 
8473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8474
$as_echo "no" >&6; }
 
8475
fi
 
8476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8477
fi
 
8478
 
 
8479
else
 
8480
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8481
$as_echo "no" >&6; }
 
8482
  CONFIGOPTS="$CONFIGOPTS --disable-randr1.2"
 
8483
fi
 
8484
 
 
8485
 
 
8486
 
 
8487
# #
 
8488
# AC_MSG_CHECKING([whether to have RANDR 1.2 support])
 
8489
# AC_ARG_ENABLE(
 
8490
#   randr1.2,
 
8491
# [  --enable-randr1.2       RANDR 1.2 support ([default=yes])],
 
8492
#   if test x$enableval = "xyes"; then
 
8493
#       AC_MSG_RESULT([yes])
 
8494
#       AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
 
8495
#               AC_DEFINE(HAVE_RANDR1_2, 1, "randr 1.2 support"))
 
8496
#   else
 
8497
#     AC_MSG_RESULT([no])
 
8498
#   fi,
 
8499
#   AC_MSG_RESULT([yes])
 
8500
#   AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
 
8501
#               AC_DEFINE(HAVE_RANDR1_2, 1, "randr 1.2 support"))
 
8502
# )
 
8503
 
9500
8504
 
9501
8505
 
9502
8506
 
9503
8507
# Check whether --with-menu was given.
9504
 
if test "${with_menu+set}" = set; then
 
8508
if test "${with_menu+set}" = set; then :
9505
8509
  withval=$with_menu; DEFAULT_MENU=$with_menu
9506
8510
else
9507
8511
  DEFAULT_MENU=\$\(prefix\)/share/fluxbox/menu
9512
8516
 
9513
8517
 
9514
8518
# Check whether --with-windowmenu was given.
9515
 
if test "${with_windowmenu+set}" = set; then
 
8519
if test "${with_windowmenu+set}" = set; then :
9516
8520
  withval=$with_windowmenu; DEFAULT_WINDOWMENU=$with_windowmenu
9517
8521
else
9518
8522
  DEFAULT_WINDOWMENU=\$\(prefix\)/share/fluxbox/windowmenu
9523
8527
 
9524
8528
 
9525
8529
# Check whether --with-style was given.
9526
 
if test "${with_style+set}" = set; then
 
8530
if test "${with_style+set}" = set; then :
9527
8531
  withval=$with_style; DEFAULT_STYLE=$with_style
9528
8532
else
9529
8533
  DEFAULT_STYLE=\$\(prefix\)/share/fluxbox/styles/bloe
9534
8538
 
9535
8539
 
9536
8540
# Check whether --with-keys was given.
9537
 
if test "${with_keys+set}" = set; then
 
8541
if test "${with_keys+set}" = set; then :
9538
8542
  withval=$with_keys; DEFAULT_KEYS=$with_keys
9539
8543
else
9540
8544
  DEFAULT_KEYS=\$\(prefix\)/share/fluxbox/keys
9545
8549
 
9546
8550
 
9547
8551
# Check whether --with-apps was given.
9548
 
if test "${with_apps+set}" = set; then
 
8552
if test "${with_apps+set}" = set; then :
9549
8553
  withval=$with_apps; DEFAULT_APPS=$with_apps
9550
8554
else
9551
8555
  DEFAULT_APPS=\$\(prefix\)/share/fluxbox/apps
9556
8560
 
9557
8561
 
9558
8562
# Check whether --with-overlay was given.
9559
 
if test "${with_overlay+set}" = set; then
 
8563
if test "${with_overlay+set}" = set; then :
9560
8564
  withval=$with_overlay; DEFAULT_OVERLAY=$with_overlay
9561
8565
else
9562
8566
  DEFAULT_OVERLAY=\$\(prefix\)/share/fluxbox/overlay
9567
8571
 
9568
8572
 
9569
8573
# Check whether --with-init was given.
9570
 
if test "${with_init+set}" = set; then
 
8574
if test "${with_init+set}" = set; then :
9571
8575
  withval=$with_init; DEFAULT_INIT=$with_init
9572
8576
else
9573
8577
  DEFAULT_INIT=\$\(prefix\)/share/fluxbox/init
9579
8583
# we have to expand locale_path in the config.h file, but NOT in the makefiles!
9580
8584
 
9581
8585
# Check whether --with-locale was given.
9582
 
if test "${with_locale+set}" = set; then
 
8586
if test "${with_locale+set}" = set; then :
9583
8587
  withval=$with_locale; LOCALE_PATH=$with_locale
9584
8588
 
9585
8589
cat >>confdefs.h <<_ACEOF
9602
8606
 
9603
8607
 
9604
8608
 
9605
 
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9606
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9607
 
if test "${ac_cv_type_signal+set}" = set; then
9608
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
8610
$as_echo_n "checking return type of signal handlers... " >&6; }
 
8611
if test "${ac_cv_type_signal+set}" = set; then :
 
8612
  $as_echo_n "(cached) " >&6
9609
8613
else
9610
 
  cat >conftest.$ac_ext <<_ACEOF
9611
 
/* confdefs.h.  */
9612
 
_ACEOF
9613
 
cat confdefs.h >>conftest.$ac_ext
9614
 
cat >>conftest.$ac_ext <<_ACEOF
 
8614
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615
8615
/* end confdefs.h.  */
9616
8616
#include <sys/types.h>
9617
8617
#include <signal.h>
9624
8624
  return 0;
9625
8625
}
9626
8626
_ACEOF
9627
 
rm -f conftest.$ac_objext
9628
 
if { (ac_try="$ac_compile"
9629
 
case "(($ac_try" in
9630
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631
 
  *) ac_try_echo=$ac_try;;
9632
 
esac
9633
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634
 
  (eval "$ac_compile") 2>conftest.er1
9635
 
  ac_status=$?
9636
 
  grep -v '^ *+' conftest.er1 >conftest.err
9637
 
  rm -f conftest.er1
9638
 
  cat conftest.err >&5
9639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
 
  (exit $ac_status); } && {
9641
 
         test -z "$ac_cxx_werror_flag" ||
9642
 
         test ! -s conftest.err
9643
 
       } && test -s conftest.$ac_objext; then
 
8627
if ac_fn_cxx_try_compile "$LINENO"; then :
9644
8628
  ac_cv_type_signal=int
9645
8629
else
9646
 
  echo "$as_me: failed program was:" >&5
9647
 
sed 's/^/| /' conftest.$ac_ext >&5
9648
 
 
9649
 
        ac_cv_type_signal=void
 
8630
  ac_cv_type_signal=void
9650
8631
fi
9651
 
 
9652
8632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9653
8633
fi
9654
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9655
 
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
8634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
8635
$as_echo "$ac_cv_type_signal" >&6; }
9656
8636
 
9657
8637
cat >>confdefs.h <<_ACEOF
9658
8638
#define RETSIGTYPE $ac_cv_type_signal
9661
8641
 
9662
8642
 
9663
8643
 
9664
 
{ echo "$as_me:$LINENO: result: " >&5
9665
 
echo "${ECHO_T}" >&6; }
9666
 
{ echo "$as_me:$LINENO: result:         $PACKAGE version $VERSION configured successfully." >&5
9667
 
echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6; }
9668
 
{ echo "$as_me:$LINENO: result: " >&5
9669
 
echo "${ECHO_T}" >&6; }
9670
 
{ echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
9671
 
echo "${ECHO_T}Using '$prefix' for installation." >&6; }
9672
 
{ echo "$as_me:$LINENO: result: Using '$DEFAULT_MENU' for location menu file." >&5
9673
 
echo "${ECHO_T}Using '$DEFAULT_MENU' for location menu file." >&6; }
9674
 
{ echo "$as_me:$LINENO: result: Using '$DEFAULT_STYLE' by default style." >&5
9675
 
echo "${ECHO_T}Using '$DEFAULT_STYLE' by default style." >&6; }
9676
 
{ echo "$as_me:$LINENO: result: Using '$DEFAULT_KEYS' for location keys file." >&5
9677
 
echo "${ECHO_T}Using '$DEFAULT_KEYS' for location keys file." >&6; }
9678
 
{ echo "$as_me:$LINENO: result: Using '$DEFAULT_INIT' for location init file." >&5
9679
 
echo "${ECHO_T}Using '$DEFAULT_INIT' for location init file." >&6; }
9680
 
{ echo "$as_me:$LINENO: result: Using '$LOCALE_PATH' for nls files." >&5
9681
 
echo "${ECHO_T}Using '$LOCALE_PATH' for nls files." >&6; }
9682
 
{ echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
9683
 
echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6; }
9684
 
{ echo "$as_me:$LINENO: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
9685
 
echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6; }
9686
 
{ echo "$as_me:$LINENO: result: Building with '$LIBS' for linker flags." >&5
9687
 
echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6; }
9688
 
{ echo "$as_me:$LINENO: result: " >&5
9689
 
echo "${ECHO_T}" >&6; }
9690
 
 
9691
8644
ac_config_headers="$ac_config_headers config.h"
9692
8645
 
9693
8646
 
9694
 
ac_config_files="$ac_config_files Makefile version.h src/Makefile src/FbTk/Makefile util/Makefile util/fbrun/Makefile data/Makefile data/styles/Makefile data/styles/BlueFlux/Makefile data/styles/BlueFlux/pixmaps/Makefile data/styles/Emerge/Makefile data/styles/Emerge/pixmaps/Makefile doc/Makefile doc/ru/Makefile nls/Makefile nls/C/Makefile nls/be_BY/Makefile nls/bg_BG/Makefile nls/cs_CZ/Makefile nls/da_DK/Makefile nls/de_AT/Makefile nls/de_CH/Makefile nls/de_DE/Makefile nls/el_GR/Makefile nls/en_GB/Makefile nls/en_US/Makefile nls/es_AR/Makefile nls/es_ES/Makefile nls/et_EE/Makefile nls/fi_FI/Makefile nls/fr_CH/Makefile nls/fr_FR/Makefile nls/it_IT/Makefile nls/ja_JP/Makefile nls/ko_KR/Makefile nls/lv_LV/Makefile nls/mk_MK/Makefile nls/nb_NO/Makefile nls/nl_NL/Makefile nls/no_NO/Makefile nls/pl_PL/Makefile nls/pt_BR/Makefile nls/pt_PT/Makefile nls/ru_RU/Makefile nls/sk_SK/Makefile nls/sl_SI/Makefile nls/sv_SE/Makefile nls/tr_TR/Makefile nls/uk_UA/Makefile nls/vi_VN/Makefile nls/zh_CN/Makefile nls/zh_TW/Makefile"
 
8647
ac_config_files="$ac_config_files Makefile version.h src/Makefile src/FbTk/Makefile util/Makefile util/fbrun/Makefile data/Makefile data/styles/Makefile data/styles/BlueFlux/Makefile data/styles/BlueFlux/pixmaps/Makefile data/styles/Emerge/Makefile data/styles/Emerge/pixmaps/Makefile data/styles/arch/Makefile data/styles/arch/pixmaps/Makefile data/styles/zimek_bisque/Makefile data/styles/zimek_darkblue/Makefile data/styles/zimek_green/Makefile data/styles/ostrich/Makefile data/styles/green_tea/Makefile data/styles/bora_black/Makefile data/styles/bora_blue/Makefile data/styles/bora_green/Makefile data/styles/carp/Makefile data/styles/bloe/Makefile data/styles/bloe/pixmaps/Makefile doc/Makefile doc/ru/Makefile nls/Makefile nls/C/Makefile nls/be_BY/Makefile nls/bg_BG/Makefile nls/cs_CZ/Makefile nls/da_DK/Makefile nls/de_AT/Makefile nls/de_CH/Makefile nls/de_DE/Makefile nls/el_GR/Makefile nls/en_GB/Makefile nls/en_US/Makefile nls/es_AR/Makefile nls/es_ES/Makefile nls/et_EE/Makefile nls/fi_FI/Makefile nls/fr_CH/Makefile nls/fr_FR/Makefile nls/it_IT/Makefile nls/ja_JP/Makefile nls/ko_KR/Makefile nls/lv_LV/Makefile nls/mk_MK/Makefile nls/nb_NO/Makefile nls/nl_NL/Makefile nls/no_NO/Makefile nls/pl_PL/Makefile nls/pt_BR/Makefile nls/pt_PT/Makefile nls/ru_RU/Makefile nls/sk_SK/Makefile nls/sl_SI/Makefile nls/sv_SE/Makefile nls/tr_TR/Makefile nls/uk_UA/Makefile nls/vi_VN/Makefile nls/zh_CN/Makefile nls/zh_TW/Makefile"
9695
8648
 
9696
8649
cat >confcache <<\_ACEOF
9697
8650
# This file is a shell script that caches the results of configure
9720
8673
    case $ac_val in #(
9721
8674
    *${as_nl}*)
9722
8675
      case $ac_var in #(
9723
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9724
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
8676
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
8677
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9725
8678
      esac
9726
8679
      case $ac_var in #(
9727
8680
      _ | IFS | as_nl) ;; #(
9728
 
      *) $as_unset $ac_var ;;
 
8681
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
8682
      *) { eval $ac_var=; unset $ac_var;} ;;
9729
8683
      esac ;;
9730
8684
    esac
9731
8685
  done
9733
8687
  (set) 2>&1 |
9734
8688
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9735
8689
    *${as_nl}ac_space=\ *)
9736
 
      # `set' does not quote correctly, so add quotes (double-quote
9737
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
8690
      # `set' does not quote correctly, so add quotes: double-quote
 
8691
      # substitution turns \\\\ into \\, and sed turns \\ into \.
9738
8692
      sed -n \
9739
8693
        "s/'/'\\\\''/g;
9740
8694
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9757
8711
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9758
8712
  if test -w "$cache_file"; then
9759
8713
    test "x$cache_file" != "x/dev/null" &&
9760
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9761
 
echo "$as_me: updating cache $cache_file" >&6;}
 
8714
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
8715
$as_echo "$as_me: updating cache $cache_file" >&6;}
9762
8716
    cat confcache >$cache_file
9763
8717
  else
9764
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9765
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
8718
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
8719
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9766
8720
  fi
9767
8721
fi
9768
8722
rm -f confcache
9778
8732
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9779
8733
  # 1. Remove the extension, and $U if already installed.
9780
8734
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9781
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
8735
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9782
8736
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9783
8737
  #    will be set to the directory where LIBOBJS objects are built.
9784
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9785
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
8738
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
8739
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9786
8740
done
9787
8741
LIBOBJS=$ac_libobjs
9788
8742
 
9789
8743
LTLIBOBJS=$ac_ltlibobjs
9790
8744
 
9791
8745
 
 
8746
 if test -n "$EXEEXT"; then
 
8747
  am__EXEEXT_TRUE=
 
8748
  am__EXEEXT_FALSE='#'
 
8749
else
 
8750
  am__EXEEXT_TRUE='#'
 
8751
  am__EXEEXT_FALSE=
 
8752
fi
 
8753
 
9792
8754
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9793
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9794
 
Usually this means the macro was only invoked conditionally." >&5
9795
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
9796
 
Usually this means the macro was only invoked conditionally." >&2;}
9797
 
   { (exit 1); exit 1; }; }
 
8755
  as_fn_error "conditional \"AMDEP\" was never defined.
 
8756
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9798
8757
fi
9799
8758
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9800
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9801
 
Usually this means the macro was only invoked conditionally." >&5
9802
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9803
 
Usually this means the macro was only invoked conditionally." >&2;}
9804
 
   { (exit 1); exit 1; }; }
 
8759
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
8760
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9805
8761
fi
9806
8762
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9807
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9808
 
Usually this means the macro was only invoked conditionally." >&5
9809
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9810
 
Usually this means the macro was only invoked conditionally." >&2;}
9811
 
   { (exit 1); exit 1; }; }
 
8763
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
8764
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9812
8765
fi
9813
8766
if test -z "${REMEMBER_SRC_TRUE}" && test -z "${REMEMBER_SRC_FALSE}"; then
9814
 
  { { echo "$as_me:$LINENO: error: conditional \"REMEMBER_SRC\" was never defined.
9815
 
Usually this means the macro was only invoked conditionally." >&5
9816
 
echo "$as_me: error: conditional \"REMEMBER_SRC\" was never defined.
9817
 
Usually this means the macro was only invoked conditionally." >&2;}
9818
 
   { (exit 1); exit 1; }; }
 
8767
  as_fn_error "conditional \"REMEMBER_SRC\" was never defined.
 
8768
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9819
8769
fi
9820
8770
if test -z "${TOOLBAR_SRC_TRUE}" && test -z "${TOOLBAR_SRC_FALSE}"; then
9821
 
  { { echo "$as_me:$LINENO: error: conditional \"TOOLBAR_SRC\" was never defined.
9822
 
Usually this means the macro was only invoked conditionally." >&5
9823
 
echo "$as_me: error: conditional \"TOOLBAR_SRC\" was never defined.
9824
 
Usually this means the macro was only invoked conditionally." >&2;}
9825
 
   { (exit 1); exit 1; }; }
 
8771
  as_fn_error "conditional \"TOOLBAR_SRC\" was never defined.
 
8772
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9826
8773
fi
9827
8774
if test -z "${REGEXP_SRC_TRUE}" && test -z "${REGEXP_SRC_FALSE}"; then
9828
 
  { { echo "$as_me:$LINENO: error: conditional \"REGEXP_SRC\" was never defined.
9829
 
Usually this means the macro was only invoked conditionally." >&5
9830
 
echo "$as_me: error: conditional \"REGEXP_SRC\" was never defined.
9831
 
Usually this means the macro was only invoked conditionally." >&2;}
9832
 
   { (exit 1); exit 1; }; }
 
8775
  as_fn_error "conditional \"REGEXP_SRC\" was never defined.
 
8776
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9833
8777
fi
9834
8778
if test -z "${NEWWMSPEC_TRUE}" && test -z "${NEWWMSPEC_FALSE}"; then
9835
 
  { { echo "$as_me:$LINENO: error: conditional \"NEWWMSPEC\" was never defined.
9836
 
Usually this means the macro was only invoked conditionally." >&5
9837
 
echo "$as_me: error: conditional \"NEWWMSPEC\" was never defined.
9838
 
Usually this means the macro was only invoked conditionally." >&2;}
9839
 
   { (exit 1); exit 1; }; }
 
8779
  as_fn_error "conditional \"NEWWMSPEC\" was never defined.
 
8780
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9840
8781
fi
9841
8782
if test -z "${GNOME_TRUE}" && test -z "${GNOME_FALSE}"; then
9842
 
  { { echo "$as_me:$LINENO: error: conditional \"GNOME\" was never defined.
9843
 
Usually this means the macro was only invoked conditionally." >&5
9844
 
echo "$as_me: error: conditional \"GNOME\" was never defined.
9845
 
Usually this means the macro was only invoked conditionally." >&2;}
9846
 
   { (exit 1); exit 1; }; }
 
8783
  as_fn_error "conditional \"GNOME\" was never defined.
 
8784
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9847
8785
fi
9848
8786
if test -z "${XFT_TRUE}" && test -z "${XFT_FALSE}"; then
9849
 
  { { echo "$as_me:$LINENO: error: conditional \"XFT\" was never defined.
9850
 
Usually this means the macro was only invoked conditionally." >&5
9851
 
echo "$as_me: error: conditional \"XFT\" was never defined.
9852
 
Usually this means the macro was only invoked conditionally." >&2;}
9853
 
   { (exit 1); exit 1; }; }
 
8787
  as_fn_error "conditional \"XFT\" was never defined.
 
8788
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9854
8789
fi
9855
8790
if test -z "${XPM_TRUE}" && test -z "${XPM_FALSE}"; then
9856
 
  { { echo "$as_me:$LINENO: error: conditional \"XPM\" was never defined.
9857
 
Usually this means the macro was only invoked conditionally." >&5
9858
 
echo "$as_me: error: conditional \"XPM\" was never defined.
9859
 
Usually this means the macro was only invoked conditionally." >&2;}
9860
 
   { (exit 1); exit 1; }; }
 
8791
  as_fn_error "conditional \"XPM\" was never defined.
 
8792
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9861
8793
fi
9862
8794
if test -z "${IMLIB2_TRUE}" && test -z "${IMLIB2_FALSE}"; then
9863
 
  { { echo "$as_me:$LINENO: error: conditional \"IMLIB2\" was never defined.
9864
 
Usually this means the macro was only invoked conditionally." >&5
9865
 
echo "$as_me: error: conditional \"IMLIB2\" was never defined.
9866
 
Usually this means the macro was only invoked conditionally." >&2;}
9867
 
   { (exit 1); exit 1; }; }
 
8795
  as_fn_error "conditional \"IMLIB2\" was never defined.
 
8796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9868
8797
fi
9869
8798
if test -z "${MULTIBYTE_TRUE}" && test -z "${MULTIBYTE_FALSE}"; then
9870
 
  { { echo "$as_me:$LINENO: error: conditional \"MULTIBYTE\" was never defined.
9871
 
Usually this means the macro was only invoked conditionally." >&5
9872
 
echo "$as_me: error: conditional \"MULTIBYTE\" was never defined.
9873
 
Usually this means the macro was only invoked conditionally." >&2;}
9874
 
   { (exit 1); exit 1; }; }
 
8799
  as_fn_error "conditional \"MULTIBYTE\" was never defined.
 
8800
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9875
8801
fi
9876
8802
 
9877
8803
: ${CONFIG_STATUS=./config.status}
 
8804
ac_write_fail=0
9878
8805
ac_clean_files_save=$ac_clean_files
9879
8806
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9880
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9881
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9882
 
cat >$CONFIG_STATUS <<_ACEOF
 
8807
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
8808
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
8809
as_write_fail=0
 
8810
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9883
8811
#! $SHELL
9884
8812
# Generated by $as_me.
9885
8813
# Run this file to recreate the current configuration.
9889
8817
debug=false
9890
8818
ac_cs_recheck=false
9891
8819
ac_cs_silent=false
 
8820
 
9892
8821
SHELL=\${CONFIG_SHELL-$SHELL}
9893
 
_ACEOF
9894
 
 
9895
 
cat >>$CONFIG_STATUS <<\_ACEOF
9896
 
## --------------------- ##
9897
 
## M4sh Initialization.  ##
9898
 
## --------------------- ##
 
8822
export SHELL
 
8823
_ASEOF
 
8824
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
8825
## -------------------- ##
 
8826
## M4sh Initialization. ##
 
8827
## -------------------- ##
9899
8828
 
9900
8829
# Be more Bourne compatible
9901
8830
DUALCASE=1; export DUALCASE # for MKS sh
9902
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
8831
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9903
8832
  emulate sh
9904
8833
  NULLCMD=:
9905
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
8834
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9906
8835
  # is contrary to our usage.  Disable this feature.
9907
8836
  alias -g '${1+"$@"}'='"$@"'
9908
8837
  setopt NO_GLOB_SUBST
9909
8838
else
9910
 
  case `(set -o) 2>/dev/null` in
9911
 
  *posix*) set -o posix ;;
 
8839
  case `(set -o) 2>/dev/null` in #(
 
8840
  *posix*) :
 
8841
    set -o posix ;; #(
 
8842
  *) :
 
8843
     ;;
9912
8844
esac
9913
 
 
9914
 
fi
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
# PATH needs CR
9920
 
# Avoid depending upon Character Ranges.
9921
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9922
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9923
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9924
 
as_cr_digits='0123456789'
9925
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
8845
fi
 
8846
 
 
8847
 
 
8848
as_nl='
 
8849
'
 
8850
export as_nl
 
8851
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
8852
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
8853
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
8854
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
8855
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
8856
# but without wasting forks for bash or zsh.
 
8857
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
8858
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
8859
  as_echo='print -r --'
 
8860
  as_echo_n='print -rn --'
 
8861
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
8862
  as_echo='printf %s\n'
 
8863
  as_echo_n='printf %s'
 
8864
else
 
8865
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
8866
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
8867
    as_echo_n='/usr/ucb/echo -n'
 
8868
  else
 
8869
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
8870
    as_echo_n_body='eval
 
8871
      arg=$1;
 
8872
      case $arg in #(
 
8873
      *"$as_nl"*)
 
8874
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
8875
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
8876
      esac;
 
8877
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
8878
    '
 
8879
    export as_echo_n_body
 
8880
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
8881
  fi
 
8882
  export as_echo_body
 
8883
  as_echo='sh -c $as_echo_body as_echo'
 
8884
fi
9926
8885
 
9927
8886
# The user is always right.
9928
8887
if test "${PATH_SEPARATOR+set}" != set; then
9929
 
  echo "#! /bin/sh" >conf$$.sh
9930
 
  echo  "exit 0"   >>conf$$.sh
9931
 
  chmod +x conf$$.sh
9932
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9933
 
    PATH_SEPARATOR=';'
9934
 
  else
9935
 
    PATH_SEPARATOR=:
9936
 
  fi
9937
 
  rm -f conf$$.sh
9938
 
fi
9939
 
 
9940
 
# Support unset when possible.
9941
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9942
 
  as_unset=unset
9943
 
else
9944
 
  as_unset=false
 
8888
  PATH_SEPARATOR=:
 
8889
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
8890
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
8891
      PATH_SEPARATOR=';'
 
8892
  }
9945
8893
fi
9946
8894
 
9947
8895
 
9950
8898
# there to prevent editors from complaining about space-tab.
9951
8899
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9952
8900
# splitting by setting IFS to empty value.)
9953
 
as_nl='
9954
 
'
9955
8901
IFS=" ""        $as_nl"
9956
8902
 
9957
8903
# Find who we are.  Look in the path if we contain no directory separator.
9958
 
case $0 in
 
8904
case $0 in #((
9959
8905
  *[\\/]* ) as_myself=$0 ;;
9960
8906
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961
8907
for as_dir in $PATH
9962
8908
do
9963
8909
  IFS=$as_save_IFS
9964
8910
  test -z "$as_dir" && as_dir=.
9965
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9966
 
done
 
8911
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
8912
  done
9967
8913
IFS=$as_save_IFS
9968
8914
 
9969
8915
     ;;
9974
8920
  as_myself=$0
9975
8921
fi
9976
8922
if test ! -f "$as_myself"; then
9977
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9978
 
  { (exit 1); exit 1; }
 
8923
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
8924
  exit 1
9979
8925
fi
9980
8926
 
9981
 
# Work around bugs in pre-3.0 UWIN ksh.
9982
 
for as_var in ENV MAIL MAILPATH
9983
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
8927
# Unset variables that we do not need and which cause bugs (e.g. in
 
8928
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
8929
# suppresses any "Segmentation fault" message there.  '((' could
 
8930
# trigger a bug in pdksh 5.2.14.
 
8931
for as_var in BASH_ENV ENV MAIL MAILPATH
 
8932
do eval test x\${$as_var+set} = xset \
 
8933
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9984
8934
done
9985
8935
PS1='$ '
9986
8936
PS2='> '
9987
8937
PS4='+ '
9988
8938
 
9989
8939
# NLS nuisances.
9990
 
for as_var in \
9991
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9992
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9993
 
  LC_TELEPHONE LC_TIME
9994
 
do
9995
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9996
 
    eval $as_var=C; export $as_var
9997
 
  else
9998
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
8940
LC_ALL=C
 
8941
export LC_ALL
 
8942
LANGUAGE=C
 
8943
export LANGUAGE
 
8944
 
 
8945
# CDPATH.
 
8946
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
8947
 
 
8948
 
 
8949
# as_fn_error ERROR [LINENO LOG_FD]
 
8950
# ---------------------------------
 
8951
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
8952
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
8953
# script with status $?, using 1 if that was 0.
 
8954
as_fn_error ()
 
8955
{
 
8956
  as_status=$?; test $as_status -eq 0 && as_status=1
 
8957
  if test "$3"; then
 
8958
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
8959
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9999
8960
  fi
10000
 
done
10001
 
 
10002
 
# Required to use basename.
 
8961
  $as_echo "$as_me: error: $1" >&2
 
8962
  as_fn_exit $as_status
 
8963
} # as_fn_error
 
8964
 
 
8965
 
 
8966
# as_fn_set_status STATUS
 
8967
# -----------------------
 
8968
# Set $? to STATUS, without forking.
 
8969
as_fn_set_status ()
 
8970
{
 
8971
  return $1
 
8972
} # as_fn_set_status
 
8973
 
 
8974
# as_fn_exit STATUS
 
8975
# -----------------
 
8976
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
8977
as_fn_exit ()
 
8978
{
 
8979
  set +e
 
8980
  as_fn_set_status $1
 
8981
  exit $1
 
8982
} # as_fn_exit
 
8983
 
 
8984
# as_fn_unset VAR
 
8985
# ---------------
 
8986
# Portably unset VAR.
 
8987
as_fn_unset ()
 
8988
{
 
8989
  { eval $1=; unset $1;}
 
8990
}
 
8991
as_unset=as_fn_unset
 
8992
# as_fn_append VAR VALUE
 
8993
# ----------------------
 
8994
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
8995
# advantage of any shell optimizations that allow amortized linear growth over
 
8996
# repeated appends, instead of the typical quadratic growth present in naive
 
8997
# implementations.
 
8998
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
8999
  eval 'as_fn_append ()
 
9000
  {
 
9001
    eval $1+=\$2
 
9002
  }'
 
9003
else
 
9004
  as_fn_append ()
 
9005
  {
 
9006
    eval $1=\$$1\$2
 
9007
  }
 
9008
fi # as_fn_append
 
9009
 
 
9010
# as_fn_arith ARG...
 
9011
# ------------------
 
9012
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
9013
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
9014
# must be portable across $(()) and expr.
 
9015
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
9016
  eval 'as_fn_arith ()
 
9017
  {
 
9018
    as_val=$(( $* ))
 
9019
  }'
 
9020
else
 
9021
  as_fn_arith ()
 
9022
  {
 
9023
    as_val=`expr "$@" || test $? -eq 1`
 
9024
  }
 
9025
fi # as_fn_arith
 
9026
 
 
9027
 
10003
9028
if expr a : '\(a\)' >/dev/null 2>&1 &&
10004
9029
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10005
9030
  as_expr=expr
10013
9038
  as_basename=false
10014
9039
fi
10015
9040
 
 
9041
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
9042
  as_dirname=dirname
 
9043
else
 
9044
  as_dirname=false
 
9045
fi
10016
9046
 
10017
 
# Name of the executable.
10018
9047
as_me=`$as_basename -- "$0" ||
10019
9048
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10020
9049
         X"$0" : 'X\(//\)$' \| \
10021
9050
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10022
 
echo X/"$0" |
 
9051
$as_echo X/"$0" |
10023
9052
    sed '/^.*\/\([^/][^/]*\)\/*$/{
10024
9053
            s//\1/
10025
9054
            q
10034
9063
          }
10035
9064
          s/.*/./; q'`
10036
9065
 
10037
 
# CDPATH.
10038
 
$as_unset CDPATH
10039
 
 
10040
 
 
10041
 
 
10042
 
  as_lineno_1=$LINENO
10043
 
  as_lineno_2=$LINENO
10044
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
10045
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10046
 
 
10047
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10048
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
10049
 
  # line-number line after each line using $LINENO; the second 'sed'
10050
 
  # does the real work.  The second script uses 'N' to pair each
10051
 
  # line-number line with the line containing $LINENO, and appends
10052
 
  # trailing '-' during substitution so that $LINENO is not a special
10053
 
  # case at line end.
10054
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10055
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10056
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
10057
 
  sed -n '
10058
 
    p
10059
 
    /[$]LINENO/=
10060
 
  ' <$as_myself |
10061
 
    sed '
10062
 
      s/[$]LINENO.*/&-/
10063
 
      t lineno
10064
 
      b
10065
 
      :lineno
10066
 
      N
10067
 
      :loop
10068
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10069
 
      t loop
10070
 
      s/-\n.*//
10071
 
    ' >$as_me.lineno &&
10072
 
  chmod +x "$as_me.lineno" ||
10073
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10074
 
   { (exit 1); exit 1; }; }
10075
 
 
10076
 
  # Don't try to exec as it changes $[0], causing all sort of problems
10077
 
  # (the dirname of $[0] is not the place where we might find the
10078
 
  # original and so on.  Autoconf is especially sensitive to this).
10079
 
  . "./$as_me.lineno"
10080
 
  # Exit status is that of the last command.
10081
 
  exit
10082
 
}
10083
 
 
10084
 
 
10085
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10086
 
  as_dirname=dirname
10087
 
else
10088
 
  as_dirname=false
10089
 
fi
 
9066
# Avoid depending upon Character Ranges.
 
9067
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
9068
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
9069
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
9070
as_cr_digits='0123456789'
 
9071
as_cr_alnum=$as_cr_Letters$as_cr_digits
10090
9072
 
10091
9073
ECHO_C= ECHO_N= ECHO_T=
10092
 
case `echo -n x` in
 
9074
case `echo -n x` in #(((((
10093
9075
-n*)
10094
 
  case `echo 'x\c'` in
 
9076
  case `echo 'xy\c'` in
10095
9077
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10096
 
  *)   ECHO_C='\c';;
 
9078
  xy)  ECHO_C='\c';;
 
9079
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
9080
       ECHO_T=' ';;
10097
9081
  esac;;
10098
9082
*)
10099
9083
  ECHO_N='-n';;
10100
9084
esac
10101
9085
 
10102
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
10103
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10104
 
  as_expr=expr
10105
 
else
10106
 
  as_expr=false
10107
 
fi
10108
 
 
10109
9086
rm -f conf$$ conf$$.exe conf$$.file
10110
9087
if test -d conf$$.dir; then
10111
9088
  rm -f conf$$.dir/conf$$.file
10112
9089
else
10113
9090
  rm -f conf$$.dir
10114
 
  mkdir conf$$.dir
 
9091
  mkdir conf$$.dir 2>/dev/null
10115
9092
fi
10116
 
echo >conf$$.file
10117
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
10118
 
  as_ln_s='ln -s'
10119
 
  # ... but there are two gotchas:
10120
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10121
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10122
 
  # In both cases, we have to default to `cp -p'.
10123
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
9093
if (echo >conf$$.file) 2>/dev/null; then
 
9094
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
9095
    as_ln_s='ln -s'
 
9096
    # ... but there are two gotchas:
 
9097
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
9098
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
9099
    # In both cases, we have to default to `cp -p'.
 
9100
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
9101
      as_ln_s='cp -p'
 
9102
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
9103
    as_ln_s=ln
 
9104
  else
10124
9105
    as_ln_s='cp -p'
10125
 
elif ln conf$$.file conf$$ 2>/dev/null; then
10126
 
  as_ln_s=ln
 
9106
  fi
10127
9107
else
10128
9108
  as_ln_s='cp -p'
10129
9109
fi
10130
9110
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10131
9111
rmdir conf$$.dir 2>/dev/null
10132
9112
 
 
9113
 
 
9114
# as_fn_mkdir_p
 
9115
# -------------
 
9116
# Create "$as_dir" as a directory, including parents if necessary.
 
9117
as_fn_mkdir_p ()
 
9118
{
 
9119
 
 
9120
  case $as_dir in #(
 
9121
  -*) as_dir=./$as_dir;;
 
9122
  esac
 
9123
  test -d "$as_dir" || eval $as_mkdir_p || {
 
9124
    as_dirs=
 
9125
    while :; do
 
9126
      case $as_dir in #(
 
9127
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
9128
      *) as_qdir=$as_dir;;
 
9129
      esac
 
9130
      as_dirs="'$as_qdir' $as_dirs"
 
9131
      as_dir=`$as_dirname -- "$as_dir" ||
 
9132
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9133
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9134
         X"$as_dir" : 'X\(//\)$' \| \
 
9135
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
9136
$as_echo X"$as_dir" |
 
9137
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
9138
            s//\1/
 
9139
            q
 
9140
          }
 
9141
          /^X\(\/\/\)[^/].*/{
 
9142
            s//\1/
 
9143
            q
 
9144
          }
 
9145
          /^X\(\/\/\)$/{
 
9146
            s//\1/
 
9147
            q
 
9148
          }
 
9149
          /^X\(\/\).*/{
 
9150
            s//\1/
 
9151
            q
 
9152
          }
 
9153
          s/.*/./; q'`
 
9154
      test -d "$as_dir" && break
 
9155
    done
 
9156
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
9157
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
9158
 
 
9159
 
 
9160
} # as_fn_mkdir_p
10133
9161
if mkdir -p . 2>/dev/null; then
10134
 
  as_mkdir_p=:
 
9162
  as_mkdir_p='mkdir -p "$as_dir"'
10135
9163
else
10136
9164
  test -d ./-p && rmdir ./-p
10137
9165
  as_mkdir_p=false
10148
9176
  as_test_x='
10149
9177
    eval sh -c '\''
10150
9178
      if test -d "$1"; then
10151
 
        test -d "$1/.";
 
9179
        test -d "$1/.";
10152
9180
      else
10153
 
        case $1 in
10154
 
        -*)set "./$1";;
 
9181
        case $1 in #(
 
9182
        -*)set "./$1";;
10155
9183
        esac;
10156
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
9184
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10157
9185
        ???[sx]*):;;*)false;;esac;fi
10158
9186
    '\'' sh
10159
9187
  '
10168
9196
 
10169
9197
 
10170
9198
exec 6>&1
 
9199
## ----------------------------------- ##
 
9200
## Main body of $CONFIG_STATUS script. ##
 
9201
## ----------------------------------- ##
 
9202
_ASEOF
 
9203
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10171
9204
 
10172
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
9205
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9206
# Save the log message, to keep $0 and so on meaningful, and to
10173
9207
# report actual input values of CONFIG_FILES etc. instead of their
10174
9208
# values after options handling.
10175
9209
ac_log="
10176
9210
This file was extended by $as_me, which was
10177
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
9211
generated by GNU Autoconf 2.65.  Invocation command line was
10178
9212
 
10179
9213
  CONFIG_FILES    = $CONFIG_FILES
10180
9214
  CONFIG_HEADERS  = $CONFIG_HEADERS
10187
9221
 
10188
9222
_ACEOF
10189
9223
 
10190
 
cat >>$CONFIG_STATUS <<_ACEOF
 
9224
case $ac_config_files in *"
 
9225
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
9226
esac
 
9227
 
 
9228
case $ac_config_headers in *"
 
9229
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
9230
esac
 
9231
 
 
9232
 
 
9233
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10191
9234
# Files that config.status was made for.
10192
9235
config_files="$ac_config_files"
10193
9236
config_headers="$ac_config_headers"
10195
9238
 
10196
9239
_ACEOF
10197
9240
 
10198
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9241
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10199
9242
ac_cs_usage="\
10200
 
\`$as_me' instantiates files from templates according to the
10201
 
current configuration.
 
9243
\`$as_me' instantiates files and other configuration actions
 
9244
from templates according to the current configuration.  Unless the files
 
9245
and actions are specified as TAGs, all are instantiated by default.
10202
9246
 
10203
 
Usage: $0 [OPTIONS] [FILE]...
 
9247
Usage: $0 [OPTION]... [TAG]...
10204
9248
 
10205
9249
  -h, --help       print this help, then exit
10206
9250
  -V, --version    print version number and configuration settings, then exit
10207
 
  -q, --quiet      do not print progress messages
 
9251
      --config     print configuration, then exit
 
9252
  -q, --quiet, --silent
 
9253
                   do not print progress messages
10208
9254
  -d, --debug      don't remove temporary files
10209
9255
      --recheck    update $as_me by reconfiguring in the same conditions
10210
 
  --file=FILE[:TEMPLATE]
10211
 
                   instantiate the configuration file FILE
10212
 
  --header=FILE[:TEMPLATE]
10213
 
                   instantiate the configuration header FILE
 
9256
      --file=FILE[:TEMPLATE]
 
9257
                   instantiate the configuration file FILE
 
9258
      --header=FILE[:TEMPLATE]
 
9259
                   instantiate the configuration header FILE
10214
9260
 
10215
9261
Configuration files:
10216
9262
$config_files
10221
9267
Configuration commands:
10222
9268
$config_commands
10223
9269
 
10224
 
Report bugs to <bug-autoconf@gnu.org>."
 
9270
Report bugs to the package provider."
10225
9271
 
10226
9272
_ACEOF
10227
 
cat >>$CONFIG_STATUS <<_ACEOF
 
9273
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9274
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10228
9275
ac_cs_version="\\
10229
9276
config.status
10230
 
configured by $0, generated by GNU Autoconf 2.61,
10231
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
9277
configured by $0, generated by GNU Autoconf 2.65,
 
9278
  with options \\"\$ac_cs_config\\"
10232
9279
 
10233
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
9280
Copyright (C) 2009 Free Software Foundation, Inc.
10234
9281
This config.status script is free software; the Free Software Foundation
10235
9282
gives unlimited permission to copy, distribute and modify it."
10236
9283
 
10238
9285
srcdir='$srcdir'
10239
9286
INSTALL='$INSTALL'
10240
9287
MKDIR_P='$MKDIR_P'
 
9288
AWK='$AWK'
 
9289
test -n "\$AWK" || AWK=awk
10241
9290
_ACEOF
10242
9291
 
10243
 
cat >>$CONFIG_STATUS <<\_ACEOF
10244
 
# If no file are specified by the user, then we need to provide default
10245
 
# value.  By we need to know if files were specified by the user.
 
9292
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9293
# The default lists apply if the user does not specify any file.
10246
9294
ac_need_defaults=:
10247
9295
while test $# != 0
10248
9296
do
10264
9312
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10265
9313
    ac_cs_recheck=: ;;
10266
9314
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10267
 
    echo "$ac_cs_version"; exit ;;
 
9315
    $as_echo "$ac_cs_version"; exit ;;
 
9316
  --config | --confi | --conf | --con | --co | --c )
 
9317
    $as_echo "$ac_cs_config"; exit ;;
10268
9318
  --debug | --debu | --deb | --de | --d | -d )
10269
9319
    debug=: ;;
10270
9320
  --file | --fil | --fi | --f )
10271
9321
    $ac_shift
10272
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
9322
    case $ac_optarg in
 
9323
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
9324
    esac
 
9325
    as_fn_append CONFIG_FILES " '$ac_optarg'"
10273
9326
    ac_need_defaults=false;;
10274
9327
  --header | --heade | --head | --hea )
10275
9328
    $ac_shift
10276
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
9329
    case $ac_optarg in
 
9330
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
9331
    esac
 
9332
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10277
9333
    ac_need_defaults=false;;
10278
9334
  --he | --h)
10279
9335
    # Conflict between --help and --header
10280
 
    { echo "$as_me: error: ambiguous option: $1
10281
 
Try \`$0 --help' for more information." >&2
10282
 
   { (exit 1); exit 1; }; };;
 
9336
    as_fn_error "ambiguous option: \`$1'
 
9337
Try \`$0 --help' for more information.";;
10283
9338
  --help | --hel | -h )
10284
 
    echo "$ac_cs_usage"; exit ;;
 
9339
    $as_echo "$ac_cs_usage"; exit ;;
10285
9340
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10286
9341
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10287
9342
    ac_cs_silent=: ;;
10288
9343
 
10289
9344
  # This is an error.
10290
 
  -*) { echo "$as_me: error: unrecognized option: $1
10291
 
Try \`$0 --help' for more information." >&2
10292
 
   { (exit 1); exit 1; }; } ;;
 
9345
  -*) as_fn_error "unrecognized option: \`$1'
 
9346
Try \`$0 --help' for more information." ;;
10293
9347
 
10294
 
  *) ac_config_targets="$ac_config_targets $1"
 
9348
  *) as_fn_append ac_config_targets " $1"
10295
9349
     ac_need_defaults=false ;;
10296
9350
 
10297
9351
  esac
10306
9360
fi
10307
9361
 
10308
9362
_ACEOF
10309
 
cat >>$CONFIG_STATUS <<_ACEOF
 
9363
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10310
9364
if \$ac_cs_recheck; then
10311
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10312
 
  CONFIG_SHELL=$SHELL
 
9365
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9366
  shift
 
9367
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
9368
  CONFIG_SHELL='$SHELL'
10313
9369
  export CONFIG_SHELL
10314
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9370
  exec "\$@"
10315
9371
fi
10316
9372
 
10317
9373
_ACEOF
10318
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9374
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10319
9375
exec 5>>config.log
10320
9376
{
10321
9377
  echo
10322
9378
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10323
9379
## Running $as_me. ##
10324
9380
_ASBOX
10325
 
  echo "$ac_log"
 
9381
  $as_echo "$ac_log"
10326
9382
} >&5
10327
9383
 
10328
9384
_ACEOF
10329
 
cat >>$CONFIG_STATUS <<_ACEOF
 
9385
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10330
9386
#
10331
9387
# INIT-COMMANDS
10332
9388
#
10334
9390
 
10335
9391
_ACEOF
10336
9392
 
10337
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9393
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10338
9394
 
10339
9395
# Handling of arguments.
10340
9396
for ac_config_target in $ac_config_targets
10354
9410
    "data/styles/BlueFlux/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/BlueFlux/pixmaps/Makefile" ;;
10355
9411
    "data/styles/Emerge/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/Emerge/Makefile" ;;
10356
9412
    "data/styles/Emerge/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/Emerge/pixmaps/Makefile" ;;
 
9413
    "data/styles/arch/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/arch/Makefile" ;;
 
9414
    "data/styles/arch/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/arch/pixmaps/Makefile" ;;
 
9415
    "data/styles/zimek_bisque/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/zimek_bisque/Makefile" ;;
 
9416
    "data/styles/zimek_darkblue/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/zimek_darkblue/Makefile" ;;
 
9417
    "data/styles/zimek_green/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/zimek_green/Makefile" ;;
 
9418
    "data/styles/ostrich/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/ostrich/Makefile" ;;
 
9419
    "data/styles/green_tea/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/green_tea/Makefile" ;;
 
9420
    "data/styles/bora_black/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/bora_black/Makefile" ;;
 
9421
    "data/styles/bora_blue/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/bora_blue/Makefile" ;;
 
9422
    "data/styles/bora_green/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/bora_green/Makefile" ;;
 
9423
    "data/styles/carp/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/carp/Makefile" ;;
 
9424
    "data/styles/bloe/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/bloe/Makefile" ;;
 
9425
    "data/styles/bloe/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/styles/bloe/pixmaps/Makefile" ;;
10357
9426
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10358
9427
    "doc/ru/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ru/Makefile" ;;
10359
9428
    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
10395
9464
    "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
10396
9465
    "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;;
10397
9466
 
10398
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10399
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10400
 
   { (exit 1); exit 1; }; };;
 
9467
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10401
9468
  esac
10402
9469
done
10403
9470
 
10424
9491
  trap 'exit_status=$?
10425
9492
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10426
9493
' 0
10427
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
9494
  trap 'as_fn_exit 1' 1 2 13 15
10428
9495
}
10429
9496
# Create a (secure) tmp directory for tmp files.
10430
9497
 
10435
9502
{
10436
9503
  tmp=./conf$$-$RANDOM
10437
9504
  (umask 077 && mkdir "$tmp")
10438
 
} ||
10439
 
{
10440
 
   echo "$me: cannot create a temporary directory in ." >&2
10441
 
   { (exit 1); exit 1; }
10442
 
}
10443
 
 
10444
 
#
10445
 
# Set up the sed scripts for CONFIG_FILES section.
10446
 
#
10447
 
 
10448
 
# No need to generate the scripts if there are no CONFIG_FILES.
10449
 
# This happens for instance when ./config.status config.h
 
9505
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
9506
 
 
9507
# Set up the scripts for CONFIG_FILES section.
 
9508
# No need to generate them if there are no CONFIG_FILES.
 
9509
# This happens for instance with `./config.status config.h'.
10450
9510
if test -n "$CONFIG_FILES"; then
10451
9511
 
10452
 
_ACEOF
10453
 
 
10454
 
 
10455
 
 
10456
 
ac_delim='%!_!# '
10457
 
for ac_last_try in false false false false false :; do
10458
 
  cat >conf$$subs.sed <<_ACEOF
10459
 
SHELL!$SHELL$ac_delim
10460
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10461
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10462
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10463
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10464
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10465
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10466
 
exec_prefix!$exec_prefix$ac_delim
10467
 
prefix!$prefix$ac_delim
10468
 
program_transform_name!$program_transform_name$ac_delim
10469
 
bindir!$bindir$ac_delim
10470
 
sbindir!$sbindir$ac_delim
10471
 
libexecdir!$libexecdir$ac_delim
10472
 
datarootdir!$datarootdir$ac_delim
10473
 
datadir!$datadir$ac_delim
10474
 
sysconfdir!$sysconfdir$ac_delim
10475
 
sharedstatedir!$sharedstatedir$ac_delim
10476
 
localstatedir!$localstatedir$ac_delim
10477
 
includedir!$includedir$ac_delim
10478
 
oldincludedir!$oldincludedir$ac_delim
10479
 
docdir!$docdir$ac_delim
10480
 
infodir!$infodir$ac_delim
10481
 
htmldir!$htmldir$ac_delim
10482
 
dvidir!$dvidir$ac_delim
10483
 
pdfdir!$pdfdir$ac_delim
10484
 
psdir!$psdir$ac_delim
10485
 
libdir!$libdir$ac_delim
10486
 
localedir!$localedir$ac_delim
10487
 
mandir!$mandir$ac_delim
10488
 
DEFS!$DEFS$ac_delim
10489
 
ECHO_C!$ECHO_C$ac_delim
10490
 
ECHO_N!$ECHO_N$ac_delim
10491
 
ECHO_T!$ECHO_T$ac_delim
10492
 
LIBS!$LIBS$ac_delim
10493
 
build_alias!$build_alias$ac_delim
10494
 
host_alias!$host_alias$ac_delim
10495
 
target_alias!$target_alias$ac_delim
10496
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10497
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10498
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
10499
 
am__isrc!$am__isrc$ac_delim
10500
 
CYGPATH_W!$CYGPATH_W$ac_delim
10501
 
PACKAGE!$PACKAGE$ac_delim
10502
 
VERSION!$VERSION$ac_delim
10503
 
ACLOCAL!$ACLOCAL$ac_delim
10504
 
AUTOCONF!$AUTOCONF$ac_delim
10505
 
AUTOMAKE!$AUTOMAKE$ac_delim
10506
 
AUTOHEADER!$AUTOHEADER$ac_delim
10507
 
MAKEINFO!$MAKEINFO$ac_delim
10508
 
install_sh!$install_sh$ac_delim
10509
 
STRIP!$STRIP$ac_delim
10510
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10511
 
mkdir_p!$mkdir_p$ac_delim
10512
 
AWK!$AWK$ac_delim
10513
 
SET_MAKE!$SET_MAKE$ac_delim
10514
 
am__leading_dot!$am__leading_dot$ac_delim
10515
 
AMTAR!$AMTAR$ac_delim
10516
 
am__tar!$am__tar$ac_delim
10517
 
am__untar!$am__untar$ac_delim
10518
 
CC!$CC$ac_delim
10519
 
CFLAGS!$CFLAGS$ac_delim
10520
 
LDFLAGS!$LDFLAGS$ac_delim
10521
 
CPPFLAGS!$CPPFLAGS$ac_delim
10522
 
ac_ct_CC!$ac_ct_CC$ac_delim
10523
 
EXEEXT!$EXEEXT$ac_delim
10524
 
OBJEXT!$OBJEXT$ac_delim
10525
 
DEPDIR!$DEPDIR$ac_delim
10526
 
am__include!$am__include$ac_delim
10527
 
am__quote!$am__quote$ac_delim
10528
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10529
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10530
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10531
 
CCDEPMODE!$CCDEPMODE$ac_delim
10532
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10533
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10534
 
CXX!$CXX$ac_delim
10535
 
CXXFLAGS!$CXXFLAGS$ac_delim
10536
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
10537
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
10538
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
10539
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
10540
 
RANLIB!$RANLIB$ac_delim
10541
 
regex_cmd!$regex_cmd$ac_delim
10542
 
CXXCPP!$CXXCPP$ac_delim
10543
 
GREP!$GREP$ac_delim
10544
 
EGREP!$EGREP$ac_delim
10545
 
XMKMF!$XMKMF$ac_delim
10546
 
X_CFLAGS!$X_CFLAGS$ac_delim
10547
 
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10548
 
X_LIBS!$X_LIBS$ac_delim
10549
 
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10550
 
gencat_cmd!$gencat_cmd$ac_delim
10551
 
REMEMBER_SRC_TRUE!$REMEMBER_SRC_TRUE$ac_delim
10552
 
REMEMBER_SRC_FALSE!$REMEMBER_SRC_FALSE$ac_delim
10553
 
TOOLBAR_SRC_TRUE!$TOOLBAR_SRC_TRUE$ac_delim
10554
 
TOOLBAR_SRC_FALSE!$TOOLBAR_SRC_FALSE$ac_delim
10555
 
REGEXP_SRC_TRUE!$REGEXP_SRC_TRUE$ac_delim
10556
 
_ACEOF
10557
 
 
10558
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10559
 
    break
10560
 
  elif $ac_last_try; then
10561
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10562
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10563
 
   { (exit 1); exit 1; }; }
10564
 
  else
10565
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10566
 
  fi
10567
 
done
10568
 
 
10569
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10570
 
if test -n "$ac_eof"; then
10571
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10572
 
  ac_eof=`expr $ac_eof + 1`
10573
 
fi
10574
 
 
10575
 
cat >>$CONFIG_STATUS <<_ACEOF
10576
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10577
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10578
 
_ACEOF
10579
 
sed '
10580
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10581
 
s/^/s,@/; s/!/@,|#_!!_#|/
10582
 
:n
10583
 
t n
10584
 
s/'"$ac_delim"'$/,g/; t
10585
 
s/$/\\/; p
10586
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10587
 
' >>$CONFIG_STATUS <conf$$subs.sed
10588
 
rm -f conf$$subs.sed
10589
 
cat >>$CONFIG_STATUS <<_ACEOF
10590
 
CEOF$ac_eof
10591
 
_ACEOF
10592
 
 
10593
 
 
10594
 
ac_delim='%!_!# '
10595
 
for ac_last_try in false false false false false :; do
10596
 
  cat >conf$$subs.sed <<_ACEOF
10597
 
REGEXP_SRC_FALSE!$REGEXP_SRC_FALSE$ac_delim
10598
 
NEWWMSPEC_TRUE!$NEWWMSPEC_TRUE$ac_delim
10599
 
NEWWMSPEC_FALSE!$NEWWMSPEC_FALSE$ac_delim
10600
 
DEBUG!$DEBUG$ac_delim
10601
 
NLS!$NLS$ac_delim
10602
 
GNOME_TRUE!$GNOME_TRUE$ac_delim
10603
 
GNOME_FALSE!$GNOME_FALSE$ac_delim
10604
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
10605
 
XFT_TRUE!$XFT_TRUE$ac_delim
10606
 
XFT_FALSE!$XFT_FALSE$ac_delim
10607
 
XPM_TRUE!$XPM_TRUE$ac_delim
10608
 
XPM_FALSE!$XPM_FALSE$ac_delim
10609
 
IMLIB2_CONFIG!$IMLIB2_CONFIG$ac_delim
10610
 
IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10611
 
IMLIB2_LIBS!$IMLIB2_LIBS$ac_delim
10612
 
IMLIB2_TRUE!$IMLIB2_TRUE$ac_delim
10613
 
IMLIB2_FALSE!$IMLIB2_FALSE$ac_delim
10614
 
MULTIBYTE_TRUE!$MULTIBYTE_TRUE$ac_delim
10615
 
MULTIBYTE_FALSE!$MULTIBYTE_FALSE$ac_delim
10616
 
DEFAULT_MENU!$DEFAULT_MENU$ac_delim
10617
 
DEFAULT_WINDOWMENU!$DEFAULT_WINDOWMENU$ac_delim
10618
 
DEFAULT_STYLE!$DEFAULT_STYLE$ac_delim
10619
 
DEFAULT_KEYS!$DEFAULT_KEYS$ac_delim
10620
 
DEFAULT_APPS!$DEFAULT_APPS$ac_delim
10621
 
DEFAULT_OVERLAY!$DEFAULT_OVERLAY$ac_delim
10622
 
DEFAULT_INIT!$DEFAULT_INIT$ac_delim
10623
 
LOCALE_PATH!$LOCALE_PATH$ac_delim
10624
 
program_prefix!$program_prefix$ac_delim
10625
 
program_suffix!$program_suffix$ac_delim
10626
 
LIBOBJS!$LIBOBJS$ac_delim
10627
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
10628
 
_ACEOF
10629
 
 
10630
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
10631
 
    break
10632
 
  elif $ac_last_try; then
10633
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10634
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10635
 
   { (exit 1); exit 1; }; }
10636
 
  else
10637
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10638
 
  fi
10639
 
done
10640
 
 
10641
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10642
 
if test -n "$ac_eof"; then
10643
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10644
 
  ac_eof=`expr $ac_eof + 1`
10645
 
fi
10646
 
 
10647
 
cat >>$CONFIG_STATUS <<_ACEOF
10648
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10649
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10650
 
_ACEOF
10651
 
sed '
10652
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10653
 
s/^/s,@/; s/!/@,|#_!!_#|/
10654
 
:n
10655
 
t n
10656
 
s/'"$ac_delim"'$/,g/; t
10657
 
s/$/\\/; p
10658
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10659
 
' >>$CONFIG_STATUS <conf$$subs.sed
10660
 
rm -f conf$$subs.sed
10661
 
cat >>$CONFIG_STATUS <<_ACEOF
10662
 
:end
10663
 
s/|#_!!_#|//g
10664
 
CEOF$ac_eof
10665
 
_ACEOF
10666
 
 
 
9512
 
 
9513
ac_cr=`echo X | tr X '\015'`
 
9514
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
9515
# But we know of no other shell where ac_cr would be empty at this
 
9516
# point, so we can use a bashism as a fallback.
 
9517
if test "x$ac_cr" = x; then
 
9518
  eval ac_cr=\$\'\\r\'
 
9519
fi
 
9520
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
9521
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
9522
  ac_cs_awk_cr='\r'
 
9523
else
 
9524
  ac_cs_awk_cr=$ac_cr
 
9525
fi
 
9526
 
 
9527
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
9528
_ACEOF
 
9529
 
 
9530
 
 
9531
{
 
9532
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
9533
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
9534
  echo "_ACEOF"
 
9535
} >conf$$subs.sh ||
 
9536
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
9537
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
9538
ac_delim='%!_!# '
 
9539
for ac_last_try in false false false false false :; do
 
9540
  . ./conf$$subs.sh ||
 
9541
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
9542
 
 
9543
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
9544
  if test $ac_delim_n = $ac_delim_num; then
 
9545
    break
 
9546
  elif $ac_last_try; then
 
9547
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
9548
  else
 
9549
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
9550
  fi
 
9551
done
 
9552
rm -f conf$$subs.sh
 
9553
 
 
9554
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9555
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
9556
_ACEOF
 
9557
sed -n '
 
9558
h
 
9559
s/^/S["/; s/!.*/"]=/
 
9560
p
 
9561
g
 
9562
s/^[^!]*!//
 
9563
:repl
 
9564
t repl
 
9565
s/'"$ac_delim"'$//
 
9566
t delim
 
9567
:nl
 
9568
h
 
9569
s/\(.\{148\}\)..*/\1/
 
9570
t more1
 
9571
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
9572
p
 
9573
n
 
9574
b repl
 
9575
:more1
 
9576
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
9577
p
 
9578
g
 
9579
s/.\{148\}//
 
9580
t nl
 
9581
:delim
 
9582
h
 
9583
s/\(.\{148\}\)..*/\1/
 
9584
t more2
 
9585
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
9586
p
 
9587
b
 
9588
:more2
 
9589
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
9590
p
 
9591
g
 
9592
s/.\{148\}//
 
9593
t delim
 
9594
' <conf$$subs.awk | sed '
 
9595
/^[^""]/{
 
9596
  N
 
9597
  s/\n//
 
9598
}
 
9599
' >>$CONFIG_STATUS || ac_write_fail=1
 
9600
rm -f conf$$subs.awk
 
9601
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9602
_ACAWK
 
9603
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
9604
  for (key in S) S_is_set[key] = 1
 
9605
  FS = ""
 
9606
 
 
9607
}
 
9608
{
 
9609
  line = $ 0
 
9610
  nfields = split(line, field, "@")
 
9611
  substed = 0
 
9612
  len = length(field[1])
 
9613
  for (i = 2; i < nfields; i++) {
 
9614
    key = field[i]
 
9615
    keylen = length(key)
 
9616
    if (S_is_set[key]) {
 
9617
      value = S[key]
 
9618
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
9619
      len += length(value) + length(field[++i])
 
9620
      substed = 1
 
9621
    } else
 
9622
      len += 1 + keylen
 
9623
  }
 
9624
 
 
9625
  print line
 
9626
}
 
9627
 
 
9628
_ACAWK
 
9629
_ACEOF
 
9630
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9631
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
9632
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
9633
else
 
9634
  cat
 
9635
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
9636
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
9637
_ACEOF
10667
9638
 
10668
9639
# VPATH may cause trouble with some makes, so we remove $(srcdir),
10669
9640
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10680
9651
}'
10681
9652
fi
10682
9653
 
10683
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9654
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10684
9655
fi # test -n "$CONFIG_FILES"
10685
9656
 
10686
 
 
10687
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
9657
# Set up the scripts for CONFIG_HEADERS section.
 
9658
# No need to generate them if there are no CONFIG_HEADERS.
 
9659
# This happens for instance with `./config.status Makefile'.
 
9660
if test -n "$CONFIG_HEADERS"; then
 
9661
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
9662
BEGIN {
 
9663
_ACEOF
 
9664
 
 
9665
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
9666
# here-document in config.status, that substitutes the proper values into
 
9667
# config.h.in to produce config.h.
 
9668
 
 
9669
# Create a delimiter string that does not exist in confdefs.h, to ease
 
9670
# handling of long lines.
 
9671
ac_delim='%!_!# '
 
9672
for ac_last_try in false false :; do
 
9673
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
9674
  if test -z "$ac_t"; then
 
9675
    break
 
9676
  elif $ac_last_try; then
 
9677
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
9678
  else
 
9679
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
9680
  fi
 
9681
done
 
9682
 
 
9683
# For the awk script, D is an array of macro values keyed by name,
 
9684
# likewise P contains macro parameters if any.  Preserve backslash
 
9685
# newline sequences.
 
9686
 
 
9687
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
9688
sed -n '
 
9689
s/.\{148\}/&'"$ac_delim"'/g
 
9690
t rset
 
9691
:rset
 
9692
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
9693
t def
 
9694
d
 
9695
:def
 
9696
s/\\$//
 
9697
t bsnl
 
9698
s/["\\]/\\&/g
 
9699
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
9700
D["\1"]=" \3"/p
 
9701
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
9702
d
 
9703
:bsnl
 
9704
s/["\\]/\\&/g
 
9705
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
9706
D["\1"]=" \3\\\\\\n"\\/p
 
9707
t cont
 
9708
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
9709
t cont
 
9710
d
 
9711
:cont
 
9712
n
 
9713
s/.\{148\}/&'"$ac_delim"'/g
 
9714
t clear
 
9715
:clear
 
9716
s/\\$//
 
9717
t bsnlc
 
9718
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
9719
d
 
9720
:bsnlc
 
9721
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
9722
b cont
 
9723
' <confdefs.h | sed '
 
9724
s/'"$ac_delim"'/"\\\
 
9725
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
9726
 
 
9727
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9728
  for (key in D) D_is_set[key] = 1
 
9729
  FS = ""
 
9730
}
 
9731
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
9732
  line = \$ 0
 
9733
  split(line, arg, " ")
 
9734
  if (arg[1] == "#") {
 
9735
    defundef = arg[2]
 
9736
    mac1 = arg[3]
 
9737
  } else {
 
9738
    defundef = substr(arg[1], 2)
 
9739
    mac1 = arg[2]
 
9740
  }
 
9741
  split(mac1, mac2, "(") #)
 
9742
  macro = mac2[1]
 
9743
  prefix = substr(line, 1, index(line, defundef) - 1)
 
9744
  if (D_is_set[macro]) {
 
9745
    # Preserve the white space surrounding the "#".
 
9746
    print prefix "define", macro P[macro] D[macro]
 
9747
    next
 
9748
  } else {
 
9749
    # Replace #undef with comments.  This is necessary, for example,
 
9750
    # in the case of _POSIX_SOURCE, which is predefined and required
 
9751
    # on some systems where configure will not decide to define it.
 
9752
    if (defundef == "undef") {
 
9753
      print "/*", prefix defundef, macro, "*/"
 
9754
      next
 
9755
    }
 
9756
  }
 
9757
}
 
9758
{ print }
 
9759
_ACAWK
 
9760
_ACEOF
 
9761
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9762
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
9763
fi # test -n "$CONFIG_HEADERS"
 
9764
 
 
9765
 
 
9766
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
9767
shift
 
9768
for ac_tag
10688
9769
do
10689
9770
  case $ac_tag in
10690
9771
  :[FHLC]) ac_mode=$ac_tag; continue;;
10691
9772
  esac
10692
9773
  case $ac_mode$ac_tag in
10693
9774
  :[FHL]*:*);;
10694
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10695
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10696
 
   { (exit 1); exit 1; }; };;
 
9775
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10697
9776
  :[FH]-) ac_tag=-:-;;
10698
9777
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10699
9778
  esac
10721
9800
           [\\/$]*) false;;
10722
9801
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10723
9802
           esac ||
10724
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10725
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10726
 
   { (exit 1); exit 1; }; };;
 
9803
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10727
9804
      esac
10728
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
9805
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
9806
      as_fn_append ac_file_inputs " '$ac_f'"
10729
9807
    done
10730
9808
 
10731
9809
    # Let's still pretend it is `configure' which instantiates (i.e., don't
10732
9810
    # use $as_me), people would be surprised to read:
10733
9811
    #    /* config.h.  Generated by config.status.  */
10734
 
    configure_input="Generated from "`IFS=:
10735
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
9812
    configure_input='Generated from '`
 
9813
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
9814
        `' by configure.'
10736
9815
    if test x"$ac_file" != x-; then
10737
9816
      configure_input="$ac_file.  $configure_input"
10738
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
10739
 
echo "$as_me: creating $ac_file" >&6;}
 
9817
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
9818
$as_echo "$as_me: creating $ac_file" >&6;}
10740
9819
    fi
 
9820
    # Neutralize special characters interpreted by sed in replacement strings.
 
9821
    case $configure_input in #(
 
9822
    *\&* | *\|* | *\\* )
 
9823
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
9824
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
9825
    *) ac_sed_conf_input=$configure_input;;
 
9826
    esac
10741
9827
 
10742
9828
    case $ac_tag in
10743
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
9829
    *:-:* | *:-) cat >"$tmp/stdin" \
 
9830
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10744
9831
    esac
10745
9832
    ;;
10746
9833
  esac
10750
9837
         X"$ac_file" : 'X\(//\)[^/]' \| \
10751
9838
         X"$ac_file" : 'X\(//\)$' \| \
10752
9839
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10753
 
echo X"$ac_file" |
10754
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10755
 
            s//\1/
10756
 
            q
10757
 
          }
10758
 
          /^X\(\/\/\)[^/].*/{
10759
 
            s//\1/
10760
 
            q
10761
 
          }
10762
 
          /^X\(\/\/\)$/{
10763
 
            s//\1/
10764
 
            q
10765
 
          }
10766
 
          /^X\(\/\).*/{
10767
 
            s//\1/
10768
 
            q
10769
 
          }
10770
 
          s/.*/./; q'`
10771
 
  { as_dir="$ac_dir"
10772
 
  case $as_dir in #(
10773
 
  -*) as_dir=./$as_dir;;
10774
 
  esac
10775
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10776
 
    as_dirs=
10777
 
    while :; do
10778
 
      case $as_dir in #(
10779
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10780
 
      *) as_qdir=$as_dir;;
10781
 
      esac
10782
 
      as_dirs="'$as_qdir' $as_dirs"
10783
 
      as_dir=`$as_dirname -- "$as_dir" ||
10784
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10785
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
10786
 
         X"$as_dir" : 'X\(//\)$' \| \
10787
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10788
 
echo X"$as_dir" |
10789
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10790
 
            s//\1/
10791
 
            q
10792
 
          }
10793
 
          /^X\(\/\/\)[^/].*/{
10794
 
            s//\1/
10795
 
            q
10796
 
          }
10797
 
          /^X\(\/\/\)$/{
10798
 
            s//\1/
10799
 
            q
10800
 
          }
10801
 
          /^X\(\/\).*/{
10802
 
            s//\1/
10803
 
            q
10804
 
          }
10805
 
          s/.*/./; q'`
10806
 
      test -d "$as_dir" && break
10807
 
    done
10808
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
10809
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10810
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
10811
 
   { (exit 1); exit 1; }; }; }
 
9840
$as_echo X"$ac_file" |
 
9841
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
9842
            s//\1/
 
9843
            q
 
9844
          }
 
9845
          /^X\(\/\/\)[^/].*/{
 
9846
            s//\1/
 
9847
            q
 
9848
          }
 
9849
          /^X\(\/\/\)$/{
 
9850
            s//\1/
 
9851
            q
 
9852
          }
 
9853
          /^X\(\/\).*/{
 
9854
            s//\1/
 
9855
            q
 
9856
          }
 
9857
          s/.*/./; q'`
 
9858
  as_dir="$ac_dir"; as_fn_mkdir_p
10812
9859
  ac_builddir=.
10813
9860
 
10814
9861
case "$ac_dir" in
10815
9862
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10816
9863
*)
10817
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9864
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10818
9865
  # A ".." for each directory in $ac_dir_suffix.
10819
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
9866
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10820
9867
  case $ac_top_builddir_sub in
10821
9868
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10822
9869
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10861
9908
  esac
10862
9909
_ACEOF
10863
9910
 
10864
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9911
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10865
9912
# If the template does not know about datarootdir, expand it.
10866
9913
# FIXME: This hack should be removed a few years after 2.60.
10867
9914
ac_datarootdir_hack=; ac_datarootdir_seen=
10868
 
 
10869
 
case `sed -n '/datarootdir/ {
 
9915
ac_sed_dataroot='
 
9916
/datarootdir/ {
10870
9917
  p
10871
9918
  q
10872
9919
}
10874
9921
/@docdir@/p
10875
9922
/@infodir@/p
10876
9923
/@localedir@/p
10877
 
/@mandir@/p
10878
 
' $ac_file_inputs` in
 
9924
/@mandir@/p'
 
9925
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10879
9926
*datarootdir*) ac_datarootdir_seen=yes;;
10880
9927
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10881
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10882
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
9928
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
9929
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10883
9930
_ACEOF
10884
 
cat >>$CONFIG_STATUS <<_ACEOF
 
9931
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10885
9932
  ac_datarootdir_hack='
10886
9933
  s&@datadir@&$datadir&g
10887
9934
  s&@docdir@&$docdir&g
10888
9935
  s&@infodir@&$infodir&g
10889
9936
  s&@localedir@&$localedir&g
10890
9937
  s&@mandir@&$mandir&g
10891
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
9938
  s&\\\${datarootdir}&$datarootdir&g' ;;
10892
9939
esac
10893
9940
_ACEOF
10894
9941
 
10895
9942
# Neutralize VPATH when `$srcdir' = `.'.
10896
9943
# Shell code in configure.ac might set extrasub.
10897
9944
# FIXME: do we really want to maintain this feature?
10898
 
cat >>$CONFIG_STATUS <<_ACEOF
10899
 
  sed "$ac_vpsub
 
9945
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9946
ac_sed_extra="$ac_vpsub
10900
9947
$extrasub
10901
9948
_ACEOF
10902
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9949
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10903
9950
:t
10904
9951
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10905
 
s&@configure_input@&$configure_input&;t t
 
9952
s|@configure_input@|$ac_sed_conf_input|;t t
10906
9953
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
9954
s&@top_build_prefix@&$ac_top_build_prefix&;t t
10907
9955
s&@srcdir@&$ac_srcdir&;t t
10908
9956
s&@abs_srcdir@&$ac_abs_srcdir&;t t
10909
9957
s&@top_srcdir@&$ac_top_srcdir&;t t
10914
9962
s&@INSTALL@&$ac_INSTALL&;t t
10915
9963
s&@MKDIR_P@&$ac_MKDIR_P&;t t
10916
9964
$ac_datarootdir_hack
10917
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
9965
"
 
9966
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
9967
  || as_fn_error "could not create $ac_file" "$LINENO" 5
10918
9968
 
10919
9969
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10920
9970
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10921
9971
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10922
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
9972
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10923
9973
which seems to be undefined.  Please make sure it is defined." >&5
10924
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
9974
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10925
9975
which seems to be undefined.  Please make sure it is defined." >&2;}
10926
9976
 
10927
9977
  rm -f "$tmp/stdin"
10928
9978
  case $ac_file in
10929
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
10930
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10931
 
  esac
 
9979
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
9980
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
9981
  esac \
 
9982
  || as_fn_error "could not create $ac_file" "$LINENO" 5
10932
9983
 ;;
10933
9984
  :H)
10934
9985
  #
10935
9986
  # CONFIG_HEADER
10936
9987
  #
10937
 
_ACEOF
10938
 
 
10939
 
# Transform confdefs.h into a sed script `conftest.defines', that
10940
 
# substitutes the proper values into config.h.in to produce config.h.
10941
 
rm -f conftest.defines conftest.tail
10942
 
# First, append a space to every undef/define line, to ease matching.
10943
 
echo 's/$/ /' >conftest.defines
10944
 
# Then, protect against being on the right side of a sed subst, or in
10945
 
# an unquoted here document, in config.status.  If some macros were
10946
 
# called several times there might be several #defines for the same
10947
 
# symbol, which is useless.  But do not sort them, since the last
10948
 
# AC_DEFINE must be honored.
10949
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10950
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10951
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
10952
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
10953
 
# just an empty string.
10954
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
10955
 
ac_dB='\\)[      (].*,\\1define\\2'
10956
 
ac_dC=' '
10957
 
ac_dD=' ,'
10958
 
 
10959
 
uniq confdefs.h |
10960
 
  sed -n '
10961
 
        t rset
10962
 
        :rset
10963
 
        s/^[     ]*#[    ]*define[       ][      ]*//
10964
 
        t ok
10965
 
        d
10966
 
        :ok
10967
 
        s/[\\&,]/\\&/g
10968
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10969
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10970
 
  ' >>conftest.defines
10971
 
 
10972
 
# Remove the space that was appended to ease matching.
10973
 
# Then replace #undef with comments.  This is necessary, for
10974
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
10975
 
# on some systems where configure will not decide to define it.
10976
 
# (The regexp can be short, since the line contains either #define or #undef.)
10977
 
echo 's/ $//
10978
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
10979
 
 
10980
 
# Break up conftest.defines:
10981
 
ac_max_sed_lines=50
10982
 
 
10983
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10984
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10985
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10986
 
# et cetera.
10987
 
ac_in='$ac_file_inputs'
10988
 
ac_out='"$tmp/out1"'
10989
 
ac_nxt='"$tmp/out2"'
10990
 
 
10991
 
while :
10992
 
do
10993
 
  # Write a here document:
10994
 
    cat >>$CONFIG_STATUS <<_ACEOF
10995
 
    # First, check the format of the line:
10996
 
    cat >"\$tmp/defines.sed" <<\\CEOF
10997
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
10998
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
10999
 
b
11000
 
:def
11001
 
_ACEOF
11002
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11003
 
  echo 'CEOF
11004
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11005
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11006
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11007
 
  grep . conftest.tail >/dev/null || break
11008
 
  rm -f conftest.defines
11009
 
  mv conftest.tail conftest.defines
11010
 
done
11011
 
rm -f conftest.defines conftest.tail
11012
 
 
11013
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
11014
 
cat >>$CONFIG_STATUS <<\_ACEOF
11015
9988
  if test x"$ac_file" != x-; then
11016
 
    echo "/* $configure_input  */" >"$tmp/config.h"
11017
 
    cat "$ac_result" >>"$tmp/config.h"
11018
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11019
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11020
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
9989
    {
 
9990
      $as_echo "/* $configure_input  */" \
 
9991
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
9992
    } >"$tmp/config.h" \
 
9993
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
9994
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
9995
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
9996
$as_echo "$as_me: $ac_file is unchanged" >&6;}
11021
9997
    else
11022
 
      rm -f $ac_file
11023
 
      mv "$tmp/config.h" $ac_file
 
9998
      rm -f "$ac_file"
 
9999
      mv "$tmp/config.h" "$ac_file" \
 
10000
        || as_fn_error "could not create $ac_file" "$LINENO" 5
11024
10001
    fi
11025
10002
  else
11026
 
    echo "/* $configure_input  */"
11027
 
    cat "$ac_result"
 
10003
    $as_echo "/* $configure_input  */" \
 
10004
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
10005
      || as_fn_error "could not create -" "$LINENO" 5
11028
10006
  fi
11029
 
  rm -f "$tmp/out12"
11030
 
# Compute $ac_file's index in $config_headers.
11031
 
_am_arg=$ac_file
 
10007
# Compute "$ac_file"'s index in $config_headers.
 
10008
_am_arg="$ac_file"
11032
10009
_am_stamp_count=1
11033
10010
for _am_header in $config_headers :; do
11034
10011
  case $_am_header in
11043
10020
         X"$_am_arg" : 'X\(//\)[^/]' \| \
11044
10021
         X"$_am_arg" : 'X\(//\)$' \| \
11045
10022
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11046
 
echo X"$_am_arg" |
 
10023
$as_echo X"$_am_arg" |
11047
10024
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11048
10025
            s//\1/
11049
10026
            q
11063
10040
          s/.*/./; q'`/stamp-h$_am_stamp_count
11064
10041
 ;;
11065
10042
 
11066
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11067
 
echo "$as_me: executing $ac_file commands" >&6;}
 
10043
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
10044
$as_echo "$as_me: executing $ac_file commands" >&6;}
11068
10045
 ;;
11069
10046
  esac
11070
10047
 
11071
10048
 
11072
10049
  case $ac_file$ac_mode in
11073
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11074
 
  # Strip MF so we end up with the name of the file.
11075
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
11076
 
  # Check whether this is an Automake generated Makefile or not.
11077
 
  # We used to match only the files named `Makefile.in', but
11078
 
  # some people rename them; so instead we look at the file content.
11079
 
  # Grep'ing the first line is not enough: some people post-process
11080
 
  # each Makefile.in and add a new line on top of each file to say so.
11081
 
  # Grep'ing the whole file is not good either: AIX grep has a line
11082
 
  # limit of 2048, but all sed's we know have understand at least 4000.
11083
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11084
 
    dirpart=`$as_dirname -- "$mf" ||
 
10050
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
10051
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
10052
  # are listed without --file.  Let's play safe and only enable the eval
 
10053
  # if we detect the quoting.
 
10054
  case $CONFIG_FILES in
 
10055
  *\'*) eval set x "$CONFIG_FILES" ;;
 
10056
  *)   set x $CONFIG_FILES ;;
 
10057
  esac
 
10058
  shift
 
10059
  for mf
 
10060
  do
 
10061
    # Strip MF so we end up with the name of the file.
 
10062
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10063
    # Check whether this is an Automake generated Makefile or not.
 
10064
    # We used to match only the files named `Makefile.in', but
 
10065
    # some people rename them; so instead we look at the file content.
 
10066
    # Grep'ing the first line is not enough: some people post-process
 
10067
    # each Makefile.in and add a new line on top of each file to say so.
 
10068
    # Grep'ing the whole file is not good either: AIX grep has a line
 
10069
    # limit of 2048, but all sed's we know have understand at least 4000.
 
10070
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
10071
      dirpart=`$as_dirname -- "$mf" ||
11085
10072
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11086
10073
         X"$mf" : 'X\(//\)[^/]' \| \
11087
10074
         X"$mf" : 'X\(//\)$' \| \
11088
10075
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11089
 
echo X"$mf" |
 
10076
$as_echo X"$mf" |
11090
10077
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11091
10078
            s//\1/
11092
10079
            q
11104
10091
            q
11105
10092
          }
11106
10093
          s/.*/./; q'`
11107
 
  else
11108
 
    continue
11109
 
  fi
11110
 
  # Extract the definition of DEPDIR, am__include, and am__quote
11111
 
  # from the Makefile without running `make'.
11112
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11113
 
  test -z "$DEPDIR" && continue
11114
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
11115
 
  test -z "am__include" && continue
11116
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11117
 
  # When using ansi2knr, U may be empty or an underscore; expand it
11118
 
  U=`sed -n 's/^U = //p' < "$mf"`
11119
 
  # Find all dependency output files, they are included files with
11120
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
11121
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
11122
 
  # expansion.
11123
 
  for file in `sed -n "
11124
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11125
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11126
 
    # Make sure the directory exists.
11127
 
    test -f "$dirpart/$file" && continue
11128
 
    fdir=`$as_dirname -- "$file" ||
 
10094
    else
 
10095
      continue
 
10096
    fi
 
10097
    # Extract the definition of DEPDIR, am__include, and am__quote
 
10098
    # from the Makefile without running `make'.
 
10099
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
10100
    test -z "$DEPDIR" && continue
 
10101
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
10102
    test -z "am__include" && continue
 
10103
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
10104
    # When using ansi2knr, U may be empty or an underscore; expand it
 
10105
    U=`sed -n 's/^U = //p' < "$mf"`
 
10106
    # Find all dependency output files, they are included files with
 
10107
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
10108
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
10109
    # expansion.
 
10110
    for file in `sed -n "
 
10111
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
10112
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
10113
      # Make sure the directory exists.
 
10114
      test -f "$dirpart/$file" && continue
 
10115
      fdir=`$as_dirname -- "$file" ||
11129
10116
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11130
10117
         X"$file" : 'X\(//\)[^/]' \| \
11131
10118
         X"$file" : 'X\(//\)$' \| \
11132
10119
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11133
 
echo X"$file" |
11134
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11135
 
            s//\1/
11136
 
            q
11137
 
          }
11138
 
          /^X\(\/\/\)[^/].*/{
11139
 
            s//\1/
11140
 
            q
11141
 
          }
11142
 
          /^X\(\/\/\)$/{
11143
 
            s//\1/
11144
 
            q
11145
 
          }
11146
 
          /^X\(\/\).*/{
11147
 
            s//\1/
11148
 
            q
11149
 
          }
11150
 
          s/.*/./; q'`
11151
 
    { as_dir=$dirpart/$fdir
11152
 
  case $as_dir in #(
11153
 
  -*) as_dir=./$as_dir;;
11154
 
  esac
11155
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11156
 
    as_dirs=
11157
 
    while :; do
11158
 
      case $as_dir in #(
11159
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11160
 
      *) as_qdir=$as_dir;;
11161
 
      esac
11162
 
      as_dirs="'$as_qdir' $as_dirs"
11163
 
      as_dir=`$as_dirname -- "$as_dir" ||
11164
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11165
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
11166
 
         X"$as_dir" : 'X\(//\)$' \| \
11167
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11168
 
echo X"$as_dir" |
11169
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11170
 
            s//\1/
11171
 
            q
11172
 
          }
11173
 
          /^X\(\/\/\)[^/].*/{
11174
 
            s//\1/
11175
 
            q
11176
 
          }
11177
 
          /^X\(\/\/\)$/{
11178
 
            s//\1/
11179
 
            q
11180
 
          }
11181
 
          /^X\(\/\).*/{
11182
 
            s//\1/
11183
 
            q
11184
 
          }
11185
 
          s/.*/./; q'`
11186
 
      test -d "$as_dir" && break
 
10120
$as_echo X"$file" |
 
10121
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
10122
            s//\1/
 
10123
            q
 
10124
          }
 
10125
          /^X\(\/\/\)[^/].*/{
 
10126
            s//\1/
 
10127
            q
 
10128
          }
 
10129
          /^X\(\/\/\)$/{
 
10130
            s//\1/
 
10131
            q
 
10132
          }
 
10133
          /^X\(\/\).*/{
 
10134
            s//\1/
 
10135
            q
 
10136
          }
 
10137
          s/.*/./; q'`
 
10138
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
10139
      # echo "creating $dirpart/$file"
 
10140
      echo '# dummy' > "$dirpart/$file"
11187
10141
    done
11188
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11189
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11190
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
11191
 
   { (exit 1); exit 1; }; }; }
11192
 
    # echo "creating $dirpart/$file"
11193
 
    echo '# dummy' > "$dirpart/$file"
11194
10142
  done
11195
 
done
 
10143
}
11196
10144
 ;;
11197
10145
 
11198
10146
  esac
11199
10147
done # for ac_tag
11200
10148
 
11201
10149
 
11202
 
{ (exit 0); exit 0; }
 
10150
as_fn_exit 0
11203
10151
_ACEOF
11204
 
chmod +x $CONFIG_STATUS
11205
10152
ac_clean_files=$ac_clean_files_save
11206
10153
 
 
10154
test $ac_write_fail = 0 ||
 
10155
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
10156
 
11207
10157
 
11208
10158
# configure is writing to config.log, and then calls config.status.
11209
10159
# config.status does its own redirection, appending to config.log.
11223
10173
  exec 5>>config.log
11224
10174
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11225
10175
  # would make configure fail if this is the last instruction.
11226
 
  $ac_cs_success || { (exit 1); exit 1; }
11227
 
fi
11228
 
 
11229
 
 
11230
 
 
11231
 
for ac_func in gettimeofday
11232
 
do
11233
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11235
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11236
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11238
 
else
11239
 
  cat >conftest.$ac_ext <<_ACEOF
11240
 
/* confdefs.h.  */
11241
 
_ACEOF
11242
 
cat confdefs.h >>conftest.$ac_ext
11243
 
cat >>conftest.$ac_ext <<_ACEOF
11244
 
/* end confdefs.h.  */
11245
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11247
 
#define $ac_func innocuous_$ac_func
11248
 
 
11249
 
/* System header to define __stub macros and hopefully few prototypes,
11250
 
    which can conflict with char $ac_func (); below.
11251
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252
 
    <limits.h> exists even on freestanding compilers.  */
11253
 
 
11254
 
#ifdef __STDC__
11255
 
# include <limits.h>
11256
 
#else
11257
 
# include <assert.h>
11258
 
#endif
11259
 
 
11260
 
#undef $ac_func
11261
 
 
11262
 
/* Override any GCC internal prototype to avoid an error.
11263
 
   Use char because int might match the return type of a GCC
11264
 
   builtin and then its argument prototype would still apply.  */
11265
 
#ifdef __cplusplus
11266
 
extern "C"
11267
 
#endif
11268
 
char $ac_func ();
11269
 
/* The GNU C library defines this for functions which it implements
11270
 
    to always fail with ENOSYS.  Some functions are actually named
11271
 
    something starting with __ and the normal name is an alias.  */
11272
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11273
 
choke me
11274
 
#endif
11275
 
 
11276
 
int
11277
 
main ()
11278
 
{
11279
 
return $ac_func ();
11280
 
  ;
11281
 
  return 0;
11282
 
}
11283
 
_ACEOF
11284
 
rm -f conftest.$ac_objext conftest$ac_exeext
11285
 
if { (ac_try="$ac_link"
11286
 
case "(($ac_try" in
11287
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288
 
  *) ac_try_echo=$ac_try;;
11289
 
esac
11290
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291
 
  (eval "$ac_link") 2>conftest.er1
11292
 
  ac_status=$?
11293
 
  grep -v '^ *+' conftest.er1 >conftest.err
11294
 
  rm -f conftest.er1
11295
 
  cat conftest.err >&5
11296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297
 
  (exit $ac_status); } && {
11298
 
         test -z "$ac_cxx_werror_flag" ||
11299
 
         test ! -s conftest.err
11300
 
       } && test -s conftest$ac_exeext &&
11301
 
       $as_test_x conftest$ac_exeext; then
11302
 
  eval "$as_ac_var=yes"
11303
 
else
11304
 
  echo "$as_me: failed program was:" >&5
11305
 
sed 's/^/| /' conftest.$ac_ext >&5
11306
 
 
11307
 
        eval "$as_ac_var=no"
11308
 
fi
11309
 
 
11310
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11311
 
      conftest$ac_exeext conftest.$ac_ext
11312
 
fi
11313
 
ac_res=`eval echo '${'$as_ac_var'}'`
11314
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11315
 
echo "${ECHO_T}$ac_res" >&6; }
11316
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11317
 
  cat >>confdefs.h <<_ACEOF
11318
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319
 
_ACEOF
11320
 
 
11321
 
fi
11322
 
done
11323
 
 
11324
 
 
11325
 
for ac_func in memset
11326
 
do
11327
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11328
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11329
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11330
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11331
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11332
 
else
11333
 
  cat >conftest.$ac_ext <<_ACEOF
11334
 
/* confdefs.h.  */
11335
 
_ACEOF
11336
 
cat confdefs.h >>conftest.$ac_ext
11337
 
cat >>conftest.$ac_ext <<_ACEOF
11338
 
/* end confdefs.h.  */
11339
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11340
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11341
 
#define $ac_func innocuous_$ac_func
11342
 
 
11343
 
/* System header to define __stub macros and hopefully few prototypes,
11344
 
    which can conflict with char $ac_func (); below.
11345
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346
 
    <limits.h> exists even on freestanding compilers.  */
11347
 
 
11348
 
#ifdef __STDC__
11349
 
# include <limits.h>
11350
 
#else
11351
 
# include <assert.h>
11352
 
#endif
11353
 
 
11354
 
#undef $ac_func
11355
 
 
11356
 
/* Override any GCC internal prototype to avoid an error.
11357
 
   Use char because int might match the return type of a GCC
11358
 
   builtin and then its argument prototype would still apply.  */
11359
 
#ifdef __cplusplus
11360
 
extern "C"
11361
 
#endif
11362
 
char $ac_func ();
11363
 
/* The GNU C library defines this for functions which it implements
11364
 
    to always fail with ENOSYS.  Some functions are actually named
11365
 
    something starting with __ and the normal name is an alias.  */
11366
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11367
 
choke me
11368
 
#endif
11369
 
 
11370
 
int
11371
 
main ()
11372
 
{
11373
 
return $ac_func ();
11374
 
  ;
11375
 
  return 0;
11376
 
}
11377
 
_ACEOF
11378
 
rm -f conftest.$ac_objext conftest$ac_exeext
11379
 
if { (ac_try="$ac_link"
11380
 
case "(($ac_try" in
11381
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382
 
  *) ac_try_echo=$ac_try;;
11383
 
esac
11384
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385
 
  (eval "$ac_link") 2>conftest.er1
11386
 
  ac_status=$?
11387
 
  grep -v '^ *+' conftest.er1 >conftest.err
11388
 
  rm -f conftest.er1
11389
 
  cat conftest.err >&5
11390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391
 
  (exit $ac_status); } && {
11392
 
         test -z "$ac_cxx_werror_flag" ||
11393
 
         test ! -s conftest.err
11394
 
       } && test -s conftest$ac_exeext &&
11395
 
       $as_test_x conftest$ac_exeext; then
11396
 
  eval "$as_ac_var=yes"
11397
 
else
11398
 
  echo "$as_me: failed program was:" >&5
11399
 
sed 's/^/| /' conftest.$ac_ext >&5
11400
 
 
11401
 
        eval "$as_ac_var=no"
11402
 
fi
11403
 
 
11404
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405
 
      conftest$ac_exeext conftest.$ac_ext
11406
 
fi
11407
 
ac_res=`eval echo '${'$as_ac_var'}'`
11408
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11409
 
echo "${ECHO_T}$ac_res" >&6; }
11410
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11411
 
  cat >>confdefs.h <<_ACEOF
11412
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413
 
_ACEOF
11414
 
 
11415
 
fi
11416
 
done
11417
 
 
11418
 
 
11419
 
for ac_func in mkdir
11420
 
do
11421
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11423
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11424
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11425
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11426
 
else
11427
 
  cat >conftest.$ac_ext <<_ACEOF
11428
 
/* confdefs.h.  */
11429
 
_ACEOF
11430
 
cat confdefs.h >>conftest.$ac_ext
11431
 
cat >>conftest.$ac_ext <<_ACEOF
11432
 
/* end confdefs.h.  */
11433
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11435
 
#define $ac_func innocuous_$ac_func
11436
 
 
11437
 
/* System header to define __stub macros and hopefully few prototypes,
11438
 
    which can conflict with char $ac_func (); below.
11439
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440
 
    <limits.h> exists even on freestanding compilers.  */
11441
 
 
11442
 
#ifdef __STDC__
11443
 
# include <limits.h>
11444
 
#else
11445
 
# include <assert.h>
11446
 
#endif
11447
 
 
11448
 
#undef $ac_func
11449
 
 
11450
 
/* Override any GCC internal prototype to avoid an error.
11451
 
   Use char because int might match the return type of a GCC
11452
 
   builtin and then its argument prototype would still apply.  */
11453
 
#ifdef __cplusplus
11454
 
extern "C"
11455
 
#endif
11456
 
char $ac_func ();
11457
 
/* The GNU C library defines this for functions which it implements
11458
 
    to always fail with ENOSYS.  Some functions are actually named
11459
 
    something starting with __ and the normal name is an alias.  */
11460
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11461
 
choke me
11462
 
#endif
11463
 
 
11464
 
int
11465
 
main ()
11466
 
{
11467
 
return $ac_func ();
11468
 
  ;
11469
 
  return 0;
11470
 
}
11471
 
_ACEOF
11472
 
rm -f conftest.$ac_objext conftest$ac_exeext
11473
 
if { (ac_try="$ac_link"
11474
 
case "(($ac_try" in
11475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476
 
  *) ac_try_echo=$ac_try;;
11477
 
esac
11478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479
 
  (eval "$ac_link") 2>conftest.er1
11480
 
  ac_status=$?
11481
 
  grep -v '^ *+' conftest.er1 >conftest.err
11482
 
  rm -f conftest.er1
11483
 
  cat conftest.err >&5
11484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485
 
  (exit $ac_status); } && {
11486
 
         test -z "$ac_cxx_werror_flag" ||
11487
 
         test ! -s conftest.err
11488
 
       } && test -s conftest$ac_exeext &&
11489
 
       $as_test_x conftest$ac_exeext; then
11490
 
  eval "$as_ac_var=yes"
11491
 
else
11492
 
  echo "$as_me: failed program was:" >&5
11493
 
sed 's/^/| /' conftest.$ac_ext >&5
11494
 
 
11495
 
        eval "$as_ac_var=no"
11496
 
fi
11497
 
 
11498
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11499
 
      conftest$ac_exeext conftest.$ac_ext
11500
 
fi
11501
 
ac_res=`eval echo '${'$as_ac_var'}'`
11502
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11503
 
echo "${ECHO_T}$ac_res" >&6; }
11504
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11505
 
  cat >>confdefs.h <<_ACEOF
11506
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11507
 
_ACEOF
11508
 
 
11509
 
fi
11510
 
done
11511
 
 
11512
 
 
11513
 
for ac_func in nl_langinfo
11514
 
do
11515
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11517
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11520
 
else
11521
 
  cat >conftest.$ac_ext <<_ACEOF
11522
 
/* confdefs.h.  */
11523
 
_ACEOF
11524
 
cat confdefs.h >>conftest.$ac_ext
11525
 
cat >>conftest.$ac_ext <<_ACEOF
11526
 
/* end confdefs.h.  */
11527
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11529
 
#define $ac_func innocuous_$ac_func
11530
 
 
11531
 
/* System header to define __stub macros and hopefully few prototypes,
11532
 
    which can conflict with char $ac_func (); below.
11533
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534
 
    <limits.h> exists even on freestanding compilers.  */
11535
 
 
11536
 
#ifdef __STDC__
11537
 
# include <limits.h>
11538
 
#else
11539
 
# include <assert.h>
11540
 
#endif
11541
 
 
11542
 
#undef $ac_func
11543
 
 
11544
 
/* Override any GCC internal prototype to avoid an error.
11545
 
   Use char because int might match the return type of a GCC
11546
 
   builtin and then its argument prototype would still apply.  */
11547
 
#ifdef __cplusplus
11548
 
extern "C"
11549
 
#endif
11550
 
char $ac_func ();
11551
 
/* The GNU C library defines this for functions which it implements
11552
 
    to always fail with ENOSYS.  Some functions are actually named
11553
 
    something starting with __ and the normal name is an alias.  */
11554
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11555
 
choke me
11556
 
#endif
11557
 
 
11558
 
int
11559
 
main ()
11560
 
{
11561
 
return $ac_func ();
11562
 
  ;
11563
 
  return 0;
11564
 
}
11565
 
_ACEOF
11566
 
rm -f conftest.$ac_objext conftest$ac_exeext
11567
 
if { (ac_try="$ac_link"
11568
 
case "(($ac_try" in
11569
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570
 
  *) ac_try_echo=$ac_try;;
11571
 
esac
11572
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573
 
  (eval "$ac_link") 2>conftest.er1
11574
 
  ac_status=$?
11575
 
  grep -v '^ *+' conftest.er1 >conftest.err
11576
 
  rm -f conftest.er1
11577
 
  cat conftest.err >&5
11578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579
 
  (exit $ac_status); } && {
11580
 
         test -z "$ac_cxx_werror_flag" ||
11581
 
         test ! -s conftest.err
11582
 
       } && test -s conftest$ac_exeext &&
11583
 
       $as_test_x conftest$ac_exeext; then
11584
 
  eval "$as_ac_var=yes"
11585
 
else
11586
 
  echo "$as_me: failed program was:" >&5
11587
 
sed 's/^/| /' conftest.$ac_ext >&5
11588
 
 
11589
 
        eval "$as_ac_var=no"
11590
 
fi
11591
 
 
11592
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11593
 
      conftest$ac_exeext conftest.$ac_ext
11594
 
fi
11595
 
ac_res=`eval echo '${'$as_ac_var'}'`
11596
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11597
 
echo "${ECHO_T}$ac_res" >&6; }
11598
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11599
 
  cat >>confdefs.h <<_ACEOF
11600
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601
 
_ACEOF
11602
 
 
11603
 
fi
11604
 
done
11605
 
 
11606
 
 
11607
 
for ac_func in putenv
11608
 
do
11609
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11611
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11614
 
else
11615
 
  cat >conftest.$ac_ext <<_ACEOF
11616
 
/* confdefs.h.  */
11617
 
_ACEOF
11618
 
cat confdefs.h >>conftest.$ac_ext
11619
 
cat >>conftest.$ac_ext <<_ACEOF
11620
 
/* end confdefs.h.  */
11621
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11623
 
#define $ac_func innocuous_$ac_func
11624
 
 
11625
 
/* System header to define __stub macros and hopefully few prototypes,
11626
 
    which can conflict with char $ac_func (); below.
11627
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628
 
    <limits.h> exists even on freestanding compilers.  */
11629
 
 
11630
 
#ifdef __STDC__
11631
 
# include <limits.h>
11632
 
#else
11633
 
# include <assert.h>
11634
 
#endif
11635
 
 
11636
 
#undef $ac_func
11637
 
 
11638
 
/* Override any GCC internal prototype to avoid an error.
11639
 
   Use char because int might match the return type of a GCC
11640
 
   builtin and then its argument prototype would still apply.  */
11641
 
#ifdef __cplusplus
11642
 
extern "C"
11643
 
#endif
11644
 
char $ac_func ();
11645
 
/* The GNU C library defines this for functions which it implements
11646
 
    to always fail with ENOSYS.  Some functions are actually named
11647
 
    something starting with __ and the normal name is an alias.  */
11648
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11649
 
choke me
11650
 
#endif
11651
 
 
11652
 
int
11653
 
main ()
11654
 
{
11655
 
return $ac_func ();
11656
 
  ;
11657
 
  return 0;
11658
 
}
11659
 
_ACEOF
11660
 
rm -f conftest.$ac_objext conftest$ac_exeext
11661
 
if { (ac_try="$ac_link"
11662
 
case "(($ac_try" in
11663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664
 
  *) ac_try_echo=$ac_try;;
11665
 
esac
11666
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667
 
  (eval "$ac_link") 2>conftest.er1
11668
 
  ac_status=$?
11669
 
  grep -v '^ *+' conftest.er1 >conftest.err
11670
 
  rm -f conftest.er1
11671
 
  cat conftest.err >&5
11672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673
 
  (exit $ac_status); } && {
11674
 
         test -z "$ac_cxx_werror_flag" ||
11675
 
         test ! -s conftest.err
11676
 
       } && test -s conftest$ac_exeext &&
11677
 
       $as_test_x conftest$ac_exeext; then
11678
 
  eval "$as_ac_var=yes"
11679
 
else
11680
 
  echo "$as_me: failed program was:" >&5
11681
 
sed 's/^/| /' conftest.$ac_ext >&5
11682
 
 
11683
 
        eval "$as_ac_var=no"
11684
 
fi
11685
 
 
11686
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687
 
      conftest$ac_exeext conftest.$ac_ext
11688
 
fi
11689
 
ac_res=`eval echo '${'$as_ac_var'}'`
11690
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11691
 
echo "${ECHO_T}$ac_res" >&6; }
11692
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11693
 
  cat >>confdefs.h <<_ACEOF
11694
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11695
 
_ACEOF
11696
 
 
11697
 
fi
11698
 
done
11699
 
 
11700
 
 
11701
 
for ac_func in regcomp
11702
 
do
11703
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11704
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11705
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11706
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11707
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11708
 
else
11709
 
  cat >conftest.$ac_ext <<_ACEOF
11710
 
/* confdefs.h.  */
11711
 
_ACEOF
11712
 
cat confdefs.h >>conftest.$ac_ext
11713
 
cat >>conftest.$ac_ext <<_ACEOF
11714
 
/* end confdefs.h.  */
11715
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11716
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11717
 
#define $ac_func innocuous_$ac_func
11718
 
 
11719
 
/* System header to define __stub macros and hopefully few prototypes,
11720
 
    which can conflict with char $ac_func (); below.
11721
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722
 
    <limits.h> exists even on freestanding compilers.  */
11723
 
 
11724
 
#ifdef __STDC__
11725
 
# include <limits.h>
11726
 
#else
11727
 
# include <assert.h>
11728
 
#endif
11729
 
 
11730
 
#undef $ac_func
11731
 
 
11732
 
/* Override any GCC internal prototype to avoid an error.
11733
 
   Use char because int might match the return type of a GCC
11734
 
   builtin and then its argument prototype would still apply.  */
11735
 
#ifdef __cplusplus
11736
 
extern "C"
11737
 
#endif
11738
 
char $ac_func ();
11739
 
/* The GNU C library defines this for functions which it implements
11740
 
    to always fail with ENOSYS.  Some functions are actually named
11741
 
    something starting with __ and the normal name is an alias.  */
11742
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11743
 
choke me
11744
 
#endif
11745
 
 
11746
 
int
11747
 
main ()
11748
 
{
11749
 
return $ac_func ();
11750
 
  ;
11751
 
  return 0;
11752
 
}
11753
 
_ACEOF
11754
 
rm -f conftest.$ac_objext conftest$ac_exeext
11755
 
if { (ac_try="$ac_link"
11756
 
case "(($ac_try" in
11757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758
 
  *) ac_try_echo=$ac_try;;
11759
 
esac
11760
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761
 
  (eval "$ac_link") 2>conftest.er1
11762
 
  ac_status=$?
11763
 
  grep -v '^ *+' conftest.er1 >conftest.err
11764
 
  rm -f conftest.er1
11765
 
  cat conftest.err >&5
11766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767
 
  (exit $ac_status); } && {
11768
 
         test -z "$ac_cxx_werror_flag" ||
11769
 
         test ! -s conftest.err
11770
 
       } && test -s conftest$ac_exeext &&
11771
 
       $as_test_x conftest$ac_exeext; then
11772
 
  eval "$as_ac_var=yes"
11773
 
else
11774
 
  echo "$as_me: failed program was:" >&5
11775
 
sed 's/^/| /' conftest.$ac_ext >&5
11776
 
 
11777
 
        eval "$as_ac_var=no"
11778
 
fi
11779
 
 
11780
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781
 
      conftest$ac_exeext conftest.$ac_ext
11782
 
fi
11783
 
ac_res=`eval echo '${'$as_ac_var'}'`
11784
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11785
 
echo "${ECHO_T}$ac_res" >&6; }
11786
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11787
 
  cat >>confdefs.h <<_ACEOF
11788
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11789
 
_ACEOF
11790
 
 
11791
 
fi
11792
 
done
11793
 
 
11794
 
 
11795
 
for ac_func in select
11796
 
do
11797
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11799
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11802
 
else
11803
 
  cat >conftest.$ac_ext <<_ACEOF
11804
 
/* confdefs.h.  */
11805
 
_ACEOF
11806
 
cat confdefs.h >>conftest.$ac_ext
11807
 
cat >>conftest.$ac_ext <<_ACEOF
11808
 
/* end confdefs.h.  */
11809
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11811
 
#define $ac_func innocuous_$ac_func
11812
 
 
11813
 
/* System header to define __stub macros and hopefully few prototypes,
11814
 
    which can conflict with char $ac_func (); below.
11815
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816
 
    <limits.h> exists even on freestanding compilers.  */
11817
 
 
11818
 
#ifdef __STDC__
11819
 
# include <limits.h>
11820
 
#else
11821
 
# include <assert.h>
11822
 
#endif
11823
 
 
11824
 
#undef $ac_func
11825
 
 
11826
 
/* Override any GCC internal prototype to avoid an error.
11827
 
   Use char because int might match the return type of a GCC
11828
 
   builtin and then its argument prototype would still apply.  */
11829
 
#ifdef __cplusplus
11830
 
extern "C"
11831
 
#endif
11832
 
char $ac_func ();
11833
 
/* The GNU C library defines this for functions which it implements
11834
 
    to always fail with ENOSYS.  Some functions are actually named
11835
 
    something starting with __ and the normal name is an alias.  */
11836
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11837
 
choke me
11838
 
#endif
11839
 
 
11840
 
int
11841
 
main ()
11842
 
{
11843
 
return $ac_func ();
11844
 
  ;
11845
 
  return 0;
11846
 
}
11847
 
_ACEOF
11848
 
rm -f conftest.$ac_objext conftest$ac_exeext
11849
 
if { (ac_try="$ac_link"
11850
 
case "(($ac_try" in
11851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852
 
  *) ac_try_echo=$ac_try;;
11853
 
esac
11854
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855
 
  (eval "$ac_link") 2>conftest.er1
11856
 
  ac_status=$?
11857
 
  grep -v '^ *+' conftest.er1 >conftest.err
11858
 
  rm -f conftest.er1
11859
 
  cat conftest.err >&5
11860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
 
  (exit $ac_status); } && {
11862
 
         test -z "$ac_cxx_werror_flag" ||
11863
 
         test ! -s conftest.err
11864
 
       } && test -s conftest$ac_exeext &&
11865
 
       $as_test_x conftest$ac_exeext; then
11866
 
  eval "$as_ac_var=yes"
11867
 
else
11868
 
  echo "$as_me: failed program was:" >&5
11869
 
sed 's/^/| /' conftest.$ac_ext >&5
11870
 
 
11871
 
        eval "$as_ac_var=no"
11872
 
fi
11873
 
 
11874
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875
 
      conftest$ac_exeext conftest.$ac_ext
11876
 
fi
11877
 
ac_res=`eval echo '${'$as_ac_var'}'`
11878
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11879
 
echo "${ECHO_T}$ac_res" >&6; }
11880
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11881
 
  cat >>confdefs.h <<_ACEOF
11882
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883
 
_ACEOF
11884
 
 
11885
 
fi
11886
 
done
11887
 
 
11888
 
 
11889
 
for ac_func in setenv
11890
 
do
11891
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11893
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11896
 
else
11897
 
  cat >conftest.$ac_ext <<_ACEOF
11898
 
/* confdefs.h.  */
11899
 
_ACEOF
11900
 
cat confdefs.h >>conftest.$ac_ext
11901
 
cat >>conftest.$ac_ext <<_ACEOF
11902
 
/* end confdefs.h.  */
11903
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11905
 
#define $ac_func innocuous_$ac_func
11906
 
 
11907
 
/* System header to define __stub macros and hopefully few prototypes,
11908
 
    which can conflict with char $ac_func (); below.
11909
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910
 
    <limits.h> exists even on freestanding compilers.  */
11911
 
 
11912
 
#ifdef __STDC__
11913
 
# include <limits.h>
11914
 
#else
11915
 
# include <assert.h>
11916
 
#endif
11917
 
 
11918
 
#undef $ac_func
11919
 
 
11920
 
/* Override any GCC internal prototype to avoid an error.
11921
 
   Use char because int might match the return type of a GCC
11922
 
   builtin and then its argument prototype would still apply.  */
11923
 
#ifdef __cplusplus
11924
 
extern "C"
11925
 
#endif
11926
 
char $ac_func ();
11927
 
/* The GNU C library defines this for functions which it implements
11928
 
    to always fail with ENOSYS.  Some functions are actually named
11929
 
    something starting with __ and the normal name is an alias.  */
11930
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11931
 
choke me
11932
 
#endif
11933
 
 
11934
 
int
11935
 
main ()
11936
 
{
11937
 
return $ac_func ();
11938
 
  ;
11939
 
  return 0;
11940
 
}
11941
 
_ACEOF
11942
 
rm -f conftest.$ac_objext conftest$ac_exeext
11943
 
if { (ac_try="$ac_link"
11944
 
case "(($ac_try" in
11945
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946
 
  *) ac_try_echo=$ac_try;;
11947
 
esac
11948
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949
 
  (eval "$ac_link") 2>conftest.er1
11950
 
  ac_status=$?
11951
 
  grep -v '^ *+' conftest.er1 >conftest.err
11952
 
  rm -f conftest.er1
11953
 
  cat conftest.err >&5
11954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955
 
  (exit $ac_status); } && {
11956
 
         test -z "$ac_cxx_werror_flag" ||
11957
 
         test ! -s conftest.err
11958
 
       } && test -s conftest$ac_exeext &&
11959
 
       $as_test_x conftest$ac_exeext; then
11960
 
  eval "$as_ac_var=yes"
11961
 
else
11962
 
  echo "$as_me: failed program was:" >&5
11963
 
sed 's/^/| /' conftest.$ac_ext >&5
11964
 
 
11965
 
        eval "$as_ac_var=no"
11966
 
fi
11967
 
 
11968
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969
 
      conftest$ac_exeext conftest.$ac_ext
11970
 
fi
11971
 
ac_res=`eval echo '${'$as_ac_var'}'`
11972
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11973
 
echo "${ECHO_T}$ac_res" >&6; }
11974
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11975
 
  cat >>confdefs.h <<_ACEOF
11976
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977
 
_ACEOF
11978
 
 
11979
 
fi
11980
 
done
11981
 
 
11982
 
 
11983
 
for ac_func in sqrt
11984
 
do
11985
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11987
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11988
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11990
 
else
11991
 
  cat >conftest.$ac_ext <<_ACEOF
11992
 
/* confdefs.h.  */
11993
 
_ACEOF
11994
 
cat confdefs.h >>conftest.$ac_ext
11995
 
cat >>conftest.$ac_ext <<_ACEOF
11996
 
/* end confdefs.h.  */
11997
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11998
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11999
 
#define $ac_func innocuous_$ac_func
12000
 
 
12001
 
/* System header to define __stub macros and hopefully few prototypes,
12002
 
    which can conflict with char $ac_func (); below.
12003
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004
 
    <limits.h> exists even on freestanding compilers.  */
12005
 
 
12006
 
#ifdef __STDC__
12007
 
# include <limits.h>
12008
 
#else
12009
 
# include <assert.h>
12010
 
#endif
12011
 
 
12012
 
#undef $ac_func
12013
 
 
12014
 
/* Override any GCC internal prototype to avoid an error.
12015
 
   Use char because int might match the return type of a GCC
12016
 
   builtin and then its argument prototype would still apply.  */
12017
 
#ifdef __cplusplus
12018
 
extern "C"
12019
 
#endif
12020
 
char $ac_func ();
12021
 
/* The GNU C library defines this for functions which it implements
12022
 
    to always fail with ENOSYS.  Some functions are actually named
12023
 
    something starting with __ and the normal name is an alias.  */
12024
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12025
 
choke me
12026
 
#endif
12027
 
 
12028
 
int
12029
 
main ()
12030
 
{
12031
 
return $ac_func ();
12032
 
  ;
12033
 
  return 0;
12034
 
}
12035
 
_ACEOF
12036
 
rm -f conftest.$ac_objext conftest$ac_exeext
12037
 
if { (ac_try="$ac_link"
12038
 
case "(($ac_try" in
12039
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040
 
  *) ac_try_echo=$ac_try;;
12041
 
esac
12042
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043
 
  (eval "$ac_link") 2>conftest.er1
12044
 
  ac_status=$?
12045
 
  grep -v '^ *+' conftest.er1 >conftest.err
12046
 
  rm -f conftest.er1
12047
 
  cat conftest.err >&5
12048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049
 
  (exit $ac_status); } && {
12050
 
         test -z "$ac_cxx_werror_flag" ||
12051
 
         test ! -s conftest.err
12052
 
       } && test -s conftest$ac_exeext &&
12053
 
       $as_test_x conftest$ac_exeext; then
12054
 
  eval "$as_ac_var=yes"
12055
 
else
12056
 
  echo "$as_me: failed program was:" >&5
12057
 
sed 's/^/| /' conftest.$ac_ext >&5
12058
 
 
12059
 
        eval "$as_ac_var=no"
12060
 
fi
12061
 
 
12062
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12063
 
      conftest$ac_exeext conftest.$ac_ext
12064
 
fi
12065
 
ac_res=`eval echo '${'$as_ac_var'}'`
12066
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12067
 
echo "${ECHO_T}$ac_res" >&6; }
12068
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12069
 
  cat >>confdefs.h <<_ACEOF
12070
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12071
 
_ACEOF
12072
 
 
12073
 
fi
12074
 
done
12075
 
 
12076
 
 
12077
 
for ac_func in strcasecmp
12078
 
do
12079
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12080
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12081
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12082
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12083
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12084
 
else
12085
 
  cat >conftest.$ac_ext <<_ACEOF
12086
 
/* confdefs.h.  */
12087
 
_ACEOF
12088
 
cat confdefs.h >>conftest.$ac_ext
12089
 
cat >>conftest.$ac_ext <<_ACEOF
12090
 
/* end confdefs.h.  */
12091
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12092
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12093
 
#define $ac_func innocuous_$ac_func
12094
 
 
12095
 
/* System header to define __stub macros and hopefully few prototypes,
12096
 
    which can conflict with char $ac_func (); below.
12097
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12098
 
    <limits.h> exists even on freestanding compilers.  */
12099
 
 
12100
 
#ifdef __STDC__
12101
 
# include <limits.h>
12102
 
#else
12103
 
# include <assert.h>
12104
 
#endif
12105
 
 
12106
 
#undef $ac_func
12107
 
 
12108
 
/* Override any GCC internal prototype to avoid an error.
12109
 
   Use char because int might match the return type of a GCC
12110
 
   builtin and then its argument prototype would still apply.  */
12111
 
#ifdef __cplusplus
12112
 
extern "C"
12113
 
#endif
12114
 
char $ac_func ();
12115
 
/* The GNU C library defines this for functions which it implements
12116
 
    to always fail with ENOSYS.  Some functions are actually named
12117
 
    something starting with __ and the normal name is an alias.  */
12118
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12119
 
choke me
12120
 
#endif
12121
 
 
12122
 
int
12123
 
main ()
12124
 
{
12125
 
return $ac_func ();
12126
 
  ;
12127
 
  return 0;
12128
 
}
12129
 
_ACEOF
12130
 
rm -f conftest.$ac_objext conftest$ac_exeext
12131
 
if { (ac_try="$ac_link"
12132
 
case "(($ac_try" in
12133
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134
 
  *) ac_try_echo=$ac_try;;
12135
 
esac
12136
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137
 
  (eval "$ac_link") 2>conftest.er1
12138
 
  ac_status=$?
12139
 
  grep -v '^ *+' conftest.er1 >conftest.err
12140
 
  rm -f conftest.er1
12141
 
  cat conftest.err >&5
12142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143
 
  (exit $ac_status); } && {
12144
 
         test -z "$ac_cxx_werror_flag" ||
12145
 
         test ! -s conftest.err
12146
 
       } && test -s conftest$ac_exeext &&
12147
 
       $as_test_x conftest$ac_exeext; then
12148
 
  eval "$as_ac_var=yes"
12149
 
else
12150
 
  echo "$as_me: failed program was:" >&5
12151
 
sed 's/^/| /' conftest.$ac_ext >&5
12152
 
 
12153
 
        eval "$as_ac_var=no"
12154
 
fi
12155
 
 
12156
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157
 
      conftest$ac_exeext conftest.$ac_ext
12158
 
fi
12159
 
ac_res=`eval echo '${'$as_ac_var'}'`
12160
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12161
 
echo "${ECHO_T}$ac_res" >&6; }
12162
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12163
 
  cat >>confdefs.h <<_ACEOF
12164
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12165
 
_ACEOF
12166
 
 
12167
 
fi
12168
 
done
12169
 
 
12170
 
 
12171
 
for ac_func in strchr
12172
 
do
12173
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12174
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12175
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12176
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12178
 
else
12179
 
  cat >conftest.$ac_ext <<_ACEOF
12180
 
/* confdefs.h.  */
12181
 
_ACEOF
12182
 
cat confdefs.h >>conftest.$ac_ext
12183
 
cat >>conftest.$ac_ext <<_ACEOF
12184
 
/* end confdefs.h.  */
12185
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12186
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12187
 
#define $ac_func innocuous_$ac_func
12188
 
 
12189
 
/* System header to define __stub macros and hopefully few prototypes,
12190
 
    which can conflict with char $ac_func (); below.
12191
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192
 
    <limits.h> exists even on freestanding compilers.  */
12193
 
 
12194
 
#ifdef __STDC__
12195
 
# include <limits.h>
12196
 
#else
12197
 
# include <assert.h>
12198
 
#endif
12199
 
 
12200
 
#undef $ac_func
12201
 
 
12202
 
/* Override any GCC internal prototype to avoid an error.
12203
 
   Use char because int might match the return type of a GCC
12204
 
   builtin and then its argument prototype would still apply.  */
12205
 
#ifdef __cplusplus
12206
 
extern "C"
12207
 
#endif
12208
 
char $ac_func ();
12209
 
/* The GNU C library defines this for functions which it implements
12210
 
    to always fail with ENOSYS.  Some functions are actually named
12211
 
    something starting with __ and the normal name is an alias.  */
12212
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12213
 
choke me
12214
 
#endif
12215
 
 
12216
 
int
12217
 
main ()
12218
 
{
12219
 
return $ac_func ();
12220
 
  ;
12221
 
  return 0;
12222
 
}
12223
 
_ACEOF
12224
 
rm -f conftest.$ac_objext conftest$ac_exeext
12225
 
if { (ac_try="$ac_link"
12226
 
case "(($ac_try" in
12227
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228
 
  *) ac_try_echo=$ac_try;;
12229
 
esac
12230
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231
 
  (eval "$ac_link") 2>conftest.er1
12232
 
  ac_status=$?
12233
 
  grep -v '^ *+' conftest.er1 >conftest.err
12234
 
  rm -f conftest.er1
12235
 
  cat conftest.err >&5
12236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237
 
  (exit $ac_status); } && {
12238
 
         test -z "$ac_cxx_werror_flag" ||
12239
 
         test ! -s conftest.err
12240
 
       } && test -s conftest$ac_exeext &&
12241
 
       $as_test_x conftest$ac_exeext; then
12242
 
  eval "$as_ac_var=yes"
12243
 
else
12244
 
  echo "$as_me: failed program was:" >&5
12245
 
sed 's/^/| /' conftest.$ac_ext >&5
12246
 
 
12247
 
        eval "$as_ac_var=no"
12248
 
fi
12249
 
 
12250
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12251
 
      conftest$ac_exeext conftest.$ac_ext
12252
 
fi
12253
 
ac_res=`eval echo '${'$as_ac_var'}'`
12254
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12255
 
echo "${ECHO_T}$ac_res" >&6; }
12256
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12257
 
  cat >>confdefs.h <<_ACEOF
12258
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12259
 
_ACEOF
12260
 
 
12261
 
fi
12262
 
done
12263
 
 
12264
 
 
12265
 
for ac_func in strstr
12266
 
do
12267
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12268
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12269
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12270
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12271
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12272
 
else
12273
 
  cat >conftest.$ac_ext <<_ACEOF
12274
 
/* confdefs.h.  */
12275
 
_ACEOF
12276
 
cat confdefs.h >>conftest.$ac_ext
12277
 
cat >>conftest.$ac_ext <<_ACEOF
12278
 
/* end confdefs.h.  */
12279
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12280
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12281
 
#define $ac_func innocuous_$ac_func
12282
 
 
12283
 
/* System header to define __stub macros and hopefully few prototypes,
12284
 
    which can conflict with char $ac_func (); below.
12285
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286
 
    <limits.h> exists even on freestanding compilers.  */
12287
 
 
12288
 
#ifdef __STDC__
12289
 
# include <limits.h>
12290
 
#else
12291
 
# include <assert.h>
12292
 
#endif
12293
 
 
12294
 
#undef $ac_func
12295
 
 
12296
 
/* Override any GCC internal prototype to avoid an error.
12297
 
   Use char because int might match the return type of a GCC
12298
 
   builtin and then its argument prototype would still apply.  */
12299
 
#ifdef __cplusplus
12300
 
extern "C"
12301
 
#endif
12302
 
char $ac_func ();
12303
 
/* The GNU C library defines this for functions which it implements
12304
 
    to always fail with ENOSYS.  Some functions are actually named
12305
 
    something starting with __ and the normal name is an alias.  */
12306
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12307
 
choke me
12308
 
#endif
12309
 
 
12310
 
int
12311
 
main ()
12312
 
{
12313
 
return $ac_func ();
12314
 
  ;
12315
 
  return 0;
12316
 
}
12317
 
_ACEOF
12318
 
rm -f conftest.$ac_objext conftest$ac_exeext
12319
 
if { (ac_try="$ac_link"
12320
 
case "(($ac_try" in
12321
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322
 
  *) ac_try_echo=$ac_try;;
12323
 
esac
12324
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325
 
  (eval "$ac_link") 2>conftest.er1
12326
 
  ac_status=$?
12327
 
  grep -v '^ *+' conftest.er1 >conftest.err
12328
 
  rm -f conftest.er1
12329
 
  cat conftest.err >&5
12330
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
 
  (exit $ac_status); } && {
12332
 
         test -z "$ac_cxx_werror_flag" ||
12333
 
         test ! -s conftest.err
12334
 
       } && test -s conftest$ac_exeext &&
12335
 
       $as_test_x conftest$ac_exeext; then
12336
 
  eval "$as_ac_var=yes"
12337
 
else
12338
 
  echo "$as_me: failed program was:" >&5
12339
 
sed 's/^/| /' conftest.$ac_ext >&5
12340
 
 
12341
 
        eval "$as_ac_var=no"
12342
 
fi
12343
 
 
12344
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12345
 
      conftest$ac_exeext conftest.$ac_ext
12346
 
fi
12347
 
ac_res=`eval echo '${'$as_ac_var'}'`
12348
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12349
 
echo "${ECHO_T}$ac_res" >&6; }
12350
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12351
 
  cat >>confdefs.h <<_ACEOF
12352
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12353
 
_ACEOF
12354
 
 
12355
 
fi
12356
 
done
12357
 
 
12358
 
 
12359
 
for ac_func in strtol
12360
 
do
12361
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12362
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12363
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12364
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12366
 
else
12367
 
  cat >conftest.$ac_ext <<_ACEOF
12368
 
/* confdefs.h.  */
12369
 
_ACEOF
12370
 
cat confdefs.h >>conftest.$ac_ext
12371
 
cat >>conftest.$ac_ext <<_ACEOF
12372
 
/* end confdefs.h.  */
12373
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12374
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12375
 
#define $ac_func innocuous_$ac_func
12376
 
 
12377
 
/* System header to define __stub macros and hopefully few prototypes,
12378
 
    which can conflict with char $ac_func (); below.
12379
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380
 
    <limits.h> exists even on freestanding compilers.  */
12381
 
 
12382
 
#ifdef __STDC__
12383
 
# include <limits.h>
12384
 
#else
12385
 
# include <assert.h>
12386
 
#endif
12387
 
 
12388
 
#undef $ac_func
12389
 
 
12390
 
/* Override any GCC internal prototype to avoid an error.
12391
 
   Use char because int might match the return type of a GCC
12392
 
   builtin and then its argument prototype would still apply.  */
12393
 
#ifdef __cplusplus
12394
 
extern "C"
12395
 
#endif
12396
 
char $ac_func ();
12397
 
/* The GNU C library defines this for functions which it implements
12398
 
    to always fail with ENOSYS.  Some functions are actually named
12399
 
    something starting with __ and the normal name is an alias.  */
12400
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12401
 
choke me
12402
 
#endif
12403
 
 
12404
 
int
12405
 
main ()
12406
 
{
12407
 
return $ac_func ();
12408
 
  ;
12409
 
  return 0;
12410
 
}
12411
 
_ACEOF
12412
 
rm -f conftest.$ac_objext conftest$ac_exeext
12413
 
if { (ac_try="$ac_link"
12414
 
case "(($ac_try" in
12415
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416
 
  *) ac_try_echo=$ac_try;;
12417
 
esac
12418
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419
 
  (eval "$ac_link") 2>conftest.er1
12420
 
  ac_status=$?
12421
 
  grep -v '^ *+' conftest.er1 >conftest.err
12422
 
  rm -f conftest.er1
12423
 
  cat conftest.err >&5
12424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
 
  (exit $ac_status); } && {
12426
 
         test -z "$ac_cxx_werror_flag" ||
12427
 
         test ! -s conftest.err
12428
 
       } && test -s conftest$ac_exeext &&
12429
 
       $as_test_x conftest$ac_exeext; then
12430
 
  eval "$as_ac_var=yes"
12431
 
else
12432
 
  echo "$as_me: failed program was:" >&5
12433
 
sed 's/^/| /' conftest.$ac_ext >&5
12434
 
 
12435
 
        eval "$as_ac_var=no"
12436
 
fi
12437
 
 
12438
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439
 
      conftest$ac_exeext conftest.$ac_ext
12440
 
fi
12441
 
ac_res=`eval echo '${'$as_ac_var'}'`
12442
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12443
 
echo "${ECHO_T}$ac_res" >&6; }
12444
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12445
 
  cat >>confdefs.h <<_ACEOF
12446
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447
 
_ACEOF
12448
 
 
12449
 
fi
12450
 
done
12451
 
 
12452
 
 
12453
 
for ac_func in strtoul
12454
 
do
12455
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12456
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12457
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12458
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12460
 
else
12461
 
  cat >conftest.$ac_ext <<_ACEOF
12462
 
/* confdefs.h.  */
12463
 
_ACEOF
12464
 
cat confdefs.h >>conftest.$ac_ext
12465
 
cat >>conftest.$ac_ext <<_ACEOF
12466
 
/* end confdefs.h.  */
12467
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12468
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12469
 
#define $ac_func innocuous_$ac_func
12470
 
 
12471
 
/* System header to define __stub macros and hopefully few prototypes,
12472
 
    which can conflict with char $ac_func (); below.
12473
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474
 
    <limits.h> exists even on freestanding compilers.  */
12475
 
 
12476
 
#ifdef __STDC__
12477
 
# include <limits.h>
12478
 
#else
12479
 
# include <assert.h>
12480
 
#endif
12481
 
 
12482
 
#undef $ac_func
12483
 
 
12484
 
/* Override any GCC internal prototype to avoid an error.
12485
 
   Use char because int might match the return type of a GCC
12486
 
   builtin and then its argument prototype would still apply.  */
12487
 
#ifdef __cplusplus
12488
 
extern "C"
12489
 
#endif
12490
 
char $ac_func ();
12491
 
/* The GNU C library defines this for functions which it implements
12492
 
    to always fail with ENOSYS.  Some functions are actually named
12493
 
    something starting with __ and the normal name is an alias.  */
12494
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12495
 
choke me
12496
 
#endif
12497
 
 
12498
 
int
12499
 
main ()
12500
 
{
12501
 
return $ac_func ();
12502
 
  ;
12503
 
  return 0;
12504
 
}
12505
 
_ACEOF
12506
 
rm -f conftest.$ac_objext conftest$ac_exeext
12507
 
if { (ac_try="$ac_link"
12508
 
case "(($ac_try" in
12509
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510
 
  *) ac_try_echo=$ac_try;;
12511
 
esac
12512
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513
 
  (eval "$ac_link") 2>conftest.er1
12514
 
  ac_status=$?
12515
 
  grep -v '^ *+' conftest.er1 >conftest.err
12516
 
  rm -f conftest.er1
12517
 
  cat conftest.err >&5
12518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519
 
  (exit $ac_status); } && {
12520
 
         test -z "$ac_cxx_werror_flag" ||
12521
 
         test ! -s conftest.err
12522
 
       } && test -s conftest$ac_exeext &&
12523
 
       $as_test_x conftest$ac_exeext; then
12524
 
  eval "$as_ac_var=yes"
12525
 
else
12526
 
  echo "$as_me: failed program was:" >&5
12527
 
sed 's/^/| /' conftest.$ac_ext >&5
12528
 
 
12529
 
        eval "$as_ac_var=no"
12530
 
fi
12531
 
 
12532
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533
 
      conftest$ac_exeext conftest.$ac_ext
12534
 
fi
12535
 
ac_res=`eval echo '${'$as_ac_var'}'`
12536
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12537
 
echo "${ECHO_T}$ac_res" >&6; }
12538
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12539
 
  cat >>confdefs.h <<_ACEOF
12540
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12541
 
_ACEOF
12542
 
 
12543
 
fi
12544
 
done
12545
 
 
12546
 
 
12547
 
for ac_header in langinfo.h
12548
 
do
12549
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12550
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12551
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12552
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12553
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12554
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12555
 
fi
12556
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12557
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12558
 
echo "${ECHO_T}$ac_res" >&6; }
12559
 
else
12560
 
  # Is the header compilable?
12561
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12562
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12563
 
cat >conftest.$ac_ext <<_ACEOF
12564
 
/* confdefs.h.  */
12565
 
_ACEOF
12566
 
cat confdefs.h >>conftest.$ac_ext
12567
 
cat >>conftest.$ac_ext <<_ACEOF
12568
 
/* end confdefs.h.  */
12569
 
$ac_includes_default
12570
 
#include <$ac_header>
12571
 
_ACEOF
12572
 
rm -f conftest.$ac_objext
12573
 
if { (ac_try="$ac_compile"
12574
 
case "(($ac_try" in
12575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576
 
  *) ac_try_echo=$ac_try;;
12577
 
esac
12578
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579
 
  (eval "$ac_compile") 2>conftest.er1
12580
 
  ac_status=$?
12581
 
  grep -v '^ *+' conftest.er1 >conftest.err
12582
 
  rm -f conftest.er1
12583
 
  cat conftest.err >&5
12584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585
 
  (exit $ac_status); } && {
12586
 
         test -z "$ac_cxx_werror_flag" ||
12587
 
         test ! -s conftest.err
12588
 
       } && test -s conftest.$ac_objext; then
12589
 
  ac_header_compiler=yes
12590
 
else
12591
 
  echo "$as_me: failed program was:" >&5
12592
 
sed 's/^/| /' conftest.$ac_ext >&5
12593
 
 
12594
 
        ac_header_compiler=no
12595
 
fi
12596
 
 
12597
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12599
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
12600
 
 
12601
 
# Is the header present?
12602
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12603
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12604
 
cat >conftest.$ac_ext <<_ACEOF
12605
 
/* confdefs.h.  */
12606
 
_ACEOF
12607
 
cat confdefs.h >>conftest.$ac_ext
12608
 
cat >>conftest.$ac_ext <<_ACEOF
12609
 
/* end confdefs.h.  */
12610
 
#include <$ac_header>
12611
 
_ACEOF
12612
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
12613
 
case "(($ac_try" in
12614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615
 
  *) ac_try_echo=$ac_try;;
12616
 
esac
12617
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12619
 
  ac_status=$?
12620
 
  grep -v '^ *+' conftest.er1 >conftest.err
12621
 
  rm -f conftest.er1
12622
 
  cat conftest.err >&5
12623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624
 
  (exit $ac_status); } >/dev/null && {
12625
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12626
 
         test ! -s conftest.err
12627
 
       }; then
12628
 
  ac_header_preproc=yes
12629
 
else
12630
 
  echo "$as_me: failed program was:" >&5
12631
 
sed 's/^/| /' conftest.$ac_ext >&5
12632
 
 
12633
 
  ac_header_preproc=no
12634
 
fi
12635
 
 
12636
 
rm -f conftest.err conftest.$ac_ext
12637
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12638
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
12639
 
 
12640
 
# So?  What about this header?
12641
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12642
 
  yes:no: )
12643
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12644
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12645
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12646
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12647
 
    ac_header_preproc=yes
12648
 
    ;;
12649
 
  no:yes:* )
12650
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12651
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12652
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12653
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12654
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12655
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12656
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12657
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12658
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12659
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12660
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12661
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12662
 
 
12663
 
    ;;
12664
 
esac
12665
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12666
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12667
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12668
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12669
 
else
12670
 
  eval "$as_ac_Header=\$ac_header_preproc"
12671
 
fi
12672
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12673
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12674
 
echo "${ECHO_T}$ac_res" >&6; }
12675
 
 
12676
 
fi
12677
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12678
 
  cat >>confdefs.h <<_ACEOF
12679
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12680
 
_ACEOF
12681
 
 
12682
 
fi
12683
 
 
12684
 
done
12685
 
 
12686
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12687
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12688
 
if test "${ac_cv_c_const+set}" = set; then
12689
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12690
 
else
12691
 
  cat >conftest.$ac_ext <<_ACEOF
12692
 
/* confdefs.h.  */
12693
 
_ACEOF
12694
 
cat confdefs.h >>conftest.$ac_ext
12695
 
cat >>conftest.$ac_ext <<_ACEOF
12696
 
/* end confdefs.h.  */
12697
 
 
12698
 
int
12699
 
main ()
12700
 
{
12701
 
/* FIXME: Include the comments suggested by Paul. */
12702
 
#ifndef __cplusplus
12703
 
  /* Ultrix mips cc rejects this.  */
12704
 
  typedef int charset[2];
12705
 
  const charset cs;
12706
 
  /* SunOS 4.1.1 cc rejects this.  */
12707
 
  char const *const *pcpcc;
12708
 
  char **ppc;
12709
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
12710
 
  struct point {int x, y;};
12711
 
  static struct point const zero = {0,0};
12712
 
  /* AIX XL C 1.02.0.0 rejects this.
12713
 
     It does not let you subtract one const X* pointer from another in
12714
 
     an arm of an if-expression whose if-part is not a constant
12715
 
     expression */
12716
 
  const char *g = "string";
12717
 
  pcpcc = &g + (g ? g-g : 0);
12718
 
  /* HPUX 7.0 cc rejects these. */
12719
 
  ++pcpcc;
12720
 
  ppc = (char**) pcpcc;
12721
 
  pcpcc = (char const *const *) ppc;
12722
 
  { /* SCO 3.2v4 cc rejects this.  */
12723
 
    char *t;
12724
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
12725
 
 
12726
 
    *t++ = 0;
12727
 
    if (s) return 0;
12728
 
  }
12729
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12730
 
    int x[] = {25, 17};
12731
 
    const int *foo = &x[0];
12732
 
    ++foo;
12733
 
  }
12734
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12735
 
    typedef const int *iptr;
12736
 
    iptr p = 0;
12737
 
    ++p;
12738
 
  }
12739
 
  { /* AIX XL C 1.02.0.0 rejects this saying
12740
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12741
 
    struct s { int j; const int *ap[3]; };
12742
 
    struct s *b; b->j = 5;
12743
 
  }
12744
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12745
 
    const int foo = 10;
12746
 
    if (!foo) return 0;
12747
 
  }
12748
 
  return !cs[0] && !zero.x;
12749
 
#endif
12750
 
 
12751
 
  ;
12752
 
  return 0;
12753
 
}
12754
 
_ACEOF
12755
 
rm -f conftest.$ac_objext
12756
 
if { (ac_try="$ac_compile"
12757
 
case "(($ac_try" in
12758
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759
 
  *) ac_try_echo=$ac_try;;
12760
 
esac
12761
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762
 
  (eval "$ac_compile") 2>conftest.er1
12763
 
  ac_status=$?
12764
 
  grep -v '^ *+' conftest.er1 >conftest.err
12765
 
  rm -f conftest.er1
12766
 
  cat conftest.err >&5
12767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768
 
  (exit $ac_status); } && {
12769
 
         test -z "$ac_cxx_werror_flag" ||
12770
 
         test ! -s conftest.err
12771
 
       } && test -s conftest.$ac_objext; then
12772
 
  ac_cv_c_const=yes
12773
 
else
12774
 
  echo "$as_me: failed program was:" >&5
12775
 
sed 's/^/| /' conftest.$ac_ext >&5
12776
 
 
12777
 
        ac_cv_c_const=no
12778
 
fi
12779
 
 
12780
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781
 
fi
12782
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12783
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
12784
 
if test $ac_cv_c_const = no; then
12785
 
 
12786
 
cat >>confdefs.h <<\_ACEOF
12787
 
#define const
12788
 
_ACEOF
12789
 
 
12790
 
fi
12791
 
 
12792
 
{ echo "$as_me:$LINENO: checking for inline" >&5
12793
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12794
 
if test "${ac_cv_c_inline+set}" = set; then
12795
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12796
 
else
12797
 
  ac_cv_c_inline=no
12798
 
for ac_kw in inline __inline__ __inline; do
12799
 
  cat >conftest.$ac_ext <<_ACEOF
12800
 
/* confdefs.h.  */
12801
 
_ACEOF
12802
 
cat confdefs.h >>conftest.$ac_ext
12803
 
cat >>conftest.$ac_ext <<_ACEOF
12804
 
/* end confdefs.h.  */
12805
 
#ifndef __cplusplus
12806
 
typedef int foo_t;
12807
 
static $ac_kw foo_t static_foo () {return 0; }
12808
 
$ac_kw foo_t foo () {return 0; }
12809
 
#endif
12810
 
 
12811
 
_ACEOF
12812
 
rm -f conftest.$ac_objext
12813
 
if { (ac_try="$ac_compile"
12814
 
case "(($ac_try" in
12815
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816
 
  *) ac_try_echo=$ac_try;;
12817
 
esac
12818
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819
 
  (eval "$ac_compile") 2>conftest.er1
12820
 
  ac_status=$?
12821
 
  grep -v '^ *+' conftest.er1 >conftest.err
12822
 
  rm -f conftest.er1
12823
 
  cat conftest.err >&5
12824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825
 
  (exit $ac_status); } && {
12826
 
         test -z "$ac_cxx_werror_flag" ||
12827
 
         test ! -s conftest.err
12828
 
       } && test -s conftest.$ac_objext; then
12829
 
  ac_cv_c_inline=$ac_kw
12830
 
else
12831
 
  echo "$as_me: failed program was:" >&5
12832
 
sed 's/^/| /' conftest.$ac_ext >&5
12833
 
 
12834
 
 
12835
 
fi
12836
 
 
12837
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838
 
  test "$ac_cv_c_inline" != no && break
12839
 
done
12840
 
 
12841
 
fi
12842
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12843
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12844
 
 
12845
 
 
12846
 
case $ac_cv_c_inline in
12847
 
  inline | yes) ;;
12848
 
  *)
12849
 
    case $ac_cv_c_inline in
12850
 
      no) ac_val=;;
12851
 
      *) ac_val=$ac_cv_c_inline;;
12852
 
    esac
12853
 
    cat >>confdefs.h <<_ACEOF
12854
 
#ifndef __cplusplus
12855
 
#define inline $ac_val
12856
 
#endif
12857
 
_ACEOF
12858
 
    ;;
12859
 
esac
12860
 
 
12861
 
 
12862
 
 
12863
 
 
12864
 
 
12865
 
 
12866
 
ac_header_dirent=no
12867
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12868
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12869
 
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12870
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12871
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12872
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12873
 
else
12874
 
  cat >conftest.$ac_ext <<_ACEOF
12875
 
/* confdefs.h.  */
12876
 
_ACEOF
12877
 
cat confdefs.h >>conftest.$ac_ext
12878
 
cat >>conftest.$ac_ext <<_ACEOF
12879
 
/* end confdefs.h.  */
12880
 
#include <sys/types.h>
12881
 
#include <$ac_hdr>
12882
 
 
12883
 
int
12884
 
main ()
12885
 
{
12886
 
if ((DIR *) 0)
12887
 
return 0;
12888
 
  ;
12889
 
  return 0;
12890
 
}
12891
 
_ACEOF
12892
 
rm -f conftest.$ac_objext
12893
 
if { (ac_try="$ac_compile"
12894
 
case "(($ac_try" in
12895
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896
 
  *) ac_try_echo=$ac_try;;
12897
 
esac
12898
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899
 
  (eval "$ac_compile") 2>conftest.er1
12900
 
  ac_status=$?
12901
 
  grep -v '^ *+' conftest.er1 >conftest.err
12902
 
  rm -f conftest.er1
12903
 
  cat conftest.err >&5
12904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905
 
  (exit $ac_status); } && {
12906
 
         test -z "$ac_cxx_werror_flag" ||
12907
 
         test ! -s conftest.err
12908
 
       } && test -s conftest.$ac_objext; then
12909
 
  eval "$as_ac_Header=yes"
12910
 
else
12911
 
  echo "$as_me: failed program was:" >&5
12912
 
sed 's/^/| /' conftest.$ac_ext >&5
12913
 
 
12914
 
        eval "$as_ac_Header=no"
12915
 
fi
12916
 
 
12917
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918
 
fi
12919
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12920
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12921
 
echo "${ECHO_T}$ac_res" >&6; }
12922
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923
 
  cat >>confdefs.h <<_ACEOF
12924
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12925
 
_ACEOF
12926
 
 
12927
 
ac_header_dirent=$ac_hdr; break
12928
 
fi
12929
 
 
12930
 
done
12931
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12932
 
if test $ac_header_dirent = dirent.h; then
12933
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12934
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12935
 
if test "${ac_cv_search_opendir+set}" = set; then
12936
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12937
 
else
12938
 
  ac_func_search_save_LIBS=$LIBS
12939
 
cat >conftest.$ac_ext <<_ACEOF
12940
 
/* confdefs.h.  */
12941
 
_ACEOF
12942
 
cat confdefs.h >>conftest.$ac_ext
12943
 
cat >>conftest.$ac_ext <<_ACEOF
12944
 
/* end confdefs.h.  */
12945
 
 
12946
 
/* Override any GCC internal prototype to avoid an error.
12947
 
   Use char because int might match the return type of a GCC
12948
 
   builtin and then its argument prototype would still apply.  */
12949
 
#ifdef __cplusplus
12950
 
extern "C"
12951
 
#endif
12952
 
char opendir ();
12953
 
int
12954
 
main ()
12955
 
{
12956
 
return opendir ();
12957
 
  ;
12958
 
  return 0;
12959
 
}
12960
 
_ACEOF
12961
 
for ac_lib in '' dir; do
12962
 
  if test -z "$ac_lib"; then
12963
 
    ac_res="none required"
12964
 
  else
12965
 
    ac_res=-l$ac_lib
12966
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12967
 
  fi
12968
 
  rm -f conftest.$ac_objext conftest$ac_exeext
12969
 
if { (ac_try="$ac_link"
12970
 
case "(($ac_try" in
12971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972
 
  *) ac_try_echo=$ac_try;;
12973
 
esac
12974
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975
 
  (eval "$ac_link") 2>conftest.er1
12976
 
  ac_status=$?
12977
 
  grep -v '^ *+' conftest.er1 >conftest.err
12978
 
  rm -f conftest.er1
12979
 
  cat conftest.err >&5
12980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981
 
  (exit $ac_status); } && {
12982
 
         test -z "$ac_cxx_werror_flag" ||
12983
 
         test ! -s conftest.err
12984
 
       } && test -s conftest$ac_exeext &&
12985
 
       $as_test_x conftest$ac_exeext; then
12986
 
  ac_cv_search_opendir=$ac_res
12987
 
else
12988
 
  echo "$as_me: failed program was:" >&5
12989
 
sed 's/^/| /' conftest.$ac_ext >&5
12990
 
 
12991
 
 
12992
 
fi
12993
 
 
12994
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12995
 
      conftest$ac_exeext
12996
 
  if test "${ac_cv_search_opendir+set}" = set; then
12997
 
  break
12998
 
fi
12999
 
done
13000
 
if test "${ac_cv_search_opendir+set}" = set; then
13001
 
  :
13002
 
else
13003
 
  ac_cv_search_opendir=no
13004
 
fi
13005
 
rm conftest.$ac_ext
13006
 
LIBS=$ac_func_search_save_LIBS
13007
 
fi
13008
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13009
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13010
 
ac_res=$ac_cv_search_opendir
13011
 
if test "$ac_res" != no; then
13012
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13013
 
 
13014
 
fi
13015
 
 
13016
 
else
13017
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13018
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13019
 
if test "${ac_cv_search_opendir+set}" = set; then
13020
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13021
 
else
13022
 
  ac_func_search_save_LIBS=$LIBS
13023
 
cat >conftest.$ac_ext <<_ACEOF
13024
 
/* confdefs.h.  */
13025
 
_ACEOF
13026
 
cat confdefs.h >>conftest.$ac_ext
13027
 
cat >>conftest.$ac_ext <<_ACEOF
13028
 
/* end confdefs.h.  */
13029
 
 
13030
 
/* Override any GCC internal prototype to avoid an error.
13031
 
   Use char because int might match the return type of a GCC
13032
 
   builtin and then its argument prototype would still apply.  */
13033
 
#ifdef __cplusplus
13034
 
extern "C"
13035
 
#endif
13036
 
char opendir ();
13037
 
int
13038
 
main ()
13039
 
{
13040
 
return opendir ();
13041
 
  ;
13042
 
  return 0;
13043
 
}
13044
 
_ACEOF
13045
 
for ac_lib in '' x; do
13046
 
  if test -z "$ac_lib"; then
13047
 
    ac_res="none required"
13048
 
  else
13049
 
    ac_res=-l$ac_lib
13050
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13051
 
  fi
13052
 
  rm -f conftest.$ac_objext conftest$ac_exeext
13053
 
if { (ac_try="$ac_link"
13054
 
case "(($ac_try" in
13055
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056
 
  *) ac_try_echo=$ac_try;;
13057
 
esac
13058
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059
 
  (eval "$ac_link") 2>conftest.er1
13060
 
  ac_status=$?
13061
 
  grep -v '^ *+' conftest.er1 >conftest.err
13062
 
  rm -f conftest.er1
13063
 
  cat conftest.err >&5
13064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065
 
  (exit $ac_status); } && {
13066
 
         test -z "$ac_cxx_werror_flag" ||
13067
 
         test ! -s conftest.err
13068
 
       } && test -s conftest$ac_exeext &&
13069
 
       $as_test_x conftest$ac_exeext; then
13070
 
  ac_cv_search_opendir=$ac_res
13071
 
else
13072
 
  echo "$as_me: failed program was:" >&5
13073
 
sed 's/^/| /' conftest.$ac_ext >&5
13074
 
 
13075
 
 
13076
 
fi
13077
 
 
13078
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13079
 
      conftest$ac_exeext
13080
 
  if test "${ac_cv_search_opendir+set}" = set; then
13081
 
  break
13082
 
fi
13083
 
done
13084
 
if test "${ac_cv_search_opendir+set}" = set; then
13085
 
  :
13086
 
else
13087
 
  ac_cv_search_opendir=no
13088
 
fi
13089
 
rm conftest.$ac_ext
13090
 
LIBS=$ac_func_search_save_LIBS
13091
 
fi
13092
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13093
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13094
 
ac_res=$ac_cv_search_opendir
13095
 
if test "$ac_res" != no; then
13096
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13097
 
 
13098
 
fi
13099
 
 
13100
 
fi
13101
 
 
13102
 
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
13103
 
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
13104
 
if test "${ac_cv_func_closedir_void+set}" = set; then
13105
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13106
 
else
13107
 
  if test "$cross_compiling" = yes; then
13108
 
  ac_cv_func_closedir_void=yes
13109
 
else
13110
 
  cat >conftest.$ac_ext <<_ACEOF
13111
 
/* confdefs.h.  */
13112
 
_ACEOF
13113
 
cat confdefs.h >>conftest.$ac_ext
13114
 
cat >>conftest.$ac_ext <<_ACEOF
13115
 
/* end confdefs.h.  */
13116
 
$ac_includes_default
13117
 
#include <$ac_header_dirent>
13118
 
#ifndef __cplusplus
13119
 
int closedir ();
13120
 
#endif
13121
 
 
13122
 
int
13123
 
main ()
13124
 
{
13125
 
return closedir (opendir (".")) != 0;
13126
 
  ;
13127
 
  return 0;
13128
 
}
13129
 
_ACEOF
13130
 
rm -f conftest$ac_exeext
13131
 
if { (ac_try="$ac_link"
13132
 
case "(($ac_try" in
13133
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134
 
  *) ac_try_echo=$ac_try;;
13135
 
esac
13136
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137
 
  (eval "$ac_link") 2>&5
13138
 
  ac_status=$?
13139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13141
 
  { (case "(($ac_try" in
13142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143
 
  *) ac_try_echo=$ac_try;;
13144
 
esac
13145
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146
 
  (eval "$ac_try") 2>&5
13147
 
  ac_status=$?
13148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149
 
  (exit $ac_status); }; }; then
13150
 
  ac_cv_func_closedir_void=no
13151
 
else
13152
 
  echo "$as_me: program exited with status $ac_status" >&5
13153
 
echo "$as_me: failed program was:" >&5
13154
 
sed 's/^/| /' conftest.$ac_ext >&5
13155
 
 
13156
 
( exit $ac_status )
13157
 
ac_cv_func_closedir_void=yes
13158
 
fi
13159
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160
 
fi
13161
 
 
13162
 
 
13163
 
fi
13164
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
13165
 
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
13166
 
if test $ac_cv_func_closedir_void = yes; then
13167
 
 
13168
 
cat >>confdefs.h <<\_ACEOF
13169
 
#define CLOSEDIR_VOID 1
13170
 
_ACEOF
13171
 
 
13172
 
fi
13173
 
 
13174
 
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
13175
 
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
13176
 
if test "${ac_cv_lib_error_at_line+set}" = set; then
13177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13178
 
else
13179
 
  cat >conftest.$ac_ext <<_ACEOF
13180
 
/* confdefs.h.  */
13181
 
_ACEOF
13182
 
cat confdefs.h >>conftest.$ac_ext
13183
 
cat >>conftest.$ac_ext <<_ACEOF
13184
 
/* end confdefs.h.  */
13185
 
#include <error.h>
13186
 
int
13187
 
main ()
13188
 
{
13189
 
error_at_line (0, 0, "", 0, "an error occurred");
13190
 
  ;
13191
 
  return 0;
13192
 
}
13193
 
_ACEOF
13194
 
rm -f conftest.$ac_objext conftest$ac_exeext
13195
 
if { (ac_try="$ac_link"
13196
 
case "(($ac_try" in
13197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198
 
  *) ac_try_echo=$ac_try;;
13199
 
esac
13200
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201
 
  (eval "$ac_link") 2>conftest.er1
13202
 
  ac_status=$?
13203
 
  grep -v '^ *+' conftest.er1 >conftest.err
13204
 
  rm -f conftest.er1
13205
 
  cat conftest.err >&5
13206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207
 
  (exit $ac_status); } && {
13208
 
         test -z "$ac_cxx_werror_flag" ||
13209
 
         test ! -s conftest.err
13210
 
       } && test -s conftest$ac_exeext &&
13211
 
       $as_test_x conftest$ac_exeext; then
13212
 
  ac_cv_lib_error_at_line=yes
13213
 
else
13214
 
  echo "$as_me: failed program was:" >&5
13215
 
sed 's/^/| /' conftest.$ac_ext >&5
13216
 
 
13217
 
        ac_cv_lib_error_at_line=no
13218
 
fi
13219
 
 
13220
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13221
 
      conftest$ac_exeext conftest.$ac_ext
13222
 
fi
13223
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
13224
 
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
13225
 
if test $ac_cv_lib_error_at_line = no; then
13226
 
  case " $LIBOBJS " in
13227
 
  *" error.$ac_objext "* ) ;;
13228
 
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
13229
 
 ;;
13230
 
esac
13231
 
 
13232
 
fi
13233
 
 
13234
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
13235
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13236
 
if test "${ac_cv_type_pid_t+set}" = set; then
13237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13238
 
else
13239
 
  cat >conftest.$ac_ext <<_ACEOF
13240
 
/* confdefs.h.  */
13241
 
_ACEOF
13242
 
cat confdefs.h >>conftest.$ac_ext
13243
 
cat >>conftest.$ac_ext <<_ACEOF
13244
 
/* end confdefs.h.  */
13245
 
$ac_includes_default
13246
 
typedef pid_t ac__type_new_;
13247
 
int
13248
 
main ()
13249
 
{
13250
 
if ((ac__type_new_ *) 0)
13251
 
  return 0;
13252
 
if (sizeof (ac__type_new_))
13253
 
  return 0;
13254
 
  ;
13255
 
  return 0;
13256
 
}
13257
 
_ACEOF
13258
 
rm -f conftest.$ac_objext
13259
 
if { (ac_try="$ac_compile"
13260
 
case "(($ac_try" in
13261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262
 
  *) ac_try_echo=$ac_try;;
13263
 
esac
13264
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265
 
  (eval "$ac_compile") 2>conftest.er1
13266
 
  ac_status=$?
13267
 
  grep -v '^ *+' conftest.er1 >conftest.err
13268
 
  rm -f conftest.er1
13269
 
  cat conftest.err >&5
13270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271
 
  (exit $ac_status); } && {
13272
 
         test -z "$ac_cxx_werror_flag" ||
13273
 
         test ! -s conftest.err
13274
 
       } && test -s conftest.$ac_objext; then
13275
 
  ac_cv_type_pid_t=yes
13276
 
else
13277
 
  echo "$as_me: failed program was:" >&5
13278
 
sed 's/^/| /' conftest.$ac_ext >&5
13279
 
 
13280
 
        ac_cv_type_pid_t=no
13281
 
fi
13282
 
 
13283
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284
 
fi
13285
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13286
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13287
 
if test $ac_cv_type_pid_t = yes; then
13288
 
  :
13289
 
else
13290
 
 
13291
 
cat >>confdefs.h <<_ACEOF
13292
 
#define pid_t int
13293
 
_ACEOF
13294
 
 
13295
 
fi
13296
 
 
13297
 
 
13298
 
for ac_header in vfork.h
13299
 
do
13300
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13302
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13303
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13304
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13306
 
fi
13307
 
ac_res=`eval echo '${'$as_ac_Header'}'`
13308
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
13309
 
echo "${ECHO_T}$ac_res" >&6; }
13310
 
else
13311
 
  # Is the header compilable?
13312
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13313
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13314
 
cat >conftest.$ac_ext <<_ACEOF
13315
 
/* confdefs.h.  */
13316
 
_ACEOF
13317
 
cat confdefs.h >>conftest.$ac_ext
13318
 
cat >>conftest.$ac_ext <<_ACEOF
13319
 
/* end confdefs.h.  */
13320
 
$ac_includes_default
13321
 
#include <$ac_header>
13322
 
_ACEOF
13323
 
rm -f conftest.$ac_objext
13324
 
if { (ac_try="$ac_compile"
13325
 
case "(($ac_try" in
13326
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327
 
  *) ac_try_echo=$ac_try;;
13328
 
esac
13329
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330
 
  (eval "$ac_compile") 2>conftest.er1
13331
 
  ac_status=$?
13332
 
  grep -v '^ *+' conftest.er1 >conftest.err
13333
 
  rm -f conftest.er1
13334
 
  cat conftest.err >&5
13335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336
 
  (exit $ac_status); } && {
13337
 
         test -z "$ac_cxx_werror_flag" ||
13338
 
         test ! -s conftest.err
13339
 
       } && test -s conftest.$ac_objext; then
13340
 
  ac_header_compiler=yes
13341
 
else
13342
 
  echo "$as_me: failed program was:" >&5
13343
 
sed 's/^/| /' conftest.$ac_ext >&5
13344
 
 
13345
 
        ac_header_compiler=no
13346
 
fi
13347
 
 
13348
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
13351
 
 
13352
 
# Is the header present?
13353
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13354
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13355
 
cat >conftest.$ac_ext <<_ACEOF
13356
 
/* confdefs.h.  */
13357
 
_ACEOF
13358
 
cat confdefs.h >>conftest.$ac_ext
13359
 
cat >>conftest.$ac_ext <<_ACEOF
13360
 
/* end confdefs.h.  */
13361
 
#include <$ac_header>
13362
 
_ACEOF
13363
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13364
 
case "(($ac_try" in
13365
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366
 
  *) ac_try_echo=$ac_try;;
13367
 
esac
13368
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13370
 
  ac_status=$?
13371
 
  grep -v '^ *+' conftest.er1 >conftest.err
13372
 
  rm -f conftest.er1
13373
 
  cat conftest.err >&5
13374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375
 
  (exit $ac_status); } >/dev/null && {
13376
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13377
 
         test ! -s conftest.err
13378
 
       }; then
13379
 
  ac_header_preproc=yes
13380
 
else
13381
 
  echo "$as_me: failed program was:" >&5
13382
 
sed 's/^/| /' conftest.$ac_ext >&5
13383
 
 
13384
 
  ac_header_preproc=no
13385
 
fi
13386
 
 
13387
 
rm -f conftest.err conftest.$ac_ext
13388
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13389
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
13390
 
 
13391
 
# So?  What about this header?
13392
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13393
 
  yes:no: )
13394
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13395
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13396
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13397
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13398
 
    ac_header_preproc=yes
13399
 
    ;;
13400
 
  no:yes:* )
13401
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13402
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13403
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13404
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13405
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13406
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13407
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13408
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13409
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13410
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13411
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13412
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13413
 
 
13414
 
    ;;
13415
 
esac
13416
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13417
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13418
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13419
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13420
 
else
13421
 
  eval "$as_ac_Header=\$ac_header_preproc"
13422
 
fi
13423
 
ac_res=`eval echo '${'$as_ac_Header'}'`
13424
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
13425
 
echo "${ECHO_T}$ac_res" >&6; }
13426
 
 
13427
 
fi
13428
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13429
 
  cat >>confdefs.h <<_ACEOF
13430
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13431
 
_ACEOF
13432
 
 
13433
 
fi
13434
 
 
13435
 
done
13436
 
 
13437
 
 
13438
 
 
13439
 
for ac_func in fork vfork
13440
 
do
13441
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13443
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13444
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13445
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13446
 
else
13447
 
  cat >conftest.$ac_ext <<_ACEOF
13448
 
/* confdefs.h.  */
13449
 
_ACEOF
13450
 
cat confdefs.h >>conftest.$ac_ext
13451
 
cat >>conftest.$ac_ext <<_ACEOF
13452
 
/* end confdefs.h.  */
13453
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13454
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13455
 
#define $ac_func innocuous_$ac_func
13456
 
 
13457
 
/* System header to define __stub macros and hopefully few prototypes,
13458
 
    which can conflict with char $ac_func (); below.
13459
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460
 
    <limits.h> exists even on freestanding compilers.  */
13461
 
 
13462
 
#ifdef __STDC__
13463
 
# include <limits.h>
13464
 
#else
13465
 
# include <assert.h>
13466
 
#endif
13467
 
 
13468
 
#undef $ac_func
13469
 
 
13470
 
/* Override any GCC internal prototype to avoid an error.
13471
 
   Use char because int might match the return type of a GCC
13472
 
   builtin and then its argument prototype would still apply.  */
13473
 
#ifdef __cplusplus
13474
 
extern "C"
13475
 
#endif
13476
 
char $ac_func ();
13477
 
/* The GNU C library defines this for functions which it implements
13478
 
    to always fail with ENOSYS.  Some functions are actually named
13479
 
    something starting with __ and the normal name is an alias.  */
13480
 
#if defined __stub_$ac_func || defined __stub___$ac_func
13481
 
choke me
13482
 
#endif
13483
 
 
13484
 
int
13485
 
main ()
13486
 
{
13487
 
return $ac_func ();
13488
 
  ;
13489
 
  return 0;
13490
 
}
13491
 
_ACEOF
13492
 
rm -f conftest.$ac_objext conftest$ac_exeext
13493
 
if { (ac_try="$ac_link"
13494
 
case "(($ac_try" in
13495
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496
 
  *) ac_try_echo=$ac_try;;
13497
 
esac
13498
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499
 
  (eval "$ac_link") 2>conftest.er1
13500
 
  ac_status=$?
13501
 
  grep -v '^ *+' conftest.er1 >conftest.err
13502
 
  rm -f conftest.er1
13503
 
  cat conftest.err >&5
13504
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505
 
  (exit $ac_status); } && {
13506
 
         test -z "$ac_cxx_werror_flag" ||
13507
 
         test ! -s conftest.err
13508
 
       } && test -s conftest$ac_exeext &&
13509
 
       $as_test_x conftest$ac_exeext; then
13510
 
  eval "$as_ac_var=yes"
13511
 
else
13512
 
  echo "$as_me: failed program was:" >&5
13513
 
sed 's/^/| /' conftest.$ac_ext >&5
13514
 
 
13515
 
        eval "$as_ac_var=no"
13516
 
fi
13517
 
 
13518
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519
 
      conftest$ac_exeext conftest.$ac_ext
13520
 
fi
13521
 
ac_res=`eval echo '${'$as_ac_var'}'`
13522
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
13523
 
echo "${ECHO_T}$ac_res" >&6; }
13524
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
13525
 
  cat >>confdefs.h <<_ACEOF
13526
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13527
 
_ACEOF
13528
 
 
13529
 
fi
13530
 
done
13531
 
 
13532
 
if test "x$ac_cv_func_fork" = xyes; then
13533
 
  { echo "$as_me:$LINENO: checking for working fork" >&5
13534
 
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
13535
 
if test "${ac_cv_func_fork_works+set}" = set; then
13536
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13537
 
else
13538
 
  if test "$cross_compiling" = yes; then
13539
 
  ac_cv_func_fork_works=cross
13540
 
else
13541
 
  cat >conftest.$ac_ext <<_ACEOF
13542
 
/* confdefs.h.  */
13543
 
_ACEOF
13544
 
cat confdefs.h >>conftest.$ac_ext
13545
 
cat >>conftest.$ac_ext <<_ACEOF
13546
 
/* end confdefs.h.  */
13547
 
$ac_includes_default
13548
 
int
13549
 
main ()
13550
 
{
13551
 
 
13552
 
          /* By Ruediger Kuhlmann. */
13553
 
          return fork () < 0;
13554
 
 
13555
 
  ;
13556
 
  return 0;
13557
 
}
13558
 
_ACEOF
13559
 
rm -f conftest$ac_exeext
13560
 
if { (ac_try="$ac_link"
13561
 
case "(($ac_try" in
13562
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563
 
  *) ac_try_echo=$ac_try;;
13564
 
esac
13565
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566
 
  (eval "$ac_link") 2>&5
13567
 
  ac_status=$?
13568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13570
 
  { (case "(($ac_try" in
13571
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572
 
  *) ac_try_echo=$ac_try;;
13573
 
esac
13574
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575
 
  (eval "$ac_try") 2>&5
13576
 
  ac_status=$?
13577
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578
 
  (exit $ac_status); }; }; then
13579
 
  ac_cv_func_fork_works=yes
13580
 
else
13581
 
  echo "$as_me: program exited with status $ac_status" >&5
13582
 
echo "$as_me: failed program was:" >&5
13583
 
sed 's/^/| /' conftest.$ac_ext >&5
13584
 
 
13585
 
( exit $ac_status )
13586
 
ac_cv_func_fork_works=no
13587
 
fi
13588
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13589
 
fi
13590
 
 
13591
 
 
13592
 
fi
13593
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13594
 
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
13595
 
 
13596
 
else
13597
 
  ac_cv_func_fork_works=$ac_cv_func_fork
13598
 
fi
13599
 
if test "x$ac_cv_func_fork_works" = xcross; then
13600
 
  case $host in
13601
 
    *-*-amigaos* | *-*-msdosdjgpp*)
13602
 
      # Override, as these systems have only a dummy fork() stub
13603
 
      ac_cv_func_fork_works=no
13604
 
      ;;
13605
 
    *)
13606
 
      ac_cv_func_fork_works=yes
13607
 
      ;;
13608
 
  esac
13609
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13610
 
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13611
 
fi
13612
 
ac_cv_func_vfork_works=$ac_cv_func_vfork
13613
 
if test "x$ac_cv_func_vfork" = xyes; then
13614
 
  { echo "$as_me:$LINENO: checking for working vfork" >&5
13615
 
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
13616
 
if test "${ac_cv_func_vfork_works+set}" = set; then
13617
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13618
 
else
13619
 
  if test "$cross_compiling" = yes; then
13620
 
  ac_cv_func_vfork_works=cross
13621
 
else
13622
 
  cat >conftest.$ac_ext <<_ACEOF
13623
 
/* confdefs.h.  */
13624
 
_ACEOF
13625
 
cat confdefs.h >>conftest.$ac_ext
13626
 
cat >>conftest.$ac_ext <<_ACEOF
13627
 
/* end confdefs.h.  */
13628
 
/* Thanks to Paul Eggert for this test.  */
13629
 
$ac_includes_default
13630
 
#include <sys/wait.h>
13631
 
#ifdef HAVE_VFORK_H
13632
 
# include <vfork.h>
13633
 
#endif
13634
 
/* On some sparc systems, changes by the child to local and incoming
13635
 
   argument registers are propagated back to the parent.  The compiler
13636
 
   is told about this with #include <vfork.h>, but some compilers
13637
 
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13638
 
   static variable whose address is put into a register that is
13639
 
   clobbered by the vfork.  */
13640
 
static void
13641
 
#ifdef __cplusplus
13642
 
sparc_address_test (int arg)
13643
 
# else
13644
 
sparc_address_test (arg) int arg;
13645
 
#endif
13646
 
{
13647
 
  static pid_t child;
13648
 
  if (!child) {
13649
 
    child = vfork ();
13650
 
    if (child < 0) {
13651
 
      perror ("vfork");
13652
 
      _exit(2);
13653
 
    }
13654
 
    if (!child) {
13655
 
      arg = getpid();
13656
 
      write(-1, "", 0);
13657
 
      _exit (arg);
13658
 
    }
13659
 
  }
13660
 
}
13661
 
 
13662
 
int
13663
 
main ()
13664
 
{
13665
 
  pid_t parent = getpid ();
13666
 
  pid_t child;
13667
 
 
13668
 
  sparc_address_test (0);
13669
 
 
13670
 
  child = vfork ();
13671
 
 
13672
 
  if (child == 0) {
13673
 
    /* Here is another test for sparc vfork register problems.  This
13674
 
       test uses lots of local variables, at least as many local
13675
 
       variables as main has allocated so far including compiler
13676
 
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13677
 
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13678
 
       reuse the register of parent for one of the local variables,
13679
 
       since it will think that parent can't possibly be used any more
13680
 
       in this routine.  Assigning to the local variable will thus
13681
 
       munge parent in the parent process.  */
13682
 
    pid_t
13683
 
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13684
 
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13685
 
    /* Convince the compiler that p..p7 are live; otherwise, it might
13686
 
       use the same hardware register for all 8 local variables.  */
13687
 
    if (p != p1 || p != p2 || p != p3 || p != p4
13688
 
        || p != p5 || p != p6 || p != p7)
13689
 
      _exit(1);
13690
 
 
13691
 
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13692
 
       from child file descriptors.  If the child closes a descriptor
13693
 
       before it execs or exits, this munges the parent's descriptor
13694
 
       as well.  Test for this by closing stdout in the child.  */
13695
 
    _exit(close(fileno(stdout)) != 0);
13696
 
  } else {
13697
 
    int status;
13698
 
    struct stat st;
13699
 
 
13700
 
    while (wait(&status) != child)
13701
 
      ;
13702
 
    return (
13703
 
         /* Was there some problem with vforking?  */
13704
 
         child < 0
13705
 
 
13706
 
         /* Did the child fail?  (This shouldn't happen.)  */
13707
 
         || status
13708
 
 
13709
 
         /* Did the vfork/compiler bug occur?  */
13710
 
         || parent != getpid()
13711
 
 
13712
 
         /* Did the file descriptor bug occur?  */
13713
 
         || fstat(fileno(stdout), &st) != 0
13714
 
         );
13715
 
  }
13716
 
}
13717
 
_ACEOF
13718
 
rm -f conftest$ac_exeext
13719
 
if { (ac_try="$ac_link"
13720
 
case "(($ac_try" in
13721
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722
 
  *) ac_try_echo=$ac_try;;
13723
 
esac
13724
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725
 
  (eval "$ac_link") 2>&5
13726
 
  ac_status=$?
13727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13729
 
  { (case "(($ac_try" in
13730
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731
 
  *) ac_try_echo=$ac_try;;
13732
 
esac
13733
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734
 
  (eval "$ac_try") 2>&5
13735
 
  ac_status=$?
13736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
 
  (exit $ac_status); }; }; then
13738
 
  ac_cv_func_vfork_works=yes
13739
 
else
13740
 
  echo "$as_me: program exited with status $ac_status" >&5
13741
 
echo "$as_me: failed program was:" >&5
13742
 
sed 's/^/| /' conftest.$ac_ext >&5
13743
 
 
13744
 
( exit $ac_status )
13745
 
ac_cv_func_vfork_works=no
13746
 
fi
13747
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13748
 
fi
13749
 
 
13750
 
 
13751
 
fi
13752
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13753
 
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
13754
 
 
13755
 
fi;
13756
 
if test "x$ac_cv_func_fork_works" = xcross; then
13757
 
  ac_cv_func_vfork_works=$ac_cv_func_vfork
13758
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13759
 
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13760
 
fi
13761
 
 
13762
 
if test "x$ac_cv_func_vfork_works" = xyes; then
13763
 
 
13764
 
cat >>confdefs.h <<\_ACEOF
13765
 
#define HAVE_WORKING_VFORK 1
13766
 
_ACEOF
13767
 
 
13768
 
else
13769
 
 
13770
 
cat >>confdefs.h <<\_ACEOF
13771
 
#define vfork fork
13772
 
_ACEOF
13773
 
 
13774
 
fi
13775
 
if test "x$ac_cv_func_fork_works" = xyes; then
13776
 
 
13777
 
cat >>confdefs.h <<\_ACEOF
13778
 
#define HAVE_WORKING_FORK 1
13779
 
_ACEOF
13780
 
 
13781
 
fi
13782
 
 
13783
 
 
13784
 
for ac_header in stdlib.h
13785
 
do
13786
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13787
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13788
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13789
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13790
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13792
 
fi
13793
 
ac_res=`eval echo '${'$as_ac_Header'}'`
13794
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
13795
 
echo "${ECHO_T}$ac_res" >&6; }
13796
 
else
13797
 
  # Is the header compilable?
13798
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13799
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13800
 
cat >conftest.$ac_ext <<_ACEOF
13801
 
/* confdefs.h.  */
13802
 
_ACEOF
13803
 
cat confdefs.h >>conftest.$ac_ext
13804
 
cat >>conftest.$ac_ext <<_ACEOF
13805
 
/* end confdefs.h.  */
13806
 
$ac_includes_default
13807
 
#include <$ac_header>
13808
 
_ACEOF
13809
 
rm -f conftest.$ac_objext
13810
 
if { (ac_try="$ac_compile"
13811
 
case "(($ac_try" in
13812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813
 
  *) ac_try_echo=$ac_try;;
13814
 
esac
13815
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816
 
  (eval "$ac_compile") 2>conftest.er1
13817
 
  ac_status=$?
13818
 
  grep -v '^ *+' conftest.er1 >conftest.err
13819
 
  rm -f conftest.er1
13820
 
  cat conftest.err >&5
13821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822
 
  (exit $ac_status); } && {
13823
 
         test -z "$ac_cxx_werror_flag" ||
13824
 
         test ! -s conftest.err
13825
 
       } && test -s conftest.$ac_objext; then
13826
 
  ac_header_compiler=yes
13827
 
else
13828
 
  echo "$as_me: failed program was:" >&5
13829
 
sed 's/^/| /' conftest.$ac_ext >&5
13830
 
 
13831
 
        ac_header_compiler=no
13832
 
fi
13833
 
 
13834
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13836
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
13837
 
 
13838
 
# Is the header present?
13839
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13840
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13841
 
cat >conftest.$ac_ext <<_ACEOF
13842
 
/* confdefs.h.  */
13843
 
_ACEOF
13844
 
cat confdefs.h >>conftest.$ac_ext
13845
 
cat >>conftest.$ac_ext <<_ACEOF
13846
 
/* end confdefs.h.  */
13847
 
#include <$ac_header>
13848
 
_ACEOF
13849
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13850
 
case "(($ac_try" in
13851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852
 
  *) ac_try_echo=$ac_try;;
13853
 
esac
13854
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13856
 
  ac_status=$?
13857
 
  grep -v '^ *+' conftest.er1 >conftest.err
13858
 
  rm -f conftest.er1
13859
 
  cat conftest.err >&5
13860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861
 
  (exit $ac_status); } >/dev/null && {
13862
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13863
 
         test ! -s conftest.err
13864
 
       }; then
13865
 
  ac_header_preproc=yes
13866
 
else
13867
 
  echo "$as_me: failed program was:" >&5
13868
 
sed 's/^/| /' conftest.$ac_ext >&5
13869
 
 
13870
 
  ac_header_preproc=no
13871
 
fi
13872
 
 
13873
 
rm -f conftest.err conftest.$ac_ext
13874
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13875
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
13876
 
 
13877
 
# So?  What about this header?
13878
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13879
 
  yes:no: )
13880
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13881
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13882
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13883
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13884
 
    ac_header_preproc=yes
13885
 
    ;;
13886
 
  no:yes:* )
13887
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13888
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13889
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13890
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13891
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13892
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13893
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13894
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13895
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13896
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13897
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13898
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13899
 
 
13900
 
    ;;
13901
 
esac
13902
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13903
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13904
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13906
 
else
13907
 
  eval "$as_ac_Header=\$ac_header_preproc"
13908
 
fi
13909
 
ac_res=`eval echo '${'$as_ac_Header'}'`
13910
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
13911
 
echo "${ECHO_T}$ac_res" >&6; }
13912
 
 
13913
 
fi
13914
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13915
 
  cat >>confdefs.h <<_ACEOF
13916
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13917
 
_ACEOF
13918
 
 
13919
 
fi
13920
 
 
13921
 
done
13922
 
 
13923
 
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13924
 
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
13925
 
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13927
 
else
13928
 
  if test "$cross_compiling" = yes; then
13929
 
  ac_cv_func_malloc_0_nonnull=no
13930
 
else
13931
 
  cat >conftest.$ac_ext <<_ACEOF
13932
 
/* confdefs.h.  */
13933
 
_ACEOF
13934
 
cat confdefs.h >>conftest.$ac_ext
13935
 
cat >>conftest.$ac_ext <<_ACEOF
13936
 
/* end confdefs.h.  */
13937
 
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13938
 
# include <stdlib.h>
13939
 
#else
13940
 
char *malloc ();
13941
 
#endif
13942
 
 
13943
 
int
13944
 
main ()
13945
 
{
13946
 
return ! malloc (0);
13947
 
  ;
13948
 
  return 0;
13949
 
}
13950
 
_ACEOF
13951
 
rm -f conftest$ac_exeext
13952
 
if { (ac_try="$ac_link"
13953
 
case "(($ac_try" in
13954
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955
 
  *) ac_try_echo=$ac_try;;
13956
 
esac
13957
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958
 
  (eval "$ac_link") 2>&5
13959
 
  ac_status=$?
13960
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962
 
  { (case "(($ac_try" in
13963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964
 
  *) ac_try_echo=$ac_try;;
13965
 
esac
13966
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967
 
  (eval "$ac_try") 2>&5
13968
 
  ac_status=$?
13969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970
 
  (exit $ac_status); }; }; then
13971
 
  ac_cv_func_malloc_0_nonnull=yes
13972
 
else
13973
 
  echo "$as_me: program exited with status $ac_status" >&5
13974
 
echo "$as_me: failed program was:" >&5
13975
 
sed 's/^/| /' conftest.$ac_ext >&5
13976
 
 
13977
 
( exit $ac_status )
13978
 
ac_cv_func_malloc_0_nonnull=no
13979
 
fi
13980
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13981
 
fi
13982
 
 
13983
 
 
13984
 
fi
13985
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13986
 
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
13987
 
if test $ac_cv_func_malloc_0_nonnull = yes; then
13988
 
 
13989
 
cat >>confdefs.h <<\_ACEOF
13990
 
#define HAVE_MALLOC 1
13991
 
_ACEOF
13992
 
 
13993
 
else
13994
 
  cat >>confdefs.h <<\_ACEOF
13995
 
#define HAVE_MALLOC 0
13996
 
_ACEOF
13997
 
 
13998
 
   case " $LIBOBJS " in
13999
 
  *" malloc.$ac_objext "* ) ;;
14000
 
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14001
 
 ;;
14002
 
esac
14003
 
 
14004
 
 
14005
 
cat >>confdefs.h <<\_ACEOF
14006
 
#define malloc rpl_malloc
14007
 
_ACEOF
14008
 
 
14009
 
fi
14010
 
 
14011
 
 
14012
 
 
14013
 
 
14014
 
for ac_header in stdlib.h
14015
 
do
14016
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14017
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14018
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14019
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14020
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14022
 
fi
14023
 
ac_res=`eval echo '${'$as_ac_Header'}'`
14024
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
14025
 
echo "${ECHO_T}$ac_res" >&6; }
14026
 
else
14027
 
  # Is the header compilable?
14028
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14029
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14030
 
cat >conftest.$ac_ext <<_ACEOF
14031
 
/* confdefs.h.  */
14032
 
_ACEOF
14033
 
cat confdefs.h >>conftest.$ac_ext
14034
 
cat >>conftest.$ac_ext <<_ACEOF
14035
 
/* end confdefs.h.  */
14036
 
$ac_includes_default
14037
 
#include <$ac_header>
14038
 
_ACEOF
14039
 
rm -f conftest.$ac_objext
14040
 
if { (ac_try="$ac_compile"
14041
 
case "(($ac_try" in
14042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043
 
  *) ac_try_echo=$ac_try;;
14044
 
esac
14045
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046
 
  (eval "$ac_compile") 2>conftest.er1
14047
 
  ac_status=$?
14048
 
  grep -v '^ *+' conftest.er1 >conftest.err
14049
 
  rm -f conftest.er1
14050
 
  cat conftest.err >&5
14051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052
 
  (exit $ac_status); } && {
14053
 
         test -z "$ac_cxx_werror_flag" ||
14054
 
         test ! -s conftest.err
14055
 
       } && test -s conftest.$ac_objext; then
14056
 
  ac_header_compiler=yes
14057
 
else
14058
 
  echo "$as_me: failed program was:" >&5
14059
 
sed 's/^/| /' conftest.$ac_ext >&5
14060
 
 
14061
 
        ac_header_compiler=no
14062
 
fi
14063
 
 
14064
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14066
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
14067
 
 
14068
 
# Is the header present?
14069
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14070
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14071
 
cat >conftest.$ac_ext <<_ACEOF
14072
 
/* confdefs.h.  */
14073
 
_ACEOF
14074
 
cat confdefs.h >>conftest.$ac_ext
14075
 
cat >>conftest.$ac_ext <<_ACEOF
14076
 
/* end confdefs.h.  */
14077
 
#include <$ac_header>
14078
 
_ACEOF
14079
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
14080
 
case "(($ac_try" in
14081
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082
 
  *) ac_try_echo=$ac_try;;
14083
 
esac
14084
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14086
 
  ac_status=$?
14087
 
  grep -v '^ *+' conftest.er1 >conftest.err
14088
 
  rm -f conftest.er1
14089
 
  cat conftest.err >&5
14090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091
 
  (exit $ac_status); } >/dev/null && {
14092
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14093
 
         test ! -s conftest.err
14094
 
       }; then
14095
 
  ac_header_preproc=yes
14096
 
else
14097
 
  echo "$as_me: failed program was:" >&5
14098
 
sed 's/^/| /' conftest.$ac_ext >&5
14099
 
 
14100
 
  ac_header_preproc=no
14101
 
fi
14102
 
 
14103
 
rm -f conftest.err conftest.$ac_ext
14104
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14105
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
14106
 
 
14107
 
# So?  What about this header?
14108
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14109
 
  yes:no: )
14110
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14111
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14112
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14113
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14114
 
    ac_header_preproc=yes
14115
 
    ;;
14116
 
  no:yes:* )
14117
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14118
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14119
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14120
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14121
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14122
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14123
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14124
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14125
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14126
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14127
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14128
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14129
 
 
14130
 
    ;;
14131
 
esac
14132
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14133
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14134
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14136
 
else
14137
 
  eval "$as_ac_Header=\$ac_header_preproc"
14138
 
fi
14139
 
ac_res=`eval echo '${'$as_ac_Header'}'`
14140
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
14141
 
echo "${ECHO_T}$ac_res" >&6; }
14142
 
 
14143
 
fi
14144
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145
 
  cat >>confdefs.h <<_ACEOF
14146
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14147
 
_ACEOF
14148
 
 
14149
 
fi
14150
 
 
14151
 
done
14152
 
 
14153
 
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14154
 
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
14155
 
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14156
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14157
 
else
14158
 
  if test "$cross_compiling" = yes; then
14159
 
  ac_cv_func_realloc_0_nonnull=no
14160
 
else
14161
 
  cat >conftest.$ac_ext <<_ACEOF
14162
 
/* confdefs.h.  */
14163
 
_ACEOF
14164
 
cat confdefs.h >>conftest.$ac_ext
14165
 
cat >>conftest.$ac_ext <<_ACEOF
14166
 
/* end confdefs.h.  */
14167
 
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14168
 
# include <stdlib.h>
14169
 
#else
14170
 
char *realloc ();
14171
 
#endif
14172
 
 
14173
 
int
14174
 
main ()
14175
 
{
14176
 
return ! realloc (0, 0);
14177
 
  ;
14178
 
  return 0;
14179
 
}
14180
 
_ACEOF
14181
 
rm -f conftest$ac_exeext
14182
 
if { (ac_try="$ac_link"
14183
 
case "(($ac_try" in
14184
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185
 
  *) ac_try_echo=$ac_try;;
14186
 
esac
14187
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188
 
  (eval "$ac_link") 2>&5
14189
 
  ac_status=$?
14190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14192
 
  { (case "(($ac_try" in
14193
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194
 
  *) ac_try_echo=$ac_try;;
14195
 
esac
14196
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197
 
  (eval "$ac_try") 2>&5
14198
 
  ac_status=$?
14199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
 
  (exit $ac_status); }; }; then
14201
 
  ac_cv_func_realloc_0_nonnull=yes
14202
 
else
14203
 
  echo "$as_me: program exited with status $ac_status" >&5
14204
 
echo "$as_me: failed program was:" >&5
14205
 
sed 's/^/| /' conftest.$ac_ext >&5
14206
 
 
14207
 
( exit $ac_status )
14208
 
ac_cv_func_realloc_0_nonnull=no
14209
 
fi
14210
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14211
 
fi
14212
 
 
14213
 
 
14214
 
fi
14215
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14216
 
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
14217
 
if test $ac_cv_func_realloc_0_nonnull = yes; then
14218
 
 
14219
 
cat >>confdefs.h <<\_ACEOF
14220
 
#define HAVE_REALLOC 1
14221
 
_ACEOF
14222
 
 
14223
 
else
14224
 
  cat >>confdefs.h <<\_ACEOF
14225
 
#define HAVE_REALLOC 0
14226
 
_ACEOF
14227
 
 
14228
 
   case " $LIBOBJS " in
14229
 
  *" realloc.$ac_objext "* ) ;;
14230
 
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
14231
 
 ;;
14232
 
esac
14233
 
 
14234
 
 
14235
 
cat >>confdefs.h <<\_ACEOF
14236
 
#define realloc rpl_realloc
14237
 
_ACEOF
14238
 
 
14239
 
fi
14240
 
 
14241
 
 
14242
 
 
14243
 
 
14244
 
 
14245
 
for ac_header in sys/select.h sys/socket.h
14246
 
do
14247
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14249
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14250
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14251
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14253
 
fi
14254
 
ac_res=`eval echo '${'$as_ac_Header'}'`
14255
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
14256
 
echo "${ECHO_T}$ac_res" >&6; }
14257
 
else
14258
 
  # Is the header compilable?
14259
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14260
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14261
 
cat >conftest.$ac_ext <<_ACEOF
14262
 
/* confdefs.h.  */
14263
 
_ACEOF
14264
 
cat confdefs.h >>conftest.$ac_ext
14265
 
cat >>conftest.$ac_ext <<_ACEOF
14266
 
/* end confdefs.h.  */
14267
 
$ac_includes_default
14268
 
#include <$ac_header>
14269
 
_ACEOF
14270
 
rm -f conftest.$ac_objext
14271
 
if { (ac_try="$ac_compile"
14272
 
case "(($ac_try" in
14273
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274
 
  *) ac_try_echo=$ac_try;;
14275
 
esac
14276
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277
 
  (eval "$ac_compile") 2>conftest.er1
14278
 
  ac_status=$?
14279
 
  grep -v '^ *+' conftest.er1 >conftest.err
14280
 
  rm -f conftest.er1
14281
 
  cat conftest.err >&5
14282
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283
 
  (exit $ac_status); } && {
14284
 
         test -z "$ac_cxx_werror_flag" ||
14285
 
         test ! -s conftest.err
14286
 
       } && test -s conftest.$ac_objext; then
14287
 
  ac_header_compiler=yes
14288
 
else
14289
 
  echo "$as_me: failed program was:" >&5
14290
 
sed 's/^/| /' conftest.$ac_ext >&5
14291
 
 
14292
 
        ac_header_compiler=no
14293
 
fi
14294
 
 
14295
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14297
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
14298
 
 
14299
 
# Is the header present?
14300
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14301
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14302
 
cat >conftest.$ac_ext <<_ACEOF
14303
 
/* confdefs.h.  */
14304
 
_ACEOF
14305
 
cat confdefs.h >>conftest.$ac_ext
14306
 
cat >>conftest.$ac_ext <<_ACEOF
14307
 
/* end confdefs.h.  */
14308
 
#include <$ac_header>
14309
 
_ACEOF
14310
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
14311
 
case "(($ac_try" in
14312
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313
 
  *) ac_try_echo=$ac_try;;
14314
 
esac
14315
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14317
 
  ac_status=$?
14318
 
  grep -v '^ *+' conftest.er1 >conftest.err
14319
 
  rm -f conftest.er1
14320
 
  cat conftest.err >&5
14321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322
 
  (exit $ac_status); } >/dev/null && {
14323
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14324
 
         test ! -s conftest.err
14325
 
       }; then
14326
 
  ac_header_preproc=yes
14327
 
else
14328
 
  echo "$as_me: failed program was:" >&5
14329
 
sed 's/^/| /' conftest.$ac_ext >&5
14330
 
 
14331
 
  ac_header_preproc=no
14332
 
fi
14333
 
 
14334
 
rm -f conftest.err conftest.$ac_ext
14335
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
14337
 
 
14338
 
# So?  What about this header?
14339
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14340
 
  yes:no: )
14341
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14343
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345
 
    ac_header_preproc=yes
14346
 
    ;;
14347
 
  no:yes:* )
14348
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14350
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14351
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14352
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14355
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14356
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14360
 
 
14361
 
    ;;
14362
 
esac
14363
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14364
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14365
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14367
 
else
14368
 
  eval "$as_ac_Header=\$ac_header_preproc"
14369
 
fi
14370
 
ac_res=`eval echo '${'$as_ac_Header'}'`
14371
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
14372
 
echo "${ECHO_T}$ac_res" >&6; }
14373
 
 
14374
 
fi
14375
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14376
 
  cat >>confdefs.h <<_ACEOF
14377
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14378
 
_ACEOF
14379
 
 
14380
 
fi
14381
 
 
14382
 
done
14383
 
 
14384
 
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
14385
 
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
14386
 
if test "${ac_cv_func_select_args+set}" = set; then
14387
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14388
 
else
14389
 
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14390
 
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14391
 
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14392
 
   cat >conftest.$ac_ext <<_ACEOF
14393
 
/* confdefs.h.  */
14394
 
_ACEOF
14395
 
cat confdefs.h >>conftest.$ac_ext
14396
 
cat >>conftest.$ac_ext <<_ACEOF
14397
 
/* end confdefs.h.  */
14398
 
$ac_includes_default
14399
 
#ifdef HAVE_SYS_SELECT_H
14400
 
# include <sys/select.h>
14401
 
#endif
14402
 
#ifdef HAVE_SYS_SOCKET_H
14403
 
# include <sys/socket.h>
14404
 
#endif
14405
 
 
14406
 
int
14407
 
main ()
14408
 
{
14409
 
extern int select ($ac_arg1,
14410
 
                                            $ac_arg234, $ac_arg234, $ac_arg234,
14411
 
                                            $ac_arg5);
14412
 
  ;
14413
 
  return 0;
14414
 
}
14415
 
_ACEOF
14416
 
rm -f conftest.$ac_objext
14417
 
if { (ac_try="$ac_compile"
14418
 
case "(($ac_try" in
14419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420
 
  *) ac_try_echo=$ac_try;;
14421
 
esac
14422
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423
 
  (eval "$ac_compile") 2>conftest.er1
14424
 
  ac_status=$?
14425
 
  grep -v '^ *+' conftest.er1 >conftest.err
14426
 
  rm -f conftest.er1
14427
 
  cat conftest.err >&5
14428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429
 
  (exit $ac_status); } && {
14430
 
         test -z "$ac_cxx_werror_flag" ||
14431
 
         test ! -s conftest.err
14432
 
       } && test -s conftest.$ac_objext; then
14433
 
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14434
 
else
14435
 
  echo "$as_me: failed program was:" >&5
14436
 
sed 's/^/| /' conftest.$ac_ext >&5
14437
 
 
14438
 
 
14439
 
fi
14440
 
 
14441
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442
 
  done
14443
 
 done
14444
 
done
14445
 
# Provide a safe default value.
14446
 
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14447
 
 
14448
 
fi
14449
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14450
 
echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
14451
 
ac_save_IFS=$IFS; IFS=','
14452
 
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14453
 
IFS=$ac_save_IFS
14454
 
shift
14455
 
 
14456
 
cat >>confdefs.h <<_ACEOF
14457
 
#define SELECT_TYPE_ARG1 $1
14458
 
_ACEOF
14459
 
 
14460
 
 
14461
 
cat >>confdefs.h <<_ACEOF
14462
 
#define SELECT_TYPE_ARG234 ($2)
14463
 
_ACEOF
14464
 
 
14465
 
 
14466
 
cat >>confdefs.h <<_ACEOF
14467
 
#define SELECT_TYPE_ARG5 ($3)
14468
 
_ACEOF
14469
 
 
14470
 
rm -f conftest*
14471
 
 
14472
 
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14473
 
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14474
 
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14475
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14476
 
else
14477
 
  rm -f conftest.sym conftest.file
14478
 
echo >conftest.file
14479
 
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14480
 
  if test "$cross_compiling" = yes; then
14481
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
14482
 
else
14483
 
  cat >conftest.$ac_ext <<_ACEOF
14484
 
/* confdefs.h.  */
14485
 
_ACEOF
14486
 
cat confdefs.h >>conftest.$ac_ext
14487
 
cat >>conftest.$ac_ext <<_ACEOF
14488
 
/* end confdefs.h.  */
14489
 
$ac_includes_default
14490
 
int
14491
 
main ()
14492
 
{
14493
 
struct stat sbuf;
14494
 
     /* Linux will dereference the symlink and fail.
14495
 
        That is better in the sense that it means we will not
14496
 
        have to compile and use the lstat wrapper.  */
14497
 
     return lstat ("conftest.sym/", &sbuf) == 0;
14498
 
  ;
14499
 
  return 0;
14500
 
}
14501
 
_ACEOF
14502
 
rm -f conftest$ac_exeext
14503
 
if { (ac_try="$ac_link"
14504
 
case "(($ac_try" in
14505
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506
 
  *) ac_try_echo=$ac_try;;
14507
 
esac
14508
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509
 
  (eval "$ac_link") 2>&5
14510
 
  ac_status=$?
14511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14513
 
  { (case "(($ac_try" in
14514
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515
 
  *) ac_try_echo=$ac_try;;
14516
 
esac
14517
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518
 
  (eval "$ac_try") 2>&5
14519
 
  ac_status=$?
14520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521
 
  (exit $ac_status); }; }; then
14522
 
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
14523
 
else
14524
 
  echo "$as_me: program exited with status $ac_status" >&5
14525
 
echo "$as_me: failed program was:" >&5
14526
 
sed 's/^/| /' conftest.$ac_ext >&5
14527
 
 
14528
 
( exit $ac_status )
14529
 
ac_cv_func_lstat_dereferences_slashed_symlink=no
14530
 
fi
14531
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14532
 
fi
14533
 
 
14534
 
 
14535
 
else
14536
 
  # If the `ln -s' command failed, then we probably don't even
14537
 
  # have an lstat function.
14538
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
14539
 
fi
14540
 
rm -f conftest.sym conftest.file
14541
 
 
14542
 
fi
14543
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14544
 
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14545
 
 
14546
 
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14547
 
 
14548
 
cat >>confdefs.h <<_ACEOF
14549
 
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14550
 
_ACEOF
14551
 
 
14552
 
 
14553
 
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14554
 
  case " $LIBOBJS " in
14555
 
  *" lstat.$ac_objext "* ) ;;
14556
 
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14557
 
 ;;
14558
 
esac
14559
 
 
14560
 
fi
14561
 
 
14562
 
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14563
 
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14564
 
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14565
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14566
 
else
14567
 
  if test "$cross_compiling" = yes; then
14568
 
  ac_cv_func_stat_empty_string_bug=yes
14569
 
else
14570
 
  cat >conftest.$ac_ext <<_ACEOF
14571
 
/* confdefs.h.  */
14572
 
_ACEOF
14573
 
cat confdefs.h >>conftest.$ac_ext
14574
 
cat >>conftest.$ac_ext <<_ACEOF
14575
 
/* end confdefs.h.  */
14576
 
$ac_includes_default
14577
 
int
14578
 
main ()
14579
 
{
14580
 
struct stat sbuf;
14581
 
  return stat ("", &sbuf) == 0;
14582
 
  ;
14583
 
  return 0;
14584
 
}
14585
 
_ACEOF
14586
 
rm -f conftest$ac_exeext
14587
 
if { (ac_try="$ac_link"
14588
 
case "(($ac_try" in
14589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590
 
  *) ac_try_echo=$ac_try;;
14591
 
esac
14592
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593
 
  (eval "$ac_link") 2>&5
14594
 
  ac_status=$?
14595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14597
 
  { (case "(($ac_try" in
14598
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599
 
  *) ac_try_echo=$ac_try;;
14600
 
esac
14601
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602
 
  (eval "$ac_try") 2>&5
14603
 
  ac_status=$?
14604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605
 
  (exit $ac_status); }; }; then
14606
 
  ac_cv_func_stat_empty_string_bug=no
14607
 
else
14608
 
  echo "$as_me: program exited with status $ac_status" >&5
14609
 
echo "$as_me: failed program was:" >&5
14610
 
sed 's/^/| /' conftest.$ac_ext >&5
14611
 
 
14612
 
( exit $ac_status )
14613
 
ac_cv_func_stat_empty_string_bug=yes
14614
 
fi
14615
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14616
 
fi
14617
 
 
14618
 
 
14619
 
fi
14620
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14621
 
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14622
 
if test $ac_cv_func_stat_empty_string_bug = yes; then
14623
 
  case " $LIBOBJS " in
14624
 
  *" stat.$ac_objext "* ) ;;
14625
 
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14626
 
 ;;
14627
 
esac
14628
 
 
14629
 
 
14630
 
cat >>confdefs.h <<_ACEOF
14631
 
#define HAVE_STAT_EMPTY_STRING_BUG 1
14632
 
_ACEOF
14633
 
 
14634
 
fi
14635
 
 
14636
 
 
14637
 
for ac_func in strftime
14638
 
do
14639
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14640
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14641
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14642
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14644
 
else
14645
 
  cat >conftest.$ac_ext <<_ACEOF
14646
 
/* confdefs.h.  */
14647
 
_ACEOF
14648
 
cat confdefs.h >>conftest.$ac_ext
14649
 
cat >>conftest.$ac_ext <<_ACEOF
14650
 
/* end confdefs.h.  */
14651
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14652
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14653
 
#define $ac_func innocuous_$ac_func
14654
 
 
14655
 
/* System header to define __stub macros and hopefully few prototypes,
14656
 
    which can conflict with char $ac_func (); below.
14657
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658
 
    <limits.h> exists even on freestanding compilers.  */
14659
 
 
14660
 
#ifdef __STDC__
14661
 
# include <limits.h>
14662
 
#else
14663
 
# include <assert.h>
14664
 
#endif
14665
 
 
14666
 
#undef $ac_func
14667
 
 
14668
 
/* Override any GCC internal prototype to avoid an error.
14669
 
   Use char because int might match the return type of a GCC
14670
 
   builtin and then its argument prototype would still apply.  */
14671
 
#ifdef __cplusplus
14672
 
extern "C"
14673
 
#endif
14674
 
char $ac_func ();
14675
 
/* The GNU C library defines this for functions which it implements
14676
 
    to always fail with ENOSYS.  Some functions are actually named
14677
 
    something starting with __ and the normal name is an alias.  */
14678
 
#if defined __stub_$ac_func || defined __stub___$ac_func
14679
 
choke me
14680
 
#endif
14681
 
 
14682
 
int
14683
 
main ()
14684
 
{
14685
 
return $ac_func ();
14686
 
  ;
14687
 
  return 0;
14688
 
}
14689
 
_ACEOF
14690
 
rm -f conftest.$ac_objext conftest$ac_exeext
14691
 
if { (ac_try="$ac_link"
14692
 
case "(($ac_try" in
14693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694
 
  *) ac_try_echo=$ac_try;;
14695
 
esac
14696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697
 
  (eval "$ac_link") 2>conftest.er1
14698
 
  ac_status=$?
14699
 
  grep -v '^ *+' conftest.er1 >conftest.err
14700
 
  rm -f conftest.er1
14701
 
  cat conftest.err >&5
14702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703
 
  (exit $ac_status); } && {
14704
 
         test -z "$ac_cxx_werror_flag" ||
14705
 
         test ! -s conftest.err
14706
 
       } && test -s conftest$ac_exeext &&
14707
 
       $as_test_x conftest$ac_exeext; then
14708
 
  eval "$as_ac_var=yes"
14709
 
else
14710
 
  echo "$as_me: failed program was:" >&5
14711
 
sed 's/^/| /' conftest.$ac_ext >&5
14712
 
 
14713
 
        eval "$as_ac_var=no"
14714
 
fi
14715
 
 
14716
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717
 
      conftest$ac_exeext conftest.$ac_ext
14718
 
fi
14719
 
ac_res=`eval echo '${'$as_ac_var'}'`
14720
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
14721
 
echo "${ECHO_T}$ac_res" >&6; }
14722
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
14723
 
  cat >>confdefs.h <<_ACEOF
14724
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14725
 
_ACEOF
14726
 
 
14727
 
else
14728
 
  # strftime is in -lintl on SCO UNIX.
14729
 
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14730
 
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14731
 
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14732
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14733
 
else
14734
 
  ac_check_lib_save_LIBS=$LIBS
14735
 
LIBS="-lintl  $LIBS"
14736
 
cat >conftest.$ac_ext <<_ACEOF
14737
 
/* confdefs.h.  */
14738
 
_ACEOF
14739
 
cat confdefs.h >>conftest.$ac_ext
14740
 
cat >>conftest.$ac_ext <<_ACEOF
14741
 
/* end confdefs.h.  */
14742
 
 
14743
 
/* Override any GCC internal prototype to avoid an error.
14744
 
   Use char because int might match the return type of a GCC
14745
 
   builtin and then its argument prototype would still apply.  */
14746
 
#ifdef __cplusplus
14747
 
extern "C"
14748
 
#endif
14749
 
char strftime ();
14750
 
int
14751
 
main ()
14752
 
{
14753
 
return strftime ();
14754
 
  ;
14755
 
  return 0;
14756
 
}
14757
 
_ACEOF
14758
 
rm -f conftest.$ac_objext conftest$ac_exeext
14759
 
if { (ac_try="$ac_link"
14760
 
case "(($ac_try" in
14761
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762
 
  *) ac_try_echo=$ac_try;;
14763
 
esac
14764
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765
 
  (eval "$ac_link") 2>conftest.er1
14766
 
  ac_status=$?
14767
 
  grep -v '^ *+' conftest.er1 >conftest.err
14768
 
  rm -f conftest.er1
14769
 
  cat conftest.err >&5
14770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771
 
  (exit $ac_status); } && {
14772
 
         test -z "$ac_cxx_werror_flag" ||
14773
 
         test ! -s conftest.err
14774
 
       } && test -s conftest$ac_exeext &&
14775
 
       $as_test_x conftest$ac_exeext; then
14776
 
  ac_cv_lib_intl_strftime=yes
14777
 
else
14778
 
  echo "$as_me: failed program was:" >&5
14779
 
sed 's/^/| /' conftest.$ac_ext >&5
14780
 
 
14781
 
        ac_cv_lib_intl_strftime=no
14782
 
fi
14783
 
 
14784
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14785
 
      conftest$ac_exeext conftest.$ac_ext
14786
 
LIBS=$ac_check_lib_save_LIBS
14787
 
fi
14788
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14789
 
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14790
 
if test $ac_cv_lib_intl_strftime = yes; then
14791
 
  cat >>confdefs.h <<\_ACEOF
14792
 
#define HAVE_STRFTIME 1
14793
 
_ACEOF
14794
 
 
14795
 
LIBS="-lintl $LIBS"
14796
 
fi
14797
 
 
14798
 
fi
14799
 
done
14800
 
 
14801
 
 
14802
 
 
14803
 
 
14804
 
 
14805
 
 
14806
 
ac_header_dirent=no
14807
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14808
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14809
 
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14810
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14811
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14813
 
else
14814
 
  cat >conftest.$ac_ext <<_ACEOF
14815
 
/* confdefs.h.  */
14816
 
_ACEOF
14817
 
cat confdefs.h >>conftest.$ac_ext
14818
 
cat >>conftest.$ac_ext <<_ACEOF
14819
 
/* end confdefs.h.  */
14820
 
#include <sys/types.h>
14821
 
#include <$ac_hdr>
14822
 
 
14823
 
int
14824
 
main ()
14825
 
{
14826
 
if ((DIR *) 0)
14827
 
return 0;
14828
 
  ;
14829
 
  return 0;
14830
 
}
14831
 
_ACEOF
14832
 
rm -f conftest.$ac_objext
14833
 
if { (ac_try="$ac_compile"
14834
 
case "(($ac_try" in
14835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836
 
  *) ac_try_echo=$ac_try;;
14837
 
esac
14838
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839
 
  (eval "$ac_compile") 2>conftest.er1
14840
 
  ac_status=$?
14841
 
  grep -v '^ *+' conftest.er1 >conftest.err
14842
 
  rm -f conftest.er1
14843
 
  cat conftest.err >&5
14844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845
 
  (exit $ac_status); } && {
14846
 
         test -z "$ac_cxx_werror_flag" ||
14847
 
         test ! -s conftest.err
14848
 
       } && test -s conftest.$ac_objext; then
14849
 
  eval "$as_ac_Header=yes"
14850
 
else
14851
 
  echo "$as_me: failed program was:" >&5
14852
 
sed 's/^/| /' conftest.$ac_ext >&5
14853
 
 
14854
 
        eval "$as_ac_Header=no"
14855
 
fi
14856
 
 
14857
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858
 
fi
14859
 
ac_res=`eval echo '${'$as_ac_Header'}'`
14860
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
14861
 
echo "${ECHO_T}$ac_res" >&6; }
14862
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14863
 
  cat >>confdefs.h <<_ACEOF
14864
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14865
 
_ACEOF
14866
 
 
14867
 
ac_header_dirent=$ac_hdr; break
14868
 
fi
14869
 
 
14870
 
done
14871
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14872
 
if test $ac_header_dirent = dirent.h; then
14873
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14874
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14875
 
if test "${ac_cv_search_opendir+set}" = set; then
14876
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14877
 
else
14878
 
  ac_func_search_save_LIBS=$LIBS
14879
 
cat >conftest.$ac_ext <<_ACEOF
14880
 
/* confdefs.h.  */
14881
 
_ACEOF
14882
 
cat confdefs.h >>conftest.$ac_ext
14883
 
cat >>conftest.$ac_ext <<_ACEOF
14884
 
/* end confdefs.h.  */
14885
 
 
14886
 
/* Override any GCC internal prototype to avoid an error.
14887
 
   Use char because int might match the return type of a GCC
14888
 
   builtin and then its argument prototype would still apply.  */
14889
 
#ifdef __cplusplus
14890
 
extern "C"
14891
 
#endif
14892
 
char opendir ();
14893
 
int
14894
 
main ()
14895
 
{
14896
 
return opendir ();
14897
 
  ;
14898
 
  return 0;
14899
 
}
14900
 
_ACEOF
14901
 
for ac_lib in '' dir; do
14902
 
  if test -z "$ac_lib"; then
14903
 
    ac_res="none required"
14904
 
  else
14905
 
    ac_res=-l$ac_lib
14906
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14907
 
  fi
14908
 
  rm -f conftest.$ac_objext conftest$ac_exeext
14909
 
if { (ac_try="$ac_link"
14910
 
case "(($ac_try" in
14911
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912
 
  *) ac_try_echo=$ac_try;;
14913
 
esac
14914
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915
 
  (eval "$ac_link") 2>conftest.er1
14916
 
  ac_status=$?
14917
 
  grep -v '^ *+' conftest.er1 >conftest.err
14918
 
  rm -f conftest.er1
14919
 
  cat conftest.err >&5
14920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921
 
  (exit $ac_status); } && {
14922
 
         test -z "$ac_cxx_werror_flag" ||
14923
 
         test ! -s conftest.err
14924
 
       } && test -s conftest$ac_exeext &&
14925
 
       $as_test_x conftest$ac_exeext; then
14926
 
  ac_cv_search_opendir=$ac_res
14927
 
else
14928
 
  echo "$as_me: failed program was:" >&5
14929
 
sed 's/^/| /' conftest.$ac_ext >&5
14930
 
 
14931
 
 
14932
 
fi
14933
 
 
14934
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14935
 
      conftest$ac_exeext
14936
 
  if test "${ac_cv_search_opendir+set}" = set; then
14937
 
  break
14938
 
fi
14939
 
done
14940
 
if test "${ac_cv_search_opendir+set}" = set; then
14941
 
  :
14942
 
else
14943
 
  ac_cv_search_opendir=no
14944
 
fi
14945
 
rm conftest.$ac_ext
14946
 
LIBS=$ac_func_search_save_LIBS
14947
 
fi
14948
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14949
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14950
 
ac_res=$ac_cv_search_opendir
14951
 
if test "$ac_res" != no; then
14952
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14953
 
 
14954
 
fi
14955
 
 
14956
 
else
14957
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14958
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14959
 
if test "${ac_cv_search_opendir+set}" = set; then
14960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14961
 
else
14962
 
  ac_func_search_save_LIBS=$LIBS
14963
 
cat >conftest.$ac_ext <<_ACEOF
14964
 
/* confdefs.h.  */
14965
 
_ACEOF
14966
 
cat confdefs.h >>conftest.$ac_ext
14967
 
cat >>conftest.$ac_ext <<_ACEOF
14968
 
/* end confdefs.h.  */
14969
 
 
14970
 
/* Override any GCC internal prototype to avoid an error.
14971
 
   Use char because int might match the return type of a GCC
14972
 
   builtin and then its argument prototype would still apply.  */
14973
 
#ifdef __cplusplus
14974
 
extern "C"
14975
 
#endif
14976
 
char opendir ();
14977
 
int
14978
 
main ()
14979
 
{
14980
 
return opendir ();
14981
 
  ;
14982
 
  return 0;
14983
 
}
14984
 
_ACEOF
14985
 
for ac_lib in '' x; do
14986
 
  if test -z "$ac_lib"; then
14987
 
    ac_res="none required"
14988
 
  else
14989
 
    ac_res=-l$ac_lib
14990
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14991
 
  fi
14992
 
  rm -f conftest.$ac_objext conftest$ac_exeext
14993
 
if { (ac_try="$ac_link"
14994
 
case "(($ac_try" in
14995
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996
 
  *) ac_try_echo=$ac_try;;
14997
 
esac
14998
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999
 
  (eval "$ac_link") 2>conftest.er1
15000
 
  ac_status=$?
15001
 
  grep -v '^ *+' conftest.er1 >conftest.err
15002
 
  rm -f conftest.er1
15003
 
  cat conftest.err >&5
15004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005
 
  (exit $ac_status); } && {
15006
 
         test -z "$ac_cxx_werror_flag" ||
15007
 
         test ! -s conftest.err
15008
 
       } && test -s conftest$ac_exeext &&
15009
 
       $as_test_x conftest$ac_exeext; then
15010
 
  ac_cv_search_opendir=$ac_res
15011
 
else
15012
 
  echo "$as_me: failed program was:" >&5
15013
 
sed 's/^/| /' conftest.$ac_ext >&5
15014
 
 
15015
 
 
15016
 
fi
15017
 
 
15018
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15019
 
      conftest$ac_exeext
15020
 
  if test "${ac_cv_search_opendir+set}" = set; then
15021
 
  break
15022
 
fi
15023
 
done
15024
 
if test "${ac_cv_search_opendir+set}" = set; then
15025
 
  :
15026
 
else
15027
 
  ac_cv_search_opendir=no
15028
 
fi
15029
 
rm conftest.$ac_ext
15030
 
LIBS=$ac_func_search_save_LIBS
15031
 
fi
15032
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15033
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15034
 
ac_res=$ac_cv_search_opendir
15035
 
if test "$ac_res" != no; then
15036
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15037
 
 
15038
 
fi
15039
 
 
15040
 
fi
15041
 
 
15042
 
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
15043
 
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
15044
 
if test "${ac_cv_header_stdbool_h+set}" = set; then
15045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15046
 
else
15047
 
  cat >conftest.$ac_ext <<_ACEOF
15048
 
/* confdefs.h.  */
15049
 
_ACEOF
15050
 
cat confdefs.h >>conftest.$ac_ext
15051
 
cat >>conftest.$ac_ext <<_ACEOF
15052
 
/* end confdefs.h.  */
15053
 
 
15054
 
#include <stdbool.h>
15055
 
#ifndef bool
15056
 
 "error: bool is not defined"
15057
 
#endif
15058
 
#ifndef false
15059
 
 "error: false is not defined"
15060
 
#endif
15061
 
#if false
15062
 
 "error: false is not 0"
15063
 
#endif
15064
 
#ifndef true
15065
 
 "error: true is not defined"
15066
 
#endif
15067
 
#if true != 1
15068
 
 "error: true is not 1"
15069
 
#endif
15070
 
#ifndef __bool_true_false_are_defined
15071
 
 "error: __bool_true_false_are_defined is not defined"
15072
 
#endif
15073
 
 
15074
 
        struct s { _Bool s: 1; _Bool t; } s;
15075
 
 
15076
 
        char a[true == 1 ? 1 : -1];
15077
 
        char b[false == 0 ? 1 : -1];
15078
 
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15079
 
        char d[(bool) 0.5 == true ? 1 : -1];
15080
 
        bool e = &s;
15081
 
        char f[(_Bool) 0.0 == false ? 1 : -1];
15082
 
        char g[true];
15083
 
        char h[sizeof (_Bool)];
15084
 
        char i[sizeof s.t];
15085
 
        enum { j = false, k = true, l = false * true, m = true * 256 };
15086
 
        _Bool n[m];
15087
 
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15088
 
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15089
 
#       if defined __xlc__ || defined __GNUC__
15090
 
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15091
 
            reported by James Lemley on 2005-10-05; see
15092
 
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15093
 
            This test is not quite right, since xlc is allowed to
15094
 
            reject this program, as the initializer for xlcbug is
15095
 
            not one of the forms that C requires support for.
15096
 
            However, doing the test right would require a runtime
15097
 
            test, and that would make cross-compilation harder.
15098
 
            Let us hope that IBM fixes the xlc bug, and also adds
15099
 
            support for this kind of constant expression.  In the
15100
 
            meantime, this test will reject xlc, which is OK, since
15101
 
            our stdbool.h substitute should suffice.  We also test
15102
 
            this with GCC, where it should work, to detect more
15103
 
            quickly whether someone messes up the test in the
15104
 
            future.  */
15105
 
         char digs[] = "0123456789";
15106
 
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15107
 
#       endif
15108
 
        /* Catch a bug in an HP-UX C compiler.  See
15109
 
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15110
 
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15111
 
         */
15112
 
        _Bool q = true;
15113
 
        _Bool *pq = &q;
15114
 
 
15115
 
int
15116
 
main ()
15117
 
{
15118
 
 
15119
 
        *pq |= q;
15120
 
        *pq |= ! q;
15121
 
        /* Refer to every declared value, to avoid compiler optimizations.  */
15122
 
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15123
 
                + !m + !n + !o + !p + !q + !pq);
15124
 
 
15125
 
  ;
15126
 
  return 0;
15127
 
}
15128
 
_ACEOF
15129
 
rm -f conftest.$ac_objext
15130
 
if { (ac_try="$ac_compile"
15131
 
case "(($ac_try" in
15132
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133
 
  *) ac_try_echo=$ac_try;;
15134
 
esac
15135
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136
 
  (eval "$ac_compile") 2>conftest.er1
15137
 
  ac_status=$?
15138
 
  grep -v '^ *+' conftest.er1 >conftest.err
15139
 
  rm -f conftest.er1
15140
 
  cat conftest.err >&5
15141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142
 
  (exit $ac_status); } && {
15143
 
         test -z "$ac_cxx_werror_flag" ||
15144
 
         test ! -s conftest.err
15145
 
       } && test -s conftest.$ac_objext; then
15146
 
  ac_cv_header_stdbool_h=yes
15147
 
else
15148
 
  echo "$as_me: failed program was:" >&5
15149
 
sed 's/^/| /' conftest.$ac_ext >&5
15150
 
 
15151
 
        ac_cv_header_stdbool_h=no
15152
 
fi
15153
 
 
15154
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155
 
fi
15156
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
15157
 
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
15158
 
{ echo "$as_me:$LINENO: checking for _Bool" >&5
15159
 
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
15160
 
if test "${ac_cv_type__Bool+set}" = set; then
15161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15162
 
else
15163
 
  cat >conftest.$ac_ext <<_ACEOF
15164
 
/* confdefs.h.  */
15165
 
_ACEOF
15166
 
cat confdefs.h >>conftest.$ac_ext
15167
 
cat >>conftest.$ac_ext <<_ACEOF
15168
 
/* end confdefs.h.  */
15169
 
$ac_includes_default
15170
 
typedef _Bool ac__type_new_;
15171
 
int
15172
 
main ()
15173
 
{
15174
 
if ((ac__type_new_ *) 0)
15175
 
  return 0;
15176
 
if (sizeof (ac__type_new_))
15177
 
  return 0;
15178
 
  ;
15179
 
  return 0;
15180
 
}
15181
 
_ACEOF
15182
 
rm -f conftest.$ac_objext
15183
 
if { (ac_try="$ac_compile"
15184
 
case "(($ac_try" in
15185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186
 
  *) ac_try_echo=$ac_try;;
15187
 
esac
15188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189
 
  (eval "$ac_compile") 2>conftest.er1
15190
 
  ac_status=$?
15191
 
  grep -v '^ *+' conftest.er1 >conftest.err
15192
 
  rm -f conftest.er1
15193
 
  cat conftest.err >&5
15194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195
 
  (exit $ac_status); } && {
15196
 
         test -z "$ac_cxx_werror_flag" ||
15197
 
         test ! -s conftest.err
15198
 
       } && test -s conftest.$ac_objext; then
15199
 
  ac_cv_type__Bool=yes
15200
 
else
15201
 
  echo "$as_me: failed program was:" >&5
15202
 
sed 's/^/| /' conftest.$ac_ext >&5
15203
 
 
15204
 
        ac_cv_type__Bool=no
15205
 
fi
15206
 
 
15207
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208
 
fi
15209
 
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
15210
 
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
15211
 
if test $ac_cv_type__Bool = yes; then
15212
 
 
15213
 
cat >>confdefs.h <<_ACEOF
15214
 
#define HAVE__BOOL 1
15215
 
_ACEOF
15216
 
 
15217
 
 
15218
 
fi
15219
 
 
15220
 
if test $ac_cv_header_stdbool_h = yes; then
15221
 
 
15222
 
cat >>confdefs.h <<\_ACEOF
15223
 
#define HAVE_STDBOOL_H 1
15224
 
_ACEOF
15225
 
 
15226
 
fi
15227
 
 
15228
 
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15229
 
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15230
 
if test "${ac_cv_header_sys_wait_h+set}" = set; then
15231
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15232
 
else
15233
 
  cat >conftest.$ac_ext <<_ACEOF
15234
 
/* confdefs.h.  */
15235
 
_ACEOF
15236
 
cat confdefs.h >>conftest.$ac_ext
15237
 
cat >>conftest.$ac_ext <<_ACEOF
15238
 
/* end confdefs.h.  */
15239
 
#include <sys/types.h>
15240
 
#include <sys/wait.h>
15241
 
#ifndef WEXITSTATUS
15242
 
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15243
 
#endif
15244
 
#ifndef WIFEXITED
15245
 
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15246
 
#endif
15247
 
 
15248
 
int
15249
 
main ()
15250
 
{
15251
 
  int s;
15252
 
  wait (&s);
15253
 
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15254
 
  ;
15255
 
  return 0;
15256
 
}
15257
 
_ACEOF
15258
 
rm -f conftest.$ac_objext
15259
 
if { (ac_try="$ac_compile"
15260
 
case "(($ac_try" in
15261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262
 
  *) ac_try_echo=$ac_try;;
15263
 
esac
15264
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265
 
  (eval "$ac_compile") 2>conftest.er1
15266
 
  ac_status=$?
15267
 
  grep -v '^ *+' conftest.er1 >conftest.err
15268
 
  rm -f conftest.er1
15269
 
  cat conftest.err >&5
15270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271
 
  (exit $ac_status); } && {
15272
 
         test -z "$ac_cxx_werror_flag" ||
15273
 
         test ! -s conftest.err
15274
 
       } && test -s conftest.$ac_objext; then
15275
 
  ac_cv_header_sys_wait_h=yes
15276
 
else
15277
 
  echo "$as_me: failed program was:" >&5
15278
 
sed 's/^/| /' conftest.$ac_ext >&5
15279
 
 
15280
 
        ac_cv_header_sys_wait_h=no
15281
 
fi
15282
 
 
15283
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284
 
fi
15285
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15286
 
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15287
 
if test $ac_cv_header_sys_wait_h = yes; then
15288
 
 
15289
 
cat >>confdefs.h <<\_ACEOF
15290
 
#define HAVE_SYS_WAIT_H 1
15291
 
_ACEOF
15292
 
 
15293
 
fi
15294
 
 
15295
 
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15296
 
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
15297
 
if test "${ac_cv_struct_tm+set}" = set; then
15298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15299
 
else
15300
 
  cat >conftest.$ac_ext <<_ACEOF
15301
 
/* confdefs.h.  */
15302
 
_ACEOF
15303
 
cat confdefs.h >>conftest.$ac_ext
15304
 
cat >>conftest.$ac_ext <<_ACEOF
15305
 
/* end confdefs.h.  */
15306
 
#include <sys/types.h>
15307
 
#include <time.h>
15308
 
 
15309
 
int
15310
 
main ()
15311
 
{
15312
 
struct tm tm;
15313
 
                                     int *p = &tm.tm_sec;
15314
 
                                     return !p;
15315
 
  ;
15316
 
  return 0;
15317
 
}
15318
 
_ACEOF
15319
 
rm -f conftest.$ac_objext
15320
 
if { (ac_try="$ac_compile"
15321
 
case "(($ac_try" in
15322
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323
 
  *) ac_try_echo=$ac_try;;
15324
 
esac
15325
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326
 
  (eval "$ac_compile") 2>conftest.er1
15327
 
  ac_status=$?
15328
 
  grep -v '^ *+' conftest.er1 >conftest.err
15329
 
  rm -f conftest.er1
15330
 
  cat conftest.err >&5
15331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332
 
  (exit $ac_status); } && {
15333
 
         test -z "$ac_cxx_werror_flag" ||
15334
 
         test ! -s conftest.err
15335
 
       } && test -s conftest.$ac_objext; then
15336
 
  ac_cv_struct_tm=time.h
15337
 
else
15338
 
  echo "$as_me: failed program was:" >&5
15339
 
sed 's/^/| /' conftest.$ac_ext >&5
15340
 
 
15341
 
        ac_cv_struct_tm=sys/time.h
15342
 
fi
15343
 
 
15344
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345
 
fi
15346
 
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15347
 
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
15348
 
if test $ac_cv_struct_tm = sys/time.h; then
15349
 
 
15350
 
cat >>confdefs.h <<\_ACEOF
15351
 
#define TM_IN_SYS_TIME 1
15352
 
_ACEOF
15353
 
 
15354
 
fi
15355
 
 
15356
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
15357
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
15358
 
if test "${ac_cv_type_pid_t+set}" = set; then
15359
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15360
 
else
15361
 
  cat >conftest.$ac_ext <<_ACEOF
15362
 
/* confdefs.h.  */
15363
 
_ACEOF
15364
 
cat confdefs.h >>conftest.$ac_ext
15365
 
cat >>conftest.$ac_ext <<_ACEOF
15366
 
/* end confdefs.h.  */
15367
 
$ac_includes_default
15368
 
typedef pid_t ac__type_new_;
15369
 
int
15370
 
main ()
15371
 
{
15372
 
if ((ac__type_new_ *) 0)
15373
 
  return 0;
15374
 
if (sizeof (ac__type_new_))
15375
 
  return 0;
15376
 
  ;
15377
 
  return 0;
15378
 
}
15379
 
_ACEOF
15380
 
rm -f conftest.$ac_objext
15381
 
if { (ac_try="$ac_compile"
15382
 
case "(($ac_try" in
15383
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384
 
  *) ac_try_echo=$ac_try;;
15385
 
esac
15386
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387
 
  (eval "$ac_compile") 2>conftest.er1
15388
 
  ac_status=$?
15389
 
  grep -v '^ *+' conftest.er1 >conftest.err
15390
 
  rm -f conftest.er1
15391
 
  cat conftest.err >&5
15392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393
 
  (exit $ac_status); } && {
15394
 
         test -z "$ac_cxx_werror_flag" ||
15395
 
         test ! -s conftest.err
15396
 
       } && test -s conftest.$ac_objext; then
15397
 
  ac_cv_type_pid_t=yes
15398
 
else
15399
 
  echo "$as_me: failed program was:" >&5
15400
 
sed 's/^/| /' conftest.$ac_ext >&5
15401
 
 
15402
 
        ac_cv_type_pid_t=no
15403
 
fi
15404
 
 
15405
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406
 
fi
15407
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15408
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
15409
 
if test $ac_cv_type_pid_t = yes; then
15410
 
  :
15411
 
else
15412
 
 
15413
 
cat >>confdefs.h <<_ACEOF
15414
 
#define pid_t int
15415
 
_ACEOF
15416
 
 
15417
 
fi
15418
 
 
15419
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
15420
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15421
 
if test "${ac_cv_type_size_t+set}" = set; then
15422
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15423
 
else
15424
 
  cat >conftest.$ac_ext <<_ACEOF
15425
 
/* confdefs.h.  */
15426
 
_ACEOF
15427
 
cat confdefs.h >>conftest.$ac_ext
15428
 
cat >>conftest.$ac_ext <<_ACEOF
15429
 
/* end confdefs.h.  */
15430
 
$ac_includes_default
15431
 
typedef size_t ac__type_new_;
15432
 
int
15433
 
main ()
15434
 
{
15435
 
if ((ac__type_new_ *) 0)
15436
 
  return 0;
15437
 
if (sizeof (ac__type_new_))
15438
 
  return 0;
15439
 
  ;
15440
 
  return 0;
15441
 
}
15442
 
_ACEOF
15443
 
rm -f conftest.$ac_objext
15444
 
if { (ac_try="$ac_compile"
15445
 
case "(($ac_try" in
15446
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447
 
  *) ac_try_echo=$ac_try;;
15448
 
esac
15449
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450
 
  (eval "$ac_compile") 2>conftest.er1
15451
 
  ac_status=$?
15452
 
  grep -v '^ *+' conftest.er1 >conftest.err
15453
 
  rm -f conftest.er1
15454
 
  cat conftest.err >&5
15455
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456
 
  (exit $ac_status); } && {
15457
 
         test -z "$ac_cxx_werror_flag" ||
15458
 
         test ! -s conftest.err
15459
 
       } && test -s conftest.$ac_objext; then
15460
 
  ac_cv_type_size_t=yes
15461
 
else
15462
 
  echo "$as_me: failed program was:" >&5
15463
 
sed 's/^/| /' conftest.$ac_ext >&5
15464
 
 
15465
 
        ac_cv_type_size_t=no
15466
 
fi
15467
 
 
15468
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469
 
fi
15470
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15471
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15472
 
if test $ac_cv_type_size_t = yes; then
15473
 
  :
15474
 
else
15475
 
 
15476
 
cat >>confdefs.h <<_ACEOF
15477
 
#define size_t unsigned int
15478
 
_ACEOF
15479
 
 
15480
 
fi
15481
 
 
 
10176
  $ac_cs_success || as_fn_exit $?
 
10177
fi
 
10178
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
10179
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
10180
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
10181
fi
 
10182
 
 
10183
 
 
10184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
10185
$as_echo "" >&6; }
 
10186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:        $PACKAGE version $VERSION configured successfully." >&5
 
10187
$as_echo "      $PACKAGE version $VERSION configured successfully." >&6; }
 
10188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
10189
$as_echo "" >&6; }
 
10190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$prefix' for installation." >&5
 
10191
$as_echo "Using '$prefix' for installation." >&6; }
 
10192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_MENU' for location menu file." >&5
 
10193
$as_echo "Using '$DEFAULT_MENU' for location menu file." >&6; }
 
10194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_STYLE' by default style." >&5
 
10195
$as_echo "Using '$DEFAULT_STYLE' by default style." >&6; }
 
10196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_KEYS' for location keys file." >&5
 
10197
$as_echo "Using '$DEFAULT_KEYS' for location keys file." >&6; }
 
10198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_INIT' for location init file." >&5
 
10199
$as_echo "Using '$DEFAULT_INIT' for location init file." >&6; }
 
10200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$LOCALE_PATH' for nls files." >&5
 
10201
$as_echo "Using '$LOCALE_PATH' for nls files." >&6; }
 
10202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$CXX' for C++ compiler." >&5
 
10203
$as_echo "Using '$CXX' for C++ compiler." >&6; }
 
10204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
 
10205
$as_echo "Building with '$CXXFLAGS' for C++ compiler flags." >&6; }
 
10206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building with '$LIBS' for linker flags." >&5
 
10207
$as_echo "Building with '$LIBS' for linker flags." >&6; }
 
10208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
10209
$as_echo "" >&6; }
 
10210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Now build $PACKAGE with 'make'" >&5
 
10211
$as_echo "Now build $PACKAGE with 'make'" >&6; }
 
10212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
10213
$as_echo "" >&6; }