~ubuntu-branches/ubuntu/trusty/xserver-xorg-video-dummy-lts-utopic/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2015-01-06 10:39:13 UTC
  • Revision ID: package-import@ubuntu.com-20150106103913-fjjsho4g2a4ziord
Tags: upstream-0.3.7
ImportĀ upstreamĀ versionĀ 0.3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for xf86-video-dummy 0.3.7.
 
4
#
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
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
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
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
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
test \$(( 1 + 1 )) = 2 || exit 1
 
202
 
 
203
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
204
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
207
    PATH=/empty FPATH=/empty; export PATH FPATH
 
208
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
209
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
 
279
$0: about your system, including any error possibly output
 
280
$0: before this message. Then install a modern shell, or
 
281
$0: manually run the script under such a shell if you do
 
282
$0: have one."
 
283
  fi
 
284
  exit 1
 
285
fi
 
286
fi
 
287
fi
 
288
SHELL=${CONFIG_SHELL-/bin/sh}
 
289
export SHELL
 
290
# Unset more variables known to interfere with behavior of common tools.
 
291
CLICOLOR_FORCE= GREP_OPTIONS=
 
292
unset CLICOLOR_FORCE GREP_OPTIONS
 
293
 
 
294
## --------------------- ##
 
295
## M4sh Shell Functions. ##
 
296
## --------------------- ##
 
297
# as_fn_unset VAR
 
298
# ---------------
 
299
# Portably unset VAR.
 
300
as_fn_unset ()
 
301
{
 
302
  { eval $1=; unset $1;}
 
303
}
 
304
as_unset=as_fn_unset
 
305
 
 
306
# as_fn_set_status STATUS
 
307
# -----------------------
 
308
# Set $? to STATUS, without forking.
 
309
as_fn_set_status ()
 
310
{
 
311
  return $1
 
312
} # as_fn_set_status
 
313
 
 
314
# as_fn_exit STATUS
 
315
# -----------------
 
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
317
as_fn_exit ()
 
318
{
 
319
  set +e
 
320
  as_fn_set_status $1
 
321
  exit $1
 
322
} # as_fn_exit
 
323
 
 
324
# as_fn_mkdir_p
 
325
# -------------
 
326
# Create "$as_dir" as a directory, including parents if necessary.
 
327
as_fn_mkdir_p ()
 
328
{
 
329
 
 
330
  case $as_dir in #(
 
331
  -*) as_dir=./$as_dir;;
 
332
  esac
 
333
  test -d "$as_dir" || eval $as_mkdir_p || {
 
334
    as_dirs=
 
335
    while :; do
 
336
      case $as_dir in #(
 
337
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
338
      *) as_qdir=$as_dir;;
 
339
      esac
 
340
      as_dirs="'$as_qdir' $as_dirs"
 
341
      as_dir=`$as_dirname -- "$as_dir" ||
 
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
343
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
344
         X"$as_dir" : 'X\(//\)$' \| \
 
345
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
346
$as_echo X"$as_dir" |
 
347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)[^/].*/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\/\)$/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          /^X\(\/\).*/{
 
360
            s//\1/
 
361
            q
 
362
          }
 
363
          s/.*/./; q'`
 
364
      test -d "$as_dir" && break
 
365
    done
 
366
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
367
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
368
 
 
369
 
 
370
} # as_fn_mkdir_p
 
371
 
 
372
# as_fn_executable_p FILE
 
373
# -----------------------
 
374
# Test if FILE is an executable regular file.
 
375
as_fn_executable_p ()
 
376
{
 
377
  test -f "$1" && test -x "$1"
 
378
} # as_fn_executable_p
 
379
# as_fn_append VAR VALUE
 
380
# ----------------------
 
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
382
# advantage of any shell optimizations that allow amortized linear growth over
 
383
# repeated appends, instead of the typical quadratic growth present in naive
 
384
# implementations.
 
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
386
  eval 'as_fn_append ()
 
387
  {
 
388
    eval $1+=\$2
 
389
  }'
 
390
else
 
391
  as_fn_append ()
 
392
  {
 
393
    eval $1=\$$1\$2
 
394
  }
 
395
fi # as_fn_append
 
396
 
 
397
# as_fn_arith ARG...
 
398
# ------------------
 
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
401
# must be portable across $(()) and expr.
 
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
403
  eval 'as_fn_arith ()
 
404
  {
 
405
    as_val=$(( $* ))
 
406
  }'
 
407
else
 
408
  as_fn_arith ()
 
409
  {
 
410
    as_val=`expr "$@" || test $? -eq 1`
 
411
  }
 
412
fi # as_fn_arith
 
413
 
 
414
 
 
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
416
# ----------------------------------------
 
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
419
# script with STATUS, using 1 if that was 0.
 
420
as_fn_error ()
 
421
{
 
422
  as_status=$1; test $as_status -eq 0 && as_status=1
 
423
  if test "$4"; then
 
424
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
425
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
426
  fi
 
427
  $as_echo "$as_me: error: $2" >&2
 
428
  as_fn_exit $as_status
 
429
} # as_fn_error
 
430
 
 
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
432
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
433
  as_expr=expr
 
434
else
 
435
  as_expr=false
 
436
fi
 
437
 
 
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
439
  as_basename=basename
 
440
else
 
441
  as_basename=false
 
442
fi
 
443
 
 
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
445
  as_dirname=dirname
 
446
else
 
447
  as_dirname=false
 
448
fi
 
449
 
 
450
as_me=`$as_basename -- "$0" ||
 
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
452
         X"$0" : 'X\(//\)$' \| \
 
453
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
454
$as_echo X/"$0" |
 
455
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\/\)$/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          /^X\/\(\/\).*/{
 
464
            s//\1/
 
465
            q
 
466
          }
 
467
          s/.*/./; q'`
 
468
 
 
469
# Avoid depending upon Character Ranges.
 
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
473
as_cr_digits='0123456789'
 
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
475
 
 
476
 
 
477
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
478
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
479
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
480
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
481
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
482
  sed -n '
 
483
    p
 
484
    /[$]LINENO/=
 
485
  ' <$as_myself |
 
486
    sed '
 
487
      s/[$]LINENO.*/&-/
 
488
      t lineno
 
489
      b
 
490
      :lineno
 
491
      N
 
492
      :loop
 
493
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
494
      t loop
 
495
      s/-\n.*//
 
496
    ' >$as_me.lineno &&
 
497
  chmod +x "$as_me.lineno" ||
 
498
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
499
 
 
500
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
501
  # already done that, so ensure we don't try to do so again and fall
 
502
  # in an infinite loop.  This has already happened in practice.
 
503
  _as_can_reexec=no; export _as_can_reexec
 
504
  # Don't try to exec as it changes $[0], causing all sort of problems
 
505
  # (the dirname of $[0] is not the place where we might find the
 
506
  # original and so on.  Autoconf is especially sensitive to this).
 
507
  . "./$as_me.lineno"
 
508
  # Exit status is that of the last command.
 
509
  exit
 
510
}
 
511
 
 
512
ECHO_C= ECHO_N= ECHO_T=
 
513
case `echo -n x` in #(((((
 
514
-n*)
 
515
  case `echo 'xy\c'` in
 
516
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
517
  xy)  ECHO_C='\c';;
 
518
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
519
       ECHO_T=' ';;
 
520
  esac;;
 
521
*)
 
522
  ECHO_N='-n';;
 
523
esac
 
524
 
 
525
rm -f conf$$ conf$$.exe conf$$.file
 
526
if test -d conf$$.dir; then
 
527
  rm -f conf$$.dir/conf$$.file
 
528
else
 
529
  rm -f conf$$.dir
 
530
  mkdir conf$$.dir 2>/dev/null
 
531
fi
 
532
if (echo >conf$$.file) 2>/dev/null; then
 
533
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
534
    as_ln_s='ln -s'
 
535
    # ... but there are two gotchas:
 
536
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
537
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
538
    # In both cases, we have to default to `cp -pR'.
 
539
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
540
      as_ln_s='cp -pR'
 
541
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
542
    as_ln_s=ln
 
543
  else
 
544
    as_ln_s='cp -pR'
 
545
  fi
 
546
else
 
547
  as_ln_s='cp -pR'
 
548
fi
 
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
550
rmdir conf$$.dir 2>/dev/null
 
551
 
 
552
if mkdir -p . 2>/dev/null; then
 
553
  as_mkdir_p='mkdir -p "$as_dir"'
 
554
else
 
555
  test -d ./-p && rmdir ./-p
 
556
  as_mkdir_p=false
 
557
fi
 
558
 
 
559
as_test_x='test -x'
 
560
as_executable_p=as_fn_executable_p
 
561
 
 
562
# Sed expression to map a string onto a valid CPP name.
 
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
564
 
 
565
# Sed expression to map a string onto a valid variable name.
 
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
567
 
 
568
SHELL=${CONFIG_SHELL-/bin/sh}
 
569
 
 
570
 
 
571
test -n "$DJDIR" || exec 7<&0 </dev/null
 
572
exec 6>&1
 
573
 
 
574
# Name of the host.
 
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
576
# so uname gets run too.
 
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
578
 
 
579
#
 
580
# Initializations.
 
581
#
 
582
ac_default_prefix=/usr/local
 
583
ac_clean_files=
 
584
ac_config_libobj_dir=.
 
585
LIBOBJS=
 
586
cross_compiling=no
 
587
subdirs=
 
588
MFLAGS=
 
589
MAKEFLAGS=
 
590
 
 
591
# Identity of this package.
 
592
PACKAGE_NAME='xf86-video-dummy'
 
593
PACKAGE_TARNAME='xf86-video-dummy'
 
594
PACKAGE_VERSION='0.3.7'
 
595
PACKAGE_STRING='xf86-video-dummy 0.3.7'
 
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
 
597
PACKAGE_URL=''
 
598
 
 
599
ac_unique_file="Makefile.am"
 
600
# Factoring default headers for most tests.
 
601
ac_includes_default="\
 
602
#include <stdio.h>
 
603
#ifdef HAVE_SYS_TYPES_H
 
604
# include <sys/types.h>
 
605
#endif
 
606
#ifdef HAVE_SYS_STAT_H
 
607
# include <sys/stat.h>
 
608
#endif
 
609
#ifdef STDC_HEADERS
 
610
# include <stdlib.h>
 
611
# include <stddef.h>
 
612
#else
 
613
# ifdef HAVE_STDLIB_H
 
614
#  include <stdlib.h>
 
615
# endif
 
616
#endif
 
617
#ifdef HAVE_STRING_H
 
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
619
#  include <memory.h>
 
620
# endif
 
621
# include <string.h>
 
622
#endif
 
623
#ifdef HAVE_STRINGS_H
 
624
# include <strings.h>
 
625
#endif
 
626
#ifdef HAVE_INTTYPES_H
 
627
# include <inttypes.h>
 
628
#endif
 
629
#ifdef HAVE_STDINT_H
 
630
# include <stdint.h>
 
631
#endif
 
632
#ifdef HAVE_UNISTD_H
 
633
# include <unistd.h>
 
634
#endif"
 
635
 
 
636
ac_subst_vars='am__EXEEXT_FALSE
 
637
am__EXEEXT_TRUE
 
638
LTLIBOBJS
 
639
LIBOBJS
 
640
DRIVER_NAME
 
641
XORG_LIBS
 
642
XORG_CFLAGS
 
643
DGA_FALSE
 
644
DGA_TRUE
 
645
DGA
 
646
moduledir
 
647
OTOOL64
 
648
OTOOL
 
649
LIPO
 
650
NMEDIT
 
651
DSYMUTIL
 
652
MANIFEST_TOOL
 
653
RANLIB
 
654
ac_ct_AR
 
655
AR
 
656
DLLTOOL
 
657
OBJDUMP
 
658
LN_S
 
659
NM
 
660
ac_ct_DUMPBIN
 
661
DUMPBIN
 
662
LD
 
663
FGREP
 
664
LIBTOOL
 
665
MAN_SUBSTS
 
666
XORG_MAN_PAGE
 
667
ADMIN_MAN_DIR
 
668
DRIVER_MAN_DIR
 
669
MISC_MAN_DIR
 
670
FILE_MAN_DIR
 
671
LIB_MAN_DIR
 
672
APP_MAN_DIR
 
673
ADMIN_MAN_SUFFIX
 
674
DRIVER_MAN_SUFFIX
 
675
MISC_MAN_SUFFIX
 
676
FILE_MAN_SUFFIX
 
677
LIB_MAN_SUFFIX
 
678
APP_MAN_SUFFIX
 
679
SED
 
680
host_os
 
681
host_vendor
 
682
host_cpu
 
683
host
 
684
build_os
 
685
build_vendor
 
686
build_cpu
 
687
build
 
688
INSTALL_CMD
 
689
PKG_CONFIG_LIBDIR
 
690
PKG_CONFIG_PATH
 
691
PKG_CONFIG
 
692
CHANGELOG_CMD
 
693
STRICT_CFLAGS
 
694
CWARNFLAGS
 
695
BASE_CFLAGS
 
696
EGREP
 
697
GREP
 
698
CPP
 
699
am__fastdepCC_FALSE
 
700
am__fastdepCC_TRUE
 
701
CCDEPMODE
 
702
am__nodep
 
703
AMDEPBACKSLASH
 
704
AMDEP_FALSE
 
705
AMDEP_TRUE
 
706
am__quote
 
707
am__include
 
708
DEPDIR
 
709
OBJEXT
 
710
EXEEXT
 
711
ac_ct_CC
 
712
CPPFLAGS
 
713
LDFLAGS
 
714
CFLAGS
 
715
CC
 
716
MAINT
 
717
MAINTAINER_MODE_FALSE
 
718
MAINTAINER_MODE_TRUE
 
719
AM_BACKSLASH
 
720
AM_DEFAULT_VERBOSITY
 
721
AM_DEFAULT_V
 
722
AM_V
 
723
am__untar
 
724
am__tar
 
725
AMTAR
 
726
am__leading_dot
 
727
SET_MAKE
 
728
AWK
 
729
mkdir_p
 
730
MKDIR_P
 
731
INSTALL_STRIP_PROGRAM
 
732
STRIP
 
733
install_sh
 
734
MAKEINFO
 
735
AUTOHEADER
 
736
AUTOMAKE
 
737
AUTOCONF
 
738
ACLOCAL
 
739
VERSION
 
740
PACKAGE
 
741
CYGPATH_W
 
742
am__isrc
 
743
INSTALL_DATA
 
744
INSTALL_SCRIPT
 
745
INSTALL_PROGRAM
 
746
target_alias
 
747
host_alias
 
748
build_alias
 
749
LIBS
 
750
ECHO_T
 
751
ECHO_N
 
752
ECHO_C
 
753
DEFS
 
754
mandir
 
755
localedir
 
756
libdir
 
757
psdir
 
758
pdfdir
 
759
dvidir
 
760
htmldir
 
761
infodir
 
762
docdir
 
763
oldincludedir
 
764
includedir
 
765
localstatedir
 
766
sharedstatedir
 
767
sysconfdir
 
768
datadir
 
769
datarootdir
 
770
libexecdir
 
771
sbindir
 
772
bindir
 
773
program_transform_name
 
774
prefix
 
775
exec_prefix
 
776
PACKAGE_URL
 
777
PACKAGE_BUGREPORT
 
778
PACKAGE_STRING
 
779
PACKAGE_VERSION
 
780
PACKAGE_TARNAME
 
781
PACKAGE_NAME
 
782
PATH_SEPARATOR
 
783
SHELL'
 
784
ac_subst_files=''
 
785
ac_user_opts='
 
786
enable_option_checking
 
787
enable_silent_rules
 
788
enable_maintainer_mode
 
789
enable_dependency_tracking
 
790
enable_selective_werror
 
791
enable_strict_compilation
 
792
enable_static
 
793
enable_shared
 
794
with_pic
 
795
enable_fast_install
 
796
with_gnu_ld
 
797
with_sysroot
 
798
enable_libtool_lock
 
799
enable_dga
 
800
with_xorg_module_dir
 
801
'
 
802
      ac_precious_vars='build_alias
 
803
host_alias
 
804
target_alias
 
805
CC
 
806
CFLAGS
 
807
LDFLAGS
 
808
LIBS
 
809
CPPFLAGS
 
810
CPP
 
811
PKG_CONFIG
 
812
PKG_CONFIG_PATH
 
813
PKG_CONFIG_LIBDIR
 
814
XORG_CFLAGS
 
815
XORG_LIBS'
 
816
 
 
817
 
 
818
# Initialize some variables set by options.
 
819
ac_init_help=
 
820
ac_init_version=false
 
821
ac_unrecognized_opts=
 
822
ac_unrecognized_sep=
 
823
# The variables have the same names as the options, with
 
824
# dashes changed to underlines.
 
825
cache_file=/dev/null
 
826
exec_prefix=NONE
 
827
no_create=
 
828
no_recursion=
 
829
prefix=NONE
 
830
program_prefix=NONE
 
831
program_suffix=NONE
 
832
program_transform_name=s,x,x,
 
833
silent=
 
834
site=
 
835
srcdir=
 
836
verbose=
 
837
x_includes=NONE
 
838
x_libraries=NONE
 
839
 
 
840
# Installation directory options.
 
841
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
842
# and all the variables that are supposed to be based on exec_prefix
 
843
# by default will actually change.
 
844
# Use braces instead of parens because sh, perl, etc. also accept them.
 
845
# (The list follows the same order as the GNU Coding Standards.)
 
846
bindir='${exec_prefix}/bin'
 
847
sbindir='${exec_prefix}/sbin'
 
848
libexecdir='${exec_prefix}/libexec'
 
849
datarootdir='${prefix}/share'
 
850
datadir='${datarootdir}'
 
851
sysconfdir='${prefix}/etc'
 
852
sharedstatedir='${prefix}/com'
 
853
localstatedir='${prefix}/var'
 
854
includedir='${prefix}/include'
 
855
oldincludedir='/usr/include'
 
856
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
857
infodir='${datarootdir}/info'
 
858
htmldir='${docdir}'
 
859
dvidir='${docdir}'
 
860
pdfdir='${docdir}'
 
861
psdir='${docdir}'
 
862
libdir='${exec_prefix}/lib'
 
863
localedir='${datarootdir}/locale'
 
864
mandir='${datarootdir}/man'
 
865
 
 
866
ac_prev=
 
867
ac_dashdash=
 
868
for ac_option
 
869
do
 
870
  # If the previous option needs an argument, assign it.
 
871
  if test -n "$ac_prev"; then
 
872
    eval $ac_prev=\$ac_option
 
873
    ac_prev=
 
874
    continue
 
875
  fi
 
876
 
 
877
  case $ac_option in
 
878
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
879
  *=)   ac_optarg= ;;
 
880
  *)    ac_optarg=yes ;;
 
881
  esac
 
882
 
 
883
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
884
 
 
885
  case $ac_dashdash$ac_option in
 
886
  --)
 
887
    ac_dashdash=yes ;;
 
888
 
 
889
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
890
    ac_prev=bindir ;;
 
891
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
892
    bindir=$ac_optarg ;;
 
893
 
 
894
  -build | --build | --buil | --bui | --bu)
 
895
    ac_prev=build_alias ;;
 
896
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
897
    build_alias=$ac_optarg ;;
 
898
 
 
899
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
900
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
901
    ac_prev=cache_file ;;
 
902
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
903
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
904
    cache_file=$ac_optarg ;;
 
905
 
 
906
  --config-cache | -C)
 
907
    cache_file=config.cache ;;
 
908
 
 
909
  -datadir | --datadir | --datadi | --datad)
 
910
    ac_prev=datadir ;;
 
911
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
912
    datadir=$ac_optarg ;;
 
913
 
 
914
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
915
  | --dataroo | --dataro | --datar)
 
916
    ac_prev=datarootdir ;;
 
917
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
918
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
919
    datarootdir=$ac_optarg ;;
 
920
 
 
921
  -disable-* | --disable-*)
 
922
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
923
    # Reject names that are not valid shell variable names.
 
924
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
925
      as_fn_error $? "invalid feature name: $ac_useropt"
 
926
    ac_useropt_orig=$ac_useropt
 
927
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
928
    case $ac_user_opts in
 
929
      *"
 
930
"enable_$ac_useropt"
 
931
"*) ;;
 
932
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
933
         ac_unrecognized_sep=', ';;
 
934
    esac
 
935
    eval enable_$ac_useropt=no ;;
 
936
 
 
937
  -docdir | --docdir | --docdi | --doc | --do)
 
938
    ac_prev=docdir ;;
 
939
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
940
    docdir=$ac_optarg ;;
 
941
 
 
942
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
943
    ac_prev=dvidir ;;
 
944
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
945
    dvidir=$ac_optarg ;;
 
946
 
 
947
  -enable-* | --enable-*)
 
948
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
949
    # Reject names that are not valid shell variable names.
 
950
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
951
      as_fn_error $? "invalid feature name: $ac_useropt"
 
952
    ac_useropt_orig=$ac_useropt
 
953
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
954
    case $ac_user_opts in
 
955
      *"
 
956
"enable_$ac_useropt"
 
957
"*) ;;
 
958
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
959
         ac_unrecognized_sep=', ';;
 
960
    esac
 
961
    eval enable_$ac_useropt=\$ac_optarg ;;
 
962
 
 
963
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
964
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
965
  | --exec | --exe | --ex)
 
966
    ac_prev=exec_prefix ;;
 
967
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
968
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
969
  | --exec=* | --exe=* | --ex=*)
 
970
    exec_prefix=$ac_optarg ;;
 
971
 
 
972
  -gas | --gas | --ga | --g)
 
973
    # Obsolete; use --with-gas.
 
974
    with_gas=yes ;;
 
975
 
 
976
  -help | --help | --hel | --he | -h)
 
977
    ac_init_help=long ;;
 
978
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
979
    ac_init_help=recursive ;;
 
980
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
981
    ac_init_help=short ;;
 
982
 
 
983
  -host | --host | --hos | --ho)
 
984
    ac_prev=host_alias ;;
 
985
  -host=* | --host=* | --hos=* | --ho=*)
 
986
    host_alias=$ac_optarg ;;
 
987
 
 
988
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
989
    ac_prev=htmldir ;;
 
990
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
991
  | --ht=*)
 
992
    htmldir=$ac_optarg ;;
 
993
 
 
994
  -includedir | --includedir | --includedi | --included | --include \
 
995
  | --includ | --inclu | --incl | --inc)
 
996
    ac_prev=includedir ;;
 
997
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
998
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
999
    includedir=$ac_optarg ;;
 
1000
 
 
1001
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1002
    ac_prev=infodir ;;
 
1003
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1004
    infodir=$ac_optarg ;;
 
1005
 
 
1006
  -libdir | --libdir | --libdi | --libd)
 
1007
    ac_prev=libdir ;;
 
1008
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1009
    libdir=$ac_optarg ;;
 
1010
 
 
1011
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1012
  | --libexe | --libex | --libe)
 
1013
    ac_prev=libexecdir ;;
 
1014
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1015
  | --libexe=* | --libex=* | --libe=*)
 
1016
    libexecdir=$ac_optarg ;;
 
1017
 
 
1018
  -localedir | --localedir | --localedi | --localed | --locale)
 
1019
    ac_prev=localedir ;;
 
1020
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1021
    localedir=$ac_optarg ;;
 
1022
 
 
1023
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1024
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1025
    ac_prev=localstatedir ;;
 
1026
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1027
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1028
    localstatedir=$ac_optarg ;;
 
1029
 
 
1030
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1031
    ac_prev=mandir ;;
 
1032
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1033
    mandir=$ac_optarg ;;
 
1034
 
 
1035
  -nfp | --nfp | --nf)
 
1036
    # Obsolete; use --without-fp.
 
1037
    with_fp=no ;;
 
1038
 
 
1039
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1040
  | --no-cr | --no-c | -n)
 
1041
    no_create=yes ;;
 
1042
 
 
1043
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1044
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1045
    no_recursion=yes ;;
 
1046
 
 
1047
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1048
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1049
  | --oldin | --oldi | --old | --ol | --o)
 
1050
    ac_prev=oldincludedir ;;
 
1051
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1052
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1053
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1054
    oldincludedir=$ac_optarg ;;
 
1055
 
 
1056
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1057
    ac_prev=prefix ;;
 
1058
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1059
    prefix=$ac_optarg ;;
 
1060
 
 
1061
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1062
  | --program-pre | --program-pr | --program-p)
 
1063
    ac_prev=program_prefix ;;
 
1064
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1065
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1066
    program_prefix=$ac_optarg ;;
 
1067
 
 
1068
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1069
  | --program-suf | --program-su | --program-s)
 
1070
    ac_prev=program_suffix ;;
 
1071
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1072
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1073
    program_suffix=$ac_optarg ;;
 
1074
 
 
1075
  -program-transform-name | --program-transform-name \
 
1076
  | --program-transform-nam | --program-transform-na \
 
1077
  | --program-transform-n | --program-transform- \
 
1078
  | --program-transform | --program-transfor \
 
1079
  | --program-transfo | --program-transf \
 
1080
  | --program-trans | --program-tran \
 
1081
  | --progr-tra | --program-tr | --program-t)
 
1082
    ac_prev=program_transform_name ;;
 
1083
  -program-transform-name=* | --program-transform-name=* \
 
1084
  | --program-transform-nam=* | --program-transform-na=* \
 
1085
  | --program-transform-n=* | --program-transform-=* \
 
1086
  | --program-transform=* | --program-transfor=* \
 
1087
  | --program-transfo=* | --program-transf=* \
 
1088
  | --program-trans=* | --program-tran=* \
 
1089
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1090
    program_transform_name=$ac_optarg ;;
 
1091
 
 
1092
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1093
    ac_prev=pdfdir ;;
 
1094
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1095
    pdfdir=$ac_optarg ;;
 
1096
 
 
1097
  -psdir | --psdir | --psdi | --psd | --ps)
 
1098
    ac_prev=psdir ;;
 
1099
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1100
    psdir=$ac_optarg ;;
 
1101
 
 
1102
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1103
  | -silent | --silent | --silen | --sile | --sil)
 
1104
    silent=yes ;;
 
1105
 
 
1106
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1107
    ac_prev=sbindir ;;
 
1108
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1109
  | --sbi=* | --sb=*)
 
1110
    sbindir=$ac_optarg ;;
 
1111
 
 
1112
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1113
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1114
  | --sharedst | --shareds | --shared | --share | --shar \
 
1115
  | --sha | --sh)
 
1116
    ac_prev=sharedstatedir ;;
 
1117
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1118
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1119
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1120
  | --sha=* | --sh=*)
 
1121
    sharedstatedir=$ac_optarg ;;
 
1122
 
 
1123
  -site | --site | --sit)
 
1124
    ac_prev=site ;;
 
1125
  -site=* | --site=* | --sit=*)
 
1126
    site=$ac_optarg ;;
 
1127
 
 
1128
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1129
    ac_prev=srcdir ;;
 
1130
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1131
    srcdir=$ac_optarg ;;
 
1132
 
 
1133
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1134
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1135
    ac_prev=sysconfdir ;;
 
1136
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1137
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1138
    sysconfdir=$ac_optarg ;;
 
1139
 
 
1140
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1141
    ac_prev=target_alias ;;
 
1142
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1143
    target_alias=$ac_optarg ;;
 
1144
 
 
1145
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1146
    verbose=yes ;;
 
1147
 
 
1148
  -version | --version | --versio | --versi | --vers | -V)
 
1149
    ac_init_version=: ;;
 
1150
 
 
1151
  -with-* | --with-*)
 
1152
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1153
    # Reject names that are not valid shell variable names.
 
1154
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1155
      as_fn_error $? "invalid package name: $ac_useropt"
 
1156
    ac_useropt_orig=$ac_useropt
 
1157
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1158
    case $ac_user_opts in
 
1159
      *"
 
1160
"with_$ac_useropt"
 
1161
"*) ;;
 
1162
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1163
         ac_unrecognized_sep=', ';;
 
1164
    esac
 
1165
    eval with_$ac_useropt=\$ac_optarg ;;
 
1166
 
 
1167
  -without-* | --without-*)
 
1168
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1169
    # Reject names that are not valid shell variable names.
 
1170
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1171
      as_fn_error $? "invalid package name: $ac_useropt"
 
1172
    ac_useropt_orig=$ac_useropt
 
1173
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1174
    case $ac_user_opts in
 
1175
      *"
 
1176
"with_$ac_useropt"
 
1177
"*) ;;
 
1178
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1179
         ac_unrecognized_sep=', ';;
 
1180
    esac
 
1181
    eval with_$ac_useropt=no ;;
 
1182
 
 
1183
  --x)
 
1184
    # Obsolete; use --with-x.
 
1185
    with_x=yes ;;
 
1186
 
 
1187
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1188
  | --x-incl | --x-inc | --x-in | --x-i)
 
1189
    ac_prev=x_includes ;;
 
1190
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1191
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1192
    x_includes=$ac_optarg ;;
 
1193
 
 
1194
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1195
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1196
    ac_prev=x_libraries ;;
 
1197
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1198
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1199
    x_libraries=$ac_optarg ;;
 
1200
 
 
1201
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1202
Try \`$0 --help' for more information"
 
1203
    ;;
 
1204
 
 
1205
  *=*)
 
1206
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1207
    # Reject names that are not valid shell variable names.
 
1208
    case $ac_envvar in #(
 
1209
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1210
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1211
    esac
 
1212
    eval $ac_envvar=\$ac_optarg
 
1213
    export $ac_envvar ;;
 
1214
 
 
1215
  *)
 
1216
    # FIXME: should be removed in autoconf 3.0.
 
1217
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1218
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1219
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1220
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1221
    ;;
 
1222
 
 
1223
  esac
 
1224
done
 
1225
 
 
1226
if test -n "$ac_prev"; then
 
1227
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1228
  as_fn_error $? "missing argument to $ac_option"
 
1229
fi
 
1230
 
 
1231
if test -n "$ac_unrecognized_opts"; then
 
1232
  case $enable_option_checking in
 
1233
    no) ;;
 
1234
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1235
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1236
  esac
 
1237
fi
 
1238
 
 
1239
# Check all directory arguments for consistency.
 
1240
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1241
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1242
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1243
                libdir localedir mandir
 
1244
do
 
1245
  eval ac_val=\$$ac_var
 
1246
  # Remove trailing slashes.
 
1247
  case $ac_val in
 
1248
    */ )
 
1249
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1250
      eval $ac_var=\$ac_val;;
 
1251
  esac
 
1252
  # Be sure to have absolute directory names.
 
1253
  case $ac_val in
 
1254
    [\\/$]* | ?:[\\/]* )  continue;;
 
1255
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1256
  esac
 
1257
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1258
done
 
1259
 
 
1260
# There might be people who depend on the old broken behavior: `$host'
 
1261
# used to hold the argument of --host etc.
 
1262
# FIXME: To remove some day.
 
1263
build=$build_alias
 
1264
host=$host_alias
 
1265
target=$target_alias
 
1266
 
 
1267
# FIXME: To remove some day.
 
1268
if test "x$host_alias" != x; then
 
1269
  if test "x$build_alias" = x; then
 
1270
    cross_compiling=maybe
 
1271
  elif test "x$build_alias" != "x$host_alias"; then
 
1272
    cross_compiling=yes
 
1273
  fi
 
1274
fi
 
1275
 
 
1276
ac_tool_prefix=
 
1277
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1278
 
 
1279
test "$silent" = yes && exec 6>/dev/null
 
1280
 
 
1281
 
 
1282
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1283
ac_ls_di=`ls -di .` &&
 
1284
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1285
  as_fn_error $? "working directory cannot be determined"
 
1286
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1287
  as_fn_error $? "pwd does not report name of working directory"
 
1288
 
 
1289
 
 
1290
# Find the source files, if location was not specified.
 
1291
if test -z "$srcdir"; then
 
1292
  ac_srcdir_defaulted=yes
 
1293
  # Try the directory containing this script, then the parent directory.
 
1294
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1295
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1296
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1297
         X"$as_myself" : 'X\(//\)$' \| \
 
1298
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1299
$as_echo X"$as_myself" |
 
1300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1301
            s//\1/
 
1302
            q
 
1303
          }
 
1304
          /^X\(\/\/\)[^/].*/{
 
1305
            s//\1/
 
1306
            q
 
1307
          }
 
1308
          /^X\(\/\/\)$/{
 
1309
            s//\1/
 
1310
            q
 
1311
          }
 
1312
          /^X\(\/\).*/{
 
1313
            s//\1/
 
1314
            q
 
1315
          }
 
1316
          s/.*/./; q'`
 
1317
  srcdir=$ac_confdir
 
1318
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1319
    srcdir=..
 
1320
  fi
 
1321
else
 
1322
  ac_srcdir_defaulted=no
 
1323
fi
 
1324
if test ! -r "$srcdir/$ac_unique_file"; then
 
1325
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1326
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1327
fi
 
1328
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1329
ac_abs_confdir=`(
 
1330
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1331
        pwd)`
 
1332
# When building in place, set srcdir=.
 
1333
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1334
  srcdir=.
 
1335
fi
 
1336
# Remove unnecessary trailing slashes from srcdir.
 
1337
# Double slashes in file names in object file debugging info
 
1338
# mess up M-x gdb in Emacs.
 
1339
case $srcdir in
 
1340
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1341
esac
 
1342
for ac_var in $ac_precious_vars; do
 
1343
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1344
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1345
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1346
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1347
done
 
1348
 
 
1349
#
 
1350
# Report the --help message.
 
1351
#
 
1352
if test "$ac_init_help" = "long"; then
 
1353
  # Omit some internal or obsolete options to make the list less imposing.
 
1354
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1355
  cat <<_ACEOF
 
1356
\`configure' configures xf86-video-dummy 0.3.7 to adapt to many kinds of systems.
 
1357
 
 
1358
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1359
 
 
1360
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1361
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1362
 
 
1363
Defaults for the options are specified in brackets.
 
1364
 
 
1365
Configuration:
 
1366
  -h, --help              display this help and exit
 
1367
      --help=short        display options specific to this package
 
1368
      --help=recursive    display the short help of all the included packages
 
1369
  -V, --version           display version information and exit
 
1370
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1371
      --cache-file=FILE   cache test results in FILE [disabled]
 
1372
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1373
  -n, --no-create         do not create output files
 
1374
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1375
 
 
1376
Installation directories:
 
1377
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1378
                          [$ac_default_prefix]
 
1379
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1380
                          [PREFIX]
 
1381
 
 
1382
By default, \`make install' will install all the files in
 
1383
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1384
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1385
for instance \`--prefix=\$HOME'.
 
1386
 
 
1387
For better control, use the options below.
 
1388
 
 
1389
Fine tuning of the installation directories:
 
1390
  --bindir=DIR            user executables [EPREFIX/bin]
 
1391
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1392
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1393
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1394
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1395
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1396
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1397
  --includedir=DIR        C header files [PREFIX/include]
 
1398
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1399
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1400
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1401
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1402
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1403
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1404
  --docdir=DIR            documentation root
 
1405
                          [DATAROOTDIR/doc/xf86-video-dummy]
 
1406
  --htmldir=DIR           html documentation [DOCDIR]
 
1407
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1408
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1409
  --psdir=DIR             ps documentation [DOCDIR]
 
1410
_ACEOF
 
1411
 
 
1412
  cat <<\_ACEOF
 
1413
 
 
1414
Program names:
 
1415
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1416
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1417
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1418
 
 
1419
System types:
 
1420
  --build=BUILD     configure for building on BUILD [guessed]
 
1421
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1422
_ACEOF
 
1423
fi
 
1424
 
 
1425
if test -n "$ac_init_help"; then
 
1426
  case $ac_init_help in
 
1427
     short | recursive ) echo "Configuration of xf86-video-dummy 0.3.7:";;
 
1428
   esac
 
1429
  cat <<\_ACEOF
 
1430
 
 
1431
Optional Features:
 
1432
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1433
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1434
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1435
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1436
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1437
  --enable-maintainer-mode
 
1438
                          enable make rules and dependencies not useful (and
 
1439
                          sometimes confusing) to the casual installer
 
1440
  --enable-dependency-tracking
 
1441
                          do not reject slow dependency extractors
 
1442
  --disable-dependency-tracking
 
1443
                          speeds up one-time build
 
1444
  --disable-selective-werror
 
1445
                          Turn off selective compiler errors. (default:
 
1446
                          enabled)
 
1447
  --enable-strict-compilation
 
1448
                          Enable all warnings from compiler and make them
 
1449
                          errors (default: disabled)
 
1450
  --enable-static[=PKGS]  build static libraries [default=no]
 
1451
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1452
  --enable-fast-install[=PKGS]
 
1453
                          optimize for fast installation [default=yes]
 
1454
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1455
  --disable-dga           Build DGA extension (default: yes)
 
1456
 
 
1457
Optional Packages:
 
1458
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1459
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1460
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1461
                          both]
 
1462
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1463
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1464
                        (or the compiler's sysroot if not specified).
 
1465
  --with-xorg-module-dir=DIR
 
1466
 
 
1467
Some influential environment variables:
 
1468
  CC          C compiler command
 
1469
  CFLAGS      C compiler flags
 
1470
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1471
              nonstandard directory <lib dir>
 
1472
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1473
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1474
              you have headers in a nonstandard directory <include dir>
 
1475
  CPP         C preprocessor
 
1476
  PKG_CONFIG  path to pkg-config utility
 
1477
  PKG_CONFIG_PATH
 
1478
              directories to add to pkg-config's search path
 
1479
  PKG_CONFIG_LIBDIR
 
1480
              path overriding pkg-config's built-in search path
 
1481
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
 
1482
  XORG_LIBS   linker flags for XORG, overriding pkg-config
 
1483
 
 
1484
Use these variables to override the choices made by `configure' or to help
 
1485
it to find libraries and programs with nonstandard names/locations.
 
1486
 
 
1487
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
 
1488
_ACEOF
 
1489
ac_status=$?
 
1490
fi
 
1491
 
 
1492
if test "$ac_init_help" = "recursive"; then
 
1493
  # If there are subdirs, report their specific --help.
 
1494
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1495
    test -d "$ac_dir" ||
 
1496
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1497
      continue
 
1498
    ac_builddir=.
 
1499
 
 
1500
case "$ac_dir" in
 
1501
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1502
*)
 
1503
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1504
  # A ".." for each directory in $ac_dir_suffix.
 
1505
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1506
  case $ac_top_builddir_sub in
 
1507
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1508
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1509
  esac ;;
 
1510
esac
 
1511
ac_abs_top_builddir=$ac_pwd
 
1512
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1513
# for backward compatibility:
 
1514
ac_top_builddir=$ac_top_build_prefix
 
1515
 
 
1516
case $srcdir in
 
1517
  .)  # We are building in place.
 
1518
    ac_srcdir=.
 
1519
    ac_top_srcdir=$ac_top_builddir_sub
 
1520
    ac_abs_top_srcdir=$ac_pwd ;;
 
1521
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1522
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1523
    ac_top_srcdir=$srcdir
 
1524
    ac_abs_top_srcdir=$srcdir ;;
 
1525
  *) # Relative name.
 
1526
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1527
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1528
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1529
esac
 
1530
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1531
 
 
1532
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1533
    # Check for guested configure.
 
1534
    if test -f "$ac_srcdir/configure.gnu"; then
 
1535
      echo &&
 
1536
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1537
    elif test -f "$ac_srcdir/configure"; then
 
1538
      echo &&
 
1539
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1540
    else
 
1541
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1542
    fi || ac_status=$?
 
1543
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1544
  done
 
1545
fi
 
1546
 
 
1547
test -n "$ac_init_help" && exit $ac_status
 
1548
if $ac_init_version; then
 
1549
  cat <<\_ACEOF
 
1550
xf86-video-dummy configure 0.3.7
 
1551
generated by GNU Autoconf 2.69
 
1552
 
 
1553
Copyright (C) 2012 Free Software Foundation, Inc.
 
1554
This configure script is free software; the Free Software Foundation
 
1555
gives unlimited permission to copy, distribute and modify it.
 
1556
_ACEOF
 
1557
  exit
 
1558
fi
 
1559
 
 
1560
## ------------------------ ##
 
1561
## Autoconf initialization. ##
 
1562
## ------------------------ ##
 
1563
 
 
1564
# ac_fn_c_try_compile LINENO
 
1565
# --------------------------
 
1566
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1567
ac_fn_c_try_compile ()
 
1568
{
 
1569
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1570
  rm -f conftest.$ac_objext
 
1571
  if { { ac_try="$ac_compile"
 
1572
case "(($ac_try" in
 
1573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1574
  *) ac_try_echo=$ac_try;;
 
1575
esac
 
1576
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1577
$as_echo "$ac_try_echo"; } >&5
 
1578
  (eval "$ac_compile") 2>conftest.err
 
1579
  ac_status=$?
 
1580
  if test -s conftest.err; then
 
1581
    grep -v '^ *+' conftest.err >conftest.er1
 
1582
    cat conftest.er1 >&5
 
1583
    mv -f conftest.er1 conftest.err
 
1584
  fi
 
1585
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1586
  test $ac_status = 0; } && {
 
1587
         test -z "$ac_c_werror_flag" ||
 
1588
         test ! -s conftest.err
 
1589
       } && test -s conftest.$ac_objext; then :
 
1590
  ac_retval=0
 
1591
else
 
1592
  $as_echo "$as_me: failed program was:" >&5
 
1593
sed 's/^/| /' conftest.$ac_ext >&5
 
1594
 
 
1595
        ac_retval=1
 
1596
fi
 
1597
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1598
  as_fn_set_status $ac_retval
 
1599
 
 
1600
} # ac_fn_c_try_compile
 
1601
 
 
1602
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
1603
# ---------------------------------------------
 
1604
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
1605
# accordingly.
 
1606
ac_fn_c_check_decl ()
 
1607
{
 
1608
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1609
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
1610
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
1611
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
1612
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
1613
if eval \${$3+:} false; then :
 
1614
  $as_echo_n "(cached) " >&6
 
1615
else
 
1616
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1617
/* end confdefs.h.  */
 
1618
$4
 
1619
int
 
1620
main ()
 
1621
{
 
1622
#ifndef $as_decl_name
 
1623
#ifdef __cplusplus
 
1624
  (void) $as_decl_use;
 
1625
#else
 
1626
  (void) $as_decl_name;
 
1627
#endif
 
1628
#endif
 
1629
 
 
1630
  ;
 
1631
  return 0;
 
1632
}
 
1633
_ACEOF
 
1634
if ac_fn_c_try_compile "$LINENO"; then :
 
1635
  eval "$3=yes"
 
1636
else
 
1637
  eval "$3=no"
 
1638
fi
 
1639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1640
fi
 
1641
eval ac_res=\$$3
 
1642
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1643
$as_echo "$ac_res" >&6; }
 
1644
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1645
 
 
1646
} # ac_fn_c_check_decl
 
1647
 
 
1648
# ac_fn_c_try_cpp LINENO
 
1649
# ----------------------
 
1650
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1651
ac_fn_c_try_cpp ()
 
1652
{
 
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1654
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1655
case "(($ac_try" in
 
1656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1657
  *) ac_try_echo=$ac_try;;
 
1658
esac
 
1659
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1660
$as_echo "$ac_try_echo"; } >&5
 
1661
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1662
  ac_status=$?
 
1663
  if test -s conftest.err; then
 
1664
    grep -v '^ *+' conftest.err >conftest.er1
 
1665
    cat conftest.er1 >&5
 
1666
    mv -f conftest.er1 conftest.err
 
1667
  fi
 
1668
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1669
  test $ac_status = 0; } > conftest.i && {
 
1670
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1671
         test ! -s conftest.err
 
1672
       }; then :
 
1673
  ac_retval=0
 
1674
else
 
1675
  $as_echo "$as_me: failed program was:" >&5
 
1676
sed 's/^/| /' conftest.$ac_ext >&5
 
1677
 
 
1678
    ac_retval=1
 
1679
fi
 
1680
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1681
  as_fn_set_status $ac_retval
 
1682
 
 
1683
} # ac_fn_c_try_cpp
 
1684
 
 
1685
# ac_fn_c_try_run LINENO
 
1686
# ----------------------
 
1687
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1688
# that executables *can* be run.
 
1689
ac_fn_c_try_run ()
 
1690
{
 
1691
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1692
  if { { ac_try="$ac_link"
 
1693
case "(($ac_try" in
 
1694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1695
  *) ac_try_echo=$ac_try;;
 
1696
esac
 
1697
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1698
$as_echo "$ac_try_echo"; } >&5
 
1699
  (eval "$ac_link") 2>&5
 
1700
  ac_status=$?
 
1701
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1702
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1703
  { { case "(($ac_try" in
 
1704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1705
  *) ac_try_echo=$ac_try;;
 
1706
esac
 
1707
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1708
$as_echo "$ac_try_echo"; } >&5
 
1709
  (eval "$ac_try") 2>&5
 
1710
  ac_status=$?
 
1711
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1712
  test $ac_status = 0; }; }; then :
 
1713
  ac_retval=0
 
1714
else
 
1715
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1716
       $as_echo "$as_me: failed program was:" >&5
 
1717
sed 's/^/| /' conftest.$ac_ext >&5
 
1718
 
 
1719
       ac_retval=$ac_status
 
1720
fi
 
1721
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1722
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1723
  as_fn_set_status $ac_retval
 
1724
 
 
1725
} # ac_fn_c_try_run
 
1726
 
 
1727
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1728
# -------------------------------------------------------
 
1729
# Tests whether HEADER exists and can be compiled using the include files in
 
1730
# INCLUDES, setting the cache variable VAR accordingly.
 
1731
ac_fn_c_check_header_compile ()
 
1732
{
 
1733
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1734
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1735
$as_echo_n "checking for $2... " >&6; }
 
1736
if eval \${$3+:} false; then :
 
1737
  $as_echo_n "(cached) " >&6
 
1738
else
 
1739
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1740
/* end confdefs.h.  */
 
1741
$4
 
1742
#include <$2>
 
1743
_ACEOF
 
1744
if ac_fn_c_try_compile "$LINENO"; then :
 
1745
  eval "$3=yes"
 
1746
else
 
1747
  eval "$3=no"
 
1748
fi
 
1749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1750
fi
 
1751
eval ac_res=\$$3
 
1752
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1753
$as_echo "$ac_res" >&6; }
 
1754
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1755
 
 
1756
} # ac_fn_c_check_header_compile
 
1757
 
 
1758
# ac_fn_c_try_link LINENO
 
1759
# -----------------------
 
1760
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1761
ac_fn_c_try_link ()
 
1762
{
 
1763
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1764
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1765
  if { { ac_try="$ac_link"
 
1766
case "(($ac_try" in
 
1767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1768
  *) ac_try_echo=$ac_try;;
 
1769
esac
 
1770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1771
$as_echo "$ac_try_echo"; } >&5
 
1772
  (eval "$ac_link") 2>conftest.err
 
1773
  ac_status=$?
 
1774
  if test -s conftest.err; then
 
1775
    grep -v '^ *+' conftest.err >conftest.er1
 
1776
    cat conftest.er1 >&5
 
1777
    mv -f conftest.er1 conftest.err
 
1778
  fi
 
1779
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1780
  test $ac_status = 0; } && {
 
1781
         test -z "$ac_c_werror_flag" ||
 
1782
         test ! -s conftest.err
 
1783
       } && test -s conftest$ac_exeext && {
 
1784
         test "$cross_compiling" = yes ||
 
1785
         test -x conftest$ac_exeext
 
1786
       }; then :
 
1787
  ac_retval=0
 
1788
else
 
1789
  $as_echo "$as_me: failed program was:" >&5
 
1790
sed 's/^/| /' conftest.$ac_ext >&5
 
1791
 
 
1792
        ac_retval=1
 
1793
fi
 
1794
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1795
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1796
  # interfere with the next link command; also delete a directory that is
 
1797
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1798
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1799
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1800
  as_fn_set_status $ac_retval
 
1801
 
 
1802
} # ac_fn_c_try_link
 
1803
 
 
1804
# ac_fn_c_check_func LINENO FUNC VAR
 
1805
# ----------------------------------
 
1806
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1807
ac_fn_c_check_func ()
 
1808
{
 
1809
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1810
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1811
$as_echo_n "checking for $2... " >&6; }
 
1812
if eval \${$3+:} false; then :
 
1813
  $as_echo_n "(cached) " >&6
 
1814
else
 
1815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1816
/* end confdefs.h.  */
 
1817
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1818
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1819
#define $2 innocuous_$2
 
1820
 
 
1821
/* System header to define __stub macros and hopefully few prototypes,
 
1822
    which can conflict with char $2 (); below.
 
1823
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1824
    <limits.h> exists even on freestanding compilers.  */
 
1825
 
 
1826
#ifdef __STDC__
 
1827
# include <limits.h>
 
1828
#else
 
1829
# include <assert.h>
 
1830
#endif
 
1831
 
 
1832
#undef $2
 
1833
 
 
1834
/* Override any GCC internal prototype to avoid an error.
 
1835
   Use char because int might match the return type of a GCC
 
1836
   builtin and then its argument prototype would still apply.  */
 
1837
#ifdef __cplusplus
 
1838
extern "C"
 
1839
#endif
 
1840
char $2 ();
 
1841
/* The GNU C library defines this for functions which it implements
 
1842
    to always fail with ENOSYS.  Some functions are actually named
 
1843
    something starting with __ and the normal name is an alias.  */
 
1844
#if defined __stub_$2 || defined __stub___$2
 
1845
choke me
 
1846
#endif
 
1847
 
 
1848
int
 
1849
main ()
 
1850
{
 
1851
return $2 ();
 
1852
  ;
 
1853
  return 0;
 
1854
}
 
1855
_ACEOF
 
1856
if ac_fn_c_try_link "$LINENO"; then :
 
1857
  eval "$3=yes"
 
1858
else
 
1859
  eval "$3=no"
 
1860
fi
 
1861
rm -f core conftest.err conftest.$ac_objext \
 
1862
    conftest$ac_exeext conftest.$ac_ext
 
1863
fi
 
1864
eval ac_res=\$$3
 
1865
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1866
$as_echo "$ac_res" >&6; }
 
1867
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1868
 
 
1869
} # ac_fn_c_check_func
 
1870
cat >config.log <<_ACEOF
 
1871
This file contains any messages produced by compilers while
 
1872
running configure, to aid debugging if configure makes a mistake.
 
1873
 
 
1874
It was created by xf86-video-dummy $as_me 0.3.7, which was
 
1875
generated by GNU Autoconf 2.69.  Invocation command line was
 
1876
 
 
1877
  $ $0 $@
 
1878
 
 
1879
_ACEOF
 
1880
exec 5>>config.log
 
1881
{
 
1882
cat <<_ASUNAME
 
1883
## --------- ##
 
1884
## Platform. ##
 
1885
## --------- ##
 
1886
 
 
1887
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1888
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1889
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1890
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1891
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1892
 
 
1893
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1894
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1895
 
 
1896
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1897
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1898
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1899
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1900
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1901
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1902
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1903
 
 
1904
_ASUNAME
 
1905
 
 
1906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1907
for as_dir in $PATH
 
1908
do
 
1909
  IFS=$as_save_IFS
 
1910
  test -z "$as_dir" && as_dir=.
 
1911
    $as_echo "PATH: $as_dir"
 
1912
  done
 
1913
IFS=$as_save_IFS
 
1914
 
 
1915
} >&5
 
1916
 
 
1917
cat >&5 <<_ACEOF
 
1918
 
 
1919
 
 
1920
## ----------- ##
 
1921
## Core tests. ##
 
1922
## ----------- ##
 
1923
 
 
1924
_ACEOF
 
1925
 
 
1926
 
 
1927
# Keep a trace of the command line.
 
1928
# Strip out --no-create and --no-recursion so they do not pile up.
 
1929
# Strip out --silent because we don't want to record it for future runs.
 
1930
# Also quote any args containing shell meta-characters.
 
1931
# Make two passes to allow for proper duplicate-argument suppression.
 
1932
ac_configure_args=
 
1933
ac_configure_args0=
 
1934
ac_configure_args1=
 
1935
ac_must_keep_next=false
 
1936
for ac_pass in 1 2
 
1937
do
 
1938
  for ac_arg
 
1939
  do
 
1940
    case $ac_arg in
 
1941
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1942
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1943
    | -silent | --silent | --silen | --sile | --sil)
 
1944
      continue ;;
 
1945
    *\'*)
 
1946
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1947
    esac
 
1948
    case $ac_pass in
 
1949
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1950
    2)
 
1951
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1952
      if test $ac_must_keep_next = true; then
 
1953
        ac_must_keep_next=false # Got value, back to normal.
 
1954
      else
 
1955
        case $ac_arg in
 
1956
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1957
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1958
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1959
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1960
            case "$ac_configure_args0 " in
 
1961
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1962
            esac
 
1963
            ;;
 
1964
          -* ) ac_must_keep_next=true ;;
 
1965
        esac
 
1966
      fi
 
1967
      as_fn_append ac_configure_args " '$ac_arg'"
 
1968
      ;;
 
1969
    esac
 
1970
  done
 
1971
done
 
1972
{ ac_configure_args0=; unset ac_configure_args0;}
 
1973
{ ac_configure_args1=; unset ac_configure_args1;}
 
1974
 
 
1975
# When interrupted or exit'd, cleanup temporary files, and complete
 
1976
# config.log.  We remove comments because anyway the quotes in there
 
1977
# would cause problems or look ugly.
 
1978
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1979
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1980
trap 'exit_status=$?
 
1981
  # Save into config.log some information that might help in debugging.
 
1982
  {
 
1983
    echo
 
1984
 
 
1985
    $as_echo "## ---------------- ##
 
1986
## Cache variables. ##
 
1987
## ---------------- ##"
 
1988
    echo
 
1989
    # The following way of writing the cache mishandles newlines in values,
 
1990
(
 
1991
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1992
    eval ac_val=\$$ac_var
 
1993
    case $ac_val in #(
 
1994
    *${as_nl}*)
 
1995
      case $ac_var in #(
 
1996
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1997
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1998
      esac
 
1999
      case $ac_var in #(
 
2000
      _ | IFS | as_nl) ;; #(
 
2001
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2002
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2003
      esac ;;
 
2004
    esac
 
2005
  done
 
2006
  (set) 2>&1 |
 
2007
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2008
    *${as_nl}ac_space=\ *)
 
2009
      sed -n \
 
2010
        "s/'\''/'\''\\\\'\'''\''/g;
 
2011
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2012
      ;; #(
 
2013
    *)
 
2014
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2015
      ;;
 
2016
    esac |
 
2017
    sort
 
2018
)
 
2019
    echo
 
2020
 
 
2021
    $as_echo "## ----------------- ##
 
2022
## Output variables. ##
 
2023
## ----------------- ##"
 
2024
    echo
 
2025
    for ac_var in $ac_subst_vars
 
2026
    do
 
2027
      eval ac_val=\$$ac_var
 
2028
      case $ac_val in
 
2029
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2030
      esac
 
2031
      $as_echo "$ac_var='\''$ac_val'\''"
 
2032
    done | sort
 
2033
    echo
 
2034
 
 
2035
    if test -n "$ac_subst_files"; then
 
2036
      $as_echo "## ------------------- ##
 
2037
## File substitutions. ##
 
2038
## ------------------- ##"
 
2039
      echo
 
2040
      for ac_var in $ac_subst_files
 
2041
      do
 
2042
        eval ac_val=\$$ac_var
 
2043
        case $ac_val in
 
2044
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2045
        esac
 
2046
        $as_echo "$ac_var='\''$ac_val'\''"
 
2047
      done | sort
 
2048
      echo
 
2049
    fi
 
2050
 
 
2051
    if test -s confdefs.h; then
 
2052
      $as_echo "## ----------- ##
 
2053
## confdefs.h. ##
 
2054
## ----------- ##"
 
2055
      echo
 
2056
      cat confdefs.h
 
2057
      echo
 
2058
    fi
 
2059
    test "$ac_signal" != 0 &&
 
2060
      $as_echo "$as_me: caught signal $ac_signal"
 
2061
    $as_echo "$as_me: exit $exit_status"
 
2062
  } >&5
 
2063
  rm -f core *.core core.conftest.* &&
 
2064
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2065
    exit $exit_status
 
2066
' 0
 
2067
for ac_signal in 1 2 13 15; do
 
2068
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2069
done
 
2070
ac_signal=0
 
2071
 
 
2072
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2073
rm -f -r conftest* confdefs.h
 
2074
 
 
2075
$as_echo "/* confdefs.h */" > confdefs.h
 
2076
 
 
2077
# Predefined preprocessor variables.
 
2078
 
 
2079
cat >>confdefs.h <<_ACEOF
 
2080
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2081
_ACEOF
 
2082
 
 
2083
cat >>confdefs.h <<_ACEOF
 
2084
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2085
_ACEOF
 
2086
 
 
2087
cat >>confdefs.h <<_ACEOF
 
2088
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2089
_ACEOF
 
2090
 
 
2091
cat >>confdefs.h <<_ACEOF
 
2092
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2093
_ACEOF
 
2094
 
 
2095
cat >>confdefs.h <<_ACEOF
 
2096
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2097
_ACEOF
 
2098
 
 
2099
cat >>confdefs.h <<_ACEOF
 
2100
#define PACKAGE_URL "$PACKAGE_URL"
 
2101
_ACEOF
 
2102
 
 
2103
 
 
2104
# Let the site file select an alternate cache file if it wants to.
 
2105
# Prefer an explicitly selected file to automatically selected ones.
 
2106
ac_site_file1=NONE
 
2107
ac_site_file2=NONE
 
2108
if test -n "$CONFIG_SITE"; then
 
2109
  # We do not want a PATH search for config.site.
 
2110
  case $CONFIG_SITE in #((
 
2111
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2112
    */*) ac_site_file1=$CONFIG_SITE;;
 
2113
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2114
  esac
 
2115
elif test "x$prefix" != xNONE; then
 
2116
  ac_site_file1=$prefix/share/config.site
 
2117
  ac_site_file2=$prefix/etc/config.site
 
2118
else
 
2119
  ac_site_file1=$ac_default_prefix/share/config.site
 
2120
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2121
fi
 
2122
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2123
do
 
2124
  test "x$ac_site_file" = xNONE && continue
 
2125
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2126
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2127
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2128
    sed 's/^/| /' "$ac_site_file" >&5
 
2129
    . "$ac_site_file" \
 
2130
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2131
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2132
as_fn_error $? "failed to load site script $ac_site_file
 
2133
See \`config.log' for more details" "$LINENO" 5; }
 
2134
  fi
 
2135
done
 
2136
 
 
2137
if test -r "$cache_file"; then
 
2138
  # Some versions of bash will fail to source /dev/null (special files
 
2139
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2140
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2141
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2142
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2143
    case $cache_file in
 
2144
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2145
      *)                      . "./$cache_file";;
 
2146
    esac
 
2147
  fi
 
2148
else
 
2149
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2150
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2151
  >$cache_file
 
2152
fi
 
2153
 
 
2154
# Check that the precious variables saved in the cache have kept the same
 
2155
# value.
 
2156
ac_cache_corrupted=false
 
2157
for ac_var in $ac_precious_vars; do
 
2158
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2159
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2160
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2161
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2162
  case $ac_old_set,$ac_new_set in
 
2163
    set,)
 
2164
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2165
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2166
      ac_cache_corrupted=: ;;
 
2167
    ,set)
 
2168
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2169
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2170
      ac_cache_corrupted=: ;;
 
2171
    ,);;
 
2172
    *)
 
2173
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2174
        # differences in whitespace do not lead to failure.
 
2175
        ac_old_val_w=`echo x $ac_old_val`
 
2176
        ac_new_val_w=`echo x $ac_new_val`
 
2177
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2178
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2179
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2180
          ac_cache_corrupted=:
 
2181
        else
 
2182
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2183
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2184
          eval $ac_var=\$ac_old_val
 
2185
        fi
 
2186
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2187
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2188
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2189
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2190
      fi;;
 
2191
  esac
 
2192
  # Pass precious variables to config.status.
 
2193
  if test "$ac_new_set" = set; then
 
2194
    case $ac_new_val in
 
2195
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2196
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2197
    esac
 
2198
    case " $ac_configure_args " in
 
2199
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2200
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2201
    esac
 
2202
  fi
 
2203
done
 
2204
if $ac_cache_corrupted; then
 
2205
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2206
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2207
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2208
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2209
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2210
fi
 
2211
## -------------------- ##
 
2212
## Main body of script. ##
 
2213
## -------------------- ##
 
2214
 
 
2215
ac_ext=c
 
2216
ac_cpp='$CPP $CPPFLAGS'
 
2217
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2218
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2219
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2220
 
 
2221
 
 
2222
 
 
2223
ac_config_headers="$ac_config_headers config.h"
 
2224
 
 
2225
ac_aux_dir=
 
2226
for ac_dir in . "$srcdir"/.; do
 
2227
  if test -f "$ac_dir/install-sh"; then
 
2228
    ac_aux_dir=$ac_dir
 
2229
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2230
    break
 
2231
  elif test -f "$ac_dir/install.sh"; then
 
2232
    ac_aux_dir=$ac_dir
 
2233
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2234
    break
 
2235
  elif test -f "$ac_dir/shtool"; then
 
2236
    ac_aux_dir=$ac_dir
 
2237
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2238
    break
 
2239
  fi
 
2240
done
 
2241
if test -z "$ac_aux_dir"; then
 
2242
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
 
2243
fi
 
2244
 
 
2245
# These three variables are undocumented and unsupported,
 
2246
# and are intended to be withdrawn in a future Autoconf release.
 
2247
# They can cause serious problems if a builder's source tree is in a directory
 
2248
# whose full name contains unusual characters.
 
2249
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2250
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2251
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2252
 
 
2253
 
 
2254
 
 
2255
# Initialize Automake
 
2256
am__api_version='1.13'
 
2257
 
 
2258
# Find a good install program.  We prefer a C program (faster),
 
2259
# so one script is as good as another.  But avoid the broken or
 
2260
# incompatible versions:
 
2261
# SysV /etc/install, /usr/sbin/install
 
2262
# SunOS /usr/etc/install
 
2263
# IRIX /sbin/install
 
2264
# AIX /bin/install
 
2265
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2266
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2267
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2268
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2269
# OS/2's system install, which has a completely different semantic
 
2270
# ./install, which can be erroneously created by make from ./install.sh.
 
2271
# Reject install programs that cannot install multiple files.
 
2272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2273
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2274
if test -z "$INSTALL"; then
 
2275
if ${ac_cv_path_install+:} false; then :
 
2276
  $as_echo_n "(cached) " >&6
 
2277
else
 
2278
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2279
for as_dir in $PATH
 
2280
do
 
2281
  IFS=$as_save_IFS
 
2282
  test -z "$as_dir" && as_dir=.
 
2283
    # Account for people who put trailing slashes in PATH elements.
 
2284
case $as_dir/ in #((
 
2285
  ./ | .// | /[cC]/* | \
 
2286
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2287
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2288
  /usr/ucb/* ) ;;
 
2289
  *)
 
2290
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2291
    # Don't use installbsd from OSF since it installs stuff as root
 
2292
    # by default.
 
2293
    for ac_prog in ginstall scoinst install; do
 
2294
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2295
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2296
          if test $ac_prog = install &&
 
2297
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2298
            # AIX install.  It has an incompatible calling convention.
 
2299
            :
 
2300
          elif test $ac_prog = install &&
 
2301
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2302
            # program-specific install script used by HP pwplus--don't use.
 
2303
            :
 
2304
          else
 
2305
            rm -rf conftest.one conftest.two conftest.dir
 
2306
            echo one > conftest.one
 
2307
            echo two > conftest.two
 
2308
            mkdir conftest.dir
 
2309
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2310
              test -s conftest.one && test -s conftest.two &&
 
2311
              test -s conftest.dir/conftest.one &&
 
2312
              test -s conftest.dir/conftest.two
 
2313
            then
 
2314
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2315
              break 3
 
2316
            fi
 
2317
          fi
 
2318
        fi
 
2319
      done
 
2320
    done
 
2321
    ;;
 
2322
esac
 
2323
 
 
2324
  done
 
2325
IFS=$as_save_IFS
 
2326
 
 
2327
rm -rf conftest.one conftest.two conftest.dir
 
2328
 
 
2329
fi
 
2330
  if test "${ac_cv_path_install+set}" = set; then
 
2331
    INSTALL=$ac_cv_path_install
 
2332
  else
 
2333
    # As a last resort, use the slow shell script.  Don't cache a
 
2334
    # value for INSTALL within a source directory, because that will
 
2335
    # break other packages using the cache if that directory is
 
2336
    # removed, or if the value is a relative name.
 
2337
    INSTALL=$ac_install_sh
 
2338
  fi
 
2339
fi
 
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2341
$as_echo "$INSTALL" >&6; }
 
2342
 
 
2343
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2344
# It thinks the first close brace ends the variable substitution.
 
2345
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2346
 
 
2347
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2348
 
 
2349
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2350
 
 
2351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2352
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2353
# Reject unsafe characters in $srcdir or the absolute working directory
 
2354
# name.  Accept space and tab only in the latter.
 
2355
am_lf='
 
2356
'
 
2357
case `pwd` in
 
2358
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2359
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2360
esac
 
2361
case $srcdir in
 
2362
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2363
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2364
esac
 
2365
 
 
2366
# Do 'set' in a subshell so we don't clobber the current shell's
 
2367
# arguments.  Must try -L first in case configure is actually a
 
2368
# symlink; some systems play weird games with the mod time of symlinks
 
2369
# (eg FreeBSD returns the mod time of the symlink's containing
 
2370
# directory).
 
2371
if (
 
2372
   am_has_slept=no
 
2373
   for am_try in 1 2; do
 
2374
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2375
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2376
     if test "$*" = "X"; then
 
2377
        # -L didn't work.
 
2378
        set X `ls -t "$srcdir/configure" conftest.file`
 
2379
     fi
 
2380
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2381
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2382
 
 
2383
        # If neither matched, then we have a broken ls.  This can happen
 
2384
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2385
        # broken ls alias from the environment.  This has actually
 
2386
        # happened.  Such a system could not be considered "sane".
 
2387
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2388
  alias in your environment" "$LINENO" 5
 
2389
     fi
 
2390
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2391
       break
 
2392
     fi
 
2393
     # Just in case.
 
2394
     sleep 1
 
2395
     am_has_slept=yes
 
2396
   done
 
2397
   test "$2" = conftest.file
 
2398
   )
 
2399
then
 
2400
   # Ok.
 
2401
   :
 
2402
else
 
2403
   as_fn_error $? "newly created file is older than distributed files!
 
2404
Check your system clock" "$LINENO" 5
 
2405
fi
 
2406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2407
$as_echo "yes" >&6; }
 
2408
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2409
# generated files are strictly newer.
 
2410
am_sleep_pid=
 
2411
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2412
  ( sleep 1 ) &
 
2413
  am_sleep_pid=$!
 
2414
fi
 
2415
 
 
2416
rm -f conftest.file
 
2417
 
 
2418
test "$program_prefix" != NONE &&
 
2419
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2420
# Use a double $ so make ignores it.
 
2421
test "$program_suffix" != NONE &&
 
2422
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2423
# Double any \ or $.
 
2424
# By default was `s,x,x', remove it if useless.
 
2425
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2426
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2427
 
 
2428
# expand $ac_aux_dir to an absolute path
 
2429
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2430
 
 
2431
if test x"${MISSING+set}" != xset; then
 
2432
  case $am_aux_dir in
 
2433
  *\ * | *\     *)
 
2434
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2435
  *)
 
2436
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2437
  esac
 
2438
fi
 
2439
# Use eval to expand $SHELL
 
2440
if eval "$MISSING --is-lightweight"; then
 
2441
  am_missing_run="$MISSING "
 
2442
else
 
2443
  am_missing_run=
 
2444
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2445
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2446
fi
 
2447
 
 
2448
if test x"${install_sh}" != xset; then
 
2449
  case $am_aux_dir in
 
2450
  *\ * | *\     *)
 
2451
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2452
  *)
 
2453
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2454
  esac
 
2455
fi
 
2456
 
 
2457
# Installed binaries are usually stripped using 'strip' when the user
 
2458
# run "make install-strip".  However 'strip' might not be the right
 
2459
# tool to use in cross-compilation environments, therefore Automake
 
2460
# will honor the 'STRIP' environment variable to overrule this program.
 
2461
if test "$cross_compiling" != no; then
 
2462
  if test -n "$ac_tool_prefix"; then
 
2463
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2464
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2466
$as_echo_n "checking for $ac_word... " >&6; }
 
2467
if ${ac_cv_prog_STRIP+:} false; then :
 
2468
  $as_echo_n "(cached) " >&6
 
2469
else
 
2470
  if test -n "$STRIP"; then
 
2471
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2472
else
 
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2474
for as_dir in $PATH
 
2475
do
 
2476
  IFS=$as_save_IFS
 
2477
  test -z "$as_dir" && as_dir=.
 
2478
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2479
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2480
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2481
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2482
    break 2
 
2483
  fi
 
2484
done
 
2485
  done
 
2486
IFS=$as_save_IFS
 
2487
 
 
2488
fi
 
2489
fi
 
2490
STRIP=$ac_cv_prog_STRIP
 
2491
if test -n "$STRIP"; then
 
2492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2493
$as_echo "$STRIP" >&6; }
 
2494
else
 
2495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2496
$as_echo "no" >&6; }
 
2497
fi
 
2498
 
 
2499
 
 
2500
fi
 
2501
if test -z "$ac_cv_prog_STRIP"; then
 
2502
  ac_ct_STRIP=$STRIP
 
2503
  # Extract the first word of "strip", so it can be a program name with args.
 
2504
set dummy strip; ac_word=$2
 
2505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2506
$as_echo_n "checking for $ac_word... " >&6; }
 
2507
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2508
  $as_echo_n "(cached) " >&6
 
2509
else
 
2510
  if test -n "$ac_ct_STRIP"; then
 
2511
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2512
else
 
2513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2514
for as_dir in $PATH
 
2515
do
 
2516
  IFS=$as_save_IFS
 
2517
  test -z "$as_dir" && as_dir=.
 
2518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2519
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2520
    ac_cv_prog_ac_ct_STRIP="strip"
 
2521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2522
    break 2
 
2523
  fi
 
2524
done
 
2525
  done
 
2526
IFS=$as_save_IFS
 
2527
 
 
2528
fi
 
2529
fi
 
2530
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2531
if test -n "$ac_ct_STRIP"; then
 
2532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2533
$as_echo "$ac_ct_STRIP" >&6; }
 
2534
else
 
2535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2536
$as_echo "no" >&6; }
 
2537
fi
 
2538
 
 
2539
  if test "x$ac_ct_STRIP" = x; then
 
2540
    STRIP=":"
 
2541
  else
 
2542
    case $cross_compiling:$ac_tool_warned in
 
2543
yes:)
 
2544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2545
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2546
ac_tool_warned=yes ;;
 
2547
esac
 
2548
    STRIP=$ac_ct_STRIP
 
2549
  fi
 
2550
else
 
2551
  STRIP="$ac_cv_prog_STRIP"
 
2552
fi
 
2553
 
 
2554
fi
 
2555
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2556
 
 
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2558
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2559
if test -z "$MKDIR_P"; then
 
2560
  if ${ac_cv_path_mkdir+:} false; then :
 
2561
  $as_echo_n "(cached) " >&6
 
2562
else
 
2563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2564
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2565
do
 
2566
  IFS=$as_save_IFS
 
2567
  test -z "$as_dir" && as_dir=.
 
2568
    for ac_prog in mkdir gmkdir; do
 
2569
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2570
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2571
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2572
             'mkdir (GNU coreutils) '* | \
 
2573
             'mkdir (coreutils) '* | \
 
2574
             'mkdir (fileutils) '4.1*)
 
2575
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2576
               break 3;;
 
2577
           esac
 
2578
         done
 
2579
       done
 
2580
  done
 
2581
IFS=$as_save_IFS
 
2582
 
 
2583
fi
 
2584
 
 
2585
  test -d ./--version && rmdir ./--version
 
2586
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2587
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2588
  else
 
2589
    # As a last resort, use the slow shell script.  Don't cache a
 
2590
    # value for MKDIR_P within a source directory, because that will
 
2591
    # break other packages using the cache if that directory is
 
2592
    # removed, or if the value is a relative name.
 
2593
    MKDIR_P="$ac_install_sh -d"
 
2594
  fi
 
2595
fi
 
2596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2597
$as_echo "$MKDIR_P" >&6; }
 
2598
 
 
2599
for ac_prog in gawk mawk nawk awk
 
2600
do
 
2601
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2602
set dummy $ac_prog; ac_word=$2
 
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2604
$as_echo_n "checking for $ac_word... " >&6; }
 
2605
if ${ac_cv_prog_AWK+:} false; then :
 
2606
  $as_echo_n "(cached) " >&6
 
2607
else
 
2608
  if test -n "$AWK"; then
 
2609
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2610
else
 
2611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2612
for as_dir in $PATH
 
2613
do
 
2614
  IFS=$as_save_IFS
 
2615
  test -z "$as_dir" && as_dir=.
 
2616
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2617
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2618
    ac_cv_prog_AWK="$ac_prog"
 
2619
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2620
    break 2
 
2621
  fi
 
2622
done
 
2623
  done
 
2624
IFS=$as_save_IFS
 
2625
 
 
2626
fi
 
2627
fi
 
2628
AWK=$ac_cv_prog_AWK
 
2629
if test -n "$AWK"; then
 
2630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2631
$as_echo "$AWK" >&6; }
 
2632
else
 
2633
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2634
$as_echo "no" >&6; }
 
2635
fi
 
2636
 
 
2637
 
 
2638
  test -n "$AWK" && break
 
2639
done
 
2640
 
 
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2642
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2643
set x ${MAKE-make}
 
2644
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2645
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2646
  $as_echo_n "(cached) " >&6
 
2647
else
 
2648
  cat >conftest.make <<\_ACEOF
 
2649
SHELL = /bin/sh
 
2650
all:
 
2651
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2652
_ACEOF
 
2653
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2654
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2655
  *@@@%%%=?*=@@@%%%*)
 
2656
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2657
  *)
 
2658
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2659
esac
 
2660
rm -f conftest.make
 
2661
fi
 
2662
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2664
$as_echo "yes" >&6; }
 
2665
  SET_MAKE=
 
2666
else
 
2667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2668
$as_echo "no" >&6; }
 
2669
  SET_MAKE="MAKE=${MAKE-make}"
 
2670
fi
 
2671
 
 
2672
rm -rf .tst 2>/dev/null
 
2673
mkdir .tst 2>/dev/null
 
2674
if test -d .tst; then
 
2675
  am__leading_dot=.
 
2676
else
 
2677
  am__leading_dot=_
 
2678
fi
 
2679
rmdir .tst 2>/dev/null
 
2680
 
 
2681
# Check whether --enable-silent-rules was given.
 
2682
if test "${enable_silent_rules+set}" = set; then :
 
2683
  enableval=$enable_silent_rules;
 
2684
fi
 
2685
 
 
2686
case $enable_silent_rules in # (((
 
2687
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2688
   no) AM_DEFAULT_VERBOSITY=1;;
 
2689
    *) AM_DEFAULT_VERBOSITY=1;;
 
2690
esac
 
2691
am_make=${MAKE-make}
 
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2693
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2694
if ${am_cv_make_support_nested_variables+:} false; then :
 
2695
  $as_echo_n "(cached) " >&6
 
2696
else
 
2697
  if $as_echo 'TRUE=$(BAR$(V))
 
2698
BAR0=false
 
2699
BAR1=true
 
2700
V=1
 
2701
am__doit:
 
2702
        @$(TRUE)
 
2703
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2704
  am_cv_make_support_nested_variables=yes
 
2705
else
 
2706
  am_cv_make_support_nested_variables=no
 
2707
fi
 
2708
fi
 
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2710
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2711
if test $am_cv_make_support_nested_variables = yes; then
 
2712
    AM_V='$(V)'
 
2713
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2714
else
 
2715
  AM_V=$AM_DEFAULT_VERBOSITY
 
2716
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2717
fi
 
2718
AM_BACKSLASH='\'
 
2719
 
 
2720
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2721
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2722
  # is not polluted with repeated "-I."
 
2723
  am__isrc=' -I$(srcdir)'
 
2724
  # test to see if srcdir already configured
 
2725
  if test -f $srcdir/config.status; then
 
2726
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2727
  fi
 
2728
fi
 
2729
 
 
2730
# test whether we have cygpath
 
2731
if test -z "$CYGPATH_W"; then
 
2732
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2733
    CYGPATH_W='cygpath -w'
 
2734
  else
 
2735
    CYGPATH_W=echo
 
2736
  fi
 
2737
fi
 
2738
 
 
2739
 
 
2740
# Define the identity of the package.
 
2741
 PACKAGE='xf86-video-dummy'
 
2742
 VERSION='0.3.7'
 
2743
 
 
2744
 
 
2745
cat >>confdefs.h <<_ACEOF
 
2746
#define PACKAGE "$PACKAGE"
 
2747
_ACEOF
 
2748
 
 
2749
 
 
2750
cat >>confdefs.h <<_ACEOF
 
2751
#define VERSION "$VERSION"
 
2752
_ACEOF
 
2753
 
 
2754
# Some tools Automake needs.
 
2755
 
 
2756
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2757
 
 
2758
 
 
2759
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2760
 
 
2761
 
 
2762
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2763
 
 
2764
 
 
2765
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2766
 
 
2767
 
 
2768
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2769
 
 
2770
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2771
# dies out for good.  For more background, see:
 
2772
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2773
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2774
mkdir_p='$(MKDIR_P)'
 
2775
 
 
2776
# We need awk for the "check" target.  The system "awk" is bad on
 
2777
# some platforms.
 
2778
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2779
# in the wild :-(  We should find a proper way to deprecate it ...
 
2780
AMTAR='$${TAR-tar}'
 
2781
 
 
2782
 
 
2783
# We'll loop over all known methods to create a tar archive until one works.
 
2784
_am_tools='gnutar  pax cpio none'
 
2785
 
 
2786
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2787
 
 
2788
 
 
2789
 
 
2790
 
 
2791
 
 
2792
 
 
2793
 
 
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2795
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2796
    # Check whether --enable-maintainer-mode was given.
 
2797
if test "${enable_maintainer_mode+set}" = set; then :
 
2798
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2799
else
 
2800
  USE_MAINTAINER_MODE=no
 
2801
fi
 
2802
 
 
2803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2804
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2805
   if test $USE_MAINTAINER_MODE = yes; then
 
2806
  MAINTAINER_MODE_TRUE=
 
2807
  MAINTAINER_MODE_FALSE='#'
 
2808
else
 
2809
  MAINTAINER_MODE_TRUE='#'
 
2810
  MAINTAINER_MODE_FALSE=
 
2811
fi
 
2812
 
 
2813
  MAINT=$MAINTAINER_MODE_TRUE
 
2814
 
 
2815
 
 
2816
 
 
2817
# Require xorg-macros: XORG_DEFAULT_OPTIONS
 
2818
 
 
2819
 
 
2820
 
 
2821
 
 
2822
 
 
2823
 
 
2824
 
 
2825
 
 
2826
 
 
2827
 
 
2828
 
 
2829
DEPDIR="${am__leading_dot}deps"
 
2830
 
 
2831
ac_config_commands="$ac_config_commands depfiles"
 
2832
 
 
2833
 
 
2834
am_make=${MAKE-make}
 
2835
cat > confinc << 'END'
 
2836
am__doit:
 
2837
        @echo this is the am__doit target
 
2838
.PHONY: am__doit
 
2839
END
 
2840
# If we don't find an include directive, just comment out the code.
 
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2842
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2843
am__include="#"
 
2844
am__quote=
 
2845
_am_result=none
 
2846
# First try GNU make style include.
 
2847
echo "include confinc" > confmf
 
2848
# Ignore all kinds of additional output from 'make'.
 
2849
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2850
*the\ am__doit\ target*)
 
2851
  am__include=include
 
2852
  am__quote=
 
2853
  _am_result=GNU
 
2854
  ;;
 
2855
esac
 
2856
# Now try BSD make style include.
 
2857
if test "$am__include" = "#"; then
 
2858
   echo '.include "confinc"' > confmf
 
2859
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2860
   *the\ am__doit\ target*)
 
2861
     am__include=.include
 
2862
     am__quote="\""
 
2863
     _am_result=BSD
 
2864
     ;;
 
2865
   esac
 
2866
fi
 
2867
 
 
2868
 
 
2869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2870
$as_echo "$_am_result" >&6; }
 
2871
rm -f confinc confmf
 
2872
 
 
2873
# Check whether --enable-dependency-tracking was given.
 
2874
if test "${enable_dependency_tracking+set}" = set; then :
 
2875
  enableval=$enable_dependency_tracking;
 
2876
fi
 
2877
 
 
2878
if test "x$enable_dependency_tracking" != xno; then
 
2879
  am_depcomp="$ac_aux_dir/depcomp"
 
2880
  AMDEPBACKSLASH='\'
 
2881
  am__nodep='_no'
 
2882
fi
 
2883
 if test "x$enable_dependency_tracking" != xno; then
 
2884
  AMDEP_TRUE=
 
2885
  AMDEP_FALSE='#'
 
2886
else
 
2887
  AMDEP_TRUE='#'
 
2888
  AMDEP_FALSE=
 
2889
fi
 
2890
 
 
2891
 
 
2892
ac_ext=c
 
2893
ac_cpp='$CPP $CPPFLAGS'
 
2894
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2895
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2896
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2897
if test -n "$ac_tool_prefix"; then
 
2898
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2899
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2901
$as_echo_n "checking for $ac_word... " >&6; }
 
2902
if ${ac_cv_prog_CC+:} false; then :
 
2903
  $as_echo_n "(cached) " >&6
 
2904
else
 
2905
  if test -n "$CC"; then
 
2906
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2907
else
 
2908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2909
for as_dir in $PATH
 
2910
do
 
2911
  IFS=$as_save_IFS
 
2912
  test -z "$as_dir" && as_dir=.
 
2913
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2914
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2915
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2916
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2917
    break 2
 
2918
  fi
 
2919
done
 
2920
  done
 
2921
IFS=$as_save_IFS
 
2922
 
 
2923
fi
 
2924
fi
 
2925
CC=$ac_cv_prog_CC
 
2926
if test -n "$CC"; then
 
2927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2928
$as_echo "$CC" >&6; }
 
2929
else
 
2930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2931
$as_echo "no" >&6; }
 
2932
fi
 
2933
 
 
2934
 
 
2935
fi
 
2936
if test -z "$ac_cv_prog_CC"; then
 
2937
  ac_ct_CC=$CC
 
2938
  # Extract the first word of "gcc", so it can be a program name with args.
 
2939
set dummy gcc; ac_word=$2
 
2940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2941
$as_echo_n "checking for $ac_word... " >&6; }
 
2942
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2943
  $as_echo_n "(cached) " >&6
 
2944
else
 
2945
  if test -n "$ac_ct_CC"; then
 
2946
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2947
else
 
2948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2949
for as_dir in $PATH
 
2950
do
 
2951
  IFS=$as_save_IFS
 
2952
  test -z "$as_dir" && as_dir=.
 
2953
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2954
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2955
    ac_cv_prog_ac_ct_CC="gcc"
 
2956
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2957
    break 2
 
2958
  fi
 
2959
done
 
2960
  done
 
2961
IFS=$as_save_IFS
 
2962
 
 
2963
fi
 
2964
fi
 
2965
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2966
if test -n "$ac_ct_CC"; then
 
2967
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2968
$as_echo "$ac_ct_CC" >&6; }
 
2969
else
 
2970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2971
$as_echo "no" >&6; }
 
2972
fi
 
2973
 
 
2974
  if test "x$ac_ct_CC" = x; then
 
2975
    CC=""
 
2976
  else
 
2977
    case $cross_compiling:$ac_tool_warned in
 
2978
yes:)
 
2979
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2980
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2981
ac_tool_warned=yes ;;
 
2982
esac
 
2983
    CC=$ac_ct_CC
 
2984
  fi
 
2985
else
 
2986
  CC="$ac_cv_prog_CC"
 
2987
fi
 
2988
 
 
2989
if test -z "$CC"; then
 
2990
          if test -n "$ac_tool_prefix"; then
 
2991
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2992
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2994
$as_echo_n "checking for $ac_word... " >&6; }
 
2995
if ${ac_cv_prog_CC+:} false; then :
 
2996
  $as_echo_n "(cached) " >&6
 
2997
else
 
2998
  if test -n "$CC"; then
 
2999
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3000
else
 
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3002
for as_dir in $PATH
 
3003
do
 
3004
  IFS=$as_save_IFS
 
3005
  test -z "$as_dir" && as_dir=.
 
3006
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3007
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3008
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3009
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3010
    break 2
 
3011
  fi
 
3012
done
 
3013
  done
 
3014
IFS=$as_save_IFS
 
3015
 
 
3016
fi
 
3017
fi
 
3018
CC=$ac_cv_prog_CC
 
3019
if test -n "$CC"; then
 
3020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3021
$as_echo "$CC" >&6; }
 
3022
else
 
3023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3024
$as_echo "no" >&6; }
 
3025
fi
 
3026
 
 
3027
 
 
3028
  fi
 
3029
fi
 
3030
if test -z "$CC"; then
 
3031
  # Extract the first word of "cc", so it can be a program name with args.
 
3032
set dummy cc; ac_word=$2
 
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3034
$as_echo_n "checking for $ac_word... " >&6; }
 
3035
if ${ac_cv_prog_CC+:} false; then :
 
3036
  $as_echo_n "(cached) " >&6
 
3037
else
 
3038
  if test -n "$CC"; then
 
3039
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3040
else
 
3041
  ac_prog_rejected=no
 
3042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3043
for as_dir in $PATH
 
3044
do
 
3045
  IFS=$as_save_IFS
 
3046
  test -z "$as_dir" && as_dir=.
 
3047
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3048
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3049
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3050
       ac_prog_rejected=yes
 
3051
       continue
 
3052
     fi
 
3053
    ac_cv_prog_CC="cc"
 
3054
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3055
    break 2
 
3056
  fi
 
3057
done
 
3058
  done
 
3059
IFS=$as_save_IFS
 
3060
 
 
3061
if test $ac_prog_rejected = yes; then
 
3062
  # We found a bogon in the path, so make sure we never use it.
 
3063
  set dummy $ac_cv_prog_CC
 
3064
  shift
 
3065
  if test $# != 0; then
 
3066
    # We chose a different compiler from the bogus one.
 
3067
    # However, it has the same basename, so the bogon will be chosen
 
3068
    # first if we set CC to just the basename; use the full file name.
 
3069
    shift
 
3070
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3071
  fi
 
3072
fi
 
3073
fi
 
3074
fi
 
3075
CC=$ac_cv_prog_CC
 
3076
if test -n "$CC"; then
 
3077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3078
$as_echo "$CC" >&6; }
 
3079
else
 
3080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3081
$as_echo "no" >&6; }
 
3082
fi
 
3083
 
 
3084
 
 
3085
fi
 
3086
if test -z "$CC"; then
 
3087
  if test -n "$ac_tool_prefix"; then
 
3088
  for ac_prog in cl.exe
 
3089
  do
 
3090
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3091
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3093
$as_echo_n "checking for $ac_word... " >&6; }
 
3094
if ${ac_cv_prog_CC+:} false; then :
 
3095
  $as_echo_n "(cached) " >&6
 
3096
else
 
3097
  if test -n "$CC"; then
 
3098
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3099
else
 
3100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3101
for as_dir in $PATH
 
3102
do
 
3103
  IFS=$as_save_IFS
 
3104
  test -z "$as_dir" && as_dir=.
 
3105
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3106
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3107
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3108
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3109
    break 2
 
3110
  fi
 
3111
done
 
3112
  done
 
3113
IFS=$as_save_IFS
 
3114
 
 
3115
fi
 
3116
fi
 
3117
CC=$ac_cv_prog_CC
 
3118
if test -n "$CC"; then
 
3119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3120
$as_echo "$CC" >&6; }
 
3121
else
 
3122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3123
$as_echo "no" >&6; }
 
3124
fi
 
3125
 
 
3126
 
 
3127
    test -n "$CC" && break
 
3128
  done
 
3129
fi
 
3130
if test -z "$CC"; then
 
3131
  ac_ct_CC=$CC
 
3132
  for ac_prog in cl.exe
 
3133
do
 
3134
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3135
set dummy $ac_prog; ac_word=$2
 
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3137
$as_echo_n "checking for $ac_word... " >&6; }
 
3138
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3139
  $as_echo_n "(cached) " >&6
 
3140
else
 
3141
  if test -n "$ac_ct_CC"; then
 
3142
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3143
else
 
3144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3145
for as_dir in $PATH
 
3146
do
 
3147
  IFS=$as_save_IFS
 
3148
  test -z "$as_dir" && as_dir=.
 
3149
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3150
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3151
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3152
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3153
    break 2
 
3154
  fi
 
3155
done
 
3156
  done
 
3157
IFS=$as_save_IFS
 
3158
 
 
3159
fi
 
3160
fi
 
3161
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3162
if test -n "$ac_ct_CC"; then
 
3163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3164
$as_echo "$ac_ct_CC" >&6; }
 
3165
else
 
3166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3167
$as_echo "no" >&6; }
 
3168
fi
 
3169
 
 
3170
 
 
3171
  test -n "$ac_ct_CC" && break
 
3172
done
 
3173
 
 
3174
  if test "x$ac_ct_CC" = x; then
 
3175
    CC=""
 
3176
  else
 
3177
    case $cross_compiling:$ac_tool_warned in
 
3178
yes:)
 
3179
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3180
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3181
ac_tool_warned=yes ;;
 
3182
esac
 
3183
    CC=$ac_ct_CC
 
3184
  fi
 
3185
fi
 
3186
 
 
3187
fi
 
3188
 
 
3189
 
 
3190
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3191
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3192
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3193
See \`config.log' for more details" "$LINENO" 5; }
 
3194
 
 
3195
# Provide some information about the compiler.
 
3196
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3197
set X $ac_compile
 
3198
ac_compiler=$2
 
3199
for ac_option in --version -v -V -qversion; do
 
3200
  { { ac_try="$ac_compiler $ac_option >&5"
 
3201
case "(($ac_try" in
 
3202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3203
  *) ac_try_echo=$ac_try;;
 
3204
esac
 
3205
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3206
$as_echo "$ac_try_echo"; } >&5
 
3207
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3208
  ac_status=$?
 
3209
  if test -s conftest.err; then
 
3210
    sed '10a\
 
3211
... rest of stderr output deleted ...
 
3212
         10q' conftest.err >conftest.er1
 
3213
    cat conftest.er1 >&5
 
3214
  fi
 
3215
  rm -f conftest.er1 conftest.err
 
3216
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3217
  test $ac_status = 0; }
 
3218
done
 
3219
 
 
3220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3221
/* end confdefs.h.  */
 
3222
 
 
3223
int
 
3224
main ()
 
3225
{
 
3226
 
 
3227
  ;
 
3228
  return 0;
 
3229
}
 
3230
_ACEOF
 
3231
ac_clean_files_save=$ac_clean_files
 
3232
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3233
# Try to create an executable without -o first, disregard a.out.
 
3234
# It will help us diagnose broken compilers, and finding out an intuition
 
3235
# of exeext.
 
3236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3237
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3238
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3239
 
 
3240
# The possible output files:
 
3241
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3242
 
 
3243
ac_rmfiles=
 
3244
for ac_file in $ac_files
 
3245
do
 
3246
  case $ac_file in
 
3247
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3248
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3249
  esac
 
3250
done
 
3251
rm -f $ac_rmfiles
 
3252
 
 
3253
if { { ac_try="$ac_link_default"
 
3254
case "(($ac_try" in
 
3255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3256
  *) ac_try_echo=$ac_try;;
 
3257
esac
 
3258
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3259
$as_echo "$ac_try_echo"; } >&5
 
3260
  (eval "$ac_link_default") 2>&5
 
3261
  ac_status=$?
 
3262
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3263
  test $ac_status = 0; }; then :
 
3264
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3265
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3266
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3267
# so that the user can short-circuit this test for compilers unknown to
 
3268
# Autoconf.
 
3269
for ac_file in $ac_files ''
 
3270
do
 
3271
  test -f "$ac_file" || continue
 
3272
  case $ac_file in
 
3273
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3274
        ;;
 
3275
    [ab].out )
 
3276
        # We found the default executable, but exeext='' is most
 
3277
        # certainly right.
 
3278
        break;;
 
3279
    *.* )
 
3280
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3281
        then :; else
 
3282
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3283
        fi
 
3284
        # We set ac_cv_exeext here because the later test for it is not
 
3285
        # safe: cross compilers may not add the suffix if given an `-o'
 
3286
        # argument, so we may need to know it at that point already.
 
3287
        # Even if this section looks crufty: it has the advantage of
 
3288
        # actually working.
 
3289
        break;;
 
3290
    * )
 
3291
        break;;
 
3292
  esac
 
3293
done
 
3294
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3295
 
 
3296
else
 
3297
  ac_file=''
 
3298
fi
 
3299
if test -z "$ac_file"; then :
 
3300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3301
$as_echo "no" >&6; }
 
3302
$as_echo "$as_me: failed program was:" >&5
 
3303
sed 's/^/| /' conftest.$ac_ext >&5
 
3304
 
 
3305
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3306
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3307
as_fn_error 77 "C compiler cannot create executables
 
3308
See \`config.log' for more details" "$LINENO" 5; }
 
3309
else
 
3310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3311
$as_echo "yes" >&6; }
 
3312
fi
 
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3314
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3316
$as_echo "$ac_file" >&6; }
 
3317
ac_exeext=$ac_cv_exeext
 
3318
 
 
3319
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3320
ac_clean_files=$ac_clean_files_save
 
3321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3322
$as_echo_n "checking for suffix of executables... " >&6; }
 
3323
if { { ac_try="$ac_link"
 
3324
case "(($ac_try" in
 
3325
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3326
  *) ac_try_echo=$ac_try;;
 
3327
esac
 
3328
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3329
$as_echo "$ac_try_echo"; } >&5
 
3330
  (eval "$ac_link") 2>&5
 
3331
  ac_status=$?
 
3332
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3333
  test $ac_status = 0; }; then :
 
3334
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3335
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3336
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3337
# `rm'.
 
3338
for ac_file in conftest.exe conftest conftest.*; do
 
3339
  test -f "$ac_file" || continue
 
3340
  case $ac_file in
 
3341
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3342
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3343
          break;;
 
3344
    * ) break;;
 
3345
  esac
 
3346
done
 
3347
else
 
3348
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3349
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3350
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3351
See \`config.log' for more details" "$LINENO" 5; }
 
3352
fi
 
3353
rm -f conftest conftest$ac_cv_exeext
 
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3355
$as_echo "$ac_cv_exeext" >&6; }
 
3356
 
 
3357
rm -f conftest.$ac_ext
 
3358
EXEEXT=$ac_cv_exeext
 
3359
ac_exeext=$EXEEXT
 
3360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3361
/* end confdefs.h.  */
 
3362
#include <stdio.h>
 
3363
int
 
3364
main ()
 
3365
{
 
3366
FILE *f = fopen ("conftest.out", "w");
 
3367
 return ferror (f) || fclose (f) != 0;
 
3368
 
 
3369
  ;
 
3370
  return 0;
 
3371
}
 
3372
_ACEOF
 
3373
ac_clean_files="$ac_clean_files conftest.out"
 
3374
# Check that the compiler produces executables we can run.  If not, either
 
3375
# the compiler is broken, or we cross compile.
 
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3377
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3378
if test "$cross_compiling" != yes; then
 
3379
  { { ac_try="$ac_link"
 
3380
case "(($ac_try" in
 
3381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3382
  *) ac_try_echo=$ac_try;;
 
3383
esac
 
3384
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3385
$as_echo "$ac_try_echo"; } >&5
 
3386
  (eval "$ac_link") 2>&5
 
3387
  ac_status=$?
 
3388
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3389
  test $ac_status = 0; }
 
3390
  if { ac_try='./conftest$ac_cv_exeext'
 
3391
  { { case "(($ac_try" in
 
3392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3393
  *) ac_try_echo=$ac_try;;
 
3394
esac
 
3395
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3396
$as_echo "$ac_try_echo"; } >&5
 
3397
  (eval "$ac_try") 2>&5
 
3398
  ac_status=$?
 
3399
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3400
  test $ac_status = 0; }; }; then
 
3401
    cross_compiling=no
 
3402
  else
 
3403
    if test "$cross_compiling" = maybe; then
 
3404
        cross_compiling=yes
 
3405
    else
 
3406
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3407
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3408
as_fn_error $? "cannot run C compiled programs.
 
3409
If you meant to cross compile, use \`--host'.
 
3410
See \`config.log' for more details" "$LINENO" 5; }
 
3411
    fi
 
3412
  fi
 
3413
fi
 
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3415
$as_echo "$cross_compiling" >&6; }
 
3416
 
 
3417
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3418
ac_clean_files=$ac_clean_files_save
 
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3420
$as_echo_n "checking for suffix of object files... " >&6; }
 
3421
if ${ac_cv_objext+:} false; then :
 
3422
  $as_echo_n "(cached) " >&6
 
3423
else
 
3424
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3425
/* end confdefs.h.  */
 
3426
 
 
3427
int
 
3428
main ()
 
3429
{
 
3430
 
 
3431
  ;
 
3432
  return 0;
 
3433
}
 
3434
_ACEOF
 
3435
rm -f conftest.o conftest.obj
 
3436
if { { ac_try="$ac_compile"
 
3437
case "(($ac_try" in
 
3438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3439
  *) ac_try_echo=$ac_try;;
 
3440
esac
 
3441
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3442
$as_echo "$ac_try_echo"; } >&5
 
3443
  (eval "$ac_compile") 2>&5
 
3444
  ac_status=$?
 
3445
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3446
  test $ac_status = 0; }; then :
 
3447
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3448
  test -f "$ac_file" || continue;
 
3449
  case $ac_file in
 
3450
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3451
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3452
       break;;
 
3453
  esac
 
3454
done
 
3455
else
 
3456
  $as_echo "$as_me: failed program was:" >&5
 
3457
sed 's/^/| /' conftest.$ac_ext >&5
 
3458
 
 
3459
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3460
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3461
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3462
See \`config.log' for more details" "$LINENO" 5; }
 
3463
fi
 
3464
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3465
fi
 
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3467
$as_echo "$ac_cv_objext" >&6; }
 
3468
OBJEXT=$ac_cv_objext
 
3469
ac_objext=$OBJEXT
 
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3471
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3472
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3473
  $as_echo_n "(cached) " >&6
 
3474
else
 
3475
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3476
/* end confdefs.h.  */
 
3477
 
 
3478
int
 
3479
main ()
 
3480
{
 
3481
#ifndef __GNUC__
 
3482
       choke me
 
3483
#endif
 
3484
 
 
3485
  ;
 
3486
  return 0;
 
3487
}
 
3488
_ACEOF
 
3489
if ac_fn_c_try_compile "$LINENO"; then :
 
3490
  ac_compiler_gnu=yes
 
3491
else
 
3492
  ac_compiler_gnu=no
 
3493
fi
 
3494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3495
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3496
 
 
3497
fi
 
3498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3499
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3500
if test $ac_compiler_gnu = yes; then
 
3501
  GCC=yes
 
3502
else
 
3503
  GCC=
 
3504
fi
 
3505
ac_test_CFLAGS=${CFLAGS+set}
 
3506
ac_save_CFLAGS=$CFLAGS
 
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3508
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3509
if ${ac_cv_prog_cc_g+:} false; then :
 
3510
  $as_echo_n "(cached) " >&6
 
3511
else
 
3512
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3513
   ac_c_werror_flag=yes
 
3514
   ac_cv_prog_cc_g=no
 
3515
   CFLAGS="-g"
 
3516
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3517
/* end confdefs.h.  */
 
3518
 
 
3519
int
 
3520
main ()
 
3521
{
 
3522
 
 
3523
  ;
 
3524
  return 0;
 
3525
}
 
3526
_ACEOF
 
3527
if ac_fn_c_try_compile "$LINENO"; then :
 
3528
  ac_cv_prog_cc_g=yes
 
3529
else
 
3530
  CFLAGS=""
 
3531
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3532
/* end confdefs.h.  */
 
3533
 
 
3534
int
 
3535
main ()
 
3536
{
 
3537
 
 
3538
  ;
 
3539
  return 0;
 
3540
}
 
3541
_ACEOF
 
3542
if ac_fn_c_try_compile "$LINENO"; then :
 
3543
 
 
3544
else
 
3545
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3546
         CFLAGS="-g"
 
3547
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3548
/* end confdefs.h.  */
 
3549
 
 
3550
int
 
3551
main ()
 
3552
{
 
3553
 
 
3554
  ;
 
3555
  return 0;
 
3556
}
 
3557
_ACEOF
 
3558
if ac_fn_c_try_compile "$LINENO"; then :
 
3559
  ac_cv_prog_cc_g=yes
 
3560
fi
 
3561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3562
fi
 
3563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3564
fi
 
3565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3566
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3567
fi
 
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3569
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3570
if test "$ac_test_CFLAGS" = set; then
 
3571
  CFLAGS=$ac_save_CFLAGS
 
3572
elif test $ac_cv_prog_cc_g = yes; then
 
3573
  if test "$GCC" = yes; then
 
3574
    CFLAGS="-g -O2"
 
3575
  else
 
3576
    CFLAGS="-g"
 
3577
  fi
 
3578
else
 
3579
  if test "$GCC" = yes; then
 
3580
    CFLAGS="-O2"
 
3581
  else
 
3582
    CFLAGS=
 
3583
  fi
 
3584
fi
 
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3586
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3587
if ${ac_cv_prog_cc_c89+:} false; then :
 
3588
  $as_echo_n "(cached) " >&6
 
3589
else
 
3590
  ac_cv_prog_cc_c89=no
 
3591
ac_save_CC=$CC
 
3592
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3593
/* end confdefs.h.  */
 
3594
#include <stdarg.h>
 
3595
#include <stdio.h>
 
3596
struct stat;
 
3597
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3598
struct buf { int x; };
 
3599
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3600
static char *e (p, i)
 
3601
     char **p;
 
3602
     int i;
 
3603
{
 
3604
  return p[i];
 
3605
}
 
3606
static char *f (char * (*g) (char **, int), char **p, ...)
 
3607
{
 
3608
  char *s;
 
3609
  va_list v;
 
3610
  va_start (v,p);
 
3611
  s = g (p, va_arg (v,int));
 
3612
  va_end (v);
 
3613
  return s;
 
3614
}
 
3615
 
 
3616
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3617
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3618
   These don't provoke an error unfortunately, instead are silently treated
 
3619
   as 'x'.  The following induces an error, until -std is added to get
 
3620
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3621
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3622
   that's true only with -std.  */
 
3623
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3624
 
 
3625
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3626
   inside strings and character constants.  */
 
3627
#define FOO(x) 'x'
 
3628
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3629
 
 
3630
int test (int i, double x);
 
3631
struct s1 {int (*f) (int a);};
 
3632
struct s2 {int (*f) (double a);};
 
3633
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3634
int argc;
 
3635
char **argv;
 
3636
int
 
3637
main ()
 
3638
{
 
3639
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3640
  ;
 
3641
  return 0;
 
3642
}
 
3643
_ACEOF
 
3644
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3645
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3646
do
 
3647
  CC="$ac_save_CC $ac_arg"
 
3648
  if ac_fn_c_try_compile "$LINENO"; then :
 
3649
  ac_cv_prog_cc_c89=$ac_arg
 
3650
fi
 
3651
rm -f core conftest.err conftest.$ac_objext
 
3652
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3653
done
 
3654
rm -f conftest.$ac_ext
 
3655
CC=$ac_save_CC
 
3656
 
 
3657
fi
 
3658
# AC_CACHE_VAL
 
3659
case "x$ac_cv_prog_cc_c89" in
 
3660
  x)
 
3661
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3662
$as_echo "none needed" >&6; } ;;
 
3663
  xno)
 
3664
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3665
$as_echo "unsupported" >&6; } ;;
 
3666
  *)
 
3667
    CC="$CC $ac_cv_prog_cc_c89"
 
3668
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3669
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3670
esac
 
3671
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3672
 
 
3673
fi
 
3674
 
 
3675
ac_ext=c
 
3676
ac_cpp='$CPP $CPPFLAGS'
 
3677
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3678
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3679
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3680
 
 
3681
depcc="$CC"   am_compiler_list=
 
3682
 
 
3683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3684
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3685
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3686
  $as_echo_n "(cached) " >&6
 
3687
else
 
3688
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3689
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3690
  # making bogus files that we don't know about and never remove.  For
 
3691
  # instance it was reported that on HP-UX the gcc test will end up
 
3692
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3693
  # in D".
 
3694
  rm -rf conftest.dir
 
3695
  mkdir conftest.dir
 
3696
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3697
  # using a relative directory.
 
3698
  cp "$am_depcomp" conftest.dir
 
3699
  cd conftest.dir
 
3700
  # We will build objects and dependencies in a subdirectory because
 
3701
  # it helps to detect inapplicable dependency modes.  For instance
 
3702
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3703
  # side effect of compilation, but ICC will put the dependencies in
 
3704
  # the current directory while Tru64 will put them in the object
 
3705
  # directory.
 
3706
  mkdir sub
 
3707
 
 
3708
  am_cv_CC_dependencies_compiler_type=none
 
3709
  if test "$am_compiler_list" = ""; then
 
3710
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3711
  fi
 
3712
  am__universal=false
 
3713
  case " $depcc " in #(
 
3714
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3715
     esac
 
3716
 
 
3717
  for depmode in $am_compiler_list; do
 
3718
    # Setup a source with many dependencies, because some compilers
 
3719
    # like to wrap large dependency lists on column 80 (with \), and
 
3720
    # we should not choose a depcomp mode which is confused by this.
 
3721
    #
 
3722
    # We need to recreate these files for each test, as the compiler may
 
3723
    # overwrite some of them when testing with obscure command lines.
 
3724
    # This happens at least with the AIX C compiler.
 
3725
    : > sub/conftest.c
 
3726
    for i in 1 2 3 4 5 6; do
 
3727
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3728
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3729
      # Solaris 10 /bin/sh.
 
3730
      echo '/* dummy */' > sub/conftst$i.h
 
3731
    done
 
3732
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3733
 
 
3734
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
3735
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3736
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3737
    # versions had trouble with output in subdirs.
 
3738
    am__obj=sub/conftest.${OBJEXT-o}
 
3739
    am__minus_obj="-o $am__obj"
 
3740
    case $depmode in
 
3741
    gcc)
 
3742
      # This depmode causes a compiler race in universal mode.
 
3743
      test "$am__universal" = false || continue
 
3744
      ;;
 
3745
    nosideeffect)
 
3746
      # After this tag, mechanisms are not by side-effect, so they'll
 
3747
      # only be used when explicitly requested.
 
3748
      if test "x$enable_dependency_tracking" = xyes; then
 
3749
        continue
 
3750
      else
 
3751
        break
 
3752
      fi
 
3753
      ;;
 
3754
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3755
      # This compiler won't grok '-c -o', but also, the minuso test has
 
3756
      # not run yet.  These depmodes are late enough in the game, and
 
3757
      # so weak that their functioning should not be impacted.
 
3758
      am__obj=conftest.${OBJEXT-o}
 
3759
      am__minus_obj=
 
3760
      ;;
 
3761
    none) break ;;
 
3762
    esac
 
3763
    if depmode=$depmode \
 
3764
       source=sub/conftest.c object=$am__obj \
 
3765
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3766
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3767
         >/dev/null 2>conftest.err &&
 
3768
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3769
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3770
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3771
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3772
      # icc doesn't choke on unknown options, it will just issue warnings
 
3773
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3774
      # that says an option was ignored or not supported.
 
3775
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3776
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3777
      # The diagnosis changed in icc 8.0:
 
3778
      #   icc: Command line remark: option '-MP' not supported
 
3779
      if (grep 'ignoring option' conftest.err ||
 
3780
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3781
        am_cv_CC_dependencies_compiler_type=$depmode
 
3782
        break
 
3783
      fi
 
3784
    fi
 
3785
  done
 
3786
 
 
3787
  cd ..
 
3788
  rm -rf conftest.dir
 
3789
else
 
3790
  am_cv_CC_dependencies_compiler_type=none
 
3791
fi
 
3792
 
 
3793
fi
 
3794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3795
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3796
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3797
 
 
3798
 if
 
3799
  test "x$enable_dependency_tracking" != xno \
 
3800
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3801
  am__fastdepCC_TRUE=
 
3802
  am__fastdepCC_FALSE='#'
 
3803
else
 
3804
  am__fastdepCC_TRUE='#'
 
3805
  am__fastdepCC_FALSE=
 
3806
fi
 
3807
 
 
3808
 
 
3809
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 
3810
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
3811
if ${ac_cv_prog_cc_c99+:} false; then :
 
3812
  $as_echo_n "(cached) " >&6
 
3813
else
 
3814
  ac_cv_prog_cc_c99=no
 
3815
ac_save_CC=$CC
 
3816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3817
/* end confdefs.h.  */
 
3818
#include <stdarg.h>
 
3819
#include <stdbool.h>
 
3820
#include <stdlib.h>
 
3821
#include <wchar.h>
 
3822
#include <stdio.h>
 
3823
 
 
3824
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
3825
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
3826
#define showlist(...) puts (#__VA_ARGS__)
 
3827
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
3828
static void
 
3829
test_varargs_macros (void)
 
3830
{
 
3831
  int x = 1234;
 
3832
  int y = 5678;
 
3833
  debug ("Flag");
 
3834
  debug ("X = %d\n", x);
 
3835
  showlist (The first, second, and third items.);
 
3836
  report (x>y, "x is %d but y is %d", x, y);
 
3837
}
 
3838
 
 
3839
// Check long long types.
 
3840
#define BIG64 18446744073709551615ull
 
3841
#define BIG32 4294967295ul
 
3842
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
3843
#if !BIG_OK
 
3844
  your preprocessor is broken;
 
3845
#endif
 
3846
#if BIG_OK
 
3847
#else
 
3848
  your preprocessor is broken;
 
3849
#endif
 
3850
static long long int bignum = -9223372036854775807LL;
 
3851
static unsigned long long int ubignum = BIG64;
 
3852
 
 
3853
struct incomplete_array
 
3854
{
 
3855
  int datasize;
 
3856
  double data[];
 
3857
};
 
3858
 
 
3859
struct named_init {
 
3860
  int number;
 
3861
  const wchar_t *name;
 
3862
  double average;
 
3863
};
 
3864
 
 
3865
typedef const char *ccp;
 
3866
 
 
3867
static inline int
 
3868
test_restrict (ccp restrict text)
 
3869
{
 
3870
  // See if C++-style comments work.
 
3871
  // Iterate through items via the restricted pointer.
 
3872
  // Also check for declarations in for loops.
 
3873
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
3874
    continue;
 
3875
  return 0;
 
3876
}
 
3877
 
 
3878
// Check varargs and va_copy.
 
3879
static void
 
3880
test_varargs (const char *format, ...)
 
3881
{
 
3882
  va_list args;
 
3883
  va_start (args, format);
 
3884
  va_list args_copy;
 
3885
  va_copy (args_copy, args);
 
3886
 
 
3887
  const char *str;
 
3888
  int number;
 
3889
  float fnumber;
 
3890
 
 
3891
  while (*format)
 
3892
    {
 
3893
      switch (*format++)
 
3894
        {
 
3895
        case 's': // string
 
3896
          str = va_arg (args_copy, const char *);
 
3897
          break;
 
3898
        case 'd': // int
 
3899
          number = va_arg (args_copy, int);
 
3900
          break;
 
3901
        case 'f': // float
 
3902
          fnumber = va_arg (args_copy, double);
 
3903
          break;
 
3904
        default:
 
3905
          break;
 
3906
        }
 
3907
    }
 
3908
  va_end (args_copy);
 
3909
  va_end (args);
 
3910
}
 
3911
 
 
3912
int
 
3913
main ()
 
3914
{
 
3915
 
 
3916
  // Check bool.
 
3917
  _Bool success = false;
 
3918
 
 
3919
  // Check restrict.
 
3920
  if (test_restrict ("String literal") == 0)
 
3921
    success = true;
 
3922
  char *restrict newvar = "Another string";
 
3923
 
 
3924
  // Check varargs.
 
3925
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
3926
  test_varargs_macros ();
 
3927
 
 
3928
  // Check flexible array members.
 
3929
  struct incomplete_array *ia =
 
3930
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
3931
  ia->datasize = 10;
 
3932
  for (int i = 0; i < ia->datasize; ++i)
 
3933
    ia->data[i] = i * 1.234;
 
3934
 
 
3935
  // Check named initializers.
 
3936
  struct named_init ni = {
 
3937
    .number = 34,
 
3938
    .name = L"Test wide string",
 
3939
    .average = 543.34343,
 
3940
  };
 
3941
 
 
3942
  ni.number = 58;
 
3943
 
 
3944
  int dynamic_array[ni.number];
 
3945
  dynamic_array[ni.number - 1] = 543;
 
3946
 
 
3947
  // work around unused variable warnings
 
3948
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
3949
          || dynamic_array[ni.number - 1] != 543);
 
3950
 
 
3951
  ;
 
3952
  return 0;
 
3953
}
 
3954
_ACEOF
 
3955
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
 
3956
do
 
3957
  CC="$ac_save_CC $ac_arg"
 
3958
  if ac_fn_c_try_compile "$LINENO"; then :
 
3959
  ac_cv_prog_cc_c99=$ac_arg
 
3960
fi
 
3961
rm -f core conftest.err conftest.$ac_objext
 
3962
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
3963
done
 
3964
rm -f conftest.$ac_ext
 
3965
CC=$ac_save_CC
 
3966
 
 
3967
fi
 
3968
# AC_CACHE_VAL
 
3969
case "x$ac_cv_prog_cc_c99" in
 
3970
  x)
 
3971
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3972
$as_echo "none needed" >&6; } ;;
 
3973
  xno)
 
3974
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3975
$as_echo "unsupported" >&6; } ;;
 
3976
  *)
 
3977
    CC="$CC $ac_cv_prog_cc_c99"
 
3978
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
3979
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
3980
esac
 
3981
if test "x$ac_cv_prog_cc_c99" != xno; then :
 
3982
 
 
3983
fi
 
3984
 
 
3985
 
 
3986
 
 
3987
ac_ext=c
 
3988
ac_cpp='$CPP $CPPFLAGS'
 
3989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3993
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3994
# On Suns, sometimes $CPP names a directory.
 
3995
if test -n "$CPP" && test -d "$CPP"; then
 
3996
  CPP=
 
3997
fi
 
3998
if test -z "$CPP"; then
 
3999
  if ${ac_cv_prog_CPP+:} false; then :
 
4000
  $as_echo_n "(cached) " >&6
 
4001
else
 
4002
      # Double quotes because CPP needs to be expanded
 
4003
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4004
    do
 
4005
      ac_preproc_ok=false
 
4006
for ac_c_preproc_warn_flag in '' yes
 
4007
do
 
4008
  # Use a header file that comes with gcc, so configuring glibc
 
4009
  # with a fresh cross-compiler works.
 
4010
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4011
  # <limits.h> exists even on freestanding compilers.
 
4012
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4013
  # not just through cpp. "Syntax error" is here to catch this case.
 
4014
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4015
/* end confdefs.h.  */
 
4016
#ifdef __STDC__
 
4017
# include <limits.h>
 
4018
#else
 
4019
# include <assert.h>
 
4020
#endif
 
4021
                     Syntax error
 
4022
_ACEOF
 
4023
if ac_fn_c_try_cpp "$LINENO"; then :
 
4024
 
 
4025
else
 
4026
  # Broken: fails on valid input.
 
4027
continue
 
4028
fi
 
4029
rm -f conftest.err conftest.i conftest.$ac_ext
 
4030
 
 
4031
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4032
  # can be detected and how.
 
4033
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4034
/* end confdefs.h.  */
 
4035
#include <ac_nonexistent.h>
 
4036
_ACEOF
 
4037
if ac_fn_c_try_cpp "$LINENO"; then :
 
4038
  # Broken: success on invalid input.
 
4039
continue
 
4040
else
 
4041
  # Passes both tests.
 
4042
ac_preproc_ok=:
 
4043
break
 
4044
fi
 
4045
rm -f conftest.err conftest.i conftest.$ac_ext
 
4046
 
 
4047
done
 
4048
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4049
rm -f conftest.i conftest.err conftest.$ac_ext
 
4050
if $ac_preproc_ok; then :
 
4051
  break
 
4052
fi
 
4053
 
 
4054
    done
 
4055
    ac_cv_prog_CPP=$CPP
 
4056
 
 
4057
fi
 
4058
  CPP=$ac_cv_prog_CPP
 
4059
else
 
4060
  ac_cv_prog_CPP=$CPP
 
4061
fi
 
4062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4063
$as_echo "$CPP" >&6; }
 
4064
ac_preproc_ok=false
 
4065
for ac_c_preproc_warn_flag in '' yes
 
4066
do
 
4067
  # Use a header file that comes with gcc, so configuring glibc
 
4068
  # with a fresh cross-compiler works.
 
4069
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4070
  # <limits.h> exists even on freestanding compilers.
 
4071
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4072
  # not just through cpp. "Syntax error" is here to catch this case.
 
4073
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4074
/* end confdefs.h.  */
 
4075
#ifdef __STDC__
 
4076
# include <limits.h>
 
4077
#else
 
4078
# include <assert.h>
 
4079
#endif
 
4080
                     Syntax error
 
4081
_ACEOF
 
4082
if ac_fn_c_try_cpp "$LINENO"; then :
 
4083
 
 
4084
else
 
4085
  # Broken: fails on valid input.
 
4086
continue
 
4087
fi
 
4088
rm -f conftest.err conftest.i conftest.$ac_ext
 
4089
 
 
4090
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4091
  # can be detected and how.
 
4092
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4093
/* end confdefs.h.  */
 
4094
#include <ac_nonexistent.h>
 
4095
_ACEOF
 
4096
if ac_fn_c_try_cpp "$LINENO"; then :
 
4097
  # Broken: success on invalid input.
 
4098
continue
 
4099
else
 
4100
  # Passes both tests.
 
4101
ac_preproc_ok=:
 
4102
break
 
4103
fi
 
4104
rm -f conftest.err conftest.i conftest.$ac_ext
 
4105
 
 
4106
done
 
4107
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4108
rm -f conftest.i conftest.err conftest.$ac_ext
 
4109
if $ac_preproc_ok; then :
 
4110
 
 
4111
else
 
4112
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4113
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4114
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4115
See \`config.log' for more details" "$LINENO" 5; }
 
4116
fi
 
4117
 
 
4118
ac_ext=c
 
4119
ac_cpp='$CPP $CPPFLAGS'
 
4120
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4121
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4123
 
 
4124
 
 
4125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4126
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4127
if ${ac_cv_path_GREP+:} false; then :
 
4128
  $as_echo_n "(cached) " >&6
 
4129
else
 
4130
  if test -z "$GREP"; then
 
4131
  ac_path_GREP_found=false
 
4132
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4133
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4134
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4135
do
 
4136
  IFS=$as_save_IFS
 
4137
  test -z "$as_dir" && as_dir=.
 
4138
    for ac_prog in grep ggrep; do
 
4139
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4140
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4141
      as_fn_executable_p "$ac_path_GREP" || continue
 
4142
# Check for GNU ac_path_GREP and select it if it is found.
 
4143
  # Check for GNU $ac_path_GREP
 
4144
case `"$ac_path_GREP" --version 2>&1` in
 
4145
*GNU*)
 
4146
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4147
*)
 
4148
  ac_count=0
 
4149
  $as_echo_n 0123456789 >"conftest.in"
 
4150
  while :
 
4151
  do
 
4152
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4153
    mv "conftest.tmp" "conftest.in"
 
4154
    cp "conftest.in" "conftest.nl"
 
4155
    $as_echo 'GREP' >> "conftest.nl"
 
4156
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4157
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4158
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4159
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4160
      # Best one so far, save it but keep looking for a better one
 
4161
      ac_cv_path_GREP="$ac_path_GREP"
 
4162
      ac_path_GREP_max=$ac_count
 
4163
    fi
 
4164
    # 10*(2^10) chars as input seems more than enough
 
4165
    test $ac_count -gt 10 && break
 
4166
  done
 
4167
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4168
esac
 
4169
 
 
4170
      $ac_path_GREP_found && break 3
 
4171
    done
 
4172
  done
 
4173
  done
 
4174
IFS=$as_save_IFS
 
4175
  if test -z "$ac_cv_path_GREP"; then
 
4176
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4177
  fi
 
4178
else
 
4179
  ac_cv_path_GREP=$GREP
 
4180
fi
 
4181
 
 
4182
fi
 
4183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4184
$as_echo "$ac_cv_path_GREP" >&6; }
 
4185
 GREP="$ac_cv_path_GREP"
 
4186
 
 
4187
 
 
4188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4189
$as_echo_n "checking for egrep... " >&6; }
 
4190
if ${ac_cv_path_EGREP+:} false; then :
 
4191
  $as_echo_n "(cached) " >&6
 
4192
else
 
4193
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4194
   then ac_cv_path_EGREP="$GREP -E"
 
4195
   else
 
4196
     if test -z "$EGREP"; then
 
4197
  ac_path_EGREP_found=false
 
4198
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4199
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4200
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4201
do
 
4202
  IFS=$as_save_IFS
 
4203
  test -z "$as_dir" && as_dir=.
 
4204
    for ac_prog in egrep; do
 
4205
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4206
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4207
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4208
# Check for GNU ac_path_EGREP and select it if it is found.
 
4209
  # Check for GNU $ac_path_EGREP
 
4210
case `"$ac_path_EGREP" --version 2>&1` in
 
4211
*GNU*)
 
4212
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4213
*)
 
4214
  ac_count=0
 
4215
  $as_echo_n 0123456789 >"conftest.in"
 
4216
  while :
 
4217
  do
 
4218
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4219
    mv "conftest.tmp" "conftest.in"
 
4220
    cp "conftest.in" "conftest.nl"
 
4221
    $as_echo 'EGREP' >> "conftest.nl"
 
4222
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4223
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4224
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4225
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4226
      # Best one so far, save it but keep looking for a better one
 
4227
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4228
      ac_path_EGREP_max=$ac_count
 
4229
    fi
 
4230
    # 10*(2^10) chars as input seems more than enough
 
4231
    test $ac_count -gt 10 && break
 
4232
  done
 
4233
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4234
esac
 
4235
 
 
4236
      $ac_path_EGREP_found && break 3
 
4237
    done
 
4238
  done
 
4239
  done
 
4240
IFS=$as_save_IFS
 
4241
  if test -z "$ac_cv_path_EGREP"; then
 
4242
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4243
  fi
 
4244
else
 
4245
  ac_cv_path_EGREP=$EGREP
 
4246
fi
 
4247
 
 
4248
   fi
 
4249
fi
 
4250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4251
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4252
 EGREP="$ac_cv_path_EGREP"
 
4253
 
 
4254
 
 
4255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4256
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4257
if ${ac_cv_header_stdc+:} false; then :
 
4258
  $as_echo_n "(cached) " >&6
 
4259
else
 
4260
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4261
/* end confdefs.h.  */
 
4262
#include <stdlib.h>
 
4263
#include <stdarg.h>
 
4264
#include <string.h>
 
4265
#include <float.h>
 
4266
 
 
4267
int
 
4268
main ()
 
4269
{
 
4270
 
 
4271
  ;
 
4272
  return 0;
 
4273
}
 
4274
_ACEOF
 
4275
if ac_fn_c_try_compile "$LINENO"; then :
 
4276
  ac_cv_header_stdc=yes
 
4277
else
 
4278
  ac_cv_header_stdc=no
 
4279
fi
 
4280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4281
 
 
4282
if test $ac_cv_header_stdc = yes; then
 
4283
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4284
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4285
/* end confdefs.h.  */
 
4286
#include <string.h>
 
4287
 
 
4288
_ACEOF
 
4289
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4290
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4291
 
 
4292
else
 
4293
  ac_cv_header_stdc=no
 
4294
fi
 
4295
rm -f conftest*
 
4296
 
 
4297
fi
 
4298
 
 
4299
if test $ac_cv_header_stdc = yes; then
 
4300
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4301
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4302
/* end confdefs.h.  */
 
4303
#include <stdlib.h>
 
4304
 
 
4305
_ACEOF
 
4306
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4307
  $EGREP "free" >/dev/null 2>&1; then :
 
4308
 
 
4309
else
 
4310
  ac_cv_header_stdc=no
 
4311
fi
 
4312
rm -f conftest*
 
4313
 
 
4314
fi
 
4315
 
 
4316
if test $ac_cv_header_stdc = yes; then
 
4317
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4318
  if test "$cross_compiling" = yes; then :
 
4319
  :
 
4320
else
 
4321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4322
/* end confdefs.h.  */
 
4323
#include <ctype.h>
 
4324
#include <stdlib.h>
 
4325
#if ((' ' & 0x0FF) == 0x020)
 
4326
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4327
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4328
#else
 
4329
# define ISLOWER(c) \
 
4330
                   (('a' <= (c) && (c) <= 'i') \
 
4331
                     || ('j' <= (c) && (c) <= 'r') \
 
4332
                     || ('s' <= (c) && (c) <= 'z'))
 
4333
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4334
#endif
 
4335
 
 
4336
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4337
int
 
4338
main ()
 
4339
{
 
4340
  int i;
 
4341
  for (i = 0; i < 256; i++)
 
4342
    if (XOR (islower (i), ISLOWER (i))
 
4343
        || toupper (i) != TOUPPER (i))
 
4344
      return 2;
 
4345
  return 0;
 
4346
}
 
4347
_ACEOF
 
4348
if ac_fn_c_try_run "$LINENO"; then :
 
4349
 
 
4350
else
 
4351
  ac_cv_header_stdc=no
 
4352
fi
 
4353
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4354
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4355
fi
 
4356
 
 
4357
fi
 
4358
fi
 
4359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4360
$as_echo "$ac_cv_header_stdc" >&6; }
 
4361
if test $ac_cv_header_stdc = yes; then
 
4362
 
 
4363
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4364
 
 
4365
fi
 
4366
 
 
4367
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4368
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4369
                  inttypes.h stdint.h unistd.h
 
4370
do :
 
4371
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4372
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4373
"
 
4374
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4375
  cat >>confdefs.h <<_ACEOF
 
4376
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4377
_ACEOF
 
4378
 
 
4379
fi
 
4380
 
 
4381
done
 
4382
 
 
4383
 
 
4384
 
 
4385
 
 
4386
 
 
4387
 
 
4388
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
 
4389
if test "x$ac_cv_have_decl___clang__" = xyes; then :
 
4390
  CLANGCC="yes"
 
4391
else
 
4392
  CLANGCC="no"
 
4393
fi
 
4394
 
 
4395
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
 
4396
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
 
4397
  INTELCC="yes"
 
4398
else
 
4399
  INTELCC="no"
 
4400
fi
 
4401
 
 
4402
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
 
4403
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
 
4404
  SUNCC="yes"
 
4405
else
 
4406
  SUNCC="no"
 
4407
fi
 
4408
 
 
4409
 
 
4410
 
 
4411
 
 
4412
 
 
4413
 
 
4414
 
 
4415
 
 
4416
 
 
4417
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
4418
        if test -n "$ac_tool_prefix"; then
 
4419
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
4420
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4422
$as_echo_n "checking for $ac_word... " >&6; }
 
4423
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
4424
  $as_echo_n "(cached) " >&6
 
4425
else
 
4426
  case $PKG_CONFIG in
 
4427
  [\\/]* | ?:[\\/]*)
 
4428
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
4429
  ;;
 
4430
  *)
 
4431
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4432
for as_dir in $PATH
 
4433
do
 
4434
  IFS=$as_save_IFS
 
4435
  test -z "$as_dir" && as_dir=.
 
4436
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4437
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4438
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4439
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4440
    break 2
 
4441
  fi
 
4442
done
 
4443
  done
 
4444
IFS=$as_save_IFS
 
4445
 
 
4446
  ;;
 
4447
esac
 
4448
fi
 
4449
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
4450
if test -n "$PKG_CONFIG"; then
 
4451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
4452
$as_echo "$PKG_CONFIG" >&6; }
 
4453
else
 
4454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4455
$as_echo "no" >&6; }
 
4456
fi
 
4457
 
 
4458
 
 
4459
fi
 
4460
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
4461
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
4462
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
4463
set dummy pkg-config; ac_word=$2
 
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4465
$as_echo_n "checking for $ac_word... " >&6; }
 
4466
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
4467
  $as_echo_n "(cached) " >&6
 
4468
else
 
4469
  case $ac_pt_PKG_CONFIG in
 
4470
  [\\/]* | ?:[\\/]*)
 
4471
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
4472
  ;;
 
4473
  *)
 
4474
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4475
for as_dir in $PATH
 
4476
do
 
4477
  IFS=$as_save_IFS
 
4478
  test -z "$as_dir" && as_dir=.
 
4479
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4480
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4481
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4483
    break 2
 
4484
  fi
 
4485
done
 
4486
  done
 
4487
IFS=$as_save_IFS
 
4488
 
 
4489
  ;;
 
4490
esac
 
4491
fi
 
4492
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
4493
if test -n "$ac_pt_PKG_CONFIG"; then
 
4494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
4495
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
4496
else
 
4497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4498
$as_echo "no" >&6; }
 
4499
fi
 
4500
 
 
4501
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
4502
    PKG_CONFIG=""
 
4503
  else
 
4504
    case $cross_compiling:$ac_tool_warned in
 
4505
yes:)
 
4506
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4507
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4508
ac_tool_warned=yes ;;
 
4509
esac
 
4510
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
4511
  fi
 
4512
else
 
4513
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
4514
fi
 
4515
 
 
4516
fi
 
4517
if test -n "$PKG_CONFIG"; then
 
4518
        _pkg_min_version=0.9.0
 
4519
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
4520
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
4521
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
4522
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4523
$as_echo "yes" >&6; }
 
4524
        else
 
4525
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4526
$as_echo "no" >&6; }
 
4527
                PKG_CONFIG=""
 
4528
        fi
 
4529
fi
 
4530
# Make sure we can run config.sub.
 
4531
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4532
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4533
 
 
4534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4535
$as_echo_n "checking build system type... " >&6; }
 
4536
if ${ac_cv_build+:} false; then :
 
4537
  $as_echo_n "(cached) " >&6
 
4538
else
 
4539
  ac_build_alias=$build_alias
 
4540
test "x$ac_build_alias" = x &&
 
4541
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4542
test "x$ac_build_alias" = x &&
 
4543
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4544
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4545
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4546
 
 
4547
fi
 
4548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4549
$as_echo "$ac_cv_build" >&6; }
 
4550
case $ac_cv_build in
 
4551
*-*-*) ;;
 
4552
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4553
esac
 
4554
build=$ac_cv_build
 
4555
ac_save_IFS=$IFS; IFS='-'
 
4556
set x $ac_cv_build
 
4557
shift
 
4558
build_cpu=$1
 
4559
build_vendor=$2
 
4560
shift; shift
 
4561
# Remember, the first character of IFS is used to create $*,
 
4562
# except with old shells:
 
4563
build_os=$*
 
4564
IFS=$ac_save_IFS
 
4565
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4566
 
 
4567
 
 
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4569
$as_echo_n "checking host system type... " >&6; }
 
4570
if ${ac_cv_host+:} false; then :
 
4571
  $as_echo_n "(cached) " >&6
 
4572
else
 
4573
  if test "x$host_alias" = x; then
 
4574
  ac_cv_host=$ac_cv_build
 
4575
else
 
4576
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4577
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4578
fi
 
4579
 
 
4580
fi
 
4581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4582
$as_echo "$ac_cv_host" >&6; }
 
4583
case $ac_cv_host in
 
4584
*-*-*) ;;
 
4585
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4586
esac
 
4587
host=$ac_cv_host
 
4588
ac_save_IFS=$IFS; IFS='-'
 
4589
set x $ac_cv_host
 
4590
shift
 
4591
host_cpu=$1
 
4592
host_vendor=$2
 
4593
shift; shift
 
4594
# Remember, the first character of IFS is used to create $*,
 
4595
# except with old shells:
 
4596
host_os=$*
 
4597
IFS=$ac_save_IFS
 
4598
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4599
 
 
4600
 
 
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4602
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4603
if ${ac_cv_path_SED+:} false; then :
 
4604
  $as_echo_n "(cached) " >&6
 
4605
else
 
4606
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4607
     for ac_i in 1 2 3 4 5 6 7; do
 
4608
       ac_script="$ac_script$as_nl$ac_script"
 
4609
     done
 
4610
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4611
     { ac_script=; unset ac_script;}
 
4612
     if test -z "$SED"; then
 
4613
  ac_path_SED_found=false
 
4614
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4615
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4616
for as_dir in $PATH
 
4617
do
 
4618
  IFS=$as_save_IFS
 
4619
  test -z "$as_dir" && as_dir=.
 
4620
    for ac_prog in sed gsed; do
 
4621
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4622
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4623
      as_fn_executable_p "$ac_path_SED" || continue
 
4624
# Check for GNU ac_path_SED and select it if it is found.
 
4625
  # Check for GNU $ac_path_SED
 
4626
case `"$ac_path_SED" --version 2>&1` in
 
4627
*GNU*)
 
4628
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4629
*)
 
4630
  ac_count=0
 
4631
  $as_echo_n 0123456789 >"conftest.in"
 
4632
  while :
 
4633
  do
 
4634
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4635
    mv "conftest.tmp" "conftest.in"
 
4636
    cp "conftest.in" "conftest.nl"
 
4637
    $as_echo '' >> "conftest.nl"
 
4638
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4639
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4640
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4641
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4642
      # Best one so far, save it but keep looking for a better one
 
4643
      ac_cv_path_SED="$ac_path_SED"
 
4644
      ac_path_SED_max=$ac_count
 
4645
    fi
 
4646
    # 10*(2^10) chars as input seems more than enough
 
4647
    test $ac_count -gt 10 && break
 
4648
  done
 
4649
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4650
esac
 
4651
 
 
4652
      $ac_path_SED_found && break 3
 
4653
    done
 
4654
  done
 
4655
  done
 
4656
IFS=$as_save_IFS
 
4657
  if test -z "$ac_cv_path_SED"; then
 
4658
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4659
  fi
 
4660
else
 
4661
  ac_cv_path_SED=$SED
 
4662
fi
 
4663
 
 
4664
fi
 
4665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4666
$as_echo "$ac_cv_path_SED" >&6; }
 
4667
 SED="$ac_cv_path_SED"
 
4668
  rm -f conftest.sed
 
4669
 
 
4670
 
 
4671
 
 
4672
 
 
4673
 
 
4674
 
 
4675
# Check whether --enable-selective-werror was given.
 
4676
if test "${enable_selective_werror+set}" = set; then :
 
4677
  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
 
4678
else
 
4679
  SELECTIVE_WERROR=yes
 
4680
fi
 
4681
 
 
4682
 
 
4683
 
 
4684
 
 
4685
 
 
4686
# -v is too short to test reliably with XORG_TESTSET_CFLAG
 
4687
if test "x$SUNCC" = "xyes"; then
 
4688
    BASE_CFLAGS="-v"
 
4689
else
 
4690
    BASE_CFLAGS=""
 
4691
fi
 
4692
 
 
4693
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
 
4694
 
 
4695
 
 
4696
 
 
4697
 
 
4698
 
 
4699
 
 
4700
 
 
4701
 
 
4702
 
 
4703
 
 
4704
 
 
4705
 
 
4706
 
 
4707
xorg_testset_save_CFLAGS="$CFLAGS"
 
4708
 
 
4709
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
4710
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4711
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4712
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4713
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
4714
  $as_echo_n "(cached) " >&6
 
4715
else
 
4716
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4717
/* end confdefs.h.  */
 
4718
int i;
 
4719
_ACEOF
 
4720
if ac_fn_c_try_compile "$LINENO"; then :
 
4721
  xorg_cv_cc_flag_unknown_warning_option=yes
 
4722
else
 
4723
  xorg_cv_cc_flag_unknown_warning_option=no
 
4724
fi
 
4725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4726
fi
 
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
4728
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
4729
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
4730
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4731
fi
 
4732
 
 
4733
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
4734
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
4735
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4736
        fi
 
4737
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4738
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4739
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4740
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
4741
  $as_echo_n "(cached) " >&6
 
4742
else
 
4743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4744
/* end confdefs.h.  */
 
4745
int i;
 
4746
_ACEOF
 
4747
if ac_fn_c_try_compile "$LINENO"; then :
 
4748
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
4749
else
 
4750
  xorg_cv_cc_flag_unused_command_line_argument=no
 
4751
fi
 
4752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4753
fi
 
4754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
4755
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
4756
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
4757
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4758
fi
 
4759
 
 
4760
found="no"
 
4761
 
 
4762
        if test $found = "no" ; then
 
4763
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
4764
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4765
                fi
 
4766
 
 
4767
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
4768
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4769
                fi
 
4770
 
 
4771
                CFLAGS="$CFLAGS -Wall"
 
4772
 
 
4773
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
 
4774
$as_echo_n "checking if $CC supports -Wall... " >&6; }
 
4775
                cacheid=xorg_cv_cc_flag__Wall
 
4776
                if eval \${$cacheid+:} false; then :
 
4777
  $as_echo_n "(cached) " >&6
 
4778
else
 
4779
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4780
/* end confdefs.h.  */
 
4781
int i;
 
4782
int
 
4783
main ()
 
4784
{
 
4785
 
 
4786
  ;
 
4787
  return 0;
 
4788
}
 
4789
_ACEOF
 
4790
if ac_fn_c_try_link "$LINENO"; then :
 
4791
  eval $cacheid=yes
 
4792
else
 
4793
  eval $cacheid=no
 
4794
fi
 
4795
rm -f core conftest.err conftest.$ac_objext \
 
4796
    conftest$ac_exeext conftest.$ac_ext
 
4797
fi
 
4798
 
 
4799
 
 
4800
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4801
 
 
4802
                eval supported=\$$cacheid
 
4803
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4804
$as_echo "$supported" >&6; }
 
4805
                if test "$supported" = "yes" ; then
 
4806
                        BASE_CFLAGS="$BASE_CFLAGS -Wall"
 
4807
                        found="yes"
 
4808
                fi
 
4809
        fi
 
4810
 
 
4811
 
 
4812
 
 
4813
 
 
4814
 
 
4815
 
 
4816
 
 
4817
 
 
4818
 
 
4819
 
 
4820
 
 
4821
 
 
4822
 
 
4823
 
 
4824
 
 
4825
xorg_testset_save_CFLAGS="$CFLAGS"
 
4826
 
 
4827
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
4828
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4829
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4830
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4831
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
4832
  $as_echo_n "(cached) " >&6
 
4833
else
 
4834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4835
/* end confdefs.h.  */
 
4836
int i;
 
4837
_ACEOF
 
4838
if ac_fn_c_try_compile "$LINENO"; then :
 
4839
  xorg_cv_cc_flag_unknown_warning_option=yes
 
4840
else
 
4841
  xorg_cv_cc_flag_unknown_warning_option=no
 
4842
fi
 
4843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4844
fi
 
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
4846
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
4847
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
4848
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4849
fi
 
4850
 
 
4851
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
4852
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
4853
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4854
        fi
 
4855
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4856
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4857
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4858
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
4859
  $as_echo_n "(cached) " >&6
 
4860
else
 
4861
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4862
/* end confdefs.h.  */
 
4863
int i;
 
4864
_ACEOF
 
4865
if ac_fn_c_try_compile "$LINENO"; then :
 
4866
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
4867
else
 
4868
  xorg_cv_cc_flag_unused_command_line_argument=no
 
4869
fi
 
4870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4871
fi
 
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
4873
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
4874
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
4875
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4876
fi
 
4877
 
 
4878
found="no"
 
4879
 
 
4880
        if test $found = "no" ; then
 
4881
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
4882
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4883
                fi
 
4884
 
 
4885
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
4886
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4887
                fi
 
4888
 
 
4889
                CFLAGS="$CFLAGS -Wpointer-arith"
 
4890
 
 
4891
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
 
4892
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
 
4893
                cacheid=xorg_cv_cc_flag__Wpointer_arith
 
4894
                if eval \${$cacheid+:} false; then :
 
4895
  $as_echo_n "(cached) " >&6
 
4896
else
 
4897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4898
/* end confdefs.h.  */
 
4899
int i;
 
4900
int
 
4901
main ()
 
4902
{
 
4903
 
 
4904
  ;
 
4905
  return 0;
 
4906
}
 
4907
_ACEOF
 
4908
if ac_fn_c_try_link "$LINENO"; then :
 
4909
  eval $cacheid=yes
 
4910
else
 
4911
  eval $cacheid=no
 
4912
fi
 
4913
rm -f core conftest.err conftest.$ac_objext \
 
4914
    conftest$ac_exeext conftest.$ac_ext
 
4915
fi
 
4916
 
 
4917
 
 
4918
                CFLAGS="$xorg_testset_save_CFLAGS"
 
4919
 
 
4920
                eval supported=\$$cacheid
 
4921
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
4922
$as_echo "$supported" >&6; }
 
4923
                if test "$supported" = "yes" ; then
 
4924
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
 
4925
                        found="yes"
 
4926
                fi
 
4927
        fi
 
4928
 
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
 
 
4937
 
 
4938
 
 
4939
 
 
4940
 
 
4941
 
 
4942
 
 
4943
xorg_testset_save_CFLAGS="$CFLAGS"
 
4944
 
 
4945
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
4946
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4947
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
4948
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
4949
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
4950
  $as_echo_n "(cached) " >&6
 
4951
else
 
4952
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4953
/* end confdefs.h.  */
 
4954
int i;
 
4955
_ACEOF
 
4956
if ac_fn_c_try_compile "$LINENO"; then :
 
4957
  xorg_cv_cc_flag_unknown_warning_option=yes
 
4958
else
 
4959
  xorg_cv_cc_flag_unknown_warning_option=no
 
4960
fi
 
4961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4962
fi
 
4963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
4964
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
4965
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
4966
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4967
fi
 
4968
 
 
4969
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
4970
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
4971
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
4972
        fi
 
4973
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
4974
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
4975
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
4976
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
4977
  $as_echo_n "(cached) " >&6
 
4978
else
 
4979
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4980
/* end confdefs.h.  */
 
4981
int i;
 
4982
_ACEOF
 
4983
if ac_fn_c_try_compile "$LINENO"; then :
 
4984
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
4985
else
 
4986
  xorg_cv_cc_flag_unused_command_line_argument=no
 
4987
fi
 
4988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4989
fi
 
4990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
4991
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
4992
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
4993
        CFLAGS="$xorg_testset_save_CFLAGS"
 
4994
fi
 
4995
 
 
4996
found="no"
 
4997
 
 
4998
        if test $found = "no" ; then
 
4999
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5000
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5001
                fi
 
5002
 
 
5003
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5004
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5005
                fi
 
5006
 
 
5007
                CFLAGS="$CFLAGS -Wmissing-declarations"
 
5008
 
 
5009
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
 
5010
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
 
5011
                cacheid=xorg_cv_cc_flag__Wmissing_declarations
 
5012
                if eval \${$cacheid+:} false; then :
 
5013
  $as_echo_n "(cached) " >&6
 
5014
else
 
5015
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5016
/* end confdefs.h.  */
 
5017
int i;
 
5018
int
 
5019
main ()
 
5020
{
 
5021
 
 
5022
  ;
 
5023
  return 0;
 
5024
}
 
5025
_ACEOF
 
5026
if ac_fn_c_try_link "$LINENO"; then :
 
5027
  eval $cacheid=yes
 
5028
else
 
5029
  eval $cacheid=no
 
5030
fi
 
5031
rm -f core conftest.err conftest.$ac_objext \
 
5032
    conftest$ac_exeext conftest.$ac_ext
 
5033
fi
 
5034
 
 
5035
 
 
5036
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5037
 
 
5038
                eval supported=\$$cacheid
 
5039
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5040
$as_echo "$supported" >&6; }
 
5041
                if test "$supported" = "yes" ; then
 
5042
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
 
5043
                        found="yes"
 
5044
                fi
 
5045
        fi
 
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
 
5053
 
 
5054
 
 
5055
 
 
5056
 
 
5057
 
 
5058
 
 
5059
 
 
5060
 
 
5061
xorg_testset_save_CFLAGS="$CFLAGS"
 
5062
 
 
5063
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5064
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5065
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5066
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5067
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5068
  $as_echo_n "(cached) " >&6
 
5069
else
 
5070
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5071
/* end confdefs.h.  */
 
5072
int i;
 
5073
_ACEOF
 
5074
if ac_fn_c_try_compile "$LINENO"; then :
 
5075
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5076
else
 
5077
  xorg_cv_cc_flag_unknown_warning_option=no
 
5078
fi
 
5079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5080
fi
 
5081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5082
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5083
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5084
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5085
fi
 
5086
 
 
5087
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5088
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5089
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5090
        fi
 
5091
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5092
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5093
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5094
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5095
  $as_echo_n "(cached) " >&6
 
5096
else
 
5097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5098
/* end confdefs.h.  */
 
5099
int i;
 
5100
_ACEOF
 
5101
if ac_fn_c_try_compile "$LINENO"; then :
 
5102
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5103
else
 
5104
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5105
fi
 
5106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5107
fi
 
5108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5109
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5110
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5111
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5112
fi
 
5113
 
 
5114
found="no"
 
5115
 
 
5116
        if test $found = "no" ; then
 
5117
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5118
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5119
                fi
 
5120
 
 
5121
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5122
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5123
                fi
 
5124
 
 
5125
                CFLAGS="$CFLAGS -Wformat=2"
 
5126
 
 
5127
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
 
5128
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
 
5129
                cacheid=xorg_cv_cc_flag__Wformat_2
 
5130
                if eval \${$cacheid+:} false; then :
 
5131
  $as_echo_n "(cached) " >&6
 
5132
else
 
5133
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5134
/* end confdefs.h.  */
 
5135
int i;
 
5136
int
 
5137
main ()
 
5138
{
 
5139
 
 
5140
  ;
 
5141
  return 0;
 
5142
}
 
5143
_ACEOF
 
5144
if ac_fn_c_try_link "$LINENO"; then :
 
5145
  eval $cacheid=yes
 
5146
else
 
5147
  eval $cacheid=no
 
5148
fi
 
5149
rm -f core conftest.err conftest.$ac_objext \
 
5150
    conftest$ac_exeext conftest.$ac_ext
 
5151
fi
 
5152
 
 
5153
 
 
5154
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5155
 
 
5156
                eval supported=\$$cacheid
 
5157
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5158
$as_echo "$supported" >&6; }
 
5159
                if test "$supported" = "yes" ; then
 
5160
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
 
5161
                        found="yes"
 
5162
                fi
 
5163
        fi
 
5164
 
 
5165
        if test $found = "no" ; then
 
5166
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5167
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5168
                fi
 
5169
 
 
5170
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5171
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5172
                fi
 
5173
 
 
5174
                CFLAGS="$CFLAGS -Wformat"
 
5175
 
 
5176
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
 
5177
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
 
5178
                cacheid=xorg_cv_cc_flag__Wformat
 
5179
                if eval \${$cacheid+:} false; then :
 
5180
  $as_echo_n "(cached) " >&6
 
5181
else
 
5182
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5183
/* end confdefs.h.  */
 
5184
int i;
 
5185
int
 
5186
main ()
 
5187
{
 
5188
 
 
5189
  ;
 
5190
  return 0;
 
5191
}
 
5192
_ACEOF
 
5193
if ac_fn_c_try_link "$LINENO"; then :
 
5194
  eval $cacheid=yes
 
5195
else
 
5196
  eval $cacheid=no
 
5197
fi
 
5198
rm -f core conftest.err conftest.$ac_objext \
 
5199
    conftest$ac_exeext conftest.$ac_ext
 
5200
fi
 
5201
 
 
5202
 
 
5203
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5204
 
 
5205
                eval supported=\$$cacheid
 
5206
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5207
$as_echo "$supported" >&6; }
 
5208
                if test "$supported" = "yes" ; then
 
5209
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat"
 
5210
                        found="yes"
 
5211
                fi
 
5212
        fi
 
5213
 
 
5214
 
 
5215
 
 
5216
 
 
5217
 
 
5218
 
 
5219
 
 
5220
 
 
5221
 
 
5222
 
 
5223
 
 
5224
 
 
5225
 
 
5226
 
 
5227
 
 
5228
 
 
5229
 
 
5230
xorg_testset_save_CFLAGS="$CFLAGS"
 
5231
 
 
5232
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5233
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5234
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5235
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5236
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5237
  $as_echo_n "(cached) " >&6
 
5238
else
 
5239
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5240
/* end confdefs.h.  */
 
5241
int i;
 
5242
_ACEOF
 
5243
if ac_fn_c_try_compile "$LINENO"; then :
 
5244
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5245
else
 
5246
  xorg_cv_cc_flag_unknown_warning_option=no
 
5247
fi
 
5248
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5249
fi
 
5250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5251
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5252
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5253
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5254
fi
 
5255
 
 
5256
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5257
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5258
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5259
        fi
 
5260
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5261
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5262
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5263
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5264
  $as_echo_n "(cached) " >&6
 
5265
else
 
5266
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5267
/* end confdefs.h.  */
 
5268
int i;
 
5269
_ACEOF
 
5270
if ac_fn_c_try_compile "$LINENO"; then :
 
5271
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5272
else
 
5273
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5274
fi
 
5275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5276
fi
 
5277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5278
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5279
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5280
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5281
fi
 
5282
 
 
5283
found="no"
 
5284
 
 
5285
        if test $found = "no" ; then
 
5286
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5287
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5288
                fi
 
5289
 
 
5290
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5291
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5292
                fi
 
5293
 
 
5294
                CFLAGS="$CFLAGS -Wstrict-prototypes"
 
5295
 
 
5296
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
 
5297
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
 
5298
                cacheid=xorg_cv_cc_flag__Wstrict_prototypes
 
5299
                if eval \${$cacheid+:} false; then :
 
5300
  $as_echo_n "(cached) " >&6
 
5301
else
 
5302
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5303
/* end confdefs.h.  */
 
5304
int i;
 
5305
int
 
5306
main ()
 
5307
{
 
5308
 
 
5309
  ;
 
5310
  return 0;
 
5311
}
 
5312
_ACEOF
 
5313
if ac_fn_c_try_link "$LINENO"; then :
 
5314
  eval $cacheid=yes
 
5315
else
 
5316
  eval $cacheid=no
 
5317
fi
 
5318
rm -f core conftest.err conftest.$ac_objext \
 
5319
    conftest$ac_exeext conftest.$ac_ext
 
5320
fi
 
5321
 
 
5322
 
 
5323
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5324
 
 
5325
                eval supported=\$$cacheid
 
5326
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5327
$as_echo "$supported" >&6; }
 
5328
                if test "$supported" = "yes" ; then
 
5329
                        BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
 
5330
                        found="yes"
 
5331
                fi
 
5332
        fi
 
5333
 
 
5334
 
 
5335
 
 
5336
 
 
5337
 
 
5338
 
 
5339
 
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
xorg_testset_save_CFLAGS="$CFLAGS"
 
5349
 
 
5350
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5351
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5352
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5353
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5354
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5355
  $as_echo_n "(cached) " >&6
 
5356
else
 
5357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5358
/* end confdefs.h.  */
 
5359
int i;
 
5360
_ACEOF
 
5361
if ac_fn_c_try_compile "$LINENO"; then :
 
5362
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5363
else
 
5364
  xorg_cv_cc_flag_unknown_warning_option=no
 
5365
fi
 
5366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5367
fi
 
5368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5369
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5370
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5371
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5372
fi
 
5373
 
 
5374
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5375
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5376
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5377
        fi
 
5378
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5379
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5380
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5381
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5382
  $as_echo_n "(cached) " >&6
 
5383
else
 
5384
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5385
/* end confdefs.h.  */
 
5386
int i;
 
5387
_ACEOF
 
5388
if ac_fn_c_try_compile "$LINENO"; then :
 
5389
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5390
else
 
5391
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5392
fi
 
5393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5394
fi
 
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5396
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5397
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5398
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5399
fi
 
5400
 
 
5401
found="no"
 
5402
 
 
5403
        if test $found = "no" ; then
 
5404
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5405
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5406
                fi
 
5407
 
 
5408
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5409
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5410
                fi
 
5411
 
 
5412
                CFLAGS="$CFLAGS -Wmissing-prototypes"
 
5413
 
 
5414
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
 
5415
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
 
5416
                cacheid=xorg_cv_cc_flag__Wmissing_prototypes
 
5417
                if eval \${$cacheid+:} false; then :
 
5418
  $as_echo_n "(cached) " >&6
 
5419
else
 
5420
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5421
/* end confdefs.h.  */
 
5422
int i;
 
5423
int
 
5424
main ()
 
5425
{
 
5426
 
 
5427
  ;
 
5428
  return 0;
 
5429
}
 
5430
_ACEOF
 
5431
if ac_fn_c_try_link "$LINENO"; then :
 
5432
  eval $cacheid=yes
 
5433
else
 
5434
  eval $cacheid=no
 
5435
fi
 
5436
rm -f core conftest.err conftest.$ac_objext \
 
5437
    conftest$ac_exeext conftest.$ac_ext
 
5438
fi
 
5439
 
 
5440
 
 
5441
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5442
 
 
5443
                eval supported=\$$cacheid
 
5444
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5445
$as_echo "$supported" >&6; }
 
5446
                if test "$supported" = "yes" ; then
 
5447
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
 
5448
                        found="yes"
 
5449
                fi
 
5450
        fi
 
5451
 
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
 
5457
 
 
5458
 
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
 
 
5466
xorg_testset_save_CFLAGS="$CFLAGS"
 
5467
 
 
5468
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5469
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5470
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5471
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5472
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5473
  $as_echo_n "(cached) " >&6
 
5474
else
 
5475
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5476
/* end confdefs.h.  */
 
5477
int i;
 
5478
_ACEOF
 
5479
if ac_fn_c_try_compile "$LINENO"; then :
 
5480
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5481
else
 
5482
  xorg_cv_cc_flag_unknown_warning_option=no
 
5483
fi
 
5484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5485
fi
 
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5487
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5488
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5489
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5490
fi
 
5491
 
 
5492
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5493
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5494
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5495
        fi
 
5496
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5497
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5498
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5499
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5500
  $as_echo_n "(cached) " >&6
 
5501
else
 
5502
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5503
/* end confdefs.h.  */
 
5504
int i;
 
5505
_ACEOF
 
5506
if ac_fn_c_try_compile "$LINENO"; then :
 
5507
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5508
else
 
5509
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5510
fi
 
5511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5512
fi
 
5513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5514
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5515
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5516
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5517
fi
 
5518
 
 
5519
found="no"
 
5520
 
 
5521
        if test $found = "no" ; then
 
5522
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5523
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5524
                fi
 
5525
 
 
5526
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5527
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5528
                fi
 
5529
 
 
5530
                CFLAGS="$CFLAGS -Wnested-externs"
 
5531
 
 
5532
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
 
5533
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
 
5534
                cacheid=xorg_cv_cc_flag__Wnested_externs
 
5535
                if eval \${$cacheid+:} false; then :
 
5536
  $as_echo_n "(cached) " >&6
 
5537
else
 
5538
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5539
/* end confdefs.h.  */
 
5540
int i;
 
5541
int
 
5542
main ()
 
5543
{
 
5544
 
 
5545
  ;
 
5546
  return 0;
 
5547
}
 
5548
_ACEOF
 
5549
if ac_fn_c_try_link "$LINENO"; then :
 
5550
  eval $cacheid=yes
 
5551
else
 
5552
  eval $cacheid=no
 
5553
fi
 
5554
rm -f core conftest.err conftest.$ac_objext \
 
5555
    conftest$ac_exeext conftest.$ac_ext
 
5556
fi
 
5557
 
 
5558
 
 
5559
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5560
 
 
5561
                eval supported=\$$cacheid
 
5562
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5563
$as_echo "$supported" >&6; }
 
5564
                if test "$supported" = "yes" ; then
 
5565
                        BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
 
5566
                        found="yes"
 
5567
                fi
 
5568
        fi
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
 
5578
 
 
5579
 
 
5580
 
 
5581
 
 
5582
 
 
5583
 
 
5584
xorg_testset_save_CFLAGS="$CFLAGS"
 
5585
 
 
5586
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5587
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5588
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5589
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5590
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5591
  $as_echo_n "(cached) " >&6
 
5592
else
 
5593
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5594
/* end confdefs.h.  */
 
5595
int i;
 
5596
_ACEOF
 
5597
if ac_fn_c_try_compile "$LINENO"; then :
 
5598
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5599
else
 
5600
  xorg_cv_cc_flag_unknown_warning_option=no
 
5601
fi
 
5602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5603
fi
 
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5605
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5606
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5607
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5608
fi
 
5609
 
 
5610
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5611
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5612
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5613
        fi
 
5614
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5615
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5616
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5617
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5618
  $as_echo_n "(cached) " >&6
 
5619
else
 
5620
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5621
/* end confdefs.h.  */
 
5622
int i;
 
5623
_ACEOF
 
5624
if ac_fn_c_try_compile "$LINENO"; then :
 
5625
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5626
else
 
5627
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5628
fi
 
5629
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5630
fi
 
5631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5632
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5633
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5634
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5635
fi
 
5636
 
 
5637
found="no"
 
5638
 
 
5639
        if test $found = "no" ; then
 
5640
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5641
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5642
                fi
 
5643
 
 
5644
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5645
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5646
                fi
 
5647
 
 
5648
                CFLAGS="$CFLAGS -Wbad-function-cast"
 
5649
 
 
5650
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
 
5651
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
 
5652
                cacheid=xorg_cv_cc_flag__Wbad_function_cast
 
5653
                if eval \${$cacheid+:} false; then :
 
5654
  $as_echo_n "(cached) " >&6
 
5655
else
 
5656
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5657
/* end confdefs.h.  */
 
5658
int i;
 
5659
int
 
5660
main ()
 
5661
{
 
5662
 
 
5663
  ;
 
5664
  return 0;
 
5665
}
 
5666
_ACEOF
 
5667
if ac_fn_c_try_link "$LINENO"; then :
 
5668
  eval $cacheid=yes
 
5669
else
 
5670
  eval $cacheid=no
 
5671
fi
 
5672
rm -f core conftest.err conftest.$ac_objext \
 
5673
    conftest$ac_exeext conftest.$ac_ext
 
5674
fi
 
5675
 
 
5676
 
 
5677
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5678
 
 
5679
                eval supported=\$$cacheid
 
5680
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5681
$as_echo "$supported" >&6; }
 
5682
                if test "$supported" = "yes" ; then
 
5683
                        BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
 
5684
                        found="yes"
 
5685
                fi
 
5686
        fi
 
5687
 
 
5688
 
 
5689
 
 
5690
 
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
 
 
5699
 
 
5700
 
 
5701
 
 
5702
xorg_testset_save_CFLAGS="$CFLAGS"
 
5703
 
 
5704
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5705
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5706
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5707
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5708
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5709
  $as_echo_n "(cached) " >&6
 
5710
else
 
5711
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5712
/* end confdefs.h.  */
 
5713
int i;
 
5714
_ACEOF
 
5715
if ac_fn_c_try_compile "$LINENO"; then :
 
5716
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5717
else
 
5718
  xorg_cv_cc_flag_unknown_warning_option=no
 
5719
fi
 
5720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5721
fi
 
5722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5723
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5724
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5725
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5726
fi
 
5727
 
 
5728
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5729
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5730
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5731
        fi
 
5732
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5733
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5734
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5735
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5736
  $as_echo_n "(cached) " >&6
 
5737
else
 
5738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5739
/* end confdefs.h.  */
 
5740
int i;
 
5741
_ACEOF
 
5742
if ac_fn_c_try_compile "$LINENO"; then :
 
5743
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5744
else
 
5745
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5746
fi
 
5747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5748
fi
 
5749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5750
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5751
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5752
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5753
fi
 
5754
 
 
5755
found="no"
 
5756
 
 
5757
        if test $found = "no" ; then
 
5758
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5759
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5760
                fi
 
5761
 
 
5762
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5763
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5764
                fi
 
5765
 
 
5766
                CFLAGS="$CFLAGS -Wold-style-definition"
 
5767
 
 
5768
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
 
5769
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
 
5770
                cacheid=xorg_cv_cc_flag__Wold_style_definition
 
5771
                if eval \${$cacheid+:} false; then :
 
5772
  $as_echo_n "(cached) " >&6
 
5773
else
 
5774
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5775
/* end confdefs.h.  */
 
5776
int i;
 
5777
int
 
5778
main ()
 
5779
{
 
5780
 
 
5781
  ;
 
5782
  return 0;
 
5783
}
 
5784
_ACEOF
 
5785
if ac_fn_c_try_link "$LINENO"; then :
 
5786
  eval $cacheid=yes
 
5787
else
 
5788
  eval $cacheid=no
 
5789
fi
 
5790
rm -f core conftest.err conftest.$ac_objext \
 
5791
    conftest$ac_exeext conftest.$ac_ext
 
5792
fi
 
5793
 
 
5794
 
 
5795
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5796
 
 
5797
                eval supported=\$$cacheid
 
5798
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5799
$as_echo "$supported" >&6; }
 
5800
                if test "$supported" = "yes" ; then
 
5801
                        BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
 
5802
                        found="yes"
 
5803
                fi
 
5804
        fi
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
 
 
5814
 
 
5815
 
 
5816
 
 
5817
 
 
5818
 
 
5819
 
 
5820
xorg_testset_save_CFLAGS="$CFLAGS"
 
5821
 
 
5822
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5823
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5824
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5825
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5826
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5827
  $as_echo_n "(cached) " >&6
 
5828
else
 
5829
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5830
/* end confdefs.h.  */
 
5831
int i;
 
5832
_ACEOF
 
5833
if ac_fn_c_try_compile "$LINENO"; then :
 
5834
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5835
else
 
5836
  xorg_cv_cc_flag_unknown_warning_option=no
 
5837
fi
 
5838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5839
fi
 
5840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5841
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5842
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5843
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5844
fi
 
5845
 
 
5846
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5847
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5848
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5849
        fi
 
5850
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5851
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5852
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5853
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5854
  $as_echo_n "(cached) " >&6
 
5855
else
 
5856
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5857
/* end confdefs.h.  */
 
5858
int i;
 
5859
_ACEOF
 
5860
if ac_fn_c_try_compile "$LINENO"; then :
 
5861
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5862
else
 
5863
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5864
fi
 
5865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5866
fi
 
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5868
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5869
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5870
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5871
fi
 
5872
 
 
5873
found="no"
 
5874
 
 
5875
        if test $found = "no" ; then
 
5876
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5877
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5878
                fi
 
5879
 
 
5880
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
5881
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5882
                fi
 
5883
 
 
5884
                CFLAGS="$CFLAGS -Wdeclaration-after-statement"
 
5885
 
 
5886
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
 
5887
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
 
5888
                cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
 
5889
                if eval \${$cacheid+:} false; then :
 
5890
  $as_echo_n "(cached) " >&6
 
5891
else
 
5892
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5893
/* end confdefs.h.  */
 
5894
int i;
 
5895
int
 
5896
main ()
 
5897
{
 
5898
 
 
5899
  ;
 
5900
  return 0;
 
5901
}
 
5902
_ACEOF
 
5903
if ac_fn_c_try_link "$LINENO"; then :
 
5904
  eval $cacheid=yes
 
5905
else
 
5906
  eval $cacheid=no
 
5907
fi
 
5908
rm -f core conftest.err conftest.$ac_objext \
 
5909
    conftest$ac_exeext conftest.$ac_ext
 
5910
fi
 
5911
 
 
5912
 
 
5913
                CFLAGS="$xorg_testset_save_CFLAGS"
 
5914
 
 
5915
                eval supported=\$$cacheid
 
5916
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
5917
$as_echo "$supported" >&6; }
 
5918
                if test "$supported" = "yes" ; then
 
5919
                        BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
 
5920
                        found="yes"
 
5921
                fi
 
5922
        fi
 
5923
 
 
5924
 
 
5925
 
 
5926
 
 
5927
 
 
5928
# This chunk adds additional warnings that could catch undesired effects.
 
5929
 
 
5930
 
 
5931
 
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
 
 
5937
 
 
5938
 
 
5939
 
 
5940
 
 
5941
 
 
5942
xorg_testset_save_CFLAGS="$CFLAGS"
 
5943
 
 
5944
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
5945
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5946
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
5947
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
5948
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
5949
  $as_echo_n "(cached) " >&6
 
5950
else
 
5951
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5952
/* end confdefs.h.  */
 
5953
int i;
 
5954
_ACEOF
 
5955
if ac_fn_c_try_compile "$LINENO"; then :
 
5956
  xorg_cv_cc_flag_unknown_warning_option=yes
 
5957
else
 
5958
  xorg_cv_cc_flag_unknown_warning_option=no
 
5959
fi
 
5960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5961
fi
 
5962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
5963
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
5964
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
5965
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5966
fi
 
5967
 
 
5968
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
5969
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5970
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
5971
        fi
 
5972
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
5973
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
5974
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
5975
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
5976
  $as_echo_n "(cached) " >&6
 
5977
else
 
5978
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5979
/* end confdefs.h.  */
 
5980
int i;
 
5981
_ACEOF
 
5982
if ac_fn_c_try_compile "$LINENO"; then :
 
5983
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
5984
else
 
5985
  xorg_cv_cc_flag_unused_command_line_argument=no
 
5986
fi
 
5987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5988
fi
 
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
5990
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
5991
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
5992
        CFLAGS="$xorg_testset_save_CFLAGS"
 
5993
fi
 
5994
 
 
5995
found="no"
 
5996
 
 
5997
        if test $found = "no" ; then
 
5998
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
5999
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6000
                fi
 
6001
 
 
6002
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6003
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6004
                fi
 
6005
 
 
6006
                CFLAGS="$CFLAGS -Wunused"
 
6007
 
 
6008
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
 
6009
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
 
6010
                cacheid=xorg_cv_cc_flag__Wunused
 
6011
                if eval \${$cacheid+:} false; then :
 
6012
  $as_echo_n "(cached) " >&6
 
6013
else
 
6014
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6015
/* end confdefs.h.  */
 
6016
int i;
 
6017
int
 
6018
main ()
 
6019
{
 
6020
 
 
6021
  ;
 
6022
  return 0;
 
6023
}
 
6024
_ACEOF
 
6025
if ac_fn_c_try_link "$LINENO"; then :
 
6026
  eval $cacheid=yes
 
6027
else
 
6028
  eval $cacheid=no
 
6029
fi
 
6030
rm -f core conftest.err conftest.$ac_objext \
 
6031
    conftest$ac_exeext conftest.$ac_ext
 
6032
fi
 
6033
 
 
6034
 
 
6035
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6036
 
 
6037
                eval supported=\$$cacheid
 
6038
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6039
$as_echo "$supported" >&6; }
 
6040
                if test "$supported" = "yes" ; then
 
6041
                        BASE_CFLAGS="$BASE_CFLAGS -Wunused"
 
6042
                        found="yes"
 
6043
                fi
 
6044
        fi
 
6045
 
 
6046
 
 
6047
 
 
6048
 
 
6049
 
 
6050
 
 
6051
 
 
6052
 
 
6053
 
 
6054
 
 
6055
 
 
6056
 
 
6057
 
 
6058
 
 
6059
 
 
6060
xorg_testset_save_CFLAGS="$CFLAGS"
 
6061
 
 
6062
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6063
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6064
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6065
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6066
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6067
  $as_echo_n "(cached) " >&6
 
6068
else
 
6069
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6070
/* end confdefs.h.  */
 
6071
int i;
 
6072
_ACEOF
 
6073
if ac_fn_c_try_compile "$LINENO"; then :
 
6074
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6075
else
 
6076
  xorg_cv_cc_flag_unknown_warning_option=no
 
6077
fi
 
6078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6079
fi
 
6080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6081
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6082
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6083
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6084
fi
 
6085
 
 
6086
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6087
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6088
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6089
        fi
 
6090
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6091
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6092
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6093
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6094
  $as_echo_n "(cached) " >&6
 
6095
else
 
6096
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6097
/* end confdefs.h.  */
 
6098
int i;
 
6099
_ACEOF
 
6100
if ac_fn_c_try_compile "$LINENO"; then :
 
6101
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6102
else
 
6103
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6104
fi
 
6105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6106
fi
 
6107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6108
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6109
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6110
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6111
fi
 
6112
 
 
6113
found="no"
 
6114
 
 
6115
        if test $found = "no" ; then
 
6116
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6117
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6118
                fi
 
6119
 
 
6120
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6121
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6122
                fi
 
6123
 
 
6124
                CFLAGS="$CFLAGS -Wuninitialized"
 
6125
 
 
6126
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
 
6127
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
 
6128
                cacheid=xorg_cv_cc_flag__Wuninitialized
 
6129
                if eval \${$cacheid+:} false; then :
 
6130
  $as_echo_n "(cached) " >&6
 
6131
else
 
6132
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6133
/* end confdefs.h.  */
 
6134
int i;
 
6135
int
 
6136
main ()
 
6137
{
 
6138
 
 
6139
  ;
 
6140
  return 0;
 
6141
}
 
6142
_ACEOF
 
6143
if ac_fn_c_try_link "$LINENO"; then :
 
6144
  eval $cacheid=yes
 
6145
else
 
6146
  eval $cacheid=no
 
6147
fi
 
6148
rm -f core conftest.err conftest.$ac_objext \
 
6149
    conftest$ac_exeext conftest.$ac_ext
 
6150
fi
 
6151
 
 
6152
 
 
6153
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6154
 
 
6155
                eval supported=\$$cacheid
 
6156
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6157
$as_echo "$supported" >&6; }
 
6158
                if test "$supported" = "yes" ; then
 
6159
                        BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
 
6160
                        found="yes"
 
6161
                fi
 
6162
        fi
 
6163
 
 
6164
 
 
6165
 
 
6166
 
 
6167
 
 
6168
 
 
6169
 
 
6170
 
 
6171
 
 
6172
 
 
6173
 
 
6174
 
 
6175
 
 
6176
 
 
6177
 
 
6178
xorg_testset_save_CFLAGS="$CFLAGS"
 
6179
 
 
6180
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6181
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6182
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6183
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6184
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6185
  $as_echo_n "(cached) " >&6
 
6186
else
 
6187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6188
/* end confdefs.h.  */
 
6189
int i;
 
6190
_ACEOF
 
6191
if ac_fn_c_try_compile "$LINENO"; then :
 
6192
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6193
else
 
6194
  xorg_cv_cc_flag_unknown_warning_option=no
 
6195
fi
 
6196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6197
fi
 
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6199
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6200
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6201
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6202
fi
 
6203
 
 
6204
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6205
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6206
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6207
        fi
 
6208
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6209
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6210
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6211
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6212
  $as_echo_n "(cached) " >&6
 
6213
else
 
6214
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6215
/* end confdefs.h.  */
 
6216
int i;
 
6217
_ACEOF
 
6218
if ac_fn_c_try_compile "$LINENO"; then :
 
6219
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6220
else
 
6221
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6222
fi
 
6223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6224
fi
 
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6226
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6227
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6228
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6229
fi
 
6230
 
 
6231
found="no"
 
6232
 
 
6233
        if test $found = "no" ; then
 
6234
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6235
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6236
                fi
 
6237
 
 
6238
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6239
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6240
                fi
 
6241
 
 
6242
                CFLAGS="$CFLAGS -Wshadow"
 
6243
 
 
6244
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
 
6245
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
 
6246
                cacheid=xorg_cv_cc_flag__Wshadow
 
6247
                if eval \${$cacheid+:} false; then :
 
6248
  $as_echo_n "(cached) " >&6
 
6249
else
 
6250
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6251
/* end confdefs.h.  */
 
6252
int i;
 
6253
int
 
6254
main ()
 
6255
{
 
6256
 
 
6257
  ;
 
6258
  return 0;
 
6259
}
 
6260
_ACEOF
 
6261
if ac_fn_c_try_link "$LINENO"; then :
 
6262
  eval $cacheid=yes
 
6263
else
 
6264
  eval $cacheid=no
 
6265
fi
 
6266
rm -f core conftest.err conftest.$ac_objext \
 
6267
    conftest$ac_exeext conftest.$ac_ext
 
6268
fi
 
6269
 
 
6270
 
 
6271
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6272
 
 
6273
                eval supported=\$$cacheid
 
6274
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6275
$as_echo "$supported" >&6; }
 
6276
                if test "$supported" = "yes" ; then
 
6277
                        BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
 
6278
                        found="yes"
 
6279
                fi
 
6280
        fi
 
6281
 
 
6282
 
 
6283
 
 
6284
 
 
6285
 
 
6286
 
 
6287
 
 
6288
 
 
6289
 
 
6290
 
 
6291
 
 
6292
 
 
6293
 
 
6294
 
 
6295
 
 
6296
xorg_testset_save_CFLAGS="$CFLAGS"
 
6297
 
 
6298
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6299
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6300
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6301
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6302
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6303
  $as_echo_n "(cached) " >&6
 
6304
else
 
6305
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6306
/* end confdefs.h.  */
 
6307
int i;
 
6308
_ACEOF
 
6309
if ac_fn_c_try_compile "$LINENO"; then :
 
6310
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6311
else
 
6312
  xorg_cv_cc_flag_unknown_warning_option=no
 
6313
fi
 
6314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6315
fi
 
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6317
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6318
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6319
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6320
fi
 
6321
 
 
6322
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6323
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6324
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6325
        fi
 
6326
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6327
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6328
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6329
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6330
  $as_echo_n "(cached) " >&6
 
6331
else
 
6332
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6333
/* end confdefs.h.  */
 
6334
int i;
 
6335
_ACEOF
 
6336
if ac_fn_c_try_compile "$LINENO"; then :
 
6337
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6338
else
 
6339
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6340
fi
 
6341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6342
fi
 
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6344
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6345
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6346
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6347
fi
 
6348
 
 
6349
found="no"
 
6350
 
 
6351
        if test $found = "no" ; then
 
6352
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6353
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6354
                fi
 
6355
 
 
6356
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6357
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6358
                fi
 
6359
 
 
6360
                CFLAGS="$CFLAGS -Wcast-qual"
 
6361
 
 
6362
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
 
6363
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
 
6364
                cacheid=xorg_cv_cc_flag__Wcast_qual
 
6365
                if eval \${$cacheid+:} false; then :
 
6366
  $as_echo_n "(cached) " >&6
 
6367
else
 
6368
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6369
/* end confdefs.h.  */
 
6370
int i;
 
6371
int
 
6372
main ()
 
6373
{
 
6374
 
 
6375
  ;
 
6376
  return 0;
 
6377
}
 
6378
_ACEOF
 
6379
if ac_fn_c_try_link "$LINENO"; then :
 
6380
  eval $cacheid=yes
 
6381
else
 
6382
  eval $cacheid=no
 
6383
fi
 
6384
rm -f core conftest.err conftest.$ac_objext \
 
6385
    conftest$ac_exeext conftest.$ac_ext
 
6386
fi
 
6387
 
 
6388
 
 
6389
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6390
 
 
6391
                eval supported=\$$cacheid
 
6392
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6393
$as_echo "$supported" >&6; }
 
6394
                if test "$supported" = "yes" ; then
 
6395
                        BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
 
6396
                        found="yes"
 
6397
                fi
 
6398
        fi
 
6399
 
 
6400
 
 
6401
 
 
6402
 
 
6403
 
 
6404
 
 
6405
 
 
6406
 
 
6407
 
 
6408
 
 
6409
 
 
6410
 
 
6411
 
 
6412
 
 
6413
 
 
6414
xorg_testset_save_CFLAGS="$CFLAGS"
 
6415
 
 
6416
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6417
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6418
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6419
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6420
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6421
  $as_echo_n "(cached) " >&6
 
6422
else
 
6423
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6424
/* end confdefs.h.  */
 
6425
int i;
 
6426
_ACEOF
 
6427
if ac_fn_c_try_compile "$LINENO"; then :
 
6428
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6429
else
 
6430
  xorg_cv_cc_flag_unknown_warning_option=no
 
6431
fi
 
6432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6433
fi
 
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6435
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6436
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6437
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6438
fi
 
6439
 
 
6440
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6441
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6442
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6443
        fi
 
6444
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6445
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6446
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6447
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6448
  $as_echo_n "(cached) " >&6
 
6449
else
 
6450
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6451
/* end confdefs.h.  */
 
6452
int i;
 
6453
_ACEOF
 
6454
if ac_fn_c_try_compile "$LINENO"; then :
 
6455
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6456
else
 
6457
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6458
fi
 
6459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6460
fi
 
6461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6462
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6463
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6464
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6465
fi
 
6466
 
 
6467
found="no"
 
6468
 
 
6469
        if test $found = "no" ; then
 
6470
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6471
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6472
                fi
 
6473
 
 
6474
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6475
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6476
                fi
 
6477
 
 
6478
                CFLAGS="$CFLAGS -Wmissing-noreturn"
 
6479
 
 
6480
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
 
6481
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
 
6482
                cacheid=xorg_cv_cc_flag__Wmissing_noreturn
 
6483
                if eval \${$cacheid+:} false; then :
 
6484
  $as_echo_n "(cached) " >&6
 
6485
else
 
6486
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6487
/* end confdefs.h.  */
 
6488
int i;
 
6489
int
 
6490
main ()
 
6491
{
 
6492
 
 
6493
  ;
 
6494
  return 0;
 
6495
}
 
6496
_ACEOF
 
6497
if ac_fn_c_try_link "$LINENO"; then :
 
6498
  eval $cacheid=yes
 
6499
else
 
6500
  eval $cacheid=no
 
6501
fi
 
6502
rm -f core conftest.err conftest.$ac_objext \
 
6503
    conftest$ac_exeext conftest.$ac_ext
 
6504
fi
 
6505
 
 
6506
 
 
6507
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6508
 
 
6509
                eval supported=\$$cacheid
 
6510
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6511
$as_echo "$supported" >&6; }
 
6512
                if test "$supported" = "yes" ; then
 
6513
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
 
6514
                        found="yes"
 
6515
                fi
 
6516
        fi
 
6517
 
 
6518
 
 
6519
 
 
6520
 
 
6521
 
 
6522
 
 
6523
 
 
6524
 
 
6525
 
 
6526
 
 
6527
 
 
6528
 
 
6529
 
 
6530
 
 
6531
 
 
6532
xorg_testset_save_CFLAGS="$CFLAGS"
 
6533
 
 
6534
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6535
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6536
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6537
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6538
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6539
  $as_echo_n "(cached) " >&6
 
6540
else
 
6541
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6542
/* end confdefs.h.  */
 
6543
int i;
 
6544
_ACEOF
 
6545
if ac_fn_c_try_compile "$LINENO"; then :
 
6546
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6547
else
 
6548
  xorg_cv_cc_flag_unknown_warning_option=no
 
6549
fi
 
6550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6551
fi
 
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6553
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6554
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6555
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6556
fi
 
6557
 
 
6558
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6559
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6560
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6561
        fi
 
6562
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6563
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6564
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6565
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6566
  $as_echo_n "(cached) " >&6
 
6567
else
 
6568
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6569
/* end confdefs.h.  */
 
6570
int i;
 
6571
_ACEOF
 
6572
if ac_fn_c_try_compile "$LINENO"; then :
 
6573
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6574
else
 
6575
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6576
fi
 
6577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6578
fi
 
6579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6580
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6581
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6582
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6583
fi
 
6584
 
 
6585
found="no"
 
6586
 
 
6587
        if test $found = "no" ; then
 
6588
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6589
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6590
                fi
 
6591
 
 
6592
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6593
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6594
                fi
 
6595
 
 
6596
                CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
6597
 
 
6598
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
 
6599
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
 
6600
                cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
 
6601
                if eval \${$cacheid+:} false; then :
 
6602
  $as_echo_n "(cached) " >&6
 
6603
else
 
6604
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6605
/* end confdefs.h.  */
 
6606
int i;
 
6607
int
 
6608
main ()
 
6609
{
 
6610
 
 
6611
  ;
 
6612
  return 0;
 
6613
}
 
6614
_ACEOF
 
6615
if ac_fn_c_try_link "$LINENO"; then :
 
6616
  eval $cacheid=yes
 
6617
else
 
6618
  eval $cacheid=no
 
6619
fi
 
6620
rm -f core conftest.err conftest.$ac_objext \
 
6621
    conftest$ac_exeext conftest.$ac_ext
 
6622
fi
 
6623
 
 
6624
 
 
6625
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6626
 
 
6627
                eval supported=\$$cacheid
 
6628
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6629
$as_echo "$supported" >&6; }
 
6630
                if test "$supported" = "yes" ; then
 
6631
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
 
6632
                        found="yes"
 
6633
                fi
 
6634
        fi
 
6635
 
 
6636
 
 
6637
 
 
6638
 
 
6639
 
 
6640
 
 
6641
 
 
6642
 
 
6643
 
 
6644
 
 
6645
 
 
6646
 
 
6647
 
 
6648
 
 
6649
 
 
6650
xorg_testset_save_CFLAGS="$CFLAGS"
 
6651
 
 
6652
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6653
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6654
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6655
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6656
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6657
  $as_echo_n "(cached) " >&6
 
6658
else
 
6659
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6660
/* end confdefs.h.  */
 
6661
int i;
 
6662
_ACEOF
 
6663
if ac_fn_c_try_compile "$LINENO"; then :
 
6664
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6665
else
 
6666
  xorg_cv_cc_flag_unknown_warning_option=no
 
6667
fi
 
6668
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6669
fi
 
6670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6671
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6672
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6673
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6674
fi
 
6675
 
 
6676
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6677
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6678
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6679
        fi
 
6680
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6681
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6682
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6683
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6684
  $as_echo_n "(cached) " >&6
 
6685
else
 
6686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6687
/* end confdefs.h.  */
 
6688
int i;
 
6689
_ACEOF
 
6690
if ac_fn_c_try_compile "$LINENO"; then :
 
6691
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6692
else
 
6693
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6694
fi
 
6695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6696
fi
 
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6698
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6699
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6700
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6701
fi
 
6702
 
 
6703
found="no"
 
6704
 
 
6705
        if test $found = "no" ; then
 
6706
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6707
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6708
                fi
 
6709
 
 
6710
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6711
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6712
                fi
 
6713
 
 
6714
                CFLAGS="$CFLAGS -Wredundant-decls"
 
6715
 
 
6716
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
 
6717
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
 
6718
                cacheid=xorg_cv_cc_flag__Wredundant_decls
 
6719
                if eval \${$cacheid+:} false; then :
 
6720
  $as_echo_n "(cached) " >&6
 
6721
else
 
6722
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6723
/* end confdefs.h.  */
 
6724
int i;
 
6725
int
 
6726
main ()
 
6727
{
 
6728
 
 
6729
  ;
 
6730
  return 0;
 
6731
}
 
6732
_ACEOF
 
6733
if ac_fn_c_try_link "$LINENO"; then :
 
6734
  eval $cacheid=yes
 
6735
else
 
6736
  eval $cacheid=no
 
6737
fi
 
6738
rm -f core conftest.err conftest.$ac_objext \
 
6739
    conftest$ac_exeext conftest.$ac_ext
 
6740
fi
 
6741
 
 
6742
 
 
6743
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6744
 
 
6745
                eval supported=\$$cacheid
 
6746
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6747
$as_echo "$supported" >&6; }
 
6748
                if test "$supported" = "yes" ; then
 
6749
                        BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
 
6750
                        found="yes"
 
6751
                fi
 
6752
        fi
 
6753
 
 
6754
 
 
6755
 
 
6756
# These are currently disabled because they are noisy.  They will be enabled
 
6757
# in the future once the codebase is sufficiently modernized to silence
 
6758
# them.  For now, I don't want them to drown out the other warnings.
 
6759
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
 
6760
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
 
6761
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 
6762
 
 
6763
# Turn some warnings into errors, so we don't accidently get successful builds
 
6764
# when there are problems that should be fixed.
 
6765
 
 
6766
if test "x$SELECTIVE_WERROR" = "xyes" ; then
 
6767
 
 
6768
 
 
6769
 
 
6770
 
 
6771
 
 
6772
 
 
6773
 
 
6774
 
 
6775
 
 
6776
 
 
6777
 
 
6778
 
 
6779
 
 
6780
xorg_testset_save_CFLAGS="$CFLAGS"
 
6781
 
 
6782
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6783
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6784
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6785
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6786
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6787
  $as_echo_n "(cached) " >&6
 
6788
else
 
6789
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6790
/* end confdefs.h.  */
 
6791
int i;
 
6792
_ACEOF
 
6793
if ac_fn_c_try_compile "$LINENO"; then :
 
6794
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6795
else
 
6796
  xorg_cv_cc_flag_unknown_warning_option=no
 
6797
fi
 
6798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6799
fi
 
6800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6801
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6802
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6803
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6804
fi
 
6805
 
 
6806
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6807
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6808
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6809
        fi
 
6810
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6811
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6812
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6813
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6814
  $as_echo_n "(cached) " >&6
 
6815
else
 
6816
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6817
/* end confdefs.h.  */
 
6818
int i;
 
6819
_ACEOF
 
6820
if ac_fn_c_try_compile "$LINENO"; then :
 
6821
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6822
else
 
6823
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6824
fi
 
6825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6826
fi
 
6827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6828
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6829
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6830
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6831
fi
 
6832
 
 
6833
found="no"
 
6834
 
 
6835
        if test $found = "no" ; then
 
6836
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6837
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6838
                fi
 
6839
 
 
6840
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6841
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6842
                fi
 
6843
 
 
6844
                CFLAGS="$CFLAGS -Werror=implicit"
 
6845
 
 
6846
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
 
6847
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
 
6848
                cacheid=xorg_cv_cc_flag__Werror_implicit
 
6849
                if eval \${$cacheid+:} false; then :
 
6850
  $as_echo_n "(cached) " >&6
 
6851
else
 
6852
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6853
/* end confdefs.h.  */
 
6854
int i;
 
6855
int
 
6856
main ()
 
6857
{
 
6858
 
 
6859
  ;
 
6860
  return 0;
 
6861
}
 
6862
_ACEOF
 
6863
if ac_fn_c_try_link "$LINENO"; then :
 
6864
  eval $cacheid=yes
 
6865
else
 
6866
  eval $cacheid=no
 
6867
fi
 
6868
rm -f core conftest.err conftest.$ac_objext \
 
6869
    conftest$ac_exeext conftest.$ac_ext
 
6870
fi
 
6871
 
 
6872
 
 
6873
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6874
 
 
6875
                eval supported=\$$cacheid
 
6876
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6877
$as_echo "$supported" >&6; }
 
6878
                if test "$supported" = "yes" ; then
 
6879
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
 
6880
                        found="yes"
 
6881
                fi
 
6882
        fi
 
6883
 
 
6884
        if test $found = "no" ; then
 
6885
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6886
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6887
                fi
 
6888
 
 
6889
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
6890
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6891
                fi
 
6892
 
 
6893
                CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
 
6894
 
 
6895
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
 
6896
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
 
6897
                cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
 
6898
                if eval \${$cacheid+:} false; then :
 
6899
  $as_echo_n "(cached) " >&6
 
6900
else
 
6901
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6902
/* end confdefs.h.  */
 
6903
int i;
 
6904
int
 
6905
main ()
 
6906
{
 
6907
 
 
6908
  ;
 
6909
  return 0;
 
6910
}
 
6911
_ACEOF
 
6912
if ac_fn_c_try_link "$LINENO"; then :
 
6913
  eval $cacheid=yes
 
6914
else
 
6915
  eval $cacheid=no
 
6916
fi
 
6917
rm -f core conftest.err conftest.$ac_objext \
 
6918
    conftest$ac_exeext conftest.$ac_ext
 
6919
fi
 
6920
 
 
6921
 
 
6922
                CFLAGS="$xorg_testset_save_CFLAGS"
 
6923
 
 
6924
                eval supported=\$$cacheid
 
6925
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
6926
$as_echo "$supported" >&6; }
 
6927
                if test "$supported" = "yes" ; then
 
6928
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
 
6929
                        found="yes"
 
6930
                fi
 
6931
        fi
 
6932
 
 
6933
 
 
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
 
6940
 
 
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
xorg_testset_save_CFLAGS="$CFLAGS"
 
6948
 
 
6949
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
6950
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6951
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
6952
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
6953
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
6954
  $as_echo_n "(cached) " >&6
 
6955
else
 
6956
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6957
/* end confdefs.h.  */
 
6958
int i;
 
6959
_ACEOF
 
6960
if ac_fn_c_try_compile "$LINENO"; then :
 
6961
  xorg_cv_cc_flag_unknown_warning_option=yes
 
6962
else
 
6963
  xorg_cv_cc_flag_unknown_warning_option=no
 
6964
fi
 
6965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6966
fi
 
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
6968
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
6969
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
6970
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6971
fi
 
6972
 
 
6973
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
6974
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
6975
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
6976
        fi
 
6977
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
6978
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
6979
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
6980
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
6981
  $as_echo_n "(cached) " >&6
 
6982
else
 
6983
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6984
/* end confdefs.h.  */
 
6985
int i;
 
6986
_ACEOF
 
6987
if ac_fn_c_try_compile "$LINENO"; then :
 
6988
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
6989
else
 
6990
  xorg_cv_cc_flag_unused_command_line_argument=no
 
6991
fi
 
6992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6993
fi
 
6994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
6995
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
6996
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
6997
        CFLAGS="$xorg_testset_save_CFLAGS"
 
6998
fi
 
6999
 
 
7000
found="no"
 
7001
 
 
7002
        if test $found = "no" ; then
 
7003
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7004
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7005
                fi
 
7006
 
 
7007
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7008
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7009
                fi
 
7010
 
 
7011
                CFLAGS="$CFLAGS -Werror=nonnull"
 
7012
 
 
7013
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
 
7014
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
 
7015
                cacheid=xorg_cv_cc_flag__Werror_nonnull
 
7016
                if eval \${$cacheid+:} false; then :
 
7017
  $as_echo_n "(cached) " >&6
 
7018
else
 
7019
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7020
/* end confdefs.h.  */
 
7021
int i;
 
7022
int
 
7023
main ()
 
7024
{
 
7025
 
 
7026
  ;
 
7027
  return 0;
 
7028
}
 
7029
_ACEOF
 
7030
if ac_fn_c_try_link "$LINENO"; then :
 
7031
  eval $cacheid=yes
 
7032
else
 
7033
  eval $cacheid=no
 
7034
fi
 
7035
rm -f core conftest.err conftest.$ac_objext \
 
7036
    conftest$ac_exeext conftest.$ac_ext
 
7037
fi
 
7038
 
 
7039
 
 
7040
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7041
 
 
7042
                eval supported=\$$cacheid
 
7043
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7044
$as_echo "$supported" >&6; }
 
7045
                if test "$supported" = "yes" ; then
 
7046
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
 
7047
                        found="yes"
 
7048
                fi
 
7049
        fi
 
7050
 
 
7051
 
 
7052
 
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
 
 
7061
 
 
7062
 
 
7063
 
 
7064
 
 
7065
xorg_testset_save_CFLAGS="$CFLAGS"
 
7066
 
 
7067
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7068
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7069
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7070
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7071
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7072
  $as_echo_n "(cached) " >&6
 
7073
else
 
7074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7075
/* end confdefs.h.  */
 
7076
int i;
 
7077
_ACEOF
 
7078
if ac_fn_c_try_compile "$LINENO"; then :
 
7079
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7080
else
 
7081
  xorg_cv_cc_flag_unknown_warning_option=no
 
7082
fi
 
7083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7084
fi
 
7085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7086
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7087
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7088
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7089
fi
 
7090
 
 
7091
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7092
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7093
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7094
        fi
 
7095
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7096
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7097
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7098
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7099
  $as_echo_n "(cached) " >&6
 
7100
else
 
7101
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7102
/* end confdefs.h.  */
 
7103
int i;
 
7104
_ACEOF
 
7105
if ac_fn_c_try_compile "$LINENO"; then :
 
7106
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7107
else
 
7108
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7109
fi
 
7110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7111
fi
 
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7113
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7114
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7115
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7116
fi
 
7117
 
 
7118
found="no"
 
7119
 
 
7120
        if test $found = "no" ; then
 
7121
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7122
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7123
                fi
 
7124
 
 
7125
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7126
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7127
                fi
 
7128
 
 
7129
                CFLAGS="$CFLAGS -Werror=init-self"
 
7130
 
 
7131
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
 
7132
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
 
7133
                cacheid=xorg_cv_cc_flag__Werror_init_self
 
7134
                if eval \${$cacheid+:} false; then :
 
7135
  $as_echo_n "(cached) " >&6
 
7136
else
 
7137
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7138
/* end confdefs.h.  */
 
7139
int i;
 
7140
int
 
7141
main ()
 
7142
{
 
7143
 
 
7144
  ;
 
7145
  return 0;
 
7146
}
 
7147
_ACEOF
 
7148
if ac_fn_c_try_link "$LINENO"; then :
 
7149
  eval $cacheid=yes
 
7150
else
 
7151
  eval $cacheid=no
 
7152
fi
 
7153
rm -f core conftest.err conftest.$ac_objext \
 
7154
    conftest$ac_exeext conftest.$ac_ext
 
7155
fi
 
7156
 
 
7157
 
 
7158
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7159
 
 
7160
                eval supported=\$$cacheid
 
7161
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7162
$as_echo "$supported" >&6; }
 
7163
                if test "$supported" = "yes" ; then
 
7164
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
 
7165
                        found="yes"
 
7166
                fi
 
7167
        fi
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
xorg_testset_save_CFLAGS="$CFLAGS"
 
7184
 
 
7185
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7186
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7187
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7188
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7189
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7190
  $as_echo_n "(cached) " >&6
 
7191
else
 
7192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7193
/* end confdefs.h.  */
 
7194
int i;
 
7195
_ACEOF
 
7196
if ac_fn_c_try_compile "$LINENO"; then :
 
7197
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7198
else
 
7199
  xorg_cv_cc_flag_unknown_warning_option=no
 
7200
fi
 
7201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7202
fi
 
7203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7204
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7205
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7206
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7207
fi
 
7208
 
 
7209
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7210
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7211
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7212
        fi
 
7213
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7214
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7215
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7216
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7217
  $as_echo_n "(cached) " >&6
 
7218
else
 
7219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7220
/* end confdefs.h.  */
 
7221
int i;
 
7222
_ACEOF
 
7223
if ac_fn_c_try_compile "$LINENO"; then :
 
7224
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7225
else
 
7226
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7227
fi
 
7228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7229
fi
 
7230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7231
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7232
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7233
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7234
fi
 
7235
 
 
7236
found="no"
 
7237
 
 
7238
        if test $found = "no" ; then
 
7239
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7240
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7241
                fi
 
7242
 
 
7243
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7244
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7245
                fi
 
7246
 
 
7247
                CFLAGS="$CFLAGS -Werror=main"
 
7248
 
 
7249
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
 
7250
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
 
7251
                cacheid=xorg_cv_cc_flag__Werror_main
 
7252
                if eval \${$cacheid+:} false; then :
 
7253
  $as_echo_n "(cached) " >&6
 
7254
else
 
7255
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7256
/* end confdefs.h.  */
 
7257
int i;
 
7258
int
 
7259
main ()
 
7260
{
 
7261
 
 
7262
  ;
 
7263
  return 0;
 
7264
}
 
7265
_ACEOF
 
7266
if ac_fn_c_try_link "$LINENO"; then :
 
7267
  eval $cacheid=yes
 
7268
else
 
7269
  eval $cacheid=no
 
7270
fi
 
7271
rm -f core conftest.err conftest.$ac_objext \
 
7272
    conftest$ac_exeext conftest.$ac_ext
 
7273
fi
 
7274
 
 
7275
 
 
7276
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7277
 
 
7278
                eval supported=\$$cacheid
 
7279
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7280
$as_echo "$supported" >&6; }
 
7281
                if test "$supported" = "yes" ; then
 
7282
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
 
7283
                        found="yes"
 
7284
                fi
 
7285
        fi
 
7286
 
 
7287
 
 
7288
 
 
7289
 
 
7290
 
 
7291
 
 
7292
 
 
7293
 
 
7294
 
 
7295
 
 
7296
 
 
7297
 
 
7298
 
 
7299
 
 
7300
 
 
7301
xorg_testset_save_CFLAGS="$CFLAGS"
 
7302
 
 
7303
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7304
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7305
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7306
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7307
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7308
  $as_echo_n "(cached) " >&6
 
7309
else
 
7310
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7311
/* end confdefs.h.  */
 
7312
int i;
 
7313
_ACEOF
 
7314
if ac_fn_c_try_compile "$LINENO"; then :
 
7315
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7316
else
 
7317
  xorg_cv_cc_flag_unknown_warning_option=no
 
7318
fi
 
7319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7320
fi
 
7321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7322
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7323
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7324
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7325
fi
 
7326
 
 
7327
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7328
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7329
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7330
        fi
 
7331
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7332
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7333
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7334
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7335
  $as_echo_n "(cached) " >&6
 
7336
else
 
7337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7338
/* end confdefs.h.  */
 
7339
int i;
 
7340
_ACEOF
 
7341
if ac_fn_c_try_compile "$LINENO"; then :
 
7342
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7343
else
 
7344
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7345
fi
 
7346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7347
fi
 
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7349
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7350
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7351
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7352
fi
 
7353
 
 
7354
found="no"
 
7355
 
 
7356
        if test $found = "no" ; then
 
7357
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7358
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7359
                fi
 
7360
 
 
7361
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7362
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7363
                fi
 
7364
 
 
7365
                CFLAGS="$CFLAGS -Werror=missing-braces"
 
7366
 
 
7367
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
 
7368
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
 
7369
                cacheid=xorg_cv_cc_flag__Werror_missing_braces
 
7370
                if eval \${$cacheid+:} false; then :
 
7371
  $as_echo_n "(cached) " >&6
 
7372
else
 
7373
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7374
/* end confdefs.h.  */
 
7375
int i;
 
7376
int
 
7377
main ()
 
7378
{
 
7379
 
 
7380
  ;
 
7381
  return 0;
 
7382
}
 
7383
_ACEOF
 
7384
if ac_fn_c_try_link "$LINENO"; then :
 
7385
  eval $cacheid=yes
 
7386
else
 
7387
  eval $cacheid=no
 
7388
fi
 
7389
rm -f core conftest.err conftest.$ac_objext \
 
7390
    conftest$ac_exeext conftest.$ac_ext
 
7391
fi
 
7392
 
 
7393
 
 
7394
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7395
 
 
7396
                eval supported=\$$cacheid
 
7397
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7398
$as_echo "$supported" >&6; }
 
7399
                if test "$supported" = "yes" ; then
 
7400
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
 
7401
                        found="yes"
 
7402
                fi
 
7403
        fi
 
7404
 
 
7405
 
 
7406
 
 
7407
 
 
7408
 
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
 
 
7419
xorg_testset_save_CFLAGS="$CFLAGS"
 
7420
 
 
7421
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7422
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7423
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7424
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7425
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7426
  $as_echo_n "(cached) " >&6
 
7427
else
 
7428
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7429
/* end confdefs.h.  */
 
7430
int i;
 
7431
_ACEOF
 
7432
if ac_fn_c_try_compile "$LINENO"; then :
 
7433
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7434
else
 
7435
  xorg_cv_cc_flag_unknown_warning_option=no
 
7436
fi
 
7437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7438
fi
 
7439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7440
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7441
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7442
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7443
fi
 
7444
 
 
7445
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7446
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7447
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7448
        fi
 
7449
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7450
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7451
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7452
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7453
  $as_echo_n "(cached) " >&6
 
7454
else
 
7455
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7456
/* end confdefs.h.  */
 
7457
int i;
 
7458
_ACEOF
 
7459
if ac_fn_c_try_compile "$LINENO"; then :
 
7460
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7461
else
 
7462
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7463
fi
 
7464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7465
fi
 
7466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7467
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7468
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7469
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7470
fi
 
7471
 
 
7472
found="no"
 
7473
 
 
7474
        if test $found = "no" ; then
 
7475
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7476
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7477
                fi
 
7478
 
 
7479
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7480
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7481
                fi
 
7482
 
 
7483
                CFLAGS="$CFLAGS -Werror=sequence-point"
 
7484
 
 
7485
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
 
7486
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
 
7487
                cacheid=xorg_cv_cc_flag__Werror_sequence_point
 
7488
                if eval \${$cacheid+:} false; then :
 
7489
  $as_echo_n "(cached) " >&6
 
7490
else
 
7491
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7492
/* end confdefs.h.  */
 
7493
int i;
 
7494
int
 
7495
main ()
 
7496
{
 
7497
 
 
7498
  ;
 
7499
  return 0;
 
7500
}
 
7501
_ACEOF
 
7502
if ac_fn_c_try_link "$LINENO"; then :
 
7503
  eval $cacheid=yes
 
7504
else
 
7505
  eval $cacheid=no
 
7506
fi
 
7507
rm -f core conftest.err conftest.$ac_objext \
 
7508
    conftest$ac_exeext conftest.$ac_ext
 
7509
fi
 
7510
 
 
7511
 
 
7512
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7513
 
 
7514
                eval supported=\$$cacheid
 
7515
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7516
$as_echo "$supported" >&6; }
 
7517
                if test "$supported" = "yes" ; then
 
7518
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
 
7519
                        found="yes"
 
7520
                fi
 
7521
        fi
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
 
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
 
 
7535
 
 
7536
 
 
7537
xorg_testset_save_CFLAGS="$CFLAGS"
 
7538
 
 
7539
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7540
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7541
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7542
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7543
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7544
  $as_echo_n "(cached) " >&6
 
7545
else
 
7546
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7547
/* end confdefs.h.  */
 
7548
int i;
 
7549
_ACEOF
 
7550
if ac_fn_c_try_compile "$LINENO"; then :
 
7551
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7552
else
 
7553
  xorg_cv_cc_flag_unknown_warning_option=no
 
7554
fi
 
7555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7556
fi
 
7557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7558
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7559
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7560
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7561
fi
 
7562
 
 
7563
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7564
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7565
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7566
        fi
 
7567
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7568
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7569
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7570
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7571
  $as_echo_n "(cached) " >&6
 
7572
else
 
7573
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7574
/* end confdefs.h.  */
 
7575
int i;
 
7576
_ACEOF
 
7577
if ac_fn_c_try_compile "$LINENO"; then :
 
7578
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7579
else
 
7580
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7581
fi
 
7582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7583
fi
 
7584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7585
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7586
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7587
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7588
fi
 
7589
 
 
7590
found="no"
 
7591
 
 
7592
        if test $found = "no" ; then
 
7593
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7594
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7595
                fi
 
7596
 
 
7597
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7598
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7599
                fi
 
7600
 
 
7601
                CFLAGS="$CFLAGS -Werror=return-type"
 
7602
 
 
7603
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
 
7604
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
 
7605
                cacheid=xorg_cv_cc_flag__Werror_return_type
 
7606
                if eval \${$cacheid+:} false; then :
 
7607
  $as_echo_n "(cached) " >&6
 
7608
else
 
7609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7610
/* end confdefs.h.  */
 
7611
int i;
 
7612
int
 
7613
main ()
 
7614
{
 
7615
 
 
7616
  ;
 
7617
  return 0;
 
7618
}
 
7619
_ACEOF
 
7620
if ac_fn_c_try_link "$LINENO"; then :
 
7621
  eval $cacheid=yes
 
7622
else
 
7623
  eval $cacheid=no
 
7624
fi
 
7625
rm -f core conftest.err conftest.$ac_objext \
 
7626
    conftest$ac_exeext conftest.$ac_ext
 
7627
fi
 
7628
 
 
7629
 
 
7630
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7631
 
 
7632
                eval supported=\$$cacheid
 
7633
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7634
$as_echo "$supported" >&6; }
 
7635
                if test "$supported" = "yes" ; then
 
7636
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
 
7637
                        found="yes"
 
7638
                fi
 
7639
        fi
 
7640
 
 
7641
        if test $found = "no" ; then
 
7642
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7643
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7644
                fi
 
7645
 
 
7646
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7647
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7648
                fi
 
7649
 
 
7650
                CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
 
7651
 
 
7652
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
 
7653
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
 
7654
                cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
 
7655
                if eval \${$cacheid+:} false; then :
 
7656
  $as_echo_n "(cached) " >&6
 
7657
else
 
7658
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7659
/* end confdefs.h.  */
 
7660
int i;
 
7661
int
 
7662
main ()
 
7663
{
 
7664
 
 
7665
  ;
 
7666
  return 0;
 
7667
}
 
7668
_ACEOF
 
7669
if ac_fn_c_try_link "$LINENO"; then :
 
7670
  eval $cacheid=yes
 
7671
else
 
7672
  eval $cacheid=no
 
7673
fi
 
7674
rm -f core conftest.err conftest.$ac_objext \
 
7675
    conftest$ac_exeext conftest.$ac_ext
 
7676
fi
 
7677
 
 
7678
 
 
7679
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7680
 
 
7681
                eval supported=\$$cacheid
 
7682
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7683
$as_echo "$supported" >&6; }
 
7684
                if test "$supported" = "yes" ; then
 
7685
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
 
7686
                        found="yes"
 
7687
                fi
 
7688
        fi
 
7689
 
 
7690
 
 
7691
 
 
7692
 
 
7693
 
 
7694
 
 
7695
 
 
7696
 
 
7697
 
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
 
 
7703
 
 
7704
xorg_testset_save_CFLAGS="$CFLAGS"
 
7705
 
 
7706
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7707
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7708
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7709
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7710
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7711
  $as_echo_n "(cached) " >&6
 
7712
else
 
7713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7714
/* end confdefs.h.  */
 
7715
int i;
 
7716
_ACEOF
 
7717
if ac_fn_c_try_compile "$LINENO"; then :
 
7718
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7719
else
 
7720
  xorg_cv_cc_flag_unknown_warning_option=no
 
7721
fi
 
7722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7723
fi
 
7724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7725
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7726
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7727
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7728
fi
 
7729
 
 
7730
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7731
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7732
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7733
        fi
 
7734
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7735
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7736
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7737
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7738
  $as_echo_n "(cached) " >&6
 
7739
else
 
7740
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7741
/* end confdefs.h.  */
 
7742
int i;
 
7743
_ACEOF
 
7744
if ac_fn_c_try_compile "$LINENO"; then :
 
7745
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7746
else
 
7747
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7748
fi
 
7749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7750
fi
 
7751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7752
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7753
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7754
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7755
fi
 
7756
 
 
7757
found="no"
 
7758
 
 
7759
        if test $found = "no" ; then
 
7760
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7761
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7762
                fi
 
7763
 
 
7764
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7765
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7766
                fi
 
7767
 
 
7768
                CFLAGS="$CFLAGS -Werror=trigraphs"
 
7769
 
 
7770
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
 
7771
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
 
7772
                cacheid=xorg_cv_cc_flag__Werror_trigraphs
 
7773
                if eval \${$cacheid+:} false; then :
 
7774
  $as_echo_n "(cached) " >&6
 
7775
else
 
7776
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7777
/* end confdefs.h.  */
 
7778
int i;
 
7779
int
 
7780
main ()
 
7781
{
 
7782
 
 
7783
  ;
 
7784
  return 0;
 
7785
}
 
7786
_ACEOF
 
7787
if ac_fn_c_try_link "$LINENO"; then :
 
7788
  eval $cacheid=yes
 
7789
else
 
7790
  eval $cacheid=no
 
7791
fi
 
7792
rm -f core conftest.err conftest.$ac_objext \
 
7793
    conftest$ac_exeext conftest.$ac_ext
 
7794
fi
 
7795
 
 
7796
 
 
7797
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7798
 
 
7799
                eval supported=\$$cacheid
 
7800
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7801
$as_echo "$supported" >&6; }
 
7802
                if test "$supported" = "yes" ; then
 
7803
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
 
7804
                        found="yes"
 
7805
                fi
 
7806
        fi
 
7807
 
 
7808
 
 
7809
 
 
7810
 
 
7811
 
 
7812
 
 
7813
 
 
7814
 
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
 
 
7820
 
 
7821
 
 
7822
xorg_testset_save_CFLAGS="$CFLAGS"
 
7823
 
 
7824
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7825
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7826
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7827
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7828
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7829
  $as_echo_n "(cached) " >&6
 
7830
else
 
7831
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7832
/* end confdefs.h.  */
 
7833
int i;
 
7834
_ACEOF
 
7835
if ac_fn_c_try_compile "$LINENO"; then :
 
7836
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7837
else
 
7838
  xorg_cv_cc_flag_unknown_warning_option=no
 
7839
fi
 
7840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7841
fi
 
7842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7843
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7844
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7845
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7846
fi
 
7847
 
 
7848
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7849
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7850
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7851
        fi
 
7852
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7853
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7854
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7855
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7856
  $as_echo_n "(cached) " >&6
 
7857
else
 
7858
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7859
/* end confdefs.h.  */
 
7860
int i;
 
7861
_ACEOF
 
7862
if ac_fn_c_try_compile "$LINENO"; then :
 
7863
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7864
else
 
7865
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7866
fi
 
7867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7868
fi
 
7869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7870
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7871
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7872
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7873
fi
 
7874
 
 
7875
found="no"
 
7876
 
 
7877
        if test $found = "no" ; then
 
7878
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7879
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7880
                fi
 
7881
 
 
7882
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
7883
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7884
                fi
 
7885
 
 
7886
                CFLAGS="$CFLAGS -Werror=array-bounds"
 
7887
 
 
7888
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
 
7889
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
 
7890
                cacheid=xorg_cv_cc_flag__Werror_array_bounds
 
7891
                if eval \${$cacheid+:} false; then :
 
7892
  $as_echo_n "(cached) " >&6
 
7893
else
 
7894
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7895
/* end confdefs.h.  */
 
7896
int i;
 
7897
int
 
7898
main ()
 
7899
{
 
7900
 
 
7901
  ;
 
7902
  return 0;
 
7903
}
 
7904
_ACEOF
 
7905
if ac_fn_c_try_link "$LINENO"; then :
 
7906
  eval $cacheid=yes
 
7907
else
 
7908
  eval $cacheid=no
 
7909
fi
 
7910
rm -f core conftest.err conftest.$ac_objext \
 
7911
    conftest$ac_exeext conftest.$ac_ext
 
7912
fi
 
7913
 
 
7914
 
 
7915
                CFLAGS="$xorg_testset_save_CFLAGS"
 
7916
 
 
7917
                eval supported=\$$cacheid
 
7918
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
7919
$as_echo "$supported" >&6; }
 
7920
                if test "$supported" = "yes" ; then
 
7921
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
 
7922
                        found="yes"
 
7923
                fi
 
7924
        fi
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
xorg_testset_save_CFLAGS="$CFLAGS"
 
7941
 
 
7942
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
7943
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7944
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
7945
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
7946
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
7947
  $as_echo_n "(cached) " >&6
 
7948
else
 
7949
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7950
/* end confdefs.h.  */
 
7951
int i;
 
7952
_ACEOF
 
7953
if ac_fn_c_try_compile "$LINENO"; then :
 
7954
  xorg_cv_cc_flag_unknown_warning_option=yes
 
7955
else
 
7956
  xorg_cv_cc_flag_unknown_warning_option=no
 
7957
fi
 
7958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7959
fi
 
7960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
7961
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
7962
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
7963
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7964
fi
 
7965
 
 
7966
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
7967
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7968
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7969
        fi
 
7970
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
7971
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
7972
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
7973
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
7974
  $as_echo_n "(cached) " >&6
 
7975
else
 
7976
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7977
/* end confdefs.h.  */
 
7978
int i;
 
7979
_ACEOF
 
7980
if ac_fn_c_try_compile "$LINENO"; then :
 
7981
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
7982
else
 
7983
  xorg_cv_cc_flag_unused_command_line_argument=no
 
7984
fi
 
7985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7986
fi
 
7987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
7988
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
7989
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
7990
        CFLAGS="$xorg_testset_save_CFLAGS"
 
7991
fi
 
7992
 
 
7993
found="no"
 
7994
 
 
7995
        if test $found = "no" ; then
 
7996
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
7997
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
7998
                fi
 
7999
 
 
8000
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8001
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8002
                fi
 
8003
 
 
8004
                CFLAGS="$CFLAGS -Werror=write-strings"
 
8005
 
 
8006
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
 
8007
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
 
8008
                cacheid=xorg_cv_cc_flag__Werror_write_strings
 
8009
                if eval \${$cacheid+:} false; then :
 
8010
  $as_echo_n "(cached) " >&6
 
8011
else
 
8012
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8013
/* end confdefs.h.  */
 
8014
int i;
 
8015
int
 
8016
main ()
 
8017
{
 
8018
 
 
8019
  ;
 
8020
  return 0;
 
8021
}
 
8022
_ACEOF
 
8023
if ac_fn_c_try_link "$LINENO"; then :
 
8024
  eval $cacheid=yes
 
8025
else
 
8026
  eval $cacheid=no
 
8027
fi
 
8028
rm -f core conftest.err conftest.$ac_objext \
 
8029
    conftest$ac_exeext conftest.$ac_ext
 
8030
fi
 
8031
 
 
8032
 
 
8033
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8034
 
 
8035
                eval supported=\$$cacheid
 
8036
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8037
$as_echo "$supported" >&6; }
 
8038
                if test "$supported" = "yes" ; then
 
8039
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
 
8040
                        found="yes"
 
8041
                fi
 
8042
        fi
 
8043
 
 
8044
 
 
8045
 
 
8046
 
 
8047
 
 
8048
 
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
xorg_testset_save_CFLAGS="$CFLAGS"
 
8059
 
 
8060
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8061
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8062
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8063
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8064
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8065
  $as_echo_n "(cached) " >&6
 
8066
else
 
8067
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8068
/* end confdefs.h.  */
 
8069
int i;
 
8070
_ACEOF
 
8071
if ac_fn_c_try_compile "$LINENO"; then :
 
8072
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8073
else
 
8074
  xorg_cv_cc_flag_unknown_warning_option=no
 
8075
fi
 
8076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8077
fi
 
8078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8079
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8080
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8081
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8082
fi
 
8083
 
 
8084
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8085
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8086
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8087
        fi
 
8088
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8089
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8090
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8091
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8092
  $as_echo_n "(cached) " >&6
 
8093
else
 
8094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8095
/* end confdefs.h.  */
 
8096
int i;
 
8097
_ACEOF
 
8098
if ac_fn_c_try_compile "$LINENO"; then :
 
8099
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8100
else
 
8101
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8102
fi
 
8103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8104
fi
 
8105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8106
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8107
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8108
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8109
fi
 
8110
 
 
8111
found="no"
 
8112
 
 
8113
        if test $found = "no" ; then
 
8114
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8115
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8116
                fi
 
8117
 
 
8118
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8119
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8120
                fi
 
8121
 
 
8122
                CFLAGS="$CFLAGS -Werror=address"
 
8123
 
 
8124
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
 
8125
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
 
8126
                cacheid=xorg_cv_cc_flag__Werror_address
 
8127
                if eval \${$cacheid+:} false; then :
 
8128
  $as_echo_n "(cached) " >&6
 
8129
else
 
8130
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8131
/* end confdefs.h.  */
 
8132
int i;
 
8133
int
 
8134
main ()
 
8135
{
 
8136
 
 
8137
  ;
 
8138
  return 0;
 
8139
}
 
8140
_ACEOF
 
8141
if ac_fn_c_try_link "$LINENO"; then :
 
8142
  eval $cacheid=yes
 
8143
else
 
8144
  eval $cacheid=no
 
8145
fi
 
8146
rm -f core conftest.err conftest.$ac_objext \
 
8147
    conftest$ac_exeext conftest.$ac_ext
 
8148
fi
 
8149
 
 
8150
 
 
8151
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8152
 
 
8153
                eval supported=\$$cacheid
 
8154
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8155
$as_echo "$supported" >&6; }
 
8156
                if test "$supported" = "yes" ; then
 
8157
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
 
8158
                        found="yes"
 
8159
                fi
 
8160
        fi
 
8161
 
 
8162
 
 
8163
 
 
8164
 
 
8165
 
 
8166
 
 
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
 
8175
 
 
8176
xorg_testset_save_CFLAGS="$CFLAGS"
 
8177
 
 
8178
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8179
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8180
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8181
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8182
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8183
  $as_echo_n "(cached) " >&6
 
8184
else
 
8185
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8186
/* end confdefs.h.  */
 
8187
int i;
 
8188
_ACEOF
 
8189
if ac_fn_c_try_compile "$LINENO"; then :
 
8190
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8191
else
 
8192
  xorg_cv_cc_flag_unknown_warning_option=no
 
8193
fi
 
8194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8195
fi
 
8196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8197
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8198
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8199
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8200
fi
 
8201
 
 
8202
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8203
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8204
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8205
        fi
 
8206
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8207
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8208
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8209
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8210
  $as_echo_n "(cached) " >&6
 
8211
else
 
8212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8213
/* end confdefs.h.  */
 
8214
int i;
 
8215
_ACEOF
 
8216
if ac_fn_c_try_compile "$LINENO"; then :
 
8217
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8218
else
 
8219
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8220
fi
 
8221
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8222
fi
 
8223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8224
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8225
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8226
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8227
fi
 
8228
 
 
8229
found="no"
 
8230
 
 
8231
        if test $found = "no" ; then
 
8232
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8233
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8234
                fi
 
8235
 
 
8236
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8237
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8238
                fi
 
8239
 
 
8240
                CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
 
8241
 
 
8242
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
 
8243
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
 
8244
                cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
 
8245
                if eval \${$cacheid+:} false; then :
 
8246
  $as_echo_n "(cached) " >&6
 
8247
else
 
8248
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8249
/* end confdefs.h.  */
 
8250
int i;
 
8251
int
 
8252
main ()
 
8253
{
 
8254
 
 
8255
  ;
 
8256
  return 0;
 
8257
}
 
8258
_ACEOF
 
8259
if ac_fn_c_try_link "$LINENO"; then :
 
8260
  eval $cacheid=yes
 
8261
else
 
8262
  eval $cacheid=no
 
8263
fi
 
8264
rm -f core conftest.err conftest.$ac_objext \
 
8265
    conftest$ac_exeext conftest.$ac_ext
 
8266
fi
 
8267
 
 
8268
 
 
8269
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8270
 
 
8271
                eval supported=\$$cacheid
 
8272
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8273
$as_echo "$supported" >&6; }
 
8274
                if test "$supported" = "yes" ; then
 
8275
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
 
8276
                        found="yes"
 
8277
                fi
 
8278
        fi
 
8279
 
 
8280
        if test $found = "no" ; then
 
8281
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8282
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8283
                fi
 
8284
 
 
8285
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8286
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8287
                fi
 
8288
 
 
8289
                CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
 
8290
 
 
8291
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
 
8292
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
 
8293
                cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
 
8294
                if eval \${$cacheid+:} false; then :
 
8295
  $as_echo_n "(cached) " >&6
 
8296
else
 
8297
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8298
/* end confdefs.h.  */
 
8299
int i;
 
8300
int
 
8301
main ()
 
8302
{
 
8303
 
 
8304
  ;
 
8305
  return 0;
 
8306
}
 
8307
_ACEOF
 
8308
if ac_fn_c_try_link "$LINENO"; then :
 
8309
  eval $cacheid=yes
 
8310
else
 
8311
  eval $cacheid=no
 
8312
fi
 
8313
rm -f core conftest.err conftest.$ac_objext \
 
8314
    conftest$ac_exeext conftest.$ac_ext
 
8315
fi
 
8316
 
 
8317
 
 
8318
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8319
 
 
8320
                eval supported=\$$cacheid
 
8321
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8322
$as_echo "$supported" >&6; }
 
8323
                if test "$supported" = "yes" ; then
 
8324
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
 
8325
                        found="yes"
 
8326
                fi
 
8327
        fi
 
8328
 
 
8329
 
 
8330
 
 
8331
 
 
8332
 
 
8333
 
 
8334
 
 
8335
 
 
8336
 
 
8337
 
 
8338
 
 
8339
 
 
8340
 
 
8341
 
 
8342
 
 
8343
xorg_testset_save_CFLAGS="$CFLAGS"
 
8344
 
 
8345
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8346
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8347
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8348
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8349
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8350
  $as_echo_n "(cached) " >&6
 
8351
else
 
8352
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8353
/* end confdefs.h.  */
 
8354
int i;
 
8355
_ACEOF
 
8356
if ac_fn_c_try_compile "$LINENO"; then :
 
8357
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8358
else
 
8359
  xorg_cv_cc_flag_unknown_warning_option=no
 
8360
fi
 
8361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8362
fi
 
8363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8364
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8365
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8366
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8367
fi
 
8368
 
 
8369
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8370
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8371
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8372
        fi
 
8373
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8374
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8375
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8376
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8377
  $as_echo_n "(cached) " >&6
 
8378
else
 
8379
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8380
/* end confdefs.h.  */
 
8381
int i;
 
8382
_ACEOF
 
8383
if ac_fn_c_try_compile "$LINENO"; then :
 
8384
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8385
else
 
8386
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8387
fi
 
8388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8389
fi
 
8390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8391
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8392
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8393
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8394
fi
 
8395
 
 
8396
found="no"
 
8397
 
 
8398
        if test $found = "no" ; then
 
8399
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8400
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8401
                fi
 
8402
 
 
8403
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8404
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8405
                fi
 
8406
 
 
8407
                CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
 
8408
 
 
8409
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
 
8410
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
 
8411
                cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
 
8412
                if eval \${$cacheid+:} false; then :
 
8413
  $as_echo_n "(cached) " >&6
 
8414
else
 
8415
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8416
/* end confdefs.h.  */
 
8417
int i;
 
8418
int
 
8419
main ()
 
8420
{
 
8421
 
 
8422
  ;
 
8423
  return 0;
 
8424
}
 
8425
_ACEOF
 
8426
if ac_fn_c_try_link "$LINENO"; then :
 
8427
  eval $cacheid=yes
 
8428
else
 
8429
  eval $cacheid=no
 
8430
fi
 
8431
rm -f core conftest.err conftest.$ac_objext \
 
8432
    conftest$ac_exeext conftest.$ac_ext
 
8433
fi
 
8434
 
 
8435
 
 
8436
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8437
 
 
8438
                eval supported=\$$cacheid
 
8439
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8440
$as_echo "$supported" >&6; }
 
8441
                if test "$supported" = "yes" ; then
 
8442
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
 
8443
                        found="yes"
 
8444
                fi
 
8445
        fi
 
8446
 
 
8447
 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
 
8448
else
 
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
 
8450
$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
 
8451
 
 
8452
 
 
8453
 
 
8454
 
 
8455
 
 
8456
 
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
 
 
8462
 
 
8463
 
 
8464
xorg_testset_save_CFLAGS="$CFLAGS"
 
8465
 
 
8466
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8467
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8468
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8469
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8470
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8471
  $as_echo_n "(cached) " >&6
 
8472
else
 
8473
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8474
/* end confdefs.h.  */
 
8475
int i;
 
8476
_ACEOF
 
8477
if ac_fn_c_try_compile "$LINENO"; then :
 
8478
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8479
else
 
8480
  xorg_cv_cc_flag_unknown_warning_option=no
 
8481
fi
 
8482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8483
fi
 
8484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8485
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8486
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8487
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8488
fi
 
8489
 
 
8490
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8491
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8492
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8493
        fi
 
8494
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8495
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8496
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8497
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8498
  $as_echo_n "(cached) " >&6
 
8499
else
 
8500
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8501
/* end confdefs.h.  */
 
8502
int i;
 
8503
_ACEOF
 
8504
if ac_fn_c_try_compile "$LINENO"; then :
 
8505
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8506
else
 
8507
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8508
fi
 
8509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8510
fi
 
8511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8512
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8513
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8514
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8515
fi
 
8516
 
 
8517
found="no"
 
8518
 
 
8519
        if test $found = "no" ; then
 
8520
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8521
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8522
                fi
 
8523
 
 
8524
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8525
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8526
                fi
 
8527
 
 
8528
                CFLAGS="$CFLAGS -Wimplicit"
 
8529
 
 
8530
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
 
8531
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
 
8532
                cacheid=xorg_cv_cc_flag__Wimplicit
 
8533
                if eval \${$cacheid+:} false; then :
 
8534
  $as_echo_n "(cached) " >&6
 
8535
else
 
8536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8537
/* end confdefs.h.  */
 
8538
int i;
 
8539
int
 
8540
main ()
 
8541
{
 
8542
 
 
8543
  ;
 
8544
  return 0;
 
8545
}
 
8546
_ACEOF
 
8547
if ac_fn_c_try_link "$LINENO"; then :
 
8548
  eval $cacheid=yes
 
8549
else
 
8550
  eval $cacheid=no
 
8551
fi
 
8552
rm -f core conftest.err conftest.$ac_objext \
 
8553
    conftest$ac_exeext conftest.$ac_ext
 
8554
fi
 
8555
 
 
8556
 
 
8557
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8558
 
 
8559
                eval supported=\$$cacheid
 
8560
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8561
$as_echo "$supported" >&6; }
 
8562
                if test "$supported" = "yes" ; then
 
8563
                        BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
 
8564
                        found="yes"
 
8565
                fi
 
8566
        fi
 
8567
 
 
8568
 
 
8569
 
 
8570
 
 
8571
 
 
8572
 
 
8573
 
 
8574
 
 
8575
 
 
8576
 
 
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
xorg_testset_save_CFLAGS="$CFLAGS"
 
8583
 
 
8584
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8585
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8586
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8587
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8588
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8589
  $as_echo_n "(cached) " >&6
 
8590
else
 
8591
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8592
/* end confdefs.h.  */
 
8593
int i;
 
8594
_ACEOF
 
8595
if ac_fn_c_try_compile "$LINENO"; then :
 
8596
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8597
else
 
8598
  xorg_cv_cc_flag_unknown_warning_option=no
 
8599
fi
 
8600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8601
fi
 
8602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8603
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8604
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8605
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8606
fi
 
8607
 
 
8608
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8609
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8610
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8611
        fi
 
8612
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8613
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8614
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8615
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8616
  $as_echo_n "(cached) " >&6
 
8617
else
 
8618
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8619
/* end confdefs.h.  */
 
8620
int i;
 
8621
_ACEOF
 
8622
if ac_fn_c_try_compile "$LINENO"; then :
 
8623
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8624
else
 
8625
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8626
fi
 
8627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8628
fi
 
8629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8630
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8631
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8632
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8633
fi
 
8634
 
 
8635
found="no"
 
8636
 
 
8637
        if test $found = "no" ; then
 
8638
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8639
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8640
                fi
 
8641
 
 
8642
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8643
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8644
                fi
 
8645
 
 
8646
                CFLAGS="$CFLAGS -Wnonnull"
 
8647
 
 
8648
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
 
8649
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
 
8650
                cacheid=xorg_cv_cc_flag__Wnonnull
 
8651
                if eval \${$cacheid+:} false; then :
 
8652
  $as_echo_n "(cached) " >&6
 
8653
else
 
8654
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8655
/* end confdefs.h.  */
 
8656
int i;
 
8657
int
 
8658
main ()
 
8659
{
 
8660
 
 
8661
  ;
 
8662
  return 0;
 
8663
}
 
8664
_ACEOF
 
8665
if ac_fn_c_try_link "$LINENO"; then :
 
8666
  eval $cacheid=yes
 
8667
else
 
8668
  eval $cacheid=no
 
8669
fi
 
8670
rm -f core conftest.err conftest.$ac_objext \
 
8671
    conftest$ac_exeext conftest.$ac_ext
 
8672
fi
 
8673
 
 
8674
 
 
8675
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8676
 
 
8677
                eval supported=\$$cacheid
 
8678
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8679
$as_echo "$supported" >&6; }
 
8680
                if test "$supported" = "yes" ; then
 
8681
                        BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
 
8682
                        found="yes"
 
8683
                fi
 
8684
        fi
 
8685
 
 
8686
 
 
8687
 
 
8688
 
 
8689
 
 
8690
 
 
8691
 
 
8692
 
 
8693
 
 
8694
 
 
8695
 
 
8696
 
 
8697
 
 
8698
 
 
8699
 
 
8700
xorg_testset_save_CFLAGS="$CFLAGS"
 
8701
 
 
8702
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8703
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8704
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8705
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8706
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8707
  $as_echo_n "(cached) " >&6
 
8708
else
 
8709
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8710
/* end confdefs.h.  */
 
8711
int i;
 
8712
_ACEOF
 
8713
if ac_fn_c_try_compile "$LINENO"; then :
 
8714
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8715
else
 
8716
  xorg_cv_cc_flag_unknown_warning_option=no
 
8717
fi
 
8718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8719
fi
 
8720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8721
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8722
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8723
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8724
fi
 
8725
 
 
8726
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8727
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8728
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8729
        fi
 
8730
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8731
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8732
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8733
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8734
  $as_echo_n "(cached) " >&6
 
8735
else
 
8736
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8737
/* end confdefs.h.  */
 
8738
int i;
 
8739
_ACEOF
 
8740
if ac_fn_c_try_compile "$LINENO"; then :
 
8741
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8742
else
 
8743
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8744
fi
 
8745
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8746
fi
 
8747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8748
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8749
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8750
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8751
fi
 
8752
 
 
8753
found="no"
 
8754
 
 
8755
        if test $found = "no" ; then
 
8756
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8757
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8758
                fi
 
8759
 
 
8760
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8761
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8762
                fi
 
8763
 
 
8764
                CFLAGS="$CFLAGS -Winit-self"
 
8765
 
 
8766
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
 
8767
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
 
8768
                cacheid=xorg_cv_cc_flag__Winit_self
 
8769
                if eval \${$cacheid+:} false; then :
 
8770
  $as_echo_n "(cached) " >&6
 
8771
else
 
8772
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8773
/* end confdefs.h.  */
 
8774
int i;
 
8775
int
 
8776
main ()
 
8777
{
 
8778
 
 
8779
  ;
 
8780
  return 0;
 
8781
}
 
8782
_ACEOF
 
8783
if ac_fn_c_try_link "$LINENO"; then :
 
8784
  eval $cacheid=yes
 
8785
else
 
8786
  eval $cacheid=no
 
8787
fi
 
8788
rm -f core conftest.err conftest.$ac_objext \
 
8789
    conftest$ac_exeext conftest.$ac_ext
 
8790
fi
 
8791
 
 
8792
 
 
8793
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8794
 
 
8795
                eval supported=\$$cacheid
 
8796
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8797
$as_echo "$supported" >&6; }
 
8798
                if test "$supported" = "yes" ; then
 
8799
                        BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
 
8800
                        found="yes"
 
8801
                fi
 
8802
        fi
 
8803
 
 
8804
 
 
8805
 
 
8806
 
 
8807
 
 
8808
 
 
8809
 
 
8810
 
 
8811
 
 
8812
 
 
8813
 
 
8814
 
 
8815
 
 
8816
 
 
8817
 
 
8818
xorg_testset_save_CFLAGS="$CFLAGS"
 
8819
 
 
8820
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8821
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8822
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8823
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8824
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8825
  $as_echo_n "(cached) " >&6
 
8826
else
 
8827
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8828
/* end confdefs.h.  */
 
8829
int i;
 
8830
_ACEOF
 
8831
if ac_fn_c_try_compile "$LINENO"; then :
 
8832
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8833
else
 
8834
  xorg_cv_cc_flag_unknown_warning_option=no
 
8835
fi
 
8836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8837
fi
 
8838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8839
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8840
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8841
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8842
fi
 
8843
 
 
8844
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8845
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8846
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8847
        fi
 
8848
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8849
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8850
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8851
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8852
  $as_echo_n "(cached) " >&6
 
8853
else
 
8854
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8855
/* end confdefs.h.  */
 
8856
int i;
 
8857
_ACEOF
 
8858
if ac_fn_c_try_compile "$LINENO"; then :
 
8859
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8860
else
 
8861
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8862
fi
 
8863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8864
fi
 
8865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8866
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8867
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8868
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8869
fi
 
8870
 
 
8871
found="no"
 
8872
 
 
8873
        if test $found = "no" ; then
 
8874
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8875
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8876
                fi
 
8877
 
 
8878
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8879
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8880
                fi
 
8881
 
 
8882
                CFLAGS="$CFLAGS -Wmain"
 
8883
 
 
8884
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
 
8885
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
 
8886
                cacheid=xorg_cv_cc_flag__Wmain
 
8887
                if eval \${$cacheid+:} false; then :
 
8888
  $as_echo_n "(cached) " >&6
 
8889
else
 
8890
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8891
/* end confdefs.h.  */
 
8892
int i;
 
8893
int
 
8894
main ()
 
8895
{
 
8896
 
 
8897
  ;
 
8898
  return 0;
 
8899
}
 
8900
_ACEOF
 
8901
if ac_fn_c_try_link "$LINENO"; then :
 
8902
  eval $cacheid=yes
 
8903
else
 
8904
  eval $cacheid=no
 
8905
fi
 
8906
rm -f core conftest.err conftest.$ac_objext \
 
8907
    conftest$ac_exeext conftest.$ac_ext
 
8908
fi
 
8909
 
 
8910
 
 
8911
                CFLAGS="$xorg_testset_save_CFLAGS"
 
8912
 
 
8913
                eval supported=\$$cacheid
 
8914
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
8915
$as_echo "$supported" >&6; }
 
8916
                if test "$supported" = "yes" ; then
 
8917
                        BASE_CFLAGS="$BASE_CFLAGS -Wmain"
 
8918
                        found="yes"
 
8919
                fi
 
8920
        fi
 
8921
 
 
8922
 
 
8923
 
 
8924
 
 
8925
 
 
8926
 
 
8927
 
 
8928
 
 
8929
 
 
8930
 
 
8931
 
 
8932
 
 
8933
 
 
8934
 
 
8935
 
 
8936
xorg_testset_save_CFLAGS="$CFLAGS"
 
8937
 
 
8938
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
8939
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8940
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
8941
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
8942
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
8943
  $as_echo_n "(cached) " >&6
 
8944
else
 
8945
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8946
/* end confdefs.h.  */
 
8947
int i;
 
8948
_ACEOF
 
8949
if ac_fn_c_try_compile "$LINENO"; then :
 
8950
  xorg_cv_cc_flag_unknown_warning_option=yes
 
8951
else
 
8952
  xorg_cv_cc_flag_unknown_warning_option=no
 
8953
fi
 
8954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8955
fi
 
8956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
8957
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
8958
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
8959
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8960
fi
 
8961
 
 
8962
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
8963
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8964
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8965
        fi
 
8966
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8967
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
8968
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
8969
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
8970
  $as_echo_n "(cached) " >&6
 
8971
else
 
8972
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8973
/* end confdefs.h.  */
 
8974
int i;
 
8975
_ACEOF
 
8976
if ac_fn_c_try_compile "$LINENO"; then :
 
8977
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
8978
else
 
8979
  xorg_cv_cc_flag_unused_command_line_argument=no
 
8980
fi
 
8981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8982
fi
 
8983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
8984
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
8985
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
8986
        CFLAGS="$xorg_testset_save_CFLAGS"
 
8987
fi
 
8988
 
 
8989
found="no"
 
8990
 
 
8991
        if test $found = "no" ; then
 
8992
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
8993
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
8994
                fi
 
8995
 
 
8996
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
8997
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
8998
                fi
 
8999
 
 
9000
                CFLAGS="$CFLAGS -Wmissing-braces"
 
9001
 
 
9002
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
 
9003
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
 
9004
                cacheid=xorg_cv_cc_flag__Wmissing_braces
 
9005
                if eval \${$cacheid+:} false; then :
 
9006
  $as_echo_n "(cached) " >&6
 
9007
else
 
9008
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9009
/* end confdefs.h.  */
 
9010
int i;
 
9011
int
 
9012
main ()
 
9013
{
 
9014
 
 
9015
  ;
 
9016
  return 0;
 
9017
}
 
9018
_ACEOF
 
9019
if ac_fn_c_try_link "$LINENO"; then :
 
9020
  eval $cacheid=yes
 
9021
else
 
9022
  eval $cacheid=no
 
9023
fi
 
9024
rm -f core conftest.err conftest.$ac_objext \
 
9025
    conftest$ac_exeext conftest.$ac_ext
 
9026
fi
 
9027
 
 
9028
 
 
9029
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9030
 
 
9031
                eval supported=\$$cacheid
 
9032
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9033
$as_echo "$supported" >&6; }
 
9034
                if test "$supported" = "yes" ; then
 
9035
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
 
9036
                        found="yes"
 
9037
                fi
 
9038
        fi
 
9039
 
 
9040
 
 
9041
 
 
9042
 
 
9043
 
 
9044
 
 
9045
 
 
9046
 
 
9047
 
 
9048
 
 
9049
 
 
9050
 
 
9051
 
 
9052
 
 
9053
 
 
9054
xorg_testset_save_CFLAGS="$CFLAGS"
 
9055
 
 
9056
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9057
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9058
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9059
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9060
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9061
  $as_echo_n "(cached) " >&6
 
9062
else
 
9063
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9064
/* end confdefs.h.  */
 
9065
int i;
 
9066
_ACEOF
 
9067
if ac_fn_c_try_compile "$LINENO"; then :
 
9068
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9069
else
 
9070
  xorg_cv_cc_flag_unknown_warning_option=no
 
9071
fi
 
9072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9073
fi
 
9074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9075
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9076
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9077
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9078
fi
 
9079
 
 
9080
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9081
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9082
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9083
        fi
 
9084
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9085
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9086
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9087
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9088
  $as_echo_n "(cached) " >&6
 
9089
else
 
9090
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9091
/* end confdefs.h.  */
 
9092
int i;
 
9093
_ACEOF
 
9094
if ac_fn_c_try_compile "$LINENO"; then :
 
9095
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9096
else
 
9097
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9098
fi
 
9099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9100
fi
 
9101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9102
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9103
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9104
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9105
fi
 
9106
 
 
9107
found="no"
 
9108
 
 
9109
        if test $found = "no" ; then
 
9110
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9111
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9112
                fi
 
9113
 
 
9114
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9115
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9116
                fi
 
9117
 
 
9118
                CFLAGS="$CFLAGS -Wsequence-point"
 
9119
 
 
9120
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
 
9121
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
 
9122
                cacheid=xorg_cv_cc_flag__Wsequence_point
 
9123
                if eval \${$cacheid+:} false; then :
 
9124
  $as_echo_n "(cached) " >&6
 
9125
else
 
9126
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9127
/* end confdefs.h.  */
 
9128
int i;
 
9129
int
 
9130
main ()
 
9131
{
 
9132
 
 
9133
  ;
 
9134
  return 0;
 
9135
}
 
9136
_ACEOF
 
9137
if ac_fn_c_try_link "$LINENO"; then :
 
9138
  eval $cacheid=yes
 
9139
else
 
9140
  eval $cacheid=no
 
9141
fi
 
9142
rm -f core conftest.err conftest.$ac_objext \
 
9143
    conftest$ac_exeext conftest.$ac_ext
 
9144
fi
 
9145
 
 
9146
 
 
9147
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9148
 
 
9149
                eval supported=\$$cacheid
 
9150
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9151
$as_echo "$supported" >&6; }
 
9152
                if test "$supported" = "yes" ; then
 
9153
                        BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
 
9154
                        found="yes"
 
9155
                fi
 
9156
        fi
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
 
 
9163
 
 
9164
 
 
9165
 
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
 
 
9171
 
 
9172
xorg_testset_save_CFLAGS="$CFLAGS"
 
9173
 
 
9174
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9175
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9176
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9177
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9178
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9179
  $as_echo_n "(cached) " >&6
 
9180
else
 
9181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9182
/* end confdefs.h.  */
 
9183
int i;
 
9184
_ACEOF
 
9185
if ac_fn_c_try_compile "$LINENO"; then :
 
9186
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9187
else
 
9188
  xorg_cv_cc_flag_unknown_warning_option=no
 
9189
fi
 
9190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9191
fi
 
9192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9193
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9194
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9195
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9196
fi
 
9197
 
 
9198
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9199
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9200
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9201
        fi
 
9202
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9203
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9204
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9205
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9206
  $as_echo_n "(cached) " >&6
 
9207
else
 
9208
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9209
/* end confdefs.h.  */
 
9210
int i;
 
9211
_ACEOF
 
9212
if ac_fn_c_try_compile "$LINENO"; then :
 
9213
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9214
else
 
9215
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9216
fi
 
9217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9218
fi
 
9219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9220
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9221
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9222
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9223
fi
 
9224
 
 
9225
found="no"
 
9226
 
 
9227
        if test $found = "no" ; then
 
9228
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9229
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9230
                fi
 
9231
 
 
9232
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9233
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9234
                fi
 
9235
 
 
9236
                CFLAGS="$CFLAGS -Wreturn-type"
 
9237
 
 
9238
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
 
9239
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
 
9240
                cacheid=xorg_cv_cc_flag__Wreturn_type
 
9241
                if eval \${$cacheid+:} false; then :
 
9242
  $as_echo_n "(cached) " >&6
 
9243
else
 
9244
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9245
/* end confdefs.h.  */
 
9246
int i;
 
9247
int
 
9248
main ()
 
9249
{
 
9250
 
 
9251
  ;
 
9252
  return 0;
 
9253
}
 
9254
_ACEOF
 
9255
if ac_fn_c_try_link "$LINENO"; then :
 
9256
  eval $cacheid=yes
 
9257
else
 
9258
  eval $cacheid=no
 
9259
fi
 
9260
rm -f core conftest.err conftest.$ac_objext \
 
9261
    conftest$ac_exeext conftest.$ac_ext
 
9262
fi
 
9263
 
 
9264
 
 
9265
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9266
 
 
9267
                eval supported=\$$cacheid
 
9268
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9269
$as_echo "$supported" >&6; }
 
9270
                if test "$supported" = "yes" ; then
 
9271
                        BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
 
9272
                        found="yes"
 
9273
                fi
 
9274
        fi
 
9275
 
 
9276
 
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
 
9288
 
 
9289
 
 
9290
xorg_testset_save_CFLAGS="$CFLAGS"
 
9291
 
 
9292
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9293
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9294
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9295
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9296
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9297
  $as_echo_n "(cached) " >&6
 
9298
else
 
9299
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9300
/* end confdefs.h.  */
 
9301
int i;
 
9302
_ACEOF
 
9303
if ac_fn_c_try_compile "$LINENO"; then :
 
9304
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9305
else
 
9306
  xorg_cv_cc_flag_unknown_warning_option=no
 
9307
fi
 
9308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9309
fi
 
9310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9311
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9312
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9313
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9314
fi
 
9315
 
 
9316
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9317
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9318
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9319
        fi
 
9320
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9321
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9322
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9323
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9324
  $as_echo_n "(cached) " >&6
 
9325
else
 
9326
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9327
/* end confdefs.h.  */
 
9328
int i;
 
9329
_ACEOF
 
9330
if ac_fn_c_try_compile "$LINENO"; then :
 
9331
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9332
else
 
9333
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9334
fi
 
9335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9336
fi
 
9337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9338
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9339
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9340
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9341
fi
 
9342
 
 
9343
found="no"
 
9344
 
 
9345
        if test $found = "no" ; then
 
9346
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9347
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9348
                fi
 
9349
 
 
9350
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9351
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9352
                fi
 
9353
 
 
9354
                CFLAGS="$CFLAGS -Wtrigraphs"
 
9355
 
 
9356
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
 
9357
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
 
9358
                cacheid=xorg_cv_cc_flag__Wtrigraphs
 
9359
                if eval \${$cacheid+:} false; then :
 
9360
  $as_echo_n "(cached) " >&6
 
9361
else
 
9362
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9363
/* end confdefs.h.  */
 
9364
int i;
 
9365
int
 
9366
main ()
 
9367
{
 
9368
 
 
9369
  ;
 
9370
  return 0;
 
9371
}
 
9372
_ACEOF
 
9373
if ac_fn_c_try_link "$LINENO"; then :
 
9374
  eval $cacheid=yes
 
9375
else
 
9376
  eval $cacheid=no
 
9377
fi
 
9378
rm -f core conftest.err conftest.$ac_objext \
 
9379
    conftest$ac_exeext conftest.$ac_ext
 
9380
fi
 
9381
 
 
9382
 
 
9383
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9384
 
 
9385
                eval supported=\$$cacheid
 
9386
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9387
$as_echo "$supported" >&6; }
 
9388
                if test "$supported" = "yes" ; then
 
9389
                        BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
 
9390
                        found="yes"
 
9391
                fi
 
9392
        fi
 
9393
 
 
9394
 
 
9395
 
 
9396
 
 
9397
 
 
9398
 
 
9399
 
 
9400
 
 
9401
 
 
9402
 
 
9403
 
 
9404
 
 
9405
 
 
9406
 
 
9407
 
 
9408
xorg_testset_save_CFLAGS="$CFLAGS"
 
9409
 
 
9410
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9411
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9412
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9413
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9414
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9415
  $as_echo_n "(cached) " >&6
 
9416
else
 
9417
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9418
/* end confdefs.h.  */
 
9419
int i;
 
9420
_ACEOF
 
9421
if ac_fn_c_try_compile "$LINENO"; then :
 
9422
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9423
else
 
9424
  xorg_cv_cc_flag_unknown_warning_option=no
 
9425
fi
 
9426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9427
fi
 
9428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9429
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9430
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9431
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9432
fi
 
9433
 
 
9434
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9435
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9436
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9437
        fi
 
9438
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9439
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9440
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9441
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9442
  $as_echo_n "(cached) " >&6
 
9443
else
 
9444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9445
/* end confdefs.h.  */
 
9446
int i;
 
9447
_ACEOF
 
9448
if ac_fn_c_try_compile "$LINENO"; then :
 
9449
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9450
else
 
9451
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9452
fi
 
9453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9454
fi
 
9455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9456
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9457
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9458
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9459
fi
 
9460
 
 
9461
found="no"
 
9462
 
 
9463
        if test $found = "no" ; then
 
9464
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9465
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9466
                fi
 
9467
 
 
9468
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9469
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9470
                fi
 
9471
 
 
9472
                CFLAGS="$CFLAGS -Warray-bounds"
 
9473
 
 
9474
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
 
9475
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
 
9476
                cacheid=xorg_cv_cc_flag__Warray_bounds
 
9477
                if eval \${$cacheid+:} false; then :
 
9478
  $as_echo_n "(cached) " >&6
 
9479
else
 
9480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9481
/* end confdefs.h.  */
 
9482
int i;
 
9483
int
 
9484
main ()
 
9485
{
 
9486
 
 
9487
  ;
 
9488
  return 0;
 
9489
}
 
9490
_ACEOF
 
9491
if ac_fn_c_try_link "$LINENO"; then :
 
9492
  eval $cacheid=yes
 
9493
else
 
9494
  eval $cacheid=no
 
9495
fi
 
9496
rm -f core conftest.err conftest.$ac_objext \
 
9497
    conftest$ac_exeext conftest.$ac_ext
 
9498
fi
 
9499
 
 
9500
 
 
9501
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9502
 
 
9503
                eval supported=\$$cacheid
 
9504
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9505
$as_echo "$supported" >&6; }
 
9506
                if test "$supported" = "yes" ; then
 
9507
                        BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
 
9508
                        found="yes"
 
9509
                fi
 
9510
        fi
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
 
9521
 
 
9522
 
 
9523
 
 
9524
 
 
9525
 
 
9526
xorg_testset_save_CFLAGS="$CFLAGS"
 
9527
 
 
9528
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9529
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9530
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9531
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9532
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9533
  $as_echo_n "(cached) " >&6
 
9534
else
 
9535
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9536
/* end confdefs.h.  */
 
9537
int i;
 
9538
_ACEOF
 
9539
if ac_fn_c_try_compile "$LINENO"; then :
 
9540
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9541
else
 
9542
  xorg_cv_cc_flag_unknown_warning_option=no
 
9543
fi
 
9544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9545
fi
 
9546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9547
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9548
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9549
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9550
fi
 
9551
 
 
9552
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9553
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9554
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9555
        fi
 
9556
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9557
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9558
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9559
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9560
  $as_echo_n "(cached) " >&6
 
9561
else
 
9562
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9563
/* end confdefs.h.  */
 
9564
int i;
 
9565
_ACEOF
 
9566
if ac_fn_c_try_compile "$LINENO"; then :
 
9567
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9568
else
 
9569
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9570
fi
 
9571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9572
fi
 
9573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9574
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9575
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9576
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9577
fi
 
9578
 
 
9579
found="no"
 
9580
 
 
9581
        if test $found = "no" ; then
 
9582
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9583
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9584
                fi
 
9585
 
 
9586
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9587
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9588
                fi
 
9589
 
 
9590
                CFLAGS="$CFLAGS -Wwrite-strings"
 
9591
 
 
9592
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
 
9593
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
 
9594
                cacheid=xorg_cv_cc_flag__Wwrite_strings
 
9595
                if eval \${$cacheid+:} false; then :
 
9596
  $as_echo_n "(cached) " >&6
 
9597
else
 
9598
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9599
/* end confdefs.h.  */
 
9600
int i;
 
9601
int
 
9602
main ()
 
9603
{
 
9604
 
 
9605
  ;
 
9606
  return 0;
 
9607
}
 
9608
_ACEOF
 
9609
if ac_fn_c_try_link "$LINENO"; then :
 
9610
  eval $cacheid=yes
 
9611
else
 
9612
  eval $cacheid=no
 
9613
fi
 
9614
rm -f core conftest.err conftest.$ac_objext \
 
9615
    conftest$ac_exeext conftest.$ac_ext
 
9616
fi
 
9617
 
 
9618
 
 
9619
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9620
 
 
9621
                eval supported=\$$cacheid
 
9622
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9623
$as_echo "$supported" >&6; }
 
9624
                if test "$supported" = "yes" ; then
 
9625
                        BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
 
9626
                        found="yes"
 
9627
                fi
 
9628
        fi
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
xorg_testset_save_CFLAGS="$CFLAGS"
 
9645
 
 
9646
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9647
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9648
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9649
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9650
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9651
  $as_echo_n "(cached) " >&6
 
9652
else
 
9653
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9654
/* end confdefs.h.  */
 
9655
int i;
 
9656
_ACEOF
 
9657
if ac_fn_c_try_compile "$LINENO"; then :
 
9658
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9659
else
 
9660
  xorg_cv_cc_flag_unknown_warning_option=no
 
9661
fi
 
9662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9663
fi
 
9664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9665
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9666
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9667
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9668
fi
 
9669
 
 
9670
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9671
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9672
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9673
        fi
 
9674
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9675
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9676
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9677
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9678
  $as_echo_n "(cached) " >&6
 
9679
else
 
9680
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9681
/* end confdefs.h.  */
 
9682
int i;
 
9683
_ACEOF
 
9684
if ac_fn_c_try_compile "$LINENO"; then :
 
9685
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9686
else
 
9687
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9688
fi
 
9689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9690
fi
 
9691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9692
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9693
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9694
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9695
fi
 
9696
 
 
9697
found="no"
 
9698
 
 
9699
        if test $found = "no" ; then
 
9700
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9701
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9702
                fi
 
9703
 
 
9704
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9705
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9706
                fi
 
9707
 
 
9708
                CFLAGS="$CFLAGS -Waddress"
 
9709
 
 
9710
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
 
9711
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
 
9712
                cacheid=xorg_cv_cc_flag__Waddress
 
9713
                if eval \${$cacheid+:} false; then :
 
9714
  $as_echo_n "(cached) " >&6
 
9715
else
 
9716
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9717
/* end confdefs.h.  */
 
9718
int i;
 
9719
int
 
9720
main ()
 
9721
{
 
9722
 
 
9723
  ;
 
9724
  return 0;
 
9725
}
 
9726
_ACEOF
 
9727
if ac_fn_c_try_link "$LINENO"; then :
 
9728
  eval $cacheid=yes
 
9729
else
 
9730
  eval $cacheid=no
 
9731
fi
 
9732
rm -f core conftest.err conftest.$ac_objext \
 
9733
    conftest$ac_exeext conftest.$ac_ext
 
9734
fi
 
9735
 
 
9736
 
 
9737
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9738
 
 
9739
                eval supported=\$$cacheid
 
9740
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9741
$as_echo "$supported" >&6; }
 
9742
                if test "$supported" = "yes" ; then
 
9743
                        BASE_CFLAGS="$BASE_CFLAGS -Waddress"
 
9744
                        found="yes"
 
9745
                fi
 
9746
        fi
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
 
9761
 
 
9762
xorg_testset_save_CFLAGS="$CFLAGS"
 
9763
 
 
9764
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9765
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9766
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9767
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9768
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9769
  $as_echo_n "(cached) " >&6
 
9770
else
 
9771
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9772
/* end confdefs.h.  */
 
9773
int i;
 
9774
_ACEOF
 
9775
if ac_fn_c_try_compile "$LINENO"; then :
 
9776
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9777
else
 
9778
  xorg_cv_cc_flag_unknown_warning_option=no
 
9779
fi
 
9780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9781
fi
 
9782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9783
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9784
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9785
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9786
fi
 
9787
 
 
9788
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9789
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9790
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9791
        fi
 
9792
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9793
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9794
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9795
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9796
  $as_echo_n "(cached) " >&6
 
9797
else
 
9798
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9799
/* end confdefs.h.  */
 
9800
int i;
 
9801
_ACEOF
 
9802
if ac_fn_c_try_compile "$LINENO"; then :
 
9803
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9804
else
 
9805
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9806
fi
 
9807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9808
fi
 
9809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9810
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9811
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9812
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9813
fi
 
9814
 
 
9815
found="no"
 
9816
 
 
9817
        if test $found = "no" ; then
 
9818
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9819
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9820
                fi
 
9821
 
 
9822
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9823
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9824
                fi
 
9825
 
 
9826
                CFLAGS="$CFLAGS -Wint-to-pointer-cast"
 
9827
 
 
9828
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
 
9829
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
 
9830
                cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
 
9831
                if eval \${$cacheid+:} false; then :
 
9832
  $as_echo_n "(cached) " >&6
 
9833
else
 
9834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9835
/* end confdefs.h.  */
 
9836
int i;
 
9837
int
 
9838
main ()
 
9839
{
 
9840
 
 
9841
  ;
 
9842
  return 0;
 
9843
}
 
9844
_ACEOF
 
9845
if ac_fn_c_try_link "$LINENO"; then :
 
9846
  eval $cacheid=yes
 
9847
else
 
9848
  eval $cacheid=no
 
9849
fi
 
9850
rm -f core conftest.err conftest.$ac_objext \
 
9851
    conftest$ac_exeext conftest.$ac_ext
 
9852
fi
 
9853
 
 
9854
 
 
9855
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9856
 
 
9857
                eval supported=\$$cacheid
 
9858
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9859
$as_echo "$supported" >&6; }
 
9860
                if test "$supported" = "yes" ; then
 
9861
                        BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
 
9862
                        found="yes"
 
9863
                fi
 
9864
        fi
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
xorg_testset_save_CFLAGS="$CFLAGS"
 
9881
 
 
9882
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
9883
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9884
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
9885
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
9886
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
9887
  $as_echo_n "(cached) " >&6
 
9888
else
 
9889
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9890
/* end confdefs.h.  */
 
9891
int i;
 
9892
_ACEOF
 
9893
if ac_fn_c_try_compile "$LINENO"; then :
 
9894
  xorg_cv_cc_flag_unknown_warning_option=yes
 
9895
else
 
9896
  xorg_cv_cc_flag_unknown_warning_option=no
 
9897
fi
 
9898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9899
fi
 
9900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
9901
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
9902
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
9903
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9904
fi
 
9905
 
 
9906
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
9907
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9908
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9909
        fi
 
9910
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9911
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
9912
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
9913
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
9914
  $as_echo_n "(cached) " >&6
 
9915
else
 
9916
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9917
/* end confdefs.h.  */
 
9918
int i;
 
9919
_ACEOF
 
9920
if ac_fn_c_try_compile "$LINENO"; then :
 
9921
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
9922
else
 
9923
  xorg_cv_cc_flag_unused_command_line_argument=no
 
9924
fi
 
9925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9926
fi
 
9927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
9928
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
9929
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
9930
        CFLAGS="$xorg_testset_save_CFLAGS"
 
9931
fi
 
9932
 
 
9933
found="no"
 
9934
 
 
9935
        if test $found = "no" ; then
 
9936
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
9937
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
9938
                fi
 
9939
 
 
9940
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
9941
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
9942
                fi
 
9943
 
 
9944
                CFLAGS="$CFLAGS -Wpointer-to-int-cast"
 
9945
 
 
9946
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
 
9947
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
 
9948
                cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
 
9949
                if eval \${$cacheid+:} false; then :
 
9950
  $as_echo_n "(cached) " >&6
 
9951
else
 
9952
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9953
/* end confdefs.h.  */
 
9954
int i;
 
9955
int
 
9956
main ()
 
9957
{
 
9958
 
 
9959
  ;
 
9960
  return 0;
 
9961
}
 
9962
_ACEOF
 
9963
if ac_fn_c_try_link "$LINENO"; then :
 
9964
  eval $cacheid=yes
 
9965
else
 
9966
  eval $cacheid=no
 
9967
fi
 
9968
rm -f core conftest.err conftest.$ac_objext \
 
9969
    conftest$ac_exeext conftest.$ac_ext
 
9970
fi
 
9971
 
 
9972
 
 
9973
                CFLAGS="$xorg_testset_save_CFLAGS"
 
9974
 
 
9975
                eval supported=\$$cacheid
 
9976
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
9977
$as_echo "$supported" >&6; }
 
9978
                if test "$supported" = "yes" ; then
 
9979
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
 
9980
                        found="yes"
 
9981
                fi
 
9982
        fi
 
9983
 
 
9984
 
 
9985
fi
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
                CWARNFLAGS="$BASE_CFLAGS"
 
9994
                if  test "x$GCC" = xyes ; then
 
9995
                    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
 
9996
                fi
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
# Check whether --enable-strict-compilation was given.
 
10006
if test "${enable_strict_compilation+set}" = set; then :
 
10007
  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
 
10008
else
 
10009
  STRICT_COMPILE=no
 
10010
fi
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
STRICT_CFLAGS=""
 
10018
 
 
10019
 
 
10020
 
 
10021
 
 
10022
 
 
10023
 
 
10024
 
 
10025
 
 
10026
 
 
10027
 
 
10028
 
 
10029
 
 
10030
 
 
10031
xorg_testset_save_CFLAGS="$CFLAGS"
 
10032
 
 
10033
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
10034
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10035
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
10036
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
10037
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
10038
  $as_echo_n "(cached) " >&6
 
10039
else
 
10040
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10041
/* end confdefs.h.  */
 
10042
int i;
 
10043
_ACEOF
 
10044
if ac_fn_c_try_compile "$LINENO"; then :
 
10045
  xorg_cv_cc_flag_unknown_warning_option=yes
 
10046
else
 
10047
  xorg_cv_cc_flag_unknown_warning_option=no
 
10048
fi
 
10049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10050
fi
 
10051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
10052
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
10053
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
10054
        CFLAGS="$xorg_testset_save_CFLAGS"
 
10055
fi
 
10056
 
 
10057
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
10058
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10059
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10060
        fi
 
10061
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10062
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
10063
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
10064
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
10065
  $as_echo_n "(cached) " >&6
 
10066
else
 
10067
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10068
/* end confdefs.h.  */
 
10069
int i;
 
10070
_ACEOF
 
10071
if ac_fn_c_try_compile "$LINENO"; then :
 
10072
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
10073
else
 
10074
  xorg_cv_cc_flag_unused_command_line_argument=no
 
10075
fi
 
10076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10077
fi
 
10078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
10079
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
10080
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
10081
        CFLAGS="$xorg_testset_save_CFLAGS"
 
10082
fi
 
10083
 
 
10084
found="no"
 
10085
 
 
10086
        if test $found = "no" ; then
 
10087
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10088
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10089
                fi
 
10090
 
 
10091
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
10092
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10093
                fi
 
10094
 
 
10095
                CFLAGS="$CFLAGS -pedantic"
 
10096
 
 
10097
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
 
10098
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
 
10099
                cacheid=xorg_cv_cc_flag__pedantic
 
10100
                if eval \${$cacheid+:} false; then :
 
10101
  $as_echo_n "(cached) " >&6
 
10102
else
 
10103
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10104
/* end confdefs.h.  */
 
10105
int i;
 
10106
int
 
10107
main ()
 
10108
{
 
10109
 
 
10110
  ;
 
10111
  return 0;
 
10112
}
 
10113
_ACEOF
 
10114
if ac_fn_c_try_link "$LINENO"; then :
 
10115
  eval $cacheid=yes
 
10116
else
 
10117
  eval $cacheid=no
 
10118
fi
 
10119
rm -f core conftest.err conftest.$ac_objext \
 
10120
    conftest$ac_exeext conftest.$ac_ext
 
10121
fi
 
10122
 
 
10123
 
 
10124
                CFLAGS="$xorg_testset_save_CFLAGS"
 
10125
 
 
10126
                eval supported=\$$cacheid
 
10127
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
10128
$as_echo "$supported" >&6; }
 
10129
                if test "$supported" = "yes" ; then
 
10130
                        STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
 
10131
                        found="yes"
 
10132
                fi
 
10133
        fi
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
xorg_testset_save_CFLAGS="$CFLAGS"
 
10150
 
 
10151
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
10152
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10153
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
10154
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
10155
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
10156
  $as_echo_n "(cached) " >&6
 
10157
else
 
10158
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10159
/* end confdefs.h.  */
 
10160
int i;
 
10161
_ACEOF
 
10162
if ac_fn_c_try_compile "$LINENO"; then :
 
10163
  xorg_cv_cc_flag_unknown_warning_option=yes
 
10164
else
 
10165
  xorg_cv_cc_flag_unknown_warning_option=no
 
10166
fi
 
10167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10168
fi
 
10169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
10170
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
10171
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
10172
        CFLAGS="$xorg_testset_save_CFLAGS"
 
10173
fi
 
10174
 
 
10175
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
10176
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10177
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10178
        fi
 
10179
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10180
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
10181
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
10182
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
10183
  $as_echo_n "(cached) " >&6
 
10184
else
 
10185
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10186
/* end confdefs.h.  */
 
10187
int i;
 
10188
_ACEOF
 
10189
if ac_fn_c_try_compile "$LINENO"; then :
 
10190
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
10191
else
 
10192
  xorg_cv_cc_flag_unused_command_line_argument=no
 
10193
fi
 
10194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10195
fi
 
10196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
10197
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
10198
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
10199
        CFLAGS="$xorg_testset_save_CFLAGS"
 
10200
fi
 
10201
 
 
10202
found="no"
 
10203
 
 
10204
        if test $found = "no" ; then
 
10205
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10206
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10207
                fi
 
10208
 
 
10209
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
10210
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10211
                fi
 
10212
 
 
10213
                CFLAGS="$CFLAGS -Werror"
 
10214
 
 
10215
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
 
10216
$as_echo_n "checking if $CC supports -Werror... " >&6; }
 
10217
                cacheid=xorg_cv_cc_flag__Werror
 
10218
                if eval \${$cacheid+:} false; then :
 
10219
  $as_echo_n "(cached) " >&6
 
10220
else
 
10221
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10222
/* end confdefs.h.  */
 
10223
int i;
 
10224
int
 
10225
main ()
 
10226
{
 
10227
 
 
10228
  ;
 
10229
  return 0;
 
10230
}
 
10231
_ACEOF
 
10232
if ac_fn_c_try_link "$LINENO"; then :
 
10233
  eval $cacheid=yes
 
10234
else
 
10235
  eval $cacheid=no
 
10236
fi
 
10237
rm -f core conftest.err conftest.$ac_objext \
 
10238
    conftest$ac_exeext conftest.$ac_ext
 
10239
fi
 
10240
 
 
10241
 
 
10242
                CFLAGS="$xorg_testset_save_CFLAGS"
 
10243
 
 
10244
                eval supported=\$$cacheid
 
10245
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
10246
$as_echo "$supported" >&6; }
 
10247
                if test "$supported" = "yes" ; then
 
10248
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
 
10249
                        found="yes"
 
10250
                fi
 
10251
        fi
 
10252
 
 
10253
        if test $found = "no" ; then
 
10254
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10255
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10256
                fi
 
10257
 
 
10258
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
10259
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10260
                fi
 
10261
 
 
10262
                CFLAGS="$CFLAGS -errwarn"
 
10263
 
 
10264
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
 
10265
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
 
10266
                cacheid=xorg_cv_cc_flag__errwarn
 
10267
                if eval \${$cacheid+:} false; then :
 
10268
  $as_echo_n "(cached) " >&6
 
10269
else
 
10270
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10271
/* end confdefs.h.  */
 
10272
int i;
 
10273
int
 
10274
main ()
 
10275
{
 
10276
 
 
10277
  ;
 
10278
  return 0;
 
10279
}
 
10280
_ACEOF
 
10281
if ac_fn_c_try_link "$LINENO"; then :
 
10282
  eval $cacheid=yes
 
10283
else
 
10284
  eval $cacheid=no
 
10285
fi
 
10286
rm -f core conftest.err conftest.$ac_objext \
 
10287
    conftest$ac_exeext conftest.$ac_ext
 
10288
fi
 
10289
 
 
10290
 
 
10291
                CFLAGS="$xorg_testset_save_CFLAGS"
 
10292
 
 
10293
                eval supported=\$$cacheid
 
10294
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
10295
$as_echo "$supported" >&6; }
 
10296
                if test "$supported" = "yes" ; then
 
10297
                        STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
 
10298
                        found="yes"
 
10299
                fi
 
10300
        fi
 
10301
 
 
10302
 
 
10303
 
 
10304
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
 
10305
# activate it with -Werror, so we add it here explicitly.
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
xorg_testset_save_CFLAGS="$CFLAGS"
 
10320
 
 
10321
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
10322
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10323
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
10324
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
10325
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
10326
  $as_echo_n "(cached) " >&6
 
10327
else
 
10328
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10329
/* end confdefs.h.  */
 
10330
int i;
 
10331
_ACEOF
 
10332
if ac_fn_c_try_compile "$LINENO"; then :
 
10333
  xorg_cv_cc_flag_unknown_warning_option=yes
 
10334
else
 
10335
  xorg_cv_cc_flag_unknown_warning_option=no
 
10336
fi
 
10337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10338
fi
 
10339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
10340
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
10341
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
10342
        CFLAGS="$xorg_testset_save_CFLAGS"
 
10343
fi
 
10344
 
 
10345
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
10346
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10347
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10348
        fi
 
10349
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10350
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
10351
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
10352
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
10353
  $as_echo_n "(cached) " >&6
 
10354
else
 
10355
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10356
/* end confdefs.h.  */
 
10357
int i;
 
10358
_ACEOF
 
10359
if ac_fn_c_try_compile "$LINENO"; then :
 
10360
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
10361
else
 
10362
  xorg_cv_cc_flag_unused_command_line_argument=no
 
10363
fi
 
10364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10365
fi
 
10366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
10367
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
10368
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
10369
        CFLAGS="$xorg_testset_save_CFLAGS"
 
10370
fi
 
10371
 
 
10372
found="no"
 
10373
 
 
10374
        if test $found = "no" ; then
 
10375
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
10376
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
10377
                fi
 
10378
 
 
10379
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
10380
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
10381
                fi
 
10382
 
 
10383
                CFLAGS="$CFLAGS -Werror=attributes"
 
10384
 
 
10385
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
 
10386
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
 
10387
                cacheid=xorg_cv_cc_flag__Werror_attributes
 
10388
                if eval \${$cacheid+:} false; then :
 
10389
  $as_echo_n "(cached) " >&6
 
10390
else
 
10391
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10392
/* end confdefs.h.  */
 
10393
int i;
 
10394
int
 
10395
main ()
 
10396
{
 
10397
 
 
10398
  ;
 
10399
  return 0;
 
10400
}
 
10401
_ACEOF
 
10402
if ac_fn_c_try_link "$LINENO"; then :
 
10403
  eval $cacheid=yes
 
10404
else
 
10405
  eval $cacheid=no
 
10406
fi
 
10407
rm -f core conftest.err conftest.$ac_objext \
 
10408
    conftest$ac_exeext conftest.$ac_ext
 
10409
fi
 
10410
 
 
10411
 
 
10412
                CFLAGS="$xorg_testset_save_CFLAGS"
 
10413
 
 
10414
                eval supported=\$$cacheid
 
10415
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
10416
$as_echo "$supported" >&6; }
 
10417
                if test "$supported" = "yes" ; then
 
10418
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
 
10419
                        found="yes"
 
10420
                fi
 
10421
        fi
 
10422
 
 
10423
 
 
10424
 
 
10425
if test "x$STRICT_COMPILE" = "xyes"; then
 
10426
    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
 
10427
    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
10428
fi
 
10429
 
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
cat >>confdefs.h <<_ACEOF
 
10436
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
10437
_ACEOF
 
10438
 
 
10439
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
10440
        if test "x$PVM" = "x"; then
 
10441
                PVM="0"
 
10442
        fi
 
10443
 
 
10444
cat >>confdefs.h <<_ACEOF
 
10445
#define PACKAGE_VERSION_MINOR $PVM
 
10446
_ACEOF
 
10447
 
 
10448
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
10449
        if test "x$PVP" = "x"; then
 
10450
                PVP="0"
 
10451
        fi
 
10452
 
 
10453
cat >>confdefs.h <<_ACEOF
 
10454
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
10455
_ACEOF
 
10456
 
 
10457
 
 
10458
 
 
10459
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
 
10460
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
 
10461
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
 
10462
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
10463
 
 
10464
 
 
10465
 
 
10466
 
 
10467
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
 
10468
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
 
10469
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
 
10470
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
 
10471
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
 
10472
 
 
10473
 
 
10474
 
 
10475
 
 
10476
 
 
10477
 
 
10478
if test x$APP_MAN_SUFFIX = x    ; then
 
10479
    APP_MAN_SUFFIX=1
 
10480
fi
 
10481
if test x$APP_MAN_DIR = x    ; then
 
10482
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
10483
fi
 
10484
 
 
10485
if test x$LIB_MAN_SUFFIX = x    ; then
 
10486
    LIB_MAN_SUFFIX=3
 
10487
fi
 
10488
if test x$LIB_MAN_DIR = x    ; then
 
10489
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
10490
fi
 
10491
 
 
10492
if test x$FILE_MAN_SUFFIX = x    ; then
 
10493
    case $host_os in
 
10494
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
10495
        *)              FILE_MAN_SUFFIX=5  ;;
 
10496
    esac
 
10497
fi
 
10498
if test x$FILE_MAN_DIR = x    ; then
 
10499
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
10500
fi
 
10501
 
 
10502
if test x$MISC_MAN_SUFFIX = x    ; then
 
10503
    case $host_os in
 
10504
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
10505
        *)              MISC_MAN_SUFFIX=7  ;;
 
10506
    esac
 
10507
fi
 
10508
if test x$MISC_MAN_DIR = x    ; then
 
10509
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
10510
fi
 
10511
 
 
10512
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
10513
    case $host_os in
 
10514
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
10515
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
10516
    esac
 
10517
fi
 
10518
if test x$DRIVER_MAN_DIR = x    ; then
 
10519
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
10520
fi
 
10521
 
 
10522
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
10523
    case $host_os in
 
10524
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
10525
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
10526
    esac
 
10527
fi
 
10528
if test x$ADMIN_MAN_DIR = x    ; then
 
10529
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
10530
fi
 
10531
 
 
10532
 
 
10533
 
 
10534
 
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
 
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
XORG_MAN_PAGE="X Version 11"
 
10547
 
 
10548
MAN_SUBSTS="\
 
10549
        -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
 
10550
        -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
 
10551
        -e 's|__xservername__|Xorg|g' \
 
10552
        -e 's|__xconfigfile__|xorg.conf|g' \
 
10553
        -e 's|__projectroot__|\$(prefix)|g' \
 
10554
        -e 's|__apploaddir__|\$(appdefaultdir)|g' \
 
10555
        -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
 
10556
        -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
 
10557
        -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
 
10558
        -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
 
10559
        -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
 
10560
        -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
 
10561
 
 
10562
 
 
10563
 
 
10564
# Check whether --enable-silent-rules was given.
 
10565
if test "${enable_silent_rules+set}" = set; then :
 
10566
  enableval=$enable_silent_rules;
 
10567
fi
 
10568
 
 
10569
case $enable_silent_rules in # (((
 
10570
  yes) AM_DEFAULT_VERBOSITY=0;;
 
10571
   no) AM_DEFAULT_VERBOSITY=1;;
 
10572
    *) AM_DEFAULT_VERBOSITY=0;;
 
10573
esac
 
10574
am_make=${MAKE-make}
 
10575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
10576
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
10577
if ${am_cv_make_support_nested_variables+:} false; then :
 
10578
  $as_echo_n "(cached) " >&6
 
10579
else
 
10580
  if $as_echo 'TRUE=$(BAR$(V))
 
10581
BAR0=false
 
10582
BAR1=true
 
10583
V=1
 
10584
am__doit:
 
10585
        @$(TRUE)
 
10586
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
10587
  am_cv_make_support_nested_variables=yes
 
10588
else
 
10589
  am_cv_make_support_nested_variables=no
 
10590
fi
 
10591
fi
 
10592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
10593
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
10594
if test $am_cv_make_support_nested_variables = yes; then
 
10595
    AM_V='$(V)'
 
10596
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
10597
else
 
10598
  AM_V=$AM_DEFAULT_VERBOSITY
 
10599
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
10600
fi
 
10601
AM_BACKSLASH='\'
 
10602
 
 
10603
 
 
10604
 
 
10605
# Initialize libtool
 
10606
# Check whether --enable-static was given.
 
10607
if test "${enable_static+set}" = set; then :
 
10608
  enableval=$enable_static; p=${PACKAGE-default}
 
10609
    case $enableval in
 
10610
    yes) enable_static=yes ;;
 
10611
    no) enable_static=no ;;
 
10612
    *)
 
10613
     enable_static=no
 
10614
      # Look at the argument we got.  We use all the common list separators.
 
10615
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10616
      for pkg in $enableval; do
 
10617
        IFS="$lt_save_ifs"
 
10618
        if test "X$pkg" = "X$p"; then
 
10619
          enable_static=yes
 
10620
        fi
 
10621
      done
 
10622
      IFS="$lt_save_ifs"
 
10623
      ;;
 
10624
    esac
 
10625
else
 
10626
  enable_static=no
 
10627
fi
 
10628
 
 
10629
 
 
10630
 
 
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
 
10637
case `pwd` in
 
10638
  *\ * | *\     *)
 
10639
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
10640
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
10641
esac
 
10642
 
 
10643
 
 
10644
 
 
10645
macro_version='2.4.2'
 
10646
macro_revision='1.3337'
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
 
10654
 
 
10655
 
 
10656
 
 
10657
 
 
10658
 
 
10659
 
 
10660
ltmain="$ac_aux_dir/ltmain.sh"
 
10661
 
 
10662
# Backslashify metacharacters that are still active within
 
10663
# double-quoted strings.
 
10664
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
10665
 
 
10666
# Same as above, but do not quote variable references.
 
10667
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
10668
 
 
10669
# Sed substitution to delay expansion of an escaped shell variable in a
 
10670
# double_quote_subst'ed string.
 
10671
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
10672
 
 
10673
# Sed substitution to delay expansion of an escaped single quote.
 
10674
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
10675
 
 
10676
# Sed substitution to avoid accidental globbing in evaled expressions
 
10677
no_glob_subst='s/\*/\\\*/g'
 
10678
 
 
10679
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
10680
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
10681
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
10682
 
 
10683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
10684
$as_echo_n "checking how to print strings... " >&6; }
 
10685
# Test print first, because it will be a builtin if present.
 
10686
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
10687
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
10688
  ECHO='print -r --'
 
10689
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
10690
  ECHO='printf %s\n'
 
10691
else
 
10692
  # Use this function as a fallback that always works.
 
10693
  func_fallback_echo ()
 
10694
  {
 
10695
    eval 'cat <<_LTECHO_EOF
 
10696
$1
 
10697
_LTECHO_EOF'
 
10698
  }
 
10699
  ECHO='func_fallback_echo'
 
10700
fi
 
10701
 
 
10702
# func_echo_all arg...
 
10703
# Invoke $ECHO with all args, space-separated.
 
10704
func_echo_all ()
 
10705
{
 
10706
    $ECHO ""
 
10707
}
 
10708
 
 
10709
case "$ECHO" in
 
10710
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
10711
$as_echo "printf" >&6; } ;;
 
10712
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
10713
$as_echo "print -r" >&6; } ;;
 
10714
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
10715
$as_echo "cat" >&6; } ;;
 
10716
esac
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
10732
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
10733
if ${ac_cv_path_SED+:} false; then :
 
10734
  $as_echo_n "(cached) " >&6
 
10735
else
 
10736
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
10737
     for ac_i in 1 2 3 4 5 6 7; do
 
10738
       ac_script="$ac_script$as_nl$ac_script"
 
10739
     done
 
10740
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
10741
     { ac_script=; unset ac_script;}
 
10742
     if test -z "$SED"; then
 
10743
  ac_path_SED_found=false
 
10744
  # Loop through the user's path and test for each of PROGNAME-LIST
 
10745
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10746
for as_dir in $PATH
 
10747
do
 
10748
  IFS=$as_save_IFS
 
10749
  test -z "$as_dir" && as_dir=.
 
10750
    for ac_prog in sed gsed; do
 
10751
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10752
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
10753
      as_fn_executable_p "$ac_path_SED" || continue
 
10754
# Check for GNU ac_path_SED and select it if it is found.
 
10755
  # Check for GNU $ac_path_SED
 
10756
case `"$ac_path_SED" --version 2>&1` in
 
10757
*GNU*)
 
10758
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
10759
*)
 
10760
  ac_count=0
 
10761
  $as_echo_n 0123456789 >"conftest.in"
 
10762
  while :
 
10763
  do
 
10764
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
10765
    mv "conftest.tmp" "conftest.in"
 
10766
    cp "conftest.in" "conftest.nl"
 
10767
    $as_echo '' >> "conftest.nl"
 
10768
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
10769
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
10770
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
10771
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
10772
      # Best one so far, save it but keep looking for a better one
 
10773
      ac_cv_path_SED="$ac_path_SED"
 
10774
      ac_path_SED_max=$ac_count
 
10775
    fi
 
10776
    # 10*(2^10) chars as input seems more than enough
 
10777
    test $ac_count -gt 10 && break
 
10778
  done
 
10779
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
10780
esac
 
10781
 
 
10782
      $ac_path_SED_found && break 3
 
10783
    done
 
10784
  done
 
10785
  done
 
10786
IFS=$as_save_IFS
 
10787
  if test -z "$ac_cv_path_SED"; then
 
10788
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
10789
  fi
 
10790
else
 
10791
  ac_cv_path_SED=$SED
 
10792
fi
 
10793
 
 
10794
fi
 
10795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
10796
$as_echo "$ac_cv_path_SED" >&6; }
 
10797
 SED="$ac_cv_path_SED"
 
10798
  rm -f conftest.sed
 
10799
 
 
10800
test -z "$SED" && SED=sed
 
10801
Xsed="$SED -e 1s/^X//"
 
10802
 
 
10803
 
 
10804
 
 
10805
 
 
10806
 
 
10807
 
 
10808
 
 
10809
 
 
10810
 
 
10811
 
 
10812
 
 
10813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
10814
$as_echo_n "checking for fgrep... " >&6; }
 
10815
if ${ac_cv_path_FGREP+:} false; then :
 
10816
  $as_echo_n "(cached) " >&6
 
10817
else
 
10818
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
10819
   then ac_cv_path_FGREP="$GREP -F"
 
10820
   else
 
10821
     if test -z "$FGREP"; then
 
10822
  ac_path_FGREP_found=false
 
10823
  # Loop through the user's path and test for each of PROGNAME-LIST
 
10824
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10825
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
10826
do
 
10827
  IFS=$as_save_IFS
 
10828
  test -z "$as_dir" && as_dir=.
 
10829
    for ac_prog in fgrep; do
 
10830
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10831
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
10832
      as_fn_executable_p "$ac_path_FGREP" || continue
 
10833
# Check for GNU ac_path_FGREP and select it if it is found.
 
10834
  # Check for GNU $ac_path_FGREP
 
10835
case `"$ac_path_FGREP" --version 2>&1` in
 
10836
*GNU*)
 
10837
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
10838
*)
 
10839
  ac_count=0
 
10840
  $as_echo_n 0123456789 >"conftest.in"
 
10841
  while :
 
10842
  do
 
10843
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
10844
    mv "conftest.tmp" "conftest.in"
 
10845
    cp "conftest.in" "conftest.nl"
 
10846
    $as_echo 'FGREP' >> "conftest.nl"
 
10847
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
10848
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
10849
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
10850
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
10851
      # Best one so far, save it but keep looking for a better one
 
10852
      ac_cv_path_FGREP="$ac_path_FGREP"
 
10853
      ac_path_FGREP_max=$ac_count
 
10854
    fi
 
10855
    # 10*(2^10) chars as input seems more than enough
 
10856
    test $ac_count -gt 10 && break
 
10857
  done
 
10858
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
10859
esac
 
10860
 
 
10861
      $ac_path_FGREP_found && break 3
 
10862
    done
 
10863
  done
 
10864
  done
 
10865
IFS=$as_save_IFS
 
10866
  if test -z "$ac_cv_path_FGREP"; then
 
10867
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
10868
  fi
 
10869
else
 
10870
  ac_cv_path_FGREP=$FGREP
 
10871
fi
 
10872
 
 
10873
   fi
 
10874
fi
 
10875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
10876
$as_echo "$ac_cv_path_FGREP" >&6; }
 
10877
 FGREP="$ac_cv_path_FGREP"
 
10878
 
 
10879
 
 
10880
test -z "$GREP" && GREP=grep
 
10881
 
 
10882
 
 
10883
 
 
10884
 
 
10885
 
 
10886
 
 
10887
 
 
10888
 
 
10889
 
 
10890
 
 
10891
 
 
10892
 
 
10893
 
 
10894
 
 
10895
 
 
10896
 
 
10897
 
 
10898
 
 
10899
 
 
10900
# Check whether --with-gnu-ld was given.
 
10901
if test "${with_gnu_ld+set}" = set; then :
 
10902
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10903
else
 
10904
  with_gnu_ld=no
 
10905
fi
 
10906
 
 
10907
ac_prog=ld
 
10908
if test "$GCC" = yes; then
 
10909
  # Check if gcc -print-prog-name=ld gives a path.
 
10910
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
10911
$as_echo_n "checking for ld used by $CC... " >&6; }
 
10912
  case $host in
 
10913
  *-*-mingw*)
 
10914
    # gcc leaves a trailing carriage return which upsets mingw
 
10915
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10916
  *)
 
10917
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10918
  esac
 
10919
  case $ac_prog in
 
10920
    # Accept absolute paths.
 
10921
    [\\/]* | ?:[\\/]*)
 
10922
      re_direlt='/[^/][^/]*/\.\./'
 
10923
      # Canonicalize the pathname of ld
 
10924
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
10925
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
10926
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
10927
      done
 
10928
      test -z "$LD" && LD="$ac_prog"
 
10929
      ;;
 
10930
  "")
 
10931
    # If it fails, then pretend we aren't using GCC.
 
10932
    ac_prog=ld
 
10933
    ;;
 
10934
  *)
 
10935
    # If it is relative, then search for the first ld in PATH.
 
10936
    with_gnu_ld=unknown
 
10937
    ;;
 
10938
  esac
 
10939
elif test "$with_gnu_ld" = yes; then
 
10940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
10941
$as_echo_n "checking for GNU ld... " >&6; }
 
10942
else
 
10943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
10944
$as_echo_n "checking for non-GNU ld... " >&6; }
 
10945
fi
 
10946
if ${lt_cv_path_LD+:} false; then :
 
10947
  $as_echo_n "(cached) " >&6
 
10948
else
 
10949
  if test -z "$LD"; then
 
10950
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10951
  for ac_dir in $PATH; do
 
10952
    IFS="$lt_save_ifs"
 
10953
    test -z "$ac_dir" && ac_dir=.
 
10954
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10955
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10956
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10957
      # but apparently some variants of GNU ld only accept -v.
 
10958
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10959
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10960
      *GNU* | *'with BFD'*)
 
10961
        test "$with_gnu_ld" != no && break
 
10962
        ;;
 
10963
      *)
 
10964
        test "$with_gnu_ld" != yes && break
 
10965
        ;;
 
10966
      esac
 
10967
    fi
 
10968
  done
 
10969
  IFS="$lt_save_ifs"
 
10970
else
 
10971
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10972
fi
 
10973
fi
 
10974
 
 
10975
LD="$lt_cv_path_LD"
 
10976
if test -n "$LD"; then
 
10977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
10978
$as_echo "$LD" >&6; }
 
10979
else
 
10980
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10981
$as_echo "no" >&6; }
 
10982
fi
 
10983
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
10984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
10985
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
10986
if ${lt_cv_prog_gnu_ld+:} false; then :
 
10987
  $as_echo_n "(cached) " >&6
 
10988
else
 
10989
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10990
case `$LD -v 2>&1 </dev/null` in
 
10991
*GNU* | *'with BFD'*)
 
10992
  lt_cv_prog_gnu_ld=yes
 
10993
  ;;
 
10994
*)
 
10995
  lt_cv_prog_gnu_ld=no
 
10996
  ;;
 
10997
esac
 
10998
fi
 
10999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
11000
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11001
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11002
 
 
11003
 
 
11004
 
 
11005
 
 
11006
 
 
11007
 
 
11008
 
 
11009
 
 
11010
 
 
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
11012
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
11013
if ${lt_cv_path_NM+:} false; then :
 
11014
  $as_echo_n "(cached) " >&6
 
11015
else
 
11016
  if test -n "$NM"; then
 
11017
  # Let the user override the test.
 
11018
  lt_cv_path_NM="$NM"
 
11019
else
 
11020
  lt_nm_to_check="${ac_tool_prefix}nm"
 
11021
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
11022
    lt_nm_to_check="$lt_nm_to_check nm"
 
11023
  fi
 
11024
  for lt_tmp_nm in $lt_nm_to_check; do
 
11025
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11026
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
11027
      IFS="$lt_save_ifs"
 
11028
      test -z "$ac_dir" && ac_dir=.
 
11029
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
11030
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
11031
        # Check to see if the nm accepts a BSD-compat flag.
 
11032
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
11033
        #   nm: unknown option "B" ignored
 
11034
        # Tru64's nm complains that /dev/null is an invalid object file
 
11035
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
11036
        */dev/null* | *'Invalid file or object type'*)
 
11037
          lt_cv_path_NM="$tmp_nm -B"
 
11038
          break
 
11039
          ;;
 
11040
        *)
 
11041
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
11042
          */dev/null*)
 
11043
            lt_cv_path_NM="$tmp_nm -p"
 
11044
            break
 
11045
            ;;
 
11046
          *)
 
11047
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
11048
            continue # so that we can try to find one that supports BSD flags
 
11049
            ;;
 
11050
          esac
 
11051
          ;;
 
11052
        esac
 
11053
      fi
 
11054
    done
 
11055
    IFS="$lt_save_ifs"
 
11056
  done
 
11057
  : ${lt_cv_path_NM=no}
 
11058
fi
 
11059
fi
 
11060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
11061
$as_echo "$lt_cv_path_NM" >&6; }
 
11062
if test "$lt_cv_path_NM" != "no"; then
 
11063
  NM="$lt_cv_path_NM"
 
11064
else
 
11065
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
11066
  if test -n "$DUMPBIN"; then :
 
11067
    # Let the user override the test.
 
11068
  else
 
11069
    if test -n "$ac_tool_prefix"; then
 
11070
  for ac_prog in dumpbin "link -dump"
 
11071
  do
 
11072
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11073
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11075
$as_echo_n "checking for $ac_word... " >&6; }
 
11076
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
11077
  $as_echo_n "(cached) " >&6
 
11078
else
 
11079
  if test -n "$DUMPBIN"; then
 
11080
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
11081
else
 
11082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11083
for as_dir in $PATH
 
11084
do
 
11085
  IFS=$as_save_IFS
 
11086
  test -z "$as_dir" && as_dir=.
 
11087
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11088
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11089
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
11090
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11091
    break 2
 
11092
  fi
 
11093
done
 
11094
  done
 
11095
IFS=$as_save_IFS
 
11096
 
 
11097
fi
 
11098
fi
 
11099
DUMPBIN=$ac_cv_prog_DUMPBIN
 
11100
if test -n "$DUMPBIN"; then
 
11101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
11102
$as_echo "$DUMPBIN" >&6; }
 
11103
else
 
11104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11105
$as_echo "no" >&6; }
 
11106
fi
 
11107
 
 
11108
 
 
11109
    test -n "$DUMPBIN" && break
 
11110
  done
 
11111
fi
 
11112
if test -z "$DUMPBIN"; then
 
11113
  ac_ct_DUMPBIN=$DUMPBIN
 
11114
  for ac_prog in dumpbin "link -dump"
 
11115
do
 
11116
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11117
set dummy $ac_prog; ac_word=$2
 
11118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11119
$as_echo_n "checking for $ac_word... " >&6; }
 
11120
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
11121
  $as_echo_n "(cached) " >&6
 
11122
else
 
11123
  if test -n "$ac_ct_DUMPBIN"; then
 
11124
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
11125
else
 
11126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11127
for as_dir in $PATH
 
11128
do
 
11129
  IFS=$as_save_IFS
 
11130
  test -z "$as_dir" && as_dir=.
 
11131
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11132
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11133
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
11134
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11135
    break 2
 
11136
  fi
 
11137
done
 
11138
  done
 
11139
IFS=$as_save_IFS
 
11140
 
 
11141
fi
 
11142
fi
 
11143
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
11144
if test -n "$ac_ct_DUMPBIN"; then
 
11145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
11146
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
11147
else
 
11148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11149
$as_echo "no" >&6; }
 
11150
fi
 
11151
 
 
11152
 
 
11153
  test -n "$ac_ct_DUMPBIN" && break
 
11154
done
 
11155
 
 
11156
  if test "x$ac_ct_DUMPBIN" = x; then
 
11157
    DUMPBIN=":"
 
11158
  else
 
11159
    case $cross_compiling:$ac_tool_warned in
 
11160
yes:)
 
11161
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11162
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11163
ac_tool_warned=yes ;;
 
11164
esac
 
11165
    DUMPBIN=$ac_ct_DUMPBIN
 
11166
  fi
 
11167
fi
 
11168
 
 
11169
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
11170
    *COFF*)
 
11171
      DUMPBIN="$DUMPBIN -symbols"
 
11172
      ;;
 
11173
    *)
 
11174
      DUMPBIN=:
 
11175
      ;;
 
11176
    esac
 
11177
  fi
 
11178
 
 
11179
  if test "$DUMPBIN" != ":"; then
 
11180
    NM="$DUMPBIN"
 
11181
  fi
 
11182
fi
 
11183
test -z "$NM" && NM=nm
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
11191
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
11192
if ${lt_cv_nm_interface+:} false; then :
 
11193
  $as_echo_n "(cached) " >&6
 
11194
else
 
11195
  lt_cv_nm_interface="BSD nm"
 
11196
  echo "int some_variable = 0;" > conftest.$ac_ext
 
11197
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
11198
  (eval "$ac_compile" 2>conftest.err)
 
11199
  cat conftest.err >&5
 
11200
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
11201
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
11202
  cat conftest.err >&5
 
11203
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
11204
  cat conftest.out >&5
 
11205
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
11206
    lt_cv_nm_interface="MS dumpbin"
 
11207
  fi
 
11208
  rm -f conftest*
 
11209
fi
 
11210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
11211
$as_echo "$lt_cv_nm_interface" >&6; }
 
11212
 
 
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
11214
$as_echo_n "checking whether ln -s works... " >&6; }
 
11215
LN_S=$as_ln_s
 
11216
if test "$LN_S" = "ln -s"; then
 
11217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11218
$as_echo "yes" >&6; }
 
11219
else
 
11220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
11221
$as_echo "no, using $LN_S" >&6; }
 
11222
fi
 
11223
 
 
11224
# find the maximum length of command line arguments
 
11225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
11226
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
11227
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
11228
  $as_echo_n "(cached) " >&6
 
11229
else
 
11230
    i=0
 
11231
  teststring="ABCD"
 
11232
 
 
11233
  case $build_os in
 
11234
  msdosdjgpp*)
 
11235
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
11236
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
11237
    # during glob expansion).  Even if it were fixed, the result of this
 
11238
    # check would be larger than it should be.
 
11239
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
11240
    ;;
 
11241
 
 
11242
  gnu*)
 
11243
    # Under GNU Hurd, this test is not required because there is
 
11244
    # no limit to the length of command line arguments.
 
11245
    # Libtool will interpret -1 as no limit whatsoever
 
11246
    lt_cv_sys_max_cmd_len=-1;
 
11247
    ;;
 
11248
 
 
11249
  cygwin* | mingw* | cegcc*)
 
11250
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
11251
    # about 5 minutes as the teststring grows exponentially.
 
11252
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
11253
    # you end up with a "frozen" computer, even though with patience
 
11254
    # the test eventually succeeds (with a max line length of 256k).
 
11255
    # Instead, let's just punt: use the minimum linelength reported by
 
11256
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
11257
    lt_cv_sys_max_cmd_len=8192;
 
11258
    ;;
 
11259
 
 
11260
  mint*)
 
11261
    # On MiNT this can take a long time and run out of memory.
 
11262
    lt_cv_sys_max_cmd_len=8192;
 
11263
    ;;
 
11264
 
 
11265
  amigaos*)
 
11266
    # On AmigaOS with pdksh, this test takes hours, literally.
 
11267
    # So we just punt and use a minimum line length of 8192.
 
11268
    lt_cv_sys_max_cmd_len=8192;
 
11269
    ;;
 
11270
 
 
11271
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
11272
    # This has been around since 386BSD, at least.  Likely further.
 
11273
    if test -x /sbin/sysctl; then
 
11274
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
11275
    elif test -x /usr/sbin/sysctl; then
 
11276
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
11277
    else
 
11278
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
11279
    fi
 
11280
    # And add a safety zone
 
11281
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
11282
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
11283
    ;;
 
11284
 
 
11285
  interix*)
 
11286
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
11287
    lt_cv_sys_max_cmd_len=196608
 
11288
    ;;
 
11289
 
 
11290
  os2*)
 
11291
    # The test takes a long time on OS/2.
 
11292
    lt_cv_sys_max_cmd_len=8192
 
11293
    ;;
 
11294
 
 
11295
  osf*)
 
11296
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
11297
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
11298
    # nice to cause kernel panics so lets avoid the loop below.
 
11299
    # First set a reasonable default.
 
11300
    lt_cv_sys_max_cmd_len=16384
 
11301
    #
 
11302
    if test -x /sbin/sysconfig; then
 
11303
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
11304
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
11305
      esac
 
11306
    fi
 
11307
    ;;
 
11308
  sco3.2v5*)
 
11309
    lt_cv_sys_max_cmd_len=102400
 
11310
    ;;
 
11311
  sysv5* | sco5v6* | sysv4.2uw2*)
 
11312
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
11313
    if test -n "$kargmax"; then
 
11314
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
11315
    else
 
11316
      lt_cv_sys_max_cmd_len=32768
 
11317
    fi
 
11318
    ;;
 
11319
  *)
 
11320
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
11321
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
11322
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
11323
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
11324
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
11325
    else
 
11326
      # Make teststring a little bigger before we do anything with it.
 
11327
      # a 1K string should be a reasonable start.
 
11328
      for i in 1 2 3 4 5 6 7 8 ; do
 
11329
        teststring=$teststring$teststring
 
11330
      done
 
11331
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
11332
      # If test is not a shell built-in, we'll probably end up computing a
 
11333
      # maximum length that is only half of the actual maximum length, but
 
11334
      # we can't tell.
 
11335
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
11336
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
11337
              test $i != 17 # 1/2 MB should be enough
 
11338
      do
 
11339
        i=`expr $i + 1`
 
11340
        teststring=$teststring$teststring
 
11341
      done
 
11342
      # Only check the string length outside the loop.
 
11343
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
11344
      teststring=
 
11345
      # Add a significant safety factor because C++ compilers can tack on
 
11346
      # massive amounts of additional arguments before passing them to the
 
11347
      # linker.  It appears as though 1/2 is a usable value.
 
11348
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
11349
    fi
 
11350
    ;;
 
11351
  esac
 
11352
 
 
11353
fi
 
11354
 
 
11355
if test -n $lt_cv_sys_max_cmd_len ; then
 
11356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
11357
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
11358
else
 
11359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
11360
$as_echo "none" >&6; }
 
11361
fi
 
11362
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
: ${CP="cp -f"}
 
11370
: ${MV="mv -f"}
 
11371
: ${RM="rm -f"}
 
11372
 
 
11373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
11374
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
11375
# Try some XSI features
 
11376
xsi_shell=no
 
11377
( _lt_dummy="a/b/c"
 
11378
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
11379
      = c,a/b,b/c, \
 
11380
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
11381
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
11382
  && xsi_shell=yes
 
11383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
11384
$as_echo "$xsi_shell" >&6; }
 
11385
 
 
11386
 
 
11387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
11388
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
11389
lt_shell_append=no
 
11390
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
11391
    >/dev/null 2>&1 \
 
11392
  && lt_shell_append=yes
 
11393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
11394
$as_echo "$lt_shell_append" >&6; }
 
11395
 
 
11396
 
 
11397
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
11398
  lt_unset=unset
 
11399
else
 
11400
  lt_unset=false
 
11401
fi
 
11402
 
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
# test EBCDIC or ASCII
 
11408
case `echo X|tr X '\101'` in
 
11409
 A) # ASCII based system
 
11410
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
11411
  lt_SP2NL='tr \040 \012'
 
11412
  lt_NL2SP='tr \015\012 \040\040'
 
11413
  ;;
 
11414
 *) # EBCDIC based system
 
11415
  lt_SP2NL='tr \100 \n'
 
11416
  lt_NL2SP='tr \r\n \100\100'
 
11417
  ;;
 
11418
esac
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
 
 
11427
 
 
11428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
11429
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
11430
if ${lt_cv_to_host_file_cmd+:} false; then :
 
11431
  $as_echo_n "(cached) " >&6
 
11432
else
 
11433
  case $host in
 
11434
  *-*-mingw* )
 
11435
    case $build in
 
11436
      *-*-mingw* ) # actually msys
 
11437
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
11438
        ;;
 
11439
      *-*-cygwin* )
 
11440
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
11441
        ;;
 
11442
      * ) # otherwise, assume *nix
 
11443
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
11444
        ;;
 
11445
    esac
 
11446
    ;;
 
11447
  *-*-cygwin* )
 
11448
    case $build in
 
11449
      *-*-mingw* ) # actually msys
 
11450
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
11451
        ;;
 
11452
      *-*-cygwin* )
 
11453
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
11454
        ;;
 
11455
      * ) # otherwise, assume *nix
 
11456
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
11457
        ;;
 
11458
    esac
 
11459
    ;;
 
11460
  * ) # unhandled hosts (and "normal" native builds)
 
11461
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
11462
    ;;
 
11463
esac
 
11464
 
 
11465
fi
 
11466
 
 
11467
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
11468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
11469
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
11470
 
 
11471
 
 
11472
 
 
11473
 
 
11474
 
 
11475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
11476
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
11477
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
11478
  $as_echo_n "(cached) " >&6
 
11479
else
 
11480
  #assume ordinary cross tools, or native build.
 
11481
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
11482
case $host in
 
11483
  *-*-mingw* )
 
11484
    case $build in
 
11485
      *-*-mingw* ) # actually msys
 
11486
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
11487
        ;;
 
11488
    esac
 
11489
    ;;
 
11490
esac
 
11491
 
 
11492
fi
 
11493
 
 
11494
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
11495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
11496
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
11497
 
 
11498
 
 
11499
 
 
11500
 
 
11501
 
 
11502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
11503
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
11504
if ${lt_cv_ld_reload_flag+:} false; then :
 
11505
  $as_echo_n "(cached) " >&6
 
11506
else
 
11507
  lt_cv_ld_reload_flag='-r'
 
11508
fi
 
11509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
11510
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
11511
reload_flag=$lt_cv_ld_reload_flag
 
11512
case $reload_flag in
 
11513
"" | " "*) ;;
 
11514
*) reload_flag=" $reload_flag" ;;
 
11515
esac
 
11516
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
11517
case $host_os in
 
11518
  cygwin* | mingw* | pw32* | cegcc*)
 
11519
    if test "$GCC" != yes; then
 
11520
      reload_cmds=false
 
11521
    fi
 
11522
    ;;
 
11523
  darwin*)
 
11524
    if test "$GCC" = yes; then
 
11525
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
11526
    else
 
11527
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
11528
    fi
 
11529
    ;;
 
11530
esac
 
11531
 
 
11532
 
 
11533
 
 
11534
 
 
11535
 
 
11536
 
 
11537
 
 
11538
 
 
11539
 
 
11540
if test -n "$ac_tool_prefix"; then
 
11541
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
11542
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
11543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11544
$as_echo_n "checking for $ac_word... " >&6; }
 
11545
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
11546
  $as_echo_n "(cached) " >&6
 
11547
else
 
11548
  if test -n "$OBJDUMP"; then
 
11549
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
11550
else
 
11551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11552
for as_dir in $PATH
 
11553
do
 
11554
  IFS=$as_save_IFS
 
11555
  test -z "$as_dir" && as_dir=.
 
11556
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11557
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11558
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
11559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11560
    break 2
 
11561
  fi
 
11562
done
 
11563
  done
 
11564
IFS=$as_save_IFS
 
11565
 
 
11566
fi
 
11567
fi
 
11568
OBJDUMP=$ac_cv_prog_OBJDUMP
 
11569
if test -n "$OBJDUMP"; then
 
11570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
11571
$as_echo "$OBJDUMP" >&6; }
 
11572
else
 
11573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11574
$as_echo "no" >&6; }
 
11575
fi
 
11576
 
 
11577
 
 
11578
fi
 
11579
if test -z "$ac_cv_prog_OBJDUMP"; then
 
11580
  ac_ct_OBJDUMP=$OBJDUMP
 
11581
  # Extract the first word of "objdump", so it can be a program name with args.
 
11582
set dummy objdump; ac_word=$2
 
11583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11584
$as_echo_n "checking for $ac_word... " >&6; }
 
11585
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
11586
  $as_echo_n "(cached) " >&6
 
11587
else
 
11588
  if test -n "$ac_ct_OBJDUMP"; then
 
11589
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
11590
else
 
11591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11592
for as_dir in $PATH
 
11593
do
 
11594
  IFS=$as_save_IFS
 
11595
  test -z "$as_dir" && as_dir=.
 
11596
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11597
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11598
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
11599
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11600
    break 2
 
11601
  fi
 
11602
done
 
11603
  done
 
11604
IFS=$as_save_IFS
 
11605
 
 
11606
fi
 
11607
fi
 
11608
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
11609
if test -n "$ac_ct_OBJDUMP"; then
 
11610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
11611
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
11612
else
 
11613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11614
$as_echo "no" >&6; }
 
11615
fi
 
11616
 
 
11617
  if test "x$ac_ct_OBJDUMP" = x; then
 
11618
    OBJDUMP="false"
 
11619
  else
 
11620
    case $cross_compiling:$ac_tool_warned in
 
11621
yes:)
 
11622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11624
ac_tool_warned=yes ;;
 
11625
esac
 
11626
    OBJDUMP=$ac_ct_OBJDUMP
 
11627
  fi
 
11628
else
 
11629
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
11630
fi
 
11631
 
 
11632
test -z "$OBJDUMP" && OBJDUMP=objdump
 
11633
 
 
11634
 
 
11635
 
 
11636
 
 
11637
 
 
11638
 
 
11639
 
 
11640
 
 
11641
 
 
11642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
11643
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
11644
if ${lt_cv_deplibs_check_method+:} false; then :
 
11645
  $as_echo_n "(cached) " >&6
 
11646
else
 
11647
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
11648
lt_cv_file_magic_test_file=
 
11649
lt_cv_deplibs_check_method='unknown'
 
11650
# Need to set the preceding variable on all platforms that support
 
11651
# interlibrary dependencies.
 
11652
# 'none' -- dependencies not supported.
 
11653
# `unknown' -- same as none, but documents that we really don't know.
 
11654
# 'pass_all' -- all dependencies passed with no checks.
 
11655
# 'test_compile' -- check by making test program.
 
11656
# 'file_magic [[regex]]' -- check by looking for files in library path
 
11657
# which responds to the $file_magic_cmd with a given extended regex.
 
11658
# If you have `file' or equivalent on your system and you're not sure
 
11659
# whether `pass_all' will *always* work, you probably want this one.
 
11660
 
 
11661
case $host_os in
 
11662
aix[4-9]*)
 
11663
  lt_cv_deplibs_check_method=pass_all
 
11664
  ;;
 
11665
 
 
11666
beos*)
 
11667
  lt_cv_deplibs_check_method=pass_all
 
11668
  ;;
 
11669
 
 
11670
bsdi[45]*)
 
11671
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
11672
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
11673
  lt_cv_file_magic_test_file=/shlib/libc.so
 
11674
  ;;
 
11675
 
 
11676
cygwin*)
 
11677
  # func_win32_libid is a shell function defined in ltmain.sh
 
11678
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
11679
  lt_cv_file_magic_cmd='func_win32_libid'
 
11680
  ;;
 
11681
 
 
11682
mingw* | pw32*)
 
11683
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
11684
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
11685
  # unless we find 'file', for example because we are cross-compiling.
 
11686
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
11687
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
11688
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
11689
    lt_cv_file_magic_cmd='func_win32_libid'
 
11690
  else
 
11691
    # Keep this pattern in sync with the one in func_win32_libid.
 
11692
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
11693
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
11694
  fi
 
11695
  ;;
 
11696
 
 
11697
cegcc*)
 
11698
  # use the weaker test based on 'objdump'. See mingw*.
 
11699
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
11700
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
11701
  ;;
 
11702
 
 
11703
darwin* | rhapsody*)
 
11704
  lt_cv_deplibs_check_method=pass_all
 
11705
  ;;
 
11706
 
 
11707
freebsd* | dragonfly*)
 
11708
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
11709
    case $host_cpu in
 
11710
    i*86 )
 
11711
      # Not sure whether the presence of OpenBSD here was a mistake.
 
11712
      # Let's accept both of them until this is cleared up.
 
11713
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
11714
      lt_cv_file_magic_cmd=/usr/bin/file
 
11715
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
11716
      ;;
 
11717
    esac
 
11718
  else
 
11719
    lt_cv_deplibs_check_method=pass_all
 
11720
  fi
 
11721
  ;;
 
11722
 
 
11723
haiku*)
 
11724
  lt_cv_deplibs_check_method=pass_all
 
11725
  ;;
 
11726
 
 
11727
hpux10.20* | hpux11*)
 
11728
  lt_cv_file_magic_cmd=/usr/bin/file
 
11729
  case $host_cpu in
 
11730
  ia64*)
 
11731
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
11732
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
11733
    ;;
 
11734
  hppa*64*)
 
11735
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
11736
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
11737
    ;;
 
11738
  *)
 
11739
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
11740
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
11741
    ;;
 
11742
  esac
 
11743
  ;;
 
11744
 
 
11745
interix[3-9]*)
 
11746
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
11747
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
11748
  ;;
 
11749
 
 
11750
irix5* | irix6* | nonstopux*)
 
11751
  case $LD in
 
11752
  *-32|*"-32 ") libmagic=32-bit;;
 
11753
  *-n32|*"-n32 ") libmagic=N32;;
 
11754
  *-64|*"-64 ") libmagic=64-bit;;
 
11755
  *) libmagic=never-match;;
 
11756
  esac
 
11757
  lt_cv_deplibs_check_method=pass_all
 
11758
  ;;
 
11759
 
 
11760
# This must be glibc/ELF.
 
11761
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11762
  lt_cv_deplibs_check_method=pass_all
 
11763
  ;;
 
11764
 
 
11765
netbsd* | netbsdelf*-gnu)
 
11766
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
11767
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
11768
  else
 
11769
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
11770
  fi
 
11771
  ;;
 
11772
 
 
11773
newos6*)
 
11774
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
11775
  lt_cv_file_magic_cmd=/usr/bin/file
 
11776
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
11777
  ;;
 
11778
 
 
11779
*nto* | *qnx*)
 
11780
  lt_cv_deplibs_check_method=pass_all
 
11781
  ;;
 
11782
 
 
11783
openbsd*)
 
11784
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11785
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
11786
  else
 
11787
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
11788
  fi
 
11789
  ;;
 
11790
 
 
11791
osf3* | osf4* | osf5*)
 
11792
  lt_cv_deplibs_check_method=pass_all
 
11793
  ;;
 
11794
 
 
11795
rdos*)
 
11796
  lt_cv_deplibs_check_method=pass_all
 
11797
  ;;
 
11798
 
 
11799
solaris*)
 
11800
  lt_cv_deplibs_check_method=pass_all
 
11801
  ;;
 
11802
 
 
11803
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11804
  lt_cv_deplibs_check_method=pass_all
 
11805
  ;;
 
11806
 
 
11807
sysv4 | sysv4.3*)
 
11808
  case $host_vendor in
 
11809
  motorola)
 
11810
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
11811
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
11812
    ;;
 
11813
  ncr)
 
11814
    lt_cv_deplibs_check_method=pass_all
 
11815
    ;;
 
11816
  sequent)
 
11817
    lt_cv_file_magic_cmd='/bin/file'
 
11818
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
11819
    ;;
 
11820
  sni)
 
11821
    lt_cv_file_magic_cmd='/bin/file'
 
11822
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
11823
    lt_cv_file_magic_test_file=/lib/libc.so
 
11824
    ;;
 
11825
  siemens)
 
11826
    lt_cv_deplibs_check_method=pass_all
 
11827
    ;;
 
11828
  pc)
 
11829
    lt_cv_deplibs_check_method=pass_all
 
11830
    ;;
 
11831
  esac
 
11832
  ;;
 
11833
 
 
11834
tpf*)
 
11835
  lt_cv_deplibs_check_method=pass_all
 
11836
  ;;
 
11837
esac
 
11838
 
 
11839
fi
 
11840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
11841
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
11842
 
 
11843
file_magic_glob=
 
11844
want_nocaseglob=no
 
11845
if test "$build" = "$host"; then
 
11846
  case $host_os in
 
11847
  mingw* | pw32*)
 
11848
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
11849
      want_nocaseglob=yes
 
11850
    else
 
11851
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
11852
    fi
 
11853
    ;;
 
11854
  esac
 
11855
fi
 
11856
 
 
11857
file_magic_cmd=$lt_cv_file_magic_cmd
 
11858
deplibs_check_method=$lt_cv_deplibs_check_method
 
11859
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
11860
 
 
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
 
 
11866
 
 
11867
 
 
11868
 
 
11869
 
 
11870
 
 
11871
 
 
11872
 
 
11873
 
 
11874
 
 
11875
 
 
11876
 
 
11877
 
 
11878
 
 
11879
 
 
11880
 
 
11881
 
 
11882
if test -n "$ac_tool_prefix"; then
 
11883
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
11884
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
11885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11886
$as_echo_n "checking for $ac_word... " >&6; }
 
11887
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
11888
  $as_echo_n "(cached) " >&6
 
11889
else
 
11890
  if test -n "$DLLTOOL"; then
 
11891
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
11892
else
 
11893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11894
for as_dir in $PATH
 
11895
do
 
11896
  IFS=$as_save_IFS
 
11897
  test -z "$as_dir" && as_dir=.
 
11898
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11899
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11900
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
11901
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11902
    break 2
 
11903
  fi
 
11904
done
 
11905
  done
 
11906
IFS=$as_save_IFS
 
11907
 
 
11908
fi
 
11909
fi
 
11910
DLLTOOL=$ac_cv_prog_DLLTOOL
 
11911
if test -n "$DLLTOOL"; then
 
11912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
11913
$as_echo "$DLLTOOL" >&6; }
 
11914
else
 
11915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11916
$as_echo "no" >&6; }
 
11917
fi
 
11918
 
 
11919
 
 
11920
fi
 
11921
if test -z "$ac_cv_prog_DLLTOOL"; then
 
11922
  ac_ct_DLLTOOL=$DLLTOOL
 
11923
  # Extract the first word of "dlltool", so it can be a program name with args.
 
11924
set dummy dlltool; ac_word=$2
 
11925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11926
$as_echo_n "checking for $ac_word... " >&6; }
 
11927
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
11928
  $as_echo_n "(cached) " >&6
 
11929
else
 
11930
  if test -n "$ac_ct_DLLTOOL"; then
 
11931
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
11932
else
 
11933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11934
for as_dir in $PATH
 
11935
do
 
11936
  IFS=$as_save_IFS
 
11937
  test -z "$as_dir" && as_dir=.
 
11938
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11939
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11940
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
11941
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11942
    break 2
 
11943
  fi
 
11944
done
 
11945
  done
 
11946
IFS=$as_save_IFS
 
11947
 
 
11948
fi
 
11949
fi
 
11950
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
11951
if test -n "$ac_ct_DLLTOOL"; then
 
11952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
11953
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
11954
else
 
11955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11956
$as_echo "no" >&6; }
 
11957
fi
 
11958
 
 
11959
  if test "x$ac_ct_DLLTOOL" = x; then
 
11960
    DLLTOOL="false"
 
11961
  else
 
11962
    case $cross_compiling:$ac_tool_warned in
 
11963
yes:)
 
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11965
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11966
ac_tool_warned=yes ;;
 
11967
esac
 
11968
    DLLTOOL=$ac_ct_DLLTOOL
 
11969
  fi
 
11970
else
 
11971
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
11972
fi
 
11973
 
 
11974
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
11975
 
 
11976
 
 
11977
 
 
11978
 
 
11979
 
 
11980
 
 
11981
 
 
11982
 
 
11983
 
 
11984
 
 
11985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
11986
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
11987
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
11988
  $as_echo_n "(cached) " >&6
 
11989
else
 
11990
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
11991
 
 
11992
case $host_os in
 
11993
cygwin* | mingw* | pw32* | cegcc*)
 
11994
  # two different shell functions defined in ltmain.sh
 
11995
  # decide which to use based on capabilities of $DLLTOOL
 
11996
  case `$DLLTOOL --help 2>&1` in
 
11997
  *--identify-strict*)
 
11998
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
11999
    ;;
 
12000
  *)
 
12001
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
12002
    ;;
 
12003
  esac
 
12004
  ;;
 
12005
*)
 
12006
  # fallback: assume linklib IS sharedlib
 
12007
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
12008
  ;;
 
12009
esac
 
12010
 
 
12011
fi
 
12012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
12013
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
12014
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
12015
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
if test -n "$ac_tool_prefix"; then
 
12024
  for ac_prog in ar
 
12025
  do
 
12026
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
12027
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
12028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12029
$as_echo_n "checking for $ac_word... " >&6; }
 
12030
if ${ac_cv_prog_AR+:} false; then :
 
12031
  $as_echo_n "(cached) " >&6
 
12032
else
 
12033
  if test -n "$AR"; then
 
12034
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
12035
else
 
12036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12037
for as_dir in $PATH
 
12038
do
 
12039
  IFS=$as_save_IFS
 
12040
  test -z "$as_dir" && as_dir=.
 
12041
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12042
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12043
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
12044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12045
    break 2
 
12046
  fi
 
12047
done
 
12048
  done
 
12049
IFS=$as_save_IFS
 
12050
 
 
12051
fi
 
12052
fi
 
12053
AR=$ac_cv_prog_AR
 
12054
if test -n "$AR"; then
 
12055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
12056
$as_echo "$AR" >&6; }
 
12057
else
 
12058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12059
$as_echo "no" >&6; }
 
12060
fi
 
12061
 
 
12062
 
 
12063
    test -n "$AR" && break
 
12064
  done
 
12065
fi
 
12066
if test -z "$AR"; then
 
12067
  ac_ct_AR=$AR
 
12068
  for ac_prog in ar
 
12069
do
 
12070
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12071
set dummy $ac_prog; ac_word=$2
 
12072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12073
$as_echo_n "checking for $ac_word... " >&6; }
 
12074
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
12075
  $as_echo_n "(cached) " >&6
 
12076
else
 
12077
  if test -n "$ac_ct_AR"; then
 
12078
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
12079
else
 
12080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12081
for as_dir in $PATH
 
12082
do
 
12083
  IFS=$as_save_IFS
 
12084
  test -z "$as_dir" && as_dir=.
 
12085
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12086
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12087
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
12088
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12089
    break 2
 
12090
  fi
 
12091
done
 
12092
  done
 
12093
IFS=$as_save_IFS
 
12094
 
 
12095
fi
 
12096
fi
 
12097
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
12098
if test -n "$ac_ct_AR"; then
 
12099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
12100
$as_echo "$ac_ct_AR" >&6; }
 
12101
else
 
12102
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12103
$as_echo "no" >&6; }
 
12104
fi
 
12105
 
 
12106
 
 
12107
  test -n "$ac_ct_AR" && break
 
12108
done
 
12109
 
 
12110
  if test "x$ac_ct_AR" = x; then
 
12111
    AR="false"
 
12112
  else
 
12113
    case $cross_compiling:$ac_tool_warned in
 
12114
yes:)
 
12115
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12116
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12117
ac_tool_warned=yes ;;
 
12118
esac
 
12119
    AR=$ac_ct_AR
 
12120
  fi
 
12121
fi
 
12122
 
 
12123
: ${AR=ar}
 
12124
: ${AR_FLAGS=cru}
 
12125
 
 
12126
 
 
12127
 
 
12128
 
 
12129
 
 
12130
 
 
12131
 
 
12132
 
 
12133
 
 
12134
 
 
12135
 
 
12136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
12137
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
12138
if ${lt_cv_ar_at_file+:} false; then :
 
12139
  $as_echo_n "(cached) " >&6
 
12140
else
 
12141
  lt_cv_ar_at_file=no
 
12142
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12143
/* end confdefs.h.  */
 
12144
 
 
12145
int
 
12146
main ()
 
12147
{
 
12148
 
 
12149
  ;
 
12150
  return 0;
 
12151
}
 
12152
_ACEOF
 
12153
if ac_fn_c_try_compile "$LINENO"; then :
 
12154
  echo conftest.$ac_objext > conftest.lst
 
12155
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
12156
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
12157
  (eval $lt_ar_try) 2>&5
 
12158
  ac_status=$?
 
12159
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12160
  test $ac_status = 0; }
 
12161
      if test "$ac_status" -eq 0; then
 
12162
        # Ensure the archiver fails upon bogus file names.
 
12163
        rm -f conftest.$ac_objext libconftest.a
 
12164
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
12165
  (eval $lt_ar_try) 2>&5
 
12166
  ac_status=$?
 
12167
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12168
  test $ac_status = 0; }
 
12169
        if test "$ac_status" -ne 0; then
 
12170
          lt_cv_ar_at_file=@
 
12171
        fi
 
12172
      fi
 
12173
      rm -f conftest.* libconftest.a
 
12174
 
 
12175
fi
 
12176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12177
 
 
12178
fi
 
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
12180
$as_echo "$lt_cv_ar_at_file" >&6; }
 
12181
 
 
12182
if test "x$lt_cv_ar_at_file" = xno; then
 
12183
  archiver_list_spec=
 
12184
else
 
12185
  archiver_list_spec=$lt_cv_ar_at_file
 
12186
fi
 
12187
 
 
12188
 
 
12189
 
 
12190
 
 
12191
 
 
12192
 
 
12193
 
 
12194
if test -n "$ac_tool_prefix"; then
 
12195
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
12196
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
12197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12198
$as_echo_n "checking for $ac_word... " >&6; }
 
12199
if ${ac_cv_prog_STRIP+:} false; then :
 
12200
  $as_echo_n "(cached) " >&6
 
12201
else
 
12202
  if test -n "$STRIP"; then
 
12203
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
12204
else
 
12205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12206
for as_dir in $PATH
 
12207
do
 
12208
  IFS=$as_save_IFS
 
12209
  test -z "$as_dir" && as_dir=.
 
12210
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12211
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12212
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
12213
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12214
    break 2
 
12215
  fi
 
12216
done
 
12217
  done
 
12218
IFS=$as_save_IFS
 
12219
 
 
12220
fi
 
12221
fi
 
12222
STRIP=$ac_cv_prog_STRIP
 
12223
if test -n "$STRIP"; then
 
12224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
12225
$as_echo "$STRIP" >&6; }
 
12226
else
 
12227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12228
$as_echo "no" >&6; }
 
12229
fi
 
12230
 
 
12231
 
 
12232
fi
 
12233
if test -z "$ac_cv_prog_STRIP"; then
 
12234
  ac_ct_STRIP=$STRIP
 
12235
  # Extract the first word of "strip", so it can be a program name with args.
 
12236
set dummy strip; ac_word=$2
 
12237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12238
$as_echo_n "checking for $ac_word... " >&6; }
 
12239
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
12240
  $as_echo_n "(cached) " >&6
 
12241
else
 
12242
  if test -n "$ac_ct_STRIP"; then
 
12243
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
12244
else
 
12245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12246
for as_dir in $PATH
 
12247
do
 
12248
  IFS=$as_save_IFS
 
12249
  test -z "$as_dir" && as_dir=.
 
12250
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12251
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12252
    ac_cv_prog_ac_ct_STRIP="strip"
 
12253
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12254
    break 2
 
12255
  fi
 
12256
done
 
12257
  done
 
12258
IFS=$as_save_IFS
 
12259
 
 
12260
fi
 
12261
fi
 
12262
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
12263
if test -n "$ac_ct_STRIP"; then
 
12264
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
12265
$as_echo "$ac_ct_STRIP" >&6; }
 
12266
else
 
12267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12268
$as_echo "no" >&6; }
 
12269
fi
 
12270
 
 
12271
  if test "x$ac_ct_STRIP" = x; then
 
12272
    STRIP=":"
 
12273
  else
 
12274
    case $cross_compiling:$ac_tool_warned in
 
12275
yes:)
 
12276
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12277
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12278
ac_tool_warned=yes ;;
 
12279
esac
 
12280
    STRIP=$ac_ct_STRIP
 
12281
  fi
 
12282
else
 
12283
  STRIP="$ac_cv_prog_STRIP"
 
12284
fi
 
12285
 
 
12286
test -z "$STRIP" && STRIP=:
 
12287
 
 
12288
 
 
12289
 
 
12290
 
 
12291
 
 
12292
 
 
12293
if test -n "$ac_tool_prefix"; then
 
12294
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
12295
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
12296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12297
$as_echo_n "checking for $ac_word... " >&6; }
 
12298
if ${ac_cv_prog_RANLIB+:} false; then :
 
12299
  $as_echo_n "(cached) " >&6
 
12300
else
 
12301
  if test -n "$RANLIB"; then
 
12302
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
12303
else
 
12304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12305
for as_dir in $PATH
 
12306
do
 
12307
  IFS=$as_save_IFS
 
12308
  test -z "$as_dir" && as_dir=.
 
12309
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12310
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12311
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
12312
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12313
    break 2
 
12314
  fi
 
12315
done
 
12316
  done
 
12317
IFS=$as_save_IFS
 
12318
 
 
12319
fi
 
12320
fi
 
12321
RANLIB=$ac_cv_prog_RANLIB
 
12322
if test -n "$RANLIB"; then
 
12323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
12324
$as_echo "$RANLIB" >&6; }
 
12325
else
 
12326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12327
$as_echo "no" >&6; }
 
12328
fi
 
12329
 
 
12330
 
 
12331
fi
 
12332
if test -z "$ac_cv_prog_RANLIB"; then
 
12333
  ac_ct_RANLIB=$RANLIB
 
12334
  # Extract the first word of "ranlib", so it can be a program name with args.
 
12335
set dummy ranlib; ac_word=$2
 
12336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12337
$as_echo_n "checking for $ac_word... " >&6; }
 
12338
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
12339
  $as_echo_n "(cached) " >&6
 
12340
else
 
12341
  if test -n "$ac_ct_RANLIB"; then
 
12342
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
12343
else
 
12344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12345
for as_dir in $PATH
 
12346
do
 
12347
  IFS=$as_save_IFS
 
12348
  test -z "$as_dir" && as_dir=.
 
12349
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12350
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12351
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
12352
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12353
    break 2
 
12354
  fi
 
12355
done
 
12356
  done
 
12357
IFS=$as_save_IFS
 
12358
 
 
12359
fi
 
12360
fi
 
12361
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
12362
if test -n "$ac_ct_RANLIB"; then
 
12363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
12364
$as_echo "$ac_ct_RANLIB" >&6; }
 
12365
else
 
12366
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12367
$as_echo "no" >&6; }
 
12368
fi
 
12369
 
 
12370
  if test "x$ac_ct_RANLIB" = x; then
 
12371
    RANLIB=":"
 
12372
  else
 
12373
    case $cross_compiling:$ac_tool_warned in
 
12374
yes:)
 
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12376
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12377
ac_tool_warned=yes ;;
 
12378
esac
 
12379
    RANLIB=$ac_ct_RANLIB
 
12380
  fi
 
12381
else
 
12382
  RANLIB="$ac_cv_prog_RANLIB"
 
12383
fi
 
12384
 
 
12385
test -z "$RANLIB" && RANLIB=:
 
12386
 
 
12387
 
 
12388
 
 
12389
 
 
12390
 
 
12391
 
 
12392
# Determine commands to create old-style static archives.
 
12393
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
12394
old_postinstall_cmds='chmod 644 $oldlib'
 
12395
old_postuninstall_cmds=
 
12396
 
 
12397
if test -n "$RANLIB"; then
 
12398
  case $host_os in
 
12399
  openbsd*)
 
12400
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
12401
    ;;
 
12402
  *)
 
12403
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
12404
    ;;
 
12405
  esac
 
12406
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
12407
fi
 
12408
 
 
12409
case $host_os in
 
12410
  darwin*)
 
12411
    lock_old_archive_extraction=yes ;;
 
12412
  *)
 
12413
    lock_old_archive_extraction=no ;;
 
12414
esac
 
12415
 
 
12416
 
 
12417
 
 
12418
 
 
12419
 
 
12420
 
 
12421
 
 
12422
 
 
12423
 
 
12424
 
 
12425
 
 
12426
 
 
12427
 
 
12428
 
 
12429
 
 
12430
 
 
12431
 
 
12432
 
 
12433
 
 
12434
 
 
12435
 
 
12436
 
 
12437
 
 
12438
 
 
12439
 
 
12440
 
 
12441
 
 
12442
 
 
12443
 
 
12444
 
 
12445
 
 
12446
 
 
12447
 
 
12448
 
 
12449
 
 
12450
 
 
12451
 
 
12452
 
 
12453
 
 
12454
# If no C compiler was specified, use CC.
 
12455
LTCC=${LTCC-"$CC"}
 
12456
 
 
12457
# If no C compiler flags were specified, use CFLAGS.
 
12458
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12459
 
 
12460
# Allow CC to be a program name with arguments.
 
12461
compiler=$CC
 
12462
 
 
12463
 
 
12464
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
12465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
12466
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
12467
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
12468
  $as_echo_n "(cached) " >&6
 
12469
else
 
12470
 
 
12471
# These are sane defaults that work on at least a few old systems.
 
12472
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
12473
 
 
12474
# Character class describing NM global symbol codes.
 
12475
symcode='[BCDEGRST]'
 
12476
 
 
12477
# Regexp to match symbols that can be accessed directly from C.
 
12478
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
12479
 
 
12480
# Define system-specific variables.
 
12481
case $host_os in
 
12482
aix*)
 
12483
  symcode='[BCDT]'
 
12484
  ;;
 
12485
cygwin* | mingw* | pw32* | cegcc*)
 
12486
  symcode='[ABCDGISTW]'
 
12487
  ;;
 
12488
hpux*)
 
12489
  if test "$host_cpu" = ia64; then
 
12490
    symcode='[ABCDEGRST]'
 
12491
  fi
 
12492
  ;;
 
12493
irix* | nonstopux*)
 
12494
  symcode='[BCDEGRST]'
 
12495
  ;;
 
12496
osf*)
 
12497
  symcode='[BCDEGQRST]'
 
12498
  ;;
 
12499
solaris*)
 
12500
  symcode='[BDRT]'
 
12501
  ;;
 
12502
sco3.2v5*)
 
12503
  symcode='[DT]'
 
12504
  ;;
 
12505
sysv4.2uw2*)
 
12506
  symcode='[DT]'
 
12507
  ;;
 
12508
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
12509
  symcode='[ABDT]'
 
12510
  ;;
 
12511
sysv4)
 
12512
  symcode='[DFNSTU]'
 
12513
  ;;
 
12514
esac
 
12515
 
 
12516
# If we're using GNU nm, then use its standard symbol codes.
 
12517
case `$NM -V 2>&1` in
 
12518
*GNU* | *'with BFD'*)
 
12519
  symcode='[ABCDGIRSTW]' ;;
 
12520
esac
 
12521
 
 
12522
# Transform an extracted symbol line into a proper C declaration.
 
12523
# Some systems (esp. on ia64) link data and code symbols differently,
 
12524
# so use this general approach.
 
12525
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
12526
 
 
12527
# Transform an extracted symbol line into symbol name and symbol address
 
12528
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
12529
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
12530
 
 
12531
# Handle CRLF in mingw tool chain
 
12532
opt_cr=
 
12533
case $build_os in
 
12534
mingw*)
 
12535
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
12536
  ;;
 
12537
esac
 
12538
 
 
12539
# Try without a prefix underscore, then with it.
 
12540
for ac_symprfx in "" "_"; do
 
12541
 
 
12542
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
12543
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
12544
 
 
12545
  # Write the raw and C identifiers.
 
12546
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
12547
    # Fake it for dumpbin and say T for any non-static function
 
12548
    # and D for any global variable.
 
12549
    # Also find C++ and __fastcall symbols from MSVC++,
 
12550
    # which start with @ or ?.
 
12551
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
12552
"     {last_section=section; section=\$ 3};"\
 
12553
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
12554
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
12555
"     \$ 0!~/External *\|/{next};"\
 
12556
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
12557
"     {if(hide[section]) next};"\
 
12558
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
12559
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
12560
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
12561
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
12562
"     ' prfx=^$ac_symprfx"
 
12563
  else
 
12564
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
12565
  fi
 
12566
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
12567
 
 
12568
  # Check to see that the pipe works correctly.
 
12569
  pipe_works=no
 
12570
 
 
12571
  rm -f conftest*
 
12572
  cat > conftest.$ac_ext <<_LT_EOF
 
12573
#ifdef __cplusplus
 
12574
extern "C" {
 
12575
#endif
 
12576
char nm_test_var;
 
12577
void nm_test_func(void);
 
12578
void nm_test_func(void){}
 
12579
#ifdef __cplusplus
 
12580
}
 
12581
#endif
 
12582
int main(){nm_test_var='a';nm_test_func();return(0);}
 
12583
_LT_EOF
 
12584
 
 
12585
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12586
  (eval $ac_compile) 2>&5
 
12587
  ac_status=$?
 
12588
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12589
  test $ac_status = 0; }; then
 
12590
    # Now try to grab the symbols.
 
12591
    nlist=conftest.nm
 
12592
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
12593
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
12594
  ac_status=$?
 
12595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12596
  test $ac_status = 0; } && test -s "$nlist"; then
 
12597
      # Try sorting and uniquifying the output.
 
12598
      if sort "$nlist" | uniq > "$nlist"T; then
 
12599
        mv -f "$nlist"T "$nlist"
 
12600
      else
 
12601
        rm -f "$nlist"T
 
12602
      fi
 
12603
 
 
12604
      # Make sure that we snagged all the symbols we need.
 
12605
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
12606
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
12607
          cat <<_LT_EOF > conftest.$ac_ext
 
12608
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
12609
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
12610
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
12611
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
12612
# define LT_DLSYM_CONST
 
12613
#elif defined(__osf__)
 
12614
/* This system does not cope well with relocations in const data.  */
 
12615
# define LT_DLSYM_CONST
 
12616
#else
 
12617
# define LT_DLSYM_CONST const
 
12618
#endif
 
12619
 
 
12620
#ifdef __cplusplus
 
12621
extern "C" {
 
12622
#endif
 
12623
 
 
12624
_LT_EOF
 
12625
          # Now generate the symbol file.
 
12626
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
12627
 
 
12628
          cat <<_LT_EOF >> conftest.$ac_ext
 
12629
 
 
12630
/* The mapping between symbol names and symbols.  */
 
12631
LT_DLSYM_CONST struct {
 
12632
  const char *name;
 
12633
  void       *address;
 
12634
}
 
12635
lt__PROGRAM__LTX_preloaded_symbols[] =
 
12636
{
 
12637
  { "@PROGRAM@", (void *) 0 },
 
12638
_LT_EOF
 
12639
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
12640
          cat <<\_LT_EOF >> conftest.$ac_ext
 
12641
  {0, (void *) 0}
 
12642
};
 
12643
 
 
12644
/* This works around a problem in FreeBSD linker */
 
12645
#ifdef FREEBSD_WORKAROUND
 
12646
static const void *lt_preloaded_setup() {
 
12647
  return lt__PROGRAM__LTX_preloaded_symbols;
 
12648
}
 
12649
#endif
 
12650
 
 
12651
#ifdef __cplusplus
 
12652
}
 
12653
#endif
 
12654
_LT_EOF
 
12655
          # Now try linking the two files.
 
12656
          mv conftest.$ac_objext conftstm.$ac_objext
 
12657
          lt_globsym_save_LIBS=$LIBS
 
12658
          lt_globsym_save_CFLAGS=$CFLAGS
 
12659
          LIBS="conftstm.$ac_objext"
 
12660
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
12661
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12662
  (eval $ac_link) 2>&5
 
12663
  ac_status=$?
 
12664
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12665
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
12666
            pipe_works=yes
 
12667
          fi
 
12668
          LIBS=$lt_globsym_save_LIBS
 
12669
          CFLAGS=$lt_globsym_save_CFLAGS
 
12670
        else
 
12671
          echo "cannot find nm_test_func in $nlist" >&5
 
12672
        fi
 
12673
      else
 
12674
        echo "cannot find nm_test_var in $nlist" >&5
 
12675
      fi
 
12676
    else
 
12677
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
12678
    fi
 
12679
  else
 
12680
    echo "$progname: failed program was:" >&5
 
12681
    cat conftest.$ac_ext >&5
 
12682
  fi
 
12683
  rm -rf conftest* conftst*
 
12684
 
 
12685
  # Do not use the global_symbol_pipe unless it works.
 
12686
  if test "$pipe_works" = yes; then
 
12687
    break
 
12688
  else
 
12689
    lt_cv_sys_global_symbol_pipe=
 
12690
  fi
 
12691
done
 
12692
 
 
12693
fi
 
12694
 
 
12695
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
12696
  lt_cv_sys_global_symbol_to_cdecl=
 
12697
fi
 
12698
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
12699
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
12700
$as_echo "failed" >&6; }
 
12701
else
 
12702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
12703
$as_echo "ok" >&6; }
 
12704
fi
 
12705
 
 
12706
# Response file support.
 
12707
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
12708
  nm_file_list_spec='@'
 
12709
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
12710
  nm_file_list_spec='@'
 
12711
fi
 
12712
 
 
12713
 
 
12714
 
 
12715
 
 
12716
 
 
12717
 
 
12718
 
 
12719
 
 
12720
 
 
12721
 
 
12722
 
 
12723
 
 
12724
 
 
12725
 
 
12726
 
 
12727
 
 
12728
 
 
12729
 
 
12730
 
 
12731
 
 
12732
 
 
12733
 
 
12734
 
 
12735
 
 
12736
 
 
12737
 
 
12738
 
 
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
12740
$as_echo_n "checking for sysroot... " >&6; }
 
12741
 
 
12742
# Check whether --with-sysroot was given.
 
12743
if test "${with_sysroot+set}" = set; then :
 
12744
  withval=$with_sysroot;
 
12745
else
 
12746
  with_sysroot=no
 
12747
fi
 
12748
 
 
12749
 
 
12750
lt_sysroot=
 
12751
case ${with_sysroot} in #(
 
12752
 yes)
 
12753
   if test "$GCC" = yes; then
 
12754
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
12755
   fi
 
12756
   ;; #(
 
12757
 /*)
 
12758
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
12759
   ;; #(
 
12760
 no|'')
 
12761
   ;; #(
 
12762
 *)
 
12763
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
12764
$as_echo "${with_sysroot}" >&6; }
 
12765
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
12766
   ;;
 
12767
esac
 
12768
 
 
12769
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
12770
$as_echo "${lt_sysroot:-no}" >&6; }
 
12771
 
 
12772
 
 
12773
 
 
12774
 
 
12775
 
 
12776
# Check whether --enable-libtool-lock was given.
 
12777
if test "${enable_libtool_lock+set}" = set; then :
 
12778
  enableval=$enable_libtool_lock;
 
12779
fi
 
12780
 
 
12781
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
12782
 
 
12783
# Some flags need to be propagated to the compiler or linker for good
 
12784
# libtool support.
 
12785
case $host in
 
12786
ia64-*-hpux*)
 
12787
  # Find out which ABI we are using.
 
12788
  echo 'int i;' > conftest.$ac_ext
 
12789
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12790
  (eval $ac_compile) 2>&5
 
12791
  ac_status=$?
 
12792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12793
  test $ac_status = 0; }; then
 
12794
    case `/usr/bin/file conftest.$ac_objext` in
 
12795
      *ELF-32*)
 
12796
        HPUX_IA64_MODE="32"
 
12797
        ;;
 
12798
      *ELF-64*)
 
12799
        HPUX_IA64_MODE="64"
 
12800
        ;;
 
12801
    esac
 
12802
  fi
 
12803
  rm -rf conftest*
 
12804
  ;;
 
12805
*-*-irix6*)
 
12806
  # Find out which ABI we are using.
 
12807
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
12808
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12809
  (eval $ac_compile) 2>&5
 
12810
  ac_status=$?
 
12811
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12812
  test $ac_status = 0; }; then
 
12813
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
12814
      case `/usr/bin/file conftest.$ac_objext` in
 
12815
        *32-bit*)
 
12816
          LD="${LD-ld} -melf32bsmip"
 
12817
          ;;
 
12818
        *N32*)
 
12819
          LD="${LD-ld} -melf32bmipn32"
 
12820
          ;;
 
12821
        *64-bit*)
 
12822
          LD="${LD-ld} -melf64bmip"
 
12823
        ;;
 
12824
      esac
 
12825
    else
 
12826
      case `/usr/bin/file conftest.$ac_objext` in
 
12827
        *32-bit*)
 
12828
          LD="${LD-ld} -32"
 
12829
          ;;
 
12830
        *N32*)
 
12831
          LD="${LD-ld} -n32"
 
12832
          ;;
 
12833
        *64-bit*)
 
12834
          LD="${LD-ld} -64"
 
12835
          ;;
 
12836
      esac
 
12837
    fi
 
12838
  fi
 
12839
  rm -rf conftest*
 
12840
  ;;
 
12841
 
 
12842
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
12843
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
12844
  # Find out which ABI we are using.
 
12845
  echo 'int i;' > conftest.$ac_ext
 
12846
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12847
  (eval $ac_compile) 2>&5
 
12848
  ac_status=$?
 
12849
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12850
  test $ac_status = 0; }; then
 
12851
    case `/usr/bin/file conftest.o` in
 
12852
      *32-bit*)
 
12853
        case $host in
 
12854
          x86_64-*kfreebsd*-gnu)
 
12855
            LD="${LD-ld} -m elf_i386_fbsd"
 
12856
            ;;
 
12857
          x86_64-*linux*)
 
12858
            case `/usr/bin/file conftest.o` in
 
12859
              *x86-64*)
 
12860
                LD="${LD-ld} -m elf32_x86_64"
 
12861
                ;;
 
12862
              *)
 
12863
                LD="${LD-ld} -m elf_i386"
 
12864
                ;;
 
12865
            esac
 
12866
            ;;
 
12867
          ppc64-*linux*|powerpc64-*linux*)
 
12868
            LD="${LD-ld} -m elf32ppclinux"
 
12869
            ;;
 
12870
          s390x-*linux*)
 
12871
            LD="${LD-ld} -m elf_s390"
 
12872
            ;;
 
12873
          sparc64-*linux*)
 
12874
            LD="${LD-ld} -m elf32_sparc"
 
12875
            ;;
 
12876
        esac
 
12877
        ;;
 
12878
      *64-bit*)
 
12879
        case $host in
 
12880
          x86_64-*kfreebsd*-gnu)
 
12881
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
12882
            ;;
 
12883
          x86_64-*linux*)
 
12884
            LD="${LD-ld} -m elf_x86_64"
 
12885
            ;;
 
12886
          ppc*-*linux*|powerpc*-*linux*)
 
12887
            LD="${LD-ld} -m elf64ppc"
 
12888
            ;;
 
12889
          s390*-*linux*|s390*-*tpf*)
 
12890
            LD="${LD-ld} -m elf64_s390"
 
12891
            ;;
 
12892
          sparc*-*linux*)
 
12893
            LD="${LD-ld} -m elf64_sparc"
 
12894
            ;;
 
12895
        esac
 
12896
        ;;
 
12897
    esac
 
12898
  fi
 
12899
  rm -rf conftest*
 
12900
  ;;
 
12901
 
 
12902
*-*-sco3.2v5*)
 
12903
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
12904
  SAVE_CFLAGS="$CFLAGS"
 
12905
  CFLAGS="$CFLAGS -belf"
 
12906
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
12907
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
12908
if ${lt_cv_cc_needs_belf+:} false; then :
 
12909
  $as_echo_n "(cached) " >&6
 
12910
else
 
12911
  ac_ext=c
 
12912
ac_cpp='$CPP $CPPFLAGS'
 
12913
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12914
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12915
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12916
 
 
12917
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12918
/* end confdefs.h.  */
 
12919
 
 
12920
int
 
12921
main ()
 
12922
{
 
12923
 
 
12924
  ;
 
12925
  return 0;
 
12926
}
 
12927
_ACEOF
 
12928
if ac_fn_c_try_link "$LINENO"; then :
 
12929
  lt_cv_cc_needs_belf=yes
 
12930
else
 
12931
  lt_cv_cc_needs_belf=no
 
12932
fi
 
12933
rm -f core conftest.err conftest.$ac_objext \
 
12934
    conftest$ac_exeext conftest.$ac_ext
 
12935
     ac_ext=c
 
12936
ac_cpp='$CPP $CPPFLAGS'
 
12937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12940
 
 
12941
fi
 
12942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
12943
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
12944
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
12945
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
12946
    CFLAGS="$SAVE_CFLAGS"
 
12947
  fi
 
12948
  ;;
 
12949
*-*solaris*)
 
12950
  # Find out which ABI we are using.
 
12951
  echo 'int i;' > conftest.$ac_ext
 
12952
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12953
  (eval $ac_compile) 2>&5
 
12954
  ac_status=$?
 
12955
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12956
  test $ac_status = 0; }; then
 
12957
    case `/usr/bin/file conftest.o` in
 
12958
    *64-bit*)
 
12959
      case $lt_cv_prog_gnu_ld in
 
12960
      yes*)
 
12961
        case $host in
 
12962
        i?86-*-solaris*)
 
12963
          LD="${LD-ld} -m elf_x86_64"
 
12964
          ;;
 
12965
        sparc*-*-solaris*)
 
12966
          LD="${LD-ld} -m elf64_sparc"
 
12967
          ;;
 
12968
        esac
 
12969
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
12970
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
12971
          LD="${LD-ld}_sol2"
 
12972
        fi
 
12973
        ;;
 
12974
      *)
 
12975
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
12976
          LD="${LD-ld} -64"
 
12977
        fi
 
12978
        ;;
 
12979
      esac
 
12980
      ;;
 
12981
    esac
 
12982
  fi
 
12983
  rm -rf conftest*
 
12984
  ;;
 
12985
esac
 
12986
 
 
12987
need_locks="$enable_libtool_lock"
 
12988
 
 
12989
if test -n "$ac_tool_prefix"; then
 
12990
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
12991
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
12992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12993
$as_echo_n "checking for $ac_word... " >&6; }
 
12994
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
12995
  $as_echo_n "(cached) " >&6
 
12996
else
 
12997
  if test -n "$MANIFEST_TOOL"; then
 
12998
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
12999
else
 
13000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13001
for as_dir in $PATH
 
13002
do
 
13003
  IFS=$as_save_IFS
 
13004
  test -z "$as_dir" && as_dir=.
 
13005
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13006
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13007
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
13008
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13009
    break 2
 
13010
  fi
 
13011
done
 
13012
  done
 
13013
IFS=$as_save_IFS
 
13014
 
 
13015
fi
 
13016
fi
 
13017
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
13018
if test -n "$MANIFEST_TOOL"; then
 
13019
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
13020
$as_echo "$MANIFEST_TOOL" >&6; }
 
13021
else
 
13022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13023
$as_echo "no" >&6; }
 
13024
fi
 
13025
 
 
13026
 
 
13027
fi
 
13028
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
13029
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
13030
  # Extract the first word of "mt", so it can be a program name with args.
 
13031
set dummy mt; ac_word=$2
 
13032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13033
$as_echo_n "checking for $ac_word... " >&6; }
 
13034
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
13035
  $as_echo_n "(cached) " >&6
 
13036
else
 
13037
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
13038
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
13039
else
 
13040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13041
for as_dir in $PATH
 
13042
do
 
13043
  IFS=$as_save_IFS
 
13044
  test -z "$as_dir" && as_dir=.
 
13045
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13046
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13047
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
13048
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13049
    break 2
 
13050
  fi
 
13051
done
 
13052
  done
 
13053
IFS=$as_save_IFS
 
13054
 
 
13055
fi
 
13056
fi
 
13057
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
13058
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
13059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
13060
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
13061
else
 
13062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13063
$as_echo "no" >&6; }
 
13064
fi
 
13065
 
 
13066
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
13067
    MANIFEST_TOOL=":"
 
13068
  else
 
13069
    case $cross_compiling:$ac_tool_warned in
 
13070
yes:)
 
13071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13073
ac_tool_warned=yes ;;
 
13074
esac
 
13075
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
13076
  fi
 
13077
else
 
13078
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
13079
fi
 
13080
 
 
13081
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
13082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
13083
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
13084
if ${lt_cv_path_mainfest_tool+:} false; then :
 
13085
  $as_echo_n "(cached) " >&6
 
13086
else
 
13087
  lt_cv_path_mainfest_tool=no
 
13088
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
13089
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
13090
  cat conftest.err >&5
 
13091
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
13092
    lt_cv_path_mainfest_tool=yes
 
13093
  fi
 
13094
  rm -f conftest*
 
13095
fi
 
13096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
13097
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
13098
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
13099
  MANIFEST_TOOL=:
 
13100
fi
 
13101
 
 
13102
 
 
13103
 
 
13104
 
 
13105
 
 
13106
 
 
13107
  case $host_os in
 
13108
    rhapsody* | darwin*)
 
13109
    if test -n "$ac_tool_prefix"; then
 
13110
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
13111
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
13112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13113
$as_echo_n "checking for $ac_word... " >&6; }
 
13114
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
13115
  $as_echo_n "(cached) " >&6
 
13116
else
 
13117
  if test -n "$DSYMUTIL"; then
 
13118
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
13119
else
 
13120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13121
for as_dir in $PATH
 
13122
do
 
13123
  IFS=$as_save_IFS
 
13124
  test -z "$as_dir" && as_dir=.
 
13125
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13126
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13127
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
13128
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13129
    break 2
 
13130
  fi
 
13131
done
 
13132
  done
 
13133
IFS=$as_save_IFS
 
13134
 
 
13135
fi
 
13136
fi
 
13137
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
13138
if test -n "$DSYMUTIL"; then
 
13139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
13140
$as_echo "$DSYMUTIL" >&6; }
 
13141
else
 
13142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13143
$as_echo "no" >&6; }
 
13144
fi
 
13145
 
 
13146
 
 
13147
fi
 
13148
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
13149
  ac_ct_DSYMUTIL=$DSYMUTIL
 
13150
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
13151
set dummy dsymutil; ac_word=$2
 
13152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13153
$as_echo_n "checking for $ac_word... " >&6; }
 
13154
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
13155
  $as_echo_n "(cached) " >&6
 
13156
else
 
13157
  if test -n "$ac_ct_DSYMUTIL"; then
 
13158
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
13159
else
 
13160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13161
for as_dir in $PATH
 
13162
do
 
13163
  IFS=$as_save_IFS
 
13164
  test -z "$as_dir" && as_dir=.
 
13165
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13166
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13167
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
13168
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13169
    break 2
 
13170
  fi
 
13171
done
 
13172
  done
 
13173
IFS=$as_save_IFS
 
13174
 
 
13175
fi
 
13176
fi
 
13177
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
13178
if test -n "$ac_ct_DSYMUTIL"; then
 
13179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
13180
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
13181
else
 
13182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13183
$as_echo "no" >&6; }
 
13184
fi
 
13185
 
 
13186
  if test "x$ac_ct_DSYMUTIL" = x; then
 
13187
    DSYMUTIL=":"
 
13188
  else
 
13189
    case $cross_compiling:$ac_tool_warned in
 
13190
yes:)
 
13191
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13192
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13193
ac_tool_warned=yes ;;
 
13194
esac
 
13195
    DSYMUTIL=$ac_ct_DSYMUTIL
 
13196
  fi
 
13197
else
 
13198
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
13199
fi
 
13200
 
 
13201
    if test -n "$ac_tool_prefix"; then
 
13202
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
13203
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13205
$as_echo_n "checking for $ac_word... " >&6; }
 
13206
if ${ac_cv_prog_NMEDIT+:} false; then :
 
13207
  $as_echo_n "(cached) " >&6
 
13208
else
 
13209
  if test -n "$NMEDIT"; then
 
13210
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
13211
else
 
13212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13213
for as_dir in $PATH
 
13214
do
 
13215
  IFS=$as_save_IFS
 
13216
  test -z "$as_dir" && as_dir=.
 
13217
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13218
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13219
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
13220
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13221
    break 2
 
13222
  fi
 
13223
done
 
13224
  done
 
13225
IFS=$as_save_IFS
 
13226
 
 
13227
fi
 
13228
fi
 
13229
NMEDIT=$ac_cv_prog_NMEDIT
 
13230
if test -n "$NMEDIT"; then
 
13231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
13232
$as_echo "$NMEDIT" >&6; }
 
13233
else
 
13234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13235
$as_echo "no" >&6; }
 
13236
fi
 
13237
 
 
13238
 
 
13239
fi
 
13240
if test -z "$ac_cv_prog_NMEDIT"; then
 
13241
  ac_ct_NMEDIT=$NMEDIT
 
13242
  # Extract the first word of "nmedit", so it can be a program name with args.
 
13243
set dummy nmedit; ac_word=$2
 
13244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13245
$as_echo_n "checking for $ac_word... " >&6; }
 
13246
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
13247
  $as_echo_n "(cached) " >&6
 
13248
else
 
13249
  if test -n "$ac_ct_NMEDIT"; then
 
13250
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
13251
else
 
13252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13253
for as_dir in $PATH
 
13254
do
 
13255
  IFS=$as_save_IFS
 
13256
  test -z "$as_dir" && as_dir=.
 
13257
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13258
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13259
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
13260
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13261
    break 2
 
13262
  fi
 
13263
done
 
13264
  done
 
13265
IFS=$as_save_IFS
 
13266
 
 
13267
fi
 
13268
fi
 
13269
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
13270
if test -n "$ac_ct_NMEDIT"; then
 
13271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
13272
$as_echo "$ac_ct_NMEDIT" >&6; }
 
13273
else
 
13274
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13275
$as_echo "no" >&6; }
 
13276
fi
 
13277
 
 
13278
  if test "x$ac_ct_NMEDIT" = x; then
 
13279
    NMEDIT=":"
 
13280
  else
 
13281
    case $cross_compiling:$ac_tool_warned in
 
13282
yes:)
 
13283
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13284
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13285
ac_tool_warned=yes ;;
 
13286
esac
 
13287
    NMEDIT=$ac_ct_NMEDIT
 
13288
  fi
 
13289
else
 
13290
  NMEDIT="$ac_cv_prog_NMEDIT"
 
13291
fi
 
13292
 
 
13293
    if test -n "$ac_tool_prefix"; then
 
13294
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
13295
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
13296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13297
$as_echo_n "checking for $ac_word... " >&6; }
 
13298
if ${ac_cv_prog_LIPO+:} false; then :
 
13299
  $as_echo_n "(cached) " >&6
 
13300
else
 
13301
  if test -n "$LIPO"; then
 
13302
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
13303
else
 
13304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13305
for as_dir in $PATH
 
13306
do
 
13307
  IFS=$as_save_IFS
 
13308
  test -z "$as_dir" && as_dir=.
 
13309
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13310
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13311
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
13312
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13313
    break 2
 
13314
  fi
 
13315
done
 
13316
  done
 
13317
IFS=$as_save_IFS
 
13318
 
 
13319
fi
 
13320
fi
 
13321
LIPO=$ac_cv_prog_LIPO
 
13322
if test -n "$LIPO"; then
 
13323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
13324
$as_echo "$LIPO" >&6; }
 
13325
else
 
13326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13327
$as_echo "no" >&6; }
 
13328
fi
 
13329
 
 
13330
 
 
13331
fi
 
13332
if test -z "$ac_cv_prog_LIPO"; then
 
13333
  ac_ct_LIPO=$LIPO
 
13334
  # Extract the first word of "lipo", so it can be a program name with args.
 
13335
set dummy lipo; ac_word=$2
 
13336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13337
$as_echo_n "checking for $ac_word... " >&6; }
 
13338
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
13339
  $as_echo_n "(cached) " >&6
 
13340
else
 
13341
  if test -n "$ac_ct_LIPO"; then
 
13342
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
13343
else
 
13344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13345
for as_dir in $PATH
 
13346
do
 
13347
  IFS=$as_save_IFS
 
13348
  test -z "$as_dir" && as_dir=.
 
13349
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13350
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13351
    ac_cv_prog_ac_ct_LIPO="lipo"
 
13352
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13353
    break 2
 
13354
  fi
 
13355
done
 
13356
  done
 
13357
IFS=$as_save_IFS
 
13358
 
 
13359
fi
 
13360
fi
 
13361
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
13362
if test -n "$ac_ct_LIPO"; then
 
13363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
13364
$as_echo "$ac_ct_LIPO" >&6; }
 
13365
else
 
13366
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13367
$as_echo "no" >&6; }
 
13368
fi
 
13369
 
 
13370
  if test "x$ac_ct_LIPO" = x; then
 
13371
    LIPO=":"
 
13372
  else
 
13373
    case $cross_compiling:$ac_tool_warned in
 
13374
yes:)
 
13375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13376
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13377
ac_tool_warned=yes ;;
 
13378
esac
 
13379
    LIPO=$ac_ct_LIPO
 
13380
  fi
 
13381
else
 
13382
  LIPO="$ac_cv_prog_LIPO"
 
13383
fi
 
13384
 
 
13385
    if test -n "$ac_tool_prefix"; then
 
13386
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
13387
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
13388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13389
$as_echo_n "checking for $ac_word... " >&6; }
 
13390
if ${ac_cv_prog_OTOOL+:} false; then :
 
13391
  $as_echo_n "(cached) " >&6
 
13392
else
 
13393
  if test -n "$OTOOL"; then
 
13394
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
13395
else
 
13396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13397
for as_dir in $PATH
 
13398
do
 
13399
  IFS=$as_save_IFS
 
13400
  test -z "$as_dir" && as_dir=.
 
13401
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13402
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13403
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
13404
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13405
    break 2
 
13406
  fi
 
13407
done
 
13408
  done
 
13409
IFS=$as_save_IFS
 
13410
 
 
13411
fi
 
13412
fi
 
13413
OTOOL=$ac_cv_prog_OTOOL
 
13414
if test -n "$OTOOL"; then
 
13415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
13416
$as_echo "$OTOOL" >&6; }
 
13417
else
 
13418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13419
$as_echo "no" >&6; }
 
13420
fi
 
13421
 
 
13422
 
 
13423
fi
 
13424
if test -z "$ac_cv_prog_OTOOL"; then
 
13425
  ac_ct_OTOOL=$OTOOL
 
13426
  # Extract the first word of "otool", so it can be a program name with args.
 
13427
set dummy otool; ac_word=$2
 
13428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13429
$as_echo_n "checking for $ac_word... " >&6; }
 
13430
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
13431
  $as_echo_n "(cached) " >&6
 
13432
else
 
13433
  if test -n "$ac_ct_OTOOL"; then
 
13434
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
13435
else
 
13436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13437
for as_dir in $PATH
 
13438
do
 
13439
  IFS=$as_save_IFS
 
13440
  test -z "$as_dir" && as_dir=.
 
13441
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13442
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13443
    ac_cv_prog_ac_ct_OTOOL="otool"
 
13444
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13445
    break 2
 
13446
  fi
 
13447
done
 
13448
  done
 
13449
IFS=$as_save_IFS
 
13450
 
 
13451
fi
 
13452
fi
 
13453
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
13454
if test -n "$ac_ct_OTOOL"; then
 
13455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
13456
$as_echo "$ac_ct_OTOOL" >&6; }
 
13457
else
 
13458
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13459
$as_echo "no" >&6; }
 
13460
fi
 
13461
 
 
13462
  if test "x$ac_ct_OTOOL" = x; then
 
13463
    OTOOL=":"
 
13464
  else
 
13465
    case $cross_compiling:$ac_tool_warned in
 
13466
yes:)
 
13467
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13468
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13469
ac_tool_warned=yes ;;
 
13470
esac
 
13471
    OTOOL=$ac_ct_OTOOL
 
13472
  fi
 
13473
else
 
13474
  OTOOL="$ac_cv_prog_OTOOL"
 
13475
fi
 
13476
 
 
13477
    if test -n "$ac_tool_prefix"; then
 
13478
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
13479
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
13480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13481
$as_echo_n "checking for $ac_word... " >&6; }
 
13482
if ${ac_cv_prog_OTOOL64+:} false; then :
 
13483
  $as_echo_n "(cached) " >&6
 
13484
else
 
13485
  if test -n "$OTOOL64"; then
 
13486
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
13487
else
 
13488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13489
for as_dir in $PATH
 
13490
do
 
13491
  IFS=$as_save_IFS
 
13492
  test -z "$as_dir" && as_dir=.
 
13493
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13494
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13495
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
13496
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13497
    break 2
 
13498
  fi
 
13499
done
 
13500
  done
 
13501
IFS=$as_save_IFS
 
13502
 
 
13503
fi
 
13504
fi
 
13505
OTOOL64=$ac_cv_prog_OTOOL64
 
13506
if test -n "$OTOOL64"; then
 
13507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
13508
$as_echo "$OTOOL64" >&6; }
 
13509
else
 
13510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13511
$as_echo "no" >&6; }
 
13512
fi
 
13513
 
 
13514
 
 
13515
fi
 
13516
if test -z "$ac_cv_prog_OTOOL64"; then
 
13517
  ac_ct_OTOOL64=$OTOOL64
 
13518
  # Extract the first word of "otool64", so it can be a program name with args.
 
13519
set dummy otool64; ac_word=$2
 
13520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13521
$as_echo_n "checking for $ac_word... " >&6; }
 
13522
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
13523
  $as_echo_n "(cached) " >&6
 
13524
else
 
13525
  if test -n "$ac_ct_OTOOL64"; then
 
13526
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
13527
else
 
13528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13529
for as_dir in $PATH
 
13530
do
 
13531
  IFS=$as_save_IFS
 
13532
  test -z "$as_dir" && as_dir=.
 
13533
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13534
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13535
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
13536
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13537
    break 2
 
13538
  fi
 
13539
done
 
13540
  done
 
13541
IFS=$as_save_IFS
 
13542
 
 
13543
fi
 
13544
fi
 
13545
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
13546
if test -n "$ac_ct_OTOOL64"; then
 
13547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
13548
$as_echo "$ac_ct_OTOOL64" >&6; }
 
13549
else
 
13550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13551
$as_echo "no" >&6; }
 
13552
fi
 
13553
 
 
13554
  if test "x$ac_ct_OTOOL64" = x; then
 
13555
    OTOOL64=":"
 
13556
  else
 
13557
    case $cross_compiling:$ac_tool_warned in
 
13558
yes:)
 
13559
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13560
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13561
ac_tool_warned=yes ;;
 
13562
esac
 
13563
    OTOOL64=$ac_ct_OTOOL64
 
13564
  fi
 
13565
else
 
13566
  OTOOL64="$ac_cv_prog_OTOOL64"
 
13567
fi
 
13568
 
 
13569
 
 
13570
 
 
13571
 
 
13572
 
 
13573
 
 
13574
 
 
13575
 
 
13576
 
 
13577
 
 
13578
 
 
13579
 
 
13580
 
 
13581
 
 
13582
 
 
13583
 
 
13584
 
 
13585
 
 
13586
 
 
13587
 
 
13588
 
 
13589
 
 
13590
 
 
13591
 
 
13592
 
 
13593
 
 
13594
 
 
13595
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
13596
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
13597
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
13598
  $as_echo_n "(cached) " >&6
 
13599
else
 
13600
  lt_cv_apple_cc_single_mod=no
 
13601
      if test -z "${LT_MULTI_MODULE}"; then
 
13602
        # By default we will add the -single_module flag. You can override
 
13603
        # by either setting the environment variable LT_MULTI_MODULE
 
13604
        # non-empty at configure time, or by adding -multi_module to the
 
13605
        # link flags.
 
13606
        rm -rf libconftest.dylib*
 
13607
        echo "int foo(void){return 1;}" > conftest.c
 
13608
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
13609
-dynamiclib -Wl,-single_module conftest.c" >&5
 
13610
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
13611
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
13612
        _lt_result=$?
 
13613
        # If there is a non-empty error log, and "single_module"
 
13614
        # appears in it, assume the flag caused a linker warning
 
13615
        if test -s conftest.err && $GREP single_module conftest.err; then
 
13616
          cat conftest.err >&5
 
13617
        # Otherwise, if the output was created with a 0 exit code from
 
13618
        # the compiler, it worked.
 
13619
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
13620
          lt_cv_apple_cc_single_mod=yes
 
13621
        else
 
13622
          cat conftest.err >&5
 
13623
        fi
 
13624
        rm -rf libconftest.dylib*
 
13625
        rm -f conftest.*
 
13626
      fi
 
13627
fi
 
13628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
13629
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
13630
 
 
13631
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
13632
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
13633
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
13634
  $as_echo_n "(cached) " >&6
 
13635
else
 
13636
  lt_cv_ld_exported_symbols_list=no
 
13637
      save_LDFLAGS=$LDFLAGS
 
13638
      echo "_main" > conftest.sym
 
13639
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
13640
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13641
/* end confdefs.h.  */
 
13642
 
 
13643
int
 
13644
main ()
 
13645
{
 
13646
 
 
13647
  ;
 
13648
  return 0;
 
13649
}
 
13650
_ACEOF
 
13651
if ac_fn_c_try_link "$LINENO"; then :
 
13652
  lt_cv_ld_exported_symbols_list=yes
 
13653
else
 
13654
  lt_cv_ld_exported_symbols_list=no
 
13655
fi
 
13656
rm -f core conftest.err conftest.$ac_objext \
 
13657
    conftest$ac_exeext conftest.$ac_ext
 
13658
        LDFLAGS="$save_LDFLAGS"
 
13659
 
 
13660
fi
 
13661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
13662
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
13663
 
 
13664
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
13665
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
13666
if ${lt_cv_ld_force_load+:} false; then :
 
13667
  $as_echo_n "(cached) " >&6
 
13668
else
 
13669
  lt_cv_ld_force_load=no
 
13670
      cat > conftest.c << _LT_EOF
 
13671
int forced_loaded() { return 2;}
 
13672
_LT_EOF
 
13673
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
13674
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
13675
      echo "$AR cru libconftest.a conftest.o" >&5
 
13676
      $AR cru libconftest.a conftest.o 2>&5
 
13677
      echo "$RANLIB libconftest.a" >&5
 
13678
      $RANLIB libconftest.a 2>&5
 
13679
      cat > conftest.c << _LT_EOF
 
13680
int main() { return 0;}
 
13681
_LT_EOF
 
13682
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
13683
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
13684
      _lt_result=$?
 
13685
      if test -s conftest.err && $GREP force_load conftest.err; then
 
13686
        cat conftest.err >&5
 
13687
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
13688
        lt_cv_ld_force_load=yes
 
13689
      else
 
13690
        cat conftest.err >&5
 
13691
      fi
 
13692
        rm -f conftest.err libconftest.a conftest conftest.c
 
13693
        rm -rf conftest.dSYM
 
13694
 
 
13695
fi
 
13696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
13697
$as_echo "$lt_cv_ld_force_load" >&6; }
 
13698
    case $host_os in
 
13699
    rhapsody* | darwin1.[012])
 
13700
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
13701
    darwin1.*)
 
13702
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
13703
    darwin*) # darwin 5.x on
 
13704
      # if running on 10.5 or later, the deployment target defaults
 
13705
      # to the OS version, if on x86, and 10.4, the deployment
 
13706
      # target defaults to 10.4. Don't you love it?
 
13707
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
13708
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
13709
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
13710
        10.[012]*)
 
13711
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
13712
        10.*)
 
13713
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
13714
      esac
 
13715
    ;;
 
13716
  esac
 
13717
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
13718
      _lt_dar_single_mod='$single_module'
 
13719
    fi
 
13720
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
13721
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
13722
    else
 
13723
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13724
    fi
 
13725
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
13726
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
13727
    else
 
13728
      _lt_dsymutil=
 
13729
    fi
 
13730
    ;;
 
13731
  esac
 
13732
 
 
13733
for ac_header in dlfcn.h
 
13734
do :
 
13735
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
13736
"
 
13737
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
13738
  cat >>confdefs.h <<_ACEOF
 
13739
#define HAVE_DLFCN_H 1
 
13740
_ACEOF
 
13741
 
 
13742
fi
 
13743
 
 
13744
done
 
13745
 
 
13746
 
 
13747
 
 
13748
 
 
13749
 
 
13750
# Set options
 
13751
 
 
13752
 
 
13753
 
 
13754
        enable_dlopen=no
 
13755
 
 
13756
 
 
13757
  enable_win32_dll=no
 
13758
 
 
13759
 
 
13760
            # Check whether --enable-shared was given.
 
13761
if test "${enable_shared+set}" = set; then :
 
13762
  enableval=$enable_shared; p=${PACKAGE-default}
 
13763
    case $enableval in
 
13764
    yes) enable_shared=yes ;;
 
13765
    no) enable_shared=no ;;
 
13766
    *)
 
13767
      enable_shared=no
 
13768
      # Look at the argument we got.  We use all the common list separators.
 
13769
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
13770
      for pkg in $enableval; do
 
13771
        IFS="$lt_save_ifs"
 
13772
        if test "X$pkg" = "X$p"; then
 
13773
          enable_shared=yes
 
13774
        fi
 
13775
      done
 
13776
      IFS="$lt_save_ifs"
 
13777
      ;;
 
13778
    esac
 
13779
else
 
13780
  enable_shared=yes
 
13781
fi
 
13782
 
 
13783
 
 
13784
 
 
13785
 
 
13786
 
 
13787
 
 
13788
 
 
13789
 
 
13790
 
 
13791
 
 
13792
 
 
13793
# Check whether --with-pic was given.
 
13794
if test "${with_pic+set}" = set; then :
 
13795
  withval=$with_pic; lt_p=${PACKAGE-default}
 
13796
    case $withval in
 
13797
    yes|no) pic_mode=$withval ;;
 
13798
    *)
 
13799
      pic_mode=default
 
13800
      # Look at the argument we got.  We use all the common list separators.
 
13801
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
13802
      for lt_pkg in $withval; do
 
13803
        IFS="$lt_save_ifs"
 
13804
        if test "X$lt_pkg" = "X$lt_p"; then
 
13805
          pic_mode=yes
 
13806
        fi
 
13807
      done
 
13808
      IFS="$lt_save_ifs"
 
13809
      ;;
 
13810
    esac
 
13811
else
 
13812
  pic_mode=default
 
13813
fi
 
13814
 
 
13815
 
 
13816
test -z "$pic_mode" && pic_mode=default
 
13817
 
 
13818
 
 
13819
 
 
13820
 
 
13821
 
 
13822
 
 
13823
 
 
13824
  # Check whether --enable-fast-install was given.
 
13825
if test "${enable_fast_install+set}" = set; then :
 
13826
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
13827
    case $enableval in
 
13828
    yes) enable_fast_install=yes ;;
 
13829
    no) enable_fast_install=no ;;
 
13830
    *)
 
13831
      enable_fast_install=no
 
13832
      # Look at the argument we got.  We use all the common list separators.
 
13833
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
13834
      for pkg in $enableval; do
 
13835
        IFS="$lt_save_ifs"
 
13836
        if test "X$pkg" = "X$p"; then
 
13837
          enable_fast_install=yes
 
13838
        fi
 
13839
      done
 
13840
      IFS="$lt_save_ifs"
 
13841
      ;;
 
13842
    esac
 
13843
else
 
13844
  enable_fast_install=yes
 
13845
fi
 
13846
 
 
13847
 
 
13848
 
 
13849
 
 
13850
 
 
13851
 
 
13852
 
 
13853
 
 
13854
 
 
13855
 
 
13856
 
 
13857
# This can be used to rebuild libtool when needed
 
13858
LIBTOOL_DEPS="$ltmain"
 
13859
 
 
13860
# Always use our own libtool.
 
13861
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
13862
 
 
13863
 
 
13864
 
 
13865
 
 
13866
 
 
13867
 
 
13868
 
 
13869
 
 
13870
 
 
13871
 
 
13872
 
 
13873
 
 
13874
 
 
13875
 
 
13876
 
 
13877
 
 
13878
 
 
13879
 
 
13880
 
 
13881
 
 
13882
 
 
13883
 
 
13884
 
 
13885
 
 
13886
 
 
13887
 
 
13888
 
 
13889
 
 
13890
 
 
13891
 
 
13892
test -z "$LN_S" && LN_S="ln -s"
 
13893
 
 
13894
 
 
13895
 
 
13896
 
 
13897
 
 
13898
 
 
13899
 
 
13900
 
 
13901
 
 
13902
 
 
13903
 
 
13904
 
 
13905
 
 
13906
 
 
13907
if test -n "${ZSH_VERSION+set}" ; then
 
13908
   setopt NO_GLOB_SUBST
 
13909
fi
 
13910
 
 
13911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
13912
$as_echo_n "checking for objdir... " >&6; }
 
13913
if ${lt_cv_objdir+:} false; then :
 
13914
  $as_echo_n "(cached) " >&6
 
13915
else
 
13916
  rm -f .libs 2>/dev/null
 
13917
mkdir .libs 2>/dev/null
 
13918
if test -d .libs; then
 
13919
  lt_cv_objdir=.libs
 
13920
else
 
13921
  # MS-DOS does not allow filenames that begin with a dot.
 
13922
  lt_cv_objdir=_libs
 
13923
fi
 
13924
rmdir .libs 2>/dev/null
 
13925
fi
 
13926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
13927
$as_echo "$lt_cv_objdir" >&6; }
 
13928
objdir=$lt_cv_objdir
 
13929
 
 
13930
 
 
13931
 
 
13932
 
 
13933
 
 
13934
cat >>confdefs.h <<_ACEOF
 
13935
#define LT_OBJDIR "$lt_cv_objdir/"
 
13936
_ACEOF
 
13937
 
 
13938
 
 
13939
 
 
13940
 
 
13941
case $host_os in
 
13942
aix3*)
 
13943
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
13944
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
13945
  # vanish in a puff of smoke.
 
13946
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
13947
    COLLECT_NAMES=
 
13948
    export COLLECT_NAMES
 
13949
  fi
 
13950
  ;;
 
13951
esac
 
13952
 
 
13953
# Global variables:
 
13954
ofile=libtool
 
13955
can_build_shared=yes
 
13956
 
 
13957
# All known linkers require a `.a' archive for static linking (except MSVC,
 
13958
# which needs '.lib').
 
13959
libext=a
 
13960
 
 
13961
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
13962
 
 
13963
old_CC="$CC"
 
13964
old_CFLAGS="$CFLAGS"
 
13965
 
 
13966
# Set sane defaults for various variables
 
13967
test -z "$CC" && CC=cc
 
13968
test -z "$LTCC" && LTCC=$CC
 
13969
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
13970
test -z "$LD" && LD=ld
 
13971
test -z "$ac_objext" && ac_objext=o
 
13972
 
 
13973
for cc_temp in $compiler""; do
 
13974
  case $cc_temp in
 
13975
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13976
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13977
    \-*) ;;
 
13978
    *) break;;
 
13979
  esac
 
13980
done
 
13981
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
13982
 
 
13983
 
 
13984
# Only perform the check for file, if the check method requires it
 
13985
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
13986
case $deplibs_check_method in
 
13987
file_magic*)
 
13988
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
13989
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
13990
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
13991
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
13992
  $as_echo_n "(cached) " >&6
 
13993
else
 
13994
  case $MAGIC_CMD in
 
13995
[\\/*] |  ?:[\\/]*)
 
13996
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
13997
  ;;
 
13998
*)
 
13999
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
14000
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
14001
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
14002
  for ac_dir in $ac_dummy; do
 
14003
    IFS="$lt_save_ifs"
 
14004
    test -z "$ac_dir" && ac_dir=.
 
14005
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
14006
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
14007
      if test -n "$file_magic_test_file"; then
 
14008
        case $deplibs_check_method in
 
14009
        "file_magic "*)
 
14010
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
14011
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
14012
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
14013
            $EGREP "$file_magic_regex" > /dev/null; then
 
14014
            :
 
14015
          else
 
14016
            cat <<_LT_EOF 1>&2
 
14017
 
 
14018
*** Warning: the command libtool uses to detect shared libraries,
 
14019
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
14020
*** The result is that libtool may fail to recognize shared libraries
 
14021
*** as such.  This will affect the creation of libtool libraries that
 
14022
*** depend on shared libraries, but programs linked with such libtool
 
14023
*** libraries will work regardless of this problem.  Nevertheless, you
 
14024
*** may want to report the problem to your system manager and/or to
 
14025
*** bug-libtool@gnu.org
 
14026
 
 
14027
_LT_EOF
 
14028
          fi ;;
 
14029
        esac
 
14030
      fi
 
14031
      break
 
14032
    fi
 
14033
  done
 
14034
  IFS="$lt_save_ifs"
 
14035
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
14036
  ;;
 
14037
esac
 
14038
fi
 
14039
 
 
14040
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
14041
if test -n "$MAGIC_CMD"; then
 
14042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
14043
$as_echo "$MAGIC_CMD" >&6; }
 
14044
else
 
14045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14046
$as_echo "no" >&6; }
 
14047
fi
 
14048
 
 
14049
 
 
14050
 
 
14051
 
 
14052
 
 
14053
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
14054
  if test -n "$ac_tool_prefix"; then
 
14055
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
14056
$as_echo_n "checking for file... " >&6; }
 
14057
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
14058
  $as_echo_n "(cached) " >&6
 
14059
else
 
14060
  case $MAGIC_CMD in
 
14061
[\\/*] |  ?:[\\/]*)
 
14062
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
14063
  ;;
 
14064
*)
 
14065
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
14066
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
14067
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
14068
  for ac_dir in $ac_dummy; do
 
14069
    IFS="$lt_save_ifs"
 
14070
    test -z "$ac_dir" && ac_dir=.
 
14071
    if test -f $ac_dir/file; then
 
14072
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
14073
      if test -n "$file_magic_test_file"; then
 
14074
        case $deplibs_check_method in
 
14075
        "file_magic "*)
 
14076
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
14077
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
14078
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
14079
            $EGREP "$file_magic_regex" > /dev/null; then
 
14080
            :
 
14081
          else
 
14082
            cat <<_LT_EOF 1>&2
 
14083
 
 
14084
*** Warning: the command libtool uses to detect shared libraries,
 
14085
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
14086
*** The result is that libtool may fail to recognize shared libraries
 
14087
*** as such.  This will affect the creation of libtool libraries that
 
14088
*** depend on shared libraries, but programs linked with such libtool
 
14089
*** libraries will work regardless of this problem.  Nevertheless, you
 
14090
*** may want to report the problem to your system manager and/or to
 
14091
*** bug-libtool@gnu.org
 
14092
 
 
14093
_LT_EOF
 
14094
          fi ;;
 
14095
        esac
 
14096
      fi
 
14097
      break
 
14098
    fi
 
14099
  done
 
14100
  IFS="$lt_save_ifs"
 
14101
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
14102
  ;;
 
14103
esac
 
14104
fi
 
14105
 
 
14106
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
14107
if test -n "$MAGIC_CMD"; then
 
14108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
14109
$as_echo "$MAGIC_CMD" >&6; }
 
14110
else
 
14111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14112
$as_echo "no" >&6; }
 
14113
fi
 
14114
 
 
14115
 
 
14116
  else
 
14117
    MAGIC_CMD=:
 
14118
  fi
 
14119
fi
 
14120
 
 
14121
  fi
 
14122
  ;;
 
14123
esac
 
14124
 
 
14125
# Use C for the default configuration in the libtool script
 
14126
 
 
14127
lt_save_CC="$CC"
 
14128
ac_ext=c
 
14129
ac_cpp='$CPP $CPPFLAGS'
 
14130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14133
 
 
14134
 
 
14135
# Source file extension for C test sources.
 
14136
ac_ext=c
 
14137
 
 
14138
# Object file extension for compiled C test sources.
 
14139
objext=o
 
14140
objext=$objext
 
14141
 
 
14142
# Code to be used in simple compile tests
 
14143
lt_simple_compile_test_code="int some_variable = 0;"
 
14144
 
 
14145
# Code to be used in simple link tests
 
14146
lt_simple_link_test_code='int main(){return(0);}'
 
14147
 
 
14148
 
 
14149
 
 
14150
 
 
14151
 
 
14152
 
 
14153
 
 
14154
# If no C compiler was specified, use CC.
 
14155
LTCC=${LTCC-"$CC"}
 
14156
 
 
14157
# If no C compiler flags were specified, use CFLAGS.
 
14158
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14159
 
 
14160
# Allow CC to be a program name with arguments.
 
14161
compiler=$CC
 
14162
 
 
14163
# Save the default compiler, since it gets overwritten when the other
 
14164
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
14165
compiler_DEFAULT=$CC
 
14166
 
 
14167
# save warnings/boilerplate of simple test code
 
14168
ac_outfile=conftest.$ac_objext
 
14169
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14170
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14171
_lt_compiler_boilerplate=`cat conftest.err`
 
14172
$RM conftest*
 
14173
 
 
14174
ac_outfile=conftest.$ac_objext
 
14175
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14176
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14177
_lt_linker_boilerplate=`cat conftest.err`
 
14178
$RM -r conftest*
 
14179
 
 
14180
 
 
14181
if test -n "$compiler"; then
 
14182
 
 
14183
lt_prog_compiler_no_builtin_flag=
 
14184
 
 
14185
if test "$GCC" = yes; then
 
14186
  case $cc_basename in
 
14187
  nvcc*)
 
14188
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
14189
  *)
 
14190
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
14191
  esac
 
14192
 
 
14193
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
14194
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
14195
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
14196
  $as_echo_n "(cached) " >&6
 
14197
else
 
14198
  lt_cv_prog_compiler_rtti_exceptions=no
 
14199
   ac_outfile=conftest.$ac_objext
 
14200
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14201
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
14202
   # Insert the option either (1) after the last *FLAGS variable, or
 
14203
   # (2) before a word containing "conftest.", or (3) at the end.
 
14204
   # Note that $ac_compile itself does not contain backslashes and begins
 
14205
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14206
   # The option is referenced via a variable to avoid confusing sed.
 
14207
   lt_compile=`echo "$ac_compile" | $SED \
 
14208
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14209
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14210
   -e 's:$: $lt_compiler_flag:'`
 
14211
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14212
   (eval "$lt_compile" 2>conftest.err)
 
14213
   ac_status=$?
 
14214
   cat conftest.err >&5
 
14215
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14216
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14217
     # The compiler can only warn and ignore the option if not recognized
 
14218
     # So say no if there are warnings other than the usual output.
 
14219
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14220
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14221
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14222
       lt_cv_prog_compiler_rtti_exceptions=yes
 
14223
     fi
 
14224
   fi
 
14225
   $RM conftest*
 
14226
 
 
14227
fi
 
14228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
14229
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
14230
 
 
14231
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
14232
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
14233
else
 
14234
    :
 
14235
fi
 
14236
 
 
14237
fi
 
14238
 
 
14239
 
 
14240
 
 
14241
 
 
14242
 
 
14243
 
 
14244
  lt_prog_compiler_wl=
 
14245
lt_prog_compiler_pic=
 
14246
lt_prog_compiler_static=
 
14247
 
 
14248
 
 
14249
  if test "$GCC" = yes; then
 
14250
    lt_prog_compiler_wl='-Wl,'
 
14251
    lt_prog_compiler_static='-static'
 
14252
 
 
14253
    case $host_os in
 
14254
      aix*)
 
14255
      # All AIX code is PIC.
 
14256
      if test "$host_cpu" = ia64; then
 
14257
        # AIX 5 now supports IA64 processor
 
14258
        lt_prog_compiler_static='-Bstatic'
 
14259
      fi
 
14260
      ;;
 
14261
 
 
14262
    amigaos*)
 
14263
      case $host_cpu in
 
14264
      powerpc)
 
14265
            # see comment about AmigaOS4 .so support
 
14266
            lt_prog_compiler_pic='-fPIC'
 
14267
        ;;
 
14268
      m68k)
 
14269
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14270
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14271
            # like `-m68040'.
 
14272
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
14273
        ;;
 
14274
      esac
 
14275
      ;;
 
14276
 
 
14277
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14278
      # PIC is the default for these OSes.
 
14279
      ;;
 
14280
 
 
14281
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
14282
      # This hack is so that the source file can tell whether it is being
 
14283
      # built for inclusion in a dll (and should export symbols for example).
 
14284
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14285
      # (--disable-auto-import) libraries
 
14286
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
14287
      ;;
 
14288
 
 
14289
    darwin* | rhapsody*)
 
14290
      # PIC is the default on this platform
 
14291
      # Common symbols not allowed in MH_DYLIB files
 
14292
      lt_prog_compiler_pic='-fno-common'
 
14293
      ;;
 
14294
 
 
14295
    haiku*)
 
14296
      # PIC is the default for Haiku.
 
14297
      # The "-static" flag exists, but is broken.
 
14298
      lt_prog_compiler_static=
 
14299
      ;;
 
14300
 
 
14301
    hpux*)
 
14302
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
14303
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
14304
      # sets the default TLS model and affects inlining.
 
14305
      case $host_cpu in
 
14306
      hppa*64*)
 
14307
        # +Z the default
 
14308
        ;;
 
14309
      *)
 
14310
        lt_prog_compiler_pic='-fPIC'
 
14311
        ;;
 
14312
      esac
 
14313
      ;;
 
14314
 
 
14315
    interix[3-9]*)
 
14316
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14317
      # Instead, we relocate shared libraries at runtime.
 
14318
      ;;
 
14319
 
 
14320
    msdosdjgpp*)
 
14321
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14322
      # on systems that don't support them.
 
14323
      lt_prog_compiler_can_build_shared=no
 
14324
      enable_shared=no
 
14325
      ;;
 
14326
 
 
14327
    *nto* | *qnx*)
 
14328
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14329
      # it will coredump.
 
14330
      lt_prog_compiler_pic='-fPIC -shared'
 
14331
      ;;
 
14332
 
 
14333
    sysv4*MP*)
 
14334
      if test -d /usr/nec; then
 
14335
        lt_prog_compiler_pic=-Kconform_pic
 
14336
      fi
 
14337
      ;;
 
14338
 
 
14339
    *)
 
14340
      lt_prog_compiler_pic='-fPIC'
 
14341
      ;;
 
14342
    esac
 
14343
 
 
14344
    case $cc_basename in
 
14345
    nvcc*) # Cuda Compiler Driver 2.2
 
14346
      lt_prog_compiler_wl='-Xlinker '
 
14347
      if test -n "$lt_prog_compiler_pic"; then
 
14348
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
14349
      fi
 
14350
      ;;
 
14351
    esac
 
14352
  else
 
14353
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14354
    case $host_os in
 
14355
    aix*)
 
14356
      lt_prog_compiler_wl='-Wl,'
 
14357
      if test "$host_cpu" = ia64; then
 
14358
        # AIX 5 now supports IA64 processor
 
14359
        lt_prog_compiler_static='-Bstatic'
 
14360
      else
 
14361
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
14362
      fi
 
14363
      ;;
 
14364
 
 
14365
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
14366
      # This hack is so that the source file can tell whether it is being
 
14367
      # built for inclusion in a dll (and should export symbols for example).
 
14368
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
14369
      ;;
 
14370
 
 
14371
    hpux9* | hpux10* | hpux11*)
 
14372
      lt_prog_compiler_wl='-Wl,'
 
14373
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14374
      # not for PA HP-UX.
 
14375
      case $host_cpu in
 
14376
      hppa*64*|ia64*)
 
14377
        # +Z the default
 
14378
        ;;
 
14379
      *)
 
14380
        lt_prog_compiler_pic='+Z'
 
14381
        ;;
 
14382
      esac
 
14383
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14384
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
14385
      ;;
 
14386
 
 
14387
    irix5* | irix6* | nonstopux*)
 
14388
      lt_prog_compiler_wl='-Wl,'
 
14389
      # PIC (with -KPIC) is the default.
 
14390
      lt_prog_compiler_static='-non_shared'
 
14391
      ;;
 
14392
 
 
14393
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
14394
      case $cc_basename in
 
14395
      # old Intel for x86_64 which still supported -KPIC.
 
14396
      ecc*)
 
14397
        lt_prog_compiler_wl='-Wl,'
 
14398
        lt_prog_compiler_pic='-KPIC'
 
14399
        lt_prog_compiler_static='-static'
 
14400
        ;;
 
14401
      # icc used to be incompatible with GCC.
 
14402
      # ICC 10 doesn't accept -KPIC any more.
 
14403
      icc* | ifort*)
 
14404
        lt_prog_compiler_wl='-Wl,'
 
14405
        lt_prog_compiler_pic='-fPIC'
 
14406
        lt_prog_compiler_static='-static'
 
14407
        ;;
 
14408
      # Lahey Fortran 8.1.
 
14409
      lf95*)
 
14410
        lt_prog_compiler_wl='-Wl,'
 
14411
        lt_prog_compiler_pic='--shared'
 
14412
        lt_prog_compiler_static='--static'
 
14413
        ;;
 
14414
      nagfor*)
 
14415
        # NAG Fortran compiler
 
14416
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
14417
        lt_prog_compiler_pic='-PIC'
 
14418
        lt_prog_compiler_static='-Bstatic'
 
14419
        ;;
 
14420
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
14421
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14422
        # which looks to be a dead project)
 
14423
        lt_prog_compiler_wl='-Wl,'
 
14424
        lt_prog_compiler_pic='-fpic'
 
14425
        lt_prog_compiler_static='-Bstatic'
 
14426
        ;;
 
14427
      ccc*)
 
14428
        lt_prog_compiler_wl='-Wl,'
 
14429
        # All Alpha code is PIC.
 
14430
        lt_prog_compiler_static='-non_shared'
 
14431
        ;;
 
14432
      xl* | bgxl* | bgf* | mpixl*)
 
14433
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
14434
        lt_prog_compiler_wl='-Wl,'
 
14435
        lt_prog_compiler_pic='-qpic'
 
14436
        lt_prog_compiler_static='-qstaticlink'
 
14437
        ;;
 
14438
      *)
 
14439
        case `$CC -V 2>&1 | sed 5q` in
 
14440
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
14441
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14442
          lt_prog_compiler_pic='-KPIC'
 
14443
          lt_prog_compiler_static='-Bstatic'
 
14444
          lt_prog_compiler_wl=''
 
14445
          ;;
 
14446
        *Sun\ F* | *Sun*Fortran*)
 
14447
          lt_prog_compiler_pic='-KPIC'
 
14448
          lt_prog_compiler_static='-Bstatic'
 
14449
          lt_prog_compiler_wl='-Qoption ld '
 
14450
          ;;
 
14451
        *Sun\ C*)
 
14452
          # Sun C 5.9
 
14453
          lt_prog_compiler_pic='-KPIC'
 
14454
          lt_prog_compiler_static='-Bstatic'
 
14455
          lt_prog_compiler_wl='-Wl,'
 
14456
          ;;
 
14457
        *Intel*\ [CF]*Compiler*)
 
14458
          lt_prog_compiler_wl='-Wl,'
 
14459
          lt_prog_compiler_pic='-fPIC'
 
14460
          lt_prog_compiler_static='-static'
 
14461
          ;;
 
14462
        *Portland\ Group*)
 
14463
          lt_prog_compiler_wl='-Wl,'
 
14464
          lt_prog_compiler_pic='-fpic'
 
14465
          lt_prog_compiler_static='-Bstatic'
 
14466
          ;;
 
14467
        esac
 
14468
        ;;
 
14469
      esac
 
14470
      ;;
 
14471
 
 
14472
    newsos6)
 
14473
      lt_prog_compiler_pic='-KPIC'
 
14474
      lt_prog_compiler_static='-Bstatic'
 
14475
      ;;
 
14476
 
 
14477
    *nto* | *qnx*)
 
14478
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14479
      # it will coredump.
 
14480
      lt_prog_compiler_pic='-fPIC -shared'
 
14481
      ;;
 
14482
 
 
14483
    osf3* | osf4* | osf5*)
 
14484
      lt_prog_compiler_wl='-Wl,'
 
14485
      # All OSF/1 code is PIC.
 
14486
      lt_prog_compiler_static='-non_shared'
 
14487
      ;;
 
14488
 
 
14489
    rdos*)
 
14490
      lt_prog_compiler_static='-non_shared'
 
14491
      ;;
 
14492
 
 
14493
    solaris*)
 
14494
      lt_prog_compiler_pic='-KPIC'
 
14495
      lt_prog_compiler_static='-Bstatic'
 
14496
      case $cc_basename in
 
14497
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
14498
        lt_prog_compiler_wl='-Qoption ld ';;
 
14499
      *)
 
14500
        lt_prog_compiler_wl='-Wl,';;
 
14501
      esac
 
14502
      ;;
 
14503
 
 
14504
    sunos4*)
 
14505
      lt_prog_compiler_wl='-Qoption ld '
 
14506
      lt_prog_compiler_pic='-PIC'
 
14507
      lt_prog_compiler_static='-Bstatic'
 
14508
      ;;
 
14509
 
 
14510
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14511
      lt_prog_compiler_wl='-Wl,'
 
14512
      lt_prog_compiler_pic='-KPIC'
 
14513
      lt_prog_compiler_static='-Bstatic'
 
14514
      ;;
 
14515
 
 
14516
    sysv4*MP*)
 
14517
      if test -d /usr/nec ;then
 
14518
        lt_prog_compiler_pic='-Kconform_pic'
 
14519
        lt_prog_compiler_static='-Bstatic'
 
14520
      fi
 
14521
      ;;
 
14522
 
 
14523
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14524
      lt_prog_compiler_wl='-Wl,'
 
14525
      lt_prog_compiler_pic='-KPIC'
 
14526
      lt_prog_compiler_static='-Bstatic'
 
14527
      ;;
 
14528
 
 
14529
    unicos*)
 
14530
      lt_prog_compiler_wl='-Wl,'
 
14531
      lt_prog_compiler_can_build_shared=no
 
14532
      ;;
 
14533
 
 
14534
    uts4*)
 
14535
      lt_prog_compiler_pic='-pic'
 
14536
      lt_prog_compiler_static='-Bstatic'
 
14537
      ;;
 
14538
 
 
14539
    *)
 
14540
      lt_prog_compiler_can_build_shared=no
 
14541
      ;;
 
14542
    esac
 
14543
  fi
 
14544
 
 
14545
case $host_os in
 
14546
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14547
  *djgpp*)
 
14548
    lt_prog_compiler_pic=
 
14549
    ;;
 
14550
  *)
 
14551
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
14552
    ;;
 
14553
esac
 
14554
 
 
14555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14556
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14557
if ${lt_cv_prog_compiler_pic+:} false; then :
 
14558
  $as_echo_n "(cached) " >&6
 
14559
else
 
14560
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
14561
fi
 
14562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
14563
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
14564
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
14565
 
 
14566
#
 
14567
# Check to make sure the PIC flag actually works.
 
14568
#
 
14569
if test -n "$lt_prog_compiler_pic"; then
 
14570
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
14571
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
14572
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
14573
  $as_echo_n "(cached) " >&6
 
14574
else
 
14575
  lt_cv_prog_compiler_pic_works=no
 
14576
   ac_outfile=conftest.$ac_objext
 
14577
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14578
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
14579
   # Insert the option either (1) after the last *FLAGS variable, or
 
14580
   # (2) before a word containing "conftest.", or (3) at the end.
 
14581
   # Note that $ac_compile itself does not contain backslashes and begins
 
14582
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14583
   # The option is referenced via a variable to avoid confusing sed.
 
14584
   lt_compile=`echo "$ac_compile" | $SED \
 
14585
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14586
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14587
   -e 's:$: $lt_compiler_flag:'`
 
14588
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14589
   (eval "$lt_compile" 2>conftest.err)
 
14590
   ac_status=$?
 
14591
   cat conftest.err >&5
 
14592
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14593
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14594
     # The compiler can only warn and ignore the option if not recognized
 
14595
     # So say no if there are warnings other than the usual output.
 
14596
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14597
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14598
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14599
       lt_cv_prog_compiler_pic_works=yes
 
14600
     fi
 
14601
   fi
 
14602
   $RM conftest*
 
14603
 
 
14604
fi
 
14605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
14606
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
14607
 
 
14608
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
14609
    case $lt_prog_compiler_pic in
 
14610
     "" | " "*) ;;
 
14611
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
14612
     esac
 
14613
else
 
14614
    lt_prog_compiler_pic=
 
14615
     lt_prog_compiler_can_build_shared=no
 
14616
fi
 
14617
 
 
14618
fi
 
14619
 
 
14620
 
 
14621
 
 
14622
 
 
14623
 
 
14624
 
 
14625
 
 
14626
 
 
14627
 
 
14628
 
 
14629
 
 
14630
#
 
14631
# Check to make sure the static flag actually works.
 
14632
#
 
14633
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
14634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14635
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14636
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
14637
  $as_echo_n "(cached) " >&6
 
14638
else
 
14639
  lt_cv_prog_compiler_static_works=no
 
14640
   save_LDFLAGS="$LDFLAGS"
 
14641
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14642
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14643
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14644
     # The linker can only warn and ignore the option if not recognized
 
14645
     # So say no if there are warnings
 
14646
     if test -s conftest.err; then
 
14647
       # Append any errors to the config.log.
 
14648
       cat conftest.err 1>&5
 
14649
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14650
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14651
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14652
         lt_cv_prog_compiler_static_works=yes
 
14653
       fi
 
14654
     else
 
14655
       lt_cv_prog_compiler_static_works=yes
 
14656
     fi
 
14657
   fi
 
14658
   $RM -r conftest*
 
14659
   LDFLAGS="$save_LDFLAGS"
 
14660
 
 
14661
fi
 
14662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
14663
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
14664
 
 
14665
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
14666
    :
 
14667
else
 
14668
    lt_prog_compiler_static=
 
14669
fi
 
14670
 
 
14671
 
 
14672
 
 
14673
 
 
14674
 
 
14675
 
 
14676
 
 
14677
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14678
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14679
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
14680
  $as_echo_n "(cached) " >&6
 
14681
else
 
14682
  lt_cv_prog_compiler_c_o=no
 
14683
   $RM -r conftest 2>/dev/null
 
14684
   mkdir conftest
 
14685
   cd conftest
 
14686
   mkdir out
 
14687
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14688
 
 
14689
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14690
   # Insert the option either (1) after the last *FLAGS variable, or
 
14691
   # (2) before a word containing "conftest.", or (3) at the end.
 
14692
   # Note that $ac_compile itself does not contain backslashes and begins
 
14693
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14694
   lt_compile=`echo "$ac_compile" | $SED \
 
14695
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14696
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14697
   -e 's:$: $lt_compiler_flag:'`
 
14698
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14699
   (eval "$lt_compile" 2>out/conftest.err)
 
14700
   ac_status=$?
 
14701
   cat out/conftest.err >&5
 
14702
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14703
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14704
   then
 
14705
     # The compiler can only warn and ignore the option if not recognized
 
14706
     # So say no if there are warnings
 
14707
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14708
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14709
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14710
       lt_cv_prog_compiler_c_o=yes
 
14711
     fi
 
14712
   fi
 
14713
   chmod u+w . 2>&5
 
14714
   $RM conftest*
 
14715
   # SGI C++ compiler will create directory out/ii_files/ for
 
14716
   # template instantiation
 
14717
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14718
   $RM out/* && rmdir out
 
14719
   cd ..
 
14720
   $RM -r conftest
 
14721
   $RM conftest*
 
14722
 
 
14723
fi
 
14724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
14725
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
14726
 
 
14727
 
 
14728
 
 
14729
 
 
14730
 
 
14731
 
 
14732
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14733
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14734
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
14735
  $as_echo_n "(cached) " >&6
 
14736
else
 
14737
  lt_cv_prog_compiler_c_o=no
 
14738
   $RM -r conftest 2>/dev/null
 
14739
   mkdir conftest
 
14740
   cd conftest
 
14741
   mkdir out
 
14742
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14743
 
 
14744
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14745
   # Insert the option either (1) after the last *FLAGS variable, or
 
14746
   # (2) before a word containing "conftest.", or (3) at the end.
 
14747
   # Note that $ac_compile itself does not contain backslashes and begins
 
14748
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14749
   lt_compile=`echo "$ac_compile" | $SED \
 
14750
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14751
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14752
   -e 's:$: $lt_compiler_flag:'`
 
14753
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14754
   (eval "$lt_compile" 2>out/conftest.err)
 
14755
   ac_status=$?
 
14756
   cat out/conftest.err >&5
 
14757
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14758
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14759
   then
 
14760
     # The compiler can only warn and ignore the option if not recognized
 
14761
     # So say no if there are warnings
 
14762
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14763
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14764
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14765
       lt_cv_prog_compiler_c_o=yes
 
14766
     fi
 
14767
   fi
 
14768
   chmod u+w . 2>&5
 
14769
   $RM conftest*
 
14770
   # SGI C++ compiler will create directory out/ii_files/ for
 
14771
   # template instantiation
 
14772
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14773
   $RM out/* && rmdir out
 
14774
   cd ..
 
14775
   $RM -r conftest
 
14776
   $RM conftest*
 
14777
 
 
14778
fi
 
14779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
14780
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
14781
 
 
14782
 
 
14783
 
 
14784
 
 
14785
hard_links="nottested"
 
14786
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
14787
  # do not overwrite the value of need_locks provided by the user
 
14788
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14789
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14790
  hard_links=yes
 
14791
  $RM conftest*
 
14792
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14793
  touch conftest.a
 
14794
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14795
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14796
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14797
$as_echo "$hard_links" >&6; }
 
14798
  if test "$hard_links" = no; then
 
14799
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14800
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14801
    need_locks=warn
 
14802
  fi
 
14803
else
 
14804
  need_locks=no
 
14805
fi
 
14806
 
 
14807
 
 
14808
 
 
14809
 
 
14810
 
 
14811
 
 
14812
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14813
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14814
 
 
14815
  runpath_var=
 
14816
  allow_undefined_flag=
 
14817
  always_export_symbols=no
 
14818
  archive_cmds=
 
14819
  archive_expsym_cmds=
 
14820
  compiler_needs_object=no
 
14821
  enable_shared_with_static_runtimes=no
 
14822
  export_dynamic_flag_spec=
 
14823
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14824
  hardcode_automatic=no
 
14825
  hardcode_direct=no
 
14826
  hardcode_direct_absolute=no
 
14827
  hardcode_libdir_flag_spec=
 
14828
  hardcode_libdir_separator=
 
14829
  hardcode_minus_L=no
 
14830
  hardcode_shlibpath_var=unsupported
 
14831
  inherit_rpath=no
 
14832
  link_all_deplibs=unknown
 
14833
  module_cmds=
 
14834
  module_expsym_cmds=
 
14835
  old_archive_from_new_cmds=
 
14836
  old_archive_from_expsyms_cmds=
 
14837
  thread_safe_flag_spec=
 
14838
  whole_archive_flag_spec=
 
14839
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14840
  # included in the symbol list
 
14841
  include_expsyms=
 
14842
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14843
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14844
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14845
  # as well as any symbol that contains `d'.
 
14846
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14847
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14848
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14849
  # the symbol is explicitly referenced.  Since portable code cannot
 
14850
  # rely on this symbol name, it's probably fine to never include it in
 
14851
  # preloaded symbol tables.
 
14852
  # Exclude shared library initialization/finalization symbols.
 
14853
  extract_expsyms_cmds=
 
14854
 
 
14855
  case $host_os in
 
14856
  cygwin* | mingw* | pw32* | cegcc*)
 
14857
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14858
    # When not using gcc, we currently assume that we are using
 
14859
    # Microsoft Visual C++.
 
14860
    if test "$GCC" != yes; then
 
14861
      with_gnu_ld=no
 
14862
    fi
 
14863
    ;;
 
14864
  interix*)
 
14865
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14866
    with_gnu_ld=yes
 
14867
    ;;
 
14868
  openbsd*)
 
14869
    with_gnu_ld=no
 
14870
    ;;
 
14871
  linux* | k*bsd*-gnu | gnu*)
 
14872
    link_all_deplibs=no
 
14873
    ;;
 
14874
  esac
 
14875
 
 
14876
  ld_shlibs=yes
 
14877
 
 
14878
  # On some targets, GNU ld is compatible enough with the native linker
 
14879
  # that we're better off using the native interface for both.
 
14880
  lt_use_gnu_ld_interface=no
 
14881
  if test "$with_gnu_ld" = yes; then
 
14882
    case $host_os in
 
14883
      aix*)
 
14884
        # The AIX port of GNU ld has always aspired to compatibility
 
14885
        # with the native linker.  However, as the warning in the GNU ld
 
14886
        # block says, versions before 2.19.5* couldn't really create working
 
14887
        # shared libraries, regardless of the interface used.
 
14888
        case `$LD -v 2>&1` in
 
14889
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
14890
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
14891
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
14892
          *)
 
14893
            lt_use_gnu_ld_interface=yes
 
14894
            ;;
 
14895
        esac
 
14896
        ;;
 
14897
      *)
 
14898
        lt_use_gnu_ld_interface=yes
 
14899
        ;;
 
14900
    esac
 
14901
  fi
 
14902
 
 
14903
  if test "$lt_use_gnu_ld_interface" = yes; then
 
14904
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14905
    wlarc='${wl}'
 
14906
 
 
14907
    # Set some defaults for GNU ld with shared library support. These
 
14908
    # are reset later if shared libraries are not supported. Putting them
 
14909
    # here allows them to be overridden if necessary.
 
14910
    runpath_var=LD_RUN_PATH
 
14911
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
14912
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
14913
    # ancient GNU ld didn't support --whole-archive et. al.
 
14914
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
14915
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14916
    else
 
14917
      whole_archive_flag_spec=
 
14918
    fi
 
14919
    supports_anon_versioning=no
 
14920
    case `$LD -v 2>&1` in
 
14921
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
14922
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14923
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14924
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14925
      *\ 2.11.*) ;; # other 2.11 versions
 
14926
      *) supports_anon_versioning=yes ;;
 
14927
    esac
 
14928
 
 
14929
    # See if GNU ld supports shared libraries.
 
14930
    case $host_os in
 
14931
    aix[3-9]*)
 
14932
      # On AIX/PPC, the GNU linker is very broken
 
14933
      if test "$host_cpu" != ia64; then
 
14934
        ld_shlibs=no
 
14935
        cat <<_LT_EOF 1>&2
 
14936
 
 
14937
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
14938
*** to be unable to reliably create shared libraries on AIX.
 
14939
*** Therefore, libtool is disabling shared libraries support.  If you
 
14940
*** really care for shared libraries, you may want to install binutils
 
14941
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
14942
*** You will then need to restart the configuration process.
 
14943
 
 
14944
_LT_EOF
 
14945
      fi
 
14946
      ;;
 
14947
 
 
14948
    amigaos*)
 
14949
      case $host_cpu in
 
14950
      powerpc)
 
14951
            # see comment about AmigaOS4 .so support
 
14952
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14953
            archive_expsym_cmds=''
 
14954
        ;;
 
14955
      m68k)
 
14956
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14957
            hardcode_libdir_flag_spec='-L$libdir'
 
14958
            hardcode_minus_L=yes
 
14959
        ;;
 
14960
      esac
 
14961
      ;;
 
14962
 
 
14963
    beos*)
 
14964
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
14965
        allow_undefined_flag=unsupported
 
14966
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14967
        # support --undefined.  This deserves some investigation.  FIXME
 
14968
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14969
      else
 
14970
        ld_shlibs=no
 
14971
      fi
 
14972
      ;;
 
14973
 
 
14974
    cygwin* | mingw* | pw32* | cegcc*)
 
14975
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
14976
      # as there is no search path for DLLs.
 
14977
      hardcode_libdir_flag_spec='-L$libdir'
 
14978
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
14979
      allow_undefined_flag=unsupported
 
14980
      always_export_symbols=no
 
14981
      enable_shared_with_static_runtimes=yes
 
14982
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14983
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14984
 
 
14985
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
14986
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14987
        # If the export-symbols file already is a .def file (1st line
 
14988
        # is EXPORTS), use it as is; otherwise, prepend...
 
14989
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14990
          cp $export_symbols $output_objdir/$soname.def;
 
14991
        else
 
14992
          echo EXPORTS > $output_objdir/$soname.def;
 
14993
          cat $export_symbols >> $output_objdir/$soname.def;
 
14994
        fi~
 
14995
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14996
      else
 
14997
        ld_shlibs=no
 
14998
      fi
 
14999
      ;;
 
15000
 
 
15001
    haiku*)
 
15002
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15003
      link_all_deplibs=yes
 
15004
      ;;
 
15005
 
 
15006
    interix[3-9]*)
 
15007
      hardcode_direct=no
 
15008
      hardcode_shlibpath_var=no
 
15009
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
15010
      export_dynamic_flag_spec='${wl}-E'
 
15011
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15012
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15013
      # default) and relocated if they conflict, which is a slow very memory
 
15014
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15015
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15016
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15017
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
15018
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
15019
      ;;
 
15020
 
 
15021
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
15022
      tmp_diet=no
 
15023
      if test "$host_os" = linux-dietlibc; then
 
15024
        case $cc_basename in
 
15025
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
15026
        esac
 
15027
      fi
 
15028
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
15029
         && test "$tmp_diet" = no
 
15030
      then
 
15031
        tmp_addflag=' $pic_flag'
 
15032
        tmp_sharedflag='-shared'
 
15033
        case $cc_basename,$host_cpu in
 
15034
        pgcc*)                          # Portland Group C compiler
 
15035
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
15036
          tmp_addflag=' $pic_flag'
 
15037
          ;;
 
15038
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
15039
                                        # Portland Group f77 and f90 compilers
 
15040
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
15041
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15042
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
15043
          tmp_addflag=' -i_dynamic' ;;
 
15044
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15045
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15046
        ifc* | ifort*)                  # Intel Fortran compiler
 
15047
          tmp_addflag=' -nofor_main' ;;
 
15048
        lf95*)                          # Lahey Fortran 8.1
 
15049
          whole_archive_flag_spec=
 
15050
          tmp_sharedflag='--shared' ;;
 
15051
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
15052
          tmp_sharedflag='-qmkshrobj'
 
15053
          tmp_addflag= ;;
 
15054
        nvcc*)  # Cuda Compiler Driver 2.2
 
15055
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
15056
          compiler_needs_object=yes
 
15057
          ;;
 
15058
        esac
 
15059
        case `$CC -V 2>&1 | sed 5q` in
 
15060
        *Sun\ C*)                       # Sun C 5.9
 
15061
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
15062
          compiler_needs_object=yes
 
15063
          tmp_sharedflag='-G' ;;
 
15064
        *Sun\ F*)                       # Sun Fortran 8.3
 
15065
          tmp_sharedflag='-G' ;;
 
15066
        esac
 
15067
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15068
 
 
15069
        if test "x$supports_anon_versioning" = xyes; then
 
15070
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
15071
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15072
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
15073
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15074
        fi
 
15075
 
 
15076
        case $cc_basename in
 
15077
        xlf* | bgf* | bgxlf* | mpixlf*)
 
15078
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
15079
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
15080
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15081
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
15082
          if test "x$supports_anon_versioning" = xyes; then
 
15083
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
15084
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15085
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
15086
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
15087
          fi
 
15088
          ;;
 
15089
        esac
 
15090
      else
 
15091
        ld_shlibs=no
 
15092
      fi
 
15093
      ;;
 
15094
 
 
15095
    netbsd* | netbsdelf*-gnu)
 
15096
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15097
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15098
        wlarc=
 
15099
      else
 
15100
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15101
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15102
      fi
 
15103
      ;;
 
15104
 
 
15105
    solaris*)
 
15106
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
15107
        ld_shlibs=no
 
15108
        cat <<_LT_EOF 1>&2
 
15109
 
 
15110
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15111
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15112
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15113
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15114
*** your PATH or compiler configuration so that the native linker is
 
15115
*** used, and then restart.
 
15116
 
 
15117
_LT_EOF
 
15118
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
15119
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15120
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15121
      else
 
15122
        ld_shlibs=no
 
15123
      fi
 
15124
      ;;
 
15125
 
 
15126
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15127
      case `$LD -v 2>&1` in
 
15128
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15129
        ld_shlibs=no
 
15130
        cat <<_LT_EOF 1>&2
 
15131
 
 
15132
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15133
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15134
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15135
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15136
*** your PATH or compiler configuration so that the native linker is
 
15137
*** used, and then restart.
 
15138
 
 
15139
_LT_EOF
 
15140
        ;;
 
15141
        *)
 
15142
          # For security reasons, it is highly recommended that you always
 
15143
          # use absolute paths for naming shared libraries, and exclude the
 
15144
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
15145
          # requires that you compile everything twice, which is a pain.
 
15146
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
15147
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15148
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15149
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15150
          else
 
15151
            ld_shlibs=no
 
15152
          fi
 
15153
        ;;
 
15154
      esac
 
15155
      ;;
 
15156
 
 
15157
    sunos4*)
 
15158
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15159
      wlarc=
 
15160
      hardcode_direct=yes
 
15161
      hardcode_shlibpath_var=no
 
15162
      ;;
 
15163
 
 
15164
    *)
 
15165
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
15166
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15167
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15168
      else
 
15169
        ld_shlibs=no
 
15170
      fi
 
15171
      ;;
 
15172
    esac
 
15173
 
 
15174
    if test "$ld_shlibs" = no; then
 
15175
      runpath_var=
 
15176
      hardcode_libdir_flag_spec=
 
15177
      export_dynamic_flag_spec=
 
15178
      whole_archive_flag_spec=
 
15179
    fi
 
15180
  else
 
15181
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15182
    case $host_os in
 
15183
    aix3*)
 
15184
      allow_undefined_flag=unsupported
 
15185
      always_export_symbols=yes
 
15186
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
15187
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15188
      # are no directories specified by -L.
 
15189
      hardcode_minus_L=yes
 
15190
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15191
        # Neither direct hardcoding nor static linking is supported with a
 
15192
        # broken collect2.
 
15193
        hardcode_direct=unsupported
 
15194
      fi
 
15195
      ;;
 
15196
 
 
15197
    aix[4-9]*)
 
15198
      if test "$host_cpu" = ia64; then
 
15199
        # On IA64, the linker does run time linking by default, so we don't
 
15200
        # have to do anything special.
 
15201
        aix_use_runtimelinking=no
 
15202
        exp_sym_flag='-Bexport'
 
15203
        no_entry_flag=""
 
15204
      else
 
15205
        # If we're using GNU nm, then we don't want the "-C" option.
 
15206
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15207
        # Also, AIX nm treats weak defined symbols like other global
 
15208
        # defined symbols, whereas GNU nm marks them as "W".
 
15209
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
15210
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
15211
        else
 
15212
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
15213
        fi
 
15214
        aix_use_runtimelinking=no
 
15215
 
 
15216
        # Test if we are trying to use run time linking or normal
 
15217
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15218
        # need to do runtime linking.
 
15219
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15220
          for ld_flag in $LDFLAGS; do
 
15221
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15222
            aix_use_runtimelinking=yes
 
15223
            break
 
15224
          fi
 
15225
          done
 
15226
          ;;
 
15227
        esac
 
15228
 
 
15229
        exp_sym_flag='-bexport'
 
15230
        no_entry_flag='-bnoentry'
 
15231
      fi
 
15232
 
 
15233
      # When large executables or shared objects are built, AIX ld can
 
15234
      # have problems creating the table of contents.  If linking a library
 
15235
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15236
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15237
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15238
 
 
15239
      archive_cmds=''
 
15240
      hardcode_direct=yes
 
15241
      hardcode_direct_absolute=yes
 
15242
      hardcode_libdir_separator=':'
 
15243
      link_all_deplibs=yes
 
15244
      file_list_spec='${wl}-f,'
 
15245
 
 
15246
      if test "$GCC" = yes; then
 
15247
        case $host_os in aix4.[012]|aix4.[012].*)
 
15248
        # We only want to do this on AIX 4.2 and lower, the check
 
15249
        # below for broken collect2 doesn't work under 4.3+
 
15250
          collect2name=`${CC} -print-prog-name=collect2`
 
15251
          if test -f "$collect2name" &&
 
15252
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
15253
          then
 
15254
          # We have reworked collect2
 
15255
          :
 
15256
          else
 
15257
          # We have old collect2
 
15258
          hardcode_direct=unsupported
 
15259
          # It fails to find uninstalled libraries when the uninstalled
 
15260
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15261
          # to unsupported forces relinking
 
15262
          hardcode_minus_L=yes
 
15263
          hardcode_libdir_flag_spec='-L$libdir'
 
15264
          hardcode_libdir_separator=
 
15265
          fi
 
15266
          ;;
 
15267
        esac
 
15268
        shared_flag='-shared'
 
15269
        if test "$aix_use_runtimelinking" = yes; then
 
15270
          shared_flag="$shared_flag "'${wl}-G'
 
15271
        fi
 
15272
        link_all_deplibs=no
 
15273
      else
 
15274
        # not using gcc
 
15275
        if test "$host_cpu" = ia64; then
 
15276
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15277
        # chokes on -Wl,-G. The following line is correct:
 
15278
          shared_flag='-G'
 
15279
        else
 
15280
          if test "$aix_use_runtimelinking" = yes; then
 
15281
            shared_flag='${wl}-G'
 
15282
          else
 
15283
            shared_flag='${wl}-bM:SRE'
 
15284
          fi
 
15285
        fi
 
15286
      fi
 
15287
 
 
15288
      export_dynamic_flag_spec='${wl}-bexpall'
 
15289
      # It seems that -bexpall does not export symbols beginning with
 
15290
      # underscore (_), so it is better to generate a list of symbols to export.
 
15291
      always_export_symbols=yes
 
15292
      if test "$aix_use_runtimelinking" = yes; then
 
15293
        # Warning - without using the other runtime loading flags (-brtl),
 
15294
        # -berok will link without error, but may produce a broken library.
 
15295
        allow_undefined_flag='-berok'
 
15296
        # Determine the default libpath from the value encoded in an
 
15297
        # empty executable.
 
15298
        if test "${lt_cv_aix_libpath+set}" = set; then
 
15299
  aix_libpath=$lt_cv_aix_libpath
 
15300
else
 
15301
  if ${lt_cv_aix_libpath_+:} false; then :
 
15302
  $as_echo_n "(cached) " >&6
 
15303
else
 
15304
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15305
/* end confdefs.h.  */
 
15306
 
 
15307
int
 
15308
main ()
 
15309
{
 
15310
 
 
15311
  ;
 
15312
  return 0;
 
15313
}
 
15314
_ACEOF
 
15315
if ac_fn_c_try_link "$LINENO"; then :
 
15316
 
 
15317
  lt_aix_libpath_sed='
 
15318
      /Import File Strings/,/^$/ {
 
15319
          /^0/ {
 
15320
              s/^0  *\([^ ]*\) *$/\1/
 
15321
              p
 
15322
          }
 
15323
      }'
 
15324
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15325
  # Check for a 64-bit object if we didn't find anything.
 
15326
  if test -z "$lt_cv_aix_libpath_"; then
 
15327
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15328
  fi
 
15329
fi
 
15330
rm -f core conftest.err conftest.$ac_objext \
 
15331
    conftest$ac_exeext conftest.$ac_ext
 
15332
  if test -z "$lt_cv_aix_libpath_"; then
 
15333
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
15334
  fi
 
15335
 
 
15336
fi
 
15337
 
 
15338
  aix_libpath=$lt_cv_aix_libpath_
 
15339
fi
 
15340
 
 
15341
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15342
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15343
      else
 
15344
        if test "$host_cpu" = ia64; then
 
15345
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
15346
          allow_undefined_flag="-z nodefs"
 
15347
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
15348
        else
 
15349
         # Determine the default libpath from the value encoded in an
 
15350
         # empty executable.
 
15351
         if test "${lt_cv_aix_libpath+set}" = set; then
 
15352
  aix_libpath=$lt_cv_aix_libpath
 
15353
else
 
15354
  if ${lt_cv_aix_libpath_+:} false; then :
 
15355
  $as_echo_n "(cached) " >&6
 
15356
else
 
15357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15358
/* end confdefs.h.  */
 
15359
 
 
15360
int
 
15361
main ()
 
15362
{
 
15363
 
 
15364
  ;
 
15365
  return 0;
 
15366
}
 
15367
_ACEOF
 
15368
if ac_fn_c_try_link "$LINENO"; then :
 
15369
 
 
15370
  lt_aix_libpath_sed='
 
15371
      /Import File Strings/,/^$/ {
 
15372
          /^0/ {
 
15373
              s/^0  *\([^ ]*\) *$/\1/
 
15374
              p
 
15375
          }
 
15376
      }'
 
15377
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15378
  # Check for a 64-bit object if we didn't find anything.
 
15379
  if test -z "$lt_cv_aix_libpath_"; then
 
15380
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15381
  fi
 
15382
fi
 
15383
rm -f core conftest.err conftest.$ac_objext \
 
15384
    conftest$ac_exeext conftest.$ac_ext
 
15385
  if test -z "$lt_cv_aix_libpath_"; then
 
15386
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
15387
  fi
 
15388
 
 
15389
fi
 
15390
 
 
15391
  aix_libpath=$lt_cv_aix_libpath_
 
15392
fi
 
15393
 
 
15394
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15395
          # Warning - without using the other run time loading flags,
 
15396
          # -berok will link without error, but may produce a broken library.
 
15397
          no_undefined_flag=' ${wl}-bernotok'
 
15398
          allow_undefined_flag=' ${wl}-berok'
 
15399
          if test "$with_gnu_ld" = yes; then
 
15400
            # We only use this code for GNU lds that support --whole-archive.
 
15401
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
15402
          else
 
15403
            # Exported symbols can be pulled into shared objects from archives
 
15404
            whole_archive_flag_spec='$convenience'
 
15405
          fi
 
15406
          archive_cmds_need_lc=yes
 
15407
          # This is similar to how AIX traditionally builds its shared libraries.
 
15408
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15409
        fi
 
15410
      fi
 
15411
      ;;
 
15412
 
 
15413
    amigaos*)
 
15414
      case $host_cpu in
 
15415
      powerpc)
 
15416
            # see comment about AmigaOS4 .so support
 
15417
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15418
            archive_expsym_cmds=''
 
15419
        ;;
 
15420
      m68k)
 
15421
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
15422
            hardcode_libdir_flag_spec='-L$libdir'
 
15423
            hardcode_minus_L=yes
 
15424
        ;;
 
15425
      esac
 
15426
      ;;
 
15427
 
 
15428
    bsdi[45]*)
 
15429
      export_dynamic_flag_spec=-rdynamic
 
15430
      ;;
 
15431
 
 
15432
    cygwin* | mingw* | pw32* | cegcc*)
 
15433
      # When not using gcc, we currently assume that we are using
 
15434
      # Microsoft Visual C++.
 
15435
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15436
      # no search path for DLLs.
 
15437
      case $cc_basename in
 
15438
      cl*)
 
15439
        # Native MSVC
 
15440
        hardcode_libdir_flag_spec=' '
 
15441
        allow_undefined_flag=unsupported
 
15442
        always_export_symbols=yes
 
15443
        file_list_spec='@'
 
15444
        # Tell ltmain to make .lib files, not .a files.
 
15445
        libext=lib
 
15446
        # Tell ltmain to make .dll files, not .so files.
 
15447
        shrext_cmds=".dll"
 
15448
        # FIXME: Setting linknames here is a bad hack.
 
15449
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
15450
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15451
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
15452
          else
 
15453
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
15454
          fi~
 
15455
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
15456
          linknames='
 
15457
        # The linker will not automatically build a static lib if we build a DLL.
 
15458
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
15459
        enable_shared_with_static_runtimes=yes
 
15460
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
15461
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15462
        # Don't use ranlib
 
15463
        old_postinstall_cmds='chmod 644 $oldlib'
 
15464
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
15465
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
15466
          case $lt_outputfile in
 
15467
            *.exe|*.EXE) ;;
 
15468
            *)
 
15469
              lt_outputfile="$lt_outputfile.exe"
 
15470
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
15471
              ;;
 
15472
          esac~
 
15473
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
15474
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
15475
            $RM "$lt_outputfile.manifest";
 
15476
          fi'
 
15477
        ;;
 
15478
      *)
 
15479
        # Assume MSVC wrapper
 
15480
        hardcode_libdir_flag_spec=' '
 
15481
        allow_undefined_flag=unsupported
 
15482
        # Tell ltmain to make .lib files, not .a files.
 
15483
        libext=lib
 
15484
        # Tell ltmain to make .dll files, not .so files.
 
15485
        shrext_cmds=".dll"
 
15486
        # FIXME: Setting linknames here is a bad hack.
 
15487
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
15488
        # The linker will automatically build a .lib file if we build a DLL.
 
15489
        old_archive_from_new_cmds='true'
 
15490
        # FIXME: Should let the user specify the lib program.
 
15491
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15492
        enable_shared_with_static_runtimes=yes
 
15493
        ;;
 
15494
      esac
 
15495
      ;;
 
15496
 
 
15497
    darwin* | rhapsody*)
 
15498
 
 
15499
 
 
15500
  archive_cmds_need_lc=no
 
15501
  hardcode_direct=no
 
15502
  hardcode_automatic=yes
 
15503
  hardcode_shlibpath_var=unsupported
 
15504
  if test "$lt_cv_ld_force_load" = "yes"; then
 
15505
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
15506
 
 
15507
  else
 
15508
    whole_archive_flag_spec=''
 
15509
  fi
 
15510
  link_all_deplibs=yes
 
15511
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
15512
  case $cc_basename in
 
15513
     ifort*) _lt_dar_can_shared=yes ;;
 
15514
     *) _lt_dar_can_shared=$GCC ;;
 
15515
  esac
 
15516
  if test "$_lt_dar_can_shared" = "yes"; then
 
15517
    output_verbose_link_cmd=func_echo_all
 
15518
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15519
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15520
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15521
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
15522
 
 
15523
  else
 
15524
  ld_shlibs=no
 
15525
  fi
 
15526
 
 
15527
      ;;
 
15528
 
 
15529
    dgux*)
 
15530
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15531
      hardcode_libdir_flag_spec='-L$libdir'
 
15532
      hardcode_shlibpath_var=no
 
15533
      ;;
 
15534
 
 
15535
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15536
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15537
    # does not break anything, and helps significantly (at the cost of a little
 
15538
    # extra space).
 
15539
    freebsd2.2*)
 
15540
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15541
      hardcode_libdir_flag_spec='-R$libdir'
 
15542
      hardcode_direct=yes
 
15543
      hardcode_shlibpath_var=no
 
15544
      ;;
 
15545
 
 
15546
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15547
    freebsd2.*)
 
15548
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15549
      hardcode_direct=yes
 
15550
      hardcode_minus_L=yes
 
15551
      hardcode_shlibpath_var=no
 
15552
      ;;
 
15553
 
 
15554
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15555
    freebsd* | dragonfly*)
 
15556
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15557
      hardcode_libdir_flag_spec='-R$libdir'
 
15558
      hardcode_direct=yes
 
15559
      hardcode_shlibpath_var=no
 
15560
      ;;
 
15561
 
 
15562
    hpux9*)
 
15563
      if test "$GCC" = yes; then
 
15564
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15565
      else
 
15566
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15567
      fi
 
15568
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
15569
      hardcode_libdir_separator=:
 
15570
      hardcode_direct=yes
 
15571
 
 
15572
      # hardcode_minus_L: Not really in the search PATH,
 
15573
      # but as the default location of the library.
 
15574
      hardcode_minus_L=yes
 
15575
      export_dynamic_flag_spec='${wl}-E'
 
15576
      ;;
 
15577
 
 
15578
    hpux10*)
 
15579
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
15580
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15581
      else
 
15582
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15583
      fi
 
15584
      if test "$with_gnu_ld" = no; then
 
15585
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
15586
        hardcode_libdir_separator=:
 
15587
        hardcode_direct=yes
 
15588
        hardcode_direct_absolute=yes
 
15589
        export_dynamic_flag_spec='${wl}-E'
 
15590
        # hardcode_minus_L: Not really in the search PATH,
 
15591
        # but as the default location of the library.
 
15592
        hardcode_minus_L=yes
 
15593
      fi
 
15594
      ;;
 
15595
 
 
15596
    hpux11*)
 
15597
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
15598
        case $host_cpu in
 
15599
        hppa*64*)
 
15600
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15601
          ;;
 
15602
        ia64*)
 
15603
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15604
          ;;
 
15605
        *)
 
15606
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15607
          ;;
 
15608
        esac
 
15609
      else
 
15610
        case $host_cpu in
 
15611
        hppa*64*)
 
15612
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15613
          ;;
 
15614
        ia64*)
 
15615
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15616
          ;;
 
15617
        *)
 
15618
 
 
15619
          # Older versions of the 11.00 compiler do not understand -b yet
 
15620
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
15621
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
15622
$as_echo_n "checking if $CC understands -b... " >&6; }
 
15623
if ${lt_cv_prog_compiler__b+:} false; then :
 
15624
  $as_echo_n "(cached) " >&6
 
15625
else
 
15626
  lt_cv_prog_compiler__b=no
 
15627
   save_LDFLAGS="$LDFLAGS"
 
15628
   LDFLAGS="$LDFLAGS -b"
 
15629
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
15630
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15631
     # The linker can only warn and ignore the option if not recognized
 
15632
     # So say no if there are warnings
 
15633
     if test -s conftest.err; then
 
15634
       # Append any errors to the config.log.
 
15635
       cat conftest.err 1>&5
 
15636
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
15637
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15638
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15639
         lt_cv_prog_compiler__b=yes
 
15640
       fi
 
15641
     else
 
15642
       lt_cv_prog_compiler__b=yes
 
15643
     fi
 
15644
   fi
 
15645
   $RM -r conftest*
 
15646
   LDFLAGS="$save_LDFLAGS"
 
15647
 
 
15648
fi
 
15649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
15650
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
15651
 
 
15652
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
15653
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15654
else
 
15655
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15656
fi
 
15657
 
 
15658
          ;;
 
15659
        esac
 
15660
      fi
 
15661
      if test "$with_gnu_ld" = no; then
 
15662
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
15663
        hardcode_libdir_separator=:
 
15664
 
 
15665
        case $host_cpu in
 
15666
        hppa*64*|ia64*)
 
15667
          hardcode_direct=no
 
15668
          hardcode_shlibpath_var=no
 
15669
          ;;
 
15670
        *)
 
15671
          hardcode_direct=yes
 
15672
          hardcode_direct_absolute=yes
 
15673
          export_dynamic_flag_spec='${wl}-E'
 
15674
 
 
15675
          # hardcode_minus_L: Not really in the search PATH,
 
15676
          # but as the default location of the library.
 
15677
          hardcode_minus_L=yes
 
15678
          ;;
 
15679
        esac
 
15680
      fi
 
15681
      ;;
 
15682
 
 
15683
    irix5* | irix6* | nonstopux*)
 
15684
      if test "$GCC" = yes; then
 
15685
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15686
        # Try to use the -exported_symbol ld option, if it does not
 
15687
        # work, assume that -exports_file does not work either and
 
15688
        # implicitly export all symbols.
 
15689
        # This should be the same for all languages, so no per-tag cache variable.
 
15690
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
15691
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
15692
if ${lt_cv_irix_exported_symbol+:} false; then :
 
15693
  $as_echo_n "(cached) " >&6
 
15694
else
 
15695
  save_LDFLAGS="$LDFLAGS"
 
15696
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
15697
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15698
/* end confdefs.h.  */
 
15699
int foo (void) { return 0; }
 
15700
_ACEOF
 
15701
if ac_fn_c_try_link "$LINENO"; then :
 
15702
  lt_cv_irix_exported_symbol=yes
 
15703
else
 
15704
  lt_cv_irix_exported_symbol=no
 
15705
fi
 
15706
rm -f core conftest.err conftest.$ac_objext \
 
15707
    conftest$ac_exeext conftest.$ac_ext
 
15708
           LDFLAGS="$save_LDFLAGS"
 
15709
fi
 
15710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
15711
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
15712
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
15713
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
15714
        fi
 
15715
      else
 
15716
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
15717
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
15718
      fi
 
15719
      archive_cmds_need_lc='no'
 
15720
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15721
      hardcode_libdir_separator=:
 
15722
      inherit_rpath=yes
 
15723
      link_all_deplibs=yes
 
15724
      ;;
 
15725
 
 
15726
    netbsd* | netbsdelf*-gnu)
 
15727
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15728
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15729
      else
 
15730
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15731
      fi
 
15732
      hardcode_libdir_flag_spec='-R$libdir'
 
15733
      hardcode_direct=yes
 
15734
      hardcode_shlibpath_var=no
 
15735
      ;;
 
15736
 
 
15737
    newsos6)
 
15738
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15739
      hardcode_direct=yes
 
15740
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15741
      hardcode_libdir_separator=:
 
15742
      hardcode_shlibpath_var=no
 
15743
      ;;
 
15744
 
 
15745
    *nto* | *qnx*)
 
15746
      ;;
 
15747
 
 
15748
    openbsd*)
 
15749
      if test -f /usr/libexec/ld.so; then
 
15750
        hardcode_direct=yes
 
15751
        hardcode_shlibpath_var=no
 
15752
        hardcode_direct_absolute=yes
 
15753
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15754
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15755
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15756
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
15757
          export_dynamic_flag_spec='${wl}-E'
 
15758
        else
 
15759
          case $host_os in
 
15760
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15761
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15762
             hardcode_libdir_flag_spec='-R$libdir'
 
15763
             ;;
 
15764
           *)
 
15765
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15766
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
15767
             ;;
 
15768
          esac
 
15769
        fi
 
15770
      else
 
15771
        ld_shlibs=no
 
15772
      fi
 
15773
      ;;
 
15774
 
 
15775
    os2*)
 
15776
      hardcode_libdir_flag_spec='-L$libdir'
 
15777
      hardcode_minus_L=yes
 
15778
      allow_undefined_flag=unsupported
 
15779
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
15780
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15781
      ;;
 
15782
 
 
15783
    osf3*)
 
15784
      if test "$GCC" = yes; then
 
15785
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
15786
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15787
      else
 
15788
        allow_undefined_flag=' -expect_unresolved \*'
 
15789
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
15790
      fi
 
15791
      archive_cmds_need_lc='no'
 
15792
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15793
      hardcode_libdir_separator=:
 
15794
      ;;
 
15795
 
 
15796
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15797
      if test "$GCC" = yes; then
 
15798
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
15799
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15800
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15801
      else
 
15802
        allow_undefined_flag=' -expect_unresolved \*'
 
15803
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
15804
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
15805
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
15806
 
 
15807
        # Both c and cxx compiler support -rpath directly
 
15808
        hardcode_libdir_flag_spec='-rpath $libdir'
 
15809
      fi
 
15810
      archive_cmds_need_lc='no'
 
15811
      hardcode_libdir_separator=:
 
15812
      ;;
 
15813
 
 
15814
    solaris*)
 
15815
      no_undefined_flag=' -z defs'
 
15816
      if test "$GCC" = yes; then
 
15817
        wlarc='${wl}'
 
15818
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15819
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
15820
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
15821
      else
 
15822
        case `$CC -V 2>&1` in
 
15823
        *"Compilers 5.0"*)
 
15824
          wlarc=''
 
15825
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15826
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
15827
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
15828
          ;;
 
15829
        *)
 
15830
          wlarc='${wl}'
 
15831
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15832
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
15833
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
15834
          ;;
 
15835
        esac
 
15836
      fi
 
15837
      hardcode_libdir_flag_spec='-R$libdir'
 
15838
      hardcode_shlibpath_var=no
 
15839
      case $host_os in
 
15840
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15841
      *)
 
15842
        # The compiler driver will combine and reorder linker options,
 
15843
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15844
        # but is careful enough not to reorder.
 
15845
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15846
        if test "$GCC" = yes; then
 
15847
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15848
        else
 
15849
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
15850
        fi
 
15851
        ;;
 
15852
      esac
 
15853
      link_all_deplibs=yes
 
15854
      ;;
 
15855
 
 
15856
    sunos4*)
 
15857
      if test "x$host_vendor" = xsequent; then
 
15858
        # Use $CC to link under sequent, because it throws in some extra .o
 
15859
        # files that make .init and .fini sections work.
 
15860
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15861
      else
 
15862
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15863
      fi
 
15864
      hardcode_libdir_flag_spec='-L$libdir'
 
15865
      hardcode_direct=yes
 
15866
      hardcode_minus_L=yes
 
15867
      hardcode_shlibpath_var=no
 
15868
      ;;
 
15869
 
 
15870
    sysv4)
 
15871
      case $host_vendor in
 
15872
        sni)
 
15873
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15874
          hardcode_direct=yes # is this really true???
 
15875
        ;;
 
15876
        siemens)
 
15877
          ## LD is ld it makes a PLAMLIB
 
15878
          ## CC just makes a GrossModule.
 
15879
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15880
          reload_cmds='$CC -r -o $output$reload_objs'
 
15881
          hardcode_direct=no
 
15882
        ;;
 
15883
        motorola)
 
15884
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15885
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
15886
        ;;
 
15887
      esac
 
15888
      runpath_var='LD_RUN_PATH'
 
15889
      hardcode_shlibpath_var=no
 
15890
      ;;
 
15891
 
 
15892
    sysv4.3*)
 
15893
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15894
      hardcode_shlibpath_var=no
 
15895
      export_dynamic_flag_spec='-Bexport'
 
15896
      ;;
 
15897
 
 
15898
    sysv4*MP*)
 
15899
      if test -d /usr/nec; then
 
15900
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15901
        hardcode_shlibpath_var=no
 
15902
        runpath_var=LD_RUN_PATH
 
15903
        hardcode_runpath_var=yes
 
15904
        ld_shlibs=yes
 
15905
      fi
 
15906
      ;;
 
15907
 
 
15908
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15909
      no_undefined_flag='${wl}-z,text'
 
15910
      archive_cmds_need_lc=no
 
15911
      hardcode_shlibpath_var=no
 
15912
      runpath_var='LD_RUN_PATH'
 
15913
 
 
15914
      if test "$GCC" = yes; then
 
15915
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15916
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15917
      else
 
15918
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15919
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15920
      fi
 
15921
      ;;
 
15922
 
 
15923
    sysv5* | sco3.2v5* | sco5v6*)
 
15924
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15925
      # link with -lc, and that would cause any symbols used from libc to
 
15926
      # always be unresolved, which means just about no library would
 
15927
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15928
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15929
      # as -z defs.
 
15930
      no_undefined_flag='${wl}-z,text'
 
15931
      allow_undefined_flag='${wl}-z,nodefs'
 
15932
      archive_cmds_need_lc=no
 
15933
      hardcode_shlibpath_var=no
 
15934
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
15935
      hardcode_libdir_separator=':'
 
15936
      link_all_deplibs=yes
 
15937
      export_dynamic_flag_spec='${wl}-Bexport'
 
15938
      runpath_var='LD_RUN_PATH'
 
15939
 
 
15940
      if test "$GCC" = yes; then
 
15941
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15942
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15943
      else
 
15944
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15945
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15946
      fi
 
15947
      ;;
 
15948
 
 
15949
    uts4*)
 
15950
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15951
      hardcode_libdir_flag_spec='-L$libdir'
 
15952
      hardcode_shlibpath_var=no
 
15953
      ;;
 
15954
 
 
15955
    *)
 
15956
      ld_shlibs=no
 
15957
      ;;
 
15958
    esac
 
15959
 
 
15960
    if test x$host_vendor = xsni; then
 
15961
      case $host in
 
15962
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15963
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15964
        ;;
 
15965
      esac
 
15966
    fi
 
15967
  fi
 
15968
 
 
15969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
15970
$as_echo "$ld_shlibs" >&6; }
 
15971
test "$ld_shlibs" = no && can_build_shared=no
 
15972
 
 
15973
with_gnu_ld=$with_gnu_ld
 
15974
 
 
15975
 
 
15976
 
 
15977
 
 
15978
 
 
15979
 
 
15980
 
 
15981
 
 
15982
 
 
15983
 
 
15984
 
 
15985
 
 
15986
 
 
15987
 
 
15988
 
 
15989
#
 
15990
# Do we need to explicitly link libc?
 
15991
#
 
15992
case "x$archive_cmds_need_lc" in
 
15993
x|xyes)
 
15994
  # Assume -lc should be added
 
15995
  archive_cmds_need_lc=yes
 
15996
 
 
15997
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15998
    case $archive_cmds in
 
15999
    *'~'*)
 
16000
      # FIXME: we may have to deal with multi-command sequences.
 
16001
      ;;
 
16002
    '$CC '*)
 
16003
      # Test whether the compiler implicitly links with -lc since on some
 
16004
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16005
      # to ld, don't add -lc before -lgcc.
 
16006
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
16007
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
16008
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
16009
  $as_echo_n "(cached) " >&6
 
16010
else
 
16011
  $RM conftest*
 
16012
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16013
 
 
16014
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
16015
  (eval $ac_compile) 2>&5
 
16016
  ac_status=$?
 
16017
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16018
  test $ac_status = 0; } 2>conftest.err; then
 
16019
          soname=conftest
 
16020
          lib=conftest
 
16021
          libobjs=conftest.$ac_objext
 
16022
          deplibs=
 
16023
          wl=$lt_prog_compiler_wl
 
16024
          pic_flag=$lt_prog_compiler_pic
 
16025
          compiler_flags=-v
 
16026
          linker_flags=-v
 
16027
          verstring=
 
16028
          output_objdir=.
 
16029
          libname=conftest
 
16030
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
16031
          allow_undefined_flag=
 
16032
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
16033
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16034
  ac_status=$?
 
16035
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16036
  test $ac_status = 0; }
 
16037
          then
 
16038
            lt_cv_archive_cmds_need_lc=no
 
16039
          else
 
16040
            lt_cv_archive_cmds_need_lc=yes
 
16041
          fi
 
16042
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
16043
        else
 
16044
          cat conftest.err 1>&5
 
16045
        fi
 
16046
        $RM conftest*
 
16047
 
 
16048
fi
 
16049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
16050
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
16051
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
16052
      ;;
 
16053
    esac
 
16054
  fi
 
16055
  ;;
 
16056
esac
 
16057
 
 
16058
 
 
16059
 
 
16060
 
 
16061
 
 
16062
 
 
16063
 
 
16064
 
 
16065
 
 
16066
 
 
16067
 
 
16068
 
 
16069
 
 
16070
 
 
16071
 
 
16072
 
 
16073
 
 
16074
 
 
16075
 
 
16076
 
 
16077
 
 
16078
 
 
16079
 
 
16080
 
 
16081
 
 
16082
 
 
16083
 
 
16084
 
 
16085
 
 
16086
 
 
16087
 
 
16088
 
 
16089
 
 
16090
 
 
16091
 
 
16092
 
 
16093
 
 
16094
 
 
16095
 
 
16096
 
 
16097
 
 
16098
 
 
16099
 
 
16100
 
 
16101
 
 
16102
 
 
16103
 
 
16104
 
 
16105
 
 
16106
 
 
16107
 
 
16108
 
 
16109
 
 
16110
 
 
16111
 
 
16112
 
 
16113
 
 
16114
 
 
16115
 
 
16116
 
 
16117
 
 
16118
 
 
16119
 
 
16120
 
 
16121
 
 
16122
 
 
16123
 
 
16124
 
 
16125
 
 
16126
 
 
16127
 
 
16128
 
 
16129
 
 
16130
 
 
16131
 
 
16132
 
 
16133
 
 
16134
 
 
16135
 
 
16136
 
 
16137
 
 
16138
 
 
16139
 
 
16140
 
 
16141
 
 
16142
 
 
16143
 
 
16144
 
 
16145
 
 
16146
 
 
16147
 
 
16148
 
 
16149
 
 
16150
 
 
16151
 
 
16152
 
 
16153
 
 
16154
 
 
16155
 
 
16156
 
 
16157
 
 
16158
 
 
16159
 
 
16160
 
 
16161
 
 
16162
 
 
16163
 
 
16164
 
 
16165
 
 
16166
 
 
16167
 
 
16168
 
 
16169
 
 
16170
 
 
16171
 
 
16172
 
 
16173
 
 
16174
 
 
16175
 
 
16176
 
 
16177
 
 
16178
 
 
16179
 
 
16180
 
 
16181
 
 
16182
 
 
16183
 
 
16184
 
 
16185
 
 
16186
 
 
16187
 
 
16188
 
 
16189
 
 
16190
 
 
16191
 
 
16192
 
 
16193
 
 
16194
 
 
16195
 
 
16196
 
 
16197
 
 
16198
 
 
16199
 
 
16200
 
 
16201
 
 
16202
 
 
16203
 
 
16204
 
 
16205
 
 
16206
 
 
16207
 
 
16208
 
 
16209
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
16210
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
16211
 
 
16212
if test "$GCC" = yes; then
 
16213
  case $host_os in
 
16214
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
16215
    *) lt_awk_arg="/^libraries:/" ;;
 
16216
  esac
 
16217
  case $host_os in
 
16218
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
16219
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
16220
  esac
 
16221
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
16222
  case $lt_search_path_spec in
 
16223
  *\;*)
 
16224
    # if the path contains ";" then we assume it to be the separator
 
16225
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16226
    # assumed that no part of a normal pathname contains ";" but that should
 
16227
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16228
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
16229
    ;;
 
16230
  *)
 
16231
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
16232
    ;;
 
16233
  esac
 
16234
  # Ok, now we have the path, separated by spaces, we can step through it
 
16235
  # and add multilib dir if necessary.
 
16236
  lt_tmp_lt_search_path_spec=
 
16237
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
16238
  for lt_sys_path in $lt_search_path_spec; do
 
16239
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
16240
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
16241
    else
 
16242
      test -d "$lt_sys_path" && \
 
16243
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
16244
    fi
 
16245
  done
 
16246
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
16247
BEGIN {RS=" "; FS="/|\n";} {
 
16248
  lt_foo="";
 
16249
  lt_count=0;
 
16250
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
16251
    if ($lt_i != "" && $lt_i != ".") {
 
16252
      if ($lt_i == "..") {
 
16253
        lt_count++;
 
16254
      } else {
 
16255
        if (lt_count == 0) {
 
16256
          lt_foo="/" $lt_i lt_foo;
 
16257
        } else {
 
16258
          lt_count--;
 
16259
        }
 
16260
      }
 
16261
    }
 
16262
  }
 
16263
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
16264
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
16265
}'`
 
16266
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
16267
  # for these hosts.
 
16268
  case $host_os in
 
16269
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
16270
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
16271
  esac
 
16272
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
16273
else
 
16274
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16275
fi
 
16276
library_names_spec=
 
16277
libname_spec='lib$name'
 
16278
soname_spec=
 
16279
shrext_cmds=".so"
 
16280
postinstall_cmds=
 
16281
postuninstall_cmds=
 
16282
finish_cmds=
 
16283
finish_eval=
 
16284
shlibpath_var=
 
16285
shlibpath_overrides_runpath=unknown
 
16286
version_type=none
 
16287
dynamic_linker="$host_os ld.so"
 
16288
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16289
need_lib_prefix=unknown
 
16290
hardcode_into_libs=no
 
16291
 
 
16292
# when you set need_version to no, make sure it does not cause -set_version
 
16293
# flags to be left without arguments
 
16294
need_version=unknown
 
16295
 
 
16296
case $host_os in
 
16297
aix3*)
 
16298
  version_type=linux # correct to gnu/linux during the next big refactor
 
16299
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16300
  shlibpath_var=LIBPATH
 
16301
 
 
16302
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16303
  soname_spec='${libname}${release}${shared_ext}$major'
 
16304
  ;;
 
16305
 
 
16306
aix[4-9]*)
 
16307
  version_type=linux # correct to gnu/linux during the next big refactor
 
16308
  need_lib_prefix=no
 
16309
  need_version=no
 
16310
  hardcode_into_libs=yes
 
16311
  if test "$host_cpu" = ia64; then
 
16312
    # AIX 5 supports IA64
 
16313
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16314
    shlibpath_var=LD_LIBRARY_PATH
 
16315
  else
 
16316
    # With GCC up to 2.95.x, collect2 would create an import file
 
16317
    # for dependence libraries.  The import file would start with
 
16318
    # the line `#! .'.  This would cause the generated library to
 
16319
    # depend on `.', always an invalid library.  This was fixed in
 
16320
    # development snapshots of GCC prior to 3.0.
 
16321
    case $host_os in
 
16322
      aix4 | aix4.[01] | aix4.[01].*)
 
16323
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16324
           echo ' yes '
 
16325
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
16326
        :
 
16327
      else
 
16328
        can_build_shared=no
 
16329
      fi
 
16330
      ;;
 
16331
    esac
 
16332
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16333
    # soname into executable. Probably we can add versioning support to
 
16334
    # collect2, so additional links can be useful in future.
 
16335
    if test "$aix_use_runtimelinking" = yes; then
 
16336
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16337
      # instead of lib<name>.a to let people know that these are not
 
16338
      # typical AIX shared libraries.
 
16339
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16340
    else
 
16341
      # We preserve .a as extension for shared libraries through AIX4.2
 
16342
      # and later when we are not doing run time linking.
 
16343
      library_names_spec='${libname}${release}.a $libname.a'
 
16344
      soname_spec='${libname}${release}${shared_ext}$major'
 
16345
    fi
 
16346
    shlibpath_var=LIBPATH
 
16347
  fi
 
16348
  ;;
 
16349
 
 
16350
amigaos*)
 
16351
  case $host_cpu in
 
16352
  powerpc)
 
16353
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
16354
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
16355
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16356
    ;;
 
16357
  m68k)
 
16358
    library_names_spec='$libname.ixlibrary $libname.a'
 
16359
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16360
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
16361
    ;;
 
16362
  esac
 
16363
  ;;
 
16364
 
 
16365
beos*)
 
16366
  library_names_spec='${libname}${shared_ext}'
 
16367
  dynamic_linker="$host_os ld.so"
 
16368
  shlibpath_var=LIBRARY_PATH
 
16369
  ;;
 
16370
 
 
16371
bsdi[45]*)
 
16372
  version_type=linux # correct to gnu/linux during the next big refactor
 
16373
  need_version=no
 
16374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16375
  soname_spec='${libname}${release}${shared_ext}$major'
 
16376
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16377
  shlibpath_var=LD_LIBRARY_PATH
 
16378
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16379
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16380
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16381
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16382
  # libtool to hard-code these into programs
 
16383
  ;;
 
16384
 
 
16385
cygwin* | mingw* | pw32* | cegcc*)
 
16386
  version_type=windows
 
16387
  shrext_cmds=".dll"
 
16388
  need_version=no
 
16389
  need_lib_prefix=no
 
16390
 
 
16391
  case $GCC,$cc_basename in
 
16392
  yes,*)
 
16393
    # gcc
 
16394
    library_names_spec='$libname.dll.a'
 
16395
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16396
    postinstall_cmds='base_file=`basename \${file}`~
 
16397
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
16398
      dldir=$destdir/`dirname \$dlpath`~
 
16399
      test -d \$dldir || mkdir -p \$dldir~
 
16400
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16401
      chmod a+x \$dldir/$dlname~
 
16402
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
16403
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
16404
      fi'
 
16405
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16406
      dlpath=$dir/\$dldll~
 
16407
       $RM \$dlpath'
 
16408
    shlibpath_overrides_runpath=yes
 
16409
 
 
16410
    case $host_os in
 
16411
    cygwin*)
 
16412
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16413
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16414
 
 
16415
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
16416
      ;;
 
16417
    mingw* | cegcc*)
 
16418
      # MinGW DLLs use traditional 'lib' prefix
 
16419
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16420
      ;;
 
16421
    pw32*)
 
16422
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16423
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16424
      ;;
 
16425
    esac
 
16426
    dynamic_linker='Win32 ld.exe'
 
16427
    ;;
 
16428
 
 
16429
  *,cl*)
 
16430
    # Native MSVC
 
16431
    libname_spec='$name'
 
16432
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16433
    library_names_spec='${libname}.dll.lib'
 
16434
 
 
16435
    case $build_os in
 
16436
    mingw*)
 
16437
      sys_lib_search_path_spec=
 
16438
      lt_save_ifs=$IFS
 
16439
      IFS=';'
 
16440
      for lt_path in $LIB
 
16441
      do
 
16442
        IFS=$lt_save_ifs
 
16443
        # Let DOS variable expansion print the short 8.3 style file name.
 
16444
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
16445
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
16446
      done
 
16447
      IFS=$lt_save_ifs
 
16448
      # Convert to MSYS style.
 
16449
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
16450
      ;;
 
16451
    cygwin*)
 
16452
      # Convert to unix form, then to dos form, then back to unix form
 
16453
      # but this time dos style (no spaces!) so that the unix form looks
 
16454
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
16455
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
16456
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
16457
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
16458
      ;;
 
16459
    *)
 
16460
      sys_lib_search_path_spec="$LIB"
 
16461
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
16462
        # It is most probably a Windows format PATH.
 
16463
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16464
      else
 
16465
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
16466
      fi
 
16467
      # FIXME: find the short name or the path components, as spaces are
 
16468
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
16469
      ;;
 
16470
    esac
 
16471
 
 
16472
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16473
    postinstall_cmds='base_file=`basename \${file}`~
 
16474
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
16475
      dldir=$destdir/`dirname \$dlpath`~
 
16476
      test -d \$dldir || mkdir -p \$dldir~
 
16477
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16478
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16479
      dlpath=$dir/\$dldll~
 
16480
       $RM \$dlpath'
 
16481
    shlibpath_overrides_runpath=yes
 
16482
    dynamic_linker='Win32 link.exe'
 
16483
    ;;
 
16484
 
 
16485
  *)
 
16486
    # Assume MSVC wrapper
 
16487
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16488
    dynamic_linker='Win32 ld.exe'
 
16489
    ;;
 
16490
  esac
 
16491
  # FIXME: first we should search . and the directory the executable is in
 
16492
  shlibpath_var=PATH
 
16493
  ;;
 
16494
 
 
16495
darwin* | rhapsody*)
 
16496
  dynamic_linker="$host_os dyld"
 
16497
  version_type=darwin
 
16498
  need_lib_prefix=no
 
16499
  need_version=no
 
16500
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16501
  soname_spec='${libname}${release}${major}$shared_ext'
 
16502
  shlibpath_overrides_runpath=yes
 
16503
  shlibpath_var=DYLD_LIBRARY_PATH
 
16504
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16505
 
 
16506
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
16507
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16508
  ;;
 
16509
 
 
16510
dgux*)
 
16511
  version_type=linux # correct to gnu/linux during the next big refactor
 
16512
  need_lib_prefix=no
 
16513
  need_version=no
 
16514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16515
  soname_spec='${libname}${release}${shared_ext}$major'
 
16516
  shlibpath_var=LD_LIBRARY_PATH
 
16517
  ;;
 
16518
 
 
16519
freebsd* | dragonfly*)
 
16520
  # DragonFly does not have aout.  When/if they implement a new
 
16521
  # versioning mechanism, adjust this.
 
16522
  if test -x /usr/bin/objformat; then
 
16523
    objformat=`/usr/bin/objformat`
 
16524
  else
 
16525
    case $host_os in
 
16526
    freebsd[23].*) objformat=aout ;;
 
16527
    *) objformat=elf ;;
 
16528
    esac
 
16529
  fi
 
16530
  version_type=freebsd-$objformat
 
16531
  case $version_type in
 
16532
    freebsd-elf*)
 
16533
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16534
      need_version=no
 
16535
      need_lib_prefix=no
 
16536
      ;;
 
16537
    freebsd-*)
 
16538
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16539
      need_version=yes
 
16540
      ;;
 
16541
  esac
 
16542
  shlibpath_var=LD_LIBRARY_PATH
 
16543
  case $host_os in
 
16544
  freebsd2.*)
 
16545
    shlibpath_overrides_runpath=yes
 
16546
    ;;
 
16547
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16548
    shlibpath_overrides_runpath=yes
 
16549
    hardcode_into_libs=yes
 
16550
    ;;
 
16551
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16552
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16553
    shlibpath_overrides_runpath=no
 
16554
    hardcode_into_libs=yes
 
16555
    ;;
 
16556
  *) # from 4.6 on, and DragonFly
 
16557
    shlibpath_overrides_runpath=yes
 
16558
    hardcode_into_libs=yes
 
16559
    ;;
 
16560
  esac
 
16561
  ;;
 
16562
 
 
16563
haiku*)
 
16564
  version_type=linux # correct to gnu/linux during the next big refactor
 
16565
  need_lib_prefix=no
 
16566
  need_version=no
 
16567
  dynamic_linker="$host_os runtime_loader"
 
16568
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16569
  soname_spec='${libname}${release}${shared_ext}$major'
 
16570
  shlibpath_var=LIBRARY_PATH
 
16571
  shlibpath_overrides_runpath=yes
 
16572
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
16573
  hardcode_into_libs=yes
 
16574
  ;;
 
16575
 
 
16576
hpux9* | hpux10* | hpux11*)
 
16577
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16578
  # link against other versions.
 
16579
  version_type=sunos
 
16580
  need_lib_prefix=no
 
16581
  need_version=no
 
16582
  case $host_cpu in
 
16583
  ia64*)
 
16584
    shrext_cmds='.so'
 
16585
    hardcode_into_libs=yes
 
16586
    dynamic_linker="$host_os dld.so"
 
16587
    shlibpath_var=LD_LIBRARY_PATH
 
16588
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16589
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16590
    soname_spec='${libname}${release}${shared_ext}$major'
 
16591
    if test "X$HPUX_IA64_MODE" = X32; then
 
16592
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16593
    else
 
16594
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16595
    fi
 
16596
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16597
    ;;
 
16598
  hppa*64*)
 
16599
    shrext_cmds='.sl'
 
16600
    hardcode_into_libs=yes
 
16601
    dynamic_linker="$host_os dld.sl"
 
16602
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16603
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16604
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16605
    soname_spec='${libname}${release}${shared_ext}$major'
 
16606
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16607
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16608
    ;;
 
16609
  *)
 
16610
    shrext_cmds='.sl'
 
16611
    dynamic_linker="$host_os dld.sl"
 
16612
    shlibpath_var=SHLIB_PATH
 
16613
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16614
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16615
    soname_spec='${libname}${release}${shared_ext}$major'
 
16616
    ;;
 
16617
  esac
 
16618
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
16619
  postinstall_cmds='chmod 555 $lib'
 
16620
  # or fails outright, so override atomically:
 
16621
  install_override_mode=555
 
16622
  ;;
 
16623
 
 
16624
interix[3-9]*)
 
16625
  version_type=linux # correct to gnu/linux during the next big refactor
 
16626
  need_lib_prefix=no
 
16627
  need_version=no
 
16628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16629
  soname_spec='${libname}${release}${shared_ext}$major'
 
16630
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16631
  shlibpath_var=LD_LIBRARY_PATH
 
16632
  shlibpath_overrides_runpath=no
 
16633
  hardcode_into_libs=yes
 
16634
  ;;
 
16635
 
 
16636
irix5* | irix6* | nonstopux*)
 
16637
  case $host_os in
 
16638
    nonstopux*) version_type=nonstopux ;;
 
16639
    *)
 
16640
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16641
                version_type=linux # correct to gnu/linux during the next big refactor
 
16642
        else
 
16643
                version_type=irix
 
16644
        fi ;;
 
16645
  esac
 
16646
  need_lib_prefix=no
 
16647
  need_version=no
 
16648
  soname_spec='${libname}${release}${shared_ext}$major'
 
16649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16650
  case $host_os in
 
16651
  irix5* | nonstopux*)
 
16652
    libsuff= shlibsuff=
 
16653
    ;;
 
16654
  *)
 
16655
    case $LD in # libtool.m4 will add one of these switches to LD
 
16656
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16657
      libsuff= shlibsuff= libmagic=32-bit;;
 
16658
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16659
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16660
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16661
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16662
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16663
    esac
 
16664
    ;;
 
16665
  esac
 
16666
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16667
  shlibpath_overrides_runpath=no
 
16668
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16669
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16670
  hardcode_into_libs=yes
 
16671
  ;;
 
16672
 
 
16673
# No shared lib support for Linux oldld, aout, or coff.
 
16674
linux*oldld* | linux*aout* | linux*coff*)
 
16675
  dynamic_linker=no
 
16676
  ;;
 
16677
 
 
16678
# This must be glibc/ELF.
 
16679
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
16680
  version_type=linux # correct to gnu/linux during the next big refactor
 
16681
  need_lib_prefix=no
 
16682
  need_version=no
 
16683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16684
  soname_spec='${libname}${release}${shared_ext}$major'
 
16685
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16686
  shlibpath_var=LD_LIBRARY_PATH
 
16687
  shlibpath_overrides_runpath=no
 
16688
 
 
16689
  # Some binutils ld are patched to set DT_RUNPATH
 
16690
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
16691
  $as_echo_n "(cached) " >&6
 
16692
else
 
16693
  lt_cv_shlibpath_overrides_runpath=no
 
16694
    save_LDFLAGS=$LDFLAGS
 
16695
    save_libdir=$libdir
 
16696
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
16697
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
16698
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16699
/* end confdefs.h.  */
 
16700
 
 
16701
int
 
16702
main ()
 
16703
{
 
16704
 
 
16705
  ;
 
16706
  return 0;
 
16707
}
 
16708
_ACEOF
 
16709
if ac_fn_c_try_link "$LINENO"; then :
 
16710
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
16711
  lt_cv_shlibpath_overrides_runpath=yes
 
16712
fi
 
16713
fi
 
16714
rm -f core conftest.err conftest.$ac_objext \
 
16715
    conftest$ac_exeext conftest.$ac_ext
 
16716
    LDFLAGS=$save_LDFLAGS
 
16717
    libdir=$save_libdir
 
16718
 
 
16719
fi
 
16720
 
 
16721
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
16722
 
 
16723
  # This implies no fast_install, which is unacceptable.
 
16724
  # Some rework will be needed to allow for fast_install
 
16725
  # before this can be enabled.
 
16726
  hardcode_into_libs=yes
 
16727
 
 
16728
  # Append ld.so.conf contents to the search path
 
16729
  if test -f /etc/ld.so.conf; then
 
16730
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
16731
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16732
  fi
 
16733
 
 
16734
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16735
  # powerpc, because MkLinux only supported shared libraries with the
 
16736
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16737
  # most powerpc-linux boxes support dynamic linking these days and
 
16738
  # people can always --disable-shared, the test was removed, and we
 
16739
  # assume the GNU/Linux dynamic linker is in use.
 
16740
  dynamic_linker='GNU/Linux ld.so'
 
16741
  ;;
 
16742
 
 
16743
netbsdelf*-gnu)
 
16744
  version_type=linux
 
16745
  need_lib_prefix=no
 
16746
  need_version=no
 
16747
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16748
  soname_spec='${libname}${release}${shared_ext}$major'
 
16749
  shlibpath_var=LD_LIBRARY_PATH
 
16750
  shlibpath_overrides_runpath=no
 
16751
  hardcode_into_libs=yes
 
16752
  dynamic_linker='NetBSD ld.elf_so'
 
16753
  ;;
 
16754
 
 
16755
netbsd*)
 
16756
  version_type=sunos
 
16757
  need_lib_prefix=no
 
16758
  need_version=no
 
16759
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
16760
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16761
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16762
    dynamic_linker='NetBSD (a.out) ld.so'
 
16763
  else
 
16764
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16765
    soname_spec='${libname}${release}${shared_ext}$major'
 
16766
    dynamic_linker='NetBSD ld.elf_so'
 
16767
  fi
 
16768
  shlibpath_var=LD_LIBRARY_PATH
 
16769
  shlibpath_overrides_runpath=yes
 
16770
  hardcode_into_libs=yes
 
16771
  ;;
 
16772
 
 
16773
newsos6)
 
16774
  version_type=linux # correct to gnu/linux during the next big refactor
 
16775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16776
  shlibpath_var=LD_LIBRARY_PATH
 
16777
  shlibpath_overrides_runpath=yes
 
16778
  ;;
 
16779
 
 
16780
*nto* | *qnx*)
 
16781
  version_type=qnx
 
16782
  need_lib_prefix=no
 
16783
  need_version=no
 
16784
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16785
  soname_spec='${libname}${release}${shared_ext}$major'
 
16786
  shlibpath_var=LD_LIBRARY_PATH
 
16787
  shlibpath_overrides_runpath=no
 
16788
  hardcode_into_libs=yes
 
16789
  dynamic_linker='ldqnx.so'
 
16790
  ;;
 
16791
 
 
16792
openbsd*)
 
16793
  version_type=sunos
 
16794
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16795
  need_lib_prefix=no
 
16796
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16797
  case $host_os in
 
16798
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
16799
    *)                          need_version=no  ;;
 
16800
  esac
 
16801
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16802
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16803
  shlibpath_var=LD_LIBRARY_PATH
 
16804
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16805
    case $host_os in
 
16806
      openbsd2.[89] | openbsd2.[89].*)
 
16807
        shlibpath_overrides_runpath=no
 
16808
        ;;
 
16809
      *)
 
16810
        shlibpath_overrides_runpath=yes
 
16811
        ;;
 
16812
      esac
 
16813
  else
 
16814
    shlibpath_overrides_runpath=yes
 
16815
  fi
 
16816
  ;;
 
16817
 
 
16818
os2*)
 
16819
  libname_spec='$name'
 
16820
  shrext_cmds=".dll"
 
16821
  need_lib_prefix=no
 
16822
  library_names_spec='$libname${shared_ext} $libname.a'
 
16823
  dynamic_linker='OS/2 ld.exe'
 
16824
  shlibpath_var=LIBPATH
 
16825
  ;;
 
16826
 
 
16827
osf3* | osf4* | osf5*)
 
16828
  version_type=osf
 
16829
  need_lib_prefix=no
 
16830
  need_version=no
 
16831
  soname_spec='${libname}${release}${shared_ext}$major'
 
16832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16833
  shlibpath_var=LD_LIBRARY_PATH
 
16834
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16835
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16836
  ;;
 
16837
 
 
16838
rdos*)
 
16839
  dynamic_linker=no
 
16840
  ;;
 
16841
 
 
16842
solaris*)
 
16843
  version_type=linux # correct to gnu/linux during the next big refactor
 
16844
  need_lib_prefix=no
 
16845
  need_version=no
 
16846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16847
  soname_spec='${libname}${release}${shared_ext}$major'
 
16848
  shlibpath_var=LD_LIBRARY_PATH
 
16849
  shlibpath_overrides_runpath=yes
 
16850
  hardcode_into_libs=yes
 
16851
  # ldd complains unless libraries are executable
 
16852
  postinstall_cmds='chmod +x $lib'
 
16853
  ;;
 
16854
 
 
16855
sunos4*)
 
16856
  version_type=sunos
 
16857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16858
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16859
  shlibpath_var=LD_LIBRARY_PATH
 
16860
  shlibpath_overrides_runpath=yes
 
16861
  if test "$with_gnu_ld" = yes; then
 
16862
    need_lib_prefix=no
 
16863
  fi
 
16864
  need_version=yes
 
16865
  ;;
 
16866
 
 
16867
sysv4 | sysv4.3*)
 
16868
  version_type=linux # correct to gnu/linux during the next big refactor
 
16869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16870
  soname_spec='${libname}${release}${shared_ext}$major'
 
16871
  shlibpath_var=LD_LIBRARY_PATH
 
16872
  case $host_vendor in
 
16873
    sni)
 
16874
      shlibpath_overrides_runpath=no
 
16875
      need_lib_prefix=no
 
16876
      runpath_var=LD_RUN_PATH
 
16877
      ;;
 
16878
    siemens)
 
16879
      need_lib_prefix=no
 
16880
      ;;
 
16881
    motorola)
 
16882
      need_lib_prefix=no
 
16883
      need_version=no
 
16884
      shlibpath_overrides_runpath=no
 
16885
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16886
      ;;
 
16887
  esac
 
16888
  ;;
 
16889
 
 
16890
sysv4*MP*)
 
16891
  if test -d /usr/nec ;then
 
16892
    version_type=linux # correct to gnu/linux during the next big refactor
 
16893
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16894
    soname_spec='$libname${shared_ext}.$major'
 
16895
    shlibpath_var=LD_LIBRARY_PATH
 
16896
  fi
 
16897
  ;;
 
16898
 
 
16899
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16900
  version_type=freebsd-elf
 
16901
  need_lib_prefix=no
 
16902
  need_version=no
 
16903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16904
  soname_spec='${libname}${release}${shared_ext}$major'
 
16905
  shlibpath_var=LD_LIBRARY_PATH
 
16906
  shlibpath_overrides_runpath=yes
 
16907
  hardcode_into_libs=yes
 
16908
  if test "$with_gnu_ld" = yes; then
 
16909
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16910
  else
 
16911
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16912
    case $host_os in
 
16913
      sco3.2v5*)
 
16914
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16915
        ;;
 
16916
    esac
 
16917
  fi
 
16918
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16919
  ;;
 
16920
 
 
16921
tpf*)
 
16922
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
16923
  version_type=linux # correct to gnu/linux during the next big refactor
 
16924
  need_lib_prefix=no
 
16925
  need_version=no
 
16926
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16927
  shlibpath_var=LD_LIBRARY_PATH
 
16928
  shlibpath_overrides_runpath=no
 
16929
  hardcode_into_libs=yes
 
16930
  ;;
 
16931
 
 
16932
uts4*)
 
16933
  version_type=linux # correct to gnu/linux during the next big refactor
 
16934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16935
  soname_spec='${libname}${release}${shared_ext}$major'
 
16936
  shlibpath_var=LD_LIBRARY_PATH
 
16937
  ;;
 
16938
 
 
16939
*)
 
16940
  dynamic_linker=no
 
16941
  ;;
 
16942
esac
 
16943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
16944
$as_echo "$dynamic_linker" >&6; }
 
16945
test "$dynamic_linker" = no && can_build_shared=no
 
16946
 
 
16947
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16948
if test "$GCC" = yes; then
 
16949
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16950
fi
 
16951
 
 
16952
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16953
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16954
fi
 
16955
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16956
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16957
fi
 
16958
 
 
16959
 
 
16960
 
 
16961
 
 
16962
 
 
16963
 
 
16964
 
 
16965
 
 
16966
 
 
16967
 
 
16968
 
 
16969
 
 
16970
 
 
16971
 
 
16972
 
 
16973
 
 
16974
 
 
16975
 
 
16976
 
 
16977
 
 
16978
 
 
16979
 
 
16980
 
 
16981
 
 
16982
 
 
16983
 
 
16984
 
 
16985
 
 
16986
 
 
16987
 
 
16988
 
 
16989
 
 
16990
 
 
16991
 
 
16992
 
 
16993
 
 
16994
 
 
16995
 
 
16996
 
 
16997
 
 
16998
 
 
16999
 
 
17000
 
 
17001
 
 
17002
 
 
17003
 
 
17004
 
 
17005
 
 
17006
 
 
17007
 
 
17008
 
 
17009
 
 
17010
 
 
17011
 
 
17012
 
 
17013
 
 
17014
 
 
17015
 
 
17016
 
 
17017
 
 
17018
 
 
17019
 
 
17020
 
 
17021
 
 
17022
 
 
17023
 
 
17024
 
 
17025
 
 
17026
 
 
17027
 
 
17028
 
 
17029
 
 
17030
 
 
17031
 
 
17032
 
 
17033
 
 
17034
 
 
17035
 
 
17036
 
 
17037
 
 
17038
 
 
17039
 
 
17040
 
 
17041
 
 
17042
 
 
17043
 
 
17044
 
 
17045
 
 
17046
 
 
17047
 
 
17048
 
 
17049
 
 
17050
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
17051
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
17052
hardcode_action=
 
17053
if test -n "$hardcode_libdir_flag_spec" ||
 
17054
   test -n "$runpath_var" ||
 
17055
   test "X$hardcode_automatic" = "Xyes" ; then
 
17056
 
 
17057
  # We can hardcode non-existent directories.
 
17058
  if test "$hardcode_direct" != no &&
 
17059
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17060
     # have to relink, otherwise we might link with an installed library
 
17061
     # when we should be linking with a yet-to-be-installed one
 
17062
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
17063
     test "$hardcode_minus_L" != no; then
 
17064
    # Linking always hardcodes the temporary library directory.
 
17065
    hardcode_action=relink
 
17066
  else
 
17067
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17068
    hardcode_action=immediate
 
17069
  fi
 
17070
else
 
17071
  # We cannot hardcode anything, or else we can only hardcode existing
 
17072
  # directories.
 
17073
  hardcode_action=unsupported
 
17074
fi
 
17075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
17076
$as_echo "$hardcode_action" >&6; }
 
17077
 
 
17078
if test "$hardcode_action" = relink ||
 
17079
   test "$inherit_rpath" = yes; then
 
17080
  # Fast installation is not supported
 
17081
  enable_fast_install=no
 
17082
elif test "$shlibpath_overrides_runpath" = yes ||
 
17083
     test "$enable_shared" = no; then
 
17084
  # Fast installation is not necessary
 
17085
  enable_fast_install=needless
 
17086
fi
 
17087
 
 
17088
 
 
17089
 
 
17090
 
 
17091
 
 
17092
 
 
17093
  if test "x$enable_dlopen" != xyes; then
 
17094
  enable_dlopen=unknown
 
17095
  enable_dlopen_self=unknown
 
17096
  enable_dlopen_self_static=unknown
 
17097
else
 
17098
  lt_cv_dlopen=no
 
17099
  lt_cv_dlopen_libs=
 
17100
 
 
17101
  case $host_os in
 
17102
  beos*)
 
17103
    lt_cv_dlopen="load_add_on"
 
17104
    lt_cv_dlopen_libs=
 
17105
    lt_cv_dlopen_self=yes
 
17106
    ;;
 
17107
 
 
17108
  mingw* | pw32* | cegcc*)
 
17109
    lt_cv_dlopen="LoadLibrary"
 
17110
    lt_cv_dlopen_libs=
 
17111
    ;;
 
17112
 
 
17113
  cygwin*)
 
17114
    lt_cv_dlopen="dlopen"
 
17115
    lt_cv_dlopen_libs=
 
17116
    ;;
 
17117
 
 
17118
  darwin*)
 
17119
  # if libdl is installed we need to link against it
 
17120
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
17121
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
17122
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
17123
  $as_echo_n "(cached) " >&6
 
17124
else
 
17125
  ac_check_lib_save_LIBS=$LIBS
 
17126
LIBS="-ldl  $LIBS"
 
17127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17128
/* end confdefs.h.  */
 
17129
 
 
17130
/* Override any GCC internal prototype to avoid an error.
 
17131
   Use char because int might match the return type of a GCC
 
17132
   builtin and then its argument prototype would still apply.  */
 
17133
#ifdef __cplusplus
 
17134
extern "C"
 
17135
#endif
 
17136
char dlopen ();
 
17137
int
 
17138
main ()
 
17139
{
 
17140
return dlopen ();
 
17141
  ;
 
17142
  return 0;
 
17143
}
 
17144
_ACEOF
 
17145
if ac_fn_c_try_link "$LINENO"; then :
 
17146
  ac_cv_lib_dl_dlopen=yes
 
17147
else
 
17148
  ac_cv_lib_dl_dlopen=no
 
17149
fi
 
17150
rm -f core conftest.err conftest.$ac_objext \
 
17151
    conftest$ac_exeext conftest.$ac_ext
 
17152
LIBS=$ac_check_lib_save_LIBS
 
17153
fi
 
17154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
17155
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
17156
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
17157
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17158
else
 
17159
 
 
17160
    lt_cv_dlopen="dyld"
 
17161
    lt_cv_dlopen_libs=
 
17162
    lt_cv_dlopen_self=yes
 
17163
 
 
17164
fi
 
17165
 
 
17166
    ;;
 
17167
 
 
17168
  *)
 
17169
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
17170
if test "x$ac_cv_func_shl_load" = xyes; then :
 
17171
  lt_cv_dlopen="shl_load"
 
17172
else
 
17173
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
17174
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
17175
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
17176
  $as_echo_n "(cached) " >&6
 
17177
else
 
17178
  ac_check_lib_save_LIBS=$LIBS
 
17179
LIBS="-ldld  $LIBS"
 
17180
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17181
/* end confdefs.h.  */
 
17182
 
 
17183
/* Override any GCC internal prototype to avoid an error.
 
17184
   Use char because int might match the return type of a GCC
 
17185
   builtin and then its argument prototype would still apply.  */
 
17186
#ifdef __cplusplus
 
17187
extern "C"
 
17188
#endif
 
17189
char shl_load ();
 
17190
int
 
17191
main ()
 
17192
{
 
17193
return shl_load ();
 
17194
  ;
 
17195
  return 0;
 
17196
}
 
17197
_ACEOF
 
17198
if ac_fn_c_try_link "$LINENO"; then :
 
17199
  ac_cv_lib_dld_shl_load=yes
 
17200
else
 
17201
  ac_cv_lib_dld_shl_load=no
 
17202
fi
 
17203
rm -f core conftest.err conftest.$ac_objext \
 
17204
    conftest$ac_exeext conftest.$ac_ext
 
17205
LIBS=$ac_check_lib_save_LIBS
 
17206
fi
 
17207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
17208
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
17209
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
17210
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
17211
else
 
17212
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
17213
if test "x$ac_cv_func_dlopen" = xyes; then :
 
17214
  lt_cv_dlopen="dlopen"
 
17215
else
 
17216
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
17217
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
17218
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
17219
  $as_echo_n "(cached) " >&6
 
17220
else
 
17221
  ac_check_lib_save_LIBS=$LIBS
 
17222
LIBS="-ldl  $LIBS"
 
17223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17224
/* end confdefs.h.  */
 
17225
 
 
17226
/* Override any GCC internal prototype to avoid an error.
 
17227
   Use char because int might match the return type of a GCC
 
17228
   builtin and then its argument prototype would still apply.  */
 
17229
#ifdef __cplusplus
 
17230
extern "C"
 
17231
#endif
 
17232
char dlopen ();
 
17233
int
 
17234
main ()
 
17235
{
 
17236
return dlopen ();
 
17237
  ;
 
17238
  return 0;
 
17239
}
 
17240
_ACEOF
 
17241
if ac_fn_c_try_link "$LINENO"; then :
 
17242
  ac_cv_lib_dl_dlopen=yes
 
17243
else
 
17244
  ac_cv_lib_dl_dlopen=no
 
17245
fi
 
17246
rm -f core conftest.err conftest.$ac_objext \
 
17247
    conftest$ac_exeext conftest.$ac_ext
 
17248
LIBS=$ac_check_lib_save_LIBS
 
17249
fi
 
17250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
17251
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
17252
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
17253
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17254
else
 
17255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
17256
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
17257
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
17258
  $as_echo_n "(cached) " >&6
 
17259
else
 
17260
  ac_check_lib_save_LIBS=$LIBS
 
17261
LIBS="-lsvld  $LIBS"
 
17262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17263
/* end confdefs.h.  */
 
17264
 
 
17265
/* Override any GCC internal prototype to avoid an error.
 
17266
   Use char because int might match the return type of a GCC
 
17267
   builtin and then its argument prototype would still apply.  */
 
17268
#ifdef __cplusplus
 
17269
extern "C"
 
17270
#endif
 
17271
char dlopen ();
 
17272
int
 
17273
main ()
 
17274
{
 
17275
return dlopen ();
 
17276
  ;
 
17277
  return 0;
 
17278
}
 
17279
_ACEOF
 
17280
if ac_fn_c_try_link "$LINENO"; then :
 
17281
  ac_cv_lib_svld_dlopen=yes
 
17282
else
 
17283
  ac_cv_lib_svld_dlopen=no
 
17284
fi
 
17285
rm -f core conftest.err conftest.$ac_objext \
 
17286
    conftest$ac_exeext conftest.$ac_ext
 
17287
LIBS=$ac_check_lib_save_LIBS
 
17288
fi
 
17289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
17290
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
17291
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
17292
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17293
else
 
17294
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
17295
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
17296
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
17297
  $as_echo_n "(cached) " >&6
 
17298
else
 
17299
  ac_check_lib_save_LIBS=$LIBS
 
17300
LIBS="-ldld  $LIBS"
 
17301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17302
/* end confdefs.h.  */
 
17303
 
 
17304
/* Override any GCC internal prototype to avoid an error.
 
17305
   Use char because int might match the return type of a GCC
 
17306
   builtin and then its argument prototype would still apply.  */
 
17307
#ifdef __cplusplus
 
17308
extern "C"
 
17309
#endif
 
17310
char dld_link ();
 
17311
int
 
17312
main ()
 
17313
{
 
17314
return dld_link ();
 
17315
  ;
 
17316
  return 0;
 
17317
}
 
17318
_ACEOF
 
17319
if ac_fn_c_try_link "$LINENO"; then :
 
17320
  ac_cv_lib_dld_dld_link=yes
 
17321
else
 
17322
  ac_cv_lib_dld_dld_link=no
 
17323
fi
 
17324
rm -f core conftest.err conftest.$ac_objext \
 
17325
    conftest$ac_exeext conftest.$ac_ext
 
17326
LIBS=$ac_check_lib_save_LIBS
 
17327
fi
 
17328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
17329
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
17330
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
17331
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
17332
fi
 
17333
 
 
17334
 
 
17335
fi
 
17336
 
 
17337
 
 
17338
fi
 
17339
 
 
17340
 
 
17341
fi
 
17342
 
 
17343
 
 
17344
fi
 
17345
 
 
17346
 
 
17347
fi
 
17348
 
 
17349
    ;;
 
17350
  esac
 
17351
 
 
17352
  if test "x$lt_cv_dlopen" != xno; then
 
17353
    enable_dlopen=yes
 
17354
  else
 
17355
    enable_dlopen=no
 
17356
  fi
 
17357
 
 
17358
  case $lt_cv_dlopen in
 
17359
  dlopen)
 
17360
    save_CPPFLAGS="$CPPFLAGS"
 
17361
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17362
 
 
17363
    save_LDFLAGS="$LDFLAGS"
 
17364
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17365
 
 
17366
    save_LIBS="$LIBS"
 
17367
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17368
 
 
17369
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
17370
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
17371
if ${lt_cv_dlopen_self+:} false; then :
 
17372
  $as_echo_n "(cached) " >&6
 
17373
else
 
17374
          if test "$cross_compiling" = yes; then :
 
17375
  lt_cv_dlopen_self=cross
 
17376
else
 
17377
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17378
  lt_status=$lt_dlunknown
 
17379
  cat > conftest.$ac_ext <<_LT_EOF
 
17380
#line $LINENO "configure"
 
17381
#include "confdefs.h"
 
17382
 
 
17383
#if HAVE_DLFCN_H
 
17384
#include <dlfcn.h>
 
17385
#endif
 
17386
 
 
17387
#include <stdio.h>
 
17388
 
 
17389
#ifdef RTLD_GLOBAL
 
17390
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17391
#else
 
17392
#  ifdef DL_GLOBAL
 
17393
#    define LT_DLGLOBAL         DL_GLOBAL
 
17394
#  else
 
17395
#    define LT_DLGLOBAL         0
 
17396
#  endif
 
17397
#endif
 
17398
 
 
17399
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17400
   find out it does not work in some platform. */
 
17401
#ifndef LT_DLLAZY_OR_NOW
 
17402
#  ifdef RTLD_LAZY
 
17403
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17404
#  else
 
17405
#    ifdef DL_LAZY
 
17406
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17407
#    else
 
17408
#      ifdef RTLD_NOW
 
17409
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17410
#      else
 
17411
#        ifdef DL_NOW
 
17412
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17413
#        else
 
17414
#          define LT_DLLAZY_OR_NOW      0
 
17415
#        endif
 
17416
#      endif
 
17417
#    endif
 
17418
#  endif
 
17419
#endif
 
17420
 
 
17421
/* When -fvisbility=hidden is used, assume the code has been annotated
 
17422
   correspondingly for the symbols needed.  */
 
17423
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
17424
int fnord () __attribute__((visibility("default")));
 
17425
#endif
 
17426
 
 
17427
int fnord () { return 42; }
 
17428
int main ()
 
17429
{
 
17430
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17431
  int status = $lt_dlunknown;
 
17432
 
 
17433
  if (self)
 
17434
    {
 
17435
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17436
      else
 
17437
        {
 
17438
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
17439
          else puts (dlerror ());
 
17440
        }
 
17441
      /* dlclose (self); */
 
17442
    }
 
17443
  else
 
17444
    puts (dlerror ());
 
17445
 
 
17446
  return status;
 
17447
}
 
17448
_LT_EOF
 
17449
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
17450
  (eval $ac_link) 2>&5
 
17451
  ac_status=$?
 
17452
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17453
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17454
    (./conftest; exit; ) >&5 2>/dev/null
 
17455
    lt_status=$?
 
17456
    case x$lt_status in
 
17457
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17458
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17459
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
17460
    esac
 
17461
  else :
 
17462
    # compilation failed
 
17463
    lt_cv_dlopen_self=no
 
17464
  fi
 
17465
fi
 
17466
rm -fr conftest*
 
17467
 
 
17468
 
 
17469
fi
 
17470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
17471
$as_echo "$lt_cv_dlopen_self" >&6; }
 
17472
 
 
17473
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17474
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
17475
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
17476
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
17477
if ${lt_cv_dlopen_self_static+:} false; then :
 
17478
  $as_echo_n "(cached) " >&6
 
17479
else
 
17480
          if test "$cross_compiling" = yes; then :
 
17481
  lt_cv_dlopen_self_static=cross
 
17482
else
 
17483
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17484
  lt_status=$lt_dlunknown
 
17485
  cat > conftest.$ac_ext <<_LT_EOF
 
17486
#line $LINENO "configure"
 
17487
#include "confdefs.h"
 
17488
 
 
17489
#if HAVE_DLFCN_H
 
17490
#include <dlfcn.h>
 
17491
#endif
 
17492
 
 
17493
#include <stdio.h>
 
17494
 
 
17495
#ifdef RTLD_GLOBAL
 
17496
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17497
#else
 
17498
#  ifdef DL_GLOBAL
 
17499
#    define LT_DLGLOBAL         DL_GLOBAL
 
17500
#  else
 
17501
#    define LT_DLGLOBAL         0
 
17502
#  endif
 
17503
#endif
 
17504
 
 
17505
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17506
   find out it does not work in some platform. */
 
17507
#ifndef LT_DLLAZY_OR_NOW
 
17508
#  ifdef RTLD_LAZY
 
17509
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17510
#  else
 
17511
#    ifdef DL_LAZY
 
17512
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17513
#    else
 
17514
#      ifdef RTLD_NOW
 
17515
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17516
#      else
 
17517
#        ifdef DL_NOW
 
17518
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17519
#        else
 
17520
#          define LT_DLLAZY_OR_NOW      0
 
17521
#        endif
 
17522
#      endif
 
17523
#    endif
 
17524
#  endif
 
17525
#endif
 
17526
 
 
17527
/* When -fvisbility=hidden is used, assume the code has been annotated
 
17528
   correspondingly for the symbols needed.  */
 
17529
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
17530
int fnord () __attribute__((visibility("default")));
 
17531
#endif
 
17532
 
 
17533
int fnord () { return 42; }
 
17534
int main ()
 
17535
{
 
17536
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17537
  int status = $lt_dlunknown;
 
17538
 
 
17539
  if (self)
 
17540
    {
 
17541
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17542
      else
 
17543
        {
 
17544
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
17545
          else puts (dlerror ());
 
17546
        }
 
17547
      /* dlclose (self); */
 
17548
    }
 
17549
  else
 
17550
    puts (dlerror ());
 
17551
 
 
17552
  return status;
 
17553
}
 
17554
_LT_EOF
 
17555
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
17556
  (eval $ac_link) 2>&5
 
17557
  ac_status=$?
 
17558
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17559
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17560
    (./conftest; exit; ) >&5 2>/dev/null
 
17561
    lt_status=$?
 
17562
    case x$lt_status in
 
17563
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17564
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17565
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
17566
    esac
 
17567
  else :
 
17568
    # compilation failed
 
17569
    lt_cv_dlopen_self_static=no
 
17570
  fi
 
17571
fi
 
17572
rm -fr conftest*
 
17573
 
 
17574
 
 
17575
fi
 
17576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
17577
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
17578
    fi
 
17579
 
 
17580
    CPPFLAGS="$save_CPPFLAGS"
 
17581
    LDFLAGS="$save_LDFLAGS"
 
17582
    LIBS="$save_LIBS"
 
17583
    ;;
 
17584
  esac
 
17585
 
 
17586
  case $lt_cv_dlopen_self in
 
17587
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17588
  *) enable_dlopen_self=unknown ;;
 
17589
  esac
 
17590
 
 
17591
  case $lt_cv_dlopen_self_static in
 
17592
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17593
  *) enable_dlopen_self_static=unknown ;;
 
17594
  esac
 
17595
fi
 
17596
 
 
17597
 
 
17598
 
 
17599
 
 
17600
 
 
17601
 
 
17602
 
 
17603
 
 
17604
 
 
17605
 
 
17606
 
 
17607
 
 
17608
 
 
17609
 
 
17610
 
 
17611
 
 
17612
 
 
17613
striplib=
 
17614
old_striplib=
 
17615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
17616
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
17617
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
17618
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17619
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17621
$as_echo "yes" >&6; }
 
17622
else
 
17623
# FIXME - insert some real tests, host_os isn't really good enough
 
17624
  case $host_os in
 
17625
  darwin*)
 
17626
    if test -n "$STRIP" ; then
 
17627
      striplib="$STRIP -x"
 
17628
      old_striplib="$STRIP -S"
 
17629
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17630
$as_echo "yes" >&6; }
 
17631
    else
 
17632
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17633
$as_echo "no" >&6; }
 
17634
    fi
 
17635
    ;;
 
17636
  *)
 
17637
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17638
$as_echo "no" >&6; }
 
17639
    ;;
 
17640
  esac
 
17641
fi
 
17642
 
 
17643
 
 
17644
 
 
17645
 
 
17646
 
 
17647
 
 
17648
 
 
17649
 
 
17650
 
 
17651
 
 
17652
 
 
17653
 
 
17654
  # Report which library types will actually be built
 
17655
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
17656
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
17657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
17658
$as_echo "$can_build_shared" >&6; }
 
17659
 
 
17660
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
17661
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
17662
  test "$can_build_shared" = "no" && enable_shared=no
 
17663
 
 
17664
  # On AIX, shared libraries and static libraries use the same namespace, and
 
17665
  # are all built from PIC.
 
17666
  case $host_os in
 
17667
  aix3*)
 
17668
    test "$enable_shared" = yes && enable_static=no
 
17669
    if test -n "$RANLIB"; then
 
17670
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
17671
      postinstall_cmds='$RANLIB $lib'
 
17672
    fi
 
17673
    ;;
 
17674
 
 
17675
  aix[4-9]*)
 
17676
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
17677
      test "$enable_shared" = yes && enable_static=no
 
17678
    fi
 
17679
    ;;
 
17680
  esac
 
17681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
17682
$as_echo "$enable_shared" >&6; }
 
17683
 
 
17684
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
17685
$as_echo_n "checking whether to build static libraries... " >&6; }
 
17686
  # Make sure either enable_shared or enable_static is yes.
 
17687
  test "$enable_shared" = yes || enable_static=yes
 
17688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
17689
$as_echo "$enable_static" >&6; }
 
17690
 
 
17691
 
 
17692
 
 
17693
 
 
17694
fi
 
17695
ac_ext=c
 
17696
ac_cpp='$CPP $CPPFLAGS'
 
17697
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17698
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17699
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17700
 
 
17701
CC="$lt_save_CC"
 
17702
 
 
17703
 
 
17704
 
 
17705
 
 
17706
 
 
17707
 
 
17708
 
 
17709
 
 
17710
 
 
17711
 
 
17712
 
 
17713
 
 
17714
 
 
17715
 
 
17716
 
 
17717
        ac_config_commands="$ac_config_commands libtool"
 
17718
 
 
17719
 
 
17720
 
 
17721
 
 
17722
# Only expand once:
 
17723
 
 
17724
 
 
17725
 
 
17726
 
 
17727
 
 
17728
# Define a configure option for an alternate module directory
 
17729
# Check whether --enable-dga was given.
 
17730
if test "${enable_dga+set}" = set; then :
 
17731
  enableval=$enable_dga; DGA=$enableval
 
17732
else
 
17733
  DGA=yes
 
17734
fi
 
17735
 
 
17736
 
 
17737
# Check whether --with-xorg-module-dir was given.
 
17738
if test "${with_xorg_module_dir+set}" = set; then :
 
17739
  withval=$with_xorg_module_dir;  moduledir="$withval"
 
17740
else
 
17741
   moduledir="$libdir/xorg/modules"
 
17742
fi
 
17743
 
 
17744
 
 
17745
 
 
17746
 
 
17747
# Store the list of server defined optional extensions in REQUIRED_MODULES
 
17748
 
 
17749
 
 
17750
        SAVE_CFLAGS="$CFLAGS"
 
17751
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
 
17752
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17753
/* end confdefs.h.  */
 
17754
 
 
17755
#include "xorg-server.h"
 
17756
#if !defined RANDR
 
17757
#error RANDR not defined
 
17758
#endif
 
17759
 
 
17760
int
 
17761
main ()
 
17762
{
 
17763
 
 
17764
  ;
 
17765
  return 0;
 
17766
}
 
17767
_ACEOF
 
17768
if ac_fn_c_try_compile "$LINENO"; then :
 
17769
  _EXT_CHECK=yes
 
17770
else
 
17771
  _EXT_CHECK=no
 
17772
fi
 
17773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17774
        CFLAGS="$SAVE_CFLAGS"
 
17775
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
 
17776
$as_echo_n "checking if RANDR is defined... " >&6; }
 
17777
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
17778
$as_echo "$_EXT_CHECK" >&6; }
 
17779
        if test "$_EXT_CHECK" != no; then
 
17780
                REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
 
17781
        fi
 
17782
 
 
17783
 
 
17784
 
 
17785
        SAVE_CFLAGS="$CFLAGS"
 
17786
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
 
17787
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17788
/* end confdefs.h.  */
 
17789
 
 
17790
#include "xorg-server.h"
 
17791
#if !defined RENDER
 
17792
#error RENDER not defined
 
17793
#endif
 
17794
 
 
17795
int
 
17796
main ()
 
17797
{
 
17798
 
 
17799
  ;
 
17800
  return 0;
 
17801
}
 
17802
_ACEOF
 
17803
if ac_fn_c_try_compile "$LINENO"; then :
 
17804
  _EXT_CHECK=yes
 
17805
else
 
17806
  _EXT_CHECK=no
 
17807
fi
 
17808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17809
        CFLAGS="$SAVE_CFLAGS"
 
17810
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
 
17811
$as_echo_n "checking if RENDER is defined... " >&6; }
 
17812
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
17813
$as_echo "$_EXT_CHECK" >&6; }
 
17814
        if test "$_EXT_CHECK" != no; then
 
17815
                REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
 
17816
        fi
 
17817
 
 
17818
 
 
17819
 
 
17820
        SAVE_CFLAGS="$CFLAGS"
 
17821
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
 
17822
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17823
/* end confdefs.h.  */
 
17824
 
 
17825
#include "xorg-server.h"
 
17826
#if !defined XV
 
17827
#error XV not defined
 
17828
#endif
 
17829
 
 
17830
int
 
17831
main ()
 
17832
{
 
17833
 
 
17834
  ;
 
17835
  return 0;
 
17836
}
 
17837
_ACEOF
 
17838
if ac_fn_c_try_compile "$LINENO"; then :
 
17839
  _EXT_CHECK=yes
 
17840
else
 
17841
  _EXT_CHECK=no
 
17842
fi
 
17843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17844
        CFLAGS="$SAVE_CFLAGS"
 
17845
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
 
17846
$as_echo_n "checking if XV is defined... " >&6; }
 
17847
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
17848
$as_echo "$_EXT_CHECK" >&6; }
 
17849
        if test "$_EXT_CHECK" != no; then
 
17850
                REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
 
17851
        fi
 
17852
 
 
17853
 
 
17854
if test "x$DGA" = xyes; then
 
17855
 
 
17856
 
 
17857
        SAVE_CFLAGS="$CFLAGS"
 
17858
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
 
17859
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17860
/* end confdefs.h.  */
 
17861
 
 
17862
#include "xorg-server.h"
 
17863
#if !defined XFreeXDGA
 
17864
#error XFreeXDGA not defined
 
17865
#endif
 
17866
 
 
17867
int
 
17868
main ()
 
17869
{
 
17870
 
 
17871
  ;
 
17872
  return 0;
 
17873
}
 
17874
_ACEOF
 
17875
if ac_fn_c_try_compile "$LINENO"; then :
 
17876
  _EXT_CHECK=yes
 
17877
else
 
17878
  _EXT_CHECK=no
 
17879
fi
 
17880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17881
        CFLAGS="$SAVE_CFLAGS"
 
17882
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
 
17883
$as_echo_n "checking if XFreeXDGA is defined... " >&6; }
 
17884
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
17885
$as_echo "$_EXT_CHECK" >&6; }
 
17886
        if test "$_EXT_CHECK" != no; then
 
17887
                REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
 
17888
        fi
 
17889
 
 
17890
 
 
17891
$as_echo "#define USE_DGA 1" >>confdefs.h
 
17892
 
 
17893
fi
 
17894
 
 
17895
 if test "x$DGA" = xyes; then
 
17896
  DGA_TRUE=
 
17897
  DGA_FALSE='#'
 
17898
else
 
17899
  DGA_TRUE='#'
 
17900
  DGA_FALSE=
 
17901
fi
 
17902
 
 
17903
 
 
17904
# Obtain compiler/linker options for the driver dependencies
 
17905
 
 
17906
pkg_failed=no
 
17907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
 
17908
$as_echo_n "checking for XORG... " >&6; }
 
17909
 
 
17910
if test -n "$XORG_CFLAGS"; then
 
17911
    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
 
17912
 elif test -n "$PKG_CONFIG"; then
 
17913
    if test -n "$PKG_CONFIG" && \
 
17914
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
 
17915
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
 
17916
  ac_status=$?
 
17917
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17918
  test $ac_status = 0; }; then
 
17919
  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
 
17920
                      test "x$?" != "x0" && pkg_failed=yes
 
17921
else
 
17922
  pkg_failed=yes
 
17923
fi
 
17924
 else
 
17925
    pkg_failed=untried
 
17926
fi
 
17927
if test -n "$XORG_LIBS"; then
 
17928
    pkg_cv_XORG_LIBS="$XORG_LIBS"
 
17929
 elif test -n "$PKG_CONFIG"; then
 
17930
    if test -n "$PKG_CONFIG" && \
 
17931
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
 
17932
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
 
17933
  ac_status=$?
 
17934
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17935
  test $ac_status = 0; }; then
 
17936
  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
 
17937
                      test "x$?" != "x0" && pkg_failed=yes
 
17938
else
 
17939
  pkg_failed=yes
 
17940
fi
 
17941
 else
 
17942
    pkg_failed=untried
 
17943
fi
 
17944
 
 
17945
 
 
17946
 
 
17947
if test $pkg_failed = yes; then
 
17948
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17949
$as_echo "no" >&6; }
 
17950
 
 
17951
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17952
        _pkg_short_errors_supported=yes
 
17953
else
 
17954
        _pkg_short_errors_supported=no
 
17955
fi
 
17956
        if test $_pkg_short_errors_supported = yes; then
 
17957
                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
 
17958
        else
 
17959
                XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
 
17960
        fi
 
17961
        # Put the nasty error message in config.log where it belongs
 
17962
        echo "$XORG_PKG_ERRORS" >&5
 
17963
 
 
17964
        as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
 
17965
 
 
17966
$XORG_PKG_ERRORS
 
17967
 
 
17968
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17969
installed software in a non-standard prefix.
 
17970
 
 
17971
Alternatively, you may set the environment variables XORG_CFLAGS
 
17972
and XORG_LIBS to avoid the need to call pkg-config.
 
17973
See the pkg-config man page for more details." "$LINENO" 5
 
17974
elif test $pkg_failed = untried; then
 
17975
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17976
$as_echo "no" >&6; }
 
17977
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17979
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
17980
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17981
path to pkg-config.
 
17982
 
 
17983
Alternatively, you may set the environment variables XORG_CFLAGS
 
17984
and XORG_LIBS to avoid the need to call pkg-config.
 
17985
See the pkg-config man page for more details.
 
17986
 
 
17987
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17988
See \`config.log' for more details" "$LINENO" 5; }
 
17989
else
 
17990
        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
 
17991
        XORG_LIBS=$pkg_cv_XORG_LIBS
 
17992
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17993
$as_echo "yes" >&6; }
 
17994
 
 
17995
fi
 
17996
 
 
17997
# Checks for libraries.
 
17998
 
 
17999
 
 
18000
DRIVER_NAME=dummy
 
18001
 
 
18002
 
 
18003
ac_config_files="$ac_config_files Makefile src/Makefile"
 
18004
 
 
18005
cat >confcache <<\_ACEOF
 
18006
# This file is a shell script that caches the results of configure
 
18007
# tests run on this system so they can be shared between configure
 
18008
# scripts and configure runs, see configure's option --config-cache.
 
18009
# It is not useful on other systems.  If it contains results you don't
 
18010
# want to keep, you may remove or edit it.
 
18011
#
 
18012
# config.status only pays attention to the cache file if you give it
 
18013
# the --recheck option to rerun configure.
 
18014
#
 
18015
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18016
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18017
# following values.
 
18018
 
 
18019
_ACEOF
 
18020
 
 
18021
# The following way of writing the cache mishandles newlines in values,
 
18022
# but we know of no workaround that is simple, portable, and efficient.
 
18023
# So, we kill variables containing newlines.
 
18024
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18025
# and sets the high bit in the cache file unless we assign to the vars.
 
18026
(
 
18027
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
18028
    eval ac_val=\$$ac_var
 
18029
    case $ac_val in #(
 
18030
    *${as_nl}*)
 
18031
      case $ac_var in #(
 
18032
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
18033
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
18034
      esac
 
18035
      case $ac_var in #(
 
18036
      _ | IFS | as_nl) ;; #(
 
18037
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
18038
      *) { eval $ac_var=; unset $ac_var;} ;;
 
18039
      esac ;;
 
18040
    esac
 
18041
  done
 
18042
 
 
18043
  (set) 2>&1 |
 
18044
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
18045
    *${as_nl}ac_space=\ *)
 
18046
      # `set' does not quote correctly, so add quotes: double-quote
 
18047
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
18048
      sed -n \
 
18049
        "s/'/'\\\\''/g;
 
18050
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18051
      ;; #(
 
18052
    *)
 
18053
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18054
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
18055
      ;;
 
18056
    esac |
 
18057
    sort
 
18058
) |
 
18059
  sed '
 
18060
     /^ac_cv_env_/b end
 
18061
     t clear
 
18062
     :clear
 
18063
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18064
     t end
 
18065
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18066
     :end' >>confcache
 
18067
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
18068
  if test -w "$cache_file"; then
 
18069
    if test "x$cache_file" != "x/dev/null"; then
 
18070
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
18071
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
18072
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
18073
        cat confcache >"$cache_file"
 
18074
      else
 
18075
        case $cache_file in #(
 
18076
        */* | ?:*)
 
18077
          mv -f confcache "$cache_file"$$ &&
 
18078
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
18079
        *)
 
18080
          mv -f confcache "$cache_file" ;;
 
18081
        esac
 
18082
      fi
 
18083
    fi
 
18084
  else
 
18085
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
18086
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
18087
  fi
 
18088
fi
 
18089
rm -f confcache
 
18090
 
 
18091
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18092
# Let make expand exec_prefix.
 
18093
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18094
 
 
18095
DEFS=-DHAVE_CONFIG_H
 
18096
 
 
18097
ac_libobjs=
 
18098
ac_ltlibobjs=
 
18099
U=
 
18100
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18101
  # 1. Remove the extension, and $U if already installed.
 
18102
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
18103
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
18104
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
18105
  #    will be set to the directory where LIBOBJS objects are built.
 
18106
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18107
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
18108
done
 
18109
LIBOBJS=$ac_libobjs
 
18110
 
 
18111
LTLIBOBJS=$ac_ltlibobjs
 
18112
 
 
18113
 
 
18114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
18115
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
18116
   if test -n "$am_sleep_pid"; then
 
18117
     # Hide warnings about reused PIDs.
 
18118
     wait $am_sleep_pid 2>/dev/null
 
18119
   fi
 
18120
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
18121
$as_echo "done" >&6; }
 
18122
 if test -n "$EXEEXT"; then
 
18123
  am__EXEEXT_TRUE=
 
18124
  am__EXEEXT_FALSE='#'
 
18125
else
 
18126
  am__EXEEXT_TRUE='#'
 
18127
  am__EXEEXT_FALSE=
 
18128
fi
 
18129
 
 
18130
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
18131
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
18132
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18133
fi
 
18134
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18135
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
18136
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18137
fi
 
18138
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18139
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
18140
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18141
fi
 
18142
if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
 
18143
  as_fn_error $? "conditional \"DGA\" was never defined.
 
18144
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18145
fi
 
18146
 
 
18147
: "${CONFIG_STATUS=./config.status}"
 
18148
ac_write_fail=0
 
18149
ac_clean_files_save=$ac_clean_files
 
18150
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18151
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
18152
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18153
as_write_fail=0
 
18154
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
18155
#! $SHELL
 
18156
# Generated by $as_me.
 
18157
# Run this file to recreate the current configuration.
 
18158
# Compiler output produced by configure, useful for debugging
 
18159
# configure, is in config.log if it exists.
 
18160
 
 
18161
debug=false
 
18162
ac_cs_recheck=false
 
18163
ac_cs_silent=false
 
18164
 
 
18165
SHELL=\${CONFIG_SHELL-$SHELL}
 
18166
export SHELL
 
18167
_ASEOF
 
18168
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
18169
## -------------------- ##
 
18170
## M4sh Initialization. ##
 
18171
## -------------------- ##
 
18172
 
 
18173
# Be more Bourne compatible
 
18174
DUALCASE=1; export DUALCASE # for MKS sh
 
18175
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
18176
  emulate sh
 
18177
  NULLCMD=:
 
18178
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
18179
  # is contrary to our usage.  Disable this feature.
 
18180
  alias -g '${1+"$@"}'='"$@"'
 
18181
  setopt NO_GLOB_SUBST
 
18182
else
 
18183
  case `(set -o) 2>/dev/null` in #(
 
18184
  *posix*) :
 
18185
    set -o posix ;; #(
 
18186
  *) :
 
18187
     ;;
 
18188
esac
 
18189
fi
 
18190
 
 
18191
 
 
18192
as_nl='
 
18193
'
 
18194
export as_nl
 
18195
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
18196
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
18197
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
18198
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
18199
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
18200
# but without wasting forks for bash or zsh.
 
18201
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
18202
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
18203
  as_echo='print -r --'
 
18204
  as_echo_n='print -rn --'
 
18205
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
18206
  as_echo='printf %s\n'
 
18207
  as_echo_n='printf %s'
 
18208
else
 
18209
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
18210
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
18211
    as_echo_n='/usr/ucb/echo -n'
 
18212
  else
 
18213
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
18214
    as_echo_n_body='eval
 
18215
      arg=$1;
 
18216
      case $arg in #(
 
18217
      *"$as_nl"*)
 
18218
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
18219
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
18220
      esac;
 
18221
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
18222
    '
 
18223
    export as_echo_n_body
 
18224
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
18225
  fi
 
18226
  export as_echo_body
 
18227
  as_echo='sh -c $as_echo_body as_echo'
 
18228
fi
 
18229
 
 
18230
# The user is always right.
 
18231
if test "${PATH_SEPARATOR+set}" != set; then
 
18232
  PATH_SEPARATOR=:
 
18233
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
18234
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
18235
      PATH_SEPARATOR=';'
 
18236
  }
 
18237
fi
 
18238
 
 
18239
 
 
18240
# IFS
 
18241
# We need space, tab and new line, in precisely that order.  Quoting is
 
18242
# there to prevent editors from complaining about space-tab.
 
18243
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
18244
# splitting by setting IFS to empty value.)
 
18245
IFS=" ""        $as_nl"
 
18246
 
 
18247
# Find who we are.  Look in the path if we contain no directory separator.
 
18248
as_myself=
 
18249
case $0 in #((
 
18250
  *[\\/]* ) as_myself=$0 ;;
 
18251
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18252
for as_dir in $PATH
 
18253
do
 
18254
  IFS=$as_save_IFS
 
18255
  test -z "$as_dir" && as_dir=.
 
18256
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18257
  done
 
18258
IFS=$as_save_IFS
 
18259
 
 
18260
     ;;
 
18261
esac
 
18262
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
18263
# in which case we are not to be found in the path.
 
18264
if test "x$as_myself" = x; then
 
18265
  as_myself=$0
 
18266
fi
 
18267
if test ! -f "$as_myself"; then
 
18268
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
18269
  exit 1
 
18270
fi
 
18271
 
 
18272
# Unset variables that we do not need and which cause bugs (e.g. in
 
18273
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
18274
# suppresses any "Segmentation fault" message there.  '((' could
 
18275
# trigger a bug in pdksh 5.2.14.
 
18276
for as_var in BASH_ENV ENV MAIL MAILPATH
 
18277
do eval test x\${$as_var+set} = xset \
 
18278
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
18279
done
 
18280
PS1='$ '
 
18281
PS2='> '
 
18282
PS4='+ '
 
18283
 
 
18284
# NLS nuisances.
 
18285
LC_ALL=C
 
18286
export LC_ALL
 
18287
LANGUAGE=C
 
18288
export LANGUAGE
 
18289
 
 
18290
# CDPATH.
 
18291
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18292
 
 
18293
 
 
18294
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
18295
# ----------------------------------------
 
18296
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
18297
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
18298
# script with STATUS, using 1 if that was 0.
 
18299
as_fn_error ()
 
18300
{
 
18301
  as_status=$1; test $as_status -eq 0 && as_status=1
 
18302
  if test "$4"; then
 
18303
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
18304
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
18305
  fi
 
18306
  $as_echo "$as_me: error: $2" >&2
 
18307
  as_fn_exit $as_status
 
18308
} # as_fn_error
 
18309
 
 
18310
 
 
18311
# as_fn_set_status STATUS
 
18312
# -----------------------
 
18313
# Set $? to STATUS, without forking.
 
18314
as_fn_set_status ()
 
18315
{
 
18316
  return $1
 
18317
} # as_fn_set_status
 
18318
 
 
18319
# as_fn_exit STATUS
 
18320
# -----------------
 
18321
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
18322
as_fn_exit ()
 
18323
{
 
18324
  set +e
 
18325
  as_fn_set_status $1
 
18326
  exit $1
 
18327
} # as_fn_exit
 
18328
 
 
18329
# as_fn_unset VAR
 
18330
# ---------------
 
18331
# Portably unset VAR.
 
18332
as_fn_unset ()
 
18333
{
 
18334
  { eval $1=; unset $1;}
 
18335
}
 
18336
as_unset=as_fn_unset
 
18337
# as_fn_append VAR VALUE
 
18338
# ----------------------
 
18339
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
18340
# advantage of any shell optimizations that allow amortized linear growth over
 
18341
# repeated appends, instead of the typical quadratic growth present in naive
 
18342
# implementations.
 
18343
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
18344
  eval 'as_fn_append ()
 
18345
  {
 
18346
    eval $1+=\$2
 
18347
  }'
 
18348
else
 
18349
  as_fn_append ()
 
18350
  {
 
18351
    eval $1=\$$1\$2
 
18352
  }
 
18353
fi # as_fn_append
 
18354
 
 
18355
# as_fn_arith ARG...
 
18356
# ------------------
 
18357
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
18358
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
18359
# must be portable across $(()) and expr.
 
18360
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
18361
  eval 'as_fn_arith ()
 
18362
  {
 
18363
    as_val=$(( $* ))
 
18364
  }'
 
18365
else
 
18366
  as_fn_arith ()
 
18367
  {
 
18368
    as_val=`expr "$@" || test $? -eq 1`
 
18369
  }
 
18370
fi # as_fn_arith
 
18371
 
 
18372
 
 
18373
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
18374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
18375
  as_expr=expr
 
18376
else
 
18377
  as_expr=false
 
18378
fi
 
18379
 
 
18380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
18381
  as_basename=basename
 
18382
else
 
18383
  as_basename=false
 
18384
fi
 
18385
 
 
18386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
18387
  as_dirname=dirname
 
18388
else
 
18389
  as_dirname=false
 
18390
fi
 
18391
 
 
18392
as_me=`$as_basename -- "$0" ||
 
18393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
18394
         X"$0" : 'X\(//\)$' \| \
 
18395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
18396
$as_echo X/"$0" |
 
18397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
18398
            s//\1/
 
18399
            q
 
18400
          }
 
18401
          /^X\/\(\/\/\)$/{
 
18402
            s//\1/
 
18403
            q
 
18404
          }
 
18405
          /^X\/\(\/\).*/{
 
18406
            s//\1/
 
18407
            q
 
18408
          }
 
18409
          s/.*/./; q'`
 
18410
 
 
18411
# Avoid depending upon Character Ranges.
 
18412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
18413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
18414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
18415
as_cr_digits='0123456789'
 
18416
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
18417
 
 
18418
ECHO_C= ECHO_N= ECHO_T=
 
18419
case `echo -n x` in #(((((
 
18420
-n*)
 
18421
  case `echo 'xy\c'` in
 
18422
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
18423
  xy)  ECHO_C='\c';;
 
18424
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
18425
       ECHO_T=' ';;
 
18426
  esac;;
 
18427
*)
 
18428
  ECHO_N='-n';;
 
18429
esac
 
18430
 
 
18431
rm -f conf$$ conf$$.exe conf$$.file
 
18432
if test -d conf$$.dir; then
 
18433
  rm -f conf$$.dir/conf$$.file
 
18434
else
 
18435
  rm -f conf$$.dir
 
18436
  mkdir conf$$.dir 2>/dev/null
 
18437
fi
 
18438
if (echo >conf$$.file) 2>/dev/null; then
 
18439
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
18440
    as_ln_s='ln -s'
 
18441
    # ... but there are two gotchas:
 
18442
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
18443
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
18444
    # In both cases, we have to default to `cp -pR'.
 
18445
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
18446
      as_ln_s='cp -pR'
 
18447
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
18448
    as_ln_s=ln
 
18449
  else
 
18450
    as_ln_s='cp -pR'
 
18451
  fi
 
18452
else
 
18453
  as_ln_s='cp -pR'
 
18454
fi
 
18455
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
18456
rmdir conf$$.dir 2>/dev/null
 
18457
 
 
18458
 
 
18459
# as_fn_mkdir_p
 
18460
# -------------
 
18461
# Create "$as_dir" as a directory, including parents if necessary.
 
18462
as_fn_mkdir_p ()
 
18463
{
 
18464
 
 
18465
  case $as_dir in #(
 
18466
  -*) as_dir=./$as_dir;;
 
18467
  esac
 
18468
  test -d "$as_dir" || eval $as_mkdir_p || {
 
18469
    as_dirs=
 
18470
    while :; do
 
18471
      case $as_dir in #(
 
18472
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
18473
      *) as_qdir=$as_dir;;
 
18474
      esac
 
18475
      as_dirs="'$as_qdir' $as_dirs"
 
18476
      as_dir=`$as_dirname -- "$as_dir" ||
 
18477
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
18478
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
18479
         X"$as_dir" : 'X\(//\)$' \| \
 
18480
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
18481
$as_echo X"$as_dir" |
 
18482
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
18483
            s//\1/
 
18484
            q
 
18485
          }
 
18486
          /^X\(\/\/\)[^/].*/{
 
18487
            s//\1/
 
18488
            q
 
18489
          }
 
18490
          /^X\(\/\/\)$/{
 
18491
            s//\1/
 
18492
            q
 
18493
          }
 
18494
          /^X\(\/\).*/{
 
18495
            s//\1/
 
18496
            q
 
18497
          }
 
18498
          s/.*/./; q'`
 
18499
      test -d "$as_dir" && break
 
18500
    done
 
18501
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
18502
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
18503
 
 
18504
 
 
18505
} # as_fn_mkdir_p
 
18506
if mkdir -p . 2>/dev/null; then
 
18507
  as_mkdir_p='mkdir -p "$as_dir"'
 
18508
else
 
18509
  test -d ./-p && rmdir ./-p
 
18510
  as_mkdir_p=false
 
18511
fi
 
18512
 
 
18513
 
 
18514
# as_fn_executable_p FILE
 
18515
# -----------------------
 
18516
# Test if FILE is an executable regular file.
 
18517
as_fn_executable_p ()
 
18518
{
 
18519
  test -f "$1" && test -x "$1"
 
18520
} # as_fn_executable_p
 
18521
as_test_x='test -x'
 
18522
as_executable_p=as_fn_executable_p
 
18523
 
 
18524
# Sed expression to map a string onto a valid CPP name.
 
18525
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
18526
 
 
18527
# Sed expression to map a string onto a valid variable name.
 
18528
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
18529
 
 
18530
 
 
18531
exec 6>&1
 
18532
## ----------------------------------- ##
 
18533
## Main body of $CONFIG_STATUS script. ##
 
18534
## ----------------------------------- ##
 
18535
_ASEOF
 
18536
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
18537
 
 
18538
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
18539
# Save the log message, to keep $0 and so on meaningful, and to
 
18540
# report actual input values of CONFIG_FILES etc. instead of their
 
18541
# values after options handling.
 
18542
ac_log="
 
18543
This file was extended by xf86-video-dummy $as_me 0.3.7, which was
 
18544
generated by GNU Autoconf 2.69.  Invocation command line was
 
18545
 
 
18546
  CONFIG_FILES    = $CONFIG_FILES
 
18547
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
18548
  CONFIG_LINKS    = $CONFIG_LINKS
 
18549
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
18550
  $ $0 $@
 
18551
 
 
18552
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
18553
"
 
18554
 
 
18555
_ACEOF
 
18556
 
 
18557
case $ac_config_files in *"
 
18558
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
18559
esac
 
18560
 
 
18561
case $ac_config_headers in *"
 
18562
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
18563
esac
 
18564
 
 
18565
 
 
18566
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18567
# Files that config.status was made for.
 
18568
config_files="$ac_config_files"
 
18569
config_headers="$ac_config_headers"
 
18570
config_commands="$ac_config_commands"
 
18571
 
 
18572
_ACEOF
 
18573
 
 
18574
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
18575
ac_cs_usage="\
 
18576
\`$as_me' instantiates files and other configuration actions
 
18577
from templates according to the current configuration.  Unless the files
 
18578
and actions are specified as TAGs, all are instantiated by default.
 
18579
 
 
18580
Usage: $0 [OPTION]... [TAG]...
 
18581
 
 
18582
  -h, --help       print this help, then exit
 
18583
  -V, --version    print version number and configuration settings, then exit
 
18584
      --config     print configuration, then exit
 
18585
  -q, --quiet, --silent
 
18586
                   do not print progress messages
 
18587
  -d, --debug      don't remove temporary files
 
18588
      --recheck    update $as_me by reconfiguring in the same conditions
 
18589
      --file=FILE[:TEMPLATE]
 
18590
                   instantiate the configuration file FILE
 
18591
      --header=FILE[:TEMPLATE]
 
18592
                   instantiate the configuration header FILE
 
18593
 
 
18594
Configuration files:
 
18595
$config_files
 
18596
 
 
18597
Configuration headers:
 
18598
$config_headers
 
18599
 
 
18600
Configuration commands:
 
18601
$config_commands
 
18602
 
 
18603
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
 
18604
 
 
18605
_ACEOF
 
18606
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18607
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
18608
ac_cs_version="\\
 
18609
xf86-video-dummy config.status 0.3.7
 
18610
configured by $0, generated by GNU Autoconf 2.69,
 
18611
  with options \\"\$ac_cs_config\\"
 
18612
 
 
18613
Copyright (C) 2012 Free Software Foundation, Inc.
 
18614
This config.status script is free software; the Free Software Foundation
 
18615
gives unlimited permission to copy, distribute and modify it."
 
18616
 
 
18617
ac_pwd='$ac_pwd'
 
18618
srcdir='$srcdir'
 
18619
INSTALL='$INSTALL'
 
18620
MKDIR_P='$MKDIR_P'
 
18621
AWK='$AWK'
 
18622
test -n "\$AWK" || AWK=awk
 
18623
_ACEOF
 
18624
 
 
18625
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
18626
# The default lists apply if the user does not specify any file.
 
18627
ac_need_defaults=:
 
18628
while test $# != 0
 
18629
do
 
18630
  case $1 in
 
18631
  --*=?*)
 
18632
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
18633
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
18634
    ac_shift=:
 
18635
    ;;
 
18636
  --*=)
 
18637
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
18638
    ac_optarg=
 
18639
    ac_shift=:
 
18640
    ;;
 
18641
  *)
 
18642
    ac_option=$1
 
18643
    ac_optarg=$2
 
18644
    ac_shift=shift
 
18645
    ;;
 
18646
  esac
 
18647
 
 
18648
  case $ac_option in
 
18649
  # Handling of the options.
 
18650
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
18651
    ac_cs_recheck=: ;;
 
18652
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
18653
    $as_echo "$ac_cs_version"; exit ;;
 
18654
  --config | --confi | --conf | --con | --co | --c )
 
18655
    $as_echo "$ac_cs_config"; exit ;;
 
18656
  --debug | --debu | --deb | --de | --d | -d )
 
18657
    debug=: ;;
 
18658
  --file | --fil | --fi | --f )
 
18659
    $ac_shift
 
18660
    case $ac_optarg in
 
18661
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
18662
    '') as_fn_error $? "missing file argument" ;;
 
18663
    esac
 
18664
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
18665
    ac_need_defaults=false;;
 
18666
  --header | --heade | --head | --hea )
 
18667
    $ac_shift
 
18668
    case $ac_optarg in
 
18669
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
18670
    esac
 
18671
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
18672
    ac_need_defaults=false;;
 
18673
  --he | --h)
 
18674
    # Conflict between --help and --header
 
18675
    as_fn_error $? "ambiguous option: \`$1'
 
18676
Try \`$0 --help' for more information.";;
 
18677
  --help | --hel | -h )
 
18678
    $as_echo "$ac_cs_usage"; exit ;;
 
18679
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
18680
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
18681
    ac_cs_silent=: ;;
 
18682
 
 
18683
  # This is an error.
 
18684
  -*) as_fn_error $? "unrecognized option: \`$1'
 
18685
Try \`$0 --help' for more information." ;;
 
18686
 
 
18687
  *) as_fn_append ac_config_targets " $1"
 
18688
     ac_need_defaults=false ;;
 
18689
 
 
18690
  esac
 
18691
  shift
 
18692
done
 
18693
 
 
18694
ac_configure_extra_args=
 
18695
 
 
18696
if $ac_cs_silent; then
 
18697
  exec 6>/dev/null
 
18698
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
18699
fi
 
18700
 
 
18701
_ACEOF
 
18702
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18703
if \$ac_cs_recheck; then
 
18704
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
18705
  shift
 
18706
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
18707
  CONFIG_SHELL='$SHELL'
 
18708
  export CONFIG_SHELL
 
18709
  exec "\$@"
 
18710
fi
 
18711
 
 
18712
_ACEOF
 
18713
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
18714
exec 5>>config.log
 
18715
{
 
18716
  echo
 
18717
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
18718
## Running $as_me. ##
 
18719
_ASBOX
 
18720
  $as_echo "$ac_log"
 
18721
} >&5
 
18722
 
 
18723
_ACEOF
 
18724
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18725
#
 
18726
# INIT-COMMANDS
 
18727
#
 
18728
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
18729
 
 
18730
 
 
18731
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
18732
# if CDPATH is set.
 
18733
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18734
 
 
18735
sed_quote_subst='$sed_quote_subst'
 
18736
double_quote_subst='$double_quote_subst'
 
18737
delay_variable_subst='$delay_variable_subst'
 
18738
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
18739
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
18740
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
18741
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
18742
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
18743
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
18744
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
18745
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
18746
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
18747
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
18748
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
18749
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
18750
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
18751
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
18752
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
18753
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
18754
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
18755
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
18756
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
18757
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
18758
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
18759
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
18760
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
18761
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
18762
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
18763
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
18764
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
18765
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
18766
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
18767
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
18768
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
18769
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
18770
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
18771
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
18772
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
18773
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
18774
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
18775
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
18776
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
18777
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
18778
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
18779
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
18780
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
18781
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
18782
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
18783
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
18784
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
18785
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
18786
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
18787
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
18788
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
18789
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
18790
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
18791
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
18792
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
18793
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
18794
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
18795
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
18796
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
18797
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
18798
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
18799
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
18800
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
18801
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
18802
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
18803
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
18804
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
18805
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
18806
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
18807
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
18808
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
18809
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
18810
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
18811
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
18812
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
18813
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
18814
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
18815
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
18816
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
18817
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
18818
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
18819
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
18820
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
18821
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
18822
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
18823
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
18824
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
18825
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
18826
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
18827
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
18828
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
18829
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
18830
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
18831
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
18832
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
18833
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
18834
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
18835
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
18836
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
18837
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
18838
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
18839
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
18840
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
18841
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
18842
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
18843
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
18844
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
18845
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
18846
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
18847
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
18848
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
18849
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
18850
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
18851
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
18852
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
18853
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
18854
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
18855
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
18856
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
18857
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
18858
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
18859
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
18860
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
18861
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
18862
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
18863
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
18864
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
18865
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
18866
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
18867
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
18868
 
 
18869
LTCC='$LTCC'
 
18870
LTCFLAGS='$LTCFLAGS'
 
18871
compiler='$compiler_DEFAULT'
 
18872
 
 
18873
# A function that is used when there is no print builtin or printf.
 
18874
func_fallback_echo ()
 
18875
{
 
18876
  eval 'cat <<_LTECHO_EOF
 
18877
\$1
 
18878
_LTECHO_EOF'
 
18879
}
 
18880
 
 
18881
# Quote evaled strings.
 
18882
for var in SHELL \
 
18883
ECHO \
 
18884
PATH_SEPARATOR \
 
18885
SED \
 
18886
GREP \
 
18887
EGREP \
 
18888
FGREP \
 
18889
LD \
 
18890
NM \
 
18891
LN_S \
 
18892
lt_SP2NL \
 
18893
lt_NL2SP \
 
18894
reload_flag \
 
18895
OBJDUMP \
 
18896
deplibs_check_method \
 
18897
file_magic_cmd \
 
18898
file_magic_glob \
 
18899
want_nocaseglob \
 
18900
DLLTOOL \
 
18901
sharedlib_from_linklib_cmd \
 
18902
AR \
 
18903
AR_FLAGS \
 
18904
archiver_list_spec \
 
18905
STRIP \
 
18906
RANLIB \
 
18907
CC \
 
18908
CFLAGS \
 
18909
compiler \
 
18910
lt_cv_sys_global_symbol_pipe \
 
18911
lt_cv_sys_global_symbol_to_cdecl \
 
18912
lt_cv_sys_global_symbol_to_c_name_address \
 
18913
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
18914
nm_file_list_spec \
 
18915
lt_prog_compiler_no_builtin_flag \
 
18916
lt_prog_compiler_pic \
 
18917
lt_prog_compiler_wl \
 
18918
lt_prog_compiler_static \
 
18919
lt_cv_prog_compiler_c_o \
 
18920
need_locks \
 
18921
MANIFEST_TOOL \
 
18922
DSYMUTIL \
 
18923
NMEDIT \
 
18924
LIPO \
 
18925
OTOOL \
 
18926
OTOOL64 \
 
18927
shrext_cmds \
 
18928
export_dynamic_flag_spec \
 
18929
whole_archive_flag_spec \
 
18930
compiler_needs_object \
 
18931
with_gnu_ld \
 
18932
allow_undefined_flag \
 
18933
no_undefined_flag \
 
18934
hardcode_libdir_flag_spec \
 
18935
hardcode_libdir_separator \
 
18936
exclude_expsyms \
 
18937
include_expsyms \
 
18938
file_list_spec \
 
18939
variables_saved_for_relink \
 
18940
libname_spec \
 
18941
library_names_spec \
 
18942
soname_spec \
 
18943
install_override_mode \
 
18944
finish_eval \
 
18945
old_striplib \
 
18946
striplib; do
 
18947
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
18948
    *[\\\\\\\`\\"\\\$]*)
 
18949
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
18950
      ;;
 
18951
    *)
 
18952
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
18953
      ;;
 
18954
    esac
 
18955
done
 
18956
 
 
18957
# Double-quote double-evaled strings.
 
18958
for var in reload_cmds \
 
18959
old_postinstall_cmds \
 
18960
old_postuninstall_cmds \
 
18961
old_archive_cmds \
 
18962
extract_expsyms_cmds \
 
18963
old_archive_from_new_cmds \
 
18964
old_archive_from_expsyms_cmds \
 
18965
archive_cmds \
 
18966
archive_expsym_cmds \
 
18967
module_cmds \
 
18968
module_expsym_cmds \
 
18969
export_symbols_cmds \
 
18970
prelink_cmds \
 
18971
postlink_cmds \
 
18972
postinstall_cmds \
 
18973
postuninstall_cmds \
 
18974
finish_cmds \
 
18975
sys_lib_search_path_spec \
 
18976
sys_lib_dlsearch_path_spec; do
 
18977
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
18978
    *[\\\\\\\`\\"\\\$]*)
 
18979
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
18980
      ;;
 
18981
    *)
 
18982
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
18983
      ;;
 
18984
    esac
 
18985
done
 
18986
 
 
18987
ac_aux_dir='$ac_aux_dir'
 
18988
xsi_shell='$xsi_shell'
 
18989
lt_shell_append='$lt_shell_append'
 
18990
 
 
18991
# See if we are running on zsh, and set the options which allow our
 
18992
# commands through without removal of \ escapes INIT.
 
18993
if test -n "\${ZSH_VERSION+set}" ; then
 
18994
   setopt NO_GLOB_SUBST
 
18995
fi
 
18996
 
 
18997
 
 
18998
    PACKAGE='$PACKAGE'
 
18999
    VERSION='$VERSION'
 
19000
    TIMESTAMP='$TIMESTAMP'
 
19001
    RM='$RM'
 
19002
    ofile='$ofile'
 
19003
 
 
19004
 
 
19005
 
 
19006
 
 
19007
_ACEOF
 
19008
 
 
19009
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19010
 
 
19011
# Handling of arguments.
 
19012
for ac_config_target in $ac_config_targets
 
19013
do
 
19014
  case $ac_config_target in
 
19015
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
19016
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19017
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
19018
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19019
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
19020
 
 
19021
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
19022
  esac
 
19023
done
 
19024
 
 
19025
 
 
19026
# If the user did not use the arguments to specify the items to instantiate,
 
19027
# then the envvar interface is used.  Set only those that are not.
 
19028
# We use the long form for the default assignment because of an extremely
 
19029
# bizarre bug on SunOS 4.1.3.
 
19030
if $ac_need_defaults; then
 
19031
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19032
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19033
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19034
fi
 
19035
 
 
19036
# Have a temporary directory for convenience.  Make it in the build tree
 
19037
# simply because there is no reason against having it here, and in addition,
 
19038
# creating and moving files from /tmp can sometimes cause problems.
 
19039
# Hook for its removal unless debugging.
 
19040
# Note that there is a small window in which the directory will not be cleaned:
 
19041
# after its creation but before its name has been assigned to `$tmp'.
 
19042
$debug ||
 
19043
{
 
19044
  tmp= ac_tmp=
 
19045
  trap 'exit_status=$?
 
19046
  : "${ac_tmp:=$tmp}"
 
19047
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
19048
' 0
 
19049
  trap 'as_fn_exit 1' 1 2 13 15
 
19050
}
 
19051
# Create a (secure) tmp directory for tmp files.
 
19052
 
 
19053
{
 
19054
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
19055
  test -d "$tmp"
 
19056
}  ||
 
19057
{
 
19058
  tmp=./conf$$-$RANDOM
 
19059
  (umask 077 && mkdir "$tmp")
 
19060
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
19061
ac_tmp=$tmp
 
19062
 
 
19063
# Set up the scripts for CONFIG_FILES section.
 
19064
# No need to generate them if there are no CONFIG_FILES.
 
19065
# This happens for instance with `./config.status config.h'.
 
19066
if test -n "$CONFIG_FILES"; then
 
19067
 
 
19068
 
 
19069
ac_cr=`echo X | tr X '\015'`
 
19070
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
19071
# But we know of no other shell where ac_cr would be empty at this
 
19072
# point, so we can use a bashism as a fallback.
 
19073
if test "x$ac_cr" = x; then
 
19074
  eval ac_cr=\$\'\\r\'
 
19075
fi
 
19076
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
19077
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
19078
  ac_cs_awk_cr='\\r'
 
19079
else
 
19080
  ac_cs_awk_cr=$ac_cr
 
19081
fi
 
19082
 
 
19083
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
19084
_ACEOF
 
19085
 
 
19086
 
 
19087
{
 
19088
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
19089
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
19090
  echo "_ACEOF"
 
19091
} >conf$$subs.sh ||
 
19092
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
19093
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
19094
ac_delim='%!_!# '
 
19095
for ac_last_try in false false false false false :; do
 
19096
  . ./conf$$subs.sh ||
 
19097
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
19098
 
 
19099
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
19100
  if test $ac_delim_n = $ac_delim_num; then
 
19101
    break
 
19102
  elif $ac_last_try; then
 
19103
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
19104
  else
 
19105
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19106
  fi
 
19107
done
 
19108
rm -f conf$$subs.sh
 
19109
 
 
19110
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19111
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
19112
_ACEOF
 
19113
sed -n '
 
19114
h
 
19115
s/^/S["/; s/!.*/"]=/
 
19116
p
 
19117
g
 
19118
s/^[^!]*!//
 
19119
:repl
 
19120
t repl
 
19121
s/'"$ac_delim"'$//
 
19122
t delim
 
19123
:nl
 
19124
h
 
19125
s/\(.\{148\}\)..*/\1/
 
19126
t more1
 
19127
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
19128
p
 
19129
n
 
19130
b repl
 
19131
:more1
 
19132
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
19133
p
 
19134
g
 
19135
s/.\{148\}//
 
19136
t nl
 
19137
:delim
 
19138
h
 
19139
s/\(.\{148\}\)..*/\1/
 
19140
t more2
 
19141
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
19142
p
 
19143
b
 
19144
:more2
 
19145
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
19146
p
 
19147
g
 
19148
s/.\{148\}//
 
19149
t delim
 
19150
' <conf$$subs.awk | sed '
 
19151
/^[^""]/{
 
19152
  N
 
19153
  s/\n//
 
19154
}
 
19155
' >>$CONFIG_STATUS || ac_write_fail=1
 
19156
rm -f conf$$subs.awk
 
19157
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19158
_ACAWK
 
19159
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
19160
  for (key in S) S_is_set[key] = 1
 
19161
  FS = ""
 
19162
 
 
19163
}
 
19164
{
 
19165
  line = $ 0
 
19166
  nfields = split(line, field, "@")
 
19167
  substed = 0
 
19168
  len = length(field[1])
 
19169
  for (i = 2; i < nfields; i++) {
 
19170
    key = field[i]
 
19171
    keylen = length(key)
 
19172
    if (S_is_set[key]) {
 
19173
      value = S[key]
 
19174
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
19175
      len += length(value) + length(field[++i])
 
19176
      substed = 1
 
19177
    } else
 
19178
      len += 1 + keylen
 
19179
  }
 
19180
 
 
19181
  print line
 
19182
}
 
19183
 
 
19184
_ACAWK
 
19185
_ACEOF
 
19186
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19187
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
19188
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
19189
else
 
19190
  cat
 
19191
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
19192
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
19193
_ACEOF
 
19194
 
 
19195
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
19196
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
19197
# trailing colons and then remove the whole line if VPATH becomes empty
 
19198
# (actually we leave an empty line to preserve line numbers).
 
19199
if test "x$srcdir" = x.; then
 
19200
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
19201
h
 
19202
s///
 
19203
s/^/:/
 
19204
s/[      ]*$/:/
 
19205
s/:\$(srcdir):/:/g
 
19206
s/:\${srcdir}:/:/g
 
19207
s/:@srcdir@:/:/g
 
19208
s/^:*//
 
19209
s/:*$//
 
19210
x
 
19211
s/\(=[   ]*\).*/\1/
 
19212
G
 
19213
s/\n//
 
19214
s/^[^=]*=[       ]*$//
 
19215
}'
 
19216
fi
 
19217
 
 
19218
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19219
fi # test -n "$CONFIG_FILES"
 
19220
 
 
19221
# Set up the scripts for CONFIG_HEADERS section.
 
19222
# No need to generate them if there are no CONFIG_HEADERS.
 
19223
# This happens for instance with `./config.status Makefile'.
 
19224
if test -n "$CONFIG_HEADERS"; then
 
19225
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
19226
BEGIN {
 
19227
_ACEOF
 
19228
 
 
19229
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
19230
# here-document in config.status, that substitutes the proper values into
 
19231
# config.h.in to produce config.h.
 
19232
 
 
19233
# Create a delimiter string that does not exist in confdefs.h, to ease
 
19234
# handling of long lines.
 
19235
ac_delim='%!_!# '
 
19236
for ac_last_try in false false :; do
 
19237
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
19238
  if test -z "$ac_tt"; then
 
19239
    break
 
19240
  elif $ac_last_try; then
 
19241
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
19242
  else
 
19243
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19244
  fi
 
19245
done
 
19246
 
 
19247
# For the awk script, D is an array of macro values keyed by name,
 
19248
# likewise P contains macro parameters if any.  Preserve backslash
 
19249
# newline sequences.
 
19250
 
 
19251
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
19252
sed -n '
 
19253
s/.\{148\}/&'"$ac_delim"'/g
 
19254
t rset
 
19255
:rset
 
19256
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
19257
t def
 
19258
d
 
19259
:def
 
19260
s/\\$//
 
19261
t bsnl
 
19262
s/["\\]/\\&/g
 
19263
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19264
D["\1"]=" \3"/p
 
19265
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
19266
d
 
19267
:bsnl
 
19268
s/["\\]/\\&/g
 
19269
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19270
D["\1"]=" \3\\\\\\n"\\/p
 
19271
t cont
 
19272
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
19273
t cont
 
19274
d
 
19275
:cont
 
19276
n
 
19277
s/.\{148\}/&'"$ac_delim"'/g
 
19278
t clear
 
19279
:clear
 
19280
s/\\$//
 
19281
t bsnlc
 
19282
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
19283
d
 
19284
:bsnlc
 
19285
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
19286
b cont
 
19287
' <confdefs.h | sed '
 
19288
s/'"$ac_delim"'/"\\\
 
19289
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
19290
 
 
19291
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19292
  for (key in D) D_is_set[key] = 1
 
19293
  FS = ""
 
19294
}
 
19295
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
19296
  line = \$ 0
 
19297
  split(line, arg, " ")
 
19298
  if (arg[1] == "#") {
 
19299
    defundef = arg[2]
 
19300
    mac1 = arg[3]
 
19301
  } else {
 
19302
    defundef = substr(arg[1], 2)
 
19303
    mac1 = arg[2]
 
19304
  }
 
19305
  split(mac1, mac2, "(") #)
 
19306
  macro = mac2[1]
 
19307
  prefix = substr(line, 1, index(line, defundef) - 1)
 
19308
  if (D_is_set[macro]) {
 
19309
    # Preserve the white space surrounding the "#".
 
19310
    print prefix "define", macro P[macro] D[macro]
 
19311
    next
 
19312
  } else {
 
19313
    # Replace #undef with comments.  This is necessary, for example,
 
19314
    # in the case of _POSIX_SOURCE, which is predefined and required
 
19315
    # on some systems where configure will not decide to define it.
 
19316
    if (defundef == "undef") {
 
19317
      print "/*", prefix defundef, macro, "*/"
 
19318
      next
 
19319
    }
 
19320
  }
 
19321
}
 
19322
{ print }
 
19323
_ACAWK
 
19324
_ACEOF
 
19325
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19326
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
19327
fi # test -n "$CONFIG_HEADERS"
 
19328
 
 
19329
 
 
19330
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
19331
shift
 
19332
for ac_tag
 
19333
do
 
19334
  case $ac_tag in
 
19335
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
19336
  esac
 
19337
  case $ac_mode$ac_tag in
 
19338
  :[FHL]*:*);;
 
19339
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
19340
  :[FH]-) ac_tag=-:-;;
 
19341
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
19342
  esac
 
19343
  ac_save_IFS=$IFS
 
19344
  IFS=:
 
19345
  set x $ac_tag
 
19346
  IFS=$ac_save_IFS
 
19347
  shift
 
19348
  ac_file=$1
 
19349
  shift
 
19350
 
 
19351
  case $ac_mode in
 
19352
  :L) ac_source=$1;;
 
19353
  :[FH])
 
19354
    ac_file_inputs=
 
19355
    for ac_f
 
19356
    do
 
19357
      case $ac_f in
 
19358
      -) ac_f="$ac_tmp/stdin";;
 
19359
      *) # Look for the file first in the build tree, then in the source tree
 
19360
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
19361
         # because $ac_f cannot contain `:'.
 
19362
         test -f "$ac_f" ||
 
19363
           case $ac_f in
 
19364
           [\\/$]*) false;;
 
19365
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
19366
           esac ||
 
19367
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
19368
      esac
 
19369
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
19370
      as_fn_append ac_file_inputs " '$ac_f'"
 
19371
    done
 
19372
 
 
19373
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19374
    # use $as_me), people would be surprised to read:
 
19375
    #    /* config.h.  Generated by config.status.  */
 
19376
    configure_input='Generated from '`
 
19377
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
19378
        `' by configure.'
 
19379
    if test x"$ac_file" != x-; then
 
19380
      configure_input="$ac_file.  $configure_input"
 
19381
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
19382
$as_echo "$as_me: creating $ac_file" >&6;}
 
19383
    fi
 
19384
    # Neutralize special characters interpreted by sed in replacement strings.
 
19385
    case $configure_input in #(
 
19386
    *\&* | *\|* | *\\* )
 
19387
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
19388
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
19389
    *) ac_sed_conf_input=$configure_input;;
 
19390
    esac
 
19391
 
 
19392
    case $ac_tag in
 
19393
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
19394
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
19395
    esac
 
19396
    ;;
 
19397
  esac
 
19398
 
 
19399
  ac_dir=`$as_dirname -- "$ac_file" ||
 
19400
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19401
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
19402
         X"$ac_file" : 'X\(//\)$' \| \
 
19403
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
19404
$as_echo X"$ac_file" |
 
19405
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19406
            s//\1/
 
19407
            q
 
19408
          }
 
19409
          /^X\(\/\/\)[^/].*/{
 
19410
            s//\1/
 
19411
            q
 
19412
          }
 
19413
          /^X\(\/\/\)$/{
 
19414
            s//\1/
 
19415
            q
 
19416
          }
 
19417
          /^X\(\/\).*/{
 
19418
            s//\1/
 
19419
            q
 
19420
          }
 
19421
          s/.*/./; q'`
 
19422
  as_dir="$ac_dir"; as_fn_mkdir_p
 
19423
  ac_builddir=.
 
19424
 
 
19425
case "$ac_dir" in
 
19426
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
19427
*)
 
19428
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
19429
  # A ".." for each directory in $ac_dir_suffix.
 
19430
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
19431
  case $ac_top_builddir_sub in
 
19432
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
19433
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
19434
  esac ;;
 
19435
esac
 
19436
ac_abs_top_builddir=$ac_pwd
 
19437
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
19438
# for backward compatibility:
 
19439
ac_top_builddir=$ac_top_build_prefix
 
19440
 
 
19441
case $srcdir in
 
19442
  .)  # We are building in place.
 
19443
    ac_srcdir=.
 
19444
    ac_top_srcdir=$ac_top_builddir_sub
 
19445
    ac_abs_top_srcdir=$ac_pwd ;;
 
19446
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
19447
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19448
    ac_top_srcdir=$srcdir
 
19449
    ac_abs_top_srcdir=$srcdir ;;
 
19450
  *) # Relative name.
 
19451
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
19452
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
19453
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
19454
esac
 
19455
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
19456
 
 
19457
 
 
19458
  case $ac_mode in
 
19459
  :F)
 
19460
  #
 
19461
  # CONFIG_FILE
 
19462
  #
 
19463
 
 
19464
  case $INSTALL in
 
19465
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
19466
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
19467
  esac
 
19468
  ac_MKDIR_P=$MKDIR_P
 
19469
  case $MKDIR_P in
 
19470
  [\\/$]* | ?:[\\/]* ) ;;
 
19471
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
19472
  esac
 
19473
_ACEOF
 
19474
 
 
19475
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19476
# If the template does not know about datarootdir, expand it.
 
19477
# FIXME: This hack should be removed a few years after 2.60.
 
19478
ac_datarootdir_hack=; ac_datarootdir_seen=
 
19479
ac_sed_dataroot='
 
19480
/datarootdir/ {
 
19481
  p
 
19482
  q
 
19483
}
 
19484
/@datadir@/p
 
19485
/@docdir@/p
 
19486
/@infodir@/p
 
19487
/@localedir@/p
 
19488
/@mandir@/p'
 
19489
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
19490
*datarootdir*) ac_datarootdir_seen=yes;;
 
19491
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
19492
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
19493
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
19494
_ACEOF
 
19495
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19496
  ac_datarootdir_hack='
 
19497
  s&@datadir@&$datadir&g
 
19498
  s&@docdir@&$docdir&g
 
19499
  s&@infodir@&$infodir&g
 
19500
  s&@localedir@&$localedir&g
 
19501
  s&@mandir@&$mandir&g
 
19502
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
19503
esac
 
19504
_ACEOF
 
19505
 
 
19506
# Neutralize VPATH when `$srcdir' = `.'.
 
19507
# Shell code in configure.ac might set extrasub.
 
19508
# FIXME: do we really want to maintain this feature?
 
19509
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19510
ac_sed_extra="$ac_vpsub
 
19511
$extrasub
 
19512
_ACEOF
 
19513
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19514
:t
 
19515
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19516
s|@configure_input@|$ac_sed_conf_input|;t t
 
19517
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
19518
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
19519
s&@srcdir@&$ac_srcdir&;t t
 
19520
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
19521
s&@top_srcdir@&$ac_top_srcdir&;t t
 
19522
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
19523
s&@builddir@&$ac_builddir&;t t
 
19524
s&@abs_builddir@&$ac_abs_builddir&;t t
 
19525
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
19526
s&@INSTALL@&$ac_INSTALL&;t t
 
19527
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
19528
$ac_datarootdir_hack
 
19529
"
 
19530
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
19531
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19532
 
 
19533
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
19534
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
19535
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
19536
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
19537
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19538
which seems to be undefined.  Please make sure it is defined" >&5
 
19539
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19540
which seems to be undefined.  Please make sure it is defined" >&2;}
 
19541
 
 
19542
  rm -f "$ac_tmp/stdin"
 
19543
  case $ac_file in
 
19544
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
19545
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
19546
  esac \
 
19547
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19548
 ;;
 
19549
  :H)
 
19550
  #
 
19551
  # CONFIG_HEADER
 
19552
  #
 
19553
  if test x"$ac_file" != x-; then
 
19554
    {
 
19555
      $as_echo "/* $configure_input  */" \
 
19556
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
19557
    } >"$ac_tmp/config.h" \
 
19558
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19559
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
19560
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
19561
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
19562
    else
 
19563
      rm -f "$ac_file"
 
19564
      mv "$ac_tmp/config.h" "$ac_file" \
 
19565
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19566
    fi
 
19567
  else
 
19568
    $as_echo "/* $configure_input  */" \
 
19569
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
19570
      || as_fn_error $? "could not create -" "$LINENO" 5
 
19571
  fi
 
19572
# Compute "$ac_file"'s index in $config_headers.
 
19573
_am_arg="$ac_file"
 
19574
_am_stamp_count=1
 
19575
for _am_header in $config_headers :; do
 
19576
  case $_am_header in
 
19577
    $_am_arg | $_am_arg:* )
 
19578
      break ;;
 
19579
    * )
 
19580
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
19581
  esac
 
19582
done
 
19583
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
19584
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19585
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
19586
         X"$_am_arg" : 'X\(//\)$' \| \
 
19587
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
19588
$as_echo X"$_am_arg" |
 
19589
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19590
            s//\1/
 
19591
            q
 
19592
          }
 
19593
          /^X\(\/\/\)[^/].*/{
 
19594
            s//\1/
 
19595
            q
 
19596
          }
 
19597
          /^X\(\/\/\)$/{
 
19598
            s//\1/
 
19599
            q
 
19600
          }
 
19601
          /^X\(\/\).*/{
 
19602
            s//\1/
 
19603
            q
 
19604
          }
 
19605
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
19606
 ;;
 
19607
 
 
19608
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
19609
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
19610
 ;;
 
19611
  esac
 
19612
 
 
19613
 
 
19614
  case $ac_file$ac_mode in
 
19615
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
19616
  # Older Autoconf quotes --file arguments for eval, but not when files
 
19617
  # are listed without --file.  Let's play safe and only enable the eval
 
19618
  # if we detect the quoting.
 
19619
  case $CONFIG_FILES in
 
19620
  *\'*) eval set x "$CONFIG_FILES" ;;
 
19621
  *)   set x $CONFIG_FILES ;;
 
19622
  esac
 
19623
  shift
 
19624
  for mf
 
19625
  do
 
19626
    # Strip MF so we end up with the name of the file.
 
19627
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
19628
    # Check whether this is an Automake generated Makefile or not.
 
19629
    # We used to match only the files named 'Makefile.in', but
 
19630
    # some people rename them; so instead we look at the file content.
 
19631
    # Grep'ing the first line is not enough: some people post-process
 
19632
    # each Makefile.in and add a new line on top of each file to say so.
 
19633
    # Grep'ing the whole file is not good either: AIX grep has a line
 
19634
    # limit of 2048, but all sed's we know have understand at least 4000.
 
19635
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
19636
      dirpart=`$as_dirname -- "$mf" ||
 
19637
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19638
         X"$mf" : 'X\(//\)[^/]' \| \
 
19639
         X"$mf" : 'X\(//\)$' \| \
 
19640
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
19641
$as_echo X"$mf" |
 
19642
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19643
            s//\1/
 
19644
            q
 
19645
          }
 
19646
          /^X\(\/\/\)[^/].*/{
 
19647
            s//\1/
 
19648
            q
 
19649
          }
 
19650
          /^X\(\/\/\)$/{
 
19651
            s//\1/
 
19652
            q
 
19653
          }
 
19654
          /^X\(\/\).*/{
 
19655
            s//\1/
 
19656
            q
 
19657
          }
 
19658
          s/.*/./; q'`
 
19659
    else
 
19660
      continue
 
19661
    fi
 
19662
    # Extract the definition of DEPDIR, am__include, and am__quote
 
19663
    # from the Makefile without running 'make'.
 
19664
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
19665
    test -z "$DEPDIR" && continue
 
19666
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
19667
    test -z "$am__include" && continue
 
19668
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
19669
    # Find all dependency output files, they are included files with
 
19670
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
19671
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
19672
    # expansion.
 
19673
    for file in `sed -n "
 
19674
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
19675
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
19676
      # Make sure the directory exists.
 
19677
      test -f "$dirpart/$file" && continue
 
19678
      fdir=`$as_dirname -- "$file" ||
 
19679
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19680
         X"$file" : 'X\(//\)[^/]' \| \
 
19681
         X"$file" : 'X\(//\)$' \| \
 
19682
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
19683
$as_echo X"$file" |
 
19684
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19685
            s//\1/
 
19686
            q
 
19687
          }
 
19688
          /^X\(\/\/\)[^/].*/{
 
19689
            s//\1/
 
19690
            q
 
19691
          }
 
19692
          /^X\(\/\/\)$/{
 
19693
            s//\1/
 
19694
            q
 
19695
          }
 
19696
          /^X\(\/\).*/{
 
19697
            s//\1/
 
19698
            q
 
19699
          }
 
19700
          s/.*/./; q'`
 
19701
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
19702
      # echo "creating $dirpart/$file"
 
19703
      echo '# dummy' > "$dirpart/$file"
 
19704
    done
 
19705
  done
 
19706
}
 
19707
 ;;
 
19708
    "libtool":C)
 
19709
 
 
19710
    # See if we are running on zsh, and set the options which allow our
 
19711
    # commands through without removal of \ escapes.
 
19712
    if test -n "${ZSH_VERSION+set}" ; then
 
19713
      setopt NO_GLOB_SUBST
 
19714
    fi
 
19715
 
 
19716
    cfgfile="${ofile}T"
 
19717
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
19718
    $RM "$cfgfile"
 
19719
 
 
19720
    cat <<_LT_EOF >> "$cfgfile"
 
19721
#! $SHELL
 
19722
 
 
19723
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
19724
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
19725
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19726
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
19727
#
 
19728
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
19729
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
19730
#                 Foundation, Inc.
 
19731
#   Written by Gordon Matzigkeit, 1996
 
19732
#
 
19733
#   This file is part of GNU Libtool.
 
19734
#
 
19735
# GNU Libtool is free software; you can redistribute it and/or
 
19736
# modify it under the terms of the GNU General Public License as
 
19737
# published by the Free Software Foundation; either version 2 of
 
19738
# the License, or (at your option) any later version.
 
19739
#
 
19740
# As a special exception to the GNU General Public License,
 
19741
# if you distribute this file as part of a program or library that
 
19742
# is built using GNU Libtool, you may include this file under the
 
19743
# same distribution terms that you use for the rest of that program.
 
19744
#
 
19745
# GNU Libtool is distributed in the hope that it will be useful,
 
19746
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19747
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19748
# GNU General Public License for more details.
 
19749
#
 
19750
# You should have received a copy of the GNU General Public License
 
19751
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
19752
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
19753
# obtained by writing to the Free Software Foundation, Inc.,
 
19754
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
19755
 
 
19756
 
 
19757
# The names of the tagged configurations supported by this script.
 
19758
available_tags=""
 
19759
 
 
19760
# ### BEGIN LIBTOOL CONFIG
 
19761
 
 
19762
# Whether or not to build static libraries.
 
19763
build_old_libs=$enable_static
 
19764
 
 
19765
# Which release of libtool.m4 was used?
 
19766
macro_version=$macro_version
 
19767
macro_revision=$macro_revision
 
19768
 
 
19769
# Whether or not to build shared libraries.
 
19770
build_libtool_libs=$enable_shared
 
19771
 
 
19772
# What type of objects to build.
 
19773
pic_mode=$pic_mode
 
19774
 
 
19775
# Whether or not to optimize for fast installation.
 
19776
fast_install=$enable_fast_install
 
19777
 
 
19778
# Shell to use when invoking shell scripts.
 
19779
SHELL=$lt_SHELL
 
19780
 
 
19781
# An echo program that protects backslashes.
 
19782
ECHO=$lt_ECHO
 
19783
 
 
19784
# The PATH separator for the build system.
 
19785
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
19786
 
 
19787
# The host system.
 
19788
host_alias=$host_alias
 
19789
host=$host
 
19790
host_os=$host_os
 
19791
 
 
19792
# The build system.
 
19793
build_alias=$build_alias
 
19794
build=$build
 
19795
build_os=$build_os
 
19796
 
 
19797
# A sed program that does not truncate output.
 
19798
SED=$lt_SED
 
19799
 
 
19800
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
19801
Xsed="\$SED -e 1s/^X//"
 
19802
 
 
19803
# A grep program that handles long lines.
 
19804
GREP=$lt_GREP
 
19805
 
 
19806
# An ERE matcher.
 
19807
EGREP=$lt_EGREP
 
19808
 
 
19809
# A literal string matcher.
 
19810
FGREP=$lt_FGREP
 
19811
 
 
19812
# A BSD- or MS-compatible name lister.
 
19813
NM=$lt_NM
 
19814
 
 
19815
# Whether we need soft or hard links.
 
19816
LN_S=$lt_LN_S
 
19817
 
 
19818
# What is the maximum length of a command?
 
19819
max_cmd_len=$max_cmd_len
 
19820
 
 
19821
# Object file suffix (normally "o").
 
19822
objext=$ac_objext
 
19823
 
 
19824
# Executable file suffix (normally "").
 
19825
exeext=$exeext
 
19826
 
 
19827
# whether the shell understands "unset".
 
19828
lt_unset=$lt_unset
 
19829
 
 
19830
# turn spaces into newlines.
 
19831
SP2NL=$lt_lt_SP2NL
 
19832
 
 
19833
# turn newlines into spaces.
 
19834
NL2SP=$lt_lt_NL2SP
 
19835
 
 
19836
# convert \$build file names to \$host format.
 
19837
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
19838
 
 
19839
# convert \$build files to toolchain format.
 
19840
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
19841
 
 
19842
# An object symbol dumper.
 
19843
OBJDUMP=$lt_OBJDUMP
 
19844
 
 
19845
# Method to check whether dependent libraries are shared objects.
 
19846
deplibs_check_method=$lt_deplibs_check_method
 
19847
 
 
19848
# Command to use when deplibs_check_method = "file_magic".
 
19849
file_magic_cmd=$lt_file_magic_cmd
 
19850
 
 
19851
# How to find potential files when deplibs_check_method = "file_magic".
 
19852
file_magic_glob=$lt_file_magic_glob
 
19853
 
 
19854
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
19855
want_nocaseglob=$lt_want_nocaseglob
 
19856
 
 
19857
# DLL creation program.
 
19858
DLLTOOL=$lt_DLLTOOL
 
19859
 
 
19860
# Command to associate shared and link libraries.
 
19861
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
19862
 
 
19863
# The archiver.
 
19864
AR=$lt_AR
 
19865
 
 
19866
# Flags to create an archive.
 
19867
AR_FLAGS=$lt_AR_FLAGS
 
19868
 
 
19869
# How to feed a file listing to the archiver.
 
19870
archiver_list_spec=$lt_archiver_list_spec
 
19871
 
 
19872
# A symbol stripping program.
 
19873
STRIP=$lt_STRIP
 
19874
 
 
19875
# Commands used to install an old-style archive.
 
19876
RANLIB=$lt_RANLIB
 
19877
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19878
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19879
 
 
19880
# Whether to use a lock for old archive extraction.
 
19881
lock_old_archive_extraction=$lock_old_archive_extraction
 
19882
 
 
19883
# A C compiler.
 
19884
LTCC=$lt_CC
 
19885
 
 
19886
# LTCC compiler flags.
 
19887
LTCFLAGS=$lt_CFLAGS
 
19888
 
 
19889
# Take the output of nm and produce a listing of raw symbols and C names.
 
19890
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19891
 
 
19892
# Transform the output of nm in a proper C declaration.
 
19893
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19894
 
 
19895
# Transform the output of nm in a C name address pair.
 
19896
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19897
 
 
19898
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
19899
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
19900
 
 
19901
# Specify filename containing input files for \$NM.
 
19902
nm_file_list_spec=$lt_nm_file_list_spec
 
19903
 
 
19904
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
19905
lt_sysroot=$lt_sysroot
 
19906
 
 
19907
# The name of the directory that contains temporary libtool files.
 
19908
objdir=$objdir
 
19909
 
 
19910
# Used to examine libraries when file_magic_cmd begins with "file".
 
19911
MAGIC_CMD=$MAGIC_CMD
 
19912
 
 
19913
# Must we lock files when doing compilation?
 
19914
need_locks=$lt_need_locks
 
19915
 
 
19916
# Manifest tool.
 
19917
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
19918
 
 
19919
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
19920
DSYMUTIL=$lt_DSYMUTIL
 
19921
 
 
19922
# Tool to change global to local symbols on Mac OS X.
 
19923
NMEDIT=$lt_NMEDIT
 
19924
 
 
19925
# Tool to manipulate fat objects and archives on Mac OS X.
 
19926
LIPO=$lt_LIPO
 
19927
 
 
19928
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
19929
OTOOL=$lt_OTOOL
 
19930
 
 
19931
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
19932
OTOOL64=$lt_OTOOL64
 
19933
 
 
19934
# Old archive suffix (normally "a").
 
19935
libext=$libext
 
19936
 
 
19937
# Shared library suffix (normally ".so").
 
19938
shrext_cmds=$lt_shrext_cmds
 
19939
 
 
19940
# The commands to extract the exported symbol list from a shared archive.
 
19941
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19942
 
 
19943
# Variables whose values should be saved in libtool wrapper scripts and
 
19944
# restored at link time.
 
19945
variables_saved_for_relink=$lt_variables_saved_for_relink
 
19946
 
 
19947
# Do we need the "lib" prefix for modules?
 
19948
need_lib_prefix=$need_lib_prefix
 
19949
 
 
19950
# Do we need a version for libraries?
 
19951
need_version=$need_version
 
19952
 
 
19953
# Library versioning type.
 
19954
version_type=$version_type
 
19955
 
 
19956
# Shared library runtime path variable.
 
19957
runpath_var=$runpath_var
 
19958
 
 
19959
# Shared library path variable.
 
19960
shlibpath_var=$shlibpath_var
 
19961
 
 
19962
# Is shlibpath searched before the hard-coded library search path?
 
19963
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19964
 
 
19965
# Format of library name prefix.
 
19966
libname_spec=$lt_libname_spec
 
19967
 
 
19968
# List of archive names.  First name is the real one, the rest are links.
 
19969
# The last name is the one that the linker finds with -lNAME
 
19970
library_names_spec=$lt_library_names_spec
 
19971
 
 
19972
# The coded name of the library, if different from the real name.
 
19973
soname_spec=$lt_soname_spec
 
19974
 
 
19975
# Permission mode override for installation of shared libraries.
 
19976
install_override_mode=$lt_install_override_mode
 
19977
 
 
19978
# Command to use after installation of a shared archive.
 
19979
postinstall_cmds=$lt_postinstall_cmds
 
19980
 
 
19981
# Command to use after uninstallation of a shared archive.
 
19982
postuninstall_cmds=$lt_postuninstall_cmds
 
19983
 
 
19984
# Commands used to finish a libtool library installation in a directory.
 
19985
finish_cmds=$lt_finish_cmds
 
19986
 
 
19987
# As "finish_cmds", except a single script fragment to be evaled but
 
19988
# not shown.
 
19989
finish_eval=$lt_finish_eval
 
19990
 
 
19991
# Whether we should hardcode library paths into libraries.
 
19992
hardcode_into_libs=$hardcode_into_libs
 
19993
 
 
19994
# Compile-time system search path for libraries.
 
19995
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19996
 
 
19997
# Run-time system search path for libraries.
 
19998
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19999
 
 
20000
# Whether dlopen is supported.
 
20001
dlopen_support=$enable_dlopen
 
20002
 
 
20003
# Whether dlopen of programs is supported.
 
20004
dlopen_self=$enable_dlopen_self
 
20005
 
 
20006
# Whether dlopen of statically linked programs is supported.
 
20007
dlopen_self_static=$enable_dlopen_self_static
 
20008
 
 
20009
# Commands to strip libraries.
 
20010
old_striplib=$lt_old_striplib
 
20011
striplib=$lt_striplib
 
20012
 
 
20013
 
 
20014
# The linker used to build libraries.
 
20015
LD=$lt_LD
 
20016
 
 
20017
# How to create reloadable object files.
 
20018
reload_flag=$lt_reload_flag
 
20019
reload_cmds=$lt_reload_cmds
 
20020
 
 
20021
# Commands used to build an old-style archive.
 
20022
old_archive_cmds=$lt_old_archive_cmds
 
20023
 
 
20024
# A language specific compiler.
 
20025
CC=$lt_compiler
 
20026
 
 
20027
# Is the compiler the GNU compiler?
 
20028
with_gcc=$GCC
 
20029
 
 
20030
# Compiler flag to turn off builtin functions.
 
20031
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
20032
 
 
20033
# Additional compiler flags for building library objects.
 
20034
pic_flag=$lt_lt_prog_compiler_pic
 
20035
 
 
20036
# How to pass a linker flag through the compiler.
 
20037
wl=$lt_lt_prog_compiler_wl
 
20038
 
 
20039
# Compiler flag to prevent dynamic linking.
 
20040
link_static_flag=$lt_lt_prog_compiler_static
 
20041
 
 
20042
# Does compiler simultaneously support -c and -o options?
 
20043
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
20044
 
 
20045
# Whether or not to add -lc for building shared libraries.
 
20046
build_libtool_need_lc=$archive_cmds_need_lc
 
20047
 
 
20048
# Whether or not to disallow shared libs when runtime libs are static.
 
20049
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20050
 
 
20051
# Compiler flag to allow reflexive dlopens.
 
20052
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
20053
 
 
20054
# Compiler flag to generate shared objects directly from archives.
 
20055
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
20056
 
 
20057
# Whether the compiler copes with passing no objects directly.
 
20058
compiler_needs_object=$lt_compiler_needs_object
 
20059
 
 
20060
# Create an old-style archive from a shared archive.
 
20061
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
20062
 
 
20063
# Create a temporary old-style archive to link instead of a shared archive.
 
20064
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
20065
 
 
20066
# Commands used to build a shared archive.
 
20067
archive_cmds=$lt_archive_cmds
 
20068
archive_expsym_cmds=$lt_archive_expsym_cmds
 
20069
 
 
20070
# Commands used to build a loadable module if different from building
 
20071
# a shared archive.
 
20072
module_cmds=$lt_module_cmds
 
20073
module_expsym_cmds=$lt_module_expsym_cmds
 
20074
 
 
20075
# Whether we are building with GNU ld or not.
 
20076
with_gnu_ld=$lt_with_gnu_ld
 
20077
 
 
20078
# Flag that allows shared libraries with undefined symbols to be built.
 
20079
allow_undefined_flag=$lt_allow_undefined_flag
 
20080
 
 
20081
# Flag that enforces no undefined symbols.
 
20082
no_undefined_flag=$lt_no_undefined_flag
 
20083
 
 
20084
# Flag to hardcode \$libdir into a binary during linking.
 
20085
# This must work even if \$libdir does not exist
 
20086
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
20087
 
 
20088
# Whether we need a single "-rpath" flag with a separated argument.
 
20089
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
20090
 
 
20091
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20092
# DIR into the resulting binary.
 
20093
hardcode_direct=$hardcode_direct
 
20094
 
 
20095
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20096
# DIR into the resulting binary and the resulting library dependency is
 
20097
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20098
# library is relocated.
 
20099
hardcode_direct_absolute=$hardcode_direct_absolute
 
20100
 
 
20101
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
20102
# into the resulting binary.
 
20103
hardcode_minus_L=$hardcode_minus_L
 
20104
 
 
20105
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
20106
# into the resulting binary.
 
20107
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
20108
 
 
20109
# Set to "yes" if building a shared library automatically hardcodes DIR
 
20110
# into the library and all subsequent libraries and executables linked
 
20111
# against it.
 
20112
hardcode_automatic=$hardcode_automatic
 
20113
 
 
20114
# Set to yes if linker adds runtime paths of dependent libraries
 
20115
# to runtime path list.
 
20116
inherit_rpath=$inherit_rpath
 
20117
 
 
20118
# Whether libtool must link a program against all its dependency libraries.
 
20119
link_all_deplibs=$link_all_deplibs
 
20120
 
 
20121
# Set to "yes" if exported symbols are required.
 
20122
always_export_symbols=$always_export_symbols
 
20123
 
 
20124
# The commands to list exported symbols.
 
20125
export_symbols_cmds=$lt_export_symbols_cmds
 
20126
 
 
20127
# Symbols that should not be listed in the preloaded symbols.
 
20128
exclude_expsyms=$lt_exclude_expsyms
 
20129
 
 
20130
# Symbols that must always be exported.
 
20131
include_expsyms=$lt_include_expsyms
 
20132
 
 
20133
# Commands necessary for linking programs (against libraries) with templates.
 
20134
prelink_cmds=$lt_prelink_cmds
 
20135
 
 
20136
# Commands necessary for finishing linking programs.
 
20137
postlink_cmds=$lt_postlink_cmds
 
20138
 
 
20139
# Specify filename containing input files.
 
20140
file_list_spec=$lt_file_list_spec
 
20141
 
 
20142
# How to hardcode a shared library path into an executable.
 
20143
hardcode_action=$hardcode_action
 
20144
 
 
20145
# ### END LIBTOOL CONFIG
 
20146
 
 
20147
_LT_EOF
 
20148
 
 
20149
  case $host_os in
 
20150
  aix3*)
 
20151
    cat <<\_LT_EOF >> "$cfgfile"
 
20152
# AIX sometimes has problems with the GCC collect2 program.  For some
 
20153
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
20154
# vanish in a puff of smoke.
 
20155
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20156
  COLLECT_NAMES=
 
20157
  export COLLECT_NAMES
 
20158
fi
 
20159
_LT_EOF
 
20160
    ;;
 
20161
  esac
 
20162
 
 
20163
 
 
20164
ltmain="$ac_aux_dir/ltmain.sh"
 
20165
 
 
20166
 
 
20167
  # We use sed instead of cat because bash on DJGPP gets confused if
 
20168
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
20169
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
20170
  # is reportedly fixed, but why not run on old versions too?
 
20171
  sed '$q' "$ltmain" >> "$cfgfile" \
 
20172
     || (rm -f "$cfgfile"; exit 1)
 
20173
 
 
20174
  if test x"$xsi_shell" = xyes; then
 
20175
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
20176
func_dirname ()\
 
20177
{\
 
20178
\    case ${1} in\
 
20179
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
20180
\      *  ) func_dirname_result="${3}" ;;\
 
20181
\    esac\
 
20182
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
20183
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20184
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20185
test 0 -eq $? || _lt_function_replace_fail=:
 
20186
 
 
20187
 
 
20188
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
20189
func_basename ()\
 
20190
{\
 
20191
\    func_basename_result="${1##*/}"\
 
20192
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
20193
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20194
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20195
test 0 -eq $? || _lt_function_replace_fail=:
 
20196
 
 
20197
 
 
20198
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
20199
func_dirname_and_basename ()\
 
20200
{\
 
20201
\    case ${1} in\
 
20202
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
20203
\      *  ) func_dirname_result="${3}" ;;\
 
20204
\    esac\
 
20205
\    func_basename_result="${1##*/}"\
 
20206
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
20207
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20208
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20209
test 0 -eq $? || _lt_function_replace_fail=:
 
20210
 
 
20211
 
 
20212
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
20213
func_stripname ()\
 
20214
{\
 
20215
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
20216
\    # positional parameters, so assign one to ordinary parameter first.\
 
20217
\    func_stripname_result=${3}\
 
20218
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
20219
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
20220
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
20221
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20222
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20223
test 0 -eq $? || _lt_function_replace_fail=:
 
20224
 
 
20225
 
 
20226
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
20227
func_split_long_opt ()\
 
20228
{\
 
20229
\    func_split_long_opt_name=${1%%=*}\
 
20230
\    func_split_long_opt_arg=${1#*=}\
 
20231
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
20232
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20233
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20234
test 0 -eq $? || _lt_function_replace_fail=:
 
20235
 
 
20236
 
 
20237
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
20238
func_split_short_opt ()\
 
20239
{\
 
20240
\    func_split_short_opt_arg=${1#??}\
 
20241
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
20242
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
20243
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20244
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20245
test 0 -eq $? || _lt_function_replace_fail=:
 
20246
 
 
20247
 
 
20248
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
20249
func_lo2o ()\
 
20250
{\
 
20251
\    case ${1} in\
 
20252
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
20253
\      *)    func_lo2o_result=${1} ;;\
 
20254
\    esac\
 
20255
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
20256
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20257
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20258
test 0 -eq $? || _lt_function_replace_fail=:
 
20259
 
 
20260
 
 
20261
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
20262
func_xform ()\
 
20263
{\
 
20264
    func_xform_result=${1%.*}.lo\
 
20265
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
20266
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20267
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20268
test 0 -eq $? || _lt_function_replace_fail=:
 
20269
 
 
20270
 
 
20271
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
20272
func_arith ()\
 
20273
{\
 
20274
    func_arith_result=$(( $* ))\
 
20275
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
20276
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20277
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20278
test 0 -eq $? || _lt_function_replace_fail=:
 
20279
 
 
20280
 
 
20281
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
20282
func_len ()\
 
20283
{\
 
20284
    func_len_result=${#1}\
 
20285
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
20286
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20287
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20288
test 0 -eq $? || _lt_function_replace_fail=:
 
20289
 
 
20290
fi
 
20291
 
 
20292
if test x"$lt_shell_append" = xyes; then
 
20293
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
20294
func_append ()\
 
20295
{\
 
20296
    eval "${1}+=\\${2}"\
 
20297
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
20298
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20299
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20300
test 0 -eq $? || _lt_function_replace_fail=:
 
20301
 
 
20302
 
 
20303
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
20304
func_append_quoted ()\
 
20305
{\
 
20306
\    func_quote_for_eval "${2}"\
 
20307
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
20308
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
20309
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20310
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20311
test 0 -eq $? || _lt_function_replace_fail=:
 
20312
 
 
20313
 
 
20314
  # Save a `func_append' function call where possible by direct use of '+='
 
20315
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
20316
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20317
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20318
  test 0 -eq $? || _lt_function_replace_fail=:
 
20319
else
 
20320
  # Save a `func_append' function call even when '+=' is not available
 
20321
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
20322
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20323
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20324
  test 0 -eq $? || _lt_function_replace_fail=:
 
20325
fi
 
20326
 
 
20327
if test x"$_lt_function_replace_fail" = x":"; then
 
20328
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
20329
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
20330
fi
 
20331
 
 
20332
 
 
20333
   mv -f "$cfgfile" "$ofile" ||
 
20334
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
20335
  chmod +x "$ofile"
 
20336
 
 
20337
 ;;
 
20338
 
 
20339
  esac
 
20340
done # for ac_tag
 
20341
 
 
20342
 
 
20343
as_fn_exit 0
 
20344
_ACEOF
 
20345
ac_clean_files=$ac_clean_files_save
 
20346
 
 
20347
test $ac_write_fail = 0 ||
 
20348
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
20349
 
 
20350
 
 
20351
# configure is writing to config.log, and then calls config.status.
 
20352
# config.status does its own redirection, appending to config.log.
 
20353
# Unfortunately, on DOS this fails, as config.log is still kept open
 
20354
# by configure, so config.status won't be able to write to it; its
 
20355
# output is simply discarded.  So we exec the FD to /dev/null,
 
20356
# effectively closing config.log, so it can be properly (re)opened and
 
20357
# appended to by config.status.  When coming back to configure, we
 
20358
# need to make the FD available again.
 
20359
if test "$no_create" != yes; then
 
20360
  ac_cs_success=:
 
20361
  ac_config_status_args=
 
20362
  test "$silent" = yes &&
 
20363
    ac_config_status_args="$ac_config_status_args --quiet"
 
20364
  exec 5>/dev/null
 
20365
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
20366
  exec 5>>config.log
 
20367
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
20368
  # would make configure fail if this is the last instruction.
 
20369
  $ac_cs_success || as_fn_exit 1
 
20370
fi
 
20371
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
20372
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
20373
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
20374
fi
 
20375