~ubuntu-branches/ubuntu/utopic/xf86-input-wacom/utopic-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen, Maarten Lankhorst
  • Date: 2012-08-01 15:01:07 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120801150107-n89ress3t0vkj8ay
Tags: 1:0.16.0+0git9f32b03-0ubuntu1
[ Maarten Lankhorst ]
* New upstream release.
* Add fixes from git
* Removed upstream patches:
  - only-match-tablet-waltop.diff
  - 102-add-intuos5-support.diff
* Add xserver-xorg-input-wacom-dbg

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.68 for xf86-input-wacom 0.14.0.
4
 
#
5
 
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
 
#
7
 
#
8
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
 
# Foundation, Inc.
11
 
#
12
 
#
13
 
# This configure script is free software; the Free Software Foundation
14
 
# gives unlimited permission to copy, distribute and modify it.
15
 
## -------------------- ##
16
 
## M4sh Initialization. ##
17
 
## -------------------- ##
18
 
 
19
 
# Be more Bourne compatible
20
 
DUALCASE=1; export DUALCASE # for MKS sh
21
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
 
  emulate sh
23
 
  NULLCMD=:
24
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
 
  # is contrary to our usage.  Disable this feature.
26
 
  alias -g '${1+"$@"}'='"$@"'
27
 
  setopt NO_GLOB_SUBST
28
 
else
29
 
  case `(set -o) 2>/dev/null` in #(
30
 
  *posix*) :
31
 
    set -o posix ;; #(
32
 
  *) :
33
 
     ;;
34
 
esac
35
 
fi
36
 
 
37
 
 
38
 
as_nl='
39
 
'
40
 
export as_nl
41
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
 
# but without wasting forks for bash or zsh.
47
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
 
  as_echo='print -r --'
50
 
  as_echo_n='print -rn --'
51
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
 
  as_echo='printf %s\n'
53
 
  as_echo_n='printf %s'
54
 
else
55
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
 
    as_echo_n='/usr/ucb/echo -n'
58
 
  else
59
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
 
    as_echo_n_body='eval
61
 
      arg=$1;
62
 
      case $arg in #(
63
 
      *"$as_nl"*)
64
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
65
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
 
      esac;
67
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
 
    '
69
 
    export as_echo_n_body
70
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
 
  fi
72
 
  export as_echo_body
73
 
  as_echo='sh -c $as_echo_body as_echo'
74
 
fi
75
 
 
76
 
# The user is always right.
77
 
if test "${PATH_SEPARATOR+set}" != set; then
78
 
  PATH_SEPARATOR=:
79
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
 
      PATH_SEPARATOR=';'
82
 
  }
83
 
fi
84
 
 
85
 
 
86
 
# IFS
87
 
# We need space, tab and new line, in precisely that order.  Quoting is
88
 
# there to prevent editors from complaining about space-tab.
89
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
 
# splitting by setting IFS to empty value.)
91
 
IFS=" ""        $as_nl"
92
 
 
93
 
# Find who we are.  Look in the path if we contain no directory separator.
94
 
as_myself=
95
 
case $0 in #((
96
 
  *[\\/]* ) as_myself=$0 ;;
97
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
 
for as_dir in $PATH
99
 
do
100
 
  IFS=$as_save_IFS
101
 
  test -z "$as_dir" && as_dir=.
102
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103
 
  done
104
 
IFS=$as_save_IFS
105
 
 
106
 
     ;;
107
 
esac
108
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
 
# in which case we are not to be found in the path.
110
 
if test "x$as_myself" = x; then
111
 
  as_myself=$0
112
 
fi
113
 
if test ! -f "$as_myself"; then
114
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
 
  exit 1
116
 
fi
117
 
 
118
 
# Unset variables that we do not need and which cause bugs (e.g. in
119
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120
 
# suppresses any "Segmentation fault" message there.  '((' could
121
 
# trigger a bug in pdksh 5.2.14.
122
 
for as_var in BASH_ENV ENV MAIL MAILPATH
123
 
do eval test x\${$as_var+set} = xset \
124
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
 
done
126
 
PS1='$ '
127
 
PS2='> '
128
 
PS4='+ '
129
 
 
130
 
# NLS nuisances.
131
 
LC_ALL=C
132
 
export LC_ALL
133
 
LANGUAGE=C
134
 
export LANGUAGE
135
 
 
136
 
# CDPATH.
137
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
 
 
139
 
if test "x$CONFIG_SHELL" = x; then
140
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
 
  emulate sh
142
 
  NULLCMD=:
143
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
 
  # is contrary to our usage.  Disable this feature.
145
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146
 
  setopt NO_GLOB_SUBST
147
 
else
148
 
  case \`(set -o) 2>/dev/null\` in #(
149
 
  *posix*) :
150
 
    set -o posix ;; #(
151
 
  *) :
152
 
     ;;
153
 
esac
154
 
fi
155
 
"
156
 
  as_required="as_fn_return () { (exit \$1); }
157
 
as_fn_success () { as_fn_return 0; }
158
 
as_fn_failure () { as_fn_return 1; }
159
 
as_fn_ret_success () { return 0; }
160
 
as_fn_ret_failure () { return 1; }
161
 
 
162
 
exitcode=0
163
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
 
 
169
 
else
170
 
  exitcode=1; echo positional parameters were not saved.
171
 
fi
172
 
test x\$exitcode = x0 || exit 1"
173
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
 
test \$(( 1 + 1 )) = 2 || exit 1
178
 
 
179
 
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
 
    PATH=/empty FPATH=/empty; export PATH FPATH
184
 
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
 
  if (eval "$as_required") 2>/dev/null; then :
187
 
  as_have_required=yes
188
 
else
189
 
  as_have_required=no
190
 
fi
191
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
 
 
193
 
else
194
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195
 
as_found=false
196
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197
 
do
198
 
  IFS=$as_save_IFS
199
 
  test -z "$as_dir" && as_dir=.
200
 
  as_found=:
201
 
  case $as_dir in #(
202
 
         /*)
203
 
           for as_base in sh bash ksh sh5; do
204
 
             # Try only shells that exist, to save several forks.
205
 
             as_shell=$as_dir/$as_base
206
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
 
  CONFIG_SHELL=$as_shell as_have_required=yes
209
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210
 
  break 2
211
 
fi
212
 
fi
213
 
           done;;
214
 
       esac
215
 
  as_found=false
216
 
done
217
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
 
  CONFIG_SHELL=$SHELL as_have_required=yes
220
 
fi; }
221
 
IFS=$as_save_IFS
222
 
 
223
 
 
224
 
      if test "x$CONFIG_SHELL" != x; then :
225
 
  # We cannot yet assume a decent shell, so we have to provide a
226
 
        # neutralization value for shells without unset; and this also
227
 
        # works around shells that cannot unset nonexistent variables.
228
 
        # Preserve -v and -x to the replacement shell.
229
 
        BASH_ENV=/dev/null
230
 
        ENV=/dev/null
231
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
 
        export CONFIG_SHELL
233
 
        case $- in # ((((
234
 
          *v*x* | *x*v* ) as_opts=-vx ;;
235
 
          *v* ) as_opts=-v ;;
236
 
          *x* ) as_opts=-x ;;
237
 
          * ) as_opts= ;;
238
 
        esac
239
 
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240
 
fi
241
 
 
242
 
    if test x$as_have_required = xno; then :
243
 
  $as_echo "$0: This script requires a shell more modern than all"
244
 
  $as_echo "$0: the shells that I found on your system."
245
 
  if test x${ZSH_VERSION+set} = xset ; then
246
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248
 
  else
249
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250
 
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251
 
$0: about your system, including any error possibly output
252
 
$0: before this message. Then install a modern shell, or
253
 
$0: manually run the script under such a shell if you do
254
 
$0: have one."
255
 
  fi
256
 
  exit 1
257
 
fi
258
 
fi
259
 
fi
260
 
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
export SHELL
262
 
# Unset more variables known to interfere with behavior of common tools.
263
 
CLICOLOR_FORCE= GREP_OPTIONS=
264
 
unset CLICOLOR_FORCE GREP_OPTIONS
265
 
 
266
 
## --------------------- ##
267
 
## M4sh Shell Functions. ##
268
 
## --------------------- ##
269
 
# as_fn_unset VAR
270
 
# ---------------
271
 
# Portably unset VAR.
272
 
as_fn_unset ()
273
 
{
274
 
  { eval $1=; unset $1;}
275
 
}
276
 
as_unset=as_fn_unset
277
 
 
278
 
# as_fn_set_status STATUS
279
 
# -----------------------
280
 
# Set $? to STATUS, without forking.
281
 
as_fn_set_status ()
282
 
{
283
 
  return $1
284
 
} # as_fn_set_status
285
 
 
286
 
# as_fn_exit STATUS
287
 
# -----------------
288
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289
 
as_fn_exit ()
290
 
{
291
 
  set +e
292
 
  as_fn_set_status $1
293
 
  exit $1
294
 
} # as_fn_exit
295
 
 
296
 
# as_fn_mkdir_p
297
 
# -------------
298
 
# Create "$as_dir" as a directory, including parents if necessary.
299
 
as_fn_mkdir_p ()
300
 
{
301
 
 
302
 
  case $as_dir in #(
303
 
  -*) as_dir=./$as_dir;;
304
 
  esac
305
 
  test -d "$as_dir" || eval $as_mkdir_p || {
306
 
    as_dirs=
307
 
    while :; do
308
 
      case $as_dir in #(
309
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310
 
      *) as_qdir=$as_dir;;
311
 
      esac
312
 
      as_dirs="'$as_qdir' $as_dirs"
313
 
      as_dir=`$as_dirname -- "$as_dir" ||
314
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
316
 
         X"$as_dir" : 'X\(//\)$' \| \
317
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318
 
$as_echo X"$as_dir" |
319
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320
 
            s//\1/
321
 
            q
322
 
          }
323
 
          /^X\(\/\/\)[^/].*/{
324
 
            s//\1/
325
 
            q
326
 
          }
327
 
          /^X\(\/\/\)$/{
328
 
            s//\1/
329
 
            q
330
 
          }
331
 
          /^X\(\/\).*/{
332
 
            s//\1/
333
 
            q
334
 
          }
335
 
          s/.*/./; q'`
336
 
      test -d "$as_dir" && break
337
 
    done
338
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
339
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
 
 
341
 
 
342
 
} # as_fn_mkdir_p
343
 
# as_fn_append VAR VALUE
344
 
# ----------------------
345
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
346
 
# advantage of any shell optimizations that allow amortized linear growth over
347
 
# repeated appends, instead of the typical quadratic growth present in naive
348
 
# implementations.
349
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350
 
  eval 'as_fn_append ()
351
 
  {
352
 
    eval $1+=\$2
353
 
  }'
354
 
else
355
 
  as_fn_append ()
356
 
  {
357
 
    eval $1=\$$1\$2
358
 
  }
359
 
fi # as_fn_append
360
 
 
361
 
# as_fn_arith ARG...
362
 
# ------------------
363
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
364
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
365
 
# must be portable across $(()) and expr.
366
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367
 
  eval 'as_fn_arith ()
368
 
  {
369
 
    as_val=$(( $* ))
370
 
  }'
371
 
else
372
 
  as_fn_arith ()
373
 
  {
374
 
    as_val=`expr "$@" || test $? -eq 1`
375
 
  }
376
 
fi # as_fn_arith
377
 
 
378
 
 
379
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
380
 
# ----------------------------------------
381
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383
 
# script with STATUS, using 1 if that was 0.
384
 
as_fn_error ()
385
 
{
386
 
  as_status=$1; test $as_status -eq 0 && as_status=1
387
 
  if test "$4"; then
388
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390
 
  fi
391
 
  $as_echo "$as_me: error: $2" >&2
392
 
  as_fn_exit $as_status
393
 
} # as_fn_error
394
 
 
395
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
396
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397
 
  as_expr=expr
398
 
else
399
 
  as_expr=false
400
 
fi
401
 
 
402
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403
 
  as_basename=basename
404
 
else
405
 
  as_basename=false
406
 
fi
407
 
 
408
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409
 
  as_dirname=dirname
410
 
else
411
 
  as_dirname=false
412
 
fi
413
 
 
414
 
as_me=`$as_basename -- "$0" ||
415
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416
 
         X"$0" : 'X\(//\)$' \| \
417
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418
 
$as_echo X/"$0" |
419
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
420
 
            s//\1/
421
 
            q
422
 
          }
423
 
          /^X\/\(\/\/\)$/{
424
 
            s//\1/
425
 
            q
426
 
          }
427
 
          /^X\/\(\/\).*/{
428
 
            s//\1/
429
 
            q
430
 
          }
431
 
          s/.*/./; q'`
432
 
 
433
 
# Avoid depending upon Character Ranges.
434
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437
 
as_cr_digits='0123456789'
438
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
439
 
 
440
 
 
441
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446
 
  sed -n '
447
 
    p
448
 
    /[$]LINENO/=
449
 
  ' <$as_myself |
450
 
    sed '
451
 
      s/[$]LINENO.*/&-/
452
 
      t lineno
453
 
      b
454
 
      :lineno
455
 
      N
456
 
      :loop
457
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458
 
      t loop
459
 
      s/-\n.*//
460
 
    ' >$as_me.lineno &&
461
 
  chmod +x "$as_me.lineno" ||
462
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
 
 
464
 
  # Don't try to exec as it changes $[0], causing all sort of problems
465
 
  # (the dirname of $[0] is not the place where we might find the
466
 
  # original and so on.  Autoconf is especially sensitive to this).
467
 
  . "./$as_me.lineno"
468
 
  # Exit status is that of the last command.
469
 
  exit
470
 
}
471
 
 
472
 
ECHO_C= ECHO_N= ECHO_T=
473
 
case `echo -n x` in #(((((
474
 
-n*)
475
 
  case `echo 'xy\c'` in
476
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477
 
  xy)  ECHO_C='\c';;
478
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479
 
       ECHO_T=' ';;
480
 
  esac;;
481
 
*)
482
 
  ECHO_N='-n';;
483
 
esac
484
 
 
485
 
rm -f conf$$ conf$$.exe conf$$.file
486
 
if test -d conf$$.dir; then
487
 
  rm -f conf$$.dir/conf$$.file
488
 
else
489
 
  rm -f conf$$.dir
490
 
  mkdir conf$$.dir 2>/dev/null
491
 
fi
492
 
if (echo >conf$$.file) 2>/dev/null; then
493
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
494
 
    as_ln_s='ln -s'
495
 
    # ... but there are two gotchas:
496
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498
 
    # In both cases, we have to default to `cp -p'.
499
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
 
      as_ln_s='cp -p'
501
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
502
 
    as_ln_s=ln
503
 
  else
504
 
    as_ln_s='cp -p'
505
 
  fi
506
 
else
507
 
  as_ln_s='cp -p'
508
 
fi
509
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510
 
rmdir conf$$.dir 2>/dev/null
511
 
 
512
 
if mkdir -p . 2>/dev/null; then
513
 
  as_mkdir_p='mkdir -p "$as_dir"'
514
 
else
515
 
  test -d ./-p && rmdir ./-p
516
 
  as_mkdir_p=false
517
 
fi
518
 
 
519
 
if test -x / >/dev/null 2>&1; then
520
 
  as_test_x='test -x'
521
 
else
522
 
  if ls -dL / >/dev/null 2>&1; then
523
 
    as_ls_L_option=L
524
 
  else
525
 
    as_ls_L_option=
526
 
  fi
527
 
  as_test_x='
528
 
    eval sh -c '\''
529
 
      if test -d "$1"; then
530
 
        test -d "$1/.";
531
 
      else
532
 
        case $1 in #(
533
 
        -*)set "./$1";;
534
 
        esac;
535
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536
 
        ???[sx]*):;;*)false;;esac;fi
537
 
    '\'' sh
538
 
  '
539
 
fi
540
 
as_executable_p=$as_test_x
541
 
 
542
 
# Sed expression to map a string onto a valid CPP name.
543
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
 
 
545
 
# Sed expression to map a string onto a valid variable name.
546
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
 
 
548
 
SHELL=${CONFIG_SHELL-/bin/sh}
549
 
 
550
 
as_awk_strverscmp='
551
 
  # Use only awk features that work with 7th edition Unix awk (1978).
552
 
  # My, what an old awk you have, Mr. Solaris!
553
 
  END {
554
 
    while (length(v1) && length(v2)) {
555
 
      # Set d1 to be the next thing to compare from v1, and likewise for d2.
556
 
      # Normally this is a single character, but if v1 and v2 contain digits,
557
 
      # compare them as integers and fractions as strverscmp does.
558
 
      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559
 
        # Split v1 and v2 into their leading digit string components d1 and d2,
560
 
        # and advance v1 and v2 past the leading digit strings.
561
 
        for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562
 
        for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563
 
        d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564
 
        d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565
 
        if (d1 ~ /^0/) {
566
 
          if (d2 ~ /^0/) {
567
 
            # Compare two fractions.
568
 
            while (d1 ~ /^0/ && d2 ~ /^0/) {
569
 
              d1 = substr(d1, 2); len1--
570
 
              d2 = substr(d2, 2); len2--
571
 
            }
572
 
            if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573
 
              # The two components differ in length, and the common prefix
574
 
              # contains only leading zeros.  Consider the longer to be less.
575
 
              d1 = -len1
576
 
              d2 = -len2
577
 
            } else {
578
 
              # Otherwise, compare as strings.
579
 
              d1 = "x" d1
580
 
              d2 = "x" d2
581
 
            }
582
 
          } else {
583
 
            # A fraction is less than an integer.
584
 
            exit 1
585
 
          }
586
 
        } else {
587
 
          if (d2 ~ /^0/) {
588
 
            # An integer is greater than a fraction.
589
 
            exit 2
590
 
          } else {
591
 
            # Compare two integers.
592
 
            d1 += 0
593
 
            d2 += 0
594
 
          }
595
 
        }
596
 
      } else {
597
 
        # The normal case, without worrying about digits.
598
 
        d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599
 
        d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600
 
      }
601
 
      if (d1 < d2) exit 1
602
 
      if (d1 > d2) exit 2
603
 
    }
604
 
    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605
 
    # which mishandles some comparisons of empty strings to integers.
606
 
    if (length(v2)) exit 1
607
 
    if (length(v1)) exit 2
608
 
  }
609
 
'
610
 
 
611
 
test -n "$DJDIR" || exec 7<&0 </dev/null
612
 
exec 6>&1
613
 
 
614
 
# Name of the host.
615
 
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616
 
# so uname gets run too.
617
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
 
 
619
 
#
620
 
# Initializations.
621
 
#
622
 
ac_default_prefix=/usr/local
623
 
ac_clean_files=
624
 
ac_config_libobj_dir=.
625
 
LIBOBJS=
626
 
cross_compiling=no
627
 
subdirs=
628
 
MFLAGS=
629
 
MAKEFLAGS=
630
 
 
631
 
# Identity of this package.
632
 
PACKAGE_NAME='xf86-input-wacom'
633
 
PACKAGE_TARNAME='xf86-input-wacom'
634
 
PACKAGE_VERSION='0.14.0'
635
 
PACKAGE_STRING='xf86-input-wacom 0.14.0'
636
 
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637
 
PACKAGE_URL=''
638
 
 
639
 
ac_unique_file="Makefile.am"
640
 
# Factoring default headers for most tests.
641
 
ac_includes_default="\
642
 
#include <stdio.h>
643
 
#ifdef HAVE_SYS_TYPES_H
644
 
# include <sys/types.h>
645
 
#endif
646
 
#ifdef HAVE_SYS_STAT_H
647
 
# include <sys/stat.h>
648
 
#endif
649
 
#ifdef STDC_HEADERS
650
 
# include <stdlib.h>
651
 
# include <stddef.h>
652
 
#else
653
 
# ifdef HAVE_STDLIB_H
654
 
#  include <stdlib.h>
655
 
# endif
656
 
#endif
657
 
#ifdef HAVE_STRING_H
658
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659
 
#  include <memory.h>
660
 
# endif
661
 
# include <string.h>
662
 
#endif
663
 
#ifdef HAVE_STRINGS_H
664
 
# include <strings.h>
665
 
#endif
666
 
#ifdef HAVE_INTTYPES_H
667
 
# include <inttypes.h>
668
 
#endif
669
 
#ifdef HAVE_STDINT_H
670
 
# include <stdint.h>
671
 
#endif
672
 
#ifdef HAVE_UNISTD_H
673
 
# include <unistd.h>
674
 
#endif"
675
 
 
676
 
ac_subst_vars='am__EXEEXT_FALSE
677
 
am__EXEEXT_TRUE
678
 
LTLIBOBJS
679
 
LIBOBJS
680
 
UNITTESTS_FALSE
681
 
UNITTESTS_TRUE
682
 
HAS_XORG_CONF_DIR_FALSE
683
 
HAS_XORG_CONF_DIR_TRUE
684
 
configdir
685
 
inputdir
686
 
DRIVER_NAME
687
 
sdkdir
688
 
UDEV_LIBS
689
 
UDEV_CFLAGS
690
 
X11_LIBS
691
 
X11_CFLAGS
692
 
XORG_LIBS
693
 
XORG_CFLAGS
694
 
HAVE_DOXYGEN_FALSE
695
 
HAVE_DOXYGEN_TRUE
696
 
DOXYGEN
697
 
AM_BACKSLASH
698
 
AM_DEFAULT_VERBOSITY
699
 
AM_DEFAULT_V
700
 
AM_V
701
 
MAN_SUBSTS
702
 
XORG_MAN_PAGE
703
 
ADMIN_MAN_DIR
704
 
DRIVER_MAN_DIR
705
 
MISC_MAN_DIR
706
 
FILE_MAN_DIR
707
 
LIB_MAN_DIR
708
 
APP_MAN_DIR
709
 
ADMIN_MAN_SUFFIX
710
 
DRIVER_MAN_SUFFIX
711
 
MISC_MAN_SUFFIX
712
 
FILE_MAN_SUFFIX
713
 
LIB_MAN_SUFFIX
714
 
APP_MAN_SUFFIX
715
 
INSTALL_CMD
716
 
PKG_CONFIG_LIBDIR
717
 
PKG_CONFIG_PATH
718
 
PKG_CONFIG
719
 
CHANGELOG_CMD
720
 
STRICT_CFLAGS
721
 
CWARNFLAGS
722
 
BASE_CFLAGS
723
 
OTOOL64
724
 
OTOOL
725
 
LIPO
726
 
NMEDIT
727
 
DSYMUTIL
728
 
MANIFEST_TOOL
729
 
RANLIB
730
 
ac_ct_AR
731
 
AR
732
 
DLLTOOL
733
 
OBJDUMP
734
 
LN_S
735
 
NM
736
 
ac_ct_DUMPBIN
737
 
DUMPBIN
738
 
LD
739
 
FGREP
740
 
SED
741
 
host_os
742
 
host_vendor
743
 
host_cpu
744
 
host
745
 
build_os
746
 
build_vendor
747
 
build_cpu
748
 
build
749
 
LIBTOOL
750
 
EGREP
751
 
GREP
752
 
CPP
753
 
am__fastdepCC_FALSE
754
 
am__fastdepCC_TRUE
755
 
CCDEPMODE
756
 
am__nodep
757
 
AMDEPBACKSLASH
758
 
AMDEP_FALSE
759
 
AMDEP_TRUE
760
 
am__quote
761
 
am__include
762
 
DEPDIR
763
 
OBJEXT
764
 
EXEEXT
765
 
ac_ct_CC
766
 
CPPFLAGS
767
 
LDFLAGS
768
 
CFLAGS
769
 
CC
770
 
MAINT
771
 
MAINTAINER_MODE_FALSE
772
 
MAINTAINER_MODE_TRUE
773
 
am__untar
774
 
am__tar
775
 
AMTAR
776
 
am__leading_dot
777
 
SET_MAKE
778
 
AWK
779
 
mkdir_p
780
 
MKDIR_P
781
 
INSTALL_STRIP_PROGRAM
782
 
STRIP
783
 
install_sh
784
 
MAKEINFO
785
 
AUTOHEADER
786
 
AUTOMAKE
787
 
AUTOCONF
788
 
ACLOCAL
789
 
VERSION
790
 
PACKAGE
791
 
CYGPATH_W
792
 
am__isrc
793
 
INSTALL_DATA
794
 
INSTALL_SCRIPT
795
 
INSTALL_PROGRAM
796
 
target_alias
797
 
host_alias
798
 
build_alias
799
 
LIBS
800
 
ECHO_T
801
 
ECHO_N
802
 
ECHO_C
803
 
DEFS
804
 
mandir
805
 
localedir
806
 
libdir
807
 
psdir
808
 
pdfdir
809
 
dvidir
810
 
htmldir
811
 
infodir
812
 
docdir
813
 
oldincludedir
814
 
includedir
815
 
localstatedir
816
 
sharedstatedir
817
 
sysconfdir
818
 
datadir
819
 
datarootdir
820
 
libexecdir
821
 
sbindir
822
 
bindir
823
 
program_transform_name
824
 
prefix
825
 
exec_prefix
826
 
PACKAGE_URL
827
 
PACKAGE_BUGREPORT
828
 
PACKAGE_STRING
829
 
PACKAGE_VERSION
830
 
PACKAGE_TARNAME
831
 
PACKAGE_NAME
832
 
PATH_SEPARATOR
833
 
SHELL'
834
 
ac_subst_files=''
835
 
ac_user_opts='
836
 
enable_option_checking
837
 
enable_maintainer_mode
838
 
enable_dependency_tracking
839
 
enable_static
840
 
enable_shared
841
 
with_pic
842
 
enable_fast_install
843
 
with_gnu_ld
844
 
with_sysroot
845
 
enable_libtool_lock
846
 
enable_selective_werror
847
 
enable_strict_compilation
848
 
enable_silent_rules
849
 
with_doxygen
850
 
with_sdkdir
851
 
enable_debug
852
 
with_xorg_module_dir
853
 
with_xorg_conf_dir
854
 
enable_unit_tests
855
 
'
856
 
      ac_precious_vars='build_alias
857
 
host_alias
858
 
target_alias
859
 
CC
860
 
CFLAGS
861
 
LDFLAGS
862
 
LIBS
863
 
CPPFLAGS
864
 
CPP
865
 
PKG_CONFIG
866
 
PKG_CONFIG_PATH
867
 
PKG_CONFIG_LIBDIR
868
 
DOXYGEN
869
 
XORG_CFLAGS
870
 
XORG_LIBS
871
 
X11_CFLAGS
872
 
X11_LIBS
873
 
UDEV_CFLAGS
874
 
UDEV_LIBS'
875
 
 
876
 
 
877
 
# Initialize some variables set by options.
878
 
ac_init_help=
879
 
ac_init_version=false
880
 
ac_unrecognized_opts=
881
 
ac_unrecognized_sep=
882
 
# The variables have the same names as the options, with
883
 
# dashes changed to underlines.
884
 
cache_file=/dev/null
885
 
exec_prefix=NONE
886
 
no_create=
887
 
no_recursion=
888
 
prefix=NONE
889
 
program_prefix=NONE
890
 
program_suffix=NONE
891
 
program_transform_name=s,x,x,
892
 
silent=
893
 
site=
894
 
srcdir=
895
 
verbose=
896
 
x_includes=NONE
897
 
x_libraries=NONE
898
 
 
899
 
# Installation directory options.
900
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
901
 
# and all the variables that are supposed to be based on exec_prefix
902
 
# by default will actually change.
903
 
# Use braces instead of parens because sh, perl, etc. also accept them.
904
 
# (The list follows the same order as the GNU Coding Standards.)
905
 
bindir='${exec_prefix}/bin'
906
 
sbindir='${exec_prefix}/sbin'
907
 
libexecdir='${exec_prefix}/libexec'
908
 
datarootdir='${prefix}/share'
909
 
datadir='${datarootdir}'
910
 
sysconfdir='${prefix}/etc'
911
 
sharedstatedir='${prefix}/com'
912
 
localstatedir='${prefix}/var'
913
 
includedir='${prefix}/include'
914
 
oldincludedir='/usr/include'
915
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916
 
infodir='${datarootdir}/info'
917
 
htmldir='${docdir}'
918
 
dvidir='${docdir}'
919
 
pdfdir='${docdir}'
920
 
psdir='${docdir}'
921
 
libdir='${exec_prefix}/lib'
922
 
localedir='${datarootdir}/locale'
923
 
mandir='${datarootdir}/man'
924
 
 
925
 
ac_prev=
926
 
ac_dashdash=
927
 
for ac_option
928
 
do
929
 
  # If the previous option needs an argument, assign it.
930
 
  if test -n "$ac_prev"; then
931
 
    eval $ac_prev=\$ac_option
932
 
    ac_prev=
933
 
    continue
934
 
  fi
935
 
 
936
 
  case $ac_option in
937
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938
 
  *=)   ac_optarg= ;;
939
 
  *)    ac_optarg=yes ;;
940
 
  esac
941
 
 
942
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
943
 
 
944
 
  case $ac_dashdash$ac_option in
945
 
  --)
946
 
    ac_dashdash=yes ;;
947
 
 
948
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
949
 
    ac_prev=bindir ;;
950
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951
 
    bindir=$ac_optarg ;;
952
 
 
953
 
  -build | --build | --buil | --bui | --bu)
954
 
    ac_prev=build_alias ;;
955
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956
 
    build_alias=$ac_optarg ;;
957
 
 
958
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
959
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960
 
    ac_prev=cache_file ;;
961
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963
 
    cache_file=$ac_optarg ;;
964
 
 
965
 
  --config-cache | -C)
966
 
    cache_file=config.cache ;;
967
 
 
968
 
  -datadir | --datadir | --datadi | --datad)
969
 
    ac_prev=datadir ;;
970
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
971
 
    datadir=$ac_optarg ;;
972
 
 
973
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974
 
  | --dataroo | --dataro | --datar)
975
 
    ac_prev=datarootdir ;;
976
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978
 
    datarootdir=$ac_optarg ;;
979
 
 
980
 
  -disable-* | --disable-*)
981
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982
 
    # Reject names that are not valid shell variable names.
983
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984
 
      as_fn_error $? "invalid feature name: $ac_useropt"
985
 
    ac_useropt_orig=$ac_useropt
986
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987
 
    case $ac_user_opts in
988
 
      *"
989
 
"enable_$ac_useropt"
990
 
"*) ;;
991
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992
 
         ac_unrecognized_sep=', ';;
993
 
    esac
994
 
    eval enable_$ac_useropt=no ;;
995
 
 
996
 
  -docdir | --docdir | --docdi | --doc | --do)
997
 
    ac_prev=docdir ;;
998
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999
 
    docdir=$ac_optarg ;;
1000
 
 
1001
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002
 
    ac_prev=dvidir ;;
1003
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004
 
    dvidir=$ac_optarg ;;
1005
 
 
1006
 
  -enable-* | --enable-*)
1007
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008
 
    # Reject names that are not valid shell variable names.
1009
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1011
 
    ac_useropt_orig=$ac_useropt
1012
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013
 
    case $ac_user_opts in
1014
 
      *"
1015
 
"enable_$ac_useropt"
1016
 
"*) ;;
1017
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018
 
         ac_unrecognized_sep=', ';;
1019
 
    esac
1020
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1021
 
 
1022
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024
 
  | --exec | --exe | --ex)
1025
 
    ac_prev=exec_prefix ;;
1026
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028
 
  | --exec=* | --exe=* | --ex=*)
1029
 
    exec_prefix=$ac_optarg ;;
1030
 
 
1031
 
  -gas | --gas | --ga | --g)
1032
 
    # Obsolete; use --with-gas.
1033
 
    with_gas=yes ;;
1034
 
 
1035
 
  -help | --help | --hel | --he | -h)
1036
 
    ac_init_help=long ;;
1037
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038
 
    ac_init_help=recursive ;;
1039
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040
 
    ac_init_help=short ;;
1041
 
 
1042
 
  -host | --host | --hos | --ho)
1043
 
    ac_prev=host_alias ;;
1044
 
  -host=* | --host=* | --hos=* | --ho=*)
1045
 
    host_alias=$ac_optarg ;;
1046
 
 
1047
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048
 
    ac_prev=htmldir ;;
1049
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050
 
  | --ht=*)
1051
 
    htmldir=$ac_optarg ;;
1052
 
 
1053
 
  -includedir | --includedir | --includedi | --included | --include \
1054
 
  | --includ | --inclu | --incl | --inc)
1055
 
    ac_prev=includedir ;;
1056
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1058
 
    includedir=$ac_optarg ;;
1059
 
 
1060
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1061
 
    ac_prev=infodir ;;
1062
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063
 
    infodir=$ac_optarg ;;
1064
 
 
1065
 
  -libdir | --libdir | --libdi | --libd)
1066
 
    ac_prev=libdir ;;
1067
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068
 
    libdir=$ac_optarg ;;
1069
 
 
1070
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071
 
  | --libexe | --libex | --libe)
1072
 
    ac_prev=libexecdir ;;
1073
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074
 
  | --libexe=* | --libex=* | --libe=*)
1075
 
    libexecdir=$ac_optarg ;;
1076
 
 
1077
 
  -localedir | --localedir | --localedi | --localed | --locale)
1078
 
    ac_prev=localedir ;;
1079
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080
 
    localedir=$ac_optarg ;;
1081
 
 
1082
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1083
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1084
 
    ac_prev=localstatedir ;;
1085
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087
 
    localstatedir=$ac_optarg ;;
1088
 
 
1089
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090
 
    ac_prev=mandir ;;
1091
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092
 
    mandir=$ac_optarg ;;
1093
 
 
1094
 
  -nfp | --nfp | --nf)
1095
 
    # Obsolete; use --without-fp.
1096
 
    with_fp=no ;;
1097
 
 
1098
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099
 
  | --no-cr | --no-c | -n)
1100
 
    no_create=yes ;;
1101
 
 
1102
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104
 
    no_recursion=yes ;;
1105
 
 
1106
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108
 
  | --oldin | --oldi | --old | --ol | --o)
1109
 
    ac_prev=oldincludedir ;;
1110
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113
 
    oldincludedir=$ac_optarg ;;
1114
 
 
1115
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116
 
    ac_prev=prefix ;;
1117
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118
 
    prefix=$ac_optarg ;;
1119
 
 
1120
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121
 
  | --program-pre | --program-pr | --program-p)
1122
 
    ac_prev=program_prefix ;;
1123
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125
 
    program_prefix=$ac_optarg ;;
1126
 
 
1127
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128
 
  | --program-suf | --program-su | --program-s)
1129
 
    ac_prev=program_suffix ;;
1130
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132
 
    program_suffix=$ac_optarg ;;
1133
 
 
1134
 
  -program-transform-name | --program-transform-name \
1135
 
  | --program-transform-nam | --program-transform-na \
1136
 
  | --program-transform-n | --program-transform- \
1137
 
  | --program-transform | --program-transfor \
1138
 
  | --program-transfo | --program-transf \
1139
 
  | --program-trans | --program-tran \
1140
 
  | --progr-tra | --program-tr | --program-t)
1141
 
    ac_prev=program_transform_name ;;
1142
 
  -program-transform-name=* | --program-transform-name=* \
1143
 
  | --program-transform-nam=* | --program-transform-na=* \
1144
 
  | --program-transform-n=* | --program-transform-=* \
1145
 
  | --program-transform=* | --program-transfor=* \
1146
 
  | --program-transfo=* | --program-transf=* \
1147
 
  | --program-trans=* | --program-tran=* \
1148
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1149
 
    program_transform_name=$ac_optarg ;;
1150
 
 
1151
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152
 
    ac_prev=pdfdir ;;
1153
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154
 
    pdfdir=$ac_optarg ;;
1155
 
 
1156
 
  -psdir | --psdir | --psdi | --psd | --ps)
1157
 
    ac_prev=psdir ;;
1158
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159
 
    psdir=$ac_optarg ;;
1160
 
 
1161
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162
 
  | -silent | --silent | --silen | --sile | --sil)
1163
 
    silent=yes ;;
1164
 
 
1165
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166
 
    ac_prev=sbindir ;;
1167
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168
 
  | --sbi=* | --sb=*)
1169
 
    sbindir=$ac_optarg ;;
1170
 
 
1171
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173
 
  | --sharedst | --shareds | --shared | --share | --shar \
1174
 
  | --sha | --sh)
1175
 
    ac_prev=sharedstatedir ;;
1176
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179
 
  | --sha=* | --sh=*)
1180
 
    sharedstatedir=$ac_optarg ;;
1181
 
 
1182
 
  -site | --site | --sit)
1183
 
    ac_prev=site ;;
1184
 
  -site=* | --site=* | --sit=*)
1185
 
    site=$ac_optarg ;;
1186
 
 
1187
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188
 
    ac_prev=srcdir ;;
1189
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190
 
    srcdir=$ac_optarg ;;
1191
 
 
1192
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1194
 
    ac_prev=sysconfdir ;;
1195
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197
 
    sysconfdir=$ac_optarg ;;
1198
 
 
1199
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1200
 
    ac_prev=target_alias ;;
1201
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202
 
    target_alias=$ac_optarg ;;
1203
 
 
1204
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205
 
    verbose=yes ;;
1206
 
 
1207
 
  -version | --version | --versio | --versi | --vers | -V)
1208
 
    ac_init_version=: ;;
1209
 
 
1210
 
  -with-* | --with-*)
1211
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212
 
    # Reject names that are not valid shell variable names.
1213
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214
 
      as_fn_error $? "invalid package name: $ac_useropt"
1215
 
    ac_useropt_orig=$ac_useropt
1216
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217
 
    case $ac_user_opts in
1218
 
      *"
1219
 
"with_$ac_useropt"
1220
 
"*) ;;
1221
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222
 
         ac_unrecognized_sep=', ';;
1223
 
    esac
1224
 
    eval with_$ac_useropt=\$ac_optarg ;;
1225
 
 
1226
 
  -without-* | --without-*)
1227
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228
 
    # Reject names that are not valid shell variable names.
1229
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230
 
      as_fn_error $? "invalid package name: $ac_useropt"
1231
 
    ac_useropt_orig=$ac_useropt
1232
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233
 
    case $ac_user_opts in
1234
 
      *"
1235
 
"with_$ac_useropt"
1236
 
"*) ;;
1237
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238
 
         ac_unrecognized_sep=', ';;
1239
 
    esac
1240
 
    eval with_$ac_useropt=no ;;
1241
 
 
1242
 
  --x)
1243
 
    # Obsolete; use --with-x.
1244
 
    with_x=yes ;;
1245
 
 
1246
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247
 
  | --x-incl | --x-inc | --x-in | --x-i)
1248
 
    ac_prev=x_includes ;;
1249
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251
 
    x_includes=$ac_optarg ;;
1252
 
 
1253
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255
 
    ac_prev=x_libraries ;;
1256
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258
 
    x_libraries=$ac_optarg ;;
1259
 
 
1260
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261
 
Try \`$0 --help' for more information"
1262
 
    ;;
1263
 
 
1264
 
  *=*)
1265
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266
 
    # Reject names that are not valid shell variable names.
1267
 
    case $ac_envvar in #(
1268
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1269
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270
 
    esac
1271
 
    eval $ac_envvar=\$ac_optarg
1272
 
    export $ac_envvar ;;
1273
 
 
1274
 
  *)
1275
 
    # FIXME: should be removed in autoconf 3.0.
1276
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279
 
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280
 
    ;;
1281
 
 
1282
 
  esac
1283
 
done
1284
 
 
1285
 
if test -n "$ac_prev"; then
1286
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287
 
  as_fn_error $? "missing argument to $ac_option"
1288
 
fi
1289
 
 
1290
 
if test -n "$ac_unrecognized_opts"; then
1291
 
  case $enable_option_checking in
1292
 
    no) ;;
1293
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295
 
  esac
1296
 
fi
1297
 
 
1298
 
# Check all directory arguments for consistency.
1299
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1301
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302
 
                libdir localedir mandir
1303
 
do
1304
 
  eval ac_val=\$$ac_var
1305
 
  # Remove trailing slashes.
1306
 
  case $ac_val in
1307
 
    */ )
1308
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309
 
      eval $ac_var=\$ac_val;;
1310
 
  esac
1311
 
  # Be sure to have absolute directory names.
1312
 
  case $ac_val in
1313
 
    [\\/$]* | ?:[\\/]* )  continue;;
1314
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315
 
  esac
1316
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317
 
done
1318
 
 
1319
 
# There might be people who depend on the old broken behavior: `$host'
1320
 
# used to hold the argument of --host etc.
1321
 
# FIXME: To remove some day.
1322
 
build=$build_alias
1323
 
host=$host_alias
1324
 
target=$target_alias
1325
 
 
1326
 
# FIXME: To remove some day.
1327
 
if test "x$host_alias" != x; then
1328
 
  if test "x$build_alias" = x; then
1329
 
    cross_compiling=maybe
1330
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1331
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1332
 
  elif test "x$build_alias" != "x$host_alias"; then
1333
 
    cross_compiling=yes
1334
 
  fi
1335
 
fi
1336
 
 
1337
 
ac_tool_prefix=
1338
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
 
 
1340
 
test "$silent" = yes && exec 6>/dev/null
1341
 
 
1342
 
 
1343
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344
 
ac_ls_di=`ls -di .` &&
1345
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346
 
  as_fn_error $? "working directory cannot be determined"
1347
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348
 
  as_fn_error $? "pwd does not report name of working directory"
1349
 
 
1350
 
 
1351
 
# Find the source files, if location was not specified.
1352
 
if test -z "$srcdir"; then
1353
 
  ac_srcdir_defaulted=yes
1354
 
  # Try the directory containing this script, then the parent directory.
1355
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1356
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1358
 
         X"$as_myself" : 'X\(//\)$' \| \
1359
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360
 
$as_echo X"$as_myself" |
1361
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362
 
            s//\1/
1363
 
            q
1364
 
          }
1365
 
          /^X\(\/\/\)[^/].*/{
1366
 
            s//\1/
1367
 
            q
1368
 
          }
1369
 
          /^X\(\/\/\)$/{
1370
 
            s//\1/
1371
 
            q
1372
 
          }
1373
 
          /^X\(\/\).*/{
1374
 
            s//\1/
1375
 
            q
1376
 
          }
1377
 
          s/.*/./; q'`
1378
 
  srcdir=$ac_confdir
1379
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1380
 
    srcdir=..
1381
 
  fi
1382
 
else
1383
 
  ac_srcdir_defaulted=no
1384
 
fi
1385
 
if test ! -r "$srcdir/$ac_unique_file"; then
1386
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388
 
fi
1389
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390
 
ac_abs_confdir=`(
1391
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392
 
        pwd)`
1393
 
# When building in place, set srcdir=.
1394
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1395
 
  srcdir=.
1396
 
fi
1397
 
# Remove unnecessary trailing slashes from srcdir.
1398
 
# Double slashes in file names in object file debugging info
1399
 
# mess up M-x gdb in Emacs.
1400
 
case $srcdir in
1401
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402
 
esac
1403
 
for ac_var in $ac_precious_vars; do
1404
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1406
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408
 
done
1409
 
 
1410
 
#
1411
 
# Report the --help message.
1412
 
#
1413
 
if test "$ac_init_help" = "long"; then
1414
 
  # Omit some internal or obsolete options to make the list less imposing.
1415
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1416
 
  cat <<_ACEOF
1417
 
\`configure' configures xf86-input-wacom 0.14.0 to adapt to many kinds of systems.
1418
 
 
1419
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1420
 
 
1421
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
 
 
1424
 
Defaults for the options are specified in brackets.
1425
 
 
1426
 
Configuration:
1427
 
  -h, --help              display this help and exit
1428
 
      --help=short        display options specific to this package
1429
 
      --help=recursive    display the short help of all the included packages
1430
 
  -V, --version           display version information and exit
1431
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1432
 
      --cache-file=FILE   cache test results in FILE [disabled]
1433
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1434
 
  -n, --no-create         do not create output files
1435
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
 
 
1437
 
Installation directories:
1438
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1439
 
                          [$ac_default_prefix]
1440
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441
 
                          [PREFIX]
1442
 
 
1443
 
By default, \`make install' will install all the files in
1444
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446
 
for instance \`--prefix=\$HOME'.
1447
 
 
1448
 
For better control, use the options below.
1449
 
 
1450
 
Fine tuning of the installation directories:
1451
 
  --bindir=DIR            user executables [EPREFIX/bin]
1452
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1454
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1458
 
  --includedir=DIR        C header files [PREFIX/include]
1459
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1460
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1461
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1462
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1463
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1464
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1465
 
  --docdir=DIR            documentation root
1466
 
                          [DATAROOTDIR/doc/xf86-input-wacom]
1467
 
  --htmldir=DIR           html documentation [DOCDIR]
1468
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1469
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1470
 
  --psdir=DIR             ps documentation [DOCDIR]
1471
 
_ACEOF
1472
 
 
1473
 
  cat <<\_ACEOF
1474
 
 
1475
 
Program names:
1476
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
 
 
1480
 
System types:
1481
 
  --build=BUILD     configure for building on BUILD [guessed]
1482
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483
 
_ACEOF
1484
 
fi
1485
 
 
1486
 
if test -n "$ac_init_help"; then
1487
 
  case $ac_init_help in
1488
 
     short | recursive ) echo "Configuration of xf86-input-wacom 0.14.0:";;
1489
 
   esac
1490
 
  cat <<\_ACEOF
1491
 
 
1492
 
Optional Features:
1493
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1494
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1497
 
                          (and sometimes confusing) to the casual installer
1498
 
  --disable-dependency-tracking  speeds up one-time build
1499
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1500
 
  --enable-static[=PKGS]  build static libraries [default=no]
1501
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1502
 
  --enable-fast-install[=PKGS]
1503
 
                          optimize for fast installation [default=yes]
1504
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1505
 
  --disable-selective-werror
1506
 
                          Turn off selective compiler errors. (default:
1507
 
                          enabled)
1508
 
  --enable-strict-compilation
1509
 
                          Enable all warnings from compiler and make them
1510
 
                          errors (default: disabled)
1511
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1512
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1513
 
  --enable-debug          Enable debugging (default: disabled)
1514
 
  --enable-unit-tests     Enable unit-tests (default: auto)
1515
 
 
1516
 
Optional Packages:
1517
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519
 
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1520
 
                          both]
1521
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522
 
  --with-sysroot=DIR Search for dependent libraries within DIR
1523
 
                        (or the compiler's sysroot if not specified).
1524
 
  --with-doxygen          Use doxygen to regenerate documentation (default:
1525
 
                          auto)
1526
 
 
1527
 
  --with-xorg-module-dir=DIR
1528
 
                          Default xorg module directory
1529
 
                          [[default=$libdir/xorg/modules]]
1530
 
  --with-xorg-conf-dir=DIR
1531
 
                          Default xorg.conf.d directory [[default=from
1532
 
                          $PKG_CONFIG xorg-server]]
1533
 
 
1534
 
Some influential environment variables:
1535
 
  CC          C compiler command
1536
 
  CFLAGS      C compiler flags
1537
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1538
 
              nonstandard directory <lib dir>
1539
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1540
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541
 
              you have headers in a nonstandard directory <include dir>
1542
 
  CPP         C preprocessor
1543
 
  PKG_CONFIG  path to pkg-config utility
1544
 
  PKG_CONFIG_PATH
1545
 
              directories to add to pkg-config's search path
1546
 
  PKG_CONFIG_LIBDIR
1547
 
              path overriding pkg-config's built-in search path
1548
 
  DOXYGEN     Path to doxygen command
1549
 
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1550
 
  XORG_LIBS   linker flags for XORG, overriding pkg-config
1551
 
  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1552
 
  X11_LIBS    linker flags for X11, overriding pkg-config
1553
 
  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1554
 
  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1555
 
 
1556
 
Use these variables to override the choices made by `configure' or to help
1557
 
it to find libraries and programs with nonstandard names/locations.
1558
 
 
1559
 
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1560
 
_ACEOF
1561
 
ac_status=$?
1562
 
fi
1563
 
 
1564
 
if test "$ac_init_help" = "recursive"; then
1565
 
  # If there are subdirs, report their specific --help.
1566
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567
 
    test -d "$ac_dir" ||
1568
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569
 
      continue
1570
 
    ac_builddir=.
1571
 
 
1572
 
case "$ac_dir" in
1573
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574
 
*)
1575
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576
 
  # A ".." for each directory in $ac_dir_suffix.
1577
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578
 
  case $ac_top_builddir_sub in
1579
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581
 
  esac ;;
1582
 
esac
1583
 
ac_abs_top_builddir=$ac_pwd
1584
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585
 
# for backward compatibility:
1586
 
ac_top_builddir=$ac_top_build_prefix
1587
 
 
1588
 
case $srcdir in
1589
 
  .)  # We are building in place.
1590
 
    ac_srcdir=.
1591
 
    ac_top_srcdir=$ac_top_builddir_sub
1592
 
    ac_abs_top_srcdir=$ac_pwd ;;
1593
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1594
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1595
 
    ac_top_srcdir=$srcdir
1596
 
    ac_abs_top_srcdir=$srcdir ;;
1597
 
  *) # Relative name.
1598
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601
 
esac
1602
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
 
 
1604
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1605
 
    # Check for guested configure.
1606
 
    if test -f "$ac_srcdir/configure.gnu"; then
1607
 
      echo &&
1608
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609
 
    elif test -f "$ac_srcdir/configure"; then
1610
 
      echo &&
1611
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1612
 
    else
1613
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614
 
    fi || ac_status=$?
1615
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1616
 
  done
1617
 
fi
1618
 
 
1619
 
test -n "$ac_init_help" && exit $ac_status
1620
 
if $ac_init_version; then
1621
 
  cat <<\_ACEOF
1622
 
xf86-input-wacom configure 0.14.0
1623
 
generated by GNU Autoconf 2.68
1624
 
 
1625
 
Copyright (C) 2010 Free Software Foundation, Inc.
1626
 
This configure script is free software; the Free Software Foundation
1627
 
gives unlimited permission to copy, distribute and modify it.
1628
 
_ACEOF
1629
 
  exit
1630
 
fi
1631
 
 
1632
 
## ------------------------ ##
1633
 
## Autoconf initialization. ##
1634
 
## ------------------------ ##
1635
 
 
1636
 
# ac_fn_c_try_compile LINENO
1637
 
# --------------------------
1638
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1639
 
ac_fn_c_try_compile ()
1640
 
{
1641
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642
 
  rm -f conftest.$ac_objext
1643
 
  if { { ac_try="$ac_compile"
1644
 
case "(($ac_try" in
1645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646
 
  *) ac_try_echo=$ac_try;;
1647
 
esac
1648
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649
 
$as_echo "$ac_try_echo"; } >&5
1650
 
  (eval "$ac_compile") 2>conftest.err
1651
 
  ac_status=$?
1652
 
  if test -s conftest.err; then
1653
 
    grep -v '^ *+' conftest.err >conftest.er1
1654
 
    cat conftest.er1 >&5
1655
 
    mv -f conftest.er1 conftest.err
1656
 
  fi
1657
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658
 
  test $ac_status = 0; } && {
1659
 
         test -z "$ac_c_werror_flag" ||
1660
 
         test ! -s conftest.err
1661
 
       } && test -s conftest.$ac_objext; then :
1662
 
  ac_retval=0
1663
 
else
1664
 
  $as_echo "$as_me: failed program was:" >&5
1665
 
sed 's/^/| /' conftest.$ac_ext >&5
1666
 
 
1667
 
        ac_retval=1
1668
 
fi
1669
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
 
  as_fn_set_status $ac_retval
1671
 
 
1672
 
} # ac_fn_c_try_compile
1673
 
 
1674
 
# ac_fn_c_try_cpp LINENO
1675
 
# ----------------------
1676
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677
 
ac_fn_c_try_cpp ()
1678
 
{
1679
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1681
 
case "(($ac_try" in
1682
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683
 
  *) ac_try_echo=$ac_try;;
1684
 
esac
1685
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686
 
$as_echo "$ac_try_echo"; } >&5
1687
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688
 
  ac_status=$?
1689
 
  if test -s conftest.err; then
1690
 
    grep -v '^ *+' conftest.err >conftest.er1
1691
 
    cat conftest.er1 >&5
1692
 
    mv -f conftest.er1 conftest.err
1693
 
  fi
1694
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695
 
  test $ac_status = 0; } > conftest.i && {
1696
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697
 
         test ! -s conftest.err
1698
 
       }; then :
1699
 
  ac_retval=0
1700
 
else
1701
 
  $as_echo "$as_me: failed program was:" >&5
1702
 
sed 's/^/| /' conftest.$ac_ext >&5
1703
 
 
1704
 
    ac_retval=1
1705
 
fi
1706
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
 
  as_fn_set_status $ac_retval
1708
 
 
1709
 
} # ac_fn_c_try_cpp
1710
 
 
1711
 
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712
 
# -------------------------------------------------------
1713
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714
 
# the include files in INCLUDES and setting the cache variable VAR
1715
 
# accordingly.
1716
 
ac_fn_c_check_header_mongrel ()
1717
 
{
1718
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
 
  if eval \${$3+:} false; then :
1720
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721
 
$as_echo_n "checking for $2... " >&6; }
1722
 
if eval \${$3+:} false; then :
1723
 
  $as_echo_n "(cached) " >&6
1724
 
fi
1725
 
eval ac_res=\$$3
1726
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727
 
$as_echo "$ac_res" >&6; }
1728
 
else
1729
 
  # Is the header compilable?
1730
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731
 
$as_echo_n "checking $2 usability... " >&6; }
1732
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733
 
/* end confdefs.h.  */
1734
 
$4
1735
 
#include <$2>
1736
 
_ACEOF
1737
 
if ac_fn_c_try_compile "$LINENO"; then :
1738
 
  ac_header_compiler=yes
1739
 
else
1740
 
  ac_header_compiler=no
1741
 
fi
1742
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744
 
$as_echo "$ac_header_compiler" >&6; }
1745
 
 
1746
 
# Is the header present?
1747
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748
 
$as_echo_n "checking $2 presence... " >&6; }
1749
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750
 
/* end confdefs.h.  */
1751
 
#include <$2>
1752
 
_ACEOF
1753
 
if ac_fn_c_try_cpp "$LINENO"; then :
1754
 
  ac_header_preproc=yes
1755
 
else
1756
 
  ac_header_preproc=no
1757
 
fi
1758
 
rm -f conftest.err conftest.i conftest.$ac_ext
1759
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760
 
$as_echo "$ac_header_preproc" >&6; }
1761
 
 
1762
 
# So?  What about this header?
1763
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764
 
  yes:no: )
1765
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769
 
    ;;
1770
 
  no:yes:* )
1771
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1774
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1775
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1778
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1779
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781
 
( $as_echo "## ---------------------------------------------------------------------- ##
1782
 
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1783
 
## ---------------------------------------------------------------------- ##"
1784
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1785
 
    ;;
1786
 
esac
1787
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788
 
$as_echo_n "checking for $2... " >&6; }
1789
 
if eval \${$3+:} false; then :
1790
 
  $as_echo_n "(cached) " >&6
1791
 
else
1792
 
  eval "$3=\$ac_header_compiler"
1793
 
fi
1794
 
eval ac_res=\$$3
1795
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796
 
$as_echo "$ac_res" >&6; }
1797
 
fi
1798
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
 
 
1800
 
} # ac_fn_c_check_header_mongrel
1801
 
 
1802
 
# ac_fn_c_try_run LINENO
1803
 
# ----------------------
1804
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805
 
# that executables *can* be run.
1806
 
ac_fn_c_try_run ()
1807
 
{
1808
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809
 
  if { { ac_try="$ac_link"
1810
 
case "(($ac_try" in
1811
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812
 
  *) ac_try_echo=$ac_try;;
1813
 
esac
1814
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815
 
$as_echo "$ac_try_echo"; } >&5
1816
 
  (eval "$ac_link") 2>&5
1817
 
  ac_status=$?
1818
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820
 
  { { case "(($ac_try" in
1821
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822
 
  *) ac_try_echo=$ac_try;;
1823
 
esac
1824
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825
 
$as_echo "$ac_try_echo"; } >&5
1826
 
  (eval "$ac_try") 2>&5
1827
 
  ac_status=$?
1828
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829
 
  test $ac_status = 0; }; }; then :
1830
 
  ac_retval=0
1831
 
else
1832
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1833
 
       $as_echo "$as_me: failed program was:" >&5
1834
 
sed 's/^/| /' conftest.$ac_ext >&5
1835
 
 
1836
 
       ac_retval=$ac_status
1837
 
fi
1838
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
 
  as_fn_set_status $ac_retval
1841
 
 
1842
 
} # ac_fn_c_try_run
1843
 
 
1844
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845
 
# -------------------------------------------------------
1846
 
# Tests whether HEADER exists and can be compiled using the include files in
1847
 
# INCLUDES, setting the cache variable VAR accordingly.
1848
 
ac_fn_c_check_header_compile ()
1849
 
{
1850
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852
 
$as_echo_n "checking for $2... " >&6; }
1853
 
if eval \${$3+:} false; then :
1854
 
  $as_echo_n "(cached) " >&6
1855
 
else
1856
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857
 
/* end confdefs.h.  */
1858
 
$4
1859
 
#include <$2>
1860
 
_ACEOF
1861
 
if ac_fn_c_try_compile "$LINENO"; then :
1862
 
  eval "$3=yes"
1863
 
else
1864
 
  eval "$3=no"
1865
 
fi
1866
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867
 
fi
1868
 
eval ac_res=\$$3
1869
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870
 
$as_echo "$ac_res" >&6; }
1871
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
 
 
1873
 
} # ac_fn_c_check_header_compile
1874
 
 
1875
 
# ac_fn_c_try_link LINENO
1876
 
# -----------------------
1877
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1878
 
ac_fn_c_try_link ()
1879
 
{
1880
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1882
 
  if { { ac_try="$ac_link"
1883
 
case "(($ac_try" in
1884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885
 
  *) ac_try_echo=$ac_try;;
1886
 
esac
1887
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888
 
$as_echo "$ac_try_echo"; } >&5
1889
 
  (eval "$ac_link") 2>conftest.err
1890
 
  ac_status=$?
1891
 
  if test -s conftest.err; then
1892
 
    grep -v '^ *+' conftest.err >conftest.er1
1893
 
    cat conftest.er1 >&5
1894
 
    mv -f conftest.er1 conftest.err
1895
 
  fi
1896
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897
 
  test $ac_status = 0; } && {
1898
 
         test -z "$ac_c_werror_flag" ||
1899
 
         test ! -s conftest.err
1900
 
       } && test -s conftest$ac_exeext && {
1901
 
         test "$cross_compiling" = yes ||
1902
 
         $as_test_x conftest$ac_exeext
1903
 
       }; then :
1904
 
  ac_retval=0
1905
 
else
1906
 
  $as_echo "$as_me: failed program was:" >&5
1907
 
sed 's/^/| /' conftest.$ac_ext >&5
1908
 
 
1909
 
        ac_retval=1
1910
 
fi
1911
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913
 
  # interfere with the next link command; also delete a directory that is
1914
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1915
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
 
  as_fn_set_status $ac_retval
1918
 
 
1919
 
} # ac_fn_c_try_link
1920
 
 
1921
 
# ac_fn_c_check_func LINENO FUNC VAR
1922
 
# ----------------------------------
1923
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924
 
ac_fn_c_check_func ()
1925
 
{
1926
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928
 
$as_echo_n "checking for $2... " >&6; }
1929
 
if eval \${$3+:} false; then :
1930
 
  $as_echo_n "(cached) " >&6
1931
 
else
1932
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933
 
/* end confdefs.h.  */
1934
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1936
 
#define $2 innocuous_$2
1937
 
 
1938
 
/* System header to define __stub macros and hopefully few prototypes,
1939
 
    which can conflict with char $2 (); below.
1940
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941
 
    <limits.h> exists even on freestanding compilers.  */
1942
 
 
1943
 
#ifdef __STDC__
1944
 
# include <limits.h>
1945
 
#else
1946
 
# include <assert.h>
1947
 
#endif
1948
 
 
1949
 
#undef $2
1950
 
 
1951
 
/* Override any GCC internal prototype to avoid an error.
1952
 
   Use char because int might match the return type of a GCC
1953
 
   builtin and then its argument prototype would still apply.  */
1954
 
#ifdef __cplusplus
1955
 
extern "C"
1956
 
#endif
1957
 
char $2 ();
1958
 
/* The GNU C library defines this for functions which it implements
1959
 
    to always fail with ENOSYS.  Some functions are actually named
1960
 
    something starting with __ and the normal name is an alias.  */
1961
 
#if defined __stub_$2 || defined __stub___$2
1962
 
choke me
1963
 
#endif
1964
 
 
1965
 
int
1966
 
main ()
1967
 
{
1968
 
return $2 ();
1969
 
  ;
1970
 
  return 0;
1971
 
}
1972
 
_ACEOF
1973
 
if ac_fn_c_try_link "$LINENO"; then :
1974
 
  eval "$3=yes"
1975
 
else
1976
 
  eval "$3=no"
1977
 
fi
1978
 
rm -f core conftest.err conftest.$ac_objext \
1979
 
    conftest$ac_exeext conftest.$ac_ext
1980
 
fi
1981
 
eval ac_res=\$$3
1982
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983
 
$as_echo "$ac_res" >&6; }
1984
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
 
 
1986
 
} # ac_fn_c_check_func
1987
 
 
1988
 
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1989
 
# ---------------------------------------------
1990
 
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1991
 
# accordingly.
1992
 
ac_fn_c_check_decl ()
1993
 
{
1994
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995
 
  as_decl_name=`echo $2|sed 's/ *(.*//'`
1996
 
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1997
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1998
 
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1999
 
if eval \${$3+:} false; then :
2000
 
  $as_echo_n "(cached) " >&6
2001
 
else
2002
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003
 
/* end confdefs.h.  */
2004
 
$4
2005
 
int
2006
 
main ()
2007
 
{
2008
 
#ifndef $as_decl_name
2009
 
#ifdef __cplusplus
2010
 
  (void) $as_decl_use;
2011
 
#else
2012
 
  (void) $as_decl_name;
2013
 
#endif
2014
 
#endif
2015
 
 
2016
 
  ;
2017
 
  return 0;
2018
 
}
2019
 
_ACEOF
2020
 
if ac_fn_c_try_compile "$LINENO"; then :
2021
 
  eval "$3=yes"
2022
 
else
2023
 
  eval "$3=no"
2024
 
fi
2025
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026
 
fi
2027
 
eval ac_res=\$$3
2028
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029
 
$as_echo "$ac_res" >&6; }
2030
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
 
 
2032
 
} # ac_fn_c_check_decl
2033
 
cat >config.log <<_ACEOF
2034
 
This file contains any messages produced by compilers while
2035
 
running configure, to aid debugging if configure makes a mistake.
2036
 
 
2037
 
It was created by xf86-input-wacom $as_me 0.14.0, which was
2038
 
generated by GNU Autoconf 2.68.  Invocation command line was
2039
 
 
2040
 
  $ $0 $@
2041
 
 
2042
 
_ACEOF
2043
 
exec 5>>config.log
2044
 
{
2045
 
cat <<_ASUNAME
2046
 
## --------- ##
2047
 
## Platform. ##
2048
 
## --------- ##
2049
 
 
2050
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055
 
 
2056
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2058
 
 
2059
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2060
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2061
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2063
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2064
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2065
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2066
 
 
2067
 
_ASUNAME
2068
 
 
2069
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
 
for as_dir in $PATH
2071
 
do
2072
 
  IFS=$as_save_IFS
2073
 
  test -z "$as_dir" && as_dir=.
2074
 
    $as_echo "PATH: $as_dir"
2075
 
  done
2076
 
IFS=$as_save_IFS
2077
 
 
2078
 
} >&5
2079
 
 
2080
 
cat >&5 <<_ACEOF
2081
 
 
2082
 
 
2083
 
## ----------- ##
2084
 
## Core tests. ##
2085
 
## ----------- ##
2086
 
 
2087
 
_ACEOF
2088
 
 
2089
 
 
2090
 
# Keep a trace of the command line.
2091
 
# Strip out --no-create and --no-recursion so they do not pile up.
2092
 
# Strip out --silent because we don't want to record it for future runs.
2093
 
# Also quote any args containing shell meta-characters.
2094
 
# Make two passes to allow for proper duplicate-argument suppression.
2095
 
ac_configure_args=
2096
 
ac_configure_args0=
2097
 
ac_configure_args1=
2098
 
ac_must_keep_next=false
2099
 
for ac_pass in 1 2
2100
 
do
2101
 
  for ac_arg
2102
 
  do
2103
 
    case $ac_arg in
2104
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106
 
    | -silent | --silent | --silen | --sile | --sil)
2107
 
      continue ;;
2108
 
    *\'*)
2109
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110
 
    esac
2111
 
    case $ac_pass in
2112
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113
 
    2)
2114
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2115
 
      if test $ac_must_keep_next = true; then
2116
 
        ac_must_keep_next=false # Got value, back to normal.
2117
 
      else
2118
 
        case $ac_arg in
2119
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2120
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2123
 
            case "$ac_configure_args0 " in
2124
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125
 
            esac
2126
 
            ;;
2127
 
          -* ) ac_must_keep_next=true ;;
2128
 
        esac
2129
 
      fi
2130
 
      as_fn_append ac_configure_args " '$ac_arg'"
2131
 
      ;;
2132
 
    esac
2133
 
  done
2134
 
done
2135
 
{ ac_configure_args0=; unset ac_configure_args0;}
2136
 
{ ac_configure_args1=; unset ac_configure_args1;}
2137
 
 
2138
 
# When interrupted or exit'd, cleanup temporary files, and complete
2139
 
# config.log.  We remove comments because anyway the quotes in there
2140
 
# would cause problems or look ugly.
2141
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2142
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143
 
trap 'exit_status=$?
2144
 
  # Save into config.log some information that might help in debugging.
2145
 
  {
2146
 
    echo
2147
 
 
2148
 
    $as_echo "## ---------------- ##
2149
 
## Cache variables. ##
2150
 
## ---------------- ##"
2151
 
    echo
2152
 
    # The following way of writing the cache mishandles newlines in values,
2153
 
(
2154
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155
 
    eval ac_val=\$$ac_var
2156
 
    case $ac_val in #(
2157
 
    *${as_nl}*)
2158
 
      case $ac_var in #(
2159
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2161
 
      esac
2162
 
      case $ac_var in #(
2163
 
      _ | IFS | as_nl) ;; #(
2164
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2166
 
      esac ;;
2167
 
    esac
2168
 
  done
2169
 
  (set) 2>&1 |
2170
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171
 
    *${as_nl}ac_space=\ *)
2172
 
      sed -n \
2173
 
        "s/'\''/'\''\\\\'\'''\''/g;
2174
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175
 
      ;; #(
2176
 
    *)
2177
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178
 
      ;;
2179
 
    esac |
2180
 
    sort
2181
 
)
2182
 
    echo
2183
 
 
2184
 
    $as_echo "## ----------------- ##
2185
 
## Output variables. ##
2186
 
## ----------------- ##"
2187
 
    echo
2188
 
    for ac_var in $ac_subst_vars
2189
 
    do
2190
 
      eval ac_val=\$$ac_var
2191
 
      case $ac_val in
2192
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193
 
      esac
2194
 
      $as_echo "$ac_var='\''$ac_val'\''"
2195
 
    done | sort
2196
 
    echo
2197
 
 
2198
 
    if test -n "$ac_subst_files"; then
2199
 
      $as_echo "## ------------------- ##
2200
 
## File substitutions. ##
2201
 
## ------------------- ##"
2202
 
      echo
2203
 
      for ac_var in $ac_subst_files
2204
 
      do
2205
 
        eval ac_val=\$$ac_var
2206
 
        case $ac_val in
2207
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208
 
        esac
2209
 
        $as_echo "$ac_var='\''$ac_val'\''"
2210
 
      done | sort
2211
 
      echo
2212
 
    fi
2213
 
 
2214
 
    if test -s confdefs.h; then
2215
 
      $as_echo "## ----------- ##
2216
 
## confdefs.h. ##
2217
 
## ----------- ##"
2218
 
      echo
2219
 
      cat confdefs.h
2220
 
      echo
2221
 
    fi
2222
 
    test "$ac_signal" != 0 &&
2223
 
      $as_echo "$as_me: caught signal $ac_signal"
2224
 
    $as_echo "$as_me: exit $exit_status"
2225
 
  } >&5
2226
 
  rm -f core *.core core.conftest.* &&
2227
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228
 
    exit $exit_status
2229
 
' 0
2230
 
for ac_signal in 1 2 13 15; do
2231
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2232
 
done
2233
 
ac_signal=0
2234
 
 
2235
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2236
 
rm -f -r conftest* confdefs.h
2237
 
 
2238
 
$as_echo "/* confdefs.h */" > confdefs.h
2239
 
 
2240
 
# Predefined preprocessor variables.
2241
 
 
2242
 
cat >>confdefs.h <<_ACEOF
2243
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2244
 
_ACEOF
2245
 
 
2246
 
cat >>confdefs.h <<_ACEOF
2247
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248
 
_ACEOF
2249
 
 
2250
 
cat >>confdefs.h <<_ACEOF
2251
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2252
 
_ACEOF
2253
 
 
2254
 
cat >>confdefs.h <<_ACEOF
2255
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2256
 
_ACEOF
2257
 
 
2258
 
cat >>confdefs.h <<_ACEOF
2259
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260
 
_ACEOF
2261
 
 
2262
 
cat >>confdefs.h <<_ACEOF
2263
 
#define PACKAGE_URL "$PACKAGE_URL"
2264
 
_ACEOF
2265
 
 
2266
 
 
2267
 
# Let the site file select an alternate cache file if it wants to.
2268
 
# Prefer an explicitly selected file to automatically selected ones.
2269
 
ac_site_file1=NONE
2270
 
ac_site_file2=NONE
2271
 
if test -n "$CONFIG_SITE"; then
2272
 
  # We do not want a PATH search for config.site.
2273
 
  case $CONFIG_SITE in #((
2274
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2275
 
    */*) ac_site_file1=$CONFIG_SITE;;
2276
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2277
 
  esac
2278
 
elif test "x$prefix" != xNONE; then
2279
 
  ac_site_file1=$prefix/share/config.site
2280
 
  ac_site_file2=$prefix/etc/config.site
2281
 
else
2282
 
  ac_site_file1=$ac_default_prefix/share/config.site
2283
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2284
 
fi
2285
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286
 
do
2287
 
  test "x$ac_site_file" = xNONE && continue
2288
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291
 
    sed 's/^/| /' "$ac_site_file" >&5
2292
 
    . "$ac_site_file" \
2293
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295
 
as_fn_error $? "failed to load site script $ac_site_file
2296
 
See \`config.log' for more details" "$LINENO" 5; }
2297
 
  fi
2298
 
done
2299
 
 
2300
 
if test -r "$cache_file"; then
2301
 
  # Some versions of bash will fail to source /dev/null (special files
2302
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2303
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2306
 
    case $cache_file in
2307
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308
 
      *)                      . "./$cache_file";;
2309
 
    esac
2310
 
  fi
2311
 
else
2312
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2314
 
  >$cache_file
2315
 
fi
2316
 
 
2317
 
# Check that the precious variables saved in the cache have kept the same
2318
 
# value.
2319
 
ac_cache_corrupted=false
2320
 
for ac_var in $ac_precious_vars; do
2321
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2323
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2325
 
  case $ac_old_set,$ac_new_set in
2326
 
    set,)
2327
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329
 
      ac_cache_corrupted=: ;;
2330
 
    ,set)
2331
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333
 
      ac_cache_corrupted=: ;;
2334
 
    ,);;
2335
 
    *)
2336
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2337
 
        # differences in whitespace do not lead to failure.
2338
 
        ac_old_val_w=`echo x $ac_old_val`
2339
 
        ac_new_val_w=`echo x $ac_new_val`
2340
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343
 
          ac_cache_corrupted=:
2344
 
        else
2345
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347
 
          eval $ac_var=\$ac_old_val
2348
 
        fi
2349
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2350
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2351
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2352
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2353
 
      fi;;
2354
 
  esac
2355
 
  # Pass precious variables to config.status.
2356
 
  if test "$ac_new_set" = set; then
2357
 
    case $ac_new_val in
2358
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2360
 
    esac
2361
 
    case " $ac_configure_args " in
2362
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2363
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2364
 
    esac
2365
 
  fi
2366
 
done
2367
 
if $ac_cache_corrupted; then
2368
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2373
 
fi
2374
 
## -------------------- ##
2375
 
## Main body of script. ##
2376
 
## -------------------- ##
2377
 
 
2378
 
ac_ext=c
2379
 
ac_cpp='$CPP $CPPFLAGS'
2380
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
 
 
2384
 
 
2385
 
 
2386
 
 
2387
 
ac_config_headers="$ac_config_headers config.h"
2388
 
 
2389
 
 
2390
 
# Initialize Automake
2391
 
am__api_version='1.11'
2392
 
 
2393
 
ac_aux_dir=
2394
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2395
 
  if test -f "$ac_dir/install-sh"; then
2396
 
    ac_aux_dir=$ac_dir
2397
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2398
 
    break
2399
 
  elif test -f "$ac_dir/install.sh"; then
2400
 
    ac_aux_dir=$ac_dir
2401
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2402
 
    break
2403
 
  elif test -f "$ac_dir/shtool"; then
2404
 
    ac_aux_dir=$ac_dir
2405
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2406
 
    break
2407
 
  fi
2408
 
done
2409
 
if test -z "$ac_aux_dir"; then
2410
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2411
 
fi
2412
 
 
2413
 
# These three variables are undocumented and unsupported,
2414
 
# and are intended to be withdrawn in a future Autoconf release.
2415
 
# They can cause serious problems if a builder's source tree is in a directory
2416
 
# whose full name contains unusual characters.
2417
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2418
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2419
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2420
 
 
2421
 
 
2422
 
# Find a good install program.  We prefer a C program (faster),
2423
 
# so one script is as good as another.  But avoid the broken or
2424
 
# incompatible versions:
2425
 
# SysV /etc/install, /usr/sbin/install
2426
 
# SunOS /usr/etc/install
2427
 
# IRIX /sbin/install
2428
 
# AIX /bin/install
2429
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2430
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433
 
# OS/2's system install, which has a completely different semantic
2434
 
# ./install, which can be erroneously created by make from ./install.sh.
2435
 
# Reject install programs that cannot install multiple files.
2436
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2437
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2438
 
if test -z "$INSTALL"; then
2439
 
if ${ac_cv_path_install+:} false; then :
2440
 
  $as_echo_n "(cached) " >&6
2441
 
else
2442
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443
 
for as_dir in $PATH
2444
 
do
2445
 
  IFS=$as_save_IFS
2446
 
  test -z "$as_dir" && as_dir=.
2447
 
    # Account for people who put trailing slashes in PATH elements.
2448
 
case $as_dir/ in #((
2449
 
  ./ | .// | /[cC]/* | \
2450
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2451
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2452
 
  /usr/ucb/* ) ;;
2453
 
  *)
2454
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2455
 
    # Don't use installbsd from OSF since it installs stuff as root
2456
 
    # by default.
2457
 
    for ac_prog in ginstall scoinst install; do
2458
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2459
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2460
 
          if test $ac_prog = install &&
2461
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2462
 
            # AIX install.  It has an incompatible calling convention.
2463
 
            :
2464
 
          elif test $ac_prog = install &&
2465
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466
 
            # program-specific install script used by HP pwplus--don't use.
2467
 
            :
2468
 
          else
2469
 
            rm -rf conftest.one conftest.two conftest.dir
2470
 
            echo one > conftest.one
2471
 
            echo two > conftest.two
2472
 
            mkdir conftest.dir
2473
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2474
 
              test -s conftest.one && test -s conftest.two &&
2475
 
              test -s conftest.dir/conftest.one &&
2476
 
              test -s conftest.dir/conftest.two
2477
 
            then
2478
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2479
 
              break 3
2480
 
            fi
2481
 
          fi
2482
 
        fi
2483
 
      done
2484
 
    done
2485
 
    ;;
2486
 
esac
2487
 
 
2488
 
  done
2489
 
IFS=$as_save_IFS
2490
 
 
2491
 
rm -rf conftest.one conftest.two conftest.dir
2492
 
 
2493
 
fi
2494
 
  if test "${ac_cv_path_install+set}" = set; then
2495
 
    INSTALL=$ac_cv_path_install
2496
 
  else
2497
 
    # As a last resort, use the slow shell script.  Don't cache a
2498
 
    # value for INSTALL within a source directory, because that will
2499
 
    # break other packages using the cache if that directory is
2500
 
    # removed, or if the value is a relative name.
2501
 
    INSTALL=$ac_install_sh
2502
 
  fi
2503
 
fi
2504
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2505
 
$as_echo "$INSTALL" >&6; }
2506
 
 
2507
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2508
 
# It thinks the first close brace ends the variable substitution.
2509
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510
 
 
2511
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512
 
 
2513
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514
 
 
2515
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2516
 
$as_echo_n "checking whether build environment is sane... " >&6; }
2517
 
# Just in case
2518
 
sleep 1
2519
 
echo timestamp > conftest.file
2520
 
# Reject unsafe characters in $srcdir or the absolute working directory
2521
 
# name.  Accept space and tab only in the latter.
2522
 
am_lf='
2523
 
'
2524
 
case `pwd` in
2525
 
  *[\\\"\#\$\&\'\`$am_lf]*)
2526
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2527
 
esac
2528
 
case $srcdir in
2529
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2530
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2531
 
esac
2532
 
 
2533
 
# Do `set' in a subshell so we don't clobber the current shell's
2534
 
# arguments.  Must try -L first in case configure is actually a
2535
 
# symlink; some systems play weird games with the mod time of symlinks
2536
 
# (eg FreeBSD returns the mod time of the symlink's containing
2537
 
# directory).
2538
 
if (
2539
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2540
 
   if test "$*" = "X"; then
2541
 
      # -L didn't work.
2542
 
      set X `ls -t "$srcdir/configure" conftest.file`
2543
 
   fi
2544
 
   rm -f conftest.file
2545
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2546
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2547
 
 
2548
 
      # If neither matched, then we have a broken ls.  This can happen
2549
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2550
 
      # broken ls alias from the environment.  This has actually
2551
 
      # happened.  Such a system could not be considered "sane".
2552
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2553
 
alias in your environment" "$LINENO" 5
2554
 
   fi
2555
 
 
2556
 
   test "$2" = conftest.file
2557
 
   )
2558
 
then
2559
 
   # Ok.
2560
 
   :
2561
 
else
2562
 
   as_fn_error $? "newly created file is older than distributed files!
2563
 
Check your system clock" "$LINENO" 5
2564
 
fi
2565
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566
 
$as_echo "yes" >&6; }
2567
 
test "$program_prefix" != NONE &&
2568
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2569
 
# Use a double $ so make ignores it.
2570
 
test "$program_suffix" != NONE &&
2571
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2572
 
# Double any \ or $.
2573
 
# By default was `s,x,x', remove it if useless.
2574
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2575
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2576
 
 
2577
 
# expand $ac_aux_dir to an absolute path
2578
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2579
 
 
2580
 
if test x"${MISSING+set}" != xset; then
2581
 
  case $am_aux_dir in
2582
 
  *\ * | *\     *)
2583
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2584
 
  *)
2585
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2586
 
  esac
2587
 
fi
2588
 
# Use eval to expand $SHELL
2589
 
if eval "$MISSING --run true"; then
2590
 
  am_missing_run="$MISSING --run "
2591
 
else
2592
 
  am_missing_run=
2593
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2594
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2595
 
fi
2596
 
 
2597
 
if test x"${install_sh}" != xset; then
2598
 
  case $am_aux_dir in
2599
 
  *\ * | *\     *)
2600
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2601
 
  *)
2602
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2603
 
  esac
2604
 
fi
2605
 
 
2606
 
# Installed binaries are usually stripped using `strip' when the user
2607
 
# run `make install-strip'.  However `strip' might not be the right
2608
 
# tool to use in cross-compilation environments, therefore Automake
2609
 
# will honor the `STRIP' environment variable to overrule this program.
2610
 
if test "$cross_compiling" != no; then
2611
 
  if test -n "$ac_tool_prefix"; then
2612
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2613
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2614
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615
 
$as_echo_n "checking for $ac_word... " >&6; }
2616
 
if ${ac_cv_prog_STRIP+:} false; then :
2617
 
  $as_echo_n "(cached) " >&6
2618
 
else
2619
 
  if test -n "$STRIP"; then
2620
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2621
 
else
2622
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623
 
for as_dir in $PATH
2624
 
do
2625
 
  IFS=$as_save_IFS
2626
 
  test -z "$as_dir" && as_dir=.
2627
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2628
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2630
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631
 
    break 2
2632
 
  fi
2633
 
done
2634
 
  done
2635
 
IFS=$as_save_IFS
2636
 
 
2637
 
fi
2638
 
fi
2639
 
STRIP=$ac_cv_prog_STRIP
2640
 
if test -n "$STRIP"; then
2641
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2642
 
$as_echo "$STRIP" >&6; }
2643
 
else
2644
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
 
$as_echo "no" >&6; }
2646
 
fi
2647
 
 
2648
 
 
2649
 
fi
2650
 
if test -z "$ac_cv_prog_STRIP"; then
2651
 
  ac_ct_STRIP=$STRIP
2652
 
  # Extract the first word of "strip", so it can be a program name with args.
2653
 
set dummy strip; ac_word=$2
2654
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655
 
$as_echo_n "checking for $ac_word... " >&6; }
2656
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2657
 
  $as_echo_n "(cached) " >&6
2658
 
else
2659
 
  if test -n "$ac_ct_STRIP"; then
2660
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2661
 
else
2662
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663
 
for as_dir in $PATH
2664
 
do
2665
 
  IFS=$as_save_IFS
2666
 
  test -z "$as_dir" && as_dir=.
2667
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2668
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669
 
    ac_cv_prog_ac_ct_STRIP="strip"
2670
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671
 
    break 2
2672
 
  fi
2673
 
done
2674
 
  done
2675
 
IFS=$as_save_IFS
2676
 
 
2677
 
fi
2678
 
fi
2679
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2680
 
if test -n "$ac_ct_STRIP"; then
2681
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2682
 
$as_echo "$ac_ct_STRIP" >&6; }
2683
 
else
2684
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685
 
$as_echo "no" >&6; }
2686
 
fi
2687
 
 
2688
 
  if test "x$ac_ct_STRIP" = x; then
2689
 
    STRIP=":"
2690
 
  else
2691
 
    case $cross_compiling:$ac_tool_warned in
2692
 
yes:)
2693
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695
 
ac_tool_warned=yes ;;
2696
 
esac
2697
 
    STRIP=$ac_ct_STRIP
2698
 
  fi
2699
 
else
2700
 
  STRIP="$ac_cv_prog_STRIP"
2701
 
fi
2702
 
 
2703
 
fi
2704
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2705
 
 
2706
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2707
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2708
 
if test -z "$MKDIR_P"; then
2709
 
  if ${ac_cv_path_mkdir+:} false; then :
2710
 
  $as_echo_n "(cached) " >&6
2711
 
else
2712
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2714
 
do
2715
 
  IFS=$as_save_IFS
2716
 
  test -z "$as_dir" && as_dir=.
2717
 
    for ac_prog in mkdir gmkdir; do
2718
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2719
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2720
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2721
 
             'mkdir (GNU coreutils) '* | \
2722
 
             'mkdir (coreutils) '* | \
2723
 
             'mkdir (fileutils) '4.1*)
2724
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2725
 
               break 3;;
2726
 
           esac
2727
 
         done
2728
 
       done
2729
 
  done
2730
 
IFS=$as_save_IFS
2731
 
 
2732
 
fi
2733
 
 
2734
 
  test -d ./--version && rmdir ./--version
2735
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2736
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2737
 
  else
2738
 
    # As a last resort, use the slow shell script.  Don't cache a
2739
 
    # value for MKDIR_P within a source directory, because that will
2740
 
    # break other packages using the cache if that directory is
2741
 
    # removed, or if the value is a relative name.
2742
 
    MKDIR_P="$ac_install_sh -d"
2743
 
  fi
2744
 
fi
2745
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2746
 
$as_echo "$MKDIR_P" >&6; }
2747
 
 
2748
 
mkdir_p="$MKDIR_P"
2749
 
case $mkdir_p in
2750
 
  [\\/$]* | ?:[\\/]*) ;;
2751
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2752
 
esac
2753
 
 
2754
 
for ac_prog in gawk mawk nawk awk
2755
 
do
2756
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2757
 
set dummy $ac_prog; ac_word=$2
2758
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759
 
$as_echo_n "checking for $ac_word... " >&6; }
2760
 
if ${ac_cv_prog_AWK+:} false; then :
2761
 
  $as_echo_n "(cached) " >&6
2762
 
else
2763
 
  if test -n "$AWK"; then
2764
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765
 
else
2766
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767
 
for as_dir in $PATH
2768
 
do
2769
 
  IFS=$as_save_IFS
2770
 
  test -z "$as_dir" && as_dir=.
2771
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2772
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773
 
    ac_cv_prog_AWK="$ac_prog"
2774
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775
 
    break 2
2776
 
  fi
2777
 
done
2778
 
  done
2779
 
IFS=$as_save_IFS
2780
 
 
2781
 
fi
2782
 
fi
2783
 
AWK=$ac_cv_prog_AWK
2784
 
if test -n "$AWK"; then
2785
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786
 
$as_echo "$AWK" >&6; }
2787
 
else
2788
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789
 
$as_echo "no" >&6; }
2790
 
fi
2791
 
 
2792
 
 
2793
 
  test -n "$AWK" && break
2794
 
done
2795
 
 
2796
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798
 
set x ${MAKE-make}
2799
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800
 
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801
 
  $as_echo_n "(cached) " >&6
2802
 
else
2803
 
  cat >conftest.make <<\_ACEOF
2804
 
SHELL = /bin/sh
2805
 
all:
2806
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2807
 
_ACEOF
2808
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810
 
  *@@@%%%=?*=@@@%%%*)
2811
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2812
 
  *)
2813
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2814
 
esac
2815
 
rm -f conftest.make
2816
 
fi
2817
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819
 
$as_echo "yes" >&6; }
2820
 
  SET_MAKE=
2821
 
else
2822
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823
 
$as_echo "no" >&6; }
2824
 
  SET_MAKE="MAKE=${MAKE-make}"
2825
 
fi
2826
 
 
2827
 
rm -rf .tst 2>/dev/null
2828
 
mkdir .tst 2>/dev/null
2829
 
if test -d .tst; then
2830
 
  am__leading_dot=.
2831
 
else
2832
 
  am__leading_dot=_
2833
 
fi
2834
 
rmdir .tst 2>/dev/null
2835
 
 
2836
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838
 
  # is not polluted with repeated "-I."
2839
 
  am__isrc=' -I$(srcdir)'
2840
 
  # test to see if srcdir already configured
2841
 
  if test -f $srcdir/config.status; then
2842
 
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843
 
  fi
2844
 
fi
2845
 
 
2846
 
# test whether we have cygpath
2847
 
if test -z "$CYGPATH_W"; then
2848
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2849
 
    CYGPATH_W='cygpath -w'
2850
 
  else
2851
 
    CYGPATH_W=echo
2852
 
  fi
2853
 
fi
2854
 
 
2855
 
 
2856
 
# Define the identity of the package.
2857
 
 PACKAGE='xf86-input-wacom'
2858
 
 VERSION='0.14.0'
2859
 
 
2860
 
 
2861
 
cat >>confdefs.h <<_ACEOF
2862
 
#define PACKAGE "$PACKAGE"
2863
 
_ACEOF
2864
 
 
2865
 
 
2866
 
cat >>confdefs.h <<_ACEOF
2867
 
#define VERSION "$VERSION"
2868
 
_ACEOF
2869
 
 
2870
 
# Some tools Automake needs.
2871
 
 
2872
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2873
 
 
2874
 
 
2875
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2876
 
 
2877
 
 
2878
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2879
 
 
2880
 
 
2881
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2882
 
 
2883
 
 
2884
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885
 
 
2886
 
# We need awk for the "check" target.  The system "awk" is bad on
2887
 
# some platforms.
2888
 
# Always define AMTAR for backward compatibility.  Yes, it's still used
2889
 
# in the wild :-(  We should find a proper way to deprecate it ...
2890
 
AMTAR='$${TAR-tar}'
2891
 
 
2892
 
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2893
 
 
2894
 
 
2895
 
 
2896
 
 
2897
 
 
2898
 
 
2899
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2900
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2901
 
    # Check whether --enable-maintainer-mode was given.
2902
 
if test "${enable_maintainer_mode+set}" = set; then :
2903
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2904
 
else
2905
 
  USE_MAINTAINER_MODE=no
2906
 
fi
2907
 
 
2908
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2909
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2910
 
   if test $USE_MAINTAINER_MODE = yes; then
2911
 
  MAINTAINER_MODE_TRUE=
2912
 
  MAINTAINER_MODE_FALSE='#'
2913
 
else
2914
 
  MAINTAINER_MODE_TRUE='#'
2915
 
  MAINTAINER_MODE_FALSE=
2916
 
fi
2917
 
 
2918
 
  MAINT=$MAINTAINER_MODE_TRUE
2919
 
 
2920
 
 
2921
 
DEPDIR="${am__leading_dot}deps"
2922
 
 
2923
 
ac_config_commands="$ac_config_commands depfiles"
2924
 
 
2925
 
 
2926
 
am_make=${MAKE-make}
2927
 
cat > confinc << 'END'
2928
 
am__doit:
2929
 
        @echo this is the am__doit target
2930
 
.PHONY: am__doit
2931
 
END
2932
 
# If we don't find an include directive, just comment out the code.
2933
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2934
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2935
 
am__include="#"
2936
 
am__quote=
2937
 
_am_result=none
2938
 
# First try GNU make style include.
2939
 
echo "include confinc" > confmf
2940
 
# Ignore all kinds of additional output from `make'.
2941
 
case `$am_make -s -f confmf 2> /dev/null` in #(
2942
 
*the\ am__doit\ target*)
2943
 
  am__include=include
2944
 
  am__quote=
2945
 
  _am_result=GNU
2946
 
  ;;
2947
 
esac
2948
 
# Now try BSD make style include.
2949
 
if test "$am__include" = "#"; then
2950
 
   echo '.include "confinc"' > confmf
2951
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
2952
 
   *the\ am__doit\ target*)
2953
 
     am__include=.include
2954
 
     am__quote="\""
2955
 
     _am_result=BSD
2956
 
     ;;
2957
 
   esac
2958
 
fi
2959
 
 
2960
 
 
2961
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2962
 
$as_echo "$_am_result" >&6; }
2963
 
rm -f confinc confmf
2964
 
 
2965
 
# Check whether --enable-dependency-tracking was given.
2966
 
if test "${enable_dependency_tracking+set}" = set; then :
2967
 
  enableval=$enable_dependency_tracking;
2968
 
fi
2969
 
 
2970
 
if test "x$enable_dependency_tracking" != xno; then
2971
 
  am_depcomp="$ac_aux_dir/depcomp"
2972
 
  AMDEPBACKSLASH='\'
2973
 
  am__nodep='_no'
2974
 
fi
2975
 
 if test "x$enable_dependency_tracking" != xno; then
2976
 
  AMDEP_TRUE=
2977
 
  AMDEP_FALSE='#'
2978
 
else
2979
 
  AMDEP_TRUE='#'
2980
 
  AMDEP_FALSE=
2981
 
fi
2982
 
 
2983
 
 
2984
 
ac_ext=c
2985
 
ac_cpp='$CPP $CPPFLAGS'
2986
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
 
if test -n "$ac_tool_prefix"; then
2990
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993
 
$as_echo_n "checking for $ac_word... " >&6; }
2994
 
if ${ac_cv_prog_CC+:} false; then :
2995
 
  $as_echo_n "(cached) " >&6
2996
 
else
2997
 
  if test -n "$CC"; then
2998
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2999
 
else
3000
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001
 
for as_dir in $PATH
3002
 
do
3003
 
  IFS=$as_save_IFS
3004
 
  test -z "$as_dir" && as_dir=.
3005
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3006
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009
 
    break 2
3010
 
  fi
3011
 
done
3012
 
  done
3013
 
IFS=$as_save_IFS
3014
 
 
3015
 
fi
3016
 
fi
3017
 
CC=$ac_cv_prog_CC
3018
 
if test -n "$CC"; then
3019
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020
 
$as_echo "$CC" >&6; }
3021
 
else
3022
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023
 
$as_echo "no" >&6; }
3024
 
fi
3025
 
 
3026
 
 
3027
 
fi
3028
 
if test -z "$ac_cv_prog_CC"; then
3029
 
  ac_ct_CC=$CC
3030
 
  # Extract the first word of "gcc", so it can be a program name with args.
3031
 
set dummy gcc; ac_word=$2
3032
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033
 
$as_echo_n "checking for $ac_word... " >&6; }
3034
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035
 
  $as_echo_n "(cached) " >&6
3036
 
else
3037
 
  if test -n "$ac_ct_CC"; then
3038
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039
 
else
3040
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041
 
for as_dir in $PATH
3042
 
do
3043
 
  IFS=$as_save_IFS
3044
 
  test -z "$as_dir" && as_dir=.
3045
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3046
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047
 
    ac_cv_prog_ac_ct_CC="gcc"
3048
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049
 
    break 2
3050
 
  fi
3051
 
done
3052
 
  done
3053
 
IFS=$as_save_IFS
3054
 
 
3055
 
fi
3056
 
fi
3057
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058
 
if test -n "$ac_ct_CC"; then
3059
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060
 
$as_echo "$ac_ct_CC" >&6; }
3061
 
else
3062
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063
 
$as_echo "no" >&6; }
3064
 
fi
3065
 
 
3066
 
  if test "x$ac_ct_CC" = x; then
3067
 
    CC=""
3068
 
  else
3069
 
    case $cross_compiling:$ac_tool_warned in
3070
 
yes:)
3071
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073
 
ac_tool_warned=yes ;;
3074
 
esac
3075
 
    CC=$ac_ct_CC
3076
 
  fi
3077
 
else
3078
 
  CC="$ac_cv_prog_CC"
3079
 
fi
3080
 
 
3081
 
if test -z "$CC"; then
3082
 
          if test -n "$ac_tool_prefix"; then
3083
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3085
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086
 
$as_echo_n "checking for $ac_word... " >&6; }
3087
 
if ${ac_cv_prog_CC+:} false; then :
3088
 
  $as_echo_n "(cached) " >&6
3089
 
else
3090
 
  if test -n "$CC"; then
3091
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3092
 
else
3093
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094
 
for as_dir in $PATH
3095
 
do
3096
 
  IFS=$as_save_IFS
3097
 
  test -z "$as_dir" && as_dir=.
3098
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3099
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3101
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102
 
    break 2
3103
 
  fi
3104
 
done
3105
 
  done
3106
 
IFS=$as_save_IFS
3107
 
 
3108
 
fi
3109
 
fi
3110
 
CC=$ac_cv_prog_CC
3111
 
if test -n "$CC"; then
3112
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113
 
$as_echo "$CC" >&6; }
3114
 
else
3115
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116
 
$as_echo "no" >&6; }
3117
 
fi
3118
 
 
3119
 
 
3120
 
  fi
3121
 
fi
3122
 
if test -z "$CC"; then
3123
 
  # Extract the first word of "cc", so it can be a program name with args.
3124
 
set dummy cc; ac_word=$2
3125
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126
 
$as_echo_n "checking for $ac_word... " >&6; }
3127
 
if ${ac_cv_prog_CC+:} false; then :
3128
 
  $as_echo_n "(cached) " >&6
3129
 
else
3130
 
  if test -n "$CC"; then
3131
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3132
 
else
3133
 
  ac_prog_rejected=no
3134
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135
 
for as_dir in $PATH
3136
 
do
3137
 
  IFS=$as_save_IFS
3138
 
  test -z "$as_dir" && as_dir=.
3139
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3140
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142
 
       ac_prog_rejected=yes
3143
 
       continue
3144
 
     fi
3145
 
    ac_cv_prog_CC="cc"
3146
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147
 
    break 2
3148
 
  fi
3149
 
done
3150
 
  done
3151
 
IFS=$as_save_IFS
3152
 
 
3153
 
if test $ac_prog_rejected = yes; then
3154
 
  # We found a bogon in the path, so make sure we never use it.
3155
 
  set dummy $ac_cv_prog_CC
3156
 
  shift
3157
 
  if test $# != 0; then
3158
 
    # We chose a different compiler from the bogus one.
3159
 
    # However, it has the same basename, so the bogon will be chosen
3160
 
    # first if we set CC to just the basename; use the full file name.
3161
 
    shift
3162
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3163
 
  fi
3164
 
fi
3165
 
fi
3166
 
fi
3167
 
CC=$ac_cv_prog_CC
3168
 
if test -n "$CC"; then
3169
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170
 
$as_echo "$CC" >&6; }
3171
 
else
3172
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173
 
$as_echo "no" >&6; }
3174
 
fi
3175
 
 
3176
 
 
3177
 
fi
3178
 
if test -z "$CC"; then
3179
 
  if test -n "$ac_tool_prefix"; then
3180
 
  for ac_prog in cl.exe
3181
 
  do
3182
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185
 
$as_echo_n "checking for $ac_word... " >&6; }
3186
 
if ${ac_cv_prog_CC+:} false; then :
3187
 
  $as_echo_n "(cached) " >&6
3188
 
else
3189
 
  if test -n "$CC"; then
3190
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3191
 
else
3192
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193
 
for as_dir in $PATH
3194
 
do
3195
 
  IFS=$as_save_IFS
3196
 
  test -z "$as_dir" && as_dir=.
3197
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3198
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201
 
    break 2
3202
 
  fi
3203
 
done
3204
 
  done
3205
 
IFS=$as_save_IFS
3206
 
 
3207
 
fi
3208
 
fi
3209
 
CC=$ac_cv_prog_CC
3210
 
if test -n "$CC"; then
3211
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212
 
$as_echo "$CC" >&6; }
3213
 
else
3214
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215
 
$as_echo "no" >&6; }
3216
 
fi
3217
 
 
3218
 
 
3219
 
    test -n "$CC" && break
3220
 
  done
3221
 
fi
3222
 
if test -z "$CC"; then
3223
 
  ac_ct_CC=$CC
3224
 
  for ac_prog in cl.exe
3225
 
do
3226
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3227
 
set dummy $ac_prog; ac_word=$2
3228
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229
 
$as_echo_n "checking for $ac_word... " >&6; }
3230
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3231
 
  $as_echo_n "(cached) " >&6
3232
 
else
3233
 
  if test -n "$ac_ct_CC"; then
3234
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235
 
else
3236
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237
 
for as_dir in $PATH
3238
 
do
3239
 
  IFS=$as_save_IFS
3240
 
  test -z "$as_dir" && as_dir=.
3241
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3242
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3244
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245
 
    break 2
3246
 
  fi
3247
 
done
3248
 
  done
3249
 
IFS=$as_save_IFS
3250
 
 
3251
 
fi
3252
 
fi
3253
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254
 
if test -n "$ac_ct_CC"; then
3255
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256
 
$as_echo "$ac_ct_CC" >&6; }
3257
 
else
3258
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259
 
$as_echo "no" >&6; }
3260
 
fi
3261
 
 
3262
 
 
3263
 
  test -n "$ac_ct_CC" && break
3264
 
done
3265
 
 
3266
 
  if test "x$ac_ct_CC" = x; then
3267
 
    CC=""
3268
 
  else
3269
 
    case $cross_compiling:$ac_tool_warned in
3270
 
yes:)
3271
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273
 
ac_tool_warned=yes ;;
3274
 
esac
3275
 
    CC=$ac_ct_CC
3276
 
  fi
3277
 
fi
3278
 
 
3279
 
fi
3280
 
 
3281
 
 
3282
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284
 
as_fn_error $? "no acceptable C compiler found in \$PATH
3285
 
See \`config.log' for more details" "$LINENO" 5; }
3286
 
 
3287
 
# Provide some information about the compiler.
3288
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289
 
set X $ac_compile
3290
 
ac_compiler=$2
3291
 
for ac_option in --version -v -V -qversion; do
3292
 
  { { ac_try="$ac_compiler $ac_option >&5"
3293
 
case "(($ac_try" in
3294
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295
 
  *) ac_try_echo=$ac_try;;
3296
 
esac
3297
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298
 
$as_echo "$ac_try_echo"; } >&5
3299
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3300
 
  ac_status=$?
3301
 
  if test -s conftest.err; then
3302
 
    sed '10a\
3303
 
... rest of stderr output deleted ...
3304
 
         10q' conftest.err >conftest.er1
3305
 
    cat conftest.er1 >&5
3306
 
  fi
3307
 
  rm -f conftest.er1 conftest.err
3308
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309
 
  test $ac_status = 0; }
3310
 
done
3311
 
 
3312
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313
 
/* end confdefs.h.  */
3314
 
 
3315
 
int
3316
 
main ()
3317
 
{
3318
 
 
3319
 
  ;
3320
 
  return 0;
3321
 
}
3322
 
_ACEOF
3323
 
ac_clean_files_save=$ac_clean_files
3324
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3325
 
# Try to create an executable without -o first, disregard a.out.
3326
 
# It will help us diagnose broken compilers, and finding out an intuition
3327
 
# of exeext.
3328
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3330
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3331
 
 
3332
 
# The possible output files:
3333
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3334
 
 
3335
 
ac_rmfiles=
3336
 
for ac_file in $ac_files
3337
 
do
3338
 
  case $ac_file in
3339
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341
 
  esac
3342
 
done
3343
 
rm -f $ac_rmfiles
3344
 
 
3345
 
if { { ac_try="$ac_link_default"
3346
 
case "(($ac_try" in
3347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348
 
  *) ac_try_echo=$ac_try;;
3349
 
esac
3350
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351
 
$as_echo "$ac_try_echo"; } >&5
3352
 
  (eval "$ac_link_default") 2>&5
3353
 
  ac_status=$?
3354
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355
 
  test $ac_status = 0; }; then :
3356
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3359
 
# so that the user can short-circuit this test for compilers unknown to
3360
 
# Autoconf.
3361
 
for ac_file in $ac_files ''
3362
 
do
3363
 
  test -f "$ac_file" || continue
3364
 
  case $ac_file in
3365
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3366
 
        ;;
3367
 
    [ab].out )
3368
 
        # We found the default executable, but exeext='' is most
3369
 
        # certainly right.
3370
 
        break;;
3371
 
    *.* )
3372
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3373
 
        then :; else
3374
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375
 
        fi
3376
 
        # We set ac_cv_exeext here because the later test for it is not
3377
 
        # safe: cross compilers may not add the suffix if given an `-o'
3378
 
        # argument, so we may need to know it at that point already.
3379
 
        # Even if this section looks crufty: it has the advantage of
3380
 
        # actually working.
3381
 
        break;;
3382
 
    * )
3383
 
        break;;
3384
 
  esac
3385
 
done
3386
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3387
 
 
3388
 
else
3389
 
  ac_file=''
3390
 
fi
3391
 
if test -z "$ac_file"; then :
3392
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393
 
$as_echo "no" >&6; }
3394
 
$as_echo "$as_me: failed program was:" >&5
3395
 
sed 's/^/| /' conftest.$ac_ext >&5
3396
 
 
3397
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399
 
as_fn_error 77 "C compiler cannot create executables
3400
 
See \`config.log' for more details" "$LINENO" 5; }
3401
 
else
3402
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403
 
$as_echo "yes" >&6; }
3404
 
fi
3405
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3407
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408
 
$as_echo "$ac_file" >&6; }
3409
 
ac_exeext=$ac_cv_exeext
3410
 
 
3411
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3412
 
ac_clean_files=$ac_clean_files_save
3413
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414
 
$as_echo_n "checking for suffix of executables... " >&6; }
3415
 
if { { ac_try="$ac_link"
3416
 
case "(($ac_try" in
3417
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418
 
  *) ac_try_echo=$ac_try;;
3419
 
esac
3420
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421
 
$as_echo "$ac_try_echo"; } >&5
3422
 
  (eval "$ac_link") 2>&5
3423
 
  ac_status=$?
3424
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425
 
  test $ac_status = 0; }; then :
3426
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3428
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3429
 
# `rm'.
3430
 
for ac_file in conftest.exe conftest conftest.*; do
3431
 
  test -f "$ac_file" || continue
3432
 
  case $ac_file in
3433
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435
 
          break;;
3436
 
    * ) break;;
3437
 
  esac
3438
 
done
3439
 
else
3440
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3443
 
See \`config.log' for more details" "$LINENO" 5; }
3444
 
fi
3445
 
rm -f conftest conftest$ac_cv_exeext
3446
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447
 
$as_echo "$ac_cv_exeext" >&6; }
3448
 
 
3449
 
rm -f conftest.$ac_ext
3450
 
EXEEXT=$ac_cv_exeext
3451
 
ac_exeext=$EXEEXT
3452
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453
 
/* end confdefs.h.  */
3454
 
#include <stdio.h>
3455
 
int
3456
 
main ()
3457
 
{
3458
 
FILE *f = fopen ("conftest.out", "w");
3459
 
 return ferror (f) || fclose (f) != 0;
3460
 
 
3461
 
  ;
3462
 
  return 0;
3463
 
}
3464
 
_ACEOF
3465
 
ac_clean_files="$ac_clean_files conftest.out"
3466
 
# Check that the compiler produces executables we can run.  If not, either
3467
 
# the compiler is broken, or we cross compile.
3468
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3470
 
if test "$cross_compiling" != yes; then
3471
 
  { { ac_try="$ac_link"
3472
 
case "(($ac_try" in
3473
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474
 
  *) ac_try_echo=$ac_try;;
3475
 
esac
3476
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477
 
$as_echo "$ac_try_echo"; } >&5
3478
 
  (eval "$ac_link") 2>&5
3479
 
  ac_status=$?
3480
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481
 
  test $ac_status = 0; }
3482
 
  if { ac_try='./conftest$ac_cv_exeext'
3483
 
  { { case "(($ac_try" in
3484
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485
 
  *) ac_try_echo=$ac_try;;
3486
 
esac
3487
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488
 
$as_echo "$ac_try_echo"; } >&5
3489
 
  (eval "$ac_try") 2>&5
3490
 
  ac_status=$?
3491
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492
 
  test $ac_status = 0; }; }; then
3493
 
    cross_compiling=no
3494
 
  else
3495
 
    if test "$cross_compiling" = maybe; then
3496
 
        cross_compiling=yes
3497
 
    else
3498
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500
 
as_fn_error $? "cannot run C compiled programs.
3501
 
If you meant to cross compile, use \`--host'.
3502
 
See \`config.log' for more details" "$LINENO" 5; }
3503
 
    fi
3504
 
  fi
3505
 
fi
3506
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507
 
$as_echo "$cross_compiling" >&6; }
3508
 
 
3509
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510
 
ac_clean_files=$ac_clean_files_save
3511
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512
 
$as_echo_n "checking for suffix of object files... " >&6; }
3513
 
if ${ac_cv_objext+:} false; then :
3514
 
  $as_echo_n "(cached) " >&6
3515
 
else
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
 
rm -f conftest.o conftest.obj
3528
 
if { { ac_try="$ac_compile"
3529
 
case "(($ac_try" in
3530
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531
 
  *) ac_try_echo=$ac_try;;
3532
 
esac
3533
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534
 
$as_echo "$ac_try_echo"; } >&5
3535
 
  (eval "$ac_compile") 2>&5
3536
 
  ac_status=$?
3537
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538
 
  test $ac_status = 0; }; then :
3539
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3540
 
  test -f "$ac_file" || continue;
3541
 
  case $ac_file in
3542
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544
 
       break;;
3545
 
  esac
3546
 
done
3547
 
else
3548
 
  $as_echo "$as_me: failed program was:" >&5
3549
 
sed 's/^/| /' conftest.$ac_ext >&5
3550
 
 
3551
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
3554
 
See \`config.log' for more details" "$LINENO" 5; }
3555
 
fi
3556
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3557
 
fi
3558
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559
 
$as_echo "$ac_cv_objext" >&6; }
3560
 
OBJEXT=$ac_cv_objext
3561
 
ac_objext=$OBJEXT
3562
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564
 
if ${ac_cv_c_compiler_gnu+:} false; then :
3565
 
  $as_echo_n "(cached) " >&6
3566
 
else
3567
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568
 
/* end confdefs.h.  */
3569
 
 
3570
 
int
3571
 
main ()
3572
 
{
3573
 
#ifndef __GNUC__
3574
 
       choke me
3575
 
#endif
3576
 
 
3577
 
  ;
3578
 
  return 0;
3579
 
}
3580
 
_ACEOF
3581
 
if ac_fn_c_try_compile "$LINENO"; then :
3582
 
  ac_compiler_gnu=yes
3583
 
else
3584
 
  ac_compiler_gnu=no
3585
 
fi
3586
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588
 
 
3589
 
fi
3590
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592
 
if test $ac_compiler_gnu = yes; then
3593
 
  GCC=yes
3594
 
else
3595
 
  GCC=
3596
 
fi
3597
 
ac_test_CFLAGS=${CFLAGS+set}
3598
 
ac_save_CFLAGS=$CFLAGS
3599
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3601
 
if ${ac_cv_prog_cc_g+:} false; then :
3602
 
  $as_echo_n "(cached) " >&6
3603
 
else
3604
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3605
 
   ac_c_werror_flag=yes
3606
 
   ac_cv_prog_cc_g=no
3607
 
   CFLAGS="-g"
3608
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609
 
/* end confdefs.h.  */
3610
 
 
3611
 
int
3612
 
main ()
3613
 
{
3614
 
 
3615
 
  ;
3616
 
  return 0;
3617
 
}
3618
 
_ACEOF
3619
 
if ac_fn_c_try_compile "$LINENO"; then :
3620
 
  ac_cv_prog_cc_g=yes
3621
 
else
3622
 
  CFLAGS=""
3623
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624
 
/* end confdefs.h.  */
3625
 
 
3626
 
int
3627
 
main ()
3628
 
{
3629
 
 
3630
 
  ;
3631
 
  return 0;
3632
 
}
3633
 
_ACEOF
3634
 
if ac_fn_c_try_compile "$LINENO"; then :
3635
 
 
3636
 
else
3637
 
  ac_c_werror_flag=$ac_save_c_werror_flag
3638
 
         CFLAGS="-g"
3639
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640
 
/* end confdefs.h.  */
3641
 
 
3642
 
int
3643
 
main ()
3644
 
{
3645
 
 
3646
 
  ;
3647
 
  return 0;
3648
 
}
3649
 
_ACEOF
3650
 
if ac_fn_c_try_compile "$LINENO"; then :
3651
 
  ac_cv_prog_cc_g=yes
3652
 
fi
3653
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654
 
fi
3655
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656
 
fi
3657
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3659
 
fi
3660
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
3662
 
if test "$ac_test_CFLAGS" = set; then
3663
 
  CFLAGS=$ac_save_CFLAGS
3664
 
elif test $ac_cv_prog_cc_g = yes; then
3665
 
  if test "$GCC" = yes; then
3666
 
    CFLAGS="-g -O2"
3667
 
  else
3668
 
    CFLAGS="-g"
3669
 
  fi
3670
 
else
3671
 
  if test "$GCC" = yes; then
3672
 
    CFLAGS="-O2"
3673
 
  else
3674
 
    CFLAGS=
3675
 
  fi
3676
 
fi
3677
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679
 
if ${ac_cv_prog_cc_c89+:} false; then :
3680
 
  $as_echo_n "(cached) " >&6
3681
 
else
3682
 
  ac_cv_prog_cc_c89=no
3683
 
ac_save_CC=$CC
3684
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685
 
/* end confdefs.h.  */
3686
 
#include <stdarg.h>
3687
 
#include <stdio.h>
3688
 
#include <sys/types.h>
3689
 
#include <sys/stat.h>
3690
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3691
 
struct buf { int x; };
3692
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693
 
static char *e (p, i)
3694
 
     char **p;
3695
 
     int i;
3696
 
{
3697
 
  return p[i];
3698
 
}
3699
 
static char *f (char * (*g) (char **, int), char **p, ...)
3700
 
{
3701
 
  char *s;
3702
 
  va_list v;
3703
 
  va_start (v,p);
3704
 
  s = g (p, va_arg (v,int));
3705
 
  va_end (v);
3706
 
  return s;
3707
 
}
3708
 
 
3709
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3710
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3711
 
   These don't provoke an error unfortunately, instead are silently treated
3712
 
   as 'x'.  The following induces an error, until -std is added to get
3713
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3714
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3715
 
   that's true only with -std.  */
3716
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717
 
 
3718
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719
 
   inside strings and character constants.  */
3720
 
#define FOO(x) 'x'
3721
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722
 
 
3723
 
int test (int i, double x);
3724
 
struct s1 {int (*f) (int a);};
3725
 
struct s2 {int (*f) (double a);};
3726
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727
 
int argc;
3728
 
char **argv;
3729
 
int
3730
 
main ()
3731
 
{
3732
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3733
 
  ;
3734
 
  return 0;
3735
 
}
3736
 
_ACEOF
3737
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739
 
do
3740
 
  CC="$ac_save_CC $ac_arg"
3741
 
  if ac_fn_c_try_compile "$LINENO"; then :
3742
 
  ac_cv_prog_cc_c89=$ac_arg
3743
 
fi
3744
 
rm -f core conftest.err conftest.$ac_objext
3745
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3746
 
done
3747
 
rm -f conftest.$ac_ext
3748
 
CC=$ac_save_CC
3749
 
 
3750
 
fi
3751
 
# AC_CACHE_VAL
3752
 
case "x$ac_cv_prog_cc_c89" in
3753
 
  x)
3754
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755
 
$as_echo "none needed" >&6; } ;;
3756
 
  xno)
3757
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758
 
$as_echo "unsupported" >&6; } ;;
3759
 
  *)
3760
 
    CC="$CC $ac_cv_prog_cc_c89"
3761
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3763
 
esac
3764
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
3765
 
 
3766
 
fi
3767
 
 
3768
 
ac_ext=c
3769
 
ac_cpp='$CPP $CPPFLAGS'
3770
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
 
 
3774
 
depcc="$CC"   am_compiler_list=
3775
 
 
3776
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
3778
 
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779
 
  $as_echo_n "(cached) " >&6
3780
 
else
3781
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3783
 
  # making bogus files that we don't know about and never remove.  For
3784
 
  # instance it was reported that on HP-UX the gcc test will end up
3785
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3786
 
  # in D'.
3787
 
  rm -rf conftest.dir
3788
 
  mkdir conftest.dir
3789
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3790
 
  # using a relative directory.
3791
 
  cp "$am_depcomp" conftest.dir
3792
 
  cd conftest.dir
3793
 
  # We will build objects and dependencies in a subdirectory because
3794
 
  # it helps to detect inapplicable dependency modes.  For instance
3795
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3796
 
  # side effect of compilation, but ICC will put the dependencies in
3797
 
  # the current directory while Tru64 will put them in the object
3798
 
  # directory.
3799
 
  mkdir sub
3800
 
 
3801
 
  am_cv_CC_dependencies_compiler_type=none
3802
 
  if test "$am_compiler_list" = ""; then
3803
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804
 
  fi
3805
 
  am__universal=false
3806
 
  case " $depcc " in #(
3807
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808
 
     esac
3809
 
 
3810
 
  for depmode in $am_compiler_list; do
3811
 
    # Setup a source with many dependencies, because some compilers
3812
 
    # like to wrap large dependency lists on column 80 (with \), and
3813
 
    # we should not choose a depcomp mode which is confused by this.
3814
 
    #
3815
 
    # We need to recreate these files for each test, as the compiler may
3816
 
    # overwrite some of them when testing with obscure command lines.
3817
 
    # This happens at least with the AIX C compiler.
3818
 
    : > sub/conftest.c
3819
 
    for i in 1 2 3 4 5 6; do
3820
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822
 
      # Solaris 8's {/usr,}/bin/sh.
3823
 
      touch sub/conftst$i.h
3824
 
    done
3825
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826
 
 
3827
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3828
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3829
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
3830
 
    # versions had trouble with output in subdirs
3831
 
    am__obj=sub/conftest.${OBJEXT-o}
3832
 
    am__minus_obj="-o $am__obj"
3833
 
    case $depmode in
3834
 
    gcc)
3835
 
      # This depmode causes a compiler race in universal mode.
3836
 
      test "$am__universal" = false || continue
3837
 
      ;;
3838
 
    nosideeffect)
3839
 
      # after this tag, mechanisms are not by side-effect, so they'll
3840
 
      # only be used when explicitly requested
3841
 
      if test "x$enable_dependency_tracking" = xyes; then
3842
 
        continue
3843
 
      else
3844
 
        break
3845
 
      fi
3846
 
      ;;
3847
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848
 
      # This compiler won't grok `-c -o', but also, the minuso test has
3849
 
      # not run yet.  These depmodes are late enough in the game, and
3850
 
      # so weak that their functioning should not be impacted.
3851
 
      am__obj=conftest.${OBJEXT-o}
3852
 
      am__minus_obj=
3853
 
      ;;
3854
 
    none) break ;;
3855
 
    esac
3856
 
    if depmode=$depmode \
3857
 
       source=sub/conftest.c object=$am__obj \
3858
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860
 
         >/dev/null 2>conftest.err &&
3861
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865
 
      # icc doesn't choke on unknown options, it will just issue warnings
3866
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3867
 
      # that says an option was ignored or not supported.
3868
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3869
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3870
 
      # The diagnosis changed in icc 8.0:
3871
 
      #   icc: Command line remark: option '-MP' not supported
3872
 
      if (grep 'ignoring option' conftest.err ||
3873
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874
 
        am_cv_CC_dependencies_compiler_type=$depmode
3875
 
        break
3876
 
      fi
3877
 
    fi
3878
 
  done
3879
 
 
3880
 
  cd ..
3881
 
  rm -rf conftest.dir
3882
 
else
3883
 
  am_cv_CC_dependencies_compiler_type=none
3884
 
fi
3885
 
 
3886
 
fi
3887
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
 
 
3891
 
 if
3892
 
  test "x$enable_dependency_tracking" != xno \
3893
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894
 
  am__fastdepCC_TRUE=
3895
 
  am__fastdepCC_FALSE='#'
3896
 
else
3897
 
  am__fastdepCC_TRUE='#'
3898
 
  am__fastdepCC_FALSE=
3899
 
fi
3900
 
 
3901
 
 
3902
 
 
3903
 
ac_ext=c
3904
 
ac_cpp='$CPP $CPPFLAGS'
3905
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3909
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3910
 
# On Suns, sometimes $CPP names a directory.
3911
 
if test -n "$CPP" && test -d "$CPP"; then
3912
 
  CPP=
3913
 
fi
3914
 
if test -z "$CPP"; then
3915
 
  if ${ac_cv_prog_CPP+:} false; then :
3916
 
  $as_echo_n "(cached) " >&6
3917
 
else
3918
 
      # Double quotes because CPP needs to be expanded
3919
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3920
 
    do
3921
 
      ac_preproc_ok=false
3922
 
for ac_c_preproc_warn_flag in '' yes
3923
 
do
3924
 
  # Use a header file that comes with gcc, so configuring glibc
3925
 
  # with a fresh cross-compiler works.
3926
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927
 
  # <limits.h> exists even on freestanding compilers.
3928
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3929
 
  # not just through cpp. "Syntax error" is here to catch this case.
3930
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931
 
/* end confdefs.h.  */
3932
 
#ifdef __STDC__
3933
 
# include <limits.h>
3934
 
#else
3935
 
# include <assert.h>
3936
 
#endif
3937
 
                     Syntax error
3938
 
_ACEOF
3939
 
if ac_fn_c_try_cpp "$LINENO"; then :
3940
 
 
3941
 
else
3942
 
  # Broken: fails on valid input.
3943
 
continue
3944
 
fi
3945
 
rm -f conftest.err conftest.i conftest.$ac_ext
3946
 
 
3947
 
  # OK, works on sane cases.  Now check whether nonexistent headers
3948
 
  # can be detected and how.
3949
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950
 
/* end confdefs.h.  */
3951
 
#include <ac_nonexistent.h>
3952
 
_ACEOF
3953
 
if ac_fn_c_try_cpp "$LINENO"; then :
3954
 
  # Broken: success on invalid input.
3955
 
continue
3956
 
else
3957
 
  # Passes both tests.
3958
 
ac_preproc_ok=:
3959
 
break
3960
 
fi
3961
 
rm -f conftest.err conftest.i conftest.$ac_ext
3962
 
 
3963
 
done
3964
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3965
 
rm -f conftest.i conftest.err conftest.$ac_ext
3966
 
if $ac_preproc_ok; then :
3967
 
  break
3968
 
fi
3969
 
 
3970
 
    done
3971
 
    ac_cv_prog_CPP=$CPP
3972
 
 
3973
 
fi
3974
 
  CPP=$ac_cv_prog_CPP
3975
 
else
3976
 
  ac_cv_prog_CPP=$CPP
3977
 
fi
3978
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3979
 
$as_echo "$CPP" >&6; }
3980
 
ac_preproc_ok=false
3981
 
for ac_c_preproc_warn_flag in '' yes
3982
 
do
3983
 
  # Use a header file that comes with gcc, so configuring glibc
3984
 
  # with a fresh cross-compiler works.
3985
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3986
 
  # <limits.h> exists even on freestanding compilers.
3987
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3988
 
  # not just through cpp. "Syntax error" is here to catch this case.
3989
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
 
/* end confdefs.h.  */
3991
 
#ifdef __STDC__
3992
 
# include <limits.h>
3993
 
#else
3994
 
# include <assert.h>
3995
 
#endif
3996
 
                     Syntax error
3997
 
_ACEOF
3998
 
if ac_fn_c_try_cpp "$LINENO"; then :
3999
 
 
4000
 
else
4001
 
  # Broken: fails on valid input.
4002
 
continue
4003
 
fi
4004
 
rm -f conftest.err conftest.i conftest.$ac_ext
4005
 
 
4006
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4007
 
  # can be detected and how.
4008
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009
 
/* end confdefs.h.  */
4010
 
#include <ac_nonexistent.h>
4011
 
_ACEOF
4012
 
if ac_fn_c_try_cpp "$LINENO"; then :
4013
 
  # Broken: success on invalid input.
4014
 
continue
4015
 
else
4016
 
  # Passes both tests.
4017
 
ac_preproc_ok=:
4018
 
break
4019
 
fi
4020
 
rm -f conftest.err conftest.i conftest.$ac_ext
4021
 
 
4022
 
done
4023
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4024
 
rm -f conftest.i conftest.err conftest.$ac_ext
4025
 
if $ac_preproc_ok; then :
4026
 
 
4027
 
else
4028
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4031
 
See \`config.log' for more details" "$LINENO" 5; }
4032
 
fi
4033
 
 
4034
 
ac_ext=c
4035
 
ac_cpp='$CPP $CPPFLAGS'
4036
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
 
 
4040
 
 
4041
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4042
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4043
 
if ${ac_cv_path_GREP+:} false; then :
4044
 
  $as_echo_n "(cached) " >&6
4045
 
else
4046
 
  if test -z "$GREP"; then
4047
 
  ac_path_GREP_found=false
4048
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4049
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051
 
do
4052
 
  IFS=$as_save_IFS
4053
 
  test -z "$as_dir" && as_dir=.
4054
 
    for ac_prog in grep ggrep; do
4055
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4056
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4057
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4058
 
# Check for GNU ac_path_GREP and select it if it is found.
4059
 
  # Check for GNU $ac_path_GREP
4060
 
case `"$ac_path_GREP" --version 2>&1` in
4061
 
*GNU*)
4062
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4063
 
*)
4064
 
  ac_count=0
4065
 
  $as_echo_n 0123456789 >"conftest.in"
4066
 
  while :
4067
 
  do
4068
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4069
 
    mv "conftest.tmp" "conftest.in"
4070
 
    cp "conftest.in" "conftest.nl"
4071
 
    $as_echo 'GREP' >> "conftest.nl"
4072
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4075
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4076
 
      # Best one so far, save it but keep looking for a better one
4077
 
      ac_cv_path_GREP="$ac_path_GREP"
4078
 
      ac_path_GREP_max=$ac_count
4079
 
    fi
4080
 
    # 10*(2^10) chars as input seems more than enough
4081
 
    test $ac_count -gt 10 && break
4082
 
  done
4083
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084
 
esac
4085
 
 
4086
 
      $ac_path_GREP_found && break 3
4087
 
    done
4088
 
  done
4089
 
  done
4090
 
IFS=$as_save_IFS
4091
 
  if test -z "$ac_cv_path_GREP"; then
4092
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4093
 
  fi
4094
 
else
4095
 
  ac_cv_path_GREP=$GREP
4096
 
fi
4097
 
 
4098
 
fi
4099
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4100
 
$as_echo "$ac_cv_path_GREP" >&6; }
4101
 
 GREP="$ac_cv_path_GREP"
4102
 
 
4103
 
 
4104
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4105
 
$as_echo_n "checking for egrep... " >&6; }
4106
 
if ${ac_cv_path_EGREP+:} false; then :
4107
 
  $as_echo_n "(cached) " >&6
4108
 
else
4109
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4110
 
   then ac_cv_path_EGREP="$GREP -E"
4111
 
   else
4112
 
     if test -z "$EGREP"; then
4113
 
  ac_path_EGREP_found=false
4114
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4115
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117
 
do
4118
 
  IFS=$as_save_IFS
4119
 
  test -z "$as_dir" && as_dir=.
4120
 
    for ac_prog in egrep; do
4121
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4122
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4123
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4124
 
# Check for GNU ac_path_EGREP and select it if it is found.
4125
 
  # Check for GNU $ac_path_EGREP
4126
 
case `"$ac_path_EGREP" --version 2>&1` in
4127
 
*GNU*)
4128
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4129
 
*)
4130
 
  ac_count=0
4131
 
  $as_echo_n 0123456789 >"conftest.in"
4132
 
  while :
4133
 
  do
4134
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4135
 
    mv "conftest.tmp" "conftest.in"
4136
 
    cp "conftest.in" "conftest.nl"
4137
 
    $as_echo 'EGREP' >> "conftest.nl"
4138
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4141
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4142
 
      # Best one so far, save it but keep looking for a better one
4143
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4144
 
      ac_path_EGREP_max=$ac_count
4145
 
    fi
4146
 
    # 10*(2^10) chars as input seems more than enough
4147
 
    test $ac_count -gt 10 && break
4148
 
  done
4149
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150
 
esac
4151
 
 
4152
 
      $ac_path_EGREP_found && break 3
4153
 
    done
4154
 
  done
4155
 
  done
4156
 
IFS=$as_save_IFS
4157
 
  if test -z "$ac_cv_path_EGREP"; then
4158
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4159
 
  fi
4160
 
else
4161
 
  ac_cv_path_EGREP=$EGREP
4162
 
fi
4163
 
 
4164
 
   fi
4165
 
fi
4166
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4167
 
$as_echo "$ac_cv_path_EGREP" >&6; }
4168
 
 EGREP="$ac_cv_path_EGREP"
4169
 
 
4170
 
 
4171
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4172
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4173
 
if ${ac_cv_header_stdc+:} false; then :
4174
 
  $as_echo_n "(cached) " >&6
4175
 
else
4176
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177
 
/* end confdefs.h.  */
4178
 
#include <stdlib.h>
4179
 
#include <stdarg.h>
4180
 
#include <string.h>
4181
 
#include <float.h>
4182
 
 
4183
 
int
4184
 
main ()
4185
 
{
4186
 
 
4187
 
  ;
4188
 
  return 0;
4189
 
}
4190
 
_ACEOF
4191
 
if ac_fn_c_try_compile "$LINENO"; then :
4192
 
  ac_cv_header_stdc=yes
4193
 
else
4194
 
  ac_cv_header_stdc=no
4195
 
fi
4196
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197
 
 
4198
 
if test $ac_cv_header_stdc = yes; then
4199
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4200
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201
 
/* end confdefs.h.  */
4202
 
#include <string.h>
4203
 
 
4204
 
_ACEOF
4205
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206
 
  $EGREP "memchr" >/dev/null 2>&1; then :
4207
 
 
4208
 
else
4209
 
  ac_cv_header_stdc=no
4210
 
fi
4211
 
rm -f conftest*
4212
 
 
4213
 
fi
4214
 
 
4215
 
if test $ac_cv_header_stdc = yes; then
4216
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4217
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218
 
/* end confdefs.h.  */
4219
 
#include <stdlib.h>
4220
 
 
4221
 
_ACEOF
4222
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223
 
  $EGREP "free" >/dev/null 2>&1; then :
4224
 
 
4225
 
else
4226
 
  ac_cv_header_stdc=no
4227
 
fi
4228
 
rm -f conftest*
4229
 
 
4230
 
fi
4231
 
 
4232
 
if test $ac_cv_header_stdc = yes; then
4233
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4234
 
  if test "$cross_compiling" = yes; then :
4235
 
  :
4236
 
else
4237
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238
 
/* end confdefs.h.  */
4239
 
#include <ctype.h>
4240
 
#include <stdlib.h>
4241
 
#if ((' ' & 0x0FF) == 0x020)
4242
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4243
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4244
 
#else
4245
 
# define ISLOWER(c) \
4246
 
                   (('a' <= (c) && (c) <= 'i') \
4247
 
                     || ('j' <= (c) && (c) <= 'r') \
4248
 
                     || ('s' <= (c) && (c) <= 'z'))
4249
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4250
 
#endif
4251
 
 
4252
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253
 
int
4254
 
main ()
4255
 
{
4256
 
  int i;
4257
 
  for (i = 0; i < 256; i++)
4258
 
    if (XOR (islower (i), ISLOWER (i))
4259
 
        || toupper (i) != TOUPPER (i))
4260
 
      return 2;
4261
 
  return 0;
4262
 
}
4263
 
_ACEOF
4264
 
if ac_fn_c_try_run "$LINENO"; then :
4265
 
 
4266
 
else
4267
 
  ac_cv_header_stdc=no
4268
 
fi
4269
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4270
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4271
 
fi
4272
 
 
4273
 
fi
4274
 
fi
4275
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4276
 
$as_echo "$ac_cv_header_stdc" >&6; }
4277
 
if test $ac_cv_header_stdc = yes; then
4278
 
 
4279
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4280
 
 
4281
 
fi
4282
 
 
4283
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4284
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285
 
                  inttypes.h stdint.h unistd.h
4286
 
do :
4287
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4289
 
"
4290
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4291
 
  cat >>confdefs.h <<_ACEOF
4292
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293
 
_ACEOF
4294
 
 
4295
 
fi
4296
 
 
4297
 
done
4298
 
 
4299
 
 
4300
 
 
4301
 
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4302
 
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4303
 
  MINIX=yes
4304
 
else
4305
 
  MINIX=
4306
 
fi
4307
 
 
4308
 
 
4309
 
  if test "$MINIX" = yes; then
4310
 
 
4311
 
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4312
 
 
4313
 
 
4314
 
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4315
 
 
4316
 
 
4317
 
$as_echo "#define _MINIX 1" >>confdefs.h
4318
 
 
4319
 
  fi
4320
 
 
4321
 
 
4322
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4323
 
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4324
 
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4325
 
  $as_echo_n "(cached) " >&6
4326
 
else
4327
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328
 
/* end confdefs.h.  */
4329
 
 
4330
 
#         define __EXTENSIONS__ 1
4331
 
          $ac_includes_default
4332
 
int
4333
 
main ()
4334
 
{
4335
 
 
4336
 
  ;
4337
 
  return 0;
4338
 
}
4339
 
_ACEOF
4340
 
if ac_fn_c_try_compile "$LINENO"; then :
4341
 
  ac_cv_safe_to_define___extensions__=yes
4342
 
else
4343
 
  ac_cv_safe_to_define___extensions__=no
4344
 
fi
4345
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346
 
fi
4347
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4348
 
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4349
 
  test $ac_cv_safe_to_define___extensions__ = yes &&
4350
 
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4351
 
 
4352
 
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4353
 
 
4354
 
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4355
 
 
4356
 
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4357
 
 
4358
 
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4359
 
 
4360
 
 
4361
 
 
4362
 
# Initialize libtool
4363
 
# Check whether --enable-static was given.
4364
 
if test "${enable_static+set}" = set; then :
4365
 
  enableval=$enable_static; p=${PACKAGE-default}
4366
 
    case $enableval in
4367
 
    yes) enable_static=yes ;;
4368
 
    no) enable_static=no ;;
4369
 
    *)
4370
 
     enable_static=no
4371
 
      # Look at the argument we got.  We use all the common list separators.
4372
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4373
 
      for pkg in $enableval; do
4374
 
        IFS="$lt_save_ifs"
4375
 
        if test "X$pkg" = "X$p"; then
4376
 
          enable_static=yes
4377
 
        fi
4378
 
      done
4379
 
      IFS="$lt_save_ifs"
4380
 
      ;;
4381
 
    esac
4382
 
else
4383
 
  enable_static=no
4384
 
fi
4385
 
 
4386
 
 
4387
 
 
4388
 
 
4389
 
 
4390
 
 
4391
 
 
4392
 
 
4393
 
 
4394
 
case `pwd` in
4395
 
  *\ * | *\     *)
4396
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4397
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4398
 
esac
4399
 
 
4400
 
 
4401
 
 
4402
 
macro_version='2.4.2'
4403
 
macro_revision='1.3337'
4404
 
 
4405
 
 
4406
 
 
4407
 
 
4408
 
 
4409
 
 
4410
 
 
4411
 
 
4412
 
 
4413
 
 
4414
 
 
4415
 
 
4416
 
 
4417
 
ltmain="$ac_aux_dir/ltmain.sh"
4418
 
 
4419
 
# Make sure we can run config.sub.
4420
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4421
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4422
 
 
4423
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4424
 
$as_echo_n "checking build system type... " >&6; }
4425
 
if ${ac_cv_build+:} false; then :
4426
 
  $as_echo_n "(cached) " >&6
4427
 
else
4428
 
  ac_build_alias=$build_alias
4429
 
test "x$ac_build_alias" = x &&
4430
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4431
 
test "x$ac_build_alias" = x &&
4432
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4433
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4434
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4435
 
 
4436
 
fi
4437
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4438
 
$as_echo "$ac_cv_build" >&6; }
4439
 
case $ac_cv_build in
4440
 
*-*-*) ;;
4441
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4442
 
esac
4443
 
build=$ac_cv_build
4444
 
ac_save_IFS=$IFS; IFS='-'
4445
 
set x $ac_cv_build
4446
 
shift
4447
 
build_cpu=$1
4448
 
build_vendor=$2
4449
 
shift; shift
4450
 
# Remember, the first character of IFS is used to create $*,
4451
 
# except with old shells:
4452
 
build_os=$*
4453
 
IFS=$ac_save_IFS
4454
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4455
 
 
4456
 
 
4457
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4458
 
$as_echo_n "checking host system type... " >&6; }
4459
 
if ${ac_cv_host+:} false; then :
4460
 
  $as_echo_n "(cached) " >&6
4461
 
else
4462
 
  if test "x$host_alias" = x; then
4463
 
  ac_cv_host=$ac_cv_build
4464
 
else
4465
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4466
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4467
 
fi
4468
 
 
4469
 
fi
4470
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4471
 
$as_echo "$ac_cv_host" >&6; }
4472
 
case $ac_cv_host in
4473
 
*-*-*) ;;
4474
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4475
 
esac
4476
 
host=$ac_cv_host
4477
 
ac_save_IFS=$IFS; IFS='-'
4478
 
set x $ac_cv_host
4479
 
shift
4480
 
host_cpu=$1
4481
 
host_vendor=$2
4482
 
shift; shift
4483
 
# Remember, the first character of IFS is used to create $*,
4484
 
# except with old shells:
4485
 
host_os=$*
4486
 
IFS=$ac_save_IFS
4487
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4488
 
 
4489
 
 
4490
 
# Backslashify metacharacters that are still active within
4491
 
# double-quoted strings.
4492
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4493
 
 
4494
 
# Same as above, but do not quote variable references.
4495
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4496
 
 
4497
 
# Sed substitution to delay expansion of an escaped shell variable in a
4498
 
# double_quote_subst'ed string.
4499
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4500
 
 
4501
 
# Sed substitution to delay expansion of an escaped single quote.
4502
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4503
 
 
4504
 
# Sed substitution to avoid accidental globbing in evaled expressions
4505
 
no_glob_subst='s/\*/\\\*/g'
4506
 
 
4507
 
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4508
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4509
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4510
 
 
4511
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4512
 
$as_echo_n "checking how to print strings... " >&6; }
4513
 
# Test print first, because it will be a builtin if present.
4514
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4515
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4516
 
  ECHO='print -r --'
4517
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4518
 
  ECHO='printf %s\n'
4519
 
else
4520
 
  # Use this function as a fallback that always works.
4521
 
  func_fallback_echo ()
4522
 
  {
4523
 
    eval 'cat <<_LTECHO_EOF
4524
 
$1
4525
 
_LTECHO_EOF'
4526
 
  }
4527
 
  ECHO='func_fallback_echo'
4528
 
fi
4529
 
 
4530
 
# func_echo_all arg...
4531
 
# Invoke $ECHO with all args, space-separated.
4532
 
func_echo_all ()
4533
 
{
4534
 
    $ECHO ""
4535
 
}
4536
 
 
4537
 
case "$ECHO" in
4538
 
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4539
 
$as_echo "printf" >&6; } ;;
4540
 
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4541
 
$as_echo "print -r" >&6; } ;;
4542
 
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4543
 
$as_echo "cat" >&6; } ;;
4544
 
esac
4545
 
 
4546
 
 
4547
 
 
4548
 
 
4549
 
 
4550
 
 
4551
 
 
4552
 
 
4553
 
 
4554
 
 
4555
 
 
4556
 
 
4557
 
 
4558
 
 
4559
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4560
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4561
 
if ${ac_cv_path_SED+:} false; then :
4562
 
  $as_echo_n "(cached) " >&6
4563
 
else
4564
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4565
 
     for ac_i in 1 2 3 4 5 6 7; do
4566
 
       ac_script="$ac_script$as_nl$ac_script"
4567
 
     done
4568
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4569
 
     { ac_script=; unset ac_script;}
4570
 
     if test -z "$SED"; then
4571
 
  ac_path_SED_found=false
4572
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4573
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574
 
for as_dir in $PATH
4575
 
do
4576
 
  IFS=$as_save_IFS
4577
 
  test -z "$as_dir" && as_dir=.
4578
 
    for ac_prog in sed gsed; do
4579
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4580
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4581
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4582
 
# Check for GNU ac_path_SED and select it if it is found.
4583
 
  # Check for GNU $ac_path_SED
4584
 
case `"$ac_path_SED" --version 2>&1` in
4585
 
*GNU*)
4586
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4587
 
*)
4588
 
  ac_count=0
4589
 
  $as_echo_n 0123456789 >"conftest.in"
4590
 
  while :
4591
 
  do
4592
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4593
 
    mv "conftest.tmp" "conftest.in"
4594
 
    cp "conftest.in" "conftest.nl"
4595
 
    $as_echo '' >> "conftest.nl"
4596
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4599
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4600
 
      # Best one so far, save it but keep looking for a better one
4601
 
      ac_cv_path_SED="$ac_path_SED"
4602
 
      ac_path_SED_max=$ac_count
4603
 
    fi
4604
 
    # 10*(2^10) chars as input seems more than enough
4605
 
    test $ac_count -gt 10 && break
4606
 
  done
4607
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608
 
esac
4609
 
 
4610
 
      $ac_path_SED_found && break 3
4611
 
    done
4612
 
  done
4613
 
  done
4614
 
IFS=$as_save_IFS
4615
 
  if test -z "$ac_cv_path_SED"; then
4616
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4617
 
  fi
4618
 
else
4619
 
  ac_cv_path_SED=$SED
4620
 
fi
4621
 
 
4622
 
fi
4623
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4624
 
$as_echo "$ac_cv_path_SED" >&6; }
4625
 
 SED="$ac_cv_path_SED"
4626
 
  rm -f conftest.sed
4627
 
 
4628
 
test -z "$SED" && SED=sed
4629
 
Xsed="$SED -e 1s/^X//"
4630
 
 
4631
 
 
4632
 
 
4633
 
 
4634
 
 
4635
 
 
4636
 
 
4637
 
 
4638
 
 
4639
 
 
4640
 
 
4641
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4642
 
$as_echo_n "checking for fgrep... " >&6; }
4643
 
if ${ac_cv_path_FGREP+:} false; then :
4644
 
  $as_echo_n "(cached) " >&6
4645
 
else
4646
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4647
 
   then ac_cv_path_FGREP="$GREP -F"
4648
 
   else
4649
 
     if test -z "$FGREP"; then
4650
 
  ac_path_FGREP_found=false
4651
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4652
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654
 
do
4655
 
  IFS=$as_save_IFS
4656
 
  test -z "$as_dir" && as_dir=.
4657
 
    for ac_prog in fgrep; do
4658
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4659
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4660
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4661
 
# Check for GNU ac_path_FGREP and select it if it is found.
4662
 
  # Check for GNU $ac_path_FGREP
4663
 
case `"$ac_path_FGREP" --version 2>&1` in
4664
 
*GNU*)
4665
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4666
 
*)
4667
 
  ac_count=0
4668
 
  $as_echo_n 0123456789 >"conftest.in"
4669
 
  while :
4670
 
  do
4671
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4672
 
    mv "conftest.tmp" "conftest.in"
4673
 
    cp "conftest.in" "conftest.nl"
4674
 
    $as_echo 'FGREP' >> "conftest.nl"
4675
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4678
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4679
 
      # Best one so far, save it but keep looking for a better one
4680
 
      ac_cv_path_FGREP="$ac_path_FGREP"
4681
 
      ac_path_FGREP_max=$ac_count
4682
 
    fi
4683
 
    # 10*(2^10) chars as input seems more than enough
4684
 
    test $ac_count -gt 10 && break
4685
 
  done
4686
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687
 
esac
4688
 
 
4689
 
      $ac_path_FGREP_found && break 3
4690
 
    done
4691
 
  done
4692
 
  done
4693
 
IFS=$as_save_IFS
4694
 
  if test -z "$ac_cv_path_FGREP"; then
4695
 
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4696
 
  fi
4697
 
else
4698
 
  ac_cv_path_FGREP=$FGREP
4699
 
fi
4700
 
 
4701
 
   fi
4702
 
fi
4703
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4704
 
$as_echo "$ac_cv_path_FGREP" >&6; }
4705
 
 FGREP="$ac_cv_path_FGREP"
4706
 
 
4707
 
 
4708
 
test -z "$GREP" && GREP=grep
4709
 
 
4710
 
 
4711
 
 
4712
 
 
4713
 
 
4714
 
 
4715
 
 
4716
 
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
4725
 
 
4726
 
 
4727
 
 
4728
 
# Check whether --with-gnu-ld was given.
4729
 
if test "${with_gnu_ld+set}" = set; then :
4730
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4731
 
else
4732
 
  with_gnu_ld=no
4733
 
fi
4734
 
 
4735
 
ac_prog=ld
4736
 
if test "$GCC" = yes; then
4737
 
  # Check if gcc -print-prog-name=ld gives a path.
4738
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4739
 
$as_echo_n "checking for ld used by $CC... " >&6; }
4740
 
  case $host in
4741
 
  *-*-mingw*)
4742
 
    # gcc leaves a trailing carriage return which upsets mingw
4743
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4744
 
  *)
4745
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4746
 
  esac
4747
 
  case $ac_prog in
4748
 
    # Accept absolute paths.
4749
 
    [\\/]* | ?:[\\/]*)
4750
 
      re_direlt='/[^/][^/]*/\.\./'
4751
 
      # Canonicalize the pathname of ld
4752
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4753
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4754
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4755
 
      done
4756
 
      test -z "$LD" && LD="$ac_prog"
4757
 
      ;;
4758
 
  "")
4759
 
    # If it fails, then pretend we aren't using GCC.
4760
 
    ac_prog=ld
4761
 
    ;;
4762
 
  *)
4763
 
    # If it is relative, then search for the first ld in PATH.
4764
 
    with_gnu_ld=unknown
4765
 
    ;;
4766
 
  esac
4767
 
elif test "$with_gnu_ld" = yes; then
4768
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4769
 
$as_echo_n "checking for GNU ld... " >&6; }
4770
 
else
4771
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4772
 
$as_echo_n "checking for non-GNU ld... " >&6; }
4773
 
fi
4774
 
if ${lt_cv_path_LD+:} false; then :
4775
 
  $as_echo_n "(cached) " >&6
4776
 
else
4777
 
  if test -z "$LD"; then
4778
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4779
 
  for ac_dir in $PATH; do
4780
 
    IFS="$lt_save_ifs"
4781
 
    test -z "$ac_dir" && ac_dir=.
4782
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4783
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4784
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4785
 
      # but apparently some variants of GNU ld only accept -v.
4786
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4787
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4788
 
      *GNU* | *'with BFD'*)
4789
 
        test "$with_gnu_ld" != no && break
4790
 
        ;;
4791
 
      *)
4792
 
        test "$with_gnu_ld" != yes && break
4793
 
        ;;
4794
 
      esac
4795
 
    fi
4796
 
  done
4797
 
  IFS="$lt_save_ifs"
4798
 
else
4799
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4800
 
fi
4801
 
fi
4802
 
 
4803
 
LD="$lt_cv_path_LD"
4804
 
if test -n "$LD"; then
4805
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4806
 
$as_echo "$LD" >&6; }
4807
 
else
4808
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809
 
$as_echo "no" >&6; }
4810
 
fi
4811
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4812
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4813
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4814
 
if ${lt_cv_prog_gnu_ld+:} false; then :
4815
 
  $as_echo_n "(cached) " >&6
4816
 
else
4817
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4818
 
case `$LD -v 2>&1 </dev/null` in
4819
 
*GNU* | *'with BFD'*)
4820
 
  lt_cv_prog_gnu_ld=yes
4821
 
  ;;
4822
 
*)
4823
 
  lt_cv_prog_gnu_ld=no
4824
 
  ;;
4825
 
esac
4826
 
fi
4827
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4828
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4829
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4830
 
 
4831
 
 
4832
 
 
4833
 
 
4834
 
 
4835
 
 
4836
 
 
4837
 
 
4838
 
 
4839
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4840
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4841
 
if ${lt_cv_path_NM+:} false; then :
4842
 
  $as_echo_n "(cached) " >&6
4843
 
else
4844
 
  if test -n "$NM"; then
4845
 
  # Let the user override the test.
4846
 
  lt_cv_path_NM="$NM"
4847
 
else
4848
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4849
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4850
 
    lt_nm_to_check="$lt_nm_to_check nm"
4851
 
  fi
4852
 
  for lt_tmp_nm in $lt_nm_to_check; do
4853
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4854
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4855
 
      IFS="$lt_save_ifs"
4856
 
      test -z "$ac_dir" && ac_dir=.
4857
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4858
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4859
 
        # Check to see if the nm accepts a BSD-compat flag.
4860
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4861
 
        #   nm: unknown option "B" ignored
4862
 
        # Tru64's nm complains that /dev/null is an invalid object file
4863
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4864
 
        */dev/null* | *'Invalid file or object type'*)
4865
 
          lt_cv_path_NM="$tmp_nm -B"
4866
 
          break
4867
 
          ;;
4868
 
        *)
4869
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4870
 
          */dev/null*)
4871
 
            lt_cv_path_NM="$tmp_nm -p"
4872
 
            break
4873
 
            ;;
4874
 
          *)
4875
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4876
 
            continue # so that we can try to find one that supports BSD flags
4877
 
            ;;
4878
 
          esac
4879
 
          ;;
4880
 
        esac
4881
 
      fi
4882
 
    done
4883
 
    IFS="$lt_save_ifs"
4884
 
  done
4885
 
  : ${lt_cv_path_NM=no}
4886
 
fi
4887
 
fi
4888
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4889
 
$as_echo "$lt_cv_path_NM" >&6; }
4890
 
if test "$lt_cv_path_NM" != "no"; then
4891
 
  NM="$lt_cv_path_NM"
4892
 
else
4893
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4894
 
  if test -n "$DUMPBIN"; then :
4895
 
    # Let the user override the test.
4896
 
  else
4897
 
    if test -n "$ac_tool_prefix"; then
4898
 
  for ac_prog in dumpbin "link -dump"
4899
 
  do
4900
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4901
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4902
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903
 
$as_echo_n "checking for $ac_word... " >&6; }
4904
 
if ${ac_cv_prog_DUMPBIN+:} false; then :
4905
 
  $as_echo_n "(cached) " >&6
4906
 
else
4907
 
  if test -n "$DUMPBIN"; then
4908
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4909
 
else
4910
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911
 
for as_dir in $PATH
4912
 
do
4913
 
  IFS=$as_save_IFS
4914
 
  test -z "$as_dir" && as_dir=.
4915
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4916
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4918
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919
 
    break 2
4920
 
  fi
4921
 
done
4922
 
  done
4923
 
IFS=$as_save_IFS
4924
 
 
4925
 
fi
4926
 
fi
4927
 
DUMPBIN=$ac_cv_prog_DUMPBIN
4928
 
if test -n "$DUMPBIN"; then
4929
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4930
 
$as_echo "$DUMPBIN" >&6; }
4931
 
else
4932
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933
 
$as_echo "no" >&6; }
4934
 
fi
4935
 
 
4936
 
 
4937
 
    test -n "$DUMPBIN" && break
4938
 
  done
4939
 
fi
4940
 
if test -z "$DUMPBIN"; then
4941
 
  ac_ct_DUMPBIN=$DUMPBIN
4942
 
  for ac_prog in dumpbin "link -dump"
4943
 
do
4944
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4945
 
set dummy $ac_prog; ac_word=$2
4946
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947
 
$as_echo_n "checking for $ac_word... " >&6; }
4948
 
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4949
 
  $as_echo_n "(cached) " >&6
4950
 
else
4951
 
  if test -n "$ac_ct_DUMPBIN"; then
4952
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4953
 
else
4954
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955
 
for as_dir in $PATH
4956
 
do
4957
 
  IFS=$as_save_IFS
4958
 
  test -z "$as_dir" && as_dir=.
4959
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4960
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4962
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963
 
    break 2
4964
 
  fi
4965
 
done
4966
 
  done
4967
 
IFS=$as_save_IFS
4968
 
 
4969
 
fi
4970
 
fi
4971
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4972
 
if test -n "$ac_ct_DUMPBIN"; then
4973
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4974
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
4975
 
else
4976
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977
 
$as_echo "no" >&6; }
4978
 
fi
4979
 
 
4980
 
 
4981
 
  test -n "$ac_ct_DUMPBIN" && break
4982
 
done
4983
 
 
4984
 
  if test "x$ac_ct_DUMPBIN" = x; then
4985
 
    DUMPBIN=":"
4986
 
  else
4987
 
    case $cross_compiling:$ac_tool_warned in
4988
 
yes:)
4989
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991
 
ac_tool_warned=yes ;;
4992
 
esac
4993
 
    DUMPBIN=$ac_ct_DUMPBIN
4994
 
  fi
4995
 
fi
4996
 
 
4997
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4998
 
    *COFF*)
4999
 
      DUMPBIN="$DUMPBIN -symbols"
5000
 
      ;;
5001
 
    *)
5002
 
      DUMPBIN=:
5003
 
      ;;
5004
 
    esac
5005
 
  fi
5006
 
 
5007
 
  if test "$DUMPBIN" != ":"; then
5008
 
    NM="$DUMPBIN"
5009
 
  fi
5010
 
fi
5011
 
test -z "$NM" && NM=nm
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5019
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5020
 
if ${lt_cv_nm_interface+:} false; then :
5021
 
  $as_echo_n "(cached) " >&6
5022
 
else
5023
 
  lt_cv_nm_interface="BSD nm"
5024
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5025
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5026
 
  (eval "$ac_compile" 2>conftest.err)
5027
 
  cat conftest.err >&5
5028
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5029
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5030
 
  cat conftest.err >&5
5031
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5032
 
  cat conftest.out >&5
5033
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5034
 
    lt_cv_nm_interface="MS dumpbin"
5035
 
  fi
5036
 
  rm -f conftest*
5037
 
fi
5038
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5039
 
$as_echo "$lt_cv_nm_interface" >&6; }
5040
 
 
5041
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5042
 
$as_echo_n "checking whether ln -s works... " >&6; }
5043
 
LN_S=$as_ln_s
5044
 
if test "$LN_S" = "ln -s"; then
5045
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046
 
$as_echo "yes" >&6; }
5047
 
else
5048
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5049
 
$as_echo "no, using $LN_S" >&6; }
5050
 
fi
5051
 
 
5052
 
# find the maximum length of command line arguments
5053
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5054
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5055
 
if ${lt_cv_sys_max_cmd_len+:} false; then :
5056
 
  $as_echo_n "(cached) " >&6
5057
 
else
5058
 
    i=0
5059
 
  teststring="ABCD"
5060
 
 
5061
 
  case $build_os in
5062
 
  msdosdjgpp*)
5063
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5064
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5065
 
    # during glob expansion).  Even if it were fixed, the result of this
5066
 
    # check would be larger than it should be.
5067
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5068
 
    ;;
5069
 
 
5070
 
  gnu*)
5071
 
    # Under GNU Hurd, this test is not required because there is
5072
 
    # no limit to the length of command line arguments.
5073
 
    # Libtool will interpret -1 as no limit whatsoever
5074
 
    lt_cv_sys_max_cmd_len=-1;
5075
 
    ;;
5076
 
 
5077
 
  cygwin* | mingw* | cegcc*)
5078
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5079
 
    # about 5 minutes as the teststring grows exponentially.
5080
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5081
 
    # you end up with a "frozen" computer, even though with patience
5082
 
    # the test eventually succeeds (with a max line length of 256k).
5083
 
    # Instead, let's just punt: use the minimum linelength reported by
5084
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5085
 
    lt_cv_sys_max_cmd_len=8192;
5086
 
    ;;
5087
 
 
5088
 
  mint*)
5089
 
    # On MiNT this can take a long time and run out of memory.
5090
 
    lt_cv_sys_max_cmd_len=8192;
5091
 
    ;;
5092
 
 
5093
 
  amigaos*)
5094
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5095
 
    # So we just punt and use a minimum line length of 8192.
5096
 
    lt_cv_sys_max_cmd_len=8192;
5097
 
    ;;
5098
 
 
5099
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5100
 
    # This has been around since 386BSD, at least.  Likely further.
5101
 
    if test -x /sbin/sysctl; then
5102
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5103
 
    elif test -x /usr/sbin/sysctl; then
5104
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5105
 
    else
5106
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5107
 
    fi
5108
 
    # And add a safety zone
5109
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5110
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5111
 
    ;;
5112
 
 
5113
 
  interix*)
5114
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5115
 
    lt_cv_sys_max_cmd_len=196608
5116
 
    ;;
5117
 
 
5118
 
  os2*)
5119
 
    # The test takes a long time on OS/2.
5120
 
    lt_cv_sys_max_cmd_len=8192
5121
 
    ;;
5122
 
 
5123
 
  osf*)
5124
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5125
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5126
 
    # nice to cause kernel panics so lets avoid the loop below.
5127
 
    # First set a reasonable default.
5128
 
    lt_cv_sys_max_cmd_len=16384
5129
 
    #
5130
 
    if test -x /sbin/sysconfig; then
5131
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5132
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5133
 
      esac
5134
 
    fi
5135
 
    ;;
5136
 
  sco3.2v5*)
5137
 
    lt_cv_sys_max_cmd_len=102400
5138
 
    ;;
5139
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5140
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5141
 
    if test -n "$kargmax"; then
5142
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5143
 
    else
5144
 
      lt_cv_sys_max_cmd_len=32768
5145
 
    fi
5146
 
    ;;
5147
 
  *)
5148
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5149
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
5150
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5151
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152
 
    else
5153
 
      # Make teststring a little bigger before we do anything with it.
5154
 
      # a 1K string should be a reasonable start.
5155
 
      for i in 1 2 3 4 5 6 7 8 ; do
5156
 
        teststring=$teststring$teststring
5157
 
      done
5158
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5159
 
      # If test is not a shell built-in, we'll probably end up computing a
5160
 
      # maximum length that is only half of the actual maximum length, but
5161
 
      # we can't tell.
5162
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5163
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5164
 
              test $i != 17 # 1/2 MB should be enough
5165
 
      do
5166
 
        i=`expr $i + 1`
5167
 
        teststring=$teststring$teststring
5168
 
      done
5169
 
      # Only check the string length outside the loop.
5170
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5171
 
      teststring=
5172
 
      # Add a significant safety factor because C++ compilers can tack on
5173
 
      # massive amounts of additional arguments before passing them to the
5174
 
      # linker.  It appears as though 1/2 is a usable value.
5175
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5176
 
    fi
5177
 
    ;;
5178
 
  esac
5179
 
 
5180
 
fi
5181
 
 
5182
 
if test -n $lt_cv_sys_max_cmd_len ; then
5183
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5184
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5185
 
else
5186
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5187
 
$as_echo "none" >&6; }
5188
 
fi
5189
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5190
 
 
5191
 
 
5192
 
 
5193
 
 
5194
 
 
5195
 
 
5196
 
: ${CP="cp -f"}
5197
 
: ${MV="mv -f"}
5198
 
: ${RM="rm -f"}
5199
 
 
5200
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5201
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5202
 
# Try some XSI features
5203
 
xsi_shell=no
5204
 
( _lt_dummy="a/b/c"
5205
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5206
 
      = c,a/b,b/c, \
5207
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
5208
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5209
 
  && xsi_shell=yes
5210
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5211
 
$as_echo "$xsi_shell" >&6; }
5212
 
 
5213
 
 
5214
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5215
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5216
 
lt_shell_append=no
5217
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5218
 
    >/dev/null 2>&1 \
5219
 
  && lt_shell_append=yes
5220
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5221
 
$as_echo "$lt_shell_append" >&6; }
5222
 
 
5223
 
 
5224
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5225
 
  lt_unset=unset
5226
 
else
5227
 
  lt_unset=false
5228
 
fi
5229
 
 
5230
 
 
5231
 
 
5232
 
 
5233
 
 
5234
 
# test EBCDIC or ASCII
5235
 
case `echo X|tr X '\101'` in
5236
 
 A) # ASCII based system
5237
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5238
 
  lt_SP2NL='tr \040 \012'
5239
 
  lt_NL2SP='tr \015\012 \040\040'
5240
 
  ;;
5241
 
 *) # EBCDIC based system
5242
 
  lt_SP2NL='tr \100 \n'
5243
 
  lt_NL2SP='tr \r\n \100\100'
5244
 
  ;;
5245
 
esac
5246
 
 
5247
 
 
5248
 
 
5249
 
 
5250
 
 
5251
 
 
5252
 
 
5253
 
 
5254
 
 
5255
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5256
 
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5257
 
if ${lt_cv_to_host_file_cmd+:} false; then :
5258
 
  $as_echo_n "(cached) " >&6
5259
 
else
5260
 
  case $host in
5261
 
  *-*-mingw* )
5262
 
    case $build in
5263
 
      *-*-mingw* ) # actually msys
5264
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5265
 
        ;;
5266
 
      *-*-cygwin* )
5267
 
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5268
 
        ;;
5269
 
      * ) # otherwise, assume *nix
5270
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5271
 
        ;;
5272
 
    esac
5273
 
    ;;
5274
 
  *-*-cygwin* )
5275
 
    case $build in
5276
 
      *-*-mingw* ) # actually msys
5277
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5278
 
        ;;
5279
 
      *-*-cygwin* )
5280
 
        lt_cv_to_host_file_cmd=func_convert_file_noop
5281
 
        ;;
5282
 
      * ) # otherwise, assume *nix
5283
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5284
 
        ;;
5285
 
    esac
5286
 
    ;;
5287
 
  * ) # unhandled hosts (and "normal" native builds)
5288
 
    lt_cv_to_host_file_cmd=func_convert_file_noop
5289
 
    ;;
5290
 
esac
5291
 
 
5292
 
fi
5293
 
 
5294
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
5295
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5296
 
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5297
 
 
5298
 
 
5299
 
 
5300
 
 
5301
 
 
5302
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5303
 
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5304
 
if ${lt_cv_to_tool_file_cmd+:} false; then :
5305
 
  $as_echo_n "(cached) " >&6
5306
 
else
5307
 
  #assume ordinary cross tools, or native build.
5308
 
lt_cv_to_tool_file_cmd=func_convert_file_noop
5309
 
case $host in
5310
 
  *-*-mingw* )
5311
 
    case $build in
5312
 
      *-*-mingw* ) # actually msys
5313
 
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5314
 
        ;;
5315
 
    esac
5316
 
    ;;
5317
 
esac
5318
 
 
5319
 
fi
5320
 
 
5321
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5322
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5323
 
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5330
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5331
 
if ${lt_cv_ld_reload_flag+:} false; then :
5332
 
  $as_echo_n "(cached) " >&6
5333
 
else
5334
 
  lt_cv_ld_reload_flag='-r'
5335
 
fi
5336
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5337
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5338
 
reload_flag=$lt_cv_ld_reload_flag
5339
 
case $reload_flag in
5340
 
"" | " "*) ;;
5341
 
*) reload_flag=" $reload_flag" ;;
5342
 
esac
5343
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5344
 
case $host_os in
5345
 
  cygwin* | mingw* | pw32* | cegcc*)
5346
 
    if test "$GCC" != yes; then
5347
 
      reload_cmds=false
5348
 
    fi
5349
 
    ;;
5350
 
  darwin*)
5351
 
    if test "$GCC" = yes; then
5352
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5353
 
    else
5354
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5355
 
    fi
5356
 
    ;;
5357
 
esac
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
 
 
5366
 
 
5367
 
if test -n "$ac_tool_prefix"; then
5368
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5369
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5370
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371
 
$as_echo_n "checking for $ac_word... " >&6; }
5372
 
if ${ac_cv_prog_OBJDUMP+:} false; then :
5373
 
  $as_echo_n "(cached) " >&6
5374
 
else
5375
 
  if test -n "$OBJDUMP"; then
5376
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5377
 
else
5378
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379
 
for as_dir in $PATH
5380
 
do
5381
 
  IFS=$as_save_IFS
5382
 
  test -z "$as_dir" && as_dir=.
5383
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5384
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5386
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387
 
    break 2
5388
 
  fi
5389
 
done
5390
 
  done
5391
 
IFS=$as_save_IFS
5392
 
 
5393
 
fi
5394
 
fi
5395
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5396
 
if test -n "$OBJDUMP"; then
5397
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5398
 
$as_echo "$OBJDUMP" >&6; }
5399
 
else
5400
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401
 
$as_echo "no" >&6; }
5402
 
fi
5403
 
 
5404
 
 
5405
 
fi
5406
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5407
 
  ac_ct_OBJDUMP=$OBJDUMP
5408
 
  # Extract the first word of "objdump", so it can be a program name with args.
5409
 
set dummy objdump; ac_word=$2
5410
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411
 
$as_echo_n "checking for $ac_word... " >&6; }
5412
 
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5413
 
  $as_echo_n "(cached) " >&6
5414
 
else
5415
 
  if test -n "$ac_ct_OBJDUMP"; then
5416
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5417
 
else
5418
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419
 
for as_dir in $PATH
5420
 
do
5421
 
  IFS=$as_save_IFS
5422
 
  test -z "$as_dir" && as_dir=.
5423
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5424
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5426
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427
 
    break 2
5428
 
  fi
5429
 
done
5430
 
  done
5431
 
IFS=$as_save_IFS
5432
 
 
5433
 
fi
5434
 
fi
5435
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5436
 
if test -n "$ac_ct_OBJDUMP"; then
5437
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5438
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
5439
 
else
5440
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441
 
$as_echo "no" >&6; }
5442
 
fi
5443
 
 
5444
 
  if test "x$ac_ct_OBJDUMP" = x; then
5445
 
    OBJDUMP="false"
5446
 
  else
5447
 
    case $cross_compiling:$ac_tool_warned in
5448
 
yes:)
5449
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451
 
ac_tool_warned=yes ;;
5452
 
esac
5453
 
    OBJDUMP=$ac_ct_OBJDUMP
5454
 
  fi
5455
 
else
5456
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5457
 
fi
5458
 
 
5459
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
 
 
5466
 
 
5467
 
 
5468
 
 
5469
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5470
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5471
 
if ${lt_cv_deplibs_check_method+:} false; then :
5472
 
  $as_echo_n "(cached) " >&6
5473
 
else
5474
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5475
 
lt_cv_file_magic_test_file=
5476
 
lt_cv_deplibs_check_method='unknown'
5477
 
# Need to set the preceding variable on all platforms that support
5478
 
# interlibrary dependencies.
5479
 
# 'none' -- dependencies not supported.
5480
 
# `unknown' -- same as none, but documents that we really don't know.
5481
 
# 'pass_all' -- all dependencies passed with no checks.
5482
 
# 'test_compile' -- check by making test program.
5483
 
# 'file_magic [[regex]]' -- check by looking for files in library path
5484
 
# which responds to the $file_magic_cmd with a given extended regex.
5485
 
# If you have `file' or equivalent on your system and you're not sure
5486
 
# whether `pass_all' will *always* work, you probably want this one.
5487
 
 
5488
 
case $host_os in
5489
 
aix[4-9]*)
5490
 
  lt_cv_deplibs_check_method=pass_all
5491
 
  ;;
5492
 
 
5493
 
beos*)
5494
 
  lt_cv_deplibs_check_method=pass_all
5495
 
  ;;
5496
 
 
5497
 
bsdi[45]*)
5498
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5499
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5500
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5501
 
  ;;
5502
 
 
5503
 
cygwin*)
5504
 
  # func_win32_libid is a shell function defined in ltmain.sh
5505
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5506
 
  lt_cv_file_magic_cmd='func_win32_libid'
5507
 
  ;;
5508
 
 
5509
 
mingw* | pw32*)
5510
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
5511
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5512
 
  # unless we find 'file', for example because we are cross-compiling.
5513
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5514
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5515
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5516
 
    lt_cv_file_magic_cmd='func_win32_libid'
5517
 
  else
5518
 
    # Keep this pattern in sync with the one in func_win32_libid.
5519
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5520
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5521
 
  fi
5522
 
  ;;
5523
 
 
5524
 
cegcc*)
5525
 
  # use the weaker test based on 'objdump'. See mingw*.
5526
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5527
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5528
 
  ;;
5529
 
 
5530
 
darwin* | rhapsody*)
5531
 
  lt_cv_deplibs_check_method=pass_all
5532
 
  ;;
5533
 
 
5534
 
freebsd* | dragonfly*)
5535
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5536
 
    case $host_cpu in
5537
 
    i*86 )
5538
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5539
 
      # Let's accept both of them until this is cleared up.
5540
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5541
 
      lt_cv_file_magic_cmd=/usr/bin/file
5542
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5543
 
      ;;
5544
 
    esac
5545
 
  else
5546
 
    lt_cv_deplibs_check_method=pass_all
5547
 
  fi
5548
 
  ;;
5549
 
 
5550
 
gnu*)
5551
 
  lt_cv_deplibs_check_method=pass_all
5552
 
  ;;
5553
 
 
5554
 
haiku*)
5555
 
  lt_cv_deplibs_check_method=pass_all
5556
 
  ;;
5557
 
 
5558
 
hpux10.20* | hpux11*)
5559
 
  lt_cv_file_magic_cmd=/usr/bin/file
5560
 
  case $host_cpu in
5561
 
  ia64*)
5562
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5563
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5564
 
    ;;
5565
 
  hppa*64*)
5566
 
    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]'
5567
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5568
 
    ;;
5569
 
  *)
5570
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5571
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5572
 
    ;;
5573
 
  esac
5574
 
  ;;
5575
 
 
5576
 
interix[3-9]*)
5577
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5578
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5579
 
  ;;
5580
 
 
5581
 
irix5* | irix6* | nonstopux*)
5582
 
  case $LD in
5583
 
  *-32|*"-32 ") libmagic=32-bit;;
5584
 
  *-n32|*"-n32 ") libmagic=N32;;
5585
 
  *-64|*"-64 ") libmagic=64-bit;;
5586
 
  *) libmagic=never-match;;
5587
 
  esac
5588
 
  lt_cv_deplibs_check_method=pass_all
5589
 
  ;;
5590
 
 
5591
 
# This must be glibc/ELF.
5592
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5593
 
  lt_cv_deplibs_check_method=pass_all
5594
 
  ;;
5595
 
 
5596
 
netbsd*)
5597
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5598
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5599
 
  else
5600
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5601
 
  fi
5602
 
  ;;
5603
 
 
5604
 
newos6*)
5605
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5606
 
  lt_cv_file_magic_cmd=/usr/bin/file
5607
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5608
 
  ;;
5609
 
 
5610
 
*nto* | *qnx*)
5611
 
  lt_cv_deplibs_check_method=pass_all
5612
 
  ;;
5613
 
 
5614
 
openbsd*)
5615
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5616
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5617
 
  else
5618
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619
 
  fi
5620
 
  ;;
5621
 
 
5622
 
osf3* | osf4* | osf5*)
5623
 
  lt_cv_deplibs_check_method=pass_all
5624
 
  ;;
5625
 
 
5626
 
rdos*)
5627
 
  lt_cv_deplibs_check_method=pass_all
5628
 
  ;;
5629
 
 
5630
 
solaris*)
5631
 
  lt_cv_deplibs_check_method=pass_all
5632
 
  ;;
5633
 
 
5634
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5635
 
  lt_cv_deplibs_check_method=pass_all
5636
 
  ;;
5637
 
 
5638
 
sysv4 | sysv4.3*)
5639
 
  case $host_vendor in
5640
 
  motorola)
5641
 
    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]'
5642
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643
 
    ;;
5644
 
  ncr)
5645
 
    lt_cv_deplibs_check_method=pass_all
5646
 
    ;;
5647
 
  sequent)
5648
 
    lt_cv_file_magic_cmd='/bin/file'
5649
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650
 
    ;;
5651
 
  sni)
5652
 
    lt_cv_file_magic_cmd='/bin/file'
5653
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654
 
    lt_cv_file_magic_test_file=/lib/libc.so
5655
 
    ;;
5656
 
  siemens)
5657
 
    lt_cv_deplibs_check_method=pass_all
5658
 
    ;;
5659
 
  pc)
5660
 
    lt_cv_deplibs_check_method=pass_all
5661
 
    ;;
5662
 
  esac
5663
 
  ;;
5664
 
 
5665
 
tpf*)
5666
 
  lt_cv_deplibs_check_method=pass_all
5667
 
  ;;
5668
 
esac
5669
 
 
5670
 
fi
5671
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5672
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5673
 
 
5674
 
file_magic_glob=
5675
 
want_nocaseglob=no
5676
 
if test "$build" = "$host"; then
5677
 
  case $host_os in
5678
 
  mingw* | pw32*)
5679
 
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5680
 
      want_nocaseglob=yes
5681
 
    else
5682
 
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5683
 
    fi
5684
 
    ;;
5685
 
  esac
5686
 
fi
5687
 
 
5688
 
file_magic_cmd=$lt_cv_file_magic_cmd
5689
 
deplibs_check_method=$lt_cv_deplibs_check_method
5690
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
 
 
5699
 
 
5700
 
 
5701
 
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
 
5713
 
if test -n "$ac_tool_prefix"; then
5714
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717
 
$as_echo_n "checking for $ac_word... " >&6; }
5718
 
if ${ac_cv_prog_DLLTOOL+:} false; then :
5719
 
  $as_echo_n "(cached) " >&6
5720
 
else
5721
 
  if test -n "$DLLTOOL"; then
5722
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5723
 
else
5724
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725
 
for as_dir in $PATH
5726
 
do
5727
 
  IFS=$as_save_IFS
5728
 
  test -z "$as_dir" && as_dir=.
5729
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5730
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733
 
    break 2
5734
 
  fi
5735
 
done
5736
 
  done
5737
 
IFS=$as_save_IFS
5738
 
 
5739
 
fi
5740
 
fi
5741
 
DLLTOOL=$ac_cv_prog_DLLTOOL
5742
 
if test -n "$DLLTOOL"; then
5743
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5744
 
$as_echo "$DLLTOOL" >&6; }
5745
 
else
5746
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747
 
$as_echo "no" >&6; }
5748
 
fi
5749
 
 
5750
 
 
5751
 
fi
5752
 
if test -z "$ac_cv_prog_DLLTOOL"; then
5753
 
  ac_ct_DLLTOOL=$DLLTOOL
5754
 
  # Extract the first word of "dlltool", so it can be a program name with args.
5755
 
set dummy dlltool; ac_word=$2
5756
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757
 
$as_echo_n "checking for $ac_word... " >&6; }
5758
 
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5759
 
  $as_echo_n "(cached) " >&6
5760
 
else
5761
 
  if test -n "$ac_ct_DLLTOOL"; then
5762
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5763
 
else
5764
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765
 
for as_dir in $PATH
5766
 
do
5767
 
  IFS=$as_save_IFS
5768
 
  test -z "$as_dir" && as_dir=.
5769
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5770
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5772
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773
 
    break 2
5774
 
  fi
5775
 
done
5776
 
  done
5777
 
IFS=$as_save_IFS
5778
 
 
5779
 
fi
5780
 
fi
5781
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5782
 
if test -n "$ac_ct_DLLTOOL"; then
5783
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5784
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
5785
 
else
5786
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787
 
$as_echo "no" >&6; }
5788
 
fi
5789
 
 
5790
 
  if test "x$ac_ct_DLLTOOL" = x; then
5791
 
    DLLTOOL="false"
5792
 
  else
5793
 
    case $cross_compiling:$ac_tool_warned in
5794
 
yes:)
5795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797
 
ac_tool_warned=yes ;;
5798
 
esac
5799
 
    DLLTOOL=$ac_ct_DLLTOOL
5800
 
  fi
5801
 
else
5802
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5803
 
fi
5804
 
 
5805
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
 
 
5814
 
 
5815
 
 
5816
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5817
 
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5818
 
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5819
 
  $as_echo_n "(cached) " >&6
5820
 
else
5821
 
  lt_cv_sharedlib_from_linklib_cmd='unknown'
5822
 
 
5823
 
case $host_os in
5824
 
cygwin* | mingw* | pw32* | cegcc*)
5825
 
  # two different shell functions defined in ltmain.sh
5826
 
  # decide which to use based on capabilities of $DLLTOOL
5827
 
  case `$DLLTOOL --help 2>&1` in
5828
 
  *--identify-strict*)
5829
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5830
 
    ;;
5831
 
  *)
5832
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5833
 
    ;;
5834
 
  esac
5835
 
  ;;
5836
 
*)
5837
 
  # fallback: assume linklib IS sharedlib
5838
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5839
 
  ;;
5840
 
esac
5841
 
 
5842
 
fi
5843
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5844
 
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5845
 
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5846
 
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5847
 
 
5848
 
 
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
if test -n "$ac_tool_prefix"; then
5855
 
  for ac_prog in ar
5856
 
  do
5857
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5858
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5859
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860
 
$as_echo_n "checking for $ac_word... " >&6; }
5861
 
if ${ac_cv_prog_AR+:} false; then :
5862
 
  $as_echo_n "(cached) " >&6
5863
 
else
5864
 
  if test -n "$AR"; then
5865
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5866
 
else
5867
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868
 
for as_dir in $PATH
5869
 
do
5870
 
  IFS=$as_save_IFS
5871
 
  test -z "$as_dir" && as_dir=.
5872
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5873
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874
 
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5875
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876
 
    break 2
5877
 
  fi
5878
 
done
5879
 
  done
5880
 
IFS=$as_save_IFS
5881
 
 
5882
 
fi
5883
 
fi
5884
 
AR=$ac_cv_prog_AR
5885
 
if test -n "$AR"; then
5886
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5887
 
$as_echo "$AR" >&6; }
5888
 
else
5889
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890
 
$as_echo "no" >&6; }
5891
 
fi
5892
 
 
5893
 
 
5894
 
    test -n "$AR" && break
5895
 
  done
5896
 
fi
5897
 
if test -z "$AR"; then
5898
 
  ac_ct_AR=$AR
5899
 
  for ac_prog in ar
5900
 
do
5901
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5902
 
set dummy $ac_prog; ac_word=$2
5903
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904
 
$as_echo_n "checking for $ac_word... " >&6; }
5905
 
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5906
 
  $as_echo_n "(cached) " >&6
5907
 
else
5908
 
  if test -n "$ac_ct_AR"; then
5909
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5910
 
else
5911
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912
 
for as_dir in $PATH
5913
 
do
5914
 
  IFS=$as_save_IFS
5915
 
  test -z "$as_dir" && as_dir=.
5916
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5917
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918
 
    ac_cv_prog_ac_ct_AR="$ac_prog"
5919
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920
 
    break 2
5921
 
  fi
5922
 
done
5923
 
  done
5924
 
IFS=$as_save_IFS
5925
 
 
5926
 
fi
5927
 
fi
5928
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5929
 
if test -n "$ac_ct_AR"; then
5930
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5931
 
$as_echo "$ac_ct_AR" >&6; }
5932
 
else
5933
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934
 
$as_echo "no" >&6; }
5935
 
fi
5936
 
 
5937
 
 
5938
 
  test -n "$ac_ct_AR" && break
5939
 
done
5940
 
 
5941
 
  if test "x$ac_ct_AR" = x; then
5942
 
    AR="false"
5943
 
  else
5944
 
    case $cross_compiling:$ac_tool_warned in
5945
 
yes:)
5946
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5947
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5948
 
ac_tool_warned=yes ;;
5949
 
esac
5950
 
    AR=$ac_ct_AR
5951
 
  fi
5952
 
fi
5953
 
 
5954
 
: ${AR=ar}
5955
 
: ${AR_FLAGS=cru}
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5968
 
$as_echo_n "checking for archiver @FILE support... " >&6; }
5969
 
if ${lt_cv_ar_at_file+:} false; then :
5970
 
  $as_echo_n "(cached) " >&6
5971
 
else
5972
 
  lt_cv_ar_at_file=no
5973
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974
 
/* end confdefs.h.  */
5975
 
 
5976
 
int
5977
 
main ()
5978
 
{
5979
 
 
5980
 
  ;
5981
 
  return 0;
5982
 
}
5983
 
_ACEOF
5984
 
if ac_fn_c_try_compile "$LINENO"; then :
5985
 
  echo conftest.$ac_objext > conftest.lst
5986
 
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5987
 
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5988
 
  (eval $lt_ar_try) 2>&5
5989
 
  ac_status=$?
5990
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991
 
  test $ac_status = 0; }
5992
 
      if test "$ac_status" -eq 0; then
5993
 
        # Ensure the archiver fails upon bogus file names.
5994
 
        rm -f conftest.$ac_objext libconftest.a
5995
 
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996
 
  (eval $lt_ar_try) 2>&5
5997
 
  ac_status=$?
5998
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999
 
  test $ac_status = 0; }
6000
 
        if test "$ac_status" -ne 0; then
6001
 
          lt_cv_ar_at_file=@
6002
 
        fi
6003
 
      fi
6004
 
      rm -f conftest.* libconftest.a
6005
 
 
6006
 
fi
6007
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008
 
 
6009
 
fi
6010
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6011
 
$as_echo "$lt_cv_ar_at_file" >&6; }
6012
 
 
6013
 
if test "x$lt_cv_ar_at_file" = xno; then
6014
 
  archiver_list_spec=
6015
 
else
6016
 
  archiver_list_spec=$lt_cv_ar_at_file
6017
 
fi
6018
 
 
6019
 
 
6020
 
 
6021
 
 
6022
 
 
6023
 
 
6024
 
 
6025
 
if test -n "$ac_tool_prefix"; then
6026
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6027
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6028
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029
 
$as_echo_n "checking for $ac_word... " >&6; }
6030
 
if ${ac_cv_prog_STRIP+:} false; then :
6031
 
  $as_echo_n "(cached) " >&6
6032
 
else
6033
 
  if test -n "$STRIP"; then
6034
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6035
 
else
6036
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037
 
for as_dir in $PATH
6038
 
do
6039
 
  IFS=$as_save_IFS
6040
 
  test -z "$as_dir" && as_dir=.
6041
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6042
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6044
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045
 
    break 2
6046
 
  fi
6047
 
done
6048
 
  done
6049
 
IFS=$as_save_IFS
6050
 
 
6051
 
fi
6052
 
fi
6053
 
STRIP=$ac_cv_prog_STRIP
6054
 
if test -n "$STRIP"; then
6055
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6056
 
$as_echo "$STRIP" >&6; }
6057
 
else
6058
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059
 
$as_echo "no" >&6; }
6060
 
fi
6061
 
 
6062
 
 
6063
 
fi
6064
 
if test -z "$ac_cv_prog_STRIP"; then
6065
 
  ac_ct_STRIP=$STRIP
6066
 
  # Extract the first word of "strip", so it can be a program name with args.
6067
 
set dummy strip; ac_word=$2
6068
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069
 
$as_echo_n "checking for $ac_word... " >&6; }
6070
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6071
 
  $as_echo_n "(cached) " >&6
6072
 
else
6073
 
  if test -n "$ac_ct_STRIP"; then
6074
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6075
 
else
6076
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077
 
for as_dir in $PATH
6078
 
do
6079
 
  IFS=$as_save_IFS
6080
 
  test -z "$as_dir" && as_dir=.
6081
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6082
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083
 
    ac_cv_prog_ac_ct_STRIP="strip"
6084
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085
 
    break 2
6086
 
  fi
6087
 
done
6088
 
  done
6089
 
IFS=$as_save_IFS
6090
 
 
6091
 
fi
6092
 
fi
6093
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6094
 
if test -n "$ac_ct_STRIP"; then
6095
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6096
 
$as_echo "$ac_ct_STRIP" >&6; }
6097
 
else
6098
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099
 
$as_echo "no" >&6; }
6100
 
fi
6101
 
 
6102
 
  if test "x$ac_ct_STRIP" = x; then
6103
 
    STRIP=":"
6104
 
  else
6105
 
    case $cross_compiling:$ac_tool_warned in
6106
 
yes:)
6107
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109
 
ac_tool_warned=yes ;;
6110
 
esac
6111
 
    STRIP=$ac_ct_STRIP
6112
 
  fi
6113
 
else
6114
 
  STRIP="$ac_cv_prog_STRIP"
6115
 
fi
6116
 
 
6117
 
test -z "$STRIP" && STRIP=:
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
if test -n "$ac_tool_prefix"; then
6125
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6126
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6127
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128
 
$as_echo_n "checking for $ac_word... " >&6; }
6129
 
if ${ac_cv_prog_RANLIB+:} false; then :
6130
 
  $as_echo_n "(cached) " >&6
6131
 
else
6132
 
  if test -n "$RANLIB"; then
6133
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6134
 
else
6135
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136
 
for as_dir in $PATH
6137
 
do
6138
 
  IFS=$as_save_IFS
6139
 
  test -z "$as_dir" && as_dir=.
6140
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6141
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6143
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144
 
    break 2
6145
 
  fi
6146
 
done
6147
 
  done
6148
 
IFS=$as_save_IFS
6149
 
 
6150
 
fi
6151
 
fi
6152
 
RANLIB=$ac_cv_prog_RANLIB
6153
 
if test -n "$RANLIB"; then
6154
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6155
 
$as_echo "$RANLIB" >&6; }
6156
 
else
6157
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158
 
$as_echo "no" >&6; }
6159
 
fi
6160
 
 
6161
 
 
6162
 
fi
6163
 
if test -z "$ac_cv_prog_RANLIB"; then
6164
 
  ac_ct_RANLIB=$RANLIB
6165
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6166
 
set dummy ranlib; ac_word=$2
6167
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168
 
$as_echo_n "checking for $ac_word... " >&6; }
6169
 
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6170
 
  $as_echo_n "(cached) " >&6
6171
 
else
6172
 
  if test -n "$ac_ct_RANLIB"; then
6173
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6174
 
else
6175
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176
 
for as_dir in $PATH
6177
 
do
6178
 
  IFS=$as_save_IFS
6179
 
  test -z "$as_dir" && as_dir=.
6180
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6181
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6183
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184
 
    break 2
6185
 
  fi
6186
 
done
6187
 
  done
6188
 
IFS=$as_save_IFS
6189
 
 
6190
 
fi
6191
 
fi
6192
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6193
 
if test -n "$ac_ct_RANLIB"; then
6194
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6195
 
$as_echo "$ac_ct_RANLIB" >&6; }
6196
 
else
6197
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198
 
$as_echo "no" >&6; }
6199
 
fi
6200
 
 
6201
 
  if test "x$ac_ct_RANLIB" = x; then
6202
 
    RANLIB=":"
6203
 
  else
6204
 
    case $cross_compiling:$ac_tool_warned in
6205
 
yes:)
6206
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208
 
ac_tool_warned=yes ;;
6209
 
esac
6210
 
    RANLIB=$ac_ct_RANLIB
6211
 
  fi
6212
 
else
6213
 
  RANLIB="$ac_cv_prog_RANLIB"
6214
 
fi
6215
 
 
6216
 
test -z "$RANLIB" && RANLIB=:
6217
 
 
6218
 
 
6219
 
 
6220
 
 
6221
 
 
6222
 
 
6223
 
# Determine commands to create old-style static archives.
6224
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6225
 
old_postinstall_cmds='chmod 644 $oldlib'
6226
 
old_postuninstall_cmds=
6227
 
 
6228
 
if test -n "$RANLIB"; then
6229
 
  case $host_os in
6230
 
  openbsd*)
6231
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6232
 
    ;;
6233
 
  *)
6234
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6235
 
    ;;
6236
 
  esac
6237
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6238
 
fi
6239
 
 
6240
 
case $host_os in
6241
 
  darwin*)
6242
 
    lock_old_archive_extraction=yes ;;
6243
 
  *)
6244
 
    lock_old_archive_extraction=no ;;
6245
 
esac
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
 
 
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
 
6261
 
 
6262
 
 
6263
 
 
6264
 
 
6265
 
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
 
6271
 
 
6272
 
 
6273
 
 
6274
 
 
6275
 
 
6276
 
 
6277
 
 
6278
 
 
6279
 
 
6280
 
 
6281
 
 
6282
 
 
6283
 
 
6284
 
 
6285
 
# If no C compiler was specified, use CC.
6286
 
LTCC=${LTCC-"$CC"}
6287
 
 
6288
 
# If no C compiler flags were specified, use CFLAGS.
6289
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6290
 
 
6291
 
# Allow CC to be a program name with arguments.
6292
 
compiler=$CC
6293
 
 
6294
 
 
6295
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6296
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6297
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6298
 
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6299
 
  $as_echo_n "(cached) " >&6
6300
 
else
6301
 
 
6302
 
# These are sane defaults that work on at least a few old systems.
6303
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6304
 
 
6305
 
# Character class describing NM global symbol codes.
6306
 
symcode='[BCDEGRST]'
6307
 
 
6308
 
# Regexp to match symbols that can be accessed directly from C.
6309
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6310
 
 
6311
 
# Define system-specific variables.
6312
 
case $host_os in
6313
 
aix*)
6314
 
  symcode='[BCDT]'
6315
 
  ;;
6316
 
cygwin* | mingw* | pw32* | cegcc*)
6317
 
  symcode='[ABCDGISTW]'
6318
 
  ;;
6319
 
hpux*)
6320
 
  if test "$host_cpu" = ia64; then
6321
 
    symcode='[ABCDEGRST]'
6322
 
  fi
6323
 
  ;;
6324
 
irix* | nonstopux*)
6325
 
  symcode='[BCDEGRST]'
6326
 
  ;;
6327
 
osf*)
6328
 
  symcode='[BCDEGQRST]'
6329
 
  ;;
6330
 
solaris*)
6331
 
  symcode='[BDRT]'
6332
 
  ;;
6333
 
sco3.2v5*)
6334
 
  symcode='[DT]'
6335
 
  ;;
6336
 
sysv4.2uw2*)
6337
 
  symcode='[DT]'
6338
 
  ;;
6339
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6340
 
  symcode='[ABDT]'
6341
 
  ;;
6342
 
sysv4)
6343
 
  symcode='[DFNSTU]'
6344
 
  ;;
6345
 
esac
6346
 
 
6347
 
# If we're using GNU nm, then use its standard symbol codes.
6348
 
case `$NM -V 2>&1` in
6349
 
*GNU* | *'with BFD'*)
6350
 
  symcode='[ABCDGIRSTW]' ;;
6351
 
esac
6352
 
 
6353
 
# Transform an extracted symbol line into a proper C declaration.
6354
 
# Some systems (esp. on ia64) link data and code symbols differently,
6355
 
# so use this general approach.
6356
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6357
 
 
6358
 
# Transform an extracted symbol line into symbol name and symbol address
6359
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6360
 
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'"
6361
 
 
6362
 
# Handle CRLF in mingw tool chain
6363
 
opt_cr=
6364
 
case $build_os in
6365
 
mingw*)
6366
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6367
 
  ;;
6368
 
esac
6369
 
 
6370
 
# Try without a prefix underscore, then with it.
6371
 
for ac_symprfx in "" "_"; do
6372
 
 
6373
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6374
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6375
 
 
6376
 
  # Write the raw and C identifiers.
6377
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6378
 
    # Fake it for dumpbin and say T for any non-static function
6379
 
    # and D for any global variable.
6380
 
    # Also find C++ and __fastcall symbols from MSVC++,
6381
 
    # which start with @ or ?.
6382
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6383
 
"     {last_section=section; section=\$ 3};"\
6384
 
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6385
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6386
 
"     \$ 0!~/External *\|/{next};"\
6387
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6388
 
"     {if(hide[section]) next};"\
6389
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6390
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6391
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6392
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6393
 
"     ' prfx=^$ac_symprfx"
6394
 
  else
6395
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6396
 
  fi
6397
 
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6398
 
 
6399
 
  # Check to see that the pipe works correctly.
6400
 
  pipe_works=no
6401
 
 
6402
 
  rm -f conftest*
6403
 
  cat > conftest.$ac_ext <<_LT_EOF
6404
 
#ifdef __cplusplus
6405
 
extern "C" {
6406
 
#endif
6407
 
char nm_test_var;
6408
 
void nm_test_func(void);
6409
 
void nm_test_func(void){}
6410
 
#ifdef __cplusplus
6411
 
}
6412
 
#endif
6413
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6414
 
_LT_EOF
6415
 
 
6416
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417
 
  (eval $ac_compile) 2>&5
6418
 
  ac_status=$?
6419
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420
 
  test $ac_status = 0; }; then
6421
 
    # Now try to grab the symbols.
6422
 
    nlist=conftest.nm
6423
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6424
 
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6425
 
  ac_status=$?
6426
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427
 
  test $ac_status = 0; } && test -s "$nlist"; then
6428
 
      # Try sorting and uniquifying the output.
6429
 
      if sort "$nlist" | uniq > "$nlist"T; then
6430
 
        mv -f "$nlist"T "$nlist"
6431
 
      else
6432
 
        rm -f "$nlist"T
6433
 
      fi
6434
 
 
6435
 
      # Make sure that we snagged all the symbols we need.
6436
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6437
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6438
 
          cat <<_LT_EOF > conftest.$ac_ext
6439
 
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6440
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6441
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6442
 
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6443
 
# define LT_DLSYM_CONST
6444
 
#elif defined(__osf__)
6445
 
/* This system does not cope well with relocations in const data.  */
6446
 
# define LT_DLSYM_CONST
6447
 
#else
6448
 
# define LT_DLSYM_CONST const
6449
 
#endif
6450
 
 
6451
 
#ifdef __cplusplus
6452
 
extern "C" {
6453
 
#endif
6454
 
 
6455
 
_LT_EOF
6456
 
          # Now generate the symbol file.
6457
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6458
 
 
6459
 
          cat <<_LT_EOF >> conftest.$ac_ext
6460
 
 
6461
 
/* The mapping between symbol names and symbols.  */
6462
 
LT_DLSYM_CONST struct {
6463
 
  const char *name;
6464
 
  void       *address;
6465
 
}
6466
 
lt__PROGRAM__LTX_preloaded_symbols[] =
6467
 
{
6468
 
  { "@PROGRAM@", (void *) 0 },
6469
 
_LT_EOF
6470
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6471
 
          cat <<\_LT_EOF >> conftest.$ac_ext
6472
 
  {0, (void *) 0}
6473
 
};
6474
 
 
6475
 
/* This works around a problem in FreeBSD linker */
6476
 
#ifdef FREEBSD_WORKAROUND
6477
 
static const void *lt_preloaded_setup() {
6478
 
  return lt__PROGRAM__LTX_preloaded_symbols;
6479
 
}
6480
 
#endif
6481
 
 
6482
 
#ifdef __cplusplus
6483
 
}
6484
 
#endif
6485
 
_LT_EOF
6486
 
          # Now try linking the two files.
6487
 
          mv conftest.$ac_objext conftstm.$ac_objext
6488
 
          lt_globsym_save_LIBS=$LIBS
6489
 
          lt_globsym_save_CFLAGS=$CFLAGS
6490
 
          LIBS="conftstm.$ac_objext"
6491
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6493
 
  (eval $ac_link) 2>&5
6494
 
  ac_status=$?
6495
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6497
 
            pipe_works=yes
6498
 
          fi
6499
 
          LIBS=$lt_globsym_save_LIBS
6500
 
          CFLAGS=$lt_globsym_save_CFLAGS
6501
 
        else
6502
 
          echo "cannot find nm_test_func in $nlist" >&5
6503
 
        fi
6504
 
      else
6505
 
        echo "cannot find nm_test_var in $nlist" >&5
6506
 
      fi
6507
 
    else
6508
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509
 
    fi
6510
 
  else
6511
 
    echo "$progname: failed program was:" >&5
6512
 
    cat conftest.$ac_ext >&5
6513
 
  fi
6514
 
  rm -rf conftest* conftst*
6515
 
 
6516
 
  # Do not use the global_symbol_pipe unless it works.
6517
 
  if test "$pipe_works" = yes; then
6518
 
    break
6519
 
  else
6520
 
    lt_cv_sys_global_symbol_pipe=
6521
 
  fi
6522
 
done
6523
 
 
6524
 
fi
6525
 
 
6526
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527
 
  lt_cv_sys_global_symbol_to_cdecl=
6528
 
fi
6529
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6531
 
$as_echo "failed" >&6; }
6532
 
else
6533
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6534
 
$as_echo "ok" >&6; }
6535
 
fi
6536
 
 
6537
 
# Response file support.
6538
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6539
 
  nm_file_list_spec='@'
6540
 
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6541
 
  nm_file_list_spec='@'
6542
 
fi
6543
 
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
 
 
6560
 
 
6561
 
 
6562
 
 
6563
 
 
6564
 
 
6565
 
 
6566
 
 
6567
 
 
6568
 
 
6569
 
 
6570
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6571
 
$as_echo_n "checking for sysroot... " >&6; }
6572
 
 
6573
 
# Check whether --with-sysroot was given.
6574
 
if test "${with_sysroot+set}" = set; then :
6575
 
  withval=$with_sysroot;
6576
 
else
6577
 
  with_sysroot=no
6578
 
fi
6579
 
 
6580
 
 
6581
 
lt_sysroot=
6582
 
case ${with_sysroot} in #(
6583
 
 yes)
6584
 
   if test "$GCC" = yes; then
6585
 
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6586
 
   fi
6587
 
   ;; #(
6588
 
 /*)
6589
 
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6590
 
   ;; #(
6591
 
 no|'')
6592
 
   ;; #(
6593
 
 *)
6594
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6595
 
$as_echo "${with_sysroot}" >&6; }
6596
 
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6597
 
   ;;
6598
 
esac
6599
 
 
6600
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6601
 
$as_echo "${lt_sysroot:-no}" >&6; }
6602
 
 
6603
 
 
6604
 
 
6605
 
 
6606
 
 
6607
 
# Check whether --enable-libtool-lock was given.
6608
 
if test "${enable_libtool_lock+set}" = set; then :
6609
 
  enableval=$enable_libtool_lock;
6610
 
fi
6611
 
 
6612
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6613
 
 
6614
 
# Some flags need to be propagated to the compiler or linker for good
6615
 
# libtool support.
6616
 
case $host in
6617
 
ia64-*-hpux*)
6618
 
  # Find out which ABI we are using.
6619
 
  echo 'int i;' > conftest.$ac_ext
6620
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621
 
  (eval $ac_compile) 2>&5
6622
 
  ac_status=$?
6623
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624
 
  test $ac_status = 0; }; then
6625
 
    case `/usr/bin/file conftest.$ac_objext` in
6626
 
      *ELF-32*)
6627
 
        HPUX_IA64_MODE="32"
6628
 
        ;;
6629
 
      *ELF-64*)
6630
 
        HPUX_IA64_MODE="64"
6631
 
        ;;
6632
 
    esac
6633
 
  fi
6634
 
  rm -rf conftest*
6635
 
  ;;
6636
 
*-*-irix6*)
6637
 
  # Find out which ABI we are using.
6638
 
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6639
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640
 
  (eval $ac_compile) 2>&5
6641
 
  ac_status=$?
6642
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643
 
  test $ac_status = 0; }; then
6644
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
6645
 
      case `/usr/bin/file conftest.$ac_objext` in
6646
 
        *32-bit*)
6647
 
          LD="${LD-ld} -melf32bsmip"
6648
 
          ;;
6649
 
        *N32*)
6650
 
          LD="${LD-ld} -melf32bmipn32"
6651
 
          ;;
6652
 
        *64-bit*)
6653
 
          LD="${LD-ld} -melf64bmip"
6654
 
        ;;
6655
 
      esac
6656
 
    else
6657
 
      case `/usr/bin/file conftest.$ac_objext` in
6658
 
        *32-bit*)
6659
 
          LD="${LD-ld} -32"
6660
 
          ;;
6661
 
        *N32*)
6662
 
          LD="${LD-ld} -n32"
6663
 
          ;;
6664
 
        *64-bit*)
6665
 
          LD="${LD-ld} -64"
6666
 
          ;;
6667
 
      esac
6668
 
    fi
6669
 
  fi
6670
 
  rm -rf conftest*
6671
 
  ;;
6672
 
 
6673
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6674
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6675
 
  # Find out which ABI we are using.
6676
 
  echo 'int i;' > conftest.$ac_ext
6677
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678
 
  (eval $ac_compile) 2>&5
6679
 
  ac_status=$?
6680
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681
 
  test $ac_status = 0; }; then
6682
 
    case `/usr/bin/file conftest.o` in
6683
 
      *32-bit*)
6684
 
        case $host in
6685
 
          x86_64-*kfreebsd*-gnu)
6686
 
            LD="${LD-ld} -m elf_i386_fbsd"
6687
 
            ;;
6688
 
          x86_64-*linux*)
6689
 
            LD="${LD-ld} -m elf_i386"
6690
 
            ;;
6691
 
          ppc64-*linux*|powerpc64-*linux*)
6692
 
            LD="${LD-ld} -m elf32ppclinux"
6693
 
            ;;
6694
 
          s390x-*linux*)
6695
 
            LD="${LD-ld} -m elf_s390"
6696
 
            ;;
6697
 
          sparc64-*linux*)
6698
 
            LD="${LD-ld} -m elf32_sparc"
6699
 
            ;;
6700
 
        esac
6701
 
        ;;
6702
 
      *64-bit*)
6703
 
        case $host in
6704
 
          x86_64-*kfreebsd*-gnu)
6705
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
6706
 
            ;;
6707
 
          x86_64-*linux*)
6708
 
            LD="${LD-ld} -m elf_x86_64"
6709
 
            ;;
6710
 
          ppc*-*linux*|powerpc*-*linux*)
6711
 
            LD="${LD-ld} -m elf64ppc"
6712
 
            ;;
6713
 
          s390*-*linux*|s390*-*tpf*)
6714
 
            LD="${LD-ld} -m elf64_s390"
6715
 
            ;;
6716
 
          sparc*-*linux*)
6717
 
            LD="${LD-ld} -m elf64_sparc"
6718
 
            ;;
6719
 
        esac
6720
 
        ;;
6721
 
    esac
6722
 
  fi
6723
 
  rm -rf conftest*
6724
 
  ;;
6725
 
 
6726
 
*-*-sco3.2v5*)
6727
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6728
 
  SAVE_CFLAGS="$CFLAGS"
6729
 
  CFLAGS="$CFLAGS -belf"
6730
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6731
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6732
 
if ${lt_cv_cc_needs_belf+:} false; then :
6733
 
  $as_echo_n "(cached) " >&6
6734
 
else
6735
 
  ac_ext=c
6736
 
ac_cpp='$CPP $CPPFLAGS'
6737
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740
 
 
6741
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742
 
/* end confdefs.h.  */
6743
 
 
6744
 
int
6745
 
main ()
6746
 
{
6747
 
 
6748
 
  ;
6749
 
  return 0;
6750
 
}
6751
 
_ACEOF
6752
 
if ac_fn_c_try_link "$LINENO"; then :
6753
 
  lt_cv_cc_needs_belf=yes
6754
 
else
6755
 
  lt_cv_cc_needs_belf=no
6756
 
fi
6757
 
rm -f core conftest.err conftest.$ac_objext \
6758
 
    conftest$ac_exeext conftest.$ac_ext
6759
 
     ac_ext=c
6760
 
ac_cpp='$CPP $CPPFLAGS'
6761
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6764
 
 
6765
 
fi
6766
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6767
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6768
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6769
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6770
 
    CFLAGS="$SAVE_CFLAGS"
6771
 
  fi
6772
 
  ;;
6773
 
*-*solaris*)
6774
 
  # Find out which ABI we are using.
6775
 
  echo 'int i;' > conftest.$ac_ext
6776
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777
 
  (eval $ac_compile) 2>&5
6778
 
  ac_status=$?
6779
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780
 
  test $ac_status = 0; }; then
6781
 
    case `/usr/bin/file conftest.o` in
6782
 
    *64-bit*)
6783
 
      case $lt_cv_prog_gnu_ld in
6784
 
      yes*)
6785
 
        case $host in
6786
 
        i?86-*-solaris*)
6787
 
          LD="${LD-ld} -m elf_x86_64"
6788
 
          ;;
6789
 
        sparc*-*-solaris*)
6790
 
          LD="${LD-ld} -m elf64_sparc"
6791
 
          ;;
6792
 
        esac
6793
 
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6794
 
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6795
 
          LD="${LD-ld}_sol2"
6796
 
        fi
6797
 
        ;;
6798
 
      *)
6799
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6800
 
          LD="${LD-ld} -64"
6801
 
        fi
6802
 
        ;;
6803
 
      esac
6804
 
      ;;
6805
 
    esac
6806
 
  fi
6807
 
  rm -rf conftest*
6808
 
  ;;
6809
 
esac
6810
 
 
6811
 
need_locks="$enable_libtool_lock"
6812
 
 
6813
 
if test -n "$ac_tool_prefix"; then
6814
 
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6815
 
set dummy ${ac_tool_prefix}mt; ac_word=$2
6816
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817
 
$as_echo_n "checking for $ac_word... " >&6; }
6818
 
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6819
 
  $as_echo_n "(cached) " >&6
6820
 
else
6821
 
  if test -n "$MANIFEST_TOOL"; then
6822
 
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6823
 
else
6824
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825
 
for as_dir in $PATH
6826
 
do
6827
 
  IFS=$as_save_IFS
6828
 
  test -z "$as_dir" && as_dir=.
6829
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6830
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831
 
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6832
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833
 
    break 2
6834
 
  fi
6835
 
done
6836
 
  done
6837
 
IFS=$as_save_IFS
6838
 
 
6839
 
fi
6840
 
fi
6841
 
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6842
 
if test -n "$MANIFEST_TOOL"; then
6843
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6844
 
$as_echo "$MANIFEST_TOOL" >&6; }
6845
 
else
6846
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847
 
$as_echo "no" >&6; }
6848
 
fi
6849
 
 
6850
 
 
6851
 
fi
6852
 
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6853
 
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6854
 
  # Extract the first word of "mt", so it can be a program name with args.
6855
 
set dummy mt; ac_word=$2
6856
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857
 
$as_echo_n "checking for $ac_word... " >&6; }
6858
 
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6859
 
  $as_echo_n "(cached) " >&6
6860
 
else
6861
 
  if test -n "$ac_ct_MANIFEST_TOOL"; then
6862
 
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6863
 
else
6864
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865
 
for as_dir in $PATH
6866
 
do
6867
 
  IFS=$as_save_IFS
6868
 
  test -z "$as_dir" && as_dir=.
6869
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6870
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871
 
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6872
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873
 
    break 2
6874
 
  fi
6875
 
done
6876
 
  done
6877
 
IFS=$as_save_IFS
6878
 
 
6879
 
fi
6880
 
fi
6881
 
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6882
 
if test -n "$ac_ct_MANIFEST_TOOL"; then
6883
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6884
 
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6885
 
else
6886
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887
 
$as_echo "no" >&6; }
6888
 
fi
6889
 
 
6890
 
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6891
 
    MANIFEST_TOOL=":"
6892
 
  else
6893
 
    case $cross_compiling:$ac_tool_warned in
6894
 
yes:)
6895
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897
 
ac_tool_warned=yes ;;
6898
 
esac
6899
 
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6900
 
  fi
6901
 
else
6902
 
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6903
 
fi
6904
 
 
6905
 
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6906
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6907
 
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6908
 
if ${lt_cv_path_mainfest_tool+:} false; then :
6909
 
  $as_echo_n "(cached) " >&6
6910
 
else
6911
 
  lt_cv_path_mainfest_tool=no
6912
 
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6913
 
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6914
 
  cat conftest.err >&5
6915
 
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6916
 
    lt_cv_path_mainfest_tool=yes
6917
 
  fi
6918
 
  rm -f conftest*
6919
 
fi
6920
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6921
 
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6922
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6923
 
  MANIFEST_TOOL=:
6924
 
fi
6925
 
 
6926
 
 
6927
 
 
6928
 
 
6929
 
 
6930
 
 
6931
 
  case $host_os in
6932
 
    rhapsody* | darwin*)
6933
 
    if test -n "$ac_tool_prefix"; then
6934
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6935
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6936
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937
 
$as_echo_n "checking for $ac_word... " >&6; }
6938
 
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6939
 
  $as_echo_n "(cached) " >&6
6940
 
else
6941
 
  if test -n "$DSYMUTIL"; then
6942
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6943
 
else
6944
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945
 
for as_dir in $PATH
6946
 
do
6947
 
  IFS=$as_save_IFS
6948
 
  test -z "$as_dir" && as_dir=.
6949
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6950
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6952
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953
 
    break 2
6954
 
  fi
6955
 
done
6956
 
  done
6957
 
IFS=$as_save_IFS
6958
 
 
6959
 
fi
6960
 
fi
6961
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6962
 
if test -n "$DSYMUTIL"; then
6963
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6964
 
$as_echo "$DSYMUTIL" >&6; }
6965
 
else
6966
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967
 
$as_echo "no" >&6; }
6968
 
fi
6969
 
 
6970
 
 
6971
 
fi
6972
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
6973
 
  ac_ct_DSYMUTIL=$DSYMUTIL
6974
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
6975
 
set dummy dsymutil; ac_word=$2
6976
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977
 
$as_echo_n "checking for $ac_word... " >&6; }
6978
 
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6979
 
  $as_echo_n "(cached) " >&6
6980
 
else
6981
 
  if test -n "$ac_ct_DSYMUTIL"; then
6982
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6983
 
else
6984
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985
 
for as_dir in $PATH
6986
 
do
6987
 
  IFS=$as_save_IFS
6988
 
  test -z "$as_dir" && as_dir=.
6989
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6990
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6992
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993
 
    break 2
6994
 
  fi
6995
 
done
6996
 
  done
6997
 
IFS=$as_save_IFS
6998
 
 
6999
 
fi
7000
 
fi
7001
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7002
 
if test -n "$ac_ct_DSYMUTIL"; then
7003
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7004
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7005
 
else
7006
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007
 
$as_echo "no" >&6; }
7008
 
fi
7009
 
 
7010
 
  if test "x$ac_ct_DSYMUTIL" = x; then
7011
 
    DSYMUTIL=":"
7012
 
  else
7013
 
    case $cross_compiling:$ac_tool_warned in
7014
 
yes:)
7015
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017
 
ac_tool_warned=yes ;;
7018
 
esac
7019
 
    DSYMUTIL=$ac_ct_DSYMUTIL
7020
 
  fi
7021
 
else
7022
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7023
 
fi
7024
 
 
7025
 
    if test -n "$ac_tool_prefix"; then
7026
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7027
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7028
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029
 
$as_echo_n "checking for $ac_word... " >&6; }
7030
 
if ${ac_cv_prog_NMEDIT+:} false; then :
7031
 
  $as_echo_n "(cached) " >&6
7032
 
else
7033
 
  if test -n "$NMEDIT"; then
7034
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7035
 
else
7036
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037
 
for as_dir in $PATH
7038
 
do
7039
 
  IFS=$as_save_IFS
7040
 
  test -z "$as_dir" && as_dir=.
7041
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7042
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7044
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045
 
    break 2
7046
 
  fi
7047
 
done
7048
 
  done
7049
 
IFS=$as_save_IFS
7050
 
 
7051
 
fi
7052
 
fi
7053
 
NMEDIT=$ac_cv_prog_NMEDIT
7054
 
if test -n "$NMEDIT"; then
7055
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7056
 
$as_echo "$NMEDIT" >&6; }
7057
 
else
7058
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059
 
$as_echo "no" >&6; }
7060
 
fi
7061
 
 
7062
 
 
7063
 
fi
7064
 
if test -z "$ac_cv_prog_NMEDIT"; then
7065
 
  ac_ct_NMEDIT=$NMEDIT
7066
 
  # Extract the first word of "nmedit", so it can be a program name with args.
7067
 
set dummy nmedit; ac_word=$2
7068
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069
 
$as_echo_n "checking for $ac_word... " >&6; }
7070
 
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7071
 
  $as_echo_n "(cached) " >&6
7072
 
else
7073
 
  if test -n "$ac_ct_NMEDIT"; then
7074
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7075
 
else
7076
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077
 
for as_dir in $PATH
7078
 
do
7079
 
  IFS=$as_save_IFS
7080
 
  test -z "$as_dir" && as_dir=.
7081
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7082
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7084
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085
 
    break 2
7086
 
  fi
7087
 
done
7088
 
  done
7089
 
IFS=$as_save_IFS
7090
 
 
7091
 
fi
7092
 
fi
7093
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7094
 
if test -n "$ac_ct_NMEDIT"; then
7095
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7096
 
$as_echo "$ac_ct_NMEDIT" >&6; }
7097
 
else
7098
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099
 
$as_echo "no" >&6; }
7100
 
fi
7101
 
 
7102
 
  if test "x$ac_ct_NMEDIT" = x; then
7103
 
    NMEDIT=":"
7104
 
  else
7105
 
    case $cross_compiling:$ac_tool_warned in
7106
 
yes:)
7107
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109
 
ac_tool_warned=yes ;;
7110
 
esac
7111
 
    NMEDIT=$ac_ct_NMEDIT
7112
 
  fi
7113
 
else
7114
 
  NMEDIT="$ac_cv_prog_NMEDIT"
7115
 
fi
7116
 
 
7117
 
    if test -n "$ac_tool_prefix"; then
7118
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7119
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7120
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121
 
$as_echo_n "checking for $ac_word... " >&6; }
7122
 
if ${ac_cv_prog_LIPO+:} false; then :
7123
 
  $as_echo_n "(cached) " >&6
7124
 
else
7125
 
  if test -n "$LIPO"; then
7126
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7127
 
else
7128
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129
 
for as_dir in $PATH
7130
 
do
7131
 
  IFS=$as_save_IFS
7132
 
  test -z "$as_dir" && as_dir=.
7133
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7134
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7136
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137
 
    break 2
7138
 
  fi
7139
 
done
7140
 
  done
7141
 
IFS=$as_save_IFS
7142
 
 
7143
 
fi
7144
 
fi
7145
 
LIPO=$ac_cv_prog_LIPO
7146
 
if test -n "$LIPO"; then
7147
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7148
 
$as_echo "$LIPO" >&6; }
7149
 
else
7150
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151
 
$as_echo "no" >&6; }
7152
 
fi
7153
 
 
7154
 
 
7155
 
fi
7156
 
if test -z "$ac_cv_prog_LIPO"; then
7157
 
  ac_ct_LIPO=$LIPO
7158
 
  # Extract the first word of "lipo", so it can be a program name with args.
7159
 
set dummy lipo; ac_word=$2
7160
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161
 
$as_echo_n "checking for $ac_word... " >&6; }
7162
 
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7163
 
  $as_echo_n "(cached) " >&6
7164
 
else
7165
 
  if test -n "$ac_ct_LIPO"; then
7166
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7167
 
else
7168
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169
 
for as_dir in $PATH
7170
 
do
7171
 
  IFS=$as_save_IFS
7172
 
  test -z "$as_dir" && as_dir=.
7173
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7174
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175
 
    ac_cv_prog_ac_ct_LIPO="lipo"
7176
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177
 
    break 2
7178
 
  fi
7179
 
done
7180
 
  done
7181
 
IFS=$as_save_IFS
7182
 
 
7183
 
fi
7184
 
fi
7185
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7186
 
if test -n "$ac_ct_LIPO"; then
7187
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7188
 
$as_echo "$ac_ct_LIPO" >&6; }
7189
 
else
7190
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191
 
$as_echo "no" >&6; }
7192
 
fi
7193
 
 
7194
 
  if test "x$ac_ct_LIPO" = x; then
7195
 
    LIPO=":"
7196
 
  else
7197
 
    case $cross_compiling:$ac_tool_warned in
7198
 
yes:)
7199
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201
 
ac_tool_warned=yes ;;
7202
 
esac
7203
 
    LIPO=$ac_ct_LIPO
7204
 
  fi
7205
 
else
7206
 
  LIPO="$ac_cv_prog_LIPO"
7207
 
fi
7208
 
 
7209
 
    if test -n "$ac_tool_prefix"; then
7210
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7211
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
7212
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213
 
$as_echo_n "checking for $ac_word... " >&6; }
7214
 
if ${ac_cv_prog_OTOOL+:} false; then :
7215
 
  $as_echo_n "(cached) " >&6
7216
 
else
7217
 
  if test -n "$OTOOL"; then
7218
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7219
 
else
7220
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221
 
for as_dir in $PATH
7222
 
do
7223
 
  IFS=$as_save_IFS
7224
 
  test -z "$as_dir" && as_dir=.
7225
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7226
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7228
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229
 
    break 2
7230
 
  fi
7231
 
done
7232
 
  done
7233
 
IFS=$as_save_IFS
7234
 
 
7235
 
fi
7236
 
fi
7237
 
OTOOL=$ac_cv_prog_OTOOL
7238
 
if test -n "$OTOOL"; then
7239
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7240
 
$as_echo "$OTOOL" >&6; }
7241
 
else
7242
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243
 
$as_echo "no" >&6; }
7244
 
fi
7245
 
 
7246
 
 
7247
 
fi
7248
 
if test -z "$ac_cv_prog_OTOOL"; then
7249
 
  ac_ct_OTOOL=$OTOOL
7250
 
  # Extract the first word of "otool", so it can be a program name with args.
7251
 
set dummy otool; ac_word=$2
7252
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253
 
$as_echo_n "checking for $ac_word... " >&6; }
7254
 
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7255
 
  $as_echo_n "(cached) " >&6
7256
 
else
7257
 
  if test -n "$ac_ct_OTOOL"; then
7258
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7259
 
else
7260
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261
 
for as_dir in $PATH
7262
 
do
7263
 
  IFS=$as_save_IFS
7264
 
  test -z "$as_dir" && as_dir=.
7265
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7266
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267
 
    ac_cv_prog_ac_ct_OTOOL="otool"
7268
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269
 
    break 2
7270
 
  fi
7271
 
done
7272
 
  done
7273
 
IFS=$as_save_IFS
7274
 
 
7275
 
fi
7276
 
fi
7277
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7278
 
if test -n "$ac_ct_OTOOL"; then
7279
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7280
 
$as_echo "$ac_ct_OTOOL" >&6; }
7281
 
else
7282
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283
 
$as_echo "no" >&6; }
7284
 
fi
7285
 
 
7286
 
  if test "x$ac_ct_OTOOL" = x; then
7287
 
    OTOOL=":"
7288
 
  else
7289
 
    case $cross_compiling:$ac_tool_warned in
7290
 
yes:)
7291
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293
 
ac_tool_warned=yes ;;
7294
 
esac
7295
 
    OTOOL=$ac_ct_OTOOL
7296
 
  fi
7297
 
else
7298
 
  OTOOL="$ac_cv_prog_OTOOL"
7299
 
fi
7300
 
 
7301
 
    if test -n "$ac_tool_prefix"; then
7302
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7303
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7304
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305
 
$as_echo_n "checking for $ac_word... " >&6; }
7306
 
if ${ac_cv_prog_OTOOL64+:} false; then :
7307
 
  $as_echo_n "(cached) " >&6
7308
 
else
7309
 
  if test -n "$OTOOL64"; then
7310
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7311
 
else
7312
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313
 
for as_dir in $PATH
7314
 
do
7315
 
  IFS=$as_save_IFS
7316
 
  test -z "$as_dir" && as_dir=.
7317
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7318
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7320
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321
 
    break 2
7322
 
  fi
7323
 
done
7324
 
  done
7325
 
IFS=$as_save_IFS
7326
 
 
7327
 
fi
7328
 
fi
7329
 
OTOOL64=$ac_cv_prog_OTOOL64
7330
 
if test -n "$OTOOL64"; then
7331
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7332
 
$as_echo "$OTOOL64" >&6; }
7333
 
else
7334
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335
 
$as_echo "no" >&6; }
7336
 
fi
7337
 
 
7338
 
 
7339
 
fi
7340
 
if test -z "$ac_cv_prog_OTOOL64"; then
7341
 
  ac_ct_OTOOL64=$OTOOL64
7342
 
  # Extract the first word of "otool64", so it can be a program name with args.
7343
 
set dummy otool64; ac_word=$2
7344
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345
 
$as_echo_n "checking for $ac_word... " >&6; }
7346
 
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7347
 
  $as_echo_n "(cached) " >&6
7348
 
else
7349
 
  if test -n "$ac_ct_OTOOL64"; then
7350
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7351
 
else
7352
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353
 
for as_dir in $PATH
7354
 
do
7355
 
  IFS=$as_save_IFS
7356
 
  test -z "$as_dir" && as_dir=.
7357
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7358
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7360
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361
 
    break 2
7362
 
  fi
7363
 
done
7364
 
  done
7365
 
IFS=$as_save_IFS
7366
 
 
7367
 
fi
7368
 
fi
7369
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7370
 
if test -n "$ac_ct_OTOOL64"; then
7371
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7372
 
$as_echo "$ac_ct_OTOOL64" >&6; }
7373
 
else
7374
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375
 
$as_echo "no" >&6; }
7376
 
fi
7377
 
 
7378
 
  if test "x$ac_ct_OTOOL64" = x; then
7379
 
    OTOOL64=":"
7380
 
  else
7381
 
    case $cross_compiling:$ac_tool_warned in
7382
 
yes:)
7383
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385
 
ac_tool_warned=yes ;;
7386
 
esac
7387
 
    OTOOL64=$ac_ct_OTOOL64
7388
 
  fi
7389
 
else
7390
 
  OTOOL64="$ac_cv_prog_OTOOL64"
7391
 
fi
7392
 
 
7393
 
 
7394
 
 
7395
 
 
7396
 
 
7397
 
 
7398
 
 
7399
 
 
7400
 
 
7401
 
 
7402
 
 
7403
 
 
7404
 
 
7405
 
 
7406
 
 
7407
 
 
7408
 
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
 
 
7419
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7420
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
7421
 
if ${lt_cv_apple_cc_single_mod+:} false; then :
7422
 
  $as_echo_n "(cached) " >&6
7423
 
else
7424
 
  lt_cv_apple_cc_single_mod=no
7425
 
      if test -z "${LT_MULTI_MODULE}"; then
7426
 
        # By default we will add the -single_module flag. You can override
7427
 
        # by either setting the environment variable LT_MULTI_MODULE
7428
 
        # non-empty at configure time, or by adding -multi_module to the
7429
 
        # link flags.
7430
 
        rm -rf libconftest.dylib*
7431
 
        echo "int foo(void){return 1;}" > conftest.c
7432
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7433
 
-dynamiclib -Wl,-single_module conftest.c" >&5
7434
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7435
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7436
 
        _lt_result=$?
7437
 
        # If there is a non-empty error log, and "single_module"
7438
 
        # appears in it, assume the flag caused a linker warning
7439
 
        if test -s conftest.err && $GREP single_module conftest.err; then
7440
 
          cat conftest.err >&5
7441
 
        # Otherwise, if the output was created with a 0 exit code from
7442
 
        # the compiler, it worked.
7443
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7444
 
          lt_cv_apple_cc_single_mod=yes
7445
 
        else
7446
 
          cat conftest.err >&5
7447
 
        fi
7448
 
        rm -rf libconftest.dylib*
7449
 
        rm -f conftest.*
7450
 
      fi
7451
 
fi
7452
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7453
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7454
 
 
7455
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7456
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7457
 
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7458
 
  $as_echo_n "(cached) " >&6
7459
 
else
7460
 
  lt_cv_ld_exported_symbols_list=no
7461
 
      save_LDFLAGS=$LDFLAGS
7462
 
      echo "_main" > conftest.sym
7463
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7464
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465
 
/* end confdefs.h.  */
7466
 
 
7467
 
int
7468
 
main ()
7469
 
{
7470
 
 
7471
 
  ;
7472
 
  return 0;
7473
 
}
7474
 
_ACEOF
7475
 
if ac_fn_c_try_link "$LINENO"; then :
7476
 
  lt_cv_ld_exported_symbols_list=yes
7477
 
else
7478
 
  lt_cv_ld_exported_symbols_list=no
7479
 
fi
7480
 
rm -f core conftest.err conftest.$ac_objext \
7481
 
    conftest$ac_exeext conftest.$ac_ext
7482
 
        LDFLAGS="$save_LDFLAGS"
7483
 
 
7484
 
fi
7485
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7486
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7487
 
 
7488
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7489
 
$as_echo_n "checking for -force_load linker flag... " >&6; }
7490
 
if ${lt_cv_ld_force_load+:} false; then :
7491
 
  $as_echo_n "(cached) " >&6
7492
 
else
7493
 
  lt_cv_ld_force_load=no
7494
 
      cat > conftest.c << _LT_EOF
7495
 
int forced_loaded() { return 2;}
7496
 
_LT_EOF
7497
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7498
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7499
 
      echo "$AR cru libconftest.a conftest.o" >&5
7500
 
      $AR cru libconftest.a conftest.o 2>&5
7501
 
      echo "$RANLIB libconftest.a" >&5
7502
 
      $RANLIB libconftest.a 2>&5
7503
 
      cat > conftest.c << _LT_EOF
7504
 
int main() { return 0;}
7505
 
_LT_EOF
7506
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7507
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7508
 
      _lt_result=$?
7509
 
      if test -s conftest.err && $GREP force_load conftest.err; then
7510
 
        cat conftest.err >&5
7511
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7512
 
        lt_cv_ld_force_load=yes
7513
 
      else
7514
 
        cat conftest.err >&5
7515
 
      fi
7516
 
        rm -f conftest.err libconftest.a conftest conftest.c
7517
 
        rm -rf conftest.dSYM
7518
 
 
7519
 
fi
7520
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7521
 
$as_echo "$lt_cv_ld_force_load" >&6; }
7522
 
    case $host_os in
7523
 
    rhapsody* | darwin1.[012])
7524
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7525
 
    darwin1.*)
7526
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7527
 
    darwin*) # darwin 5.x on
7528
 
      # if running on 10.5 or later, the deployment target defaults
7529
 
      # to the OS version, if on x86, and 10.4, the deployment
7530
 
      # target defaults to 10.4. Don't you love it?
7531
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7532
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7533
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7534
 
        10.[012]*)
7535
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7536
 
        10.*)
7537
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7538
 
      esac
7539
 
    ;;
7540
 
  esac
7541
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7542
 
      _lt_dar_single_mod='$single_module'
7543
 
    fi
7544
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7545
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7546
 
    else
7547
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7548
 
    fi
7549
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7550
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7551
 
    else
7552
 
      _lt_dsymutil=
7553
 
    fi
7554
 
    ;;
7555
 
  esac
7556
 
 
7557
 
for ac_header in dlfcn.h
7558
 
do :
7559
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7560
 
"
7561
 
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7562
 
  cat >>confdefs.h <<_ACEOF
7563
 
#define HAVE_DLFCN_H 1
7564
 
_ACEOF
7565
 
 
7566
 
fi
7567
 
 
7568
 
done
7569
 
 
7570
 
 
7571
 
 
7572
 
 
7573
 
 
7574
 
# Set options
7575
 
 
7576
 
 
7577
 
 
7578
 
        enable_dlopen=no
7579
 
 
7580
 
 
7581
 
  enable_win32_dll=no
7582
 
 
7583
 
 
7584
 
            # Check whether --enable-shared was given.
7585
 
if test "${enable_shared+set}" = set; then :
7586
 
  enableval=$enable_shared; p=${PACKAGE-default}
7587
 
    case $enableval in
7588
 
    yes) enable_shared=yes ;;
7589
 
    no) enable_shared=no ;;
7590
 
    *)
7591
 
      enable_shared=no
7592
 
      # Look at the argument we got.  We use all the common list separators.
7593
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7594
 
      for pkg in $enableval; do
7595
 
        IFS="$lt_save_ifs"
7596
 
        if test "X$pkg" = "X$p"; then
7597
 
          enable_shared=yes
7598
 
        fi
7599
 
      done
7600
 
      IFS="$lt_save_ifs"
7601
 
      ;;
7602
 
    esac
7603
 
else
7604
 
  enable_shared=yes
7605
 
fi
7606
 
 
7607
 
 
7608
 
 
7609
 
 
7610
 
 
7611
 
 
7612
 
 
7613
 
 
7614
 
 
7615
 
 
7616
 
 
7617
 
# Check whether --with-pic was given.
7618
 
if test "${with_pic+set}" = set; then :
7619
 
  withval=$with_pic; lt_p=${PACKAGE-default}
7620
 
    case $withval in
7621
 
    yes|no) pic_mode=$withval ;;
7622
 
    *)
7623
 
      pic_mode=default
7624
 
      # Look at the argument we got.  We use all the common list separators.
7625
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7626
 
      for lt_pkg in $withval; do
7627
 
        IFS="$lt_save_ifs"
7628
 
        if test "X$lt_pkg" = "X$lt_p"; then
7629
 
          pic_mode=yes
7630
 
        fi
7631
 
      done
7632
 
      IFS="$lt_save_ifs"
7633
 
      ;;
7634
 
    esac
7635
 
else
7636
 
  pic_mode=default
7637
 
fi
7638
 
 
7639
 
 
7640
 
test -z "$pic_mode" && pic_mode=default
7641
 
 
7642
 
 
7643
 
 
7644
 
 
7645
 
 
7646
 
 
7647
 
 
7648
 
  # Check whether --enable-fast-install was given.
7649
 
if test "${enable_fast_install+set}" = set; then :
7650
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
7651
 
    case $enableval in
7652
 
    yes) enable_fast_install=yes ;;
7653
 
    no) enable_fast_install=no ;;
7654
 
    *)
7655
 
      enable_fast_install=no
7656
 
      # Look at the argument we got.  We use all the common list separators.
7657
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7658
 
      for pkg in $enableval; do
7659
 
        IFS="$lt_save_ifs"
7660
 
        if test "X$pkg" = "X$p"; then
7661
 
          enable_fast_install=yes
7662
 
        fi
7663
 
      done
7664
 
      IFS="$lt_save_ifs"
7665
 
      ;;
7666
 
    esac
7667
 
else
7668
 
  enable_fast_install=yes
7669
 
fi
7670
 
 
7671
 
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
7678
 
 
7679
 
 
7680
 
 
7681
 
# This can be used to rebuild libtool when needed
7682
 
LIBTOOL_DEPS="$ltmain"
7683
 
 
7684
 
# Always use our own libtool.
7685
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7686
 
 
7687
 
 
7688
 
 
7689
 
 
7690
 
 
7691
 
 
7692
 
 
7693
 
 
7694
 
 
7695
 
 
7696
 
 
7697
 
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
 
 
7703
 
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
 
7712
 
 
7713
 
 
7714
 
 
7715
 
 
7716
 
test -z "$LN_S" && LN_S="ln -s"
7717
 
 
7718
 
 
7719
 
 
7720
 
 
7721
 
 
7722
 
 
7723
 
 
7724
 
 
7725
 
 
7726
 
 
7727
 
 
7728
 
 
7729
 
 
7730
 
 
7731
 
if test -n "${ZSH_VERSION+set}" ; then
7732
 
   setopt NO_GLOB_SUBST
7733
 
fi
7734
 
 
7735
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7736
 
$as_echo_n "checking for objdir... " >&6; }
7737
 
if ${lt_cv_objdir+:} false; then :
7738
 
  $as_echo_n "(cached) " >&6
7739
 
else
7740
 
  rm -f .libs 2>/dev/null
7741
 
mkdir .libs 2>/dev/null
7742
 
if test -d .libs; then
7743
 
  lt_cv_objdir=.libs
7744
 
else
7745
 
  # MS-DOS does not allow filenames that begin with a dot.
7746
 
  lt_cv_objdir=_libs
7747
 
fi
7748
 
rmdir .libs 2>/dev/null
7749
 
fi
7750
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7751
 
$as_echo "$lt_cv_objdir" >&6; }
7752
 
objdir=$lt_cv_objdir
7753
 
 
7754
 
 
7755
 
 
7756
 
 
7757
 
 
7758
 
cat >>confdefs.h <<_ACEOF
7759
 
#define LT_OBJDIR "$lt_cv_objdir/"
7760
 
_ACEOF
7761
 
 
7762
 
 
7763
 
 
7764
 
 
7765
 
case $host_os in
7766
 
aix3*)
7767
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7768
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7769
 
  # vanish in a puff of smoke.
7770
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7771
 
    COLLECT_NAMES=
7772
 
    export COLLECT_NAMES
7773
 
  fi
7774
 
  ;;
7775
 
esac
7776
 
 
7777
 
# Global variables:
7778
 
ofile=libtool
7779
 
can_build_shared=yes
7780
 
 
7781
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7782
 
# which needs '.lib').
7783
 
libext=a
7784
 
 
7785
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7786
 
 
7787
 
old_CC="$CC"
7788
 
old_CFLAGS="$CFLAGS"
7789
 
 
7790
 
# Set sane defaults for various variables
7791
 
test -z "$CC" && CC=cc
7792
 
test -z "$LTCC" && LTCC=$CC
7793
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7794
 
test -z "$LD" && LD=ld
7795
 
test -z "$ac_objext" && ac_objext=o
7796
 
 
7797
 
for cc_temp in $compiler""; do
7798
 
  case $cc_temp in
7799
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7800
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7801
 
    \-*) ;;
7802
 
    *) break;;
7803
 
  esac
7804
 
done
7805
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7806
 
 
7807
 
 
7808
 
# Only perform the check for file, if the check method requires it
7809
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7810
 
case $deplibs_check_method in
7811
 
file_magic*)
7812
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7813
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7814
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7815
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7816
 
  $as_echo_n "(cached) " >&6
7817
 
else
7818
 
  case $MAGIC_CMD in
7819
 
[\\/*] |  ?:[\\/]*)
7820
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7821
 
  ;;
7822
 
*)
7823
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7824
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7825
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7826
 
  for ac_dir in $ac_dummy; do
7827
 
    IFS="$lt_save_ifs"
7828
 
    test -z "$ac_dir" && ac_dir=.
7829
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7830
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7831
 
      if test -n "$file_magic_test_file"; then
7832
 
        case $deplibs_check_method in
7833
 
        "file_magic "*)
7834
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7835
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7837
 
            $EGREP "$file_magic_regex" > /dev/null; then
7838
 
            :
7839
 
          else
7840
 
            cat <<_LT_EOF 1>&2
7841
 
 
7842
 
*** Warning: the command libtool uses to detect shared libraries,
7843
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7844
 
*** The result is that libtool may fail to recognize shared libraries
7845
 
*** as such.  This will affect the creation of libtool libraries that
7846
 
*** depend on shared libraries, but programs linked with such libtool
7847
 
*** libraries will work regardless of this problem.  Nevertheless, you
7848
 
*** may want to report the problem to your system manager and/or to
7849
 
*** bug-libtool@gnu.org
7850
 
 
7851
 
_LT_EOF
7852
 
          fi ;;
7853
 
        esac
7854
 
      fi
7855
 
      break
7856
 
    fi
7857
 
  done
7858
 
  IFS="$lt_save_ifs"
7859
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7860
 
  ;;
7861
 
esac
7862
 
fi
7863
 
 
7864
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865
 
if test -n "$MAGIC_CMD"; then
7866
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7867
 
$as_echo "$MAGIC_CMD" >&6; }
7868
 
else
7869
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870
 
$as_echo "no" >&6; }
7871
 
fi
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7878
 
  if test -n "$ac_tool_prefix"; then
7879
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7880
 
$as_echo_n "checking for file... " >&6; }
7881
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7882
 
  $as_echo_n "(cached) " >&6
7883
 
else
7884
 
  case $MAGIC_CMD in
7885
 
[\\/*] |  ?:[\\/]*)
7886
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7887
 
  ;;
7888
 
*)
7889
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7890
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7891
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7892
 
  for ac_dir in $ac_dummy; do
7893
 
    IFS="$lt_save_ifs"
7894
 
    test -z "$ac_dir" && ac_dir=.
7895
 
    if test -f $ac_dir/file; then
7896
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7897
 
      if test -n "$file_magic_test_file"; then
7898
 
        case $deplibs_check_method in
7899
 
        "file_magic "*)
7900
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7903
 
            $EGREP "$file_magic_regex" > /dev/null; then
7904
 
            :
7905
 
          else
7906
 
            cat <<_LT_EOF 1>&2
7907
 
 
7908
 
*** Warning: the command libtool uses to detect shared libraries,
7909
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7910
 
*** The result is that libtool may fail to recognize shared libraries
7911
 
*** as such.  This will affect the creation of libtool libraries that
7912
 
*** depend on shared libraries, but programs linked with such libtool
7913
 
*** libraries will work regardless of this problem.  Nevertheless, you
7914
 
*** may want to report the problem to your system manager and/or to
7915
 
*** bug-libtool@gnu.org
7916
 
 
7917
 
_LT_EOF
7918
 
          fi ;;
7919
 
        esac
7920
 
      fi
7921
 
      break
7922
 
    fi
7923
 
  done
7924
 
  IFS="$lt_save_ifs"
7925
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7926
 
  ;;
7927
 
esac
7928
 
fi
7929
 
 
7930
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931
 
if test -n "$MAGIC_CMD"; then
7932
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7933
 
$as_echo "$MAGIC_CMD" >&6; }
7934
 
else
7935
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936
 
$as_echo "no" >&6; }
7937
 
fi
7938
 
 
7939
 
 
7940
 
  else
7941
 
    MAGIC_CMD=:
7942
 
  fi
7943
 
fi
7944
 
 
7945
 
  fi
7946
 
  ;;
7947
 
esac
7948
 
 
7949
 
# Use C for the default configuration in the libtool script
7950
 
 
7951
 
lt_save_CC="$CC"
7952
 
ac_ext=c
7953
 
ac_cpp='$CPP $CPPFLAGS'
7954
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
 
 
7958
 
 
7959
 
# Source file extension for C test sources.
7960
 
ac_ext=c
7961
 
 
7962
 
# Object file extension for compiled C test sources.
7963
 
objext=o
7964
 
objext=$objext
7965
 
 
7966
 
# Code to be used in simple compile tests
7967
 
lt_simple_compile_test_code="int some_variable = 0;"
7968
 
 
7969
 
# Code to be used in simple link tests
7970
 
lt_simple_link_test_code='int main(){return(0);}'
7971
 
 
7972
 
 
7973
 
 
7974
 
 
7975
 
 
7976
 
 
7977
 
 
7978
 
# If no C compiler was specified, use CC.
7979
 
LTCC=${LTCC-"$CC"}
7980
 
 
7981
 
# If no C compiler flags were specified, use CFLAGS.
7982
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7983
 
 
7984
 
# Allow CC to be a program name with arguments.
7985
 
compiler=$CC
7986
 
 
7987
 
# Save the default compiler, since it gets overwritten when the other
7988
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7989
 
compiler_DEFAULT=$CC
7990
 
 
7991
 
# save warnings/boilerplate of simple test code
7992
 
ac_outfile=conftest.$ac_objext
7993
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7994
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7995
 
_lt_compiler_boilerplate=`cat conftest.err`
7996
 
$RM conftest*
7997
 
 
7998
 
ac_outfile=conftest.$ac_objext
7999
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8000
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8001
 
_lt_linker_boilerplate=`cat conftest.err`
8002
 
$RM -r conftest*
8003
 
 
8004
 
 
8005
 
if test -n "$compiler"; then
8006
 
 
8007
 
lt_prog_compiler_no_builtin_flag=
8008
 
 
8009
 
if test "$GCC" = yes; then
8010
 
  case $cc_basename in
8011
 
  nvcc*)
8012
 
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8013
 
  *)
8014
 
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8015
 
  esac
8016
 
 
8017
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8018
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8019
 
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8020
 
  $as_echo_n "(cached) " >&6
8021
 
else
8022
 
  lt_cv_prog_compiler_rtti_exceptions=no
8023
 
   ac_outfile=conftest.$ac_objext
8024
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8026
 
   # Insert the option either (1) after the last *FLAGS variable, or
8027
 
   # (2) before a word containing "conftest.", or (3) at the end.
8028
 
   # Note that $ac_compile itself does not contain backslashes and begins
8029
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8030
 
   # The option is referenced via a variable to avoid confusing sed.
8031
 
   lt_compile=`echo "$ac_compile" | $SED \
8032
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034
 
   -e 's:$: $lt_compiler_flag:'`
8035
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8036
 
   (eval "$lt_compile" 2>conftest.err)
8037
 
   ac_status=$?
8038
 
   cat conftest.err >&5
8039
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8041
 
     # The compiler can only warn and ignore the option if not recognized
8042
 
     # So say no if there are warnings other than the usual output.
8043
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8044
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8045
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8046
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8047
 
     fi
8048
 
   fi
8049
 
   $RM conftest*
8050
 
 
8051
 
fi
8052
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8053
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8054
 
 
8055
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8056
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8057
 
else
8058
 
    :
8059
 
fi
8060
 
 
8061
 
fi
8062
 
 
8063
 
 
8064
 
 
8065
 
 
8066
 
 
8067
 
 
8068
 
  lt_prog_compiler_wl=
8069
 
lt_prog_compiler_pic=
8070
 
lt_prog_compiler_static=
8071
 
 
8072
 
 
8073
 
  if test "$GCC" = yes; then
8074
 
    lt_prog_compiler_wl='-Wl,'
8075
 
    lt_prog_compiler_static='-static'
8076
 
 
8077
 
    case $host_os in
8078
 
      aix*)
8079
 
      # All AIX code is PIC.
8080
 
      if test "$host_cpu" = ia64; then
8081
 
        # AIX 5 now supports IA64 processor
8082
 
        lt_prog_compiler_static='-Bstatic'
8083
 
      fi
8084
 
      ;;
8085
 
 
8086
 
    amigaos*)
8087
 
      case $host_cpu in
8088
 
      powerpc)
8089
 
            # see comment about AmigaOS4 .so support
8090
 
            lt_prog_compiler_pic='-fPIC'
8091
 
        ;;
8092
 
      m68k)
8093
 
            # FIXME: we need at least 68020 code to build shared libraries, but
8094
 
            # adding the `-m68020' flag to GCC prevents building anything better,
8095
 
            # like `-m68040'.
8096
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8097
 
        ;;
8098
 
      esac
8099
 
      ;;
8100
 
 
8101
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8102
 
      # PIC is the default for these OSes.
8103
 
      ;;
8104
 
 
8105
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8106
 
      # This hack is so that the source file can tell whether it is being
8107
 
      # built for inclusion in a dll (and should export symbols for example).
8108
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8109
 
      # (--disable-auto-import) libraries
8110
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8111
 
      ;;
8112
 
 
8113
 
    darwin* | rhapsody*)
8114
 
      # PIC is the default on this platform
8115
 
      # Common symbols not allowed in MH_DYLIB files
8116
 
      lt_prog_compiler_pic='-fno-common'
8117
 
      ;;
8118
 
 
8119
 
    haiku*)
8120
 
      # PIC is the default for Haiku.
8121
 
      # The "-static" flag exists, but is broken.
8122
 
      lt_prog_compiler_static=
8123
 
      ;;
8124
 
 
8125
 
    hpux*)
8126
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8127
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8128
 
      # sets the default TLS model and affects inlining.
8129
 
      case $host_cpu in
8130
 
      hppa*64*)
8131
 
        # +Z the default
8132
 
        ;;
8133
 
      *)
8134
 
        lt_prog_compiler_pic='-fPIC'
8135
 
        ;;
8136
 
      esac
8137
 
      ;;
8138
 
 
8139
 
    interix[3-9]*)
8140
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8141
 
      # Instead, we relocate shared libraries at runtime.
8142
 
      ;;
8143
 
 
8144
 
    msdosdjgpp*)
8145
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8146
 
      # on systems that don't support them.
8147
 
      lt_prog_compiler_can_build_shared=no
8148
 
      enable_shared=no
8149
 
      ;;
8150
 
 
8151
 
    *nto* | *qnx*)
8152
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8153
 
      # it will coredump.
8154
 
      lt_prog_compiler_pic='-fPIC -shared'
8155
 
      ;;
8156
 
 
8157
 
    sysv4*MP*)
8158
 
      if test -d /usr/nec; then
8159
 
        lt_prog_compiler_pic=-Kconform_pic
8160
 
      fi
8161
 
      ;;
8162
 
 
8163
 
    *)
8164
 
      lt_prog_compiler_pic='-fPIC'
8165
 
      ;;
8166
 
    esac
8167
 
 
8168
 
    case $cc_basename in
8169
 
    nvcc*) # Cuda Compiler Driver 2.2
8170
 
      lt_prog_compiler_wl='-Xlinker '
8171
 
      if test -n "$lt_prog_compiler_pic"; then
8172
 
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8173
 
      fi
8174
 
      ;;
8175
 
    esac
8176
 
  else
8177
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8178
 
    case $host_os in
8179
 
    aix*)
8180
 
      lt_prog_compiler_wl='-Wl,'
8181
 
      if test "$host_cpu" = ia64; then
8182
 
        # AIX 5 now supports IA64 processor
8183
 
        lt_prog_compiler_static='-Bstatic'
8184
 
      else
8185
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8186
 
      fi
8187
 
      ;;
8188
 
 
8189
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8190
 
      # This hack is so that the source file can tell whether it is being
8191
 
      # built for inclusion in a dll (and should export symbols for example).
8192
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8193
 
      ;;
8194
 
 
8195
 
    hpux9* | hpux10* | hpux11*)
8196
 
      lt_prog_compiler_wl='-Wl,'
8197
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8198
 
      # not for PA HP-UX.
8199
 
      case $host_cpu in
8200
 
      hppa*64*|ia64*)
8201
 
        # +Z the default
8202
 
        ;;
8203
 
      *)
8204
 
        lt_prog_compiler_pic='+Z'
8205
 
        ;;
8206
 
      esac
8207
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8208
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8209
 
      ;;
8210
 
 
8211
 
    irix5* | irix6* | nonstopux*)
8212
 
      lt_prog_compiler_wl='-Wl,'
8213
 
      # PIC (with -KPIC) is the default.
8214
 
      lt_prog_compiler_static='-non_shared'
8215
 
      ;;
8216
 
 
8217
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8218
 
      case $cc_basename in
8219
 
      # old Intel for x86_64 which still supported -KPIC.
8220
 
      ecc*)
8221
 
        lt_prog_compiler_wl='-Wl,'
8222
 
        lt_prog_compiler_pic='-KPIC'
8223
 
        lt_prog_compiler_static='-static'
8224
 
        ;;
8225
 
      # icc used to be incompatible with GCC.
8226
 
      # ICC 10 doesn't accept -KPIC any more.
8227
 
      icc* | ifort*)
8228
 
        lt_prog_compiler_wl='-Wl,'
8229
 
        lt_prog_compiler_pic='-fPIC'
8230
 
        lt_prog_compiler_static='-static'
8231
 
        ;;
8232
 
      # Lahey Fortran 8.1.
8233
 
      lf95*)
8234
 
        lt_prog_compiler_wl='-Wl,'
8235
 
        lt_prog_compiler_pic='--shared'
8236
 
        lt_prog_compiler_static='--static'
8237
 
        ;;
8238
 
      nagfor*)
8239
 
        # NAG Fortran compiler
8240
 
        lt_prog_compiler_wl='-Wl,-Wl,,'
8241
 
        lt_prog_compiler_pic='-PIC'
8242
 
        lt_prog_compiler_static='-Bstatic'
8243
 
        ;;
8244
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8245
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8246
 
        # which looks to be a dead project)
8247
 
        lt_prog_compiler_wl='-Wl,'
8248
 
        lt_prog_compiler_pic='-fpic'
8249
 
        lt_prog_compiler_static='-Bstatic'
8250
 
        ;;
8251
 
      ccc*)
8252
 
        lt_prog_compiler_wl='-Wl,'
8253
 
        # All Alpha code is PIC.
8254
 
        lt_prog_compiler_static='-non_shared'
8255
 
        ;;
8256
 
      xl* | bgxl* | bgf* | mpixl*)
8257
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8258
 
        lt_prog_compiler_wl='-Wl,'
8259
 
        lt_prog_compiler_pic='-qpic'
8260
 
        lt_prog_compiler_static='-qstaticlink'
8261
 
        ;;
8262
 
      *)
8263
 
        case `$CC -V 2>&1 | sed 5q` in
8264
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8265
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8266
 
          lt_prog_compiler_pic='-KPIC'
8267
 
          lt_prog_compiler_static='-Bstatic'
8268
 
          lt_prog_compiler_wl=''
8269
 
          ;;
8270
 
        *Sun\ F* | *Sun*Fortran*)
8271
 
          lt_prog_compiler_pic='-KPIC'
8272
 
          lt_prog_compiler_static='-Bstatic'
8273
 
          lt_prog_compiler_wl='-Qoption ld '
8274
 
          ;;
8275
 
        *Sun\ C*)
8276
 
          # Sun C 5.9
8277
 
          lt_prog_compiler_pic='-KPIC'
8278
 
          lt_prog_compiler_static='-Bstatic'
8279
 
          lt_prog_compiler_wl='-Wl,'
8280
 
          ;;
8281
 
        *Intel*\ [CF]*Compiler*)
8282
 
          lt_prog_compiler_wl='-Wl,'
8283
 
          lt_prog_compiler_pic='-fPIC'
8284
 
          lt_prog_compiler_static='-static'
8285
 
          ;;
8286
 
        *Portland\ Group*)
8287
 
          lt_prog_compiler_wl='-Wl,'
8288
 
          lt_prog_compiler_pic='-fpic'
8289
 
          lt_prog_compiler_static='-Bstatic'
8290
 
          ;;
8291
 
        esac
8292
 
        ;;
8293
 
      esac
8294
 
      ;;
8295
 
 
8296
 
    newsos6)
8297
 
      lt_prog_compiler_pic='-KPIC'
8298
 
      lt_prog_compiler_static='-Bstatic'
8299
 
      ;;
8300
 
 
8301
 
    *nto* | *qnx*)
8302
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8303
 
      # it will coredump.
8304
 
      lt_prog_compiler_pic='-fPIC -shared'
8305
 
      ;;
8306
 
 
8307
 
    osf3* | osf4* | osf5*)
8308
 
      lt_prog_compiler_wl='-Wl,'
8309
 
      # All OSF/1 code is PIC.
8310
 
      lt_prog_compiler_static='-non_shared'
8311
 
      ;;
8312
 
 
8313
 
    rdos*)
8314
 
      lt_prog_compiler_static='-non_shared'
8315
 
      ;;
8316
 
 
8317
 
    solaris*)
8318
 
      lt_prog_compiler_pic='-KPIC'
8319
 
      lt_prog_compiler_static='-Bstatic'
8320
 
      case $cc_basename in
8321
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8322
 
        lt_prog_compiler_wl='-Qoption ld ';;
8323
 
      *)
8324
 
        lt_prog_compiler_wl='-Wl,';;
8325
 
      esac
8326
 
      ;;
8327
 
 
8328
 
    sunos4*)
8329
 
      lt_prog_compiler_wl='-Qoption ld '
8330
 
      lt_prog_compiler_pic='-PIC'
8331
 
      lt_prog_compiler_static='-Bstatic'
8332
 
      ;;
8333
 
 
8334
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
8335
 
      lt_prog_compiler_wl='-Wl,'
8336
 
      lt_prog_compiler_pic='-KPIC'
8337
 
      lt_prog_compiler_static='-Bstatic'
8338
 
      ;;
8339
 
 
8340
 
    sysv4*MP*)
8341
 
      if test -d /usr/nec ;then
8342
 
        lt_prog_compiler_pic='-Kconform_pic'
8343
 
        lt_prog_compiler_static='-Bstatic'
8344
 
      fi
8345
 
      ;;
8346
 
 
8347
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8348
 
      lt_prog_compiler_wl='-Wl,'
8349
 
      lt_prog_compiler_pic='-KPIC'
8350
 
      lt_prog_compiler_static='-Bstatic'
8351
 
      ;;
8352
 
 
8353
 
    unicos*)
8354
 
      lt_prog_compiler_wl='-Wl,'
8355
 
      lt_prog_compiler_can_build_shared=no
8356
 
      ;;
8357
 
 
8358
 
    uts4*)
8359
 
      lt_prog_compiler_pic='-pic'
8360
 
      lt_prog_compiler_static='-Bstatic'
8361
 
      ;;
8362
 
 
8363
 
    *)
8364
 
      lt_prog_compiler_can_build_shared=no
8365
 
      ;;
8366
 
    esac
8367
 
  fi
8368
 
 
8369
 
case $host_os in
8370
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8371
 
  *djgpp*)
8372
 
    lt_prog_compiler_pic=
8373
 
    ;;
8374
 
  *)
8375
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8376
 
    ;;
8377
 
esac
8378
 
 
8379
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8380
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8381
 
if ${lt_cv_prog_compiler_pic+:} false; then :
8382
 
  $as_echo_n "(cached) " >&6
8383
 
else
8384
 
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8385
 
fi
8386
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8387
 
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8388
 
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8389
 
 
8390
 
#
8391
 
# Check to make sure the PIC flag actually works.
8392
 
#
8393
 
if test -n "$lt_prog_compiler_pic"; then
8394
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8395
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8396
 
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8397
 
  $as_echo_n "(cached) " >&6
8398
 
else
8399
 
  lt_cv_prog_compiler_pic_works=no
8400
 
   ac_outfile=conftest.$ac_objext
8401
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8402
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8403
 
   # Insert the option either (1) after the last *FLAGS variable, or
8404
 
   # (2) before a word containing "conftest.", or (3) at the end.
8405
 
   # Note that $ac_compile itself does not contain backslashes and begins
8406
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8407
 
   # The option is referenced via a variable to avoid confusing sed.
8408
 
   lt_compile=`echo "$ac_compile" | $SED \
8409
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8410
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8411
 
   -e 's:$: $lt_compiler_flag:'`
8412
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8413
 
   (eval "$lt_compile" 2>conftest.err)
8414
 
   ac_status=$?
8415
 
   cat conftest.err >&5
8416
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8418
 
     # The compiler can only warn and ignore the option if not recognized
8419
 
     # So say no if there are warnings other than the usual output.
8420
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8421
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8422
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8423
 
       lt_cv_prog_compiler_pic_works=yes
8424
 
     fi
8425
 
   fi
8426
 
   $RM conftest*
8427
 
 
8428
 
fi
8429
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8430
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8431
 
 
8432
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8433
 
    case $lt_prog_compiler_pic in
8434
 
     "" | " "*) ;;
8435
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8436
 
     esac
8437
 
else
8438
 
    lt_prog_compiler_pic=
8439
 
     lt_prog_compiler_can_build_shared=no
8440
 
fi
8441
 
 
8442
 
fi
8443
 
 
8444
 
 
8445
 
 
8446
 
 
8447
 
 
8448
 
 
8449
 
 
8450
 
 
8451
 
 
8452
 
 
8453
 
 
8454
 
#
8455
 
# Check to make sure the static flag actually works.
8456
 
#
8457
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8458
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8459
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8460
 
if ${lt_cv_prog_compiler_static_works+:} false; then :
8461
 
  $as_echo_n "(cached) " >&6
8462
 
else
8463
 
  lt_cv_prog_compiler_static_works=no
8464
 
   save_LDFLAGS="$LDFLAGS"
8465
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8466
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8467
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8468
 
     # The linker can only warn and ignore the option if not recognized
8469
 
     # So say no if there are warnings
8470
 
     if test -s conftest.err; then
8471
 
       # Append any errors to the config.log.
8472
 
       cat conftest.err 1>&5
8473
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8474
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475
 
       if diff conftest.exp conftest.er2 >/dev/null; then
8476
 
         lt_cv_prog_compiler_static_works=yes
8477
 
       fi
8478
 
     else
8479
 
       lt_cv_prog_compiler_static_works=yes
8480
 
     fi
8481
 
   fi
8482
 
   $RM -r conftest*
8483
 
   LDFLAGS="$save_LDFLAGS"
8484
 
 
8485
 
fi
8486
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8487
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8488
 
 
8489
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8490
 
    :
8491
 
else
8492
 
    lt_prog_compiler_static=
8493
 
fi
8494
 
 
8495
 
 
8496
 
 
8497
 
 
8498
 
 
8499
 
 
8500
 
 
8501
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8502
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8503
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
8504
 
  $as_echo_n "(cached) " >&6
8505
 
else
8506
 
  lt_cv_prog_compiler_c_o=no
8507
 
   $RM -r conftest 2>/dev/null
8508
 
   mkdir conftest
8509
 
   cd conftest
8510
 
   mkdir out
8511
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8512
 
 
8513
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8514
 
   # Insert the option either (1) after the last *FLAGS variable, or
8515
 
   # (2) before a word containing "conftest.", or (3) at the end.
8516
 
   # Note that $ac_compile itself does not contain backslashes and begins
8517
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8518
 
   lt_compile=`echo "$ac_compile" | $SED \
8519
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8520
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8521
 
   -e 's:$: $lt_compiler_flag:'`
8522
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8523
 
   (eval "$lt_compile" 2>out/conftest.err)
8524
 
   ac_status=$?
8525
 
   cat out/conftest.err >&5
8526
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8528
 
   then
8529
 
     # The compiler can only warn and ignore the option if not recognized
8530
 
     # So say no if there are warnings
8531
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8532
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8533
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8534
 
       lt_cv_prog_compiler_c_o=yes
8535
 
     fi
8536
 
   fi
8537
 
   chmod u+w . 2>&5
8538
 
   $RM conftest*
8539
 
   # SGI C++ compiler will create directory out/ii_files/ for
8540
 
   # template instantiation
8541
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8542
 
   $RM out/* && rmdir out
8543
 
   cd ..
8544
 
   $RM -r conftest
8545
 
   $RM conftest*
8546
 
 
8547
 
fi
8548
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8549
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
 
 
8556
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8557
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8558
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
8559
 
  $as_echo_n "(cached) " >&6
8560
 
else
8561
 
  lt_cv_prog_compiler_c_o=no
8562
 
   $RM -r conftest 2>/dev/null
8563
 
   mkdir conftest
8564
 
   cd conftest
8565
 
   mkdir out
8566
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567
 
 
8568
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8569
 
   # Insert the option either (1) after the last *FLAGS variable, or
8570
 
   # (2) before a word containing "conftest.", or (3) at the end.
8571
 
   # Note that $ac_compile itself does not contain backslashes and begins
8572
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8573
 
   lt_compile=`echo "$ac_compile" | $SED \
8574
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576
 
   -e 's:$: $lt_compiler_flag:'`
8577
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578
 
   (eval "$lt_compile" 2>out/conftest.err)
8579
 
   ac_status=$?
8580
 
   cat out/conftest.err >&5
8581
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8583
 
   then
8584
 
     # The compiler can only warn and ignore the option if not recognized
8585
 
     # So say no if there are warnings
8586
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8587
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8588
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8589
 
       lt_cv_prog_compiler_c_o=yes
8590
 
     fi
8591
 
   fi
8592
 
   chmod u+w . 2>&5
8593
 
   $RM conftest*
8594
 
   # SGI C++ compiler will create directory out/ii_files/ for
8595
 
   # template instantiation
8596
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8597
 
   $RM out/* && rmdir out
8598
 
   cd ..
8599
 
   $RM -r conftest
8600
 
   $RM conftest*
8601
 
 
8602
 
fi
8603
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8604
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8605
 
 
8606
 
 
8607
 
 
8608
 
 
8609
 
hard_links="nottested"
8610
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8611
 
  # do not overwrite the value of need_locks provided by the user
8612
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8613
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
8614
 
  hard_links=yes
8615
 
  $RM conftest*
8616
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8617
 
  touch conftest.a
8618
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
8619
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8620
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8621
 
$as_echo "$hard_links" >&6; }
8622
 
  if test "$hard_links" = no; then
8623
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8624
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8625
 
    need_locks=warn
8626
 
  fi
8627
 
else
8628
 
  need_locks=no
8629
 
fi
8630
 
 
8631
 
 
8632
 
 
8633
 
 
8634
 
 
8635
 
 
8636
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8637
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8638
 
 
8639
 
  runpath_var=
8640
 
  allow_undefined_flag=
8641
 
  always_export_symbols=no
8642
 
  archive_cmds=
8643
 
  archive_expsym_cmds=
8644
 
  compiler_needs_object=no
8645
 
  enable_shared_with_static_runtimes=no
8646
 
  export_dynamic_flag_spec=
8647
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8648
 
  hardcode_automatic=no
8649
 
  hardcode_direct=no
8650
 
  hardcode_direct_absolute=no
8651
 
  hardcode_libdir_flag_spec=
8652
 
  hardcode_libdir_separator=
8653
 
  hardcode_minus_L=no
8654
 
  hardcode_shlibpath_var=unsupported
8655
 
  inherit_rpath=no
8656
 
  link_all_deplibs=unknown
8657
 
  module_cmds=
8658
 
  module_expsym_cmds=
8659
 
  old_archive_from_new_cmds=
8660
 
  old_archive_from_expsyms_cmds=
8661
 
  thread_safe_flag_spec=
8662
 
  whole_archive_flag_spec=
8663
 
  # include_expsyms should be a list of space-separated symbols to be *always*
8664
 
  # included in the symbol list
8665
 
  include_expsyms=
8666
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
8667
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8668
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8669
 
  # as well as any symbol that contains `d'.
8670
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8671
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8672
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
8673
 
  # the symbol is explicitly referenced.  Since portable code cannot
8674
 
  # rely on this symbol name, it's probably fine to never include it in
8675
 
  # preloaded symbol tables.
8676
 
  # Exclude shared library initialization/finalization symbols.
8677
 
  extract_expsyms_cmds=
8678
 
 
8679
 
  case $host_os in
8680
 
  cygwin* | mingw* | pw32* | cegcc*)
8681
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8682
 
    # When not using gcc, we currently assume that we are using
8683
 
    # Microsoft Visual C++.
8684
 
    if test "$GCC" != yes; then
8685
 
      with_gnu_ld=no
8686
 
    fi
8687
 
    ;;
8688
 
  interix*)
8689
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8690
 
    with_gnu_ld=yes
8691
 
    ;;
8692
 
  openbsd*)
8693
 
    with_gnu_ld=no
8694
 
    ;;
8695
 
  esac
8696
 
 
8697
 
  ld_shlibs=yes
8698
 
 
8699
 
  # On some targets, GNU ld is compatible enough with the native linker
8700
 
  # that we're better off using the native interface for both.
8701
 
  lt_use_gnu_ld_interface=no
8702
 
  if test "$with_gnu_ld" = yes; then
8703
 
    case $host_os in
8704
 
      aix*)
8705
 
        # The AIX port of GNU ld has always aspired to compatibility
8706
 
        # with the native linker.  However, as the warning in the GNU ld
8707
 
        # block says, versions before 2.19.5* couldn't really create working
8708
 
        # shared libraries, regardless of the interface used.
8709
 
        case `$LD -v 2>&1` in
8710
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8711
 
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8712
 
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8713
 
          *)
8714
 
            lt_use_gnu_ld_interface=yes
8715
 
            ;;
8716
 
        esac
8717
 
        ;;
8718
 
      *)
8719
 
        lt_use_gnu_ld_interface=yes
8720
 
        ;;
8721
 
    esac
8722
 
  fi
8723
 
 
8724
 
  if test "$lt_use_gnu_ld_interface" = yes; then
8725
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
8726
 
    wlarc='${wl}'
8727
 
 
8728
 
    # Set some defaults for GNU ld with shared library support. These
8729
 
    # are reset later if shared libraries are not supported. Putting them
8730
 
    # here allows them to be overridden if necessary.
8731
 
    runpath_var=LD_RUN_PATH
8732
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
8734
 
    # ancient GNU ld didn't support --whole-archive et. al.
8735
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8736
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8737
 
    else
8738
 
      whole_archive_flag_spec=
8739
 
    fi
8740
 
    supports_anon_versioning=no
8741
 
    case `$LD -v 2>&1` in
8742
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
8743
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8744
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8745
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8746
 
      *\ 2.11.*) ;; # other 2.11 versions
8747
 
      *) supports_anon_versioning=yes ;;
8748
 
    esac
8749
 
 
8750
 
    # See if GNU ld supports shared libraries.
8751
 
    case $host_os in
8752
 
    aix[3-9]*)
8753
 
      # On AIX/PPC, the GNU linker is very broken
8754
 
      if test "$host_cpu" != ia64; then
8755
 
        ld_shlibs=no
8756
 
        cat <<_LT_EOF 1>&2
8757
 
 
8758
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
8759
 
*** to be unable to reliably create shared libraries on AIX.
8760
 
*** Therefore, libtool is disabling shared libraries support.  If you
8761
 
*** really care for shared libraries, you may want to install binutils
8762
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8763
 
*** You will then need to restart the configuration process.
8764
 
 
8765
 
_LT_EOF
8766
 
      fi
8767
 
      ;;
8768
 
 
8769
 
    amigaos*)
8770
 
      case $host_cpu in
8771
 
      powerpc)
8772
 
            # see comment about AmigaOS4 .so support
8773
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774
 
            archive_expsym_cmds=''
8775
 
        ;;
8776
 
      m68k)
8777
 
            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)'
8778
 
            hardcode_libdir_flag_spec='-L$libdir'
8779
 
            hardcode_minus_L=yes
8780
 
        ;;
8781
 
      esac
8782
 
      ;;
8783
 
 
8784
 
    beos*)
8785
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786
 
        allow_undefined_flag=unsupported
8787
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8788
 
        # support --undefined.  This deserves some investigation.  FIXME
8789
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790
 
      else
8791
 
        ld_shlibs=no
8792
 
      fi
8793
 
      ;;
8794
 
 
8795
 
    cygwin* | mingw* | pw32* | cegcc*)
8796
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8797
 
      # as there is no search path for DLLs.
8798
 
      hardcode_libdir_flag_spec='-L$libdir'
8799
 
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8800
 
      allow_undefined_flag=unsupported
8801
 
      always_export_symbols=no
8802
 
      enable_shared_with_static_runtimes=yes
8803
 
      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'
8804
 
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8805
 
 
8806
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8807
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8808
 
        # If the export-symbols file already is a .def file (1st line
8809
 
        # is EXPORTS), use it as is; otherwise, prepend...
8810
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8811
 
          cp $export_symbols $output_objdir/$soname.def;
8812
 
        else
8813
 
          echo EXPORTS > $output_objdir/$soname.def;
8814
 
          cat $export_symbols >> $output_objdir/$soname.def;
8815
 
        fi~
8816
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8817
 
      else
8818
 
        ld_shlibs=no
8819
 
      fi
8820
 
      ;;
8821
 
 
8822
 
    haiku*)
8823
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824
 
      link_all_deplibs=yes
8825
 
      ;;
8826
 
 
8827
 
    interix[3-9]*)
8828
 
      hardcode_direct=no
8829
 
      hardcode_shlibpath_var=no
8830
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8831
 
      export_dynamic_flag_spec='${wl}-E'
8832
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8833
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8834
 
      # default) and relocated if they conflict, which is a slow very memory
8835
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
8836
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8837
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8838
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8839
 
      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'
8840
 
      ;;
8841
 
 
8842
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8843
 
      tmp_diet=no
8844
 
      if test "$host_os" = linux-dietlibc; then
8845
 
        case $cc_basename in
8846
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8847
 
        esac
8848
 
      fi
8849
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8850
 
         && test "$tmp_diet" = no
8851
 
      then
8852
 
        tmp_addflag=' $pic_flag'
8853
 
        tmp_sharedflag='-shared'
8854
 
        case $cc_basename,$host_cpu in
8855
 
        pgcc*)                          # Portland Group C compiler
8856
 
          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'
8857
 
          tmp_addflag=' $pic_flag'
8858
 
          ;;
8859
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
8860
 
                                        # Portland Group f77 and f90 compilers
8861
 
          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'
8862
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
8863
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8864
 
          tmp_addflag=' -i_dynamic' ;;
8865
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8866
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8867
 
        ifc* | ifort*)                  # Intel Fortran compiler
8868
 
          tmp_addflag=' -nofor_main' ;;
8869
 
        lf95*)                          # Lahey Fortran 8.1
8870
 
          whole_archive_flag_spec=
8871
 
          tmp_sharedflag='--shared' ;;
8872
 
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8873
 
          tmp_sharedflag='-qmkshrobj'
8874
 
          tmp_addflag= ;;
8875
 
        nvcc*)  # Cuda Compiler Driver 2.2
8876
 
          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'
8877
 
          compiler_needs_object=yes
8878
 
          ;;
8879
 
        esac
8880
 
        case `$CC -V 2>&1 | sed 5q` in
8881
 
        *Sun\ C*)                       # Sun C 5.9
8882
 
          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'
8883
 
          compiler_needs_object=yes
8884
 
          tmp_sharedflag='-G' ;;
8885
 
        *Sun\ F*)                       # Sun Fortran 8.3
8886
 
          tmp_sharedflag='-G' ;;
8887
 
        esac
8888
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889
 
 
8890
 
        if test "x$supports_anon_versioning" = xyes; then
8891
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8892
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8893
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
8894
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8895
 
        fi
8896
 
 
8897
 
        case $cc_basename in
8898
 
        xlf* | bgf* | bgxlf* | mpixlf*)
8899
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8900
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8901
 
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902
 
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8903
 
          if test "x$supports_anon_versioning" = xyes; then
8904
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8905
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
8907
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8908
 
          fi
8909
 
          ;;
8910
 
        esac
8911
 
      else
8912
 
        ld_shlibs=no
8913
 
      fi
8914
 
      ;;
8915
 
 
8916
 
    netbsd*)
8917
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8918
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8919
 
        wlarc=
8920
 
      else
8921
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8923
 
      fi
8924
 
      ;;
8925
 
 
8926
 
    solaris*)
8927
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8928
 
        ld_shlibs=no
8929
 
        cat <<_LT_EOF 1>&2
8930
 
 
8931
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8932
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8933
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8934
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8935
 
*** your PATH or compiler configuration so that the native linker is
8936
 
*** used, and then restart.
8937
 
 
8938
 
_LT_EOF
8939
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8942
 
      else
8943
 
        ld_shlibs=no
8944
 
      fi
8945
 
      ;;
8946
 
 
8947
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8948
 
      case `$LD -v 2>&1` in
8949
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8950
 
        ld_shlibs=no
8951
 
        cat <<_LT_EOF 1>&2
8952
 
 
8953
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8954
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8955
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8956
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8957
 
*** your PATH or compiler configuration so that the native linker is
8958
 
*** used, and then restart.
8959
 
 
8960
 
_LT_EOF
8961
 
        ;;
8962
 
        *)
8963
 
          # For security reasons, it is highly recommended that you always
8964
 
          # use absolute paths for naming shared libraries, and exclude the
8965
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
8966
 
          # requires that you compile everything twice, which is a pain.
8967
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8968
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971
 
          else
8972
 
            ld_shlibs=no
8973
 
          fi
8974
 
        ;;
8975
 
      esac
8976
 
      ;;
8977
 
 
8978
 
    sunos4*)
8979
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8980
 
      wlarc=
8981
 
      hardcode_direct=yes
8982
 
      hardcode_shlibpath_var=no
8983
 
      ;;
8984
 
 
8985
 
    *)
8986
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989
 
      else
8990
 
        ld_shlibs=no
8991
 
      fi
8992
 
      ;;
8993
 
    esac
8994
 
 
8995
 
    if test "$ld_shlibs" = no; then
8996
 
      runpath_var=
8997
 
      hardcode_libdir_flag_spec=
8998
 
      export_dynamic_flag_spec=
8999
 
      whole_archive_flag_spec=
9000
 
    fi
9001
 
  else
9002
 
    # PORTME fill in a description of your system's linker (not GNU ld)
9003
 
    case $host_os in
9004
 
    aix3*)
9005
 
      allow_undefined_flag=unsupported
9006
 
      always_export_symbols=yes
9007
 
      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'
9008
 
      # Note: this linker hardcodes the directories in LIBPATH if there
9009
 
      # are no directories specified by -L.
9010
 
      hardcode_minus_L=yes
9011
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9012
 
        # Neither direct hardcoding nor static linking is supported with a
9013
 
        # broken collect2.
9014
 
        hardcode_direct=unsupported
9015
 
      fi
9016
 
      ;;
9017
 
 
9018
 
    aix[4-9]*)
9019
 
      if test "$host_cpu" = ia64; then
9020
 
        # On IA64, the linker does run time linking by default, so we don't
9021
 
        # have to do anything special.
9022
 
        aix_use_runtimelinking=no
9023
 
        exp_sym_flag='-Bexport'
9024
 
        no_entry_flag=""
9025
 
      else
9026
 
        # If we're using GNU nm, then we don't want the "-C" option.
9027
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9028
 
        # Also, AIX nm treats weak defined symbols like other global
9029
 
        # defined symbols, whereas GNU nm marks them as "W".
9030
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9031
 
          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'
9032
 
        else
9033
 
          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'
9034
 
        fi
9035
 
        aix_use_runtimelinking=no
9036
 
 
9037
 
        # Test if we are trying to use run time linking or normal
9038
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9039
 
        # need to do runtime linking.
9040
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9041
 
          for ld_flag in $LDFLAGS; do
9042
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9043
 
            aix_use_runtimelinking=yes
9044
 
            break
9045
 
          fi
9046
 
          done
9047
 
          ;;
9048
 
        esac
9049
 
 
9050
 
        exp_sym_flag='-bexport'
9051
 
        no_entry_flag='-bnoentry'
9052
 
      fi
9053
 
 
9054
 
      # When large executables or shared objects are built, AIX ld can
9055
 
      # have problems creating the table of contents.  If linking a library
9056
 
      # or program results in "error TOC overflow" add -mminimal-toc to
9057
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9058
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9059
 
 
9060
 
      archive_cmds=''
9061
 
      hardcode_direct=yes
9062
 
      hardcode_direct_absolute=yes
9063
 
      hardcode_libdir_separator=':'
9064
 
      link_all_deplibs=yes
9065
 
      file_list_spec='${wl}-f,'
9066
 
 
9067
 
      if test "$GCC" = yes; then
9068
 
        case $host_os in aix4.[012]|aix4.[012].*)
9069
 
        # We only want to do this on AIX 4.2 and lower, the check
9070
 
        # below for broken collect2 doesn't work under 4.3+
9071
 
          collect2name=`${CC} -print-prog-name=collect2`
9072
 
          if test -f "$collect2name" &&
9073
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9074
 
          then
9075
 
          # We have reworked collect2
9076
 
          :
9077
 
          else
9078
 
          # We have old collect2
9079
 
          hardcode_direct=unsupported
9080
 
          # It fails to find uninstalled libraries when the uninstalled
9081
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9082
 
          # to unsupported forces relinking
9083
 
          hardcode_minus_L=yes
9084
 
          hardcode_libdir_flag_spec='-L$libdir'
9085
 
          hardcode_libdir_separator=
9086
 
          fi
9087
 
          ;;
9088
 
        esac
9089
 
        shared_flag='-shared'
9090
 
        if test "$aix_use_runtimelinking" = yes; then
9091
 
          shared_flag="$shared_flag "'${wl}-G'
9092
 
        fi
9093
 
      else
9094
 
        # not using gcc
9095
 
        if test "$host_cpu" = ia64; then
9096
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9097
 
        # chokes on -Wl,-G. The following line is correct:
9098
 
          shared_flag='-G'
9099
 
        else
9100
 
          if test "$aix_use_runtimelinking" = yes; then
9101
 
            shared_flag='${wl}-G'
9102
 
          else
9103
 
            shared_flag='${wl}-bM:SRE'
9104
 
          fi
9105
 
        fi
9106
 
      fi
9107
 
 
9108
 
      export_dynamic_flag_spec='${wl}-bexpall'
9109
 
      # It seems that -bexpall does not export symbols beginning with
9110
 
      # underscore (_), so it is better to generate a list of symbols to export.
9111
 
      always_export_symbols=yes
9112
 
      if test "$aix_use_runtimelinking" = yes; then
9113
 
        # Warning - without using the other runtime loading flags (-brtl),
9114
 
        # -berok will link without error, but may produce a broken library.
9115
 
        allow_undefined_flag='-berok'
9116
 
        # Determine the default libpath from the value encoded in an
9117
 
        # empty executable.
9118
 
        if test "${lt_cv_aix_libpath+set}" = set; then
9119
 
  aix_libpath=$lt_cv_aix_libpath
9120
 
else
9121
 
  if ${lt_cv_aix_libpath_+:} false; then :
9122
 
  $as_echo_n "(cached) " >&6
9123
 
else
9124
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125
 
/* end confdefs.h.  */
9126
 
 
9127
 
int
9128
 
main ()
9129
 
{
9130
 
 
9131
 
  ;
9132
 
  return 0;
9133
 
}
9134
 
_ACEOF
9135
 
if ac_fn_c_try_link "$LINENO"; then :
9136
 
 
9137
 
  lt_aix_libpath_sed='
9138
 
      /Import File Strings/,/^$/ {
9139
 
          /^0/ {
9140
 
              s/^0  *\([^ ]*\) *$/\1/
9141
 
              p
9142
 
          }
9143
 
      }'
9144
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9145
 
  # Check for a 64-bit object if we didn't find anything.
9146
 
  if test -z "$lt_cv_aix_libpath_"; then
9147
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9148
 
  fi
9149
 
fi
9150
 
rm -f core conftest.err conftest.$ac_objext \
9151
 
    conftest$ac_exeext conftest.$ac_ext
9152
 
  if test -z "$lt_cv_aix_libpath_"; then
9153
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
9154
 
  fi
9155
 
 
9156
 
fi
9157
 
 
9158
 
  aix_libpath=$lt_cv_aix_libpath_
9159
 
fi
9160
 
 
9161
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9162
 
        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"
9163
 
      else
9164
 
        if test "$host_cpu" = ia64; then
9165
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9166
 
          allow_undefined_flag="-z nodefs"
9167
 
          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"
9168
 
        else
9169
 
         # Determine the default libpath from the value encoded in an
9170
 
         # empty executable.
9171
 
         if test "${lt_cv_aix_libpath+set}" = set; then
9172
 
  aix_libpath=$lt_cv_aix_libpath
9173
 
else
9174
 
  if ${lt_cv_aix_libpath_+:} false; then :
9175
 
  $as_echo_n "(cached) " >&6
9176
 
else
9177
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178
 
/* end confdefs.h.  */
9179
 
 
9180
 
int
9181
 
main ()
9182
 
{
9183
 
 
9184
 
  ;
9185
 
  return 0;
9186
 
}
9187
 
_ACEOF
9188
 
if ac_fn_c_try_link "$LINENO"; then :
9189
 
 
9190
 
  lt_aix_libpath_sed='
9191
 
      /Import File Strings/,/^$/ {
9192
 
          /^0/ {
9193
 
              s/^0  *\([^ ]*\) *$/\1/
9194
 
              p
9195
 
          }
9196
 
      }'
9197
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198
 
  # Check for a 64-bit object if we didn't find anything.
9199
 
  if test -z "$lt_cv_aix_libpath_"; then
9200
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201
 
  fi
9202
 
fi
9203
 
rm -f core conftest.err conftest.$ac_objext \
9204
 
    conftest$ac_exeext conftest.$ac_ext
9205
 
  if test -z "$lt_cv_aix_libpath_"; then
9206
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
9207
 
  fi
9208
 
 
9209
 
fi
9210
 
 
9211
 
  aix_libpath=$lt_cv_aix_libpath_
9212
 
fi
9213
 
 
9214
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9215
 
          # Warning - without using the other run time loading flags,
9216
 
          # -berok will link without error, but may produce a broken library.
9217
 
          no_undefined_flag=' ${wl}-bernotok'
9218
 
          allow_undefined_flag=' ${wl}-berok'
9219
 
          if test "$with_gnu_ld" = yes; then
9220
 
            # We only use this code for GNU lds that support --whole-archive.
9221
 
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9222
 
          else
9223
 
            # Exported symbols can be pulled into shared objects from archives
9224
 
            whole_archive_flag_spec='$convenience'
9225
 
          fi
9226
 
          archive_cmds_need_lc=yes
9227
 
          # This is similar to how AIX traditionally builds its shared libraries.
9228
 
          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'
9229
 
        fi
9230
 
      fi
9231
 
      ;;
9232
 
 
9233
 
    amigaos*)
9234
 
      case $host_cpu in
9235
 
      powerpc)
9236
 
            # see comment about AmigaOS4 .so support
9237
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238
 
            archive_expsym_cmds=''
9239
 
        ;;
9240
 
      m68k)
9241
 
            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)'
9242
 
            hardcode_libdir_flag_spec='-L$libdir'
9243
 
            hardcode_minus_L=yes
9244
 
        ;;
9245
 
      esac
9246
 
      ;;
9247
 
 
9248
 
    bsdi[45]*)
9249
 
      export_dynamic_flag_spec=-rdynamic
9250
 
      ;;
9251
 
 
9252
 
    cygwin* | mingw* | pw32* | cegcc*)
9253
 
      # When not using gcc, we currently assume that we are using
9254
 
      # Microsoft Visual C++.
9255
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9256
 
      # no search path for DLLs.
9257
 
      case $cc_basename in
9258
 
      cl*)
9259
 
        # Native MSVC
9260
 
        hardcode_libdir_flag_spec=' '
9261
 
        allow_undefined_flag=unsupported
9262
 
        always_export_symbols=yes
9263
 
        file_list_spec='@'
9264
 
        # Tell ltmain to make .lib files, not .a files.
9265
 
        libext=lib
9266
 
        # Tell ltmain to make .dll files, not .so files.
9267
 
        shrext_cmds=".dll"
9268
 
        # FIXME: Setting linknames here is a bad hack.
9269
 
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9270
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9271
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9272
 
          else
9273
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9274
 
          fi~
9275
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9276
 
          linknames='
9277
 
        # The linker will not automatically build a static lib if we build a DLL.
9278
 
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9279
 
        enable_shared_with_static_runtimes=yes
9280
 
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9281
 
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9282
 
        # Don't use ranlib
9283
 
        old_postinstall_cmds='chmod 644 $oldlib'
9284
 
        postlink_cmds='lt_outputfile="@OUTPUT@"~
9285
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
9286
 
          case $lt_outputfile in
9287
 
            *.exe|*.EXE) ;;
9288
 
            *)
9289
 
              lt_outputfile="$lt_outputfile.exe"
9290
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
9291
 
              ;;
9292
 
          esac~
9293
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9294
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9295
 
            $RM "$lt_outputfile.manifest";
9296
 
          fi'
9297
 
        ;;
9298
 
      *)
9299
 
        # Assume MSVC wrapper
9300
 
        hardcode_libdir_flag_spec=' '
9301
 
        allow_undefined_flag=unsupported
9302
 
        # Tell ltmain to make .lib files, not .a files.
9303
 
        libext=lib
9304
 
        # Tell ltmain to make .dll files, not .so files.
9305
 
        shrext_cmds=".dll"
9306
 
        # FIXME: Setting linknames here is a bad hack.
9307
 
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9308
 
        # The linker will automatically build a .lib file if we build a DLL.
9309
 
        old_archive_from_new_cmds='true'
9310
 
        # FIXME: Should let the user specify the lib program.
9311
 
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9312
 
        enable_shared_with_static_runtimes=yes
9313
 
        ;;
9314
 
      esac
9315
 
      ;;
9316
 
 
9317
 
    darwin* | rhapsody*)
9318
 
 
9319
 
 
9320
 
  archive_cmds_need_lc=no
9321
 
  hardcode_direct=no
9322
 
  hardcode_automatic=yes
9323
 
  hardcode_shlibpath_var=unsupported
9324
 
  if test "$lt_cv_ld_force_load" = "yes"; then
9325
 
    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\"`'
9326
 
 
9327
 
  else
9328
 
    whole_archive_flag_spec=''
9329
 
  fi
9330
 
  link_all_deplibs=yes
9331
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9332
 
  case $cc_basename in
9333
 
     ifort*) _lt_dar_can_shared=yes ;;
9334
 
     *) _lt_dar_can_shared=$GCC ;;
9335
 
  esac
9336
 
  if test "$_lt_dar_can_shared" = "yes"; then
9337
 
    output_verbose_link_cmd=func_echo_all
9338
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9339
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9340
 
    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}"
9341
 
    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}"
9342
 
 
9343
 
  else
9344
 
  ld_shlibs=no
9345
 
  fi
9346
 
 
9347
 
      ;;
9348
 
 
9349
 
    dgux*)
9350
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351
 
      hardcode_libdir_flag_spec='-L$libdir'
9352
 
      hardcode_shlibpath_var=no
9353
 
      ;;
9354
 
 
9355
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9356
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9357
 
    # does not break anything, and helps significantly (at the cost of a little
9358
 
    # extra space).
9359
 
    freebsd2.2*)
9360
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9361
 
      hardcode_libdir_flag_spec='-R$libdir'
9362
 
      hardcode_direct=yes
9363
 
      hardcode_shlibpath_var=no
9364
 
      ;;
9365
 
 
9366
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9367
 
    freebsd2.*)
9368
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9369
 
      hardcode_direct=yes
9370
 
      hardcode_minus_L=yes
9371
 
      hardcode_shlibpath_var=no
9372
 
      ;;
9373
 
 
9374
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9375
 
    freebsd* | dragonfly*)
9376
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9377
 
      hardcode_libdir_flag_spec='-R$libdir'
9378
 
      hardcode_direct=yes
9379
 
      hardcode_shlibpath_var=no
9380
 
      ;;
9381
 
 
9382
 
    hpux9*)
9383
 
      if test "$GCC" = yes; then
9384
 
        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'
9385
 
      else
9386
 
        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'
9387
 
      fi
9388
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9389
 
      hardcode_libdir_separator=:
9390
 
      hardcode_direct=yes
9391
 
 
9392
 
      # hardcode_minus_L: Not really in the search PATH,
9393
 
      # but as the default location of the library.
9394
 
      hardcode_minus_L=yes
9395
 
      export_dynamic_flag_spec='${wl}-E'
9396
 
      ;;
9397
 
 
9398
 
    hpux10*)
9399
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9400
 
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401
 
      else
9402
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9403
 
      fi
9404
 
      if test "$with_gnu_ld" = no; then
9405
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406
 
        hardcode_libdir_separator=:
9407
 
        hardcode_direct=yes
9408
 
        hardcode_direct_absolute=yes
9409
 
        export_dynamic_flag_spec='${wl}-E'
9410
 
        # hardcode_minus_L: Not really in the search PATH,
9411
 
        # but as the default location of the library.
9412
 
        hardcode_minus_L=yes
9413
 
      fi
9414
 
      ;;
9415
 
 
9416
 
    hpux11*)
9417
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9418
 
        case $host_cpu in
9419
 
        hppa*64*)
9420
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9421
 
          ;;
9422
 
        ia64*)
9423
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9424
 
          ;;
9425
 
        *)
9426
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427
 
          ;;
9428
 
        esac
9429
 
      else
9430
 
        case $host_cpu in
9431
 
        hppa*64*)
9432
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9433
 
          ;;
9434
 
        ia64*)
9435
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9436
 
          ;;
9437
 
        *)
9438
 
 
9439
 
          # Older versions of the 11.00 compiler do not understand -b yet
9440
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9441
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9442
 
$as_echo_n "checking if $CC understands -b... " >&6; }
9443
 
if ${lt_cv_prog_compiler__b+:} false; then :
9444
 
  $as_echo_n "(cached) " >&6
9445
 
else
9446
 
  lt_cv_prog_compiler__b=no
9447
 
   save_LDFLAGS="$LDFLAGS"
9448
 
   LDFLAGS="$LDFLAGS -b"
9449
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9450
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9451
 
     # The linker can only warn and ignore the option if not recognized
9452
 
     # So say no if there are warnings
9453
 
     if test -s conftest.err; then
9454
 
       # Append any errors to the config.log.
9455
 
       cat conftest.err 1>&5
9456
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9457
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458
 
       if diff conftest.exp conftest.er2 >/dev/null; then
9459
 
         lt_cv_prog_compiler__b=yes
9460
 
       fi
9461
 
     else
9462
 
       lt_cv_prog_compiler__b=yes
9463
 
     fi
9464
 
   fi
9465
 
   $RM -r conftest*
9466
 
   LDFLAGS="$save_LDFLAGS"
9467
 
 
9468
 
fi
9469
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9470
 
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9471
 
 
9472
 
if test x"$lt_cv_prog_compiler__b" = xyes; then
9473
 
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9474
 
else
9475
 
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9476
 
fi
9477
 
 
9478
 
          ;;
9479
 
        esac
9480
 
      fi
9481
 
      if test "$with_gnu_ld" = no; then
9482
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483
 
        hardcode_libdir_separator=:
9484
 
 
9485
 
        case $host_cpu in
9486
 
        hppa*64*|ia64*)
9487
 
          hardcode_direct=no
9488
 
          hardcode_shlibpath_var=no
9489
 
          ;;
9490
 
        *)
9491
 
          hardcode_direct=yes
9492
 
          hardcode_direct_absolute=yes
9493
 
          export_dynamic_flag_spec='${wl}-E'
9494
 
 
9495
 
          # hardcode_minus_L: Not really in the search PATH,
9496
 
          # but as the default location of the library.
9497
 
          hardcode_minus_L=yes
9498
 
          ;;
9499
 
        esac
9500
 
      fi
9501
 
      ;;
9502
 
 
9503
 
    irix5* | irix6* | nonstopux*)
9504
 
      if test "$GCC" = yes; then
9505
 
        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'
9506
 
        # Try to use the -exported_symbol ld option, if it does not
9507
 
        # work, assume that -exports_file does not work either and
9508
 
        # implicitly export all symbols.
9509
 
        # This should be the same for all languages, so no per-tag cache variable.
9510
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9511
 
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9512
 
if ${lt_cv_irix_exported_symbol+:} false; then :
9513
 
  $as_echo_n "(cached) " >&6
9514
 
else
9515
 
  save_LDFLAGS="$LDFLAGS"
9516
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9517
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518
 
/* end confdefs.h.  */
9519
 
int foo (void) { return 0; }
9520
 
_ACEOF
9521
 
if ac_fn_c_try_link "$LINENO"; then :
9522
 
  lt_cv_irix_exported_symbol=yes
9523
 
else
9524
 
  lt_cv_irix_exported_symbol=no
9525
 
fi
9526
 
rm -f core conftest.err conftest.$ac_objext \
9527
 
    conftest$ac_exeext conftest.$ac_ext
9528
 
           LDFLAGS="$save_LDFLAGS"
9529
 
fi
9530
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9531
 
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9532
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
9533
 
          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'
9534
 
        fi
9535
 
      else
9536
 
        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'
9537
 
        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'
9538
 
      fi
9539
 
      archive_cmds_need_lc='no'
9540
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541
 
      hardcode_libdir_separator=:
9542
 
      inherit_rpath=yes
9543
 
      link_all_deplibs=yes
9544
 
      ;;
9545
 
 
9546
 
    netbsd*)
9547
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9548
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9549
 
      else
9550
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9551
 
      fi
9552
 
      hardcode_libdir_flag_spec='-R$libdir'
9553
 
      hardcode_direct=yes
9554
 
      hardcode_shlibpath_var=no
9555
 
      ;;
9556
 
 
9557
 
    newsos6)
9558
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559
 
      hardcode_direct=yes
9560
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561
 
      hardcode_libdir_separator=:
9562
 
      hardcode_shlibpath_var=no
9563
 
      ;;
9564
 
 
9565
 
    *nto* | *qnx*)
9566
 
      ;;
9567
 
 
9568
 
    openbsd*)
9569
 
      if test -f /usr/libexec/ld.so; then
9570
 
        hardcode_direct=yes
9571
 
        hardcode_shlibpath_var=no
9572
 
        hardcode_direct_absolute=yes
9573
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9574
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9575
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9576
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577
 
          export_dynamic_flag_spec='${wl}-E'
9578
 
        else
9579
 
          case $host_os in
9580
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9581
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9582
 
             hardcode_libdir_flag_spec='-R$libdir'
9583
 
             ;;
9584
 
           *)
9585
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9586
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587
 
             ;;
9588
 
          esac
9589
 
        fi
9590
 
      else
9591
 
        ld_shlibs=no
9592
 
      fi
9593
 
      ;;
9594
 
 
9595
 
    os2*)
9596
 
      hardcode_libdir_flag_spec='-L$libdir'
9597
 
      hardcode_minus_L=yes
9598
 
      allow_undefined_flag=unsupported
9599
 
      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'
9600
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9601
 
      ;;
9602
 
 
9603
 
    osf3*)
9604
 
      if test "$GCC" = yes; then
9605
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606
 
        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'
9607
 
      else
9608
 
        allow_undefined_flag=' -expect_unresolved \*'
9609
 
        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'
9610
 
      fi
9611
 
      archive_cmds_need_lc='no'
9612
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613
 
      hardcode_libdir_separator=:
9614
 
      ;;
9615
 
 
9616
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9617
 
      if test "$GCC" = yes; then
9618
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9619
 
        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'
9620
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621
 
      else
9622
 
        allow_undefined_flag=' -expect_unresolved \*'
9623
 
        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'
9624
 
        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~
9625
 
        $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'
9626
 
 
9627
 
        # Both c and cxx compiler support -rpath directly
9628
 
        hardcode_libdir_flag_spec='-rpath $libdir'
9629
 
      fi
9630
 
      archive_cmds_need_lc='no'
9631
 
      hardcode_libdir_separator=:
9632
 
      ;;
9633
 
 
9634
 
    solaris*)
9635
 
      no_undefined_flag=' -z defs'
9636
 
      if test "$GCC" = yes; then
9637
 
        wlarc='${wl}'
9638
 
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9639
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9640
 
          $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'
9641
 
      else
9642
 
        case `$CC -V 2>&1` in
9643
 
        *"Compilers 5.0"*)
9644
 
          wlarc=''
9645
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9647
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9648
 
          ;;
9649
 
        *)
9650
 
          wlarc='${wl}'
9651
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9652
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9653
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9654
 
          ;;
9655
 
        esac
9656
 
      fi
9657
 
      hardcode_libdir_flag_spec='-R$libdir'
9658
 
      hardcode_shlibpath_var=no
9659
 
      case $host_os in
9660
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9661
 
      *)
9662
 
        # The compiler driver will combine and reorder linker options,
9663
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9664
 
        # but is careful enough not to reorder.
9665
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9666
 
        if test "$GCC" = yes; then
9667
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9668
 
        else
9669
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9670
 
        fi
9671
 
        ;;
9672
 
      esac
9673
 
      link_all_deplibs=yes
9674
 
      ;;
9675
 
 
9676
 
    sunos4*)
9677
 
      if test "x$host_vendor" = xsequent; then
9678
 
        # Use $CC to link under sequent, because it throws in some extra .o
9679
 
        # files that make .init and .fini sections work.
9680
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9681
 
      else
9682
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9683
 
      fi
9684
 
      hardcode_libdir_flag_spec='-L$libdir'
9685
 
      hardcode_direct=yes
9686
 
      hardcode_minus_L=yes
9687
 
      hardcode_shlibpath_var=no
9688
 
      ;;
9689
 
 
9690
 
    sysv4)
9691
 
      case $host_vendor in
9692
 
        sni)
9693
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694
 
          hardcode_direct=yes # is this really true???
9695
 
        ;;
9696
 
        siemens)
9697
 
          ## LD is ld it makes a PLAMLIB
9698
 
          ## CC just makes a GrossModule.
9699
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9700
 
          reload_cmds='$CC -r -o $output$reload_objs'
9701
 
          hardcode_direct=no
9702
 
        ;;
9703
 
        motorola)
9704
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9706
 
        ;;
9707
 
      esac
9708
 
      runpath_var='LD_RUN_PATH'
9709
 
      hardcode_shlibpath_var=no
9710
 
      ;;
9711
 
 
9712
 
    sysv4.3*)
9713
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714
 
      hardcode_shlibpath_var=no
9715
 
      export_dynamic_flag_spec='-Bexport'
9716
 
      ;;
9717
 
 
9718
 
    sysv4*MP*)
9719
 
      if test -d /usr/nec; then
9720
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721
 
        hardcode_shlibpath_var=no
9722
 
        runpath_var=LD_RUN_PATH
9723
 
        hardcode_runpath_var=yes
9724
 
        ld_shlibs=yes
9725
 
      fi
9726
 
      ;;
9727
 
 
9728
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9729
 
      no_undefined_flag='${wl}-z,text'
9730
 
      archive_cmds_need_lc=no
9731
 
      hardcode_shlibpath_var=no
9732
 
      runpath_var='LD_RUN_PATH'
9733
 
 
9734
 
      if test "$GCC" = yes; then
9735
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737
 
      else
9738
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740
 
      fi
9741
 
      ;;
9742
 
 
9743
 
    sysv5* | sco3.2v5* | sco5v6*)
9744
 
      # Note: We can NOT use -z defs as we might desire, because we do not
9745
 
      # link with -lc, and that would cause any symbols used from libc to
9746
 
      # always be unresolved, which means just about no library would
9747
 
      # ever link correctly.  If we're not using GNU ld we use -z text
9748
 
      # though, which does catch some bad symbols but isn't as heavy-handed
9749
 
      # as -z defs.
9750
 
      no_undefined_flag='${wl}-z,text'
9751
 
      allow_undefined_flag='${wl}-z,nodefs'
9752
 
      archive_cmds_need_lc=no
9753
 
      hardcode_shlibpath_var=no
9754
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9755
 
      hardcode_libdir_separator=':'
9756
 
      link_all_deplibs=yes
9757
 
      export_dynamic_flag_spec='${wl}-Bexport'
9758
 
      runpath_var='LD_RUN_PATH'
9759
 
 
9760
 
      if test "$GCC" = yes; then
9761
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763
 
      else
9764
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766
 
      fi
9767
 
      ;;
9768
 
 
9769
 
    uts4*)
9770
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771
 
      hardcode_libdir_flag_spec='-L$libdir'
9772
 
      hardcode_shlibpath_var=no
9773
 
      ;;
9774
 
 
9775
 
    *)
9776
 
      ld_shlibs=no
9777
 
      ;;
9778
 
    esac
9779
 
 
9780
 
    if test x$host_vendor = xsni; then
9781
 
      case $host in
9782
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9783
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9784
 
        ;;
9785
 
      esac
9786
 
    fi
9787
 
  fi
9788
 
 
9789
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9790
 
$as_echo "$ld_shlibs" >&6; }
9791
 
test "$ld_shlibs" = no && can_build_shared=no
9792
 
 
9793
 
with_gnu_ld=$with_gnu_ld
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
 
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
 
 
9809
 
#
9810
 
# Do we need to explicitly link libc?
9811
 
#
9812
 
case "x$archive_cmds_need_lc" in
9813
 
x|xyes)
9814
 
  # Assume -lc should be added
9815
 
  archive_cmds_need_lc=yes
9816
 
 
9817
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9818
 
    case $archive_cmds in
9819
 
    *'~'*)
9820
 
      # FIXME: we may have to deal with multi-command sequences.
9821
 
      ;;
9822
 
    '$CC '*)
9823
 
      # Test whether the compiler implicitly links with -lc since on some
9824
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9825
 
      # to ld, don't add -lc before -lgcc.
9826
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9827
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9828
 
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9829
 
  $as_echo_n "(cached) " >&6
9830
 
else
9831
 
  $RM conftest*
9832
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9833
 
 
9834
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9835
 
  (eval $ac_compile) 2>&5
9836
 
  ac_status=$?
9837
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838
 
  test $ac_status = 0; } 2>conftest.err; then
9839
 
          soname=conftest
9840
 
          lib=conftest
9841
 
          libobjs=conftest.$ac_objext
9842
 
          deplibs=
9843
 
          wl=$lt_prog_compiler_wl
9844
 
          pic_flag=$lt_prog_compiler_pic
9845
 
          compiler_flags=-v
9846
 
          linker_flags=-v
9847
 
          verstring=
9848
 
          output_objdir=.
9849
 
          libname=conftest
9850
 
          lt_save_allow_undefined_flag=$allow_undefined_flag
9851
 
          allow_undefined_flag=
9852
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9853
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9854
 
  ac_status=$?
9855
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9856
 
  test $ac_status = 0; }
9857
 
          then
9858
 
            lt_cv_archive_cmds_need_lc=no
9859
 
          else
9860
 
            lt_cv_archive_cmds_need_lc=yes
9861
 
          fi
9862
 
          allow_undefined_flag=$lt_save_allow_undefined_flag
9863
 
        else
9864
 
          cat conftest.err 1>&5
9865
 
        fi
9866
 
        $RM conftest*
9867
 
 
9868
 
fi
9869
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9870
 
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9871
 
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9872
 
      ;;
9873
 
    esac
9874
 
  fi
9875
 
  ;;
9876
 
esac
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
 
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
 
 
9893
 
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
 
 
9902
 
 
9903
 
 
9904
 
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
 
9920
 
 
9921
 
 
9922
 
 
9923
 
 
9924
 
 
9925
 
 
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
 
 
9937
 
 
9938
 
 
9939
 
 
9940
 
 
9941
 
 
9942
 
 
9943
 
 
9944
 
 
9945
 
 
9946
 
 
9947
 
 
9948
 
 
9949
 
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
 
 
9964
 
 
9965
 
 
9966
 
 
9967
 
 
9968
 
 
9969
 
 
9970
 
 
9971
 
 
9972
 
 
9973
 
 
9974
 
 
9975
 
 
9976
 
 
9977
 
 
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
 
 
10018
 
 
10019
 
 
10020
 
 
10021
 
 
10022
 
 
10023
 
 
10024
 
 
10025
 
 
10026
 
 
10027
 
 
10028
 
 
10029
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10030
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10031
 
 
10032
 
if test "$GCC" = yes; then
10033
 
  case $host_os in
10034
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10035
 
    *) lt_awk_arg="/^libraries:/" ;;
10036
 
  esac
10037
 
  case $host_os in
10038
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10039
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
10040
 
  esac
10041
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10042
 
  case $lt_search_path_spec in
10043
 
  *\;*)
10044
 
    # if the path contains ";" then we assume it to be the separator
10045
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10046
 
    # assumed that no part of a normal pathname contains ";" but that should
10047
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10048
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10049
 
    ;;
10050
 
  *)
10051
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10052
 
    ;;
10053
 
  esac
10054
 
  # Ok, now we have the path, separated by spaces, we can step through it
10055
 
  # and add multilib dir if necessary.
10056
 
  lt_tmp_lt_search_path_spec=
10057
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10058
 
  for lt_sys_path in $lt_search_path_spec; do
10059
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10060
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10061
 
    else
10062
 
      test -d "$lt_sys_path" && \
10063
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10064
 
    fi
10065
 
  done
10066
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10067
 
BEGIN {RS=" "; FS="/|\n";} {
10068
 
  lt_foo="";
10069
 
  lt_count=0;
10070
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
10071
 
    if ($lt_i != "" && $lt_i != ".") {
10072
 
      if ($lt_i == "..") {
10073
 
        lt_count++;
10074
 
      } else {
10075
 
        if (lt_count == 0) {
10076
 
          lt_foo="/" $lt_i lt_foo;
10077
 
        } else {
10078
 
          lt_count--;
10079
 
        }
10080
 
      }
10081
 
    }
10082
 
  }
10083
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10084
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10085
 
}'`
10086
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
10087
 
  # for these hosts.
10088
 
  case $host_os in
10089
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10090
 
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10091
 
  esac
10092
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10093
 
else
10094
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10095
 
fi
10096
 
library_names_spec=
10097
 
libname_spec='lib$name'
10098
 
soname_spec=
10099
 
shrext_cmds=".so"
10100
 
postinstall_cmds=
10101
 
postuninstall_cmds=
10102
 
finish_cmds=
10103
 
finish_eval=
10104
 
shlibpath_var=
10105
 
shlibpath_overrides_runpath=unknown
10106
 
version_type=none
10107
 
dynamic_linker="$host_os ld.so"
10108
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10109
 
need_lib_prefix=unknown
10110
 
hardcode_into_libs=no
10111
 
 
10112
 
# when you set need_version to no, make sure it does not cause -set_version
10113
 
# flags to be left without arguments
10114
 
need_version=unknown
10115
 
 
10116
 
case $host_os in
10117
 
aix3*)
10118
 
  version_type=linux # correct to gnu/linux during the next big refactor
10119
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10120
 
  shlibpath_var=LIBPATH
10121
 
 
10122
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10123
 
  soname_spec='${libname}${release}${shared_ext}$major'
10124
 
  ;;
10125
 
 
10126
 
aix[4-9]*)
10127
 
  version_type=linux # correct to gnu/linux during the next big refactor
10128
 
  need_lib_prefix=no
10129
 
  need_version=no
10130
 
  hardcode_into_libs=yes
10131
 
  if test "$host_cpu" = ia64; then
10132
 
    # AIX 5 supports IA64
10133
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10134
 
    shlibpath_var=LD_LIBRARY_PATH
10135
 
  else
10136
 
    # With GCC up to 2.95.x, collect2 would create an import file
10137
 
    # for dependence libraries.  The import file would start with
10138
 
    # the line `#! .'.  This would cause the generated library to
10139
 
    # depend on `.', always an invalid library.  This was fixed in
10140
 
    # development snapshots of GCC prior to 3.0.
10141
 
    case $host_os in
10142
 
      aix4 | aix4.[01] | aix4.[01].*)
10143
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10144
 
           echo ' yes '
10145
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10146
 
        :
10147
 
      else
10148
 
        can_build_shared=no
10149
 
      fi
10150
 
      ;;
10151
 
    esac
10152
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10153
 
    # soname into executable. Probably we can add versioning support to
10154
 
    # collect2, so additional links can be useful in future.
10155
 
    if test "$aix_use_runtimelinking" = yes; then
10156
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10157
 
      # instead of lib<name>.a to let people know that these are not
10158
 
      # typical AIX shared libraries.
10159
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160
 
    else
10161
 
      # We preserve .a as extension for shared libraries through AIX4.2
10162
 
      # and later when we are not doing run time linking.
10163
 
      library_names_spec='${libname}${release}.a $libname.a'
10164
 
      soname_spec='${libname}${release}${shared_ext}$major'
10165
 
    fi
10166
 
    shlibpath_var=LIBPATH
10167
 
  fi
10168
 
  ;;
10169
 
 
10170
 
amigaos*)
10171
 
  case $host_cpu in
10172
 
  powerpc)
10173
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10174
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10175
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176
 
    ;;
10177
 
  m68k)
10178
 
    library_names_spec='$libname.ixlibrary $libname.a'
10179
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10180
 
    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'
10181
 
    ;;
10182
 
  esac
10183
 
  ;;
10184
 
 
10185
 
beos*)
10186
 
  library_names_spec='${libname}${shared_ext}'
10187
 
  dynamic_linker="$host_os ld.so"
10188
 
  shlibpath_var=LIBRARY_PATH
10189
 
  ;;
10190
 
 
10191
 
bsdi[45]*)
10192
 
  version_type=linux # correct to gnu/linux during the next big refactor
10193
 
  need_version=no
10194
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195
 
  soname_spec='${libname}${release}${shared_ext}$major'
10196
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10197
 
  shlibpath_var=LD_LIBRARY_PATH
10198
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10199
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10200
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10201
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10202
 
  # libtool to hard-code these into programs
10203
 
  ;;
10204
 
 
10205
 
cygwin* | mingw* | pw32* | cegcc*)
10206
 
  version_type=windows
10207
 
  shrext_cmds=".dll"
10208
 
  need_version=no
10209
 
  need_lib_prefix=no
10210
 
 
10211
 
  case $GCC,$cc_basename in
10212
 
  yes,*)
10213
 
    # gcc
10214
 
    library_names_spec='$libname.dll.a'
10215
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10216
 
    postinstall_cmds='base_file=`basename \${file}`~
10217
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10218
 
      dldir=$destdir/`dirname \$dlpath`~
10219
 
      test -d \$dldir || mkdir -p \$dldir~
10220
 
      $install_prog $dir/$dlname \$dldir/$dlname~
10221
 
      chmod a+x \$dldir/$dlname~
10222
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10223
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10224
 
      fi'
10225
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10226
 
      dlpath=$dir/\$dldll~
10227
 
       $RM \$dlpath'
10228
 
    shlibpath_overrides_runpath=yes
10229
 
 
10230
 
    case $host_os in
10231
 
    cygwin*)
10232
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10233
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234
 
 
10235
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10236
 
      ;;
10237
 
    mingw* | cegcc*)
10238
 
      # MinGW DLLs use traditional 'lib' prefix
10239
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10240
 
      ;;
10241
 
    pw32*)
10242
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10243
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244
 
      ;;
10245
 
    esac
10246
 
    dynamic_linker='Win32 ld.exe'
10247
 
    ;;
10248
 
 
10249
 
  *,cl*)
10250
 
    # Native MSVC
10251
 
    libname_spec='$name'
10252
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10253
 
    library_names_spec='${libname}.dll.lib'
10254
 
 
10255
 
    case $build_os in
10256
 
    mingw*)
10257
 
      sys_lib_search_path_spec=
10258
 
      lt_save_ifs=$IFS
10259
 
      IFS=';'
10260
 
      for lt_path in $LIB
10261
 
      do
10262
 
        IFS=$lt_save_ifs
10263
 
        # Let DOS variable expansion print the short 8.3 style file name.
10264
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10265
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10266
 
      done
10267
 
      IFS=$lt_save_ifs
10268
 
      # Convert to MSYS style.
10269
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10270
 
      ;;
10271
 
    cygwin*)
10272
 
      # Convert to unix form, then to dos form, then back to unix form
10273
 
      # but this time dos style (no spaces!) so that the unix form looks
10274
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
10275
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10276
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10277
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10278
 
      ;;
10279
 
    *)
10280
 
      sys_lib_search_path_spec="$LIB"
10281
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10282
 
        # It is most probably a Windows format PATH.
10283
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10284
 
      else
10285
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10286
 
      fi
10287
 
      # FIXME: find the short name or the path components, as spaces are
10288
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
10289
 
      ;;
10290
 
    esac
10291
 
 
10292
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10293
 
    postinstall_cmds='base_file=`basename \${file}`~
10294
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10295
 
      dldir=$destdir/`dirname \$dlpath`~
10296
 
      test -d \$dldir || mkdir -p \$dldir~
10297
 
      $install_prog $dir/$dlname \$dldir/$dlname'
10298
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10299
 
      dlpath=$dir/\$dldll~
10300
 
       $RM \$dlpath'
10301
 
    shlibpath_overrides_runpath=yes
10302
 
    dynamic_linker='Win32 link.exe'
10303
 
    ;;
10304
 
 
10305
 
  *)
10306
 
    # Assume MSVC wrapper
10307
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10308
 
    dynamic_linker='Win32 ld.exe'
10309
 
    ;;
10310
 
  esac
10311
 
  # FIXME: first we should search . and the directory the executable is in
10312
 
  shlibpath_var=PATH
10313
 
  ;;
10314
 
 
10315
 
darwin* | rhapsody*)
10316
 
  dynamic_linker="$host_os dyld"
10317
 
  version_type=darwin
10318
 
  need_lib_prefix=no
10319
 
  need_version=no
10320
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10321
 
  soname_spec='${libname}${release}${major}$shared_ext'
10322
 
  shlibpath_overrides_runpath=yes
10323
 
  shlibpath_var=DYLD_LIBRARY_PATH
10324
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10325
 
 
10326
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10327
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10328
 
  ;;
10329
 
 
10330
 
dgux*)
10331
 
  version_type=linux # correct to gnu/linux during the next big refactor
10332
 
  need_lib_prefix=no
10333
 
  need_version=no
10334
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10335
 
  soname_spec='${libname}${release}${shared_ext}$major'
10336
 
  shlibpath_var=LD_LIBRARY_PATH
10337
 
  ;;
10338
 
 
10339
 
freebsd* | dragonfly*)
10340
 
  # DragonFly does not have aout.  When/if they implement a new
10341
 
  # versioning mechanism, adjust this.
10342
 
  if test -x /usr/bin/objformat; then
10343
 
    objformat=`/usr/bin/objformat`
10344
 
  else
10345
 
    case $host_os in
10346
 
    freebsd[23].*) objformat=aout ;;
10347
 
    *) objformat=elf ;;
10348
 
    esac
10349
 
  fi
10350
 
  version_type=freebsd-$objformat
10351
 
  case $version_type in
10352
 
    freebsd-elf*)
10353
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10354
 
      need_version=no
10355
 
      need_lib_prefix=no
10356
 
      ;;
10357
 
    freebsd-*)
10358
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10359
 
      need_version=yes
10360
 
      ;;
10361
 
  esac
10362
 
  shlibpath_var=LD_LIBRARY_PATH
10363
 
  case $host_os in
10364
 
  freebsd2.*)
10365
 
    shlibpath_overrides_runpath=yes
10366
 
    ;;
10367
 
  freebsd3.[01]* | freebsdelf3.[01]*)
10368
 
    shlibpath_overrides_runpath=yes
10369
 
    hardcode_into_libs=yes
10370
 
    ;;
10371
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10372
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10373
 
    shlibpath_overrides_runpath=no
10374
 
    hardcode_into_libs=yes
10375
 
    ;;
10376
 
  *) # from 4.6 on, and DragonFly
10377
 
    shlibpath_overrides_runpath=yes
10378
 
    hardcode_into_libs=yes
10379
 
    ;;
10380
 
  esac
10381
 
  ;;
10382
 
 
10383
 
gnu*)
10384
 
  version_type=linux # correct to gnu/linux during the next big refactor
10385
 
  need_lib_prefix=no
10386
 
  need_version=no
10387
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10388
 
  soname_spec='${libname}${release}${shared_ext}$major'
10389
 
  shlibpath_var=LD_LIBRARY_PATH
10390
 
  shlibpath_overrides_runpath=no
10391
 
  hardcode_into_libs=yes
10392
 
  ;;
10393
 
 
10394
 
haiku*)
10395
 
  version_type=linux # correct to gnu/linux during the next big refactor
10396
 
  need_lib_prefix=no
10397
 
  need_version=no
10398
 
  dynamic_linker="$host_os runtime_loader"
10399
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10400
 
  soname_spec='${libname}${release}${shared_ext}$major'
10401
 
  shlibpath_var=LIBRARY_PATH
10402
 
  shlibpath_overrides_runpath=yes
10403
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10404
 
  hardcode_into_libs=yes
10405
 
  ;;
10406
 
 
10407
 
hpux9* | hpux10* | hpux11*)
10408
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10409
 
  # link against other versions.
10410
 
  version_type=sunos
10411
 
  need_lib_prefix=no
10412
 
  need_version=no
10413
 
  case $host_cpu in
10414
 
  ia64*)
10415
 
    shrext_cmds='.so'
10416
 
    hardcode_into_libs=yes
10417
 
    dynamic_linker="$host_os dld.so"
10418
 
    shlibpath_var=LD_LIBRARY_PATH
10419
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10420
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421
 
    soname_spec='${libname}${release}${shared_ext}$major'
10422
 
    if test "X$HPUX_IA64_MODE" = X32; then
10423
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10424
 
    else
10425
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10426
 
    fi
10427
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10428
 
    ;;
10429
 
  hppa*64*)
10430
 
    shrext_cmds='.sl'
10431
 
    hardcode_into_libs=yes
10432
 
    dynamic_linker="$host_os dld.sl"
10433
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10434
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10435
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436
 
    soname_spec='${libname}${release}${shared_ext}$major'
10437
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10438
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10439
 
    ;;
10440
 
  *)
10441
 
    shrext_cmds='.sl'
10442
 
    dynamic_linker="$host_os dld.sl"
10443
 
    shlibpath_var=SHLIB_PATH
10444
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10445
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446
 
    soname_spec='${libname}${release}${shared_ext}$major'
10447
 
    ;;
10448
 
  esac
10449
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10450
 
  postinstall_cmds='chmod 555 $lib'
10451
 
  # or fails outright, so override atomically:
10452
 
  install_override_mode=555
10453
 
  ;;
10454
 
 
10455
 
interix[3-9]*)
10456
 
  version_type=linux # correct to gnu/linux during the next big refactor
10457
 
  need_lib_prefix=no
10458
 
  need_version=no
10459
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10460
 
  soname_spec='${libname}${release}${shared_ext}$major'
10461
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10462
 
  shlibpath_var=LD_LIBRARY_PATH
10463
 
  shlibpath_overrides_runpath=no
10464
 
  hardcode_into_libs=yes
10465
 
  ;;
10466
 
 
10467
 
irix5* | irix6* | nonstopux*)
10468
 
  case $host_os in
10469
 
    nonstopux*) version_type=nonstopux ;;
10470
 
    *)
10471
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
10472
 
                version_type=linux # correct to gnu/linux during the next big refactor
10473
 
        else
10474
 
                version_type=irix
10475
 
        fi ;;
10476
 
  esac
10477
 
  need_lib_prefix=no
10478
 
  need_version=no
10479
 
  soname_spec='${libname}${release}${shared_ext}$major'
10480
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10481
 
  case $host_os in
10482
 
  irix5* | nonstopux*)
10483
 
    libsuff= shlibsuff=
10484
 
    ;;
10485
 
  *)
10486
 
    case $LD in # libtool.m4 will add one of these switches to LD
10487
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10488
 
      libsuff= shlibsuff= libmagic=32-bit;;
10489
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10490
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10491
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10492
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10493
 
    *) libsuff= shlibsuff= libmagic=never-match;;
10494
 
    esac
10495
 
    ;;
10496
 
  esac
10497
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10498
 
  shlibpath_overrides_runpath=no
10499
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10500
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10501
 
  hardcode_into_libs=yes
10502
 
  ;;
10503
 
 
10504
 
# No shared lib support for Linux oldld, aout, or coff.
10505
 
linux*oldld* | linux*aout* | linux*coff*)
10506
 
  dynamic_linker=no
10507
 
  ;;
10508
 
 
10509
 
# This must be glibc/ELF.
10510
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10511
 
  version_type=linux # correct to gnu/linux during the next big refactor
10512
 
  need_lib_prefix=no
10513
 
  need_version=no
10514
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515
 
  soname_spec='${libname}${release}${shared_ext}$major'
10516
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10517
 
  shlibpath_var=LD_LIBRARY_PATH
10518
 
  shlibpath_overrides_runpath=no
10519
 
 
10520
 
  # Some binutils ld are patched to set DT_RUNPATH
10521
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10522
 
  $as_echo_n "(cached) " >&6
10523
 
else
10524
 
  lt_cv_shlibpath_overrides_runpath=no
10525
 
    save_LDFLAGS=$LDFLAGS
10526
 
    save_libdir=$libdir
10527
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10528
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10529
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530
 
/* end confdefs.h.  */
10531
 
 
10532
 
int
10533
 
main ()
10534
 
{
10535
 
 
10536
 
  ;
10537
 
  return 0;
10538
 
}
10539
 
_ACEOF
10540
 
if ac_fn_c_try_link "$LINENO"; then :
10541
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10542
 
  lt_cv_shlibpath_overrides_runpath=yes
10543
 
fi
10544
 
fi
10545
 
rm -f core conftest.err conftest.$ac_objext \
10546
 
    conftest$ac_exeext conftest.$ac_ext
10547
 
    LDFLAGS=$save_LDFLAGS
10548
 
    libdir=$save_libdir
10549
 
 
10550
 
fi
10551
 
 
10552
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10553
 
 
10554
 
  # This implies no fast_install, which is unacceptable.
10555
 
  # Some rework will be needed to allow for fast_install
10556
 
  # before this can be enabled.
10557
 
  hardcode_into_libs=yes
10558
 
 
10559
 
  # Append ld.so.conf contents to the search path
10560
 
  if test -f /etc/ld.so.conf; then
10561
 
    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' ' '`
10562
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10563
 
  fi
10564
 
 
10565
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10566
 
  # powerpc, because MkLinux only supported shared libraries with the
10567
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
10568
 
  # most powerpc-linux boxes support dynamic linking these days and
10569
 
  # people can always --disable-shared, the test was removed, and we
10570
 
  # assume the GNU/Linux dynamic linker is in use.
10571
 
  dynamic_linker='GNU/Linux ld.so'
10572
 
  ;;
10573
 
 
10574
 
netbsd*)
10575
 
  version_type=sunos
10576
 
  need_lib_prefix=no
10577
 
  need_version=no
10578
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10579
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10581
 
    dynamic_linker='NetBSD (a.out) ld.so'
10582
 
  else
10583
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10584
 
    soname_spec='${libname}${release}${shared_ext}$major'
10585
 
    dynamic_linker='NetBSD ld.elf_so'
10586
 
  fi
10587
 
  shlibpath_var=LD_LIBRARY_PATH
10588
 
  shlibpath_overrides_runpath=yes
10589
 
  hardcode_into_libs=yes
10590
 
  ;;
10591
 
 
10592
 
newsos6)
10593
 
  version_type=linux # correct to gnu/linux during the next big refactor
10594
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595
 
  shlibpath_var=LD_LIBRARY_PATH
10596
 
  shlibpath_overrides_runpath=yes
10597
 
  ;;
10598
 
 
10599
 
*nto* | *qnx*)
10600
 
  version_type=qnx
10601
 
  need_lib_prefix=no
10602
 
  need_version=no
10603
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604
 
  soname_spec='${libname}${release}${shared_ext}$major'
10605
 
  shlibpath_var=LD_LIBRARY_PATH
10606
 
  shlibpath_overrides_runpath=no
10607
 
  hardcode_into_libs=yes
10608
 
  dynamic_linker='ldqnx.so'
10609
 
  ;;
10610
 
 
10611
 
openbsd*)
10612
 
  version_type=sunos
10613
 
  sys_lib_dlsearch_path_spec="/usr/lib"
10614
 
  need_lib_prefix=no
10615
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10616
 
  case $host_os in
10617
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10618
 
    *)                          need_version=no  ;;
10619
 
  esac
10620
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10621
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10622
 
  shlibpath_var=LD_LIBRARY_PATH
10623
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10624
 
    case $host_os in
10625
 
      openbsd2.[89] | openbsd2.[89].*)
10626
 
        shlibpath_overrides_runpath=no
10627
 
        ;;
10628
 
      *)
10629
 
        shlibpath_overrides_runpath=yes
10630
 
        ;;
10631
 
      esac
10632
 
  else
10633
 
    shlibpath_overrides_runpath=yes
10634
 
  fi
10635
 
  ;;
10636
 
 
10637
 
os2*)
10638
 
  libname_spec='$name'
10639
 
  shrext_cmds=".dll"
10640
 
  need_lib_prefix=no
10641
 
  library_names_spec='$libname${shared_ext} $libname.a'
10642
 
  dynamic_linker='OS/2 ld.exe'
10643
 
  shlibpath_var=LIBPATH
10644
 
  ;;
10645
 
 
10646
 
osf3* | osf4* | osf5*)
10647
 
  version_type=osf
10648
 
  need_lib_prefix=no
10649
 
  need_version=no
10650
 
  soname_spec='${libname}${release}${shared_ext}$major'
10651
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652
 
  shlibpath_var=LD_LIBRARY_PATH
10653
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10654
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10655
 
  ;;
10656
 
 
10657
 
rdos*)
10658
 
  dynamic_linker=no
10659
 
  ;;
10660
 
 
10661
 
solaris*)
10662
 
  version_type=linux # correct to gnu/linux during the next big refactor
10663
 
  need_lib_prefix=no
10664
 
  need_version=no
10665
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666
 
  soname_spec='${libname}${release}${shared_ext}$major'
10667
 
  shlibpath_var=LD_LIBRARY_PATH
10668
 
  shlibpath_overrides_runpath=yes
10669
 
  hardcode_into_libs=yes
10670
 
  # ldd complains unless libraries are executable
10671
 
  postinstall_cmds='chmod +x $lib'
10672
 
  ;;
10673
 
 
10674
 
sunos4*)
10675
 
  version_type=sunos
10676
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10677
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10678
 
  shlibpath_var=LD_LIBRARY_PATH
10679
 
  shlibpath_overrides_runpath=yes
10680
 
  if test "$with_gnu_ld" = yes; then
10681
 
    need_lib_prefix=no
10682
 
  fi
10683
 
  need_version=yes
10684
 
  ;;
10685
 
 
10686
 
sysv4 | sysv4.3*)
10687
 
  version_type=linux # correct to gnu/linux during the next big refactor
10688
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689
 
  soname_spec='${libname}${release}${shared_ext}$major'
10690
 
  shlibpath_var=LD_LIBRARY_PATH
10691
 
  case $host_vendor in
10692
 
    sni)
10693
 
      shlibpath_overrides_runpath=no
10694
 
      need_lib_prefix=no
10695
 
      runpath_var=LD_RUN_PATH
10696
 
      ;;
10697
 
    siemens)
10698
 
      need_lib_prefix=no
10699
 
      ;;
10700
 
    motorola)
10701
 
      need_lib_prefix=no
10702
 
      need_version=no
10703
 
      shlibpath_overrides_runpath=no
10704
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10705
 
      ;;
10706
 
  esac
10707
 
  ;;
10708
 
 
10709
 
sysv4*MP*)
10710
 
  if test -d /usr/nec ;then
10711
 
    version_type=linux # correct to gnu/linux during the next big refactor
10712
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10713
 
    soname_spec='$libname${shared_ext}.$major'
10714
 
    shlibpath_var=LD_LIBRARY_PATH
10715
 
  fi
10716
 
  ;;
10717
 
 
10718
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10719
 
  version_type=freebsd-elf
10720
 
  need_lib_prefix=no
10721
 
  need_version=no
10722
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10723
 
  soname_spec='${libname}${release}${shared_ext}$major'
10724
 
  shlibpath_var=LD_LIBRARY_PATH
10725
 
  shlibpath_overrides_runpath=yes
10726
 
  hardcode_into_libs=yes
10727
 
  if test "$with_gnu_ld" = yes; then
10728
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10729
 
  else
10730
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10731
 
    case $host_os in
10732
 
      sco3.2v5*)
10733
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10734
 
        ;;
10735
 
    esac
10736
 
  fi
10737
 
  sys_lib_dlsearch_path_spec='/usr/lib'
10738
 
  ;;
10739
 
 
10740
 
tpf*)
10741
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10742
 
  version_type=linux # correct to gnu/linux during the next big refactor
10743
 
  need_lib_prefix=no
10744
 
  need_version=no
10745
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746
 
  shlibpath_var=LD_LIBRARY_PATH
10747
 
  shlibpath_overrides_runpath=no
10748
 
  hardcode_into_libs=yes
10749
 
  ;;
10750
 
 
10751
 
uts4*)
10752
 
  version_type=linux # correct to gnu/linux during the next big refactor
10753
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754
 
  soname_spec='${libname}${release}${shared_ext}$major'
10755
 
  shlibpath_var=LD_LIBRARY_PATH
10756
 
  ;;
10757
 
 
10758
 
*)
10759
 
  dynamic_linker=no
10760
 
  ;;
10761
 
esac
10762
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10763
 
$as_echo "$dynamic_linker" >&6; }
10764
 
test "$dynamic_linker" = no && can_build_shared=no
10765
 
 
10766
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10767
 
if test "$GCC" = yes; then
10768
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10769
 
fi
10770
 
 
10771
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10772
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10773
 
fi
10774
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10775
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10776
 
fi
10777
 
 
10778
 
 
10779
 
 
10780
 
 
10781
 
 
10782
 
 
10783
 
 
10784
 
 
10785
 
 
10786
 
 
10787
 
 
10788
 
 
10789
 
 
10790
 
 
10791
 
 
10792
 
 
10793
 
 
10794
 
 
10795
 
 
10796
 
 
10797
 
 
10798
 
 
10799
 
 
10800
 
 
10801
 
 
10802
 
 
10803
 
 
10804
 
 
10805
 
 
10806
 
 
10807
 
 
10808
 
 
10809
 
 
10810
 
 
10811
 
 
10812
 
 
10813
 
 
10814
 
 
10815
 
 
10816
 
 
10817
 
 
10818
 
 
10819
 
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
 
10829
 
 
10830
 
 
10831
 
 
10832
 
 
10833
 
 
10834
 
 
10835
 
 
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
 
10841
 
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
 
 
10859
 
 
10860
 
 
10861
 
 
10862
 
 
10863
 
 
10864
 
 
10865
 
 
10866
 
 
10867
 
 
10868
 
 
10869
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10870
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10871
 
hardcode_action=
10872
 
if test -n "$hardcode_libdir_flag_spec" ||
10873
 
   test -n "$runpath_var" ||
10874
 
   test "X$hardcode_automatic" = "Xyes" ; then
10875
 
 
10876
 
  # We can hardcode non-existent directories.
10877
 
  if test "$hardcode_direct" != no &&
10878
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10879
 
     # have to relink, otherwise we might link with an installed library
10880
 
     # when we should be linking with a yet-to-be-installed one
10881
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10882
 
     test "$hardcode_minus_L" != no; then
10883
 
    # Linking always hardcodes the temporary library directory.
10884
 
    hardcode_action=relink
10885
 
  else
10886
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10887
 
    hardcode_action=immediate
10888
 
  fi
10889
 
else
10890
 
  # We cannot hardcode anything, or else we can only hardcode existing
10891
 
  # directories.
10892
 
  hardcode_action=unsupported
10893
 
fi
10894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10895
 
$as_echo "$hardcode_action" >&6; }
10896
 
 
10897
 
if test "$hardcode_action" = relink ||
10898
 
   test "$inherit_rpath" = yes; then
10899
 
  # Fast installation is not supported
10900
 
  enable_fast_install=no
10901
 
elif test "$shlibpath_overrides_runpath" = yes ||
10902
 
     test "$enable_shared" = no; then
10903
 
  # Fast installation is not necessary
10904
 
  enable_fast_install=needless
10905
 
fi
10906
 
 
10907
 
 
10908
 
 
10909
 
 
10910
 
 
10911
 
 
10912
 
  if test "x$enable_dlopen" != xyes; then
10913
 
  enable_dlopen=unknown
10914
 
  enable_dlopen_self=unknown
10915
 
  enable_dlopen_self_static=unknown
10916
 
else
10917
 
  lt_cv_dlopen=no
10918
 
  lt_cv_dlopen_libs=
10919
 
 
10920
 
  case $host_os in
10921
 
  beos*)
10922
 
    lt_cv_dlopen="load_add_on"
10923
 
    lt_cv_dlopen_libs=
10924
 
    lt_cv_dlopen_self=yes
10925
 
    ;;
10926
 
 
10927
 
  mingw* | pw32* | cegcc*)
10928
 
    lt_cv_dlopen="LoadLibrary"
10929
 
    lt_cv_dlopen_libs=
10930
 
    ;;
10931
 
 
10932
 
  cygwin*)
10933
 
    lt_cv_dlopen="dlopen"
10934
 
    lt_cv_dlopen_libs=
10935
 
    ;;
10936
 
 
10937
 
  darwin*)
10938
 
  # if libdl is installed we need to link against it
10939
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10940
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10941
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
10942
 
  $as_echo_n "(cached) " >&6
10943
 
else
10944
 
  ac_check_lib_save_LIBS=$LIBS
10945
 
LIBS="-ldl  $LIBS"
10946
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947
 
/* end confdefs.h.  */
10948
 
 
10949
 
/* Override any GCC internal prototype to avoid an error.
10950
 
   Use char because int might match the return type of a GCC
10951
 
   builtin and then its argument prototype would still apply.  */
10952
 
#ifdef __cplusplus
10953
 
extern "C"
10954
 
#endif
10955
 
char dlopen ();
10956
 
int
10957
 
main ()
10958
 
{
10959
 
return dlopen ();
10960
 
  ;
10961
 
  return 0;
10962
 
}
10963
 
_ACEOF
10964
 
if ac_fn_c_try_link "$LINENO"; then :
10965
 
  ac_cv_lib_dl_dlopen=yes
10966
 
else
10967
 
  ac_cv_lib_dl_dlopen=no
10968
 
fi
10969
 
rm -f core conftest.err conftest.$ac_objext \
10970
 
    conftest$ac_exeext conftest.$ac_ext
10971
 
LIBS=$ac_check_lib_save_LIBS
10972
 
fi
10973
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10974
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10975
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10976
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977
 
else
10978
 
 
10979
 
    lt_cv_dlopen="dyld"
10980
 
    lt_cv_dlopen_libs=
10981
 
    lt_cv_dlopen_self=yes
10982
 
 
10983
 
fi
10984
 
 
10985
 
    ;;
10986
 
 
10987
 
  *)
10988
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10989
 
if test "x$ac_cv_func_shl_load" = xyes; then :
10990
 
  lt_cv_dlopen="shl_load"
10991
 
else
10992
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10993
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10994
 
if ${ac_cv_lib_dld_shl_load+:} false; then :
10995
 
  $as_echo_n "(cached) " >&6
10996
 
else
10997
 
  ac_check_lib_save_LIBS=$LIBS
10998
 
LIBS="-ldld  $LIBS"
10999
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000
 
/* end confdefs.h.  */
11001
 
 
11002
 
/* Override any GCC internal prototype to avoid an error.
11003
 
   Use char because int might match the return type of a GCC
11004
 
   builtin and then its argument prototype would still apply.  */
11005
 
#ifdef __cplusplus
11006
 
extern "C"
11007
 
#endif
11008
 
char shl_load ();
11009
 
int
11010
 
main ()
11011
 
{
11012
 
return shl_load ();
11013
 
  ;
11014
 
  return 0;
11015
 
}
11016
 
_ACEOF
11017
 
if ac_fn_c_try_link "$LINENO"; then :
11018
 
  ac_cv_lib_dld_shl_load=yes
11019
 
else
11020
 
  ac_cv_lib_dld_shl_load=no
11021
 
fi
11022
 
rm -f core conftest.err conftest.$ac_objext \
11023
 
    conftest$ac_exeext conftest.$ac_ext
11024
 
LIBS=$ac_check_lib_save_LIBS
11025
 
fi
11026
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11027
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11028
 
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11029
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11030
 
else
11031
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11032
 
if test "x$ac_cv_func_dlopen" = xyes; then :
11033
 
  lt_cv_dlopen="dlopen"
11034
 
else
11035
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11036
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11037
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
11038
 
  $as_echo_n "(cached) " >&6
11039
 
else
11040
 
  ac_check_lib_save_LIBS=$LIBS
11041
 
LIBS="-ldl  $LIBS"
11042
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043
 
/* end confdefs.h.  */
11044
 
 
11045
 
/* Override any GCC internal prototype to avoid an error.
11046
 
   Use char because int might match the return type of a GCC
11047
 
   builtin and then its argument prototype would still apply.  */
11048
 
#ifdef __cplusplus
11049
 
extern "C"
11050
 
#endif
11051
 
char dlopen ();
11052
 
int
11053
 
main ()
11054
 
{
11055
 
return dlopen ();
11056
 
  ;
11057
 
  return 0;
11058
 
}
11059
 
_ACEOF
11060
 
if ac_fn_c_try_link "$LINENO"; then :
11061
 
  ac_cv_lib_dl_dlopen=yes
11062
 
else
11063
 
  ac_cv_lib_dl_dlopen=no
11064
 
fi
11065
 
rm -f core conftest.err conftest.$ac_objext \
11066
 
    conftest$ac_exeext conftest.$ac_ext
11067
 
LIBS=$ac_check_lib_save_LIBS
11068
 
fi
11069
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11070
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11071
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11072
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11073
 
else
11074
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11075
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11076
 
if ${ac_cv_lib_svld_dlopen+:} false; then :
11077
 
  $as_echo_n "(cached) " >&6
11078
 
else
11079
 
  ac_check_lib_save_LIBS=$LIBS
11080
 
LIBS="-lsvld  $LIBS"
11081
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082
 
/* end confdefs.h.  */
11083
 
 
11084
 
/* Override any GCC internal prototype to avoid an error.
11085
 
   Use char because int might match the return type of a GCC
11086
 
   builtin and then its argument prototype would still apply.  */
11087
 
#ifdef __cplusplus
11088
 
extern "C"
11089
 
#endif
11090
 
char dlopen ();
11091
 
int
11092
 
main ()
11093
 
{
11094
 
return dlopen ();
11095
 
  ;
11096
 
  return 0;
11097
 
}
11098
 
_ACEOF
11099
 
if ac_fn_c_try_link "$LINENO"; then :
11100
 
  ac_cv_lib_svld_dlopen=yes
11101
 
else
11102
 
  ac_cv_lib_svld_dlopen=no
11103
 
fi
11104
 
rm -f core conftest.err conftest.$ac_objext \
11105
 
    conftest$ac_exeext conftest.$ac_ext
11106
 
LIBS=$ac_check_lib_save_LIBS
11107
 
fi
11108
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11109
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11110
 
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11111
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11112
 
else
11113
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11114
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11115
 
if ${ac_cv_lib_dld_dld_link+:} false; then :
11116
 
  $as_echo_n "(cached) " >&6
11117
 
else
11118
 
  ac_check_lib_save_LIBS=$LIBS
11119
 
LIBS="-ldld  $LIBS"
11120
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121
 
/* end confdefs.h.  */
11122
 
 
11123
 
/* Override any GCC internal prototype to avoid an error.
11124
 
   Use char because int might match the return type of a GCC
11125
 
   builtin and then its argument prototype would still apply.  */
11126
 
#ifdef __cplusplus
11127
 
extern "C"
11128
 
#endif
11129
 
char dld_link ();
11130
 
int
11131
 
main ()
11132
 
{
11133
 
return dld_link ();
11134
 
  ;
11135
 
  return 0;
11136
 
}
11137
 
_ACEOF
11138
 
if ac_fn_c_try_link "$LINENO"; then :
11139
 
  ac_cv_lib_dld_dld_link=yes
11140
 
else
11141
 
  ac_cv_lib_dld_dld_link=no
11142
 
fi
11143
 
rm -f core conftest.err conftest.$ac_objext \
11144
 
    conftest$ac_exeext conftest.$ac_ext
11145
 
LIBS=$ac_check_lib_save_LIBS
11146
 
fi
11147
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11148
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11149
 
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11150
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11151
 
fi
11152
 
 
11153
 
 
11154
 
fi
11155
 
 
11156
 
 
11157
 
fi
11158
 
 
11159
 
 
11160
 
fi
11161
 
 
11162
 
 
11163
 
fi
11164
 
 
11165
 
 
11166
 
fi
11167
 
 
11168
 
    ;;
11169
 
  esac
11170
 
 
11171
 
  if test "x$lt_cv_dlopen" != xno; then
11172
 
    enable_dlopen=yes
11173
 
  else
11174
 
    enable_dlopen=no
11175
 
  fi
11176
 
 
11177
 
  case $lt_cv_dlopen in
11178
 
  dlopen)
11179
 
    save_CPPFLAGS="$CPPFLAGS"
11180
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11181
 
 
11182
 
    save_LDFLAGS="$LDFLAGS"
11183
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11184
 
 
11185
 
    save_LIBS="$LIBS"
11186
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
11187
 
 
11188
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11189
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11190
 
if ${lt_cv_dlopen_self+:} false; then :
11191
 
  $as_echo_n "(cached) " >&6
11192
 
else
11193
 
          if test "$cross_compiling" = yes; then :
11194
 
  lt_cv_dlopen_self=cross
11195
 
else
11196
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197
 
  lt_status=$lt_dlunknown
11198
 
  cat > conftest.$ac_ext <<_LT_EOF
11199
 
#line $LINENO "configure"
11200
 
#include "confdefs.h"
11201
 
 
11202
 
#if HAVE_DLFCN_H
11203
 
#include <dlfcn.h>
11204
 
#endif
11205
 
 
11206
 
#include <stdio.h>
11207
 
 
11208
 
#ifdef RTLD_GLOBAL
11209
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11210
 
#else
11211
 
#  ifdef DL_GLOBAL
11212
 
#    define LT_DLGLOBAL         DL_GLOBAL
11213
 
#  else
11214
 
#    define LT_DLGLOBAL         0
11215
 
#  endif
11216
 
#endif
11217
 
 
11218
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219
 
   find out it does not work in some platform. */
11220
 
#ifndef LT_DLLAZY_OR_NOW
11221
 
#  ifdef RTLD_LAZY
11222
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11223
 
#  else
11224
 
#    ifdef DL_LAZY
11225
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11226
 
#    else
11227
 
#      ifdef RTLD_NOW
11228
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11229
 
#      else
11230
 
#        ifdef DL_NOW
11231
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11232
 
#        else
11233
 
#          define LT_DLLAZY_OR_NOW      0
11234
 
#        endif
11235
 
#      endif
11236
 
#    endif
11237
 
#  endif
11238
 
#endif
11239
 
 
11240
 
/* When -fvisbility=hidden is used, assume the code has been annotated
11241
 
   correspondingly for the symbols needed.  */
11242
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11243
 
int fnord () __attribute__((visibility("default")));
11244
 
#endif
11245
 
 
11246
 
int fnord () { return 42; }
11247
 
int main ()
11248
 
{
11249
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250
 
  int status = $lt_dlunknown;
11251
 
 
11252
 
  if (self)
11253
 
    {
11254
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11255
 
      else
11256
 
        {
11257
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11258
 
          else puts (dlerror ());
11259
 
        }
11260
 
      /* dlclose (self); */
11261
 
    }
11262
 
  else
11263
 
    puts (dlerror ());
11264
 
 
11265
 
  return status;
11266
 
}
11267
 
_LT_EOF
11268
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11269
 
  (eval $ac_link) 2>&5
11270
 
  ac_status=$?
11271
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11272
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11273
 
    (./conftest; exit; ) >&5 2>/dev/null
11274
 
    lt_status=$?
11275
 
    case x$lt_status in
11276
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11277
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11278
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11279
 
    esac
11280
 
  else :
11281
 
    # compilation failed
11282
 
    lt_cv_dlopen_self=no
11283
 
  fi
11284
 
fi
11285
 
rm -fr conftest*
11286
 
 
11287
 
 
11288
 
fi
11289
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11290
 
$as_echo "$lt_cv_dlopen_self" >&6; }
11291
 
 
11292
 
    if test "x$lt_cv_dlopen_self" = xyes; then
11293
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11294
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11295
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11296
 
if ${lt_cv_dlopen_self_static+:} false; then :
11297
 
  $as_echo_n "(cached) " >&6
11298
 
else
11299
 
          if test "$cross_compiling" = yes; then :
11300
 
  lt_cv_dlopen_self_static=cross
11301
 
else
11302
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11303
 
  lt_status=$lt_dlunknown
11304
 
  cat > conftest.$ac_ext <<_LT_EOF
11305
 
#line $LINENO "configure"
11306
 
#include "confdefs.h"
11307
 
 
11308
 
#if HAVE_DLFCN_H
11309
 
#include <dlfcn.h>
11310
 
#endif
11311
 
 
11312
 
#include <stdio.h>
11313
 
 
11314
 
#ifdef RTLD_GLOBAL
11315
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11316
 
#else
11317
 
#  ifdef DL_GLOBAL
11318
 
#    define LT_DLGLOBAL         DL_GLOBAL
11319
 
#  else
11320
 
#    define LT_DLGLOBAL         0
11321
 
#  endif
11322
 
#endif
11323
 
 
11324
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11325
 
   find out it does not work in some platform. */
11326
 
#ifndef LT_DLLAZY_OR_NOW
11327
 
#  ifdef RTLD_LAZY
11328
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11329
 
#  else
11330
 
#    ifdef DL_LAZY
11331
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11332
 
#    else
11333
 
#      ifdef RTLD_NOW
11334
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11335
 
#      else
11336
 
#        ifdef DL_NOW
11337
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11338
 
#        else
11339
 
#          define LT_DLLAZY_OR_NOW      0
11340
 
#        endif
11341
 
#      endif
11342
 
#    endif
11343
 
#  endif
11344
 
#endif
11345
 
 
11346
 
/* When -fvisbility=hidden is used, assume the code has been annotated
11347
 
   correspondingly for the symbols needed.  */
11348
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11349
 
int fnord () __attribute__((visibility("default")));
11350
 
#endif
11351
 
 
11352
 
int fnord () { return 42; }
11353
 
int main ()
11354
 
{
11355
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11356
 
  int status = $lt_dlunknown;
11357
 
 
11358
 
  if (self)
11359
 
    {
11360
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11361
 
      else
11362
 
        {
11363
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11364
 
          else puts (dlerror ());
11365
 
        }
11366
 
      /* dlclose (self); */
11367
 
    }
11368
 
  else
11369
 
    puts (dlerror ());
11370
 
 
11371
 
  return status;
11372
 
}
11373
 
_LT_EOF
11374
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11375
 
  (eval $ac_link) 2>&5
11376
 
  ac_status=$?
11377
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11378
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11379
 
    (./conftest; exit; ) >&5 2>/dev/null
11380
 
    lt_status=$?
11381
 
    case x$lt_status in
11382
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11383
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11384
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11385
 
    esac
11386
 
  else :
11387
 
    # compilation failed
11388
 
    lt_cv_dlopen_self_static=no
11389
 
  fi
11390
 
fi
11391
 
rm -fr conftest*
11392
 
 
11393
 
 
11394
 
fi
11395
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11396
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11397
 
    fi
11398
 
 
11399
 
    CPPFLAGS="$save_CPPFLAGS"
11400
 
    LDFLAGS="$save_LDFLAGS"
11401
 
    LIBS="$save_LIBS"
11402
 
    ;;
11403
 
  esac
11404
 
 
11405
 
  case $lt_cv_dlopen_self in
11406
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11407
 
  *) enable_dlopen_self=unknown ;;
11408
 
  esac
11409
 
 
11410
 
  case $lt_cv_dlopen_self_static in
11411
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11412
 
  *) enable_dlopen_self_static=unknown ;;
11413
 
  esac
11414
 
fi
11415
 
 
11416
 
 
11417
 
 
11418
 
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
 
 
11427
 
 
11428
 
 
11429
 
 
11430
 
 
11431
 
 
11432
 
striplib=
11433
 
old_striplib=
11434
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11435
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11436
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11437
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11438
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11439
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440
 
$as_echo "yes" >&6; }
11441
 
else
11442
 
# FIXME - insert some real tests, host_os isn't really good enough
11443
 
  case $host_os in
11444
 
  darwin*)
11445
 
    if test -n "$STRIP" ; then
11446
 
      striplib="$STRIP -x"
11447
 
      old_striplib="$STRIP -S"
11448
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11449
 
$as_echo "yes" >&6; }
11450
 
    else
11451
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452
 
$as_echo "no" >&6; }
11453
 
    fi
11454
 
    ;;
11455
 
  *)
11456
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457
 
$as_echo "no" >&6; }
11458
 
    ;;
11459
 
  esac
11460
 
fi
11461
 
 
11462
 
 
11463
 
 
11464
 
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
 
 
11471
 
 
11472
 
 
11473
 
  # Report which library types will actually be built
11474
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11475
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11476
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11477
 
$as_echo "$can_build_shared" >&6; }
11478
 
 
11479
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11480
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11481
 
  test "$can_build_shared" = "no" && enable_shared=no
11482
 
 
11483
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11484
 
  # are all built from PIC.
11485
 
  case $host_os in
11486
 
  aix3*)
11487
 
    test "$enable_shared" = yes && enable_static=no
11488
 
    if test -n "$RANLIB"; then
11489
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11490
 
      postinstall_cmds='$RANLIB $lib'
11491
 
    fi
11492
 
    ;;
11493
 
 
11494
 
  aix[4-9]*)
11495
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11496
 
      test "$enable_shared" = yes && enable_static=no
11497
 
    fi
11498
 
    ;;
11499
 
  esac
11500
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11501
 
$as_echo "$enable_shared" >&6; }
11502
 
 
11503
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11504
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11505
 
  # Make sure either enable_shared or enable_static is yes.
11506
 
  test "$enable_shared" = yes || enable_static=yes
11507
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11508
 
$as_echo "$enable_static" >&6; }
11509
 
 
11510
 
 
11511
 
 
11512
 
 
11513
 
fi
11514
 
ac_ext=c
11515
 
ac_cpp='$CPP $CPPFLAGS'
11516
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11519
 
 
11520
 
CC="$lt_save_CC"
11521
 
 
11522
 
 
11523
 
 
11524
 
 
11525
 
 
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
 
11531
 
 
11532
 
 
11533
 
 
11534
 
 
11535
 
 
11536
 
        ac_config_commands="$ac_config_commands libtool"
11537
 
 
11538
 
 
11539
 
 
11540
 
 
11541
 
# Only expand once:
11542
 
 
11543
 
 
11544
 
 
11545
 
# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11546
 
 
11547
 
 
11548
 
 
11549
 
 
11550
 
 
11551
 
 
11552
 
 
11553
 
 
11554
 
 
11555
 
 
11556
 
 
11557
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11558
 
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11559
 
if ${ac_cv_prog_cc_c99+:} false; then :
11560
 
  $as_echo_n "(cached) " >&6
11561
 
else
11562
 
  ac_cv_prog_cc_c99=no
11563
 
ac_save_CC=$CC
11564
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565
 
/* end confdefs.h.  */
11566
 
#include <stdarg.h>
11567
 
#include <stdbool.h>
11568
 
#include <stdlib.h>
11569
 
#include <wchar.h>
11570
 
#include <stdio.h>
11571
 
 
11572
 
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11573
 
#define debug(...) fprintf (stderr, __VA_ARGS__)
11574
 
#define showlist(...) puts (#__VA_ARGS__)
11575
 
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11576
 
static void
11577
 
test_varargs_macros (void)
11578
 
{
11579
 
  int x = 1234;
11580
 
  int y = 5678;
11581
 
  debug ("Flag");
11582
 
  debug ("X = %d\n", x);
11583
 
  showlist (The first, second, and third items.);
11584
 
  report (x>y, "x is %d but y is %d", x, y);
11585
 
}
11586
 
 
11587
 
// Check long long types.
11588
 
#define BIG64 18446744073709551615ull
11589
 
#define BIG32 4294967295ul
11590
 
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11591
 
#if !BIG_OK
11592
 
  your preprocessor is broken;
11593
 
#endif
11594
 
#if BIG_OK
11595
 
#else
11596
 
  your preprocessor is broken;
11597
 
#endif
11598
 
static long long int bignum = -9223372036854775807LL;
11599
 
static unsigned long long int ubignum = BIG64;
11600
 
 
11601
 
struct incomplete_array
11602
 
{
11603
 
  int datasize;
11604
 
  double data[];
11605
 
};
11606
 
 
11607
 
struct named_init {
11608
 
  int number;
11609
 
  const wchar_t *name;
11610
 
  double average;
11611
 
};
11612
 
 
11613
 
typedef const char *ccp;
11614
 
 
11615
 
static inline int
11616
 
test_restrict (ccp restrict text)
11617
 
{
11618
 
  // See if C++-style comments work.
11619
 
  // Iterate through items via the restricted pointer.
11620
 
  // Also check for declarations in for loops.
11621
 
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11622
 
    continue;
11623
 
  return 0;
11624
 
}
11625
 
 
11626
 
// Check varargs and va_copy.
11627
 
static void
11628
 
test_varargs (const char *format, ...)
11629
 
{
11630
 
  va_list args;
11631
 
  va_start (args, format);
11632
 
  va_list args_copy;
11633
 
  va_copy (args_copy, args);
11634
 
 
11635
 
  const char *str;
11636
 
  int number;
11637
 
  float fnumber;
11638
 
 
11639
 
  while (*format)
11640
 
    {
11641
 
      switch (*format++)
11642
 
        {
11643
 
        case 's': // string
11644
 
          str = va_arg (args_copy, const char *);
11645
 
          break;
11646
 
        case 'd': // int
11647
 
          number = va_arg (args_copy, int);
11648
 
          break;
11649
 
        case 'f': // float
11650
 
          fnumber = va_arg (args_copy, double);
11651
 
          break;
11652
 
        default:
11653
 
          break;
11654
 
        }
11655
 
    }
11656
 
  va_end (args_copy);
11657
 
  va_end (args);
11658
 
}
11659
 
 
11660
 
int
11661
 
main ()
11662
 
{
11663
 
 
11664
 
  // Check bool.
11665
 
  _Bool success = false;
11666
 
 
11667
 
  // Check restrict.
11668
 
  if (test_restrict ("String literal") == 0)
11669
 
    success = true;
11670
 
  char *restrict newvar = "Another string";
11671
 
 
11672
 
  // Check varargs.
11673
 
  test_varargs ("s, d' f .", "string", 65, 34.234);
11674
 
  test_varargs_macros ();
11675
 
 
11676
 
  // Check flexible array members.
11677
 
  struct incomplete_array *ia =
11678
 
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11679
 
  ia->datasize = 10;
11680
 
  for (int i = 0; i < ia->datasize; ++i)
11681
 
    ia->data[i] = i * 1.234;
11682
 
 
11683
 
  // Check named initializers.
11684
 
  struct named_init ni = {
11685
 
    .number = 34,
11686
 
    .name = L"Test wide string",
11687
 
    .average = 543.34343,
11688
 
  };
11689
 
 
11690
 
  ni.number = 58;
11691
 
 
11692
 
  int dynamic_array[ni.number];
11693
 
  dynamic_array[ni.number - 1] = 543;
11694
 
 
11695
 
  // work around unused variable warnings
11696
 
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11697
 
          || dynamic_array[ni.number - 1] != 543);
11698
 
 
11699
 
  ;
11700
 
  return 0;
11701
 
}
11702
 
_ACEOF
11703
 
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11704
 
do
11705
 
  CC="$ac_save_CC $ac_arg"
11706
 
  if ac_fn_c_try_compile "$LINENO"; then :
11707
 
  ac_cv_prog_cc_c99=$ac_arg
11708
 
fi
11709
 
rm -f core conftest.err conftest.$ac_objext
11710
 
  test "x$ac_cv_prog_cc_c99" != "xno" && break
11711
 
done
11712
 
rm -f conftest.$ac_ext
11713
 
CC=$ac_save_CC
11714
 
 
11715
 
fi
11716
 
# AC_CACHE_VAL
11717
 
case "x$ac_cv_prog_cc_c99" in
11718
 
  x)
11719
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11720
 
$as_echo "none needed" >&6; } ;;
11721
 
  xno)
11722
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11723
 
$as_echo "unsupported" >&6; } ;;
11724
 
  *)
11725
 
    CC="$CC $ac_cv_prog_cc_c99"
11726
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11727
 
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11728
 
esac
11729
 
if test "x$ac_cv_prog_cc_c99" != xno; then :
11730
 
 
11731
 
fi
11732
 
 
11733
 
 
11734
 
 
11735
 
 
11736
 
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11737
 
if test "x$ac_cv_have_decl___clang__" = xyes; then :
11738
 
  CLANGCC="yes"
11739
 
else
11740
 
  CLANGCC="no"
11741
 
fi
11742
 
 
11743
 
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11744
 
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11745
 
  INTELCC="yes"
11746
 
else
11747
 
  INTELCC="no"
11748
 
fi
11749
 
 
11750
 
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11751
 
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11752
 
  SUNCC="yes"
11753
 
else
11754
 
  SUNCC="no"
11755
 
fi
11756
 
 
11757
 
 
11758
 
 
11759
 
 
11760
 
 
11761
 
 
11762
 
 
11763
 
 
11764
 
 
11765
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11766
 
        if test -n "$ac_tool_prefix"; then
11767
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11768
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11769
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770
 
$as_echo_n "checking for $ac_word... " >&6; }
11771
 
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11772
 
  $as_echo_n "(cached) " >&6
11773
 
else
11774
 
  case $PKG_CONFIG in
11775
 
  [\\/]* | ?:[\\/]*)
11776
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11777
 
  ;;
11778
 
  *)
11779
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780
 
for as_dir in $PATH
11781
 
do
11782
 
  IFS=$as_save_IFS
11783
 
  test -z "$as_dir" && as_dir=.
11784
 
    for ac_exec_ext in '' $ac_executable_extensions; do
11785
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11786
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11787
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788
 
    break 2
11789
 
  fi
11790
 
done
11791
 
  done
11792
 
IFS=$as_save_IFS
11793
 
 
11794
 
  ;;
11795
 
esac
11796
 
fi
11797
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11798
 
if test -n "$PKG_CONFIG"; then
11799
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11800
 
$as_echo "$PKG_CONFIG" >&6; }
11801
 
else
11802
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803
 
$as_echo "no" >&6; }
11804
 
fi
11805
 
 
11806
 
 
11807
 
fi
11808
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
11809
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
11810
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
11811
 
set dummy pkg-config; ac_word=$2
11812
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813
 
$as_echo_n "checking for $ac_word... " >&6; }
11814
 
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11815
 
  $as_echo_n "(cached) " >&6
11816
 
else
11817
 
  case $ac_pt_PKG_CONFIG in
11818
 
  [\\/]* | ?:[\\/]*)
11819
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11820
 
  ;;
11821
 
  *)
11822
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823
 
for as_dir in $PATH
11824
 
do
11825
 
  IFS=$as_save_IFS
11826
 
  test -z "$as_dir" && as_dir=.
11827
 
    for ac_exec_ext in '' $ac_executable_extensions; do
11828
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11829
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11830
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831
 
    break 2
11832
 
  fi
11833
 
done
11834
 
  done
11835
 
IFS=$as_save_IFS
11836
 
 
11837
 
  ;;
11838
 
esac
11839
 
fi
11840
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11841
 
if test -n "$ac_pt_PKG_CONFIG"; then
11842
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11843
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11844
 
else
11845
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846
 
$as_echo "no" >&6; }
11847
 
fi
11848
 
 
11849
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
11850
 
    PKG_CONFIG=""
11851
 
  else
11852
 
    case $cross_compiling:$ac_tool_warned in
11853
 
yes:)
11854
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856
 
ac_tool_warned=yes ;;
11857
 
esac
11858
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
11859
 
  fi
11860
 
else
11861
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11862
 
fi
11863
 
 
11864
 
fi
11865
 
if test -n "$PKG_CONFIG"; then
11866
 
        _pkg_min_version=0.9.0
11867
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11868
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11869
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11870
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871
 
$as_echo "yes" >&6; }
11872
 
        else
11873
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874
 
$as_echo "no" >&6; }
11875
 
                PKG_CONFIG=""
11876
 
        fi
11877
 
fi
11878
 
 
11879
 
 
11880
 
 
11881
 
 
11882
 
 
11883
 
# Check whether --enable-selective-werror was given.
11884
 
if test "${enable_selective_werror+set}" = set; then :
11885
 
  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11886
 
else
11887
 
  SELECTIVE_WERROR=yes
11888
 
fi
11889
 
 
11890
 
 
11891
 
# -v is too short to test reliably with XORG_TESTSET_CFLAG
11892
 
if test "x$SUNCC" = "xyes"; then
11893
 
    BASE_CFLAGS="-v"
11894
 
else
11895
 
    BASE_CFLAGS=""
11896
 
fi
11897
 
 
11898
 
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11899
 
 
11900
 
 
11901
 
 
11902
 
 
11903
 
 
11904
 
xorg_testset_save_CFLAGS="$CFLAGS"
11905
 
 
11906
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11907
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11908
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11909
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11910
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911
 
/* end confdefs.h.  */
11912
 
int i;
11913
 
_ACEOF
11914
 
if ac_fn_c_try_compile "$LINENO"; then :
11915
 
  xorg_testset_unknown_warning_option=yes
11916
 
else
11917
 
  xorg_testset_unknown_warning_option=no
11918
 
fi
11919
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
11921
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
11922
 
        CFLAGS="$xorg_testset_save_CFLAGS"
11923
 
fi
11924
 
 
11925
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11926
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11927
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11928
 
        fi
11929
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11930
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11931
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11932
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933
 
/* end confdefs.h.  */
11934
 
int i;
11935
 
_ACEOF
11936
 
if ac_fn_c_try_compile "$LINENO"; then :
11937
 
  xorg_testset_unused_command_line_argument=yes
11938
 
else
11939
 
  xorg_testset_unused_command_line_argument=no
11940
 
fi
11941
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
11943
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
11944
 
        CFLAGS="$xorg_testset_save_CFLAGS"
11945
 
fi
11946
 
 
11947
 
found="no"
11948
 
 
11949
 
        if test $found = "no" ; then
11950
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11951
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11952
 
                fi
11953
 
 
11954
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11955
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11956
 
                fi
11957
 
 
11958
 
                CFLAGS="$CFLAGS -Wall"
11959
 
 
11960
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11961
 
$as_echo_n "checking if $CC supports -Wall... " >&6; }
11962
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963
 
/* end confdefs.h.  */
11964
 
int i;
11965
 
int
11966
 
main ()
11967
 
{
11968
 
 
11969
 
  ;
11970
 
  return 0;
11971
 
}
11972
 
_ACEOF
11973
 
if ac_fn_c_try_link "$LINENO"; then :
11974
 
  supported=yes
11975
 
else
11976
 
  supported=no
11977
 
fi
11978
 
rm -f core conftest.err conftest.$ac_objext \
11979
 
    conftest$ac_exeext conftest.$ac_ext
11980
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11981
 
$as_echo "$supported" >&6; }
11982
 
                CFLAGS="$xorg_testset_save_CFLAGS"
11983
 
 
11984
 
                if test "$supported" = "yes" ; then
11985
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wall"
11986
 
                        found="yes"
11987
 
                fi
11988
 
        fi
11989
 
 
11990
 
 
11991
 
 
11992
 
 
11993
 
 
11994
 
 
11995
 
 
11996
 
xorg_testset_save_CFLAGS="$CFLAGS"
11997
 
 
11998
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11999
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12000
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12001
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12002
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003
 
/* end confdefs.h.  */
12004
 
int i;
12005
 
_ACEOF
12006
 
if ac_fn_c_try_compile "$LINENO"; then :
12007
 
  xorg_testset_unknown_warning_option=yes
12008
 
else
12009
 
  xorg_testset_unknown_warning_option=no
12010
 
fi
12011
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12013
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12014
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12015
 
fi
12016
 
 
12017
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12018
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12019
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12020
 
        fi
12021
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12022
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12023
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12024
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025
 
/* end confdefs.h.  */
12026
 
int i;
12027
 
_ACEOF
12028
 
if ac_fn_c_try_compile "$LINENO"; then :
12029
 
  xorg_testset_unused_command_line_argument=yes
12030
 
else
12031
 
  xorg_testset_unused_command_line_argument=no
12032
 
fi
12033
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12035
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12036
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12037
 
fi
12038
 
 
12039
 
found="no"
12040
 
 
12041
 
        if test $found = "no" ; then
12042
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12043
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12044
 
                fi
12045
 
 
12046
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12047
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12048
 
                fi
12049
 
 
12050
 
                CFLAGS="$CFLAGS -Wpointer-arith"
12051
 
 
12052
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12053
 
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12054
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055
 
/* end confdefs.h.  */
12056
 
int i;
12057
 
int
12058
 
main ()
12059
 
{
12060
 
 
12061
 
  ;
12062
 
  return 0;
12063
 
}
12064
 
_ACEOF
12065
 
if ac_fn_c_try_link "$LINENO"; then :
12066
 
  supported=yes
12067
 
else
12068
 
  supported=no
12069
 
fi
12070
 
rm -f core conftest.err conftest.$ac_objext \
12071
 
    conftest$ac_exeext conftest.$ac_ext
12072
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12073
 
$as_echo "$supported" >&6; }
12074
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12075
 
 
12076
 
                if test "$supported" = "yes" ; then
12077
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12078
 
                        found="yes"
12079
 
                fi
12080
 
        fi
12081
 
 
12082
 
 
12083
 
 
12084
 
 
12085
 
 
12086
 
 
12087
 
 
12088
 
xorg_testset_save_CFLAGS="$CFLAGS"
12089
 
 
12090
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12091
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12092
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12093
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12094
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095
 
/* end confdefs.h.  */
12096
 
int i;
12097
 
_ACEOF
12098
 
if ac_fn_c_try_compile "$LINENO"; then :
12099
 
  xorg_testset_unknown_warning_option=yes
12100
 
else
12101
 
  xorg_testset_unknown_warning_option=no
12102
 
fi
12103
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12105
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12106
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12107
 
fi
12108
 
 
12109
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12110
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12111
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12112
 
        fi
12113
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12114
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12115
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12116
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117
 
/* end confdefs.h.  */
12118
 
int i;
12119
 
_ACEOF
12120
 
if ac_fn_c_try_compile "$LINENO"; then :
12121
 
  xorg_testset_unused_command_line_argument=yes
12122
 
else
12123
 
  xorg_testset_unused_command_line_argument=no
12124
 
fi
12125
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12127
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12128
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12129
 
fi
12130
 
 
12131
 
found="no"
12132
 
 
12133
 
        if test $found = "no" ; then
12134
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12135
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12136
 
                fi
12137
 
 
12138
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12139
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12140
 
                fi
12141
 
 
12142
 
                CFLAGS="$CFLAGS -Wstrict-prototypes"
12143
 
 
12144
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12145
 
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12146
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147
 
/* end confdefs.h.  */
12148
 
int i;
12149
 
int
12150
 
main ()
12151
 
{
12152
 
 
12153
 
  ;
12154
 
  return 0;
12155
 
}
12156
 
_ACEOF
12157
 
if ac_fn_c_try_link "$LINENO"; then :
12158
 
  supported=yes
12159
 
else
12160
 
  supported=no
12161
 
fi
12162
 
rm -f core conftest.err conftest.$ac_objext \
12163
 
    conftest$ac_exeext conftest.$ac_ext
12164
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12165
 
$as_echo "$supported" >&6; }
12166
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12167
 
 
12168
 
                if test "$supported" = "yes" ; then
12169
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12170
 
                        found="yes"
12171
 
                fi
12172
 
        fi
12173
 
 
12174
 
 
12175
 
 
12176
 
 
12177
 
 
12178
 
 
12179
 
 
12180
 
xorg_testset_save_CFLAGS="$CFLAGS"
12181
 
 
12182
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12183
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12184
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12185
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12186
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187
 
/* end confdefs.h.  */
12188
 
int i;
12189
 
_ACEOF
12190
 
if ac_fn_c_try_compile "$LINENO"; then :
12191
 
  xorg_testset_unknown_warning_option=yes
12192
 
else
12193
 
  xorg_testset_unknown_warning_option=no
12194
 
fi
12195
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12196
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12197
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12198
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12199
 
fi
12200
 
 
12201
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12202
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12203
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12204
 
        fi
12205
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12206
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12207
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12208
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209
 
/* end confdefs.h.  */
12210
 
int i;
12211
 
_ACEOF
12212
 
if ac_fn_c_try_compile "$LINENO"; then :
12213
 
  xorg_testset_unused_command_line_argument=yes
12214
 
else
12215
 
  xorg_testset_unused_command_line_argument=no
12216
 
fi
12217
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12219
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12220
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12221
 
fi
12222
 
 
12223
 
found="no"
12224
 
 
12225
 
        if test $found = "no" ; then
12226
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12227
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12228
 
                fi
12229
 
 
12230
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12231
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12232
 
                fi
12233
 
 
12234
 
                CFLAGS="$CFLAGS -Wmissing-prototypes"
12235
 
 
12236
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12237
 
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12238
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239
 
/* end confdefs.h.  */
12240
 
int i;
12241
 
int
12242
 
main ()
12243
 
{
12244
 
 
12245
 
  ;
12246
 
  return 0;
12247
 
}
12248
 
_ACEOF
12249
 
if ac_fn_c_try_link "$LINENO"; then :
12250
 
  supported=yes
12251
 
else
12252
 
  supported=no
12253
 
fi
12254
 
rm -f core conftest.err conftest.$ac_objext \
12255
 
    conftest$ac_exeext conftest.$ac_ext
12256
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12257
 
$as_echo "$supported" >&6; }
12258
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12259
 
 
12260
 
                if test "$supported" = "yes" ; then
12261
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12262
 
                        found="yes"
12263
 
                fi
12264
 
        fi
12265
 
 
12266
 
 
12267
 
 
12268
 
 
12269
 
 
12270
 
 
12271
 
 
12272
 
xorg_testset_save_CFLAGS="$CFLAGS"
12273
 
 
12274
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12275
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12276
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12277
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12278
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279
 
/* end confdefs.h.  */
12280
 
int i;
12281
 
_ACEOF
12282
 
if ac_fn_c_try_compile "$LINENO"; then :
12283
 
  xorg_testset_unknown_warning_option=yes
12284
 
else
12285
 
  xorg_testset_unknown_warning_option=no
12286
 
fi
12287
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12289
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12290
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12291
 
fi
12292
 
 
12293
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12294
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12295
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12296
 
        fi
12297
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12298
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12299
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12300
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301
 
/* end confdefs.h.  */
12302
 
int i;
12303
 
_ACEOF
12304
 
if ac_fn_c_try_compile "$LINENO"; then :
12305
 
  xorg_testset_unused_command_line_argument=yes
12306
 
else
12307
 
  xorg_testset_unused_command_line_argument=no
12308
 
fi
12309
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12311
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12312
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12313
 
fi
12314
 
 
12315
 
found="no"
12316
 
 
12317
 
        if test $found = "no" ; then
12318
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12319
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12320
 
                fi
12321
 
 
12322
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12323
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12324
 
                fi
12325
 
 
12326
 
                CFLAGS="$CFLAGS -Wmissing-declarations"
12327
 
 
12328
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12329
 
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12330
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331
 
/* end confdefs.h.  */
12332
 
int i;
12333
 
int
12334
 
main ()
12335
 
{
12336
 
 
12337
 
  ;
12338
 
  return 0;
12339
 
}
12340
 
_ACEOF
12341
 
if ac_fn_c_try_link "$LINENO"; then :
12342
 
  supported=yes
12343
 
else
12344
 
  supported=no
12345
 
fi
12346
 
rm -f core conftest.err conftest.$ac_objext \
12347
 
    conftest$ac_exeext conftest.$ac_ext
12348
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12349
 
$as_echo "$supported" >&6; }
12350
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12351
 
 
12352
 
                if test "$supported" = "yes" ; then
12353
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12354
 
                        found="yes"
12355
 
                fi
12356
 
        fi
12357
 
 
12358
 
 
12359
 
 
12360
 
 
12361
 
 
12362
 
 
12363
 
 
12364
 
xorg_testset_save_CFLAGS="$CFLAGS"
12365
 
 
12366
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12367
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12368
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12369
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12370
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371
 
/* end confdefs.h.  */
12372
 
int i;
12373
 
_ACEOF
12374
 
if ac_fn_c_try_compile "$LINENO"; then :
12375
 
  xorg_testset_unknown_warning_option=yes
12376
 
else
12377
 
  xorg_testset_unknown_warning_option=no
12378
 
fi
12379
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12381
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12382
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12383
 
fi
12384
 
 
12385
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12386
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12387
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12388
 
        fi
12389
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12390
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12391
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12392
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393
 
/* end confdefs.h.  */
12394
 
int i;
12395
 
_ACEOF
12396
 
if ac_fn_c_try_compile "$LINENO"; then :
12397
 
  xorg_testset_unused_command_line_argument=yes
12398
 
else
12399
 
  xorg_testset_unused_command_line_argument=no
12400
 
fi
12401
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12403
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12404
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12405
 
fi
12406
 
 
12407
 
found="no"
12408
 
 
12409
 
        if test $found = "no" ; then
12410
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12411
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12412
 
                fi
12413
 
 
12414
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12415
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12416
 
                fi
12417
 
 
12418
 
                CFLAGS="$CFLAGS -Wnested-externs"
12419
 
 
12420
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12421
 
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12422
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423
 
/* end confdefs.h.  */
12424
 
int i;
12425
 
int
12426
 
main ()
12427
 
{
12428
 
 
12429
 
  ;
12430
 
  return 0;
12431
 
}
12432
 
_ACEOF
12433
 
if ac_fn_c_try_link "$LINENO"; then :
12434
 
  supported=yes
12435
 
else
12436
 
  supported=no
12437
 
fi
12438
 
rm -f core conftest.err conftest.$ac_objext \
12439
 
    conftest$ac_exeext conftest.$ac_ext
12440
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12441
 
$as_echo "$supported" >&6; }
12442
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12443
 
 
12444
 
                if test "$supported" = "yes" ; then
12445
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12446
 
                        found="yes"
12447
 
                fi
12448
 
        fi
12449
 
 
12450
 
 
12451
 
 
12452
 
 
12453
 
 
12454
 
 
12455
 
 
12456
 
xorg_testset_save_CFLAGS="$CFLAGS"
12457
 
 
12458
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12459
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12461
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12462
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463
 
/* end confdefs.h.  */
12464
 
int i;
12465
 
_ACEOF
12466
 
if ac_fn_c_try_compile "$LINENO"; then :
12467
 
  xorg_testset_unknown_warning_option=yes
12468
 
else
12469
 
  xorg_testset_unknown_warning_option=no
12470
 
fi
12471
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12473
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12474
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12475
 
fi
12476
 
 
12477
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12478
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12479
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12480
 
        fi
12481
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12482
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12483
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12484
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485
 
/* end confdefs.h.  */
12486
 
int i;
12487
 
_ACEOF
12488
 
if ac_fn_c_try_compile "$LINENO"; then :
12489
 
  xorg_testset_unused_command_line_argument=yes
12490
 
else
12491
 
  xorg_testset_unused_command_line_argument=no
12492
 
fi
12493
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12495
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12496
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12497
 
fi
12498
 
 
12499
 
found="no"
12500
 
 
12501
 
        if test $found = "no" ; then
12502
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12503
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12504
 
                fi
12505
 
 
12506
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12507
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12508
 
                fi
12509
 
 
12510
 
                CFLAGS="$CFLAGS -Wbad-function-cast"
12511
 
 
12512
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12513
 
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12514
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515
 
/* end confdefs.h.  */
12516
 
int i;
12517
 
int
12518
 
main ()
12519
 
{
12520
 
 
12521
 
  ;
12522
 
  return 0;
12523
 
}
12524
 
_ACEOF
12525
 
if ac_fn_c_try_link "$LINENO"; then :
12526
 
  supported=yes
12527
 
else
12528
 
  supported=no
12529
 
fi
12530
 
rm -f core conftest.err conftest.$ac_objext \
12531
 
    conftest$ac_exeext conftest.$ac_ext
12532
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12533
 
$as_echo "$supported" >&6; }
12534
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12535
 
 
12536
 
                if test "$supported" = "yes" ; then
12537
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12538
 
                        found="yes"
12539
 
                fi
12540
 
        fi
12541
 
 
12542
 
 
12543
 
 
12544
 
 
12545
 
 
12546
 
 
12547
 
 
12548
 
xorg_testset_save_CFLAGS="$CFLAGS"
12549
 
 
12550
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12551
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12552
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12553
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12554
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555
 
/* end confdefs.h.  */
12556
 
int i;
12557
 
_ACEOF
12558
 
if ac_fn_c_try_compile "$LINENO"; then :
12559
 
  xorg_testset_unknown_warning_option=yes
12560
 
else
12561
 
  xorg_testset_unknown_warning_option=no
12562
 
fi
12563
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12565
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12566
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12567
 
fi
12568
 
 
12569
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12570
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12571
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12572
 
        fi
12573
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12574
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12575
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12576
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577
 
/* end confdefs.h.  */
12578
 
int i;
12579
 
_ACEOF
12580
 
if ac_fn_c_try_compile "$LINENO"; then :
12581
 
  xorg_testset_unused_command_line_argument=yes
12582
 
else
12583
 
  xorg_testset_unused_command_line_argument=no
12584
 
fi
12585
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12587
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12588
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12589
 
fi
12590
 
 
12591
 
found="no"
12592
 
 
12593
 
        if test $found = "no" ; then
12594
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12595
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12596
 
                fi
12597
 
 
12598
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12599
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12600
 
                fi
12601
 
 
12602
 
                CFLAGS="$CFLAGS -Wformat=2"
12603
 
 
12604
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12605
 
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12606
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607
 
/* end confdefs.h.  */
12608
 
int i;
12609
 
int
12610
 
main ()
12611
 
{
12612
 
 
12613
 
  ;
12614
 
  return 0;
12615
 
}
12616
 
_ACEOF
12617
 
if ac_fn_c_try_link "$LINENO"; then :
12618
 
  supported=yes
12619
 
else
12620
 
  supported=no
12621
 
fi
12622
 
rm -f core conftest.err conftest.$ac_objext \
12623
 
    conftest$ac_exeext conftest.$ac_ext
12624
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12625
 
$as_echo "$supported" >&6; }
12626
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12627
 
 
12628
 
                if test "$supported" = "yes" ; then
12629
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12630
 
                        found="yes"
12631
 
                fi
12632
 
        fi
12633
 
 
12634
 
        if test $found = "no" ; then
12635
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12636
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12637
 
                fi
12638
 
 
12639
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12640
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12641
 
                fi
12642
 
 
12643
 
                CFLAGS="$CFLAGS -Wformat"
12644
 
 
12645
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12646
 
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12647
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648
 
/* end confdefs.h.  */
12649
 
int i;
12650
 
int
12651
 
main ()
12652
 
{
12653
 
 
12654
 
  ;
12655
 
  return 0;
12656
 
}
12657
 
_ACEOF
12658
 
if ac_fn_c_try_link "$LINENO"; then :
12659
 
  supported=yes
12660
 
else
12661
 
  supported=no
12662
 
fi
12663
 
rm -f core conftest.err conftest.$ac_objext \
12664
 
    conftest$ac_exeext conftest.$ac_ext
12665
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12666
 
$as_echo "$supported" >&6; }
12667
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12668
 
 
12669
 
                if test "$supported" = "yes" ; then
12670
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12671
 
                        found="yes"
12672
 
                fi
12673
 
        fi
12674
 
 
12675
 
 
12676
 
 
12677
 
 
12678
 
 
12679
 
 
12680
 
 
12681
 
xorg_testset_save_CFLAGS="$CFLAGS"
12682
 
 
12683
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12684
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12686
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12687
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688
 
/* end confdefs.h.  */
12689
 
int i;
12690
 
_ACEOF
12691
 
if ac_fn_c_try_compile "$LINENO"; then :
12692
 
  xorg_testset_unknown_warning_option=yes
12693
 
else
12694
 
  xorg_testset_unknown_warning_option=no
12695
 
fi
12696
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12698
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12699
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12700
 
fi
12701
 
 
12702
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12703
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12704
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12705
 
        fi
12706
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12707
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12708
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12709
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710
 
/* end confdefs.h.  */
12711
 
int i;
12712
 
_ACEOF
12713
 
if ac_fn_c_try_compile "$LINENO"; then :
12714
 
  xorg_testset_unused_command_line_argument=yes
12715
 
else
12716
 
  xorg_testset_unused_command_line_argument=no
12717
 
fi
12718
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12720
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12721
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12722
 
fi
12723
 
 
12724
 
found="no"
12725
 
 
12726
 
        if test $found = "no" ; then
12727
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12728
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12729
 
                fi
12730
 
 
12731
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12732
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12733
 
                fi
12734
 
 
12735
 
                CFLAGS="$CFLAGS -Wold-style-definition"
12736
 
 
12737
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12738
 
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12739
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740
 
/* end confdefs.h.  */
12741
 
int i;
12742
 
int
12743
 
main ()
12744
 
{
12745
 
 
12746
 
  ;
12747
 
  return 0;
12748
 
}
12749
 
_ACEOF
12750
 
if ac_fn_c_try_link "$LINENO"; then :
12751
 
  supported=yes
12752
 
else
12753
 
  supported=no
12754
 
fi
12755
 
rm -f core conftest.err conftest.$ac_objext \
12756
 
    conftest$ac_exeext conftest.$ac_ext
12757
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12758
 
$as_echo "$supported" >&6; }
12759
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12760
 
 
12761
 
                if test "$supported" = "yes" ; then
12762
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12763
 
                        found="yes"
12764
 
                fi
12765
 
        fi
12766
 
 
12767
 
 
12768
 
 
12769
 
 
12770
 
 
12771
 
 
12772
 
 
12773
 
xorg_testset_save_CFLAGS="$CFLAGS"
12774
 
 
12775
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12776
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12777
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12778
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12779
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780
 
/* end confdefs.h.  */
12781
 
int i;
12782
 
_ACEOF
12783
 
if ac_fn_c_try_compile "$LINENO"; then :
12784
 
  xorg_testset_unknown_warning_option=yes
12785
 
else
12786
 
  xorg_testset_unknown_warning_option=no
12787
 
fi
12788
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12790
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12791
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12792
 
fi
12793
 
 
12794
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12795
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12796
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12797
 
        fi
12798
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12799
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12800
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12801
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802
 
/* end confdefs.h.  */
12803
 
int i;
12804
 
_ACEOF
12805
 
if ac_fn_c_try_compile "$LINENO"; then :
12806
 
  xorg_testset_unused_command_line_argument=yes
12807
 
else
12808
 
  xorg_testset_unused_command_line_argument=no
12809
 
fi
12810
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12812
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12813
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12814
 
fi
12815
 
 
12816
 
found="no"
12817
 
 
12818
 
        if test $found = "no" ; then
12819
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12820
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12821
 
                fi
12822
 
 
12823
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12824
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12825
 
                fi
12826
 
 
12827
 
                CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12828
 
 
12829
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12830
 
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12831
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832
 
/* end confdefs.h.  */
12833
 
int i;
12834
 
int
12835
 
main ()
12836
 
{
12837
 
 
12838
 
  ;
12839
 
  return 0;
12840
 
}
12841
 
_ACEOF
12842
 
if ac_fn_c_try_link "$LINENO"; then :
12843
 
  supported=yes
12844
 
else
12845
 
  supported=no
12846
 
fi
12847
 
rm -f core conftest.err conftest.$ac_objext \
12848
 
    conftest$ac_exeext conftest.$ac_ext
12849
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12850
 
$as_echo "$supported" >&6; }
12851
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12852
 
 
12853
 
                if test "$supported" = "yes" ; then
12854
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12855
 
                        found="yes"
12856
 
                fi
12857
 
        fi
12858
 
 
12859
 
 
12860
 
 
12861
 
# This chunk adds additional warnings that could catch undesired effects.
12862
 
 
12863
 
 
12864
 
 
12865
 
 
12866
 
 
12867
 
xorg_testset_save_CFLAGS="$CFLAGS"
12868
 
 
12869
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12870
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12871
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12872
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12873
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874
 
/* end confdefs.h.  */
12875
 
int i;
12876
 
_ACEOF
12877
 
if ac_fn_c_try_compile "$LINENO"; then :
12878
 
  xorg_testset_unknown_warning_option=yes
12879
 
else
12880
 
  xorg_testset_unknown_warning_option=no
12881
 
fi
12882
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12884
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12885
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12886
 
fi
12887
 
 
12888
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12889
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12890
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12891
 
        fi
12892
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12893
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12894
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12895
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896
 
/* end confdefs.h.  */
12897
 
int i;
12898
 
_ACEOF
12899
 
if ac_fn_c_try_compile "$LINENO"; then :
12900
 
  xorg_testset_unused_command_line_argument=yes
12901
 
else
12902
 
  xorg_testset_unused_command_line_argument=no
12903
 
fi
12904
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12906
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12907
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12908
 
fi
12909
 
 
12910
 
found="no"
12911
 
 
12912
 
        if test $found = "no" ; then
12913
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12914
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12915
 
                fi
12916
 
 
12917
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12918
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12919
 
                fi
12920
 
 
12921
 
                CFLAGS="$CFLAGS -Wunused"
12922
 
 
12923
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12924
 
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12925
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926
 
/* end confdefs.h.  */
12927
 
int i;
12928
 
int
12929
 
main ()
12930
 
{
12931
 
 
12932
 
  ;
12933
 
  return 0;
12934
 
}
12935
 
_ACEOF
12936
 
if ac_fn_c_try_link "$LINENO"; then :
12937
 
  supported=yes
12938
 
else
12939
 
  supported=no
12940
 
fi
12941
 
rm -f core conftest.err conftest.$ac_objext \
12942
 
    conftest$ac_exeext conftest.$ac_ext
12943
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12944
 
$as_echo "$supported" >&6; }
12945
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12946
 
 
12947
 
                if test "$supported" = "yes" ; then
12948
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12949
 
                        found="yes"
12950
 
                fi
12951
 
        fi
12952
 
 
12953
 
 
12954
 
 
12955
 
 
12956
 
 
12957
 
 
12958
 
 
12959
 
xorg_testset_save_CFLAGS="$CFLAGS"
12960
 
 
12961
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12962
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12963
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12964
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12965
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966
 
/* end confdefs.h.  */
12967
 
int i;
12968
 
_ACEOF
12969
 
if ac_fn_c_try_compile "$LINENO"; then :
12970
 
  xorg_testset_unknown_warning_option=yes
12971
 
else
12972
 
  xorg_testset_unknown_warning_option=no
12973
 
fi
12974
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12975
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12976
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12977
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12978
 
fi
12979
 
 
12980
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12981
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12982
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12983
 
        fi
12984
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12985
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12986
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12987
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988
 
/* end confdefs.h.  */
12989
 
int i;
12990
 
_ACEOF
12991
 
if ac_fn_c_try_compile "$LINENO"; then :
12992
 
  xorg_testset_unused_command_line_argument=yes
12993
 
else
12994
 
  xorg_testset_unused_command_line_argument=no
12995
 
fi
12996
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12998
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12999
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13000
 
fi
13001
 
 
13002
 
found="no"
13003
 
 
13004
 
        if test $found = "no" ; then
13005
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13006
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13007
 
                fi
13008
 
 
13009
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13010
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13011
 
                fi
13012
 
 
13013
 
                CFLAGS="$CFLAGS -Wuninitialized"
13014
 
 
13015
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13016
 
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13017
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018
 
/* end confdefs.h.  */
13019
 
int i;
13020
 
int
13021
 
main ()
13022
 
{
13023
 
 
13024
 
  ;
13025
 
  return 0;
13026
 
}
13027
 
_ACEOF
13028
 
if ac_fn_c_try_link "$LINENO"; then :
13029
 
  supported=yes
13030
 
else
13031
 
  supported=no
13032
 
fi
13033
 
rm -f core conftest.err conftest.$ac_objext \
13034
 
    conftest$ac_exeext conftest.$ac_ext
13035
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13036
 
$as_echo "$supported" >&6; }
13037
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13038
 
 
13039
 
                if test "$supported" = "yes" ; then
13040
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13041
 
                        found="yes"
13042
 
                fi
13043
 
        fi
13044
 
 
13045
 
 
13046
 
 
13047
 
 
13048
 
 
13049
 
 
13050
 
 
13051
 
xorg_testset_save_CFLAGS="$CFLAGS"
13052
 
 
13053
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13054
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13055
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13056
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13057
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058
 
/* end confdefs.h.  */
13059
 
int i;
13060
 
_ACEOF
13061
 
if ac_fn_c_try_compile "$LINENO"; then :
13062
 
  xorg_testset_unknown_warning_option=yes
13063
 
else
13064
 
  xorg_testset_unknown_warning_option=no
13065
 
fi
13066
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13068
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13069
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13070
 
fi
13071
 
 
13072
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13073
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13074
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13075
 
        fi
13076
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13077
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13078
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13079
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080
 
/* end confdefs.h.  */
13081
 
int i;
13082
 
_ACEOF
13083
 
if ac_fn_c_try_compile "$LINENO"; then :
13084
 
  xorg_testset_unused_command_line_argument=yes
13085
 
else
13086
 
  xorg_testset_unused_command_line_argument=no
13087
 
fi
13088
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13090
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13091
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13092
 
fi
13093
 
 
13094
 
found="no"
13095
 
 
13096
 
        if test $found = "no" ; then
13097
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13098
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13099
 
                fi
13100
 
 
13101
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13102
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13103
 
                fi
13104
 
 
13105
 
                CFLAGS="$CFLAGS -Wshadow"
13106
 
 
13107
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13108
 
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13109
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110
 
/* end confdefs.h.  */
13111
 
int i;
13112
 
int
13113
 
main ()
13114
 
{
13115
 
 
13116
 
  ;
13117
 
  return 0;
13118
 
}
13119
 
_ACEOF
13120
 
if ac_fn_c_try_link "$LINENO"; then :
13121
 
  supported=yes
13122
 
else
13123
 
  supported=no
13124
 
fi
13125
 
rm -f core conftest.err conftest.$ac_objext \
13126
 
    conftest$ac_exeext conftest.$ac_ext
13127
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13128
 
$as_echo "$supported" >&6; }
13129
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13130
 
 
13131
 
                if test "$supported" = "yes" ; then
13132
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13133
 
                        found="yes"
13134
 
                fi
13135
 
        fi
13136
 
 
13137
 
 
13138
 
 
13139
 
 
13140
 
 
13141
 
 
13142
 
 
13143
 
xorg_testset_save_CFLAGS="$CFLAGS"
13144
 
 
13145
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13146
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13147
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13148
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13149
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150
 
/* end confdefs.h.  */
13151
 
int i;
13152
 
_ACEOF
13153
 
if ac_fn_c_try_compile "$LINENO"; then :
13154
 
  xorg_testset_unknown_warning_option=yes
13155
 
else
13156
 
  xorg_testset_unknown_warning_option=no
13157
 
fi
13158
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13160
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13161
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13162
 
fi
13163
 
 
13164
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13165
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13166
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167
 
        fi
13168
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13169
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13170
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13171
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172
 
/* end confdefs.h.  */
13173
 
int i;
13174
 
_ACEOF
13175
 
if ac_fn_c_try_compile "$LINENO"; then :
13176
 
  xorg_testset_unused_command_line_argument=yes
13177
 
else
13178
 
  xorg_testset_unused_command_line_argument=no
13179
 
fi
13180
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13181
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13182
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13183
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13184
 
fi
13185
 
 
13186
 
found="no"
13187
 
 
13188
 
        if test $found = "no" ; then
13189
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13190
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13191
 
                fi
13192
 
 
13193
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13194
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13195
 
                fi
13196
 
 
13197
 
                CFLAGS="$CFLAGS -Wcast-qual"
13198
 
 
13199
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13200
 
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13201
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202
 
/* end confdefs.h.  */
13203
 
int i;
13204
 
int
13205
 
main ()
13206
 
{
13207
 
 
13208
 
  ;
13209
 
  return 0;
13210
 
}
13211
 
_ACEOF
13212
 
if ac_fn_c_try_link "$LINENO"; then :
13213
 
  supported=yes
13214
 
else
13215
 
  supported=no
13216
 
fi
13217
 
rm -f core conftest.err conftest.$ac_objext \
13218
 
    conftest$ac_exeext conftest.$ac_ext
13219
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13220
 
$as_echo "$supported" >&6; }
13221
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13222
 
 
13223
 
                if test "$supported" = "yes" ; then
13224
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13225
 
                        found="yes"
13226
 
                fi
13227
 
        fi
13228
 
 
13229
 
 
13230
 
 
13231
 
 
13232
 
 
13233
 
 
13234
 
 
13235
 
xorg_testset_save_CFLAGS="$CFLAGS"
13236
 
 
13237
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13238
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13239
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13240
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13241
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242
 
/* end confdefs.h.  */
13243
 
int i;
13244
 
_ACEOF
13245
 
if ac_fn_c_try_compile "$LINENO"; then :
13246
 
  xorg_testset_unknown_warning_option=yes
13247
 
else
13248
 
  xorg_testset_unknown_warning_option=no
13249
 
fi
13250
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13252
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13253
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13254
 
fi
13255
 
 
13256
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13257
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13258
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13259
 
        fi
13260
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13261
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13262
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13263
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264
 
/* end confdefs.h.  */
13265
 
int i;
13266
 
_ACEOF
13267
 
if ac_fn_c_try_compile "$LINENO"; then :
13268
 
  xorg_testset_unused_command_line_argument=yes
13269
 
else
13270
 
  xorg_testset_unused_command_line_argument=no
13271
 
fi
13272
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13274
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13275
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13276
 
fi
13277
 
 
13278
 
found="no"
13279
 
 
13280
 
        if test $found = "no" ; then
13281
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13282
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13283
 
                fi
13284
 
 
13285
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13286
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13287
 
                fi
13288
 
 
13289
 
                CFLAGS="$CFLAGS -Wmissing-noreturn"
13290
 
 
13291
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13292
 
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13293
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294
 
/* end confdefs.h.  */
13295
 
int i;
13296
 
int
13297
 
main ()
13298
 
{
13299
 
 
13300
 
  ;
13301
 
  return 0;
13302
 
}
13303
 
_ACEOF
13304
 
if ac_fn_c_try_link "$LINENO"; then :
13305
 
  supported=yes
13306
 
else
13307
 
  supported=no
13308
 
fi
13309
 
rm -f core conftest.err conftest.$ac_objext \
13310
 
    conftest$ac_exeext conftest.$ac_ext
13311
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13312
 
$as_echo "$supported" >&6; }
13313
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13314
 
 
13315
 
                if test "$supported" = "yes" ; then
13316
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13317
 
                        found="yes"
13318
 
                fi
13319
 
        fi
13320
 
 
13321
 
 
13322
 
 
13323
 
 
13324
 
 
13325
 
 
13326
 
 
13327
 
xorg_testset_save_CFLAGS="$CFLAGS"
13328
 
 
13329
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13330
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13332
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13333
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334
 
/* end confdefs.h.  */
13335
 
int i;
13336
 
_ACEOF
13337
 
if ac_fn_c_try_compile "$LINENO"; then :
13338
 
  xorg_testset_unknown_warning_option=yes
13339
 
else
13340
 
  xorg_testset_unknown_warning_option=no
13341
 
fi
13342
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13344
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13345
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13346
 
fi
13347
 
 
13348
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13349
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13350
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13351
 
        fi
13352
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13353
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13354
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13355
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356
 
/* end confdefs.h.  */
13357
 
int i;
13358
 
_ACEOF
13359
 
if ac_fn_c_try_compile "$LINENO"; then :
13360
 
  xorg_testset_unused_command_line_argument=yes
13361
 
else
13362
 
  xorg_testset_unused_command_line_argument=no
13363
 
fi
13364
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13366
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13367
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13368
 
fi
13369
 
 
13370
 
found="no"
13371
 
 
13372
 
        if test $found = "no" ; then
13373
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13374
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13375
 
                fi
13376
 
 
13377
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13378
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13379
 
                fi
13380
 
 
13381
 
                CFLAGS="$CFLAGS -Wmissing-format-attribute"
13382
 
 
13383
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13384
 
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13385
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386
 
/* end confdefs.h.  */
13387
 
int i;
13388
 
int
13389
 
main ()
13390
 
{
13391
 
 
13392
 
  ;
13393
 
  return 0;
13394
 
}
13395
 
_ACEOF
13396
 
if ac_fn_c_try_link "$LINENO"; then :
13397
 
  supported=yes
13398
 
else
13399
 
  supported=no
13400
 
fi
13401
 
rm -f core conftest.err conftest.$ac_objext \
13402
 
    conftest$ac_exeext conftest.$ac_ext
13403
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13404
 
$as_echo "$supported" >&6; }
13405
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13406
 
 
13407
 
                if test "$supported" = "yes" ; then
13408
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13409
 
                        found="yes"
13410
 
                fi
13411
 
        fi
13412
 
 
13413
 
 
13414
 
 
13415
 
 
13416
 
 
13417
 
 
13418
 
 
13419
 
xorg_testset_save_CFLAGS="$CFLAGS"
13420
 
 
13421
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13422
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13423
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13424
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13425
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426
 
/* end confdefs.h.  */
13427
 
int i;
13428
 
_ACEOF
13429
 
if ac_fn_c_try_compile "$LINENO"; then :
13430
 
  xorg_testset_unknown_warning_option=yes
13431
 
else
13432
 
  xorg_testset_unknown_warning_option=no
13433
 
fi
13434
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13436
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13437
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13438
 
fi
13439
 
 
13440
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13441
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13442
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443
 
        fi
13444
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13445
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13446
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13447
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448
 
/* end confdefs.h.  */
13449
 
int i;
13450
 
_ACEOF
13451
 
if ac_fn_c_try_compile "$LINENO"; then :
13452
 
  xorg_testset_unused_command_line_argument=yes
13453
 
else
13454
 
  xorg_testset_unused_command_line_argument=no
13455
 
fi
13456
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13458
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13459
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13460
 
fi
13461
 
 
13462
 
found="no"
13463
 
 
13464
 
        if test $found = "no" ; then
13465
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13466
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467
 
                fi
13468
 
 
13469
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13470
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13471
 
                fi
13472
 
 
13473
 
                CFLAGS="$CFLAGS -Wredundant-decls"
13474
 
 
13475
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13476
 
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13477
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478
 
/* end confdefs.h.  */
13479
 
int i;
13480
 
int
13481
 
main ()
13482
 
{
13483
 
 
13484
 
  ;
13485
 
  return 0;
13486
 
}
13487
 
_ACEOF
13488
 
if ac_fn_c_try_link "$LINENO"; then :
13489
 
  supported=yes
13490
 
else
13491
 
  supported=no
13492
 
fi
13493
 
rm -f core conftest.err conftest.$ac_objext \
13494
 
    conftest$ac_exeext conftest.$ac_ext
13495
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496
 
$as_echo "$supported" >&6; }
13497
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13498
 
 
13499
 
                if test "$supported" = "yes" ; then
13500
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13501
 
                        found="yes"
13502
 
                fi
13503
 
        fi
13504
 
 
13505
 
 
13506
 
 
13507
 
# These are currently disabled because they are noisy.  They will be enabled
13508
 
# in the future once the codebase is sufficiently modernized to silence
13509
 
# them.  For now, I don't want them to drown out the other warnings.
13510
 
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
13511
 
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
13512
 
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
13513
 
 
13514
 
# Turn some warnings into errors, so we don't accidently get successful builds
13515
 
# when there are problems that should be fixed.
13516
 
 
13517
 
if test "x$SELECTIVE_WERROR" = "xyes" ; then
13518
 
 
13519
 
 
13520
 
 
13521
 
 
13522
 
 
13523
 
xorg_testset_save_CFLAGS="$CFLAGS"
13524
 
 
13525
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13526
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13528
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13529
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530
 
/* end confdefs.h.  */
13531
 
int i;
13532
 
_ACEOF
13533
 
if ac_fn_c_try_compile "$LINENO"; then :
13534
 
  xorg_testset_unknown_warning_option=yes
13535
 
else
13536
 
  xorg_testset_unknown_warning_option=no
13537
 
fi
13538
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13540
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13541
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13542
 
fi
13543
 
 
13544
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13545
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13546
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547
 
        fi
13548
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13550
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13551
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552
 
/* end confdefs.h.  */
13553
 
int i;
13554
 
_ACEOF
13555
 
if ac_fn_c_try_compile "$LINENO"; then :
13556
 
  xorg_testset_unused_command_line_argument=yes
13557
 
else
13558
 
  xorg_testset_unused_command_line_argument=no
13559
 
fi
13560
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13562
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13563
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13564
 
fi
13565
 
 
13566
 
found="no"
13567
 
 
13568
 
        if test $found = "no" ; then
13569
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13570
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13571
 
                fi
13572
 
 
13573
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13574
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13575
 
                fi
13576
 
 
13577
 
                CFLAGS="$CFLAGS -Werror=implicit"
13578
 
 
13579
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13580
 
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13581
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582
 
/* end confdefs.h.  */
13583
 
int i;
13584
 
int
13585
 
main ()
13586
 
{
13587
 
 
13588
 
  ;
13589
 
  return 0;
13590
 
}
13591
 
_ACEOF
13592
 
if ac_fn_c_try_link "$LINENO"; then :
13593
 
  supported=yes
13594
 
else
13595
 
  supported=no
13596
 
fi
13597
 
rm -f core conftest.err conftest.$ac_objext \
13598
 
    conftest$ac_exeext conftest.$ac_ext
13599
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13600
 
$as_echo "$supported" >&6; }
13601
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13602
 
 
13603
 
                if test "$supported" = "yes" ; then
13604
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13605
 
                        found="yes"
13606
 
                fi
13607
 
        fi
13608
 
 
13609
 
        if test $found = "no" ; then
13610
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13611
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612
 
                fi
13613
 
 
13614
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13615
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13616
 
                fi
13617
 
 
13618
 
                CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13619
 
 
13620
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13621
 
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13622
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623
 
/* end confdefs.h.  */
13624
 
int i;
13625
 
int
13626
 
main ()
13627
 
{
13628
 
 
13629
 
  ;
13630
 
  return 0;
13631
 
}
13632
 
_ACEOF
13633
 
if ac_fn_c_try_link "$LINENO"; then :
13634
 
  supported=yes
13635
 
else
13636
 
  supported=no
13637
 
fi
13638
 
rm -f core conftest.err conftest.$ac_objext \
13639
 
    conftest$ac_exeext conftest.$ac_ext
13640
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13641
 
$as_echo "$supported" >&6; }
13642
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13643
 
 
13644
 
                if test "$supported" = "yes" ; then
13645
 
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13646
 
                        found="yes"
13647
 
                fi
13648
 
        fi
13649
 
 
13650
 
 
13651
 
 
13652
 
 
13653
 
 
13654
 
 
13655
 
 
13656
 
xorg_testset_save_CFLAGS="$CFLAGS"
13657
 
 
13658
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13659
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13660
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13661
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13662
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663
 
/* end confdefs.h.  */
13664
 
int i;
13665
 
_ACEOF
13666
 
if ac_fn_c_try_compile "$LINENO"; then :
13667
 
  xorg_testset_unknown_warning_option=yes
13668
 
else
13669
 
  xorg_testset_unknown_warning_option=no
13670
 
fi
13671
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13673
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13674
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13675
 
fi
13676
 
 
13677
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13678
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13679
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680
 
        fi
13681
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13682
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13683
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13684
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685
 
/* end confdefs.h.  */
13686
 
int i;
13687
 
_ACEOF
13688
 
if ac_fn_c_try_compile "$LINENO"; then :
13689
 
  xorg_testset_unused_command_line_argument=yes
13690
 
else
13691
 
  xorg_testset_unused_command_line_argument=no
13692
 
fi
13693
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13695
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13696
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13697
 
fi
13698
 
 
13699
 
found="no"
13700
 
 
13701
 
        if test $found = "no" ; then
13702
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13703
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704
 
                fi
13705
 
 
13706
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13707
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13708
 
                fi
13709
 
 
13710
 
                CFLAGS="$CFLAGS -Werror=nonnull"
13711
 
 
13712
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13713
 
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13714
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715
 
/* end confdefs.h.  */
13716
 
int i;
13717
 
int
13718
 
main ()
13719
 
{
13720
 
 
13721
 
  ;
13722
 
  return 0;
13723
 
}
13724
 
_ACEOF
13725
 
if ac_fn_c_try_link "$LINENO"; then :
13726
 
  supported=yes
13727
 
else
13728
 
  supported=no
13729
 
fi
13730
 
rm -f core conftest.err conftest.$ac_objext \
13731
 
    conftest$ac_exeext conftest.$ac_ext
13732
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13733
 
$as_echo "$supported" >&6; }
13734
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13735
 
 
13736
 
                if test "$supported" = "yes" ; then
13737
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13738
 
                        found="yes"
13739
 
                fi
13740
 
        fi
13741
 
 
13742
 
 
13743
 
 
13744
 
 
13745
 
 
13746
 
 
13747
 
 
13748
 
xorg_testset_save_CFLAGS="$CFLAGS"
13749
 
 
13750
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13751
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13753
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13754
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755
 
/* end confdefs.h.  */
13756
 
int i;
13757
 
_ACEOF
13758
 
if ac_fn_c_try_compile "$LINENO"; then :
13759
 
  xorg_testset_unknown_warning_option=yes
13760
 
else
13761
 
  xorg_testset_unknown_warning_option=no
13762
 
fi
13763
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13765
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13766
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13767
 
fi
13768
 
 
13769
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13770
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13771
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13772
 
        fi
13773
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13774
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13775
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13776
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777
 
/* end confdefs.h.  */
13778
 
int i;
13779
 
_ACEOF
13780
 
if ac_fn_c_try_compile "$LINENO"; then :
13781
 
  xorg_testset_unused_command_line_argument=yes
13782
 
else
13783
 
  xorg_testset_unused_command_line_argument=no
13784
 
fi
13785
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13787
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13788
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13789
 
fi
13790
 
 
13791
 
found="no"
13792
 
 
13793
 
        if test $found = "no" ; then
13794
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13795
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13796
 
                fi
13797
 
 
13798
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13799
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13800
 
                fi
13801
 
 
13802
 
                CFLAGS="$CFLAGS -Werror=init-self"
13803
 
 
13804
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13805
 
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13806
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807
 
/* end confdefs.h.  */
13808
 
int i;
13809
 
int
13810
 
main ()
13811
 
{
13812
 
 
13813
 
  ;
13814
 
  return 0;
13815
 
}
13816
 
_ACEOF
13817
 
if ac_fn_c_try_link "$LINENO"; then :
13818
 
  supported=yes
13819
 
else
13820
 
  supported=no
13821
 
fi
13822
 
rm -f core conftest.err conftest.$ac_objext \
13823
 
    conftest$ac_exeext conftest.$ac_ext
13824
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13825
 
$as_echo "$supported" >&6; }
13826
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13827
 
 
13828
 
                if test "$supported" = "yes" ; then
13829
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
13830
 
                        found="yes"
13831
 
                fi
13832
 
        fi
13833
 
 
13834
 
 
13835
 
 
13836
 
 
13837
 
 
13838
 
 
13839
 
 
13840
 
xorg_testset_save_CFLAGS="$CFLAGS"
13841
 
 
13842
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13843
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13844
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13845
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13846
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847
 
/* end confdefs.h.  */
13848
 
int i;
13849
 
_ACEOF
13850
 
if ac_fn_c_try_compile "$LINENO"; then :
13851
 
  xorg_testset_unknown_warning_option=yes
13852
 
else
13853
 
  xorg_testset_unknown_warning_option=no
13854
 
fi
13855
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13857
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13858
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13859
 
fi
13860
 
 
13861
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13862
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13863
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13864
 
        fi
13865
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13866
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13867
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13868
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869
 
/* end confdefs.h.  */
13870
 
int i;
13871
 
_ACEOF
13872
 
if ac_fn_c_try_compile "$LINENO"; then :
13873
 
  xorg_testset_unused_command_line_argument=yes
13874
 
else
13875
 
  xorg_testset_unused_command_line_argument=no
13876
 
fi
13877
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13879
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13880
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13881
 
fi
13882
 
 
13883
 
found="no"
13884
 
 
13885
 
        if test $found = "no" ; then
13886
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13887
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13888
 
                fi
13889
 
 
13890
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13891
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13892
 
                fi
13893
 
 
13894
 
                CFLAGS="$CFLAGS -Werror=main"
13895
 
 
13896
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
13897
 
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
13898
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899
 
/* end confdefs.h.  */
13900
 
int i;
13901
 
int
13902
 
main ()
13903
 
{
13904
 
 
13905
 
  ;
13906
 
  return 0;
13907
 
}
13908
 
_ACEOF
13909
 
if ac_fn_c_try_link "$LINENO"; then :
13910
 
  supported=yes
13911
 
else
13912
 
  supported=no
13913
 
fi
13914
 
rm -f core conftest.err conftest.$ac_objext \
13915
 
    conftest$ac_exeext conftest.$ac_ext
13916
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13917
 
$as_echo "$supported" >&6; }
13918
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13919
 
 
13920
 
                if test "$supported" = "yes" ; then
13921
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
13922
 
                        found="yes"
13923
 
                fi
13924
 
        fi
13925
 
 
13926
 
 
13927
 
 
13928
 
 
13929
 
 
13930
 
 
13931
 
 
13932
 
xorg_testset_save_CFLAGS="$CFLAGS"
13933
 
 
13934
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13935
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13936
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13937
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13938
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939
 
/* end confdefs.h.  */
13940
 
int i;
13941
 
_ACEOF
13942
 
if ac_fn_c_try_compile "$LINENO"; then :
13943
 
  xorg_testset_unknown_warning_option=yes
13944
 
else
13945
 
  xorg_testset_unknown_warning_option=no
13946
 
fi
13947
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13949
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13950
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13951
 
fi
13952
 
 
13953
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13954
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13955
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13956
 
        fi
13957
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13958
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13959
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13960
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961
 
/* end confdefs.h.  */
13962
 
int i;
13963
 
_ACEOF
13964
 
if ac_fn_c_try_compile "$LINENO"; then :
13965
 
  xorg_testset_unused_command_line_argument=yes
13966
 
else
13967
 
  xorg_testset_unused_command_line_argument=no
13968
 
fi
13969
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13971
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13972
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13973
 
fi
13974
 
 
13975
 
found="no"
13976
 
 
13977
 
        if test $found = "no" ; then
13978
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13979
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980
 
                fi
13981
 
 
13982
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13983
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984
 
                fi
13985
 
 
13986
 
                CFLAGS="$CFLAGS -Werror=missing-braces"
13987
 
 
13988
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
13989
 
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
13990
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991
 
/* end confdefs.h.  */
13992
 
int i;
13993
 
int
13994
 
main ()
13995
 
{
13996
 
 
13997
 
  ;
13998
 
  return 0;
13999
 
}
14000
 
_ACEOF
14001
 
if ac_fn_c_try_link "$LINENO"; then :
14002
 
  supported=yes
14003
 
else
14004
 
  supported=no
14005
 
fi
14006
 
rm -f core conftest.err conftest.$ac_objext \
14007
 
    conftest$ac_exeext conftest.$ac_ext
14008
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009
 
$as_echo "$supported" >&6; }
14010
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14011
 
 
14012
 
                if test "$supported" = "yes" ; then
14013
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14014
 
                        found="yes"
14015
 
                fi
14016
 
        fi
14017
 
 
14018
 
 
14019
 
 
14020
 
 
14021
 
 
14022
 
 
14023
 
 
14024
 
xorg_testset_save_CFLAGS="$CFLAGS"
14025
 
 
14026
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14027
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14028
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14029
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14030
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031
 
/* end confdefs.h.  */
14032
 
int i;
14033
 
_ACEOF
14034
 
if ac_fn_c_try_compile "$LINENO"; then :
14035
 
  xorg_testset_unknown_warning_option=yes
14036
 
else
14037
 
  xorg_testset_unknown_warning_option=no
14038
 
fi
14039
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14041
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14042
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14043
 
fi
14044
 
 
14045
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14046
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14047
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14048
 
        fi
14049
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14050
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14051
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14052
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053
 
/* end confdefs.h.  */
14054
 
int i;
14055
 
_ACEOF
14056
 
if ac_fn_c_try_compile "$LINENO"; then :
14057
 
  xorg_testset_unused_command_line_argument=yes
14058
 
else
14059
 
  xorg_testset_unused_command_line_argument=no
14060
 
fi
14061
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14063
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14064
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14065
 
fi
14066
 
 
14067
 
found="no"
14068
 
 
14069
 
        if test $found = "no" ; then
14070
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14071
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14072
 
                fi
14073
 
 
14074
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14075
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14076
 
                fi
14077
 
 
14078
 
                CFLAGS="$CFLAGS -Werror=sequence-point"
14079
 
 
14080
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14081
 
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14082
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083
 
/* end confdefs.h.  */
14084
 
int i;
14085
 
int
14086
 
main ()
14087
 
{
14088
 
 
14089
 
  ;
14090
 
  return 0;
14091
 
}
14092
 
_ACEOF
14093
 
if ac_fn_c_try_link "$LINENO"; then :
14094
 
  supported=yes
14095
 
else
14096
 
  supported=no
14097
 
fi
14098
 
rm -f core conftest.err conftest.$ac_objext \
14099
 
    conftest$ac_exeext conftest.$ac_ext
14100
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14101
 
$as_echo "$supported" >&6; }
14102
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14103
 
 
14104
 
                if test "$supported" = "yes" ; then
14105
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14106
 
                        found="yes"
14107
 
                fi
14108
 
        fi
14109
 
 
14110
 
 
14111
 
 
14112
 
 
14113
 
 
14114
 
 
14115
 
 
14116
 
xorg_testset_save_CFLAGS="$CFLAGS"
14117
 
 
14118
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14119
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14121
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14122
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123
 
/* end confdefs.h.  */
14124
 
int i;
14125
 
_ACEOF
14126
 
if ac_fn_c_try_compile "$LINENO"; then :
14127
 
  xorg_testset_unknown_warning_option=yes
14128
 
else
14129
 
  xorg_testset_unknown_warning_option=no
14130
 
fi
14131
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14133
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14134
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14135
 
fi
14136
 
 
14137
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14138
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14139
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140
 
        fi
14141
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14142
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14143
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14144
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145
 
/* end confdefs.h.  */
14146
 
int i;
14147
 
_ACEOF
14148
 
if ac_fn_c_try_compile "$LINENO"; then :
14149
 
  xorg_testset_unused_command_line_argument=yes
14150
 
else
14151
 
  xorg_testset_unused_command_line_argument=no
14152
 
fi
14153
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14155
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14156
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14157
 
fi
14158
 
 
14159
 
found="no"
14160
 
 
14161
 
        if test $found = "no" ; then
14162
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14163
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14164
 
                fi
14165
 
 
14166
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14167
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14168
 
                fi
14169
 
 
14170
 
                CFLAGS="$CFLAGS -Werror=return-type"
14171
 
 
14172
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14173
 
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14174
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175
 
/* end confdefs.h.  */
14176
 
int i;
14177
 
int
14178
 
main ()
14179
 
{
14180
 
 
14181
 
  ;
14182
 
  return 0;
14183
 
}
14184
 
_ACEOF
14185
 
if ac_fn_c_try_link "$LINENO"; then :
14186
 
  supported=yes
14187
 
else
14188
 
  supported=no
14189
 
fi
14190
 
rm -f core conftest.err conftest.$ac_objext \
14191
 
    conftest$ac_exeext conftest.$ac_ext
14192
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14193
 
$as_echo "$supported" >&6; }
14194
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14195
 
 
14196
 
                if test "$supported" = "yes" ; then
14197
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14198
 
                        found="yes"
14199
 
                fi
14200
 
        fi
14201
 
 
14202
 
        if test $found = "no" ; then
14203
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14204
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205
 
                fi
14206
 
 
14207
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14208
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14209
 
                fi
14210
 
 
14211
 
                CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14212
 
 
14213
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14214
 
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14215
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216
 
/* end confdefs.h.  */
14217
 
int i;
14218
 
int
14219
 
main ()
14220
 
{
14221
 
 
14222
 
  ;
14223
 
  return 0;
14224
 
}
14225
 
_ACEOF
14226
 
if ac_fn_c_try_link "$LINENO"; then :
14227
 
  supported=yes
14228
 
else
14229
 
  supported=no
14230
 
fi
14231
 
rm -f core conftest.err conftest.$ac_objext \
14232
 
    conftest$ac_exeext conftest.$ac_ext
14233
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14234
 
$as_echo "$supported" >&6; }
14235
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14236
 
 
14237
 
                if test "$supported" = "yes" ; then
14238
 
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14239
 
                        found="yes"
14240
 
                fi
14241
 
        fi
14242
 
 
14243
 
 
14244
 
 
14245
 
 
14246
 
 
14247
 
 
14248
 
 
14249
 
xorg_testset_save_CFLAGS="$CFLAGS"
14250
 
 
14251
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14252
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256
 
/* end confdefs.h.  */
14257
 
int i;
14258
 
_ACEOF
14259
 
if ac_fn_c_try_compile "$LINENO"; then :
14260
 
  xorg_testset_unknown_warning_option=yes
14261
 
else
14262
 
  xorg_testset_unknown_warning_option=no
14263
 
fi
14264
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14266
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14267
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14268
 
fi
14269
 
 
14270
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14271
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14272
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273
 
        fi
14274
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14275
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14276
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14277
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278
 
/* end confdefs.h.  */
14279
 
int i;
14280
 
_ACEOF
14281
 
if ac_fn_c_try_compile "$LINENO"; then :
14282
 
  xorg_testset_unused_command_line_argument=yes
14283
 
else
14284
 
  xorg_testset_unused_command_line_argument=no
14285
 
fi
14286
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14288
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14289
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14290
 
fi
14291
 
 
14292
 
found="no"
14293
 
 
14294
 
        if test $found = "no" ; then
14295
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14296
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14297
 
                fi
14298
 
 
14299
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14300
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14301
 
                fi
14302
 
 
14303
 
                CFLAGS="$CFLAGS -Werror=trigraphs"
14304
 
 
14305
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14306
 
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14307
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308
 
/* end confdefs.h.  */
14309
 
int i;
14310
 
int
14311
 
main ()
14312
 
{
14313
 
 
14314
 
  ;
14315
 
  return 0;
14316
 
}
14317
 
_ACEOF
14318
 
if ac_fn_c_try_link "$LINENO"; then :
14319
 
  supported=yes
14320
 
else
14321
 
  supported=no
14322
 
fi
14323
 
rm -f core conftest.err conftest.$ac_objext \
14324
 
    conftest$ac_exeext conftest.$ac_ext
14325
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14326
 
$as_echo "$supported" >&6; }
14327
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14328
 
 
14329
 
                if test "$supported" = "yes" ; then
14330
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14331
 
                        found="yes"
14332
 
                fi
14333
 
        fi
14334
 
 
14335
 
 
14336
 
 
14337
 
 
14338
 
 
14339
 
 
14340
 
 
14341
 
xorg_testset_save_CFLAGS="$CFLAGS"
14342
 
 
14343
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14344
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14346
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14347
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348
 
/* end confdefs.h.  */
14349
 
int i;
14350
 
_ACEOF
14351
 
if ac_fn_c_try_compile "$LINENO"; then :
14352
 
  xorg_testset_unknown_warning_option=yes
14353
 
else
14354
 
  xorg_testset_unknown_warning_option=no
14355
 
fi
14356
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14358
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14359
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14360
 
fi
14361
 
 
14362
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14363
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14364
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365
 
        fi
14366
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14368
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14369
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370
 
/* end confdefs.h.  */
14371
 
int i;
14372
 
_ACEOF
14373
 
if ac_fn_c_try_compile "$LINENO"; then :
14374
 
  xorg_testset_unused_command_line_argument=yes
14375
 
else
14376
 
  xorg_testset_unused_command_line_argument=no
14377
 
fi
14378
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14380
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14381
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14382
 
fi
14383
 
 
14384
 
found="no"
14385
 
 
14386
 
        if test $found = "no" ; then
14387
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14388
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14389
 
                fi
14390
 
 
14391
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14392
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14393
 
                fi
14394
 
 
14395
 
                CFLAGS="$CFLAGS -Werror=array-bounds"
14396
 
 
14397
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14398
 
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14399
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400
 
/* end confdefs.h.  */
14401
 
int i;
14402
 
int
14403
 
main ()
14404
 
{
14405
 
 
14406
 
  ;
14407
 
  return 0;
14408
 
}
14409
 
_ACEOF
14410
 
if ac_fn_c_try_link "$LINENO"; then :
14411
 
  supported=yes
14412
 
else
14413
 
  supported=no
14414
 
fi
14415
 
rm -f core conftest.err conftest.$ac_objext \
14416
 
    conftest$ac_exeext conftest.$ac_ext
14417
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14418
 
$as_echo "$supported" >&6; }
14419
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14420
 
 
14421
 
                if test "$supported" = "yes" ; then
14422
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14423
 
                        found="yes"
14424
 
                fi
14425
 
        fi
14426
 
 
14427
 
 
14428
 
 
14429
 
 
14430
 
 
14431
 
 
14432
 
 
14433
 
xorg_testset_save_CFLAGS="$CFLAGS"
14434
 
 
14435
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14436
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14438
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14439
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440
 
/* end confdefs.h.  */
14441
 
int i;
14442
 
_ACEOF
14443
 
if ac_fn_c_try_compile "$LINENO"; then :
14444
 
  xorg_testset_unknown_warning_option=yes
14445
 
else
14446
 
  xorg_testset_unknown_warning_option=no
14447
 
fi
14448
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14450
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14451
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14452
 
fi
14453
 
 
14454
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14455
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14456
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14457
 
        fi
14458
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14459
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14460
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14461
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462
 
/* end confdefs.h.  */
14463
 
int i;
14464
 
_ACEOF
14465
 
if ac_fn_c_try_compile "$LINENO"; then :
14466
 
  xorg_testset_unused_command_line_argument=yes
14467
 
else
14468
 
  xorg_testset_unused_command_line_argument=no
14469
 
fi
14470
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14472
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14473
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14474
 
fi
14475
 
 
14476
 
found="no"
14477
 
 
14478
 
        if test $found = "no" ; then
14479
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14480
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481
 
                fi
14482
 
 
14483
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14484
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14485
 
                fi
14486
 
 
14487
 
                CFLAGS="$CFLAGS -Werror=write-strings"
14488
 
 
14489
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14490
 
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14491
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492
 
/* end confdefs.h.  */
14493
 
int i;
14494
 
int
14495
 
main ()
14496
 
{
14497
 
 
14498
 
  ;
14499
 
  return 0;
14500
 
}
14501
 
_ACEOF
14502
 
if ac_fn_c_try_link "$LINENO"; then :
14503
 
  supported=yes
14504
 
else
14505
 
  supported=no
14506
 
fi
14507
 
rm -f core conftest.err conftest.$ac_objext \
14508
 
    conftest$ac_exeext conftest.$ac_ext
14509
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14510
 
$as_echo "$supported" >&6; }
14511
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14512
 
 
14513
 
                if test "$supported" = "yes" ; then
14514
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14515
 
                        found="yes"
14516
 
                fi
14517
 
        fi
14518
 
 
14519
 
 
14520
 
 
14521
 
 
14522
 
 
14523
 
 
14524
 
 
14525
 
xorg_testset_save_CFLAGS="$CFLAGS"
14526
 
 
14527
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14528
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14529
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14530
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14531
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532
 
/* end confdefs.h.  */
14533
 
int i;
14534
 
_ACEOF
14535
 
if ac_fn_c_try_compile "$LINENO"; then :
14536
 
  xorg_testset_unknown_warning_option=yes
14537
 
else
14538
 
  xorg_testset_unknown_warning_option=no
14539
 
fi
14540
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14542
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14543
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14544
 
fi
14545
 
 
14546
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14547
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14548
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14549
 
        fi
14550
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14551
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14552
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14553
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554
 
/* end confdefs.h.  */
14555
 
int i;
14556
 
_ACEOF
14557
 
if ac_fn_c_try_compile "$LINENO"; then :
14558
 
  xorg_testset_unused_command_line_argument=yes
14559
 
else
14560
 
  xorg_testset_unused_command_line_argument=no
14561
 
fi
14562
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14564
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14565
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14566
 
fi
14567
 
 
14568
 
found="no"
14569
 
 
14570
 
        if test $found = "no" ; then
14571
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14572
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573
 
                fi
14574
 
 
14575
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14576
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14577
 
                fi
14578
 
 
14579
 
                CFLAGS="$CFLAGS -Werror=address"
14580
 
 
14581
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14582
 
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14583
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584
 
/* end confdefs.h.  */
14585
 
int i;
14586
 
int
14587
 
main ()
14588
 
{
14589
 
 
14590
 
  ;
14591
 
  return 0;
14592
 
}
14593
 
_ACEOF
14594
 
if ac_fn_c_try_link "$LINENO"; then :
14595
 
  supported=yes
14596
 
else
14597
 
  supported=no
14598
 
fi
14599
 
rm -f core conftest.err conftest.$ac_objext \
14600
 
    conftest$ac_exeext conftest.$ac_ext
14601
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14602
 
$as_echo "$supported" >&6; }
14603
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14604
 
 
14605
 
                if test "$supported" = "yes" ; then
14606
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
14607
 
                        found="yes"
14608
 
                fi
14609
 
        fi
14610
 
 
14611
 
 
14612
 
 
14613
 
 
14614
 
 
14615
 
 
14616
 
 
14617
 
xorg_testset_save_CFLAGS="$CFLAGS"
14618
 
 
14619
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14620
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14622
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14623
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624
 
/* end confdefs.h.  */
14625
 
int i;
14626
 
_ACEOF
14627
 
if ac_fn_c_try_compile "$LINENO"; then :
14628
 
  xorg_testset_unknown_warning_option=yes
14629
 
else
14630
 
  xorg_testset_unknown_warning_option=no
14631
 
fi
14632
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14634
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14635
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14636
 
fi
14637
 
 
14638
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14639
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14640
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14641
 
        fi
14642
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14644
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14645
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646
 
/* end confdefs.h.  */
14647
 
int i;
14648
 
_ACEOF
14649
 
if ac_fn_c_try_compile "$LINENO"; then :
14650
 
  xorg_testset_unused_command_line_argument=yes
14651
 
else
14652
 
  xorg_testset_unused_command_line_argument=no
14653
 
fi
14654
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14656
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14657
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14658
 
fi
14659
 
 
14660
 
found="no"
14661
 
 
14662
 
        if test $found = "no" ; then
14663
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14664
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14665
 
                fi
14666
 
 
14667
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14668
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14669
 
                fi
14670
 
 
14671
 
                CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
14672
 
 
14673
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
14674
 
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
14675
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676
 
/* end confdefs.h.  */
14677
 
int i;
14678
 
int
14679
 
main ()
14680
 
{
14681
 
 
14682
 
  ;
14683
 
  return 0;
14684
 
}
14685
 
_ACEOF
14686
 
if ac_fn_c_try_link "$LINENO"; then :
14687
 
  supported=yes
14688
 
else
14689
 
  supported=no
14690
 
fi
14691
 
rm -f core conftest.err conftest.$ac_objext \
14692
 
    conftest$ac_exeext conftest.$ac_ext
14693
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14694
 
$as_echo "$supported" >&6; }
14695
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14696
 
 
14697
 
                if test "$supported" = "yes" ; then
14698
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
14699
 
                        found="yes"
14700
 
                fi
14701
 
        fi
14702
 
 
14703
 
        if test $found = "no" ; then
14704
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14705
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14706
 
                fi
14707
 
 
14708
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14709
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14710
 
                fi
14711
 
 
14712
 
                CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
14713
 
 
14714
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
14715
 
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
14716
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717
 
/* end confdefs.h.  */
14718
 
int i;
14719
 
int
14720
 
main ()
14721
 
{
14722
 
 
14723
 
  ;
14724
 
  return 0;
14725
 
}
14726
 
_ACEOF
14727
 
if ac_fn_c_try_link "$LINENO"; then :
14728
 
  supported=yes
14729
 
else
14730
 
  supported=no
14731
 
fi
14732
 
rm -f core conftest.err conftest.$ac_objext \
14733
 
    conftest$ac_exeext conftest.$ac_ext
14734
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14735
 
$as_echo "$supported" >&6; }
14736
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14737
 
 
14738
 
                if test "$supported" = "yes" ; then
14739
 
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
14740
 
                        found="yes"
14741
 
                fi
14742
 
        fi
14743
 
 
14744
 
 
14745
 
 
14746
 
 
14747
 
 
14748
 
 
14749
 
 
14750
 
xorg_testset_save_CFLAGS="$CFLAGS"
14751
 
 
14752
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14753
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14754
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14755
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14756
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757
 
/* end confdefs.h.  */
14758
 
int i;
14759
 
_ACEOF
14760
 
if ac_fn_c_try_compile "$LINENO"; then :
14761
 
  xorg_testset_unknown_warning_option=yes
14762
 
else
14763
 
  xorg_testset_unknown_warning_option=no
14764
 
fi
14765
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14767
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14768
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14769
 
fi
14770
 
 
14771
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14772
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14773
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14774
 
        fi
14775
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14776
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14777
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14778
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779
 
/* end confdefs.h.  */
14780
 
int i;
14781
 
_ACEOF
14782
 
if ac_fn_c_try_compile "$LINENO"; then :
14783
 
  xorg_testset_unused_command_line_argument=yes
14784
 
else
14785
 
  xorg_testset_unused_command_line_argument=no
14786
 
fi
14787
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14789
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14790
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14791
 
fi
14792
 
 
14793
 
found="no"
14794
 
 
14795
 
        if test $found = "no" ; then
14796
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14797
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14798
 
                fi
14799
 
 
14800
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14801
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14802
 
                fi
14803
 
 
14804
 
                CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
14805
 
 
14806
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
14807
 
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
14808
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809
 
/* end confdefs.h.  */
14810
 
int i;
14811
 
int
14812
 
main ()
14813
 
{
14814
 
 
14815
 
  ;
14816
 
  return 0;
14817
 
}
14818
 
_ACEOF
14819
 
if ac_fn_c_try_link "$LINENO"; then :
14820
 
  supported=yes
14821
 
else
14822
 
  supported=no
14823
 
fi
14824
 
rm -f core conftest.err conftest.$ac_objext \
14825
 
    conftest$ac_exeext conftest.$ac_ext
14826
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827
 
$as_echo "$supported" >&6; }
14828
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14829
 
 
14830
 
                if test "$supported" = "yes" ; then
14831
 
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
14832
 
                        found="yes"
14833
 
                fi
14834
 
        fi
14835
 
 
14836
 
 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
14837
 
else
14838
 
{ $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
14839
 
$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;}
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
 
14845
 
xorg_testset_save_CFLAGS="$CFLAGS"
14846
 
 
14847
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14848
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14850
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14851
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852
 
/* end confdefs.h.  */
14853
 
int i;
14854
 
_ACEOF
14855
 
if ac_fn_c_try_compile "$LINENO"; then :
14856
 
  xorg_testset_unknown_warning_option=yes
14857
 
else
14858
 
  xorg_testset_unknown_warning_option=no
14859
 
fi
14860
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14862
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14863
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14864
 
fi
14865
 
 
14866
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14867
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14868
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14869
 
        fi
14870
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14872
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14873
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874
 
/* end confdefs.h.  */
14875
 
int i;
14876
 
_ACEOF
14877
 
if ac_fn_c_try_compile "$LINENO"; then :
14878
 
  xorg_testset_unused_command_line_argument=yes
14879
 
else
14880
 
  xorg_testset_unused_command_line_argument=no
14881
 
fi
14882
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14883
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14884
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14885
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14886
 
fi
14887
 
 
14888
 
found="no"
14889
 
 
14890
 
        if test $found = "no" ; then
14891
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14892
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14893
 
                fi
14894
 
 
14895
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14896
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14897
 
                fi
14898
 
 
14899
 
                CFLAGS="$CFLAGS -Wimplicit"
14900
 
 
14901
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
14902
 
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
14903
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904
 
/* end confdefs.h.  */
14905
 
int i;
14906
 
int
14907
 
main ()
14908
 
{
14909
 
 
14910
 
  ;
14911
 
  return 0;
14912
 
}
14913
 
_ACEOF
14914
 
if ac_fn_c_try_link "$LINENO"; then :
14915
 
  supported=yes
14916
 
else
14917
 
  supported=no
14918
 
fi
14919
 
rm -f core conftest.err conftest.$ac_objext \
14920
 
    conftest$ac_exeext conftest.$ac_ext
14921
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14922
 
$as_echo "$supported" >&6; }
14923
 
                CFLAGS="$xorg_testset_save_CFLAGS"
14924
 
 
14925
 
                if test "$supported" = "yes" ; then
14926
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
14927
 
                        found="yes"
14928
 
                fi
14929
 
        fi
14930
 
 
14931
 
 
14932
 
 
14933
 
 
14934
 
 
14935
 
 
14936
 
 
14937
 
xorg_testset_save_CFLAGS="$CFLAGS"
14938
 
 
14939
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14940
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14942
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14943
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944
 
/* end confdefs.h.  */
14945
 
int i;
14946
 
_ACEOF
14947
 
if ac_fn_c_try_compile "$LINENO"; then :
14948
 
  xorg_testset_unknown_warning_option=yes
14949
 
else
14950
 
  xorg_testset_unknown_warning_option=no
14951
 
fi
14952
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14954
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14955
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14956
 
fi
14957
 
 
14958
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14959
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14960
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961
 
        fi
14962
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14963
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14964
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14965
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966
 
/* end confdefs.h.  */
14967
 
int i;
14968
 
_ACEOF
14969
 
if ac_fn_c_try_compile "$LINENO"; then :
14970
 
  xorg_testset_unused_command_line_argument=yes
14971
 
else
14972
 
  xorg_testset_unused_command_line_argument=no
14973
 
fi
14974
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14976
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14977
 
        CFLAGS="$xorg_testset_save_CFLAGS"
14978
 
fi
14979
 
 
14980
 
found="no"
14981
 
 
14982
 
        if test $found = "no" ; then
14983
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14984
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985
 
                fi
14986
 
 
14987
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14988
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14989
 
                fi
14990
 
 
14991
 
                CFLAGS="$CFLAGS -Wnonnull"
14992
 
 
14993
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
14994
 
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
14995
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996
 
/* end confdefs.h.  */
14997
 
int i;
14998
 
int
14999
 
main ()
15000
 
{
15001
 
 
15002
 
  ;
15003
 
  return 0;
15004
 
}
15005
 
_ACEOF
15006
 
if ac_fn_c_try_link "$LINENO"; then :
15007
 
  supported=yes
15008
 
else
15009
 
  supported=no
15010
 
fi
15011
 
rm -f core conftest.err conftest.$ac_objext \
15012
 
    conftest$ac_exeext conftest.$ac_ext
15013
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15014
 
$as_echo "$supported" >&6; }
15015
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15016
 
 
15017
 
                if test "$supported" = "yes" ; then
15018
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15019
 
                        found="yes"
15020
 
                fi
15021
 
        fi
15022
 
 
15023
 
 
15024
 
 
15025
 
 
15026
 
 
15027
 
 
15028
 
 
15029
 
xorg_testset_save_CFLAGS="$CFLAGS"
15030
 
 
15031
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15032
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15033
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15034
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15035
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036
 
/* end confdefs.h.  */
15037
 
int i;
15038
 
_ACEOF
15039
 
if ac_fn_c_try_compile "$LINENO"; then :
15040
 
  xorg_testset_unknown_warning_option=yes
15041
 
else
15042
 
  xorg_testset_unknown_warning_option=no
15043
 
fi
15044
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15046
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15047
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15048
 
fi
15049
 
 
15050
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15051
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15052
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053
 
        fi
15054
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15056
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15057
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058
 
/* end confdefs.h.  */
15059
 
int i;
15060
 
_ACEOF
15061
 
if ac_fn_c_try_compile "$LINENO"; then :
15062
 
  xorg_testset_unused_command_line_argument=yes
15063
 
else
15064
 
  xorg_testset_unused_command_line_argument=no
15065
 
fi
15066
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15068
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15069
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15070
 
fi
15071
 
 
15072
 
found="no"
15073
 
 
15074
 
        if test $found = "no" ; then
15075
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15076
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15077
 
                fi
15078
 
 
15079
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15080
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15081
 
                fi
15082
 
 
15083
 
                CFLAGS="$CFLAGS -Winit-self"
15084
 
 
15085
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15086
 
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15087
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088
 
/* end confdefs.h.  */
15089
 
int i;
15090
 
int
15091
 
main ()
15092
 
{
15093
 
 
15094
 
  ;
15095
 
  return 0;
15096
 
}
15097
 
_ACEOF
15098
 
if ac_fn_c_try_link "$LINENO"; then :
15099
 
  supported=yes
15100
 
else
15101
 
  supported=no
15102
 
fi
15103
 
rm -f core conftest.err conftest.$ac_objext \
15104
 
    conftest$ac_exeext conftest.$ac_ext
15105
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15106
 
$as_echo "$supported" >&6; }
15107
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15108
 
 
15109
 
                if test "$supported" = "yes" ; then
15110
 
                        BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15111
 
                        found="yes"
15112
 
                fi
15113
 
        fi
15114
 
 
15115
 
 
15116
 
 
15117
 
 
15118
 
 
15119
 
 
15120
 
 
15121
 
xorg_testset_save_CFLAGS="$CFLAGS"
15122
 
 
15123
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15124
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15126
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15127
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128
 
/* end confdefs.h.  */
15129
 
int i;
15130
 
_ACEOF
15131
 
if ac_fn_c_try_compile "$LINENO"; then :
15132
 
  xorg_testset_unknown_warning_option=yes
15133
 
else
15134
 
  xorg_testset_unknown_warning_option=no
15135
 
fi
15136
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15138
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15139
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15140
 
fi
15141
 
 
15142
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15143
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15144
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15145
 
        fi
15146
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15148
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15149
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150
 
/* end confdefs.h.  */
15151
 
int i;
15152
 
_ACEOF
15153
 
if ac_fn_c_try_compile "$LINENO"; then :
15154
 
  xorg_testset_unused_command_line_argument=yes
15155
 
else
15156
 
  xorg_testset_unused_command_line_argument=no
15157
 
fi
15158
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15160
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15161
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15162
 
fi
15163
 
 
15164
 
found="no"
15165
 
 
15166
 
        if test $found = "no" ; then
15167
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15168
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169
 
                fi
15170
 
 
15171
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15172
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15173
 
                fi
15174
 
 
15175
 
                CFLAGS="$CFLAGS -Wmain"
15176
 
 
15177
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15178
 
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15179
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180
 
/* end confdefs.h.  */
15181
 
int i;
15182
 
int
15183
 
main ()
15184
 
{
15185
 
 
15186
 
  ;
15187
 
  return 0;
15188
 
}
15189
 
_ACEOF
15190
 
if ac_fn_c_try_link "$LINENO"; then :
15191
 
  supported=yes
15192
 
else
15193
 
  supported=no
15194
 
fi
15195
 
rm -f core conftest.err conftest.$ac_objext \
15196
 
    conftest$ac_exeext conftest.$ac_ext
15197
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15198
 
$as_echo "$supported" >&6; }
15199
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15200
 
 
15201
 
                if test "$supported" = "yes" ; then
15202
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15203
 
                        found="yes"
15204
 
                fi
15205
 
        fi
15206
 
 
15207
 
 
15208
 
 
15209
 
 
15210
 
 
15211
 
 
15212
 
 
15213
 
xorg_testset_save_CFLAGS="$CFLAGS"
15214
 
 
15215
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15216
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15217
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15218
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15219
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220
 
/* end confdefs.h.  */
15221
 
int i;
15222
 
_ACEOF
15223
 
if ac_fn_c_try_compile "$LINENO"; then :
15224
 
  xorg_testset_unknown_warning_option=yes
15225
 
else
15226
 
  xorg_testset_unknown_warning_option=no
15227
 
fi
15228
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15230
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15231
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15232
 
fi
15233
 
 
15234
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15235
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15236
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15237
 
        fi
15238
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15240
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15241
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242
 
/* end confdefs.h.  */
15243
 
int i;
15244
 
_ACEOF
15245
 
if ac_fn_c_try_compile "$LINENO"; then :
15246
 
  xorg_testset_unused_command_line_argument=yes
15247
 
else
15248
 
  xorg_testset_unused_command_line_argument=no
15249
 
fi
15250
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15252
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15253
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15254
 
fi
15255
 
 
15256
 
found="no"
15257
 
 
15258
 
        if test $found = "no" ; then
15259
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15260
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15261
 
                fi
15262
 
 
15263
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15264
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265
 
                fi
15266
 
 
15267
 
                CFLAGS="$CFLAGS -Wmissing-braces"
15268
 
 
15269
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15270
 
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15271
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272
 
/* end confdefs.h.  */
15273
 
int i;
15274
 
int
15275
 
main ()
15276
 
{
15277
 
 
15278
 
  ;
15279
 
  return 0;
15280
 
}
15281
 
_ACEOF
15282
 
if ac_fn_c_try_link "$LINENO"; then :
15283
 
  supported=yes
15284
 
else
15285
 
  supported=no
15286
 
fi
15287
 
rm -f core conftest.err conftest.$ac_objext \
15288
 
    conftest$ac_exeext conftest.$ac_ext
15289
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15290
 
$as_echo "$supported" >&6; }
15291
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15292
 
 
15293
 
                if test "$supported" = "yes" ; then
15294
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15295
 
                        found="yes"
15296
 
                fi
15297
 
        fi
15298
 
 
15299
 
 
15300
 
 
15301
 
 
15302
 
 
15303
 
 
15304
 
 
15305
 
xorg_testset_save_CFLAGS="$CFLAGS"
15306
 
 
15307
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15308
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15309
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15310
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15311
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312
 
/* end confdefs.h.  */
15313
 
int i;
15314
 
_ACEOF
15315
 
if ac_fn_c_try_compile "$LINENO"; then :
15316
 
  xorg_testset_unknown_warning_option=yes
15317
 
else
15318
 
  xorg_testset_unknown_warning_option=no
15319
 
fi
15320
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15322
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15323
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15324
 
fi
15325
 
 
15326
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15327
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15328
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15329
 
        fi
15330
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15331
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15332
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15333
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334
 
/* end confdefs.h.  */
15335
 
int i;
15336
 
_ACEOF
15337
 
if ac_fn_c_try_compile "$LINENO"; then :
15338
 
  xorg_testset_unused_command_line_argument=yes
15339
 
else
15340
 
  xorg_testset_unused_command_line_argument=no
15341
 
fi
15342
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15344
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15345
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15346
 
fi
15347
 
 
15348
 
found="no"
15349
 
 
15350
 
        if test $found = "no" ; then
15351
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15352
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15353
 
                fi
15354
 
 
15355
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15356
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15357
 
                fi
15358
 
 
15359
 
                CFLAGS="$CFLAGS -Wsequence-point"
15360
 
 
15361
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15362
 
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15363
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364
 
/* end confdefs.h.  */
15365
 
int i;
15366
 
int
15367
 
main ()
15368
 
{
15369
 
 
15370
 
  ;
15371
 
  return 0;
15372
 
}
15373
 
_ACEOF
15374
 
if ac_fn_c_try_link "$LINENO"; then :
15375
 
  supported=yes
15376
 
else
15377
 
  supported=no
15378
 
fi
15379
 
rm -f core conftest.err conftest.$ac_objext \
15380
 
    conftest$ac_exeext conftest.$ac_ext
15381
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15382
 
$as_echo "$supported" >&6; }
15383
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15384
 
 
15385
 
                if test "$supported" = "yes" ; then
15386
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15387
 
                        found="yes"
15388
 
                fi
15389
 
        fi
15390
 
 
15391
 
 
15392
 
 
15393
 
 
15394
 
 
15395
 
 
15396
 
 
15397
 
xorg_testset_save_CFLAGS="$CFLAGS"
15398
 
 
15399
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15400
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15402
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15403
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404
 
/* end confdefs.h.  */
15405
 
int i;
15406
 
_ACEOF
15407
 
if ac_fn_c_try_compile "$LINENO"; then :
15408
 
  xorg_testset_unknown_warning_option=yes
15409
 
else
15410
 
  xorg_testset_unknown_warning_option=no
15411
 
fi
15412
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15414
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15415
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15416
 
fi
15417
 
 
15418
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15419
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15420
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421
 
        fi
15422
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15423
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15424
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15425
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426
 
/* end confdefs.h.  */
15427
 
int i;
15428
 
_ACEOF
15429
 
if ac_fn_c_try_compile "$LINENO"; then :
15430
 
  xorg_testset_unused_command_line_argument=yes
15431
 
else
15432
 
  xorg_testset_unused_command_line_argument=no
15433
 
fi
15434
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15436
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15437
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15438
 
fi
15439
 
 
15440
 
found="no"
15441
 
 
15442
 
        if test $found = "no" ; then
15443
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15444
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15445
 
                fi
15446
 
 
15447
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15448
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15449
 
                fi
15450
 
 
15451
 
                CFLAGS="$CFLAGS -Wreturn-type"
15452
 
 
15453
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
15454
 
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
15455
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456
 
/* end confdefs.h.  */
15457
 
int i;
15458
 
int
15459
 
main ()
15460
 
{
15461
 
 
15462
 
  ;
15463
 
  return 0;
15464
 
}
15465
 
_ACEOF
15466
 
if ac_fn_c_try_link "$LINENO"; then :
15467
 
  supported=yes
15468
 
else
15469
 
  supported=no
15470
 
fi
15471
 
rm -f core conftest.err conftest.$ac_objext \
15472
 
    conftest$ac_exeext conftest.$ac_ext
15473
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474
 
$as_echo "$supported" >&6; }
15475
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15476
 
 
15477
 
                if test "$supported" = "yes" ; then
15478
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
15479
 
                        found="yes"
15480
 
                fi
15481
 
        fi
15482
 
 
15483
 
 
15484
 
 
15485
 
 
15486
 
 
15487
 
 
15488
 
 
15489
 
xorg_testset_save_CFLAGS="$CFLAGS"
15490
 
 
15491
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15492
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15494
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15495
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496
 
/* end confdefs.h.  */
15497
 
int i;
15498
 
_ACEOF
15499
 
if ac_fn_c_try_compile "$LINENO"; then :
15500
 
  xorg_testset_unknown_warning_option=yes
15501
 
else
15502
 
  xorg_testset_unknown_warning_option=no
15503
 
fi
15504
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15506
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15507
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15508
 
fi
15509
 
 
15510
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15511
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15512
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15513
 
        fi
15514
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15515
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15516
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15517
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518
 
/* end confdefs.h.  */
15519
 
int i;
15520
 
_ACEOF
15521
 
if ac_fn_c_try_compile "$LINENO"; then :
15522
 
  xorg_testset_unused_command_line_argument=yes
15523
 
else
15524
 
  xorg_testset_unused_command_line_argument=no
15525
 
fi
15526
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15528
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15529
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15530
 
fi
15531
 
 
15532
 
found="no"
15533
 
 
15534
 
        if test $found = "no" ; then
15535
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15536
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537
 
                fi
15538
 
 
15539
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15540
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15541
 
                fi
15542
 
 
15543
 
                CFLAGS="$CFLAGS -Wtrigraphs"
15544
 
 
15545
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
15546
 
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
15547
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548
 
/* end confdefs.h.  */
15549
 
int i;
15550
 
int
15551
 
main ()
15552
 
{
15553
 
 
15554
 
  ;
15555
 
  return 0;
15556
 
}
15557
 
_ACEOF
15558
 
if ac_fn_c_try_link "$LINENO"; then :
15559
 
  supported=yes
15560
 
else
15561
 
  supported=no
15562
 
fi
15563
 
rm -f core conftest.err conftest.$ac_objext \
15564
 
    conftest$ac_exeext conftest.$ac_ext
15565
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15566
 
$as_echo "$supported" >&6; }
15567
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15568
 
 
15569
 
                if test "$supported" = "yes" ; then
15570
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
15571
 
                        found="yes"
15572
 
                fi
15573
 
        fi
15574
 
 
15575
 
 
15576
 
 
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
 
xorg_testset_save_CFLAGS="$CFLAGS"
15582
 
 
15583
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15584
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588
 
/* end confdefs.h.  */
15589
 
int i;
15590
 
_ACEOF
15591
 
if ac_fn_c_try_compile "$LINENO"; then :
15592
 
  xorg_testset_unknown_warning_option=yes
15593
 
else
15594
 
  xorg_testset_unknown_warning_option=no
15595
 
fi
15596
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15598
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15599
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15600
 
fi
15601
 
 
15602
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15603
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15604
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15605
 
        fi
15606
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15607
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15608
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15609
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610
 
/* end confdefs.h.  */
15611
 
int i;
15612
 
_ACEOF
15613
 
if ac_fn_c_try_compile "$LINENO"; then :
15614
 
  xorg_testset_unused_command_line_argument=yes
15615
 
else
15616
 
  xorg_testset_unused_command_line_argument=no
15617
 
fi
15618
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15620
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15621
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15622
 
fi
15623
 
 
15624
 
found="no"
15625
 
 
15626
 
        if test $found = "no" ; then
15627
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15628
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629
 
                fi
15630
 
 
15631
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15632
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15633
 
                fi
15634
 
 
15635
 
                CFLAGS="$CFLAGS -Warray-bounds"
15636
 
 
15637
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
15638
 
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
15639
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640
 
/* end confdefs.h.  */
15641
 
int i;
15642
 
int
15643
 
main ()
15644
 
{
15645
 
 
15646
 
  ;
15647
 
  return 0;
15648
 
}
15649
 
_ACEOF
15650
 
if ac_fn_c_try_link "$LINENO"; then :
15651
 
  supported=yes
15652
 
else
15653
 
  supported=no
15654
 
fi
15655
 
rm -f core conftest.err conftest.$ac_objext \
15656
 
    conftest$ac_exeext conftest.$ac_ext
15657
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15658
 
$as_echo "$supported" >&6; }
15659
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15660
 
 
15661
 
                if test "$supported" = "yes" ; then
15662
 
                        BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
15663
 
                        found="yes"
15664
 
                fi
15665
 
        fi
15666
 
 
15667
 
 
15668
 
 
15669
 
 
15670
 
 
15671
 
 
15672
 
 
15673
 
xorg_testset_save_CFLAGS="$CFLAGS"
15674
 
 
15675
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15676
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15678
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15679
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680
 
/* end confdefs.h.  */
15681
 
int i;
15682
 
_ACEOF
15683
 
if ac_fn_c_try_compile "$LINENO"; then :
15684
 
  xorg_testset_unknown_warning_option=yes
15685
 
else
15686
 
  xorg_testset_unknown_warning_option=no
15687
 
fi
15688
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15690
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15691
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15692
 
fi
15693
 
 
15694
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15695
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15696
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15697
 
        fi
15698
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15699
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15700
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15701
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702
 
/* end confdefs.h.  */
15703
 
int i;
15704
 
_ACEOF
15705
 
if ac_fn_c_try_compile "$LINENO"; then :
15706
 
  xorg_testset_unused_command_line_argument=yes
15707
 
else
15708
 
  xorg_testset_unused_command_line_argument=no
15709
 
fi
15710
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15712
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15713
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15714
 
fi
15715
 
 
15716
 
found="no"
15717
 
 
15718
 
        if test $found = "no" ; then
15719
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15720
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15721
 
                fi
15722
 
 
15723
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15724
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15725
 
                fi
15726
 
 
15727
 
                CFLAGS="$CFLAGS -Wwrite-strings"
15728
 
 
15729
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
15730
 
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
15731
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732
 
/* end confdefs.h.  */
15733
 
int i;
15734
 
int
15735
 
main ()
15736
 
{
15737
 
 
15738
 
  ;
15739
 
  return 0;
15740
 
}
15741
 
_ACEOF
15742
 
if ac_fn_c_try_link "$LINENO"; then :
15743
 
  supported=yes
15744
 
else
15745
 
  supported=no
15746
 
fi
15747
 
rm -f core conftest.err conftest.$ac_objext \
15748
 
    conftest$ac_exeext conftest.$ac_ext
15749
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15750
 
$as_echo "$supported" >&6; }
15751
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15752
 
 
15753
 
                if test "$supported" = "yes" ; then
15754
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
15755
 
                        found="yes"
15756
 
                fi
15757
 
        fi
15758
 
 
15759
 
 
15760
 
 
15761
 
 
15762
 
 
15763
 
 
15764
 
 
15765
 
xorg_testset_save_CFLAGS="$CFLAGS"
15766
 
 
15767
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15768
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15769
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15770
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15771
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772
 
/* end confdefs.h.  */
15773
 
int i;
15774
 
_ACEOF
15775
 
if ac_fn_c_try_compile "$LINENO"; then :
15776
 
  xorg_testset_unknown_warning_option=yes
15777
 
else
15778
 
  xorg_testset_unknown_warning_option=no
15779
 
fi
15780
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15782
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15783
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15784
 
fi
15785
 
 
15786
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15787
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15788
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15789
 
        fi
15790
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15791
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15792
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15793
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794
 
/* end confdefs.h.  */
15795
 
int i;
15796
 
_ACEOF
15797
 
if ac_fn_c_try_compile "$LINENO"; then :
15798
 
  xorg_testset_unused_command_line_argument=yes
15799
 
else
15800
 
  xorg_testset_unused_command_line_argument=no
15801
 
fi
15802
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15804
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15805
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15806
 
fi
15807
 
 
15808
 
found="no"
15809
 
 
15810
 
        if test $found = "no" ; then
15811
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15812
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813
 
                fi
15814
 
 
15815
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15816
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817
 
                fi
15818
 
 
15819
 
                CFLAGS="$CFLAGS -Waddress"
15820
 
 
15821
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
15822
 
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
15823
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824
 
/* end confdefs.h.  */
15825
 
int i;
15826
 
int
15827
 
main ()
15828
 
{
15829
 
 
15830
 
  ;
15831
 
  return 0;
15832
 
}
15833
 
_ACEOF
15834
 
if ac_fn_c_try_link "$LINENO"; then :
15835
 
  supported=yes
15836
 
else
15837
 
  supported=no
15838
 
fi
15839
 
rm -f core conftest.err conftest.$ac_objext \
15840
 
    conftest$ac_exeext conftest.$ac_ext
15841
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15842
 
$as_echo "$supported" >&6; }
15843
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15844
 
 
15845
 
                if test "$supported" = "yes" ; then
15846
 
                        BASE_CFLAGS="$BASE_CFLAGS -Waddress"
15847
 
                        found="yes"
15848
 
                fi
15849
 
        fi
15850
 
 
15851
 
 
15852
 
 
15853
 
 
15854
 
 
15855
 
 
15856
 
 
15857
 
xorg_testset_save_CFLAGS="$CFLAGS"
15858
 
 
15859
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15860
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15861
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15862
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15863
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864
 
/* end confdefs.h.  */
15865
 
int i;
15866
 
_ACEOF
15867
 
if ac_fn_c_try_compile "$LINENO"; then :
15868
 
  xorg_testset_unknown_warning_option=yes
15869
 
else
15870
 
  xorg_testset_unknown_warning_option=no
15871
 
fi
15872
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15874
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15875
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15876
 
fi
15877
 
 
15878
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15879
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15880
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881
 
        fi
15882
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15883
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15884
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15885
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886
 
/* end confdefs.h.  */
15887
 
int i;
15888
 
_ACEOF
15889
 
if ac_fn_c_try_compile "$LINENO"; then :
15890
 
  xorg_testset_unused_command_line_argument=yes
15891
 
else
15892
 
  xorg_testset_unused_command_line_argument=no
15893
 
fi
15894
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15896
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15897
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15898
 
fi
15899
 
 
15900
 
found="no"
15901
 
 
15902
 
        if test $found = "no" ; then
15903
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15904
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15905
 
                fi
15906
 
 
15907
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15908
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909
 
                fi
15910
 
 
15911
 
                CFLAGS="$CFLAGS -Wint-to-pointer-cast"
15912
 
 
15913
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
15914
 
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
15915
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916
 
/* end confdefs.h.  */
15917
 
int i;
15918
 
int
15919
 
main ()
15920
 
{
15921
 
 
15922
 
  ;
15923
 
  return 0;
15924
 
}
15925
 
_ACEOF
15926
 
if ac_fn_c_try_link "$LINENO"; then :
15927
 
  supported=yes
15928
 
else
15929
 
  supported=no
15930
 
fi
15931
 
rm -f core conftest.err conftest.$ac_objext \
15932
 
    conftest$ac_exeext conftest.$ac_ext
15933
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15934
 
$as_echo "$supported" >&6; }
15935
 
                CFLAGS="$xorg_testset_save_CFLAGS"
15936
 
 
15937
 
                if test "$supported" = "yes" ; then
15938
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
15939
 
                        found="yes"
15940
 
                fi
15941
 
        fi
15942
 
 
15943
 
 
15944
 
 
15945
 
 
15946
 
 
15947
 
 
15948
 
 
15949
 
xorg_testset_save_CFLAGS="$CFLAGS"
15950
 
 
15951
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15952
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15954
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15955
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956
 
/* end confdefs.h.  */
15957
 
int i;
15958
 
_ACEOF
15959
 
if ac_fn_c_try_compile "$LINENO"; then :
15960
 
  xorg_testset_unknown_warning_option=yes
15961
 
else
15962
 
  xorg_testset_unknown_warning_option=no
15963
 
fi
15964
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15965
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15966
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15967
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15968
 
fi
15969
 
 
15970
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15971
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15972
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15973
 
        fi
15974
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15975
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15976
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15977
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978
 
/* end confdefs.h.  */
15979
 
int i;
15980
 
_ACEOF
15981
 
if ac_fn_c_try_compile "$LINENO"; then :
15982
 
  xorg_testset_unused_command_line_argument=yes
15983
 
else
15984
 
  xorg_testset_unused_command_line_argument=no
15985
 
fi
15986
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15988
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15989
 
        CFLAGS="$xorg_testset_save_CFLAGS"
15990
 
fi
15991
 
 
15992
 
found="no"
15993
 
 
15994
 
        if test $found = "no" ; then
15995
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15996
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997
 
                fi
15998
 
 
15999
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16000
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16001
 
                fi
16002
 
 
16003
 
                CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16004
 
 
16005
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16006
 
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16007
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008
 
/* end confdefs.h.  */
16009
 
int i;
16010
 
int
16011
 
main ()
16012
 
{
16013
 
 
16014
 
  ;
16015
 
  return 0;
16016
 
}
16017
 
_ACEOF
16018
 
if ac_fn_c_try_link "$LINENO"; then :
16019
 
  supported=yes
16020
 
else
16021
 
  supported=no
16022
 
fi
16023
 
rm -f core conftest.err conftest.$ac_objext \
16024
 
    conftest$ac_exeext conftest.$ac_ext
16025
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16026
 
$as_echo "$supported" >&6; }
16027
 
                CFLAGS="$xorg_testset_save_CFLAGS"
16028
 
 
16029
 
                if test "$supported" = "yes" ; then
16030
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16031
 
                        found="yes"
16032
 
                fi
16033
 
        fi
16034
 
 
16035
 
 
16036
 
fi
16037
 
 
16038
 
 
16039
 
 
16040
 
 
16041
 
 
16042
 
 
16043
 
CWARNFLAGS="$BASE_CFLAGS"
16044
 
if  test "x$GCC" = xyes ; then
16045
 
    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16046
 
fi
16047
 
 
16048
 
 
16049
 
 
16050
 
 
16051
 
 
16052
 
 
16053
 
# Check whether --enable-strict-compilation was given.
16054
 
if test "${enable_strict_compilation+set}" = set; then :
16055
 
  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16056
 
else
16057
 
  STRICT_COMPILE=no
16058
 
fi
16059
 
 
16060
 
 
16061
 
STRICT_CFLAGS=""
16062
 
 
16063
 
 
16064
 
 
16065
 
 
16066
 
 
16067
 
xorg_testset_save_CFLAGS="$CFLAGS"
16068
 
 
16069
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16070
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16071
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16072
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16073
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074
 
/* end confdefs.h.  */
16075
 
int i;
16076
 
_ACEOF
16077
 
if ac_fn_c_try_compile "$LINENO"; then :
16078
 
  xorg_testset_unknown_warning_option=yes
16079
 
else
16080
 
  xorg_testset_unknown_warning_option=no
16081
 
fi
16082
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
16084
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
16085
 
        CFLAGS="$xorg_testset_save_CFLAGS"
16086
 
fi
16087
 
 
16088
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16089
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16090
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16091
 
        fi
16092
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16093
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16094
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16095
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096
 
/* end confdefs.h.  */
16097
 
int i;
16098
 
_ACEOF
16099
 
if ac_fn_c_try_compile "$LINENO"; then :
16100
 
  xorg_testset_unused_command_line_argument=yes
16101
 
else
16102
 
  xorg_testset_unused_command_line_argument=no
16103
 
fi
16104
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
16106
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
16107
 
        CFLAGS="$xorg_testset_save_CFLAGS"
16108
 
fi
16109
 
 
16110
 
found="no"
16111
 
 
16112
 
        if test $found = "no" ; then
16113
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16114
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16115
 
                fi
16116
 
 
16117
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16118
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16119
 
                fi
16120
 
 
16121
 
                CFLAGS="$CFLAGS -pedantic"
16122
 
 
16123
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16124
 
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
16125
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126
 
/* end confdefs.h.  */
16127
 
int i;
16128
 
int
16129
 
main ()
16130
 
{
16131
 
 
16132
 
  ;
16133
 
  return 0;
16134
 
}
16135
 
_ACEOF
16136
 
if ac_fn_c_try_link "$LINENO"; then :
16137
 
  supported=yes
16138
 
else
16139
 
  supported=no
16140
 
fi
16141
 
rm -f core conftest.err conftest.$ac_objext \
16142
 
    conftest$ac_exeext conftest.$ac_ext
16143
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16144
 
$as_echo "$supported" >&6; }
16145
 
                CFLAGS="$xorg_testset_save_CFLAGS"
16146
 
 
16147
 
                if test "$supported" = "yes" ; then
16148
 
                        STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16149
 
                        found="yes"
16150
 
                fi
16151
 
        fi
16152
 
 
16153
 
 
16154
 
 
16155
 
 
16156
 
 
16157
 
 
16158
 
 
16159
 
xorg_testset_save_CFLAGS="$CFLAGS"
16160
 
 
16161
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16162
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16164
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16165
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166
 
/* end confdefs.h.  */
16167
 
int i;
16168
 
_ACEOF
16169
 
if ac_fn_c_try_compile "$LINENO"; then :
16170
 
  xorg_testset_unknown_warning_option=yes
16171
 
else
16172
 
  xorg_testset_unknown_warning_option=no
16173
 
fi
16174
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
16176
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
16177
 
        CFLAGS="$xorg_testset_save_CFLAGS"
16178
 
fi
16179
 
 
16180
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16181
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16182
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16183
 
        fi
16184
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16185
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16186
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16187
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188
 
/* end confdefs.h.  */
16189
 
int i;
16190
 
_ACEOF
16191
 
if ac_fn_c_try_compile "$LINENO"; then :
16192
 
  xorg_testset_unused_command_line_argument=yes
16193
 
else
16194
 
  xorg_testset_unused_command_line_argument=no
16195
 
fi
16196
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
16198
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
16199
 
        CFLAGS="$xorg_testset_save_CFLAGS"
16200
 
fi
16201
 
 
16202
 
found="no"
16203
 
 
16204
 
        if test $found = "no" ; then
16205
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16206
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16207
 
                fi
16208
 
 
16209
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16210
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16211
 
                fi
16212
 
 
16213
 
                CFLAGS="$CFLAGS -Werror"
16214
 
 
16215
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
16216
 
$as_echo_n "checking if $CC supports -Werror... " >&6; }
16217
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218
 
/* end confdefs.h.  */
16219
 
int i;
16220
 
int
16221
 
main ()
16222
 
{
16223
 
 
16224
 
  ;
16225
 
  return 0;
16226
 
}
16227
 
_ACEOF
16228
 
if ac_fn_c_try_link "$LINENO"; then :
16229
 
  supported=yes
16230
 
else
16231
 
  supported=no
16232
 
fi
16233
 
rm -f core conftest.err conftest.$ac_objext \
16234
 
    conftest$ac_exeext conftest.$ac_ext
16235
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16236
 
$as_echo "$supported" >&6; }
16237
 
                CFLAGS="$xorg_testset_save_CFLAGS"
16238
 
 
16239
 
                if test "$supported" = "yes" ; then
16240
 
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
16241
 
                        found="yes"
16242
 
                fi
16243
 
        fi
16244
 
 
16245
 
        if test $found = "no" ; then
16246
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16247
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16248
 
                fi
16249
 
 
16250
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16251
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16252
 
                fi
16253
 
 
16254
 
                CFLAGS="$CFLAGS -errwarn"
16255
 
 
16256
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
16257
 
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
16258
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259
 
/* end confdefs.h.  */
16260
 
int i;
16261
 
int
16262
 
main ()
16263
 
{
16264
 
 
16265
 
  ;
16266
 
  return 0;
16267
 
}
16268
 
_ACEOF
16269
 
if ac_fn_c_try_link "$LINENO"; then :
16270
 
  supported=yes
16271
 
else
16272
 
  supported=no
16273
 
fi
16274
 
rm -f core conftest.err conftest.$ac_objext \
16275
 
    conftest$ac_exeext conftest.$ac_ext
16276
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16277
 
$as_echo "$supported" >&6; }
16278
 
                CFLAGS="$xorg_testset_save_CFLAGS"
16279
 
 
16280
 
                if test "$supported" = "yes" ; then
16281
 
                        STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
16282
 
                        found="yes"
16283
 
                fi
16284
 
        fi
16285
 
 
16286
 
 
16287
 
 
16288
 
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
16289
 
# activate it with -Werror, so we add it here explicitly.
16290
 
 
16291
 
 
16292
 
 
16293
 
 
16294
 
 
16295
 
xorg_testset_save_CFLAGS="$CFLAGS"
16296
 
 
16297
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16298
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16299
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16300
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16301
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302
 
/* end confdefs.h.  */
16303
 
int i;
16304
 
_ACEOF
16305
 
if ac_fn_c_try_compile "$LINENO"; then :
16306
 
  xorg_testset_unknown_warning_option=yes
16307
 
else
16308
 
  xorg_testset_unknown_warning_option=no
16309
 
fi
16310
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
16312
 
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
16313
 
        CFLAGS="$xorg_testset_save_CFLAGS"
16314
 
fi
16315
 
 
16316
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16317
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16318
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319
 
        fi
16320
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16321
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16322
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16323
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324
 
/* end confdefs.h.  */
16325
 
int i;
16326
 
_ACEOF
16327
 
if ac_fn_c_try_compile "$LINENO"; then :
16328
 
  xorg_testset_unused_command_line_argument=yes
16329
 
else
16330
 
  xorg_testset_unused_command_line_argument=no
16331
 
fi
16332
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
16334
 
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
16335
 
        CFLAGS="$xorg_testset_save_CFLAGS"
16336
 
fi
16337
 
 
16338
 
found="no"
16339
 
 
16340
 
        if test $found = "no" ; then
16341
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16342
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343
 
                fi
16344
 
 
16345
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16346
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16347
 
                fi
16348
 
 
16349
 
                CFLAGS="$CFLAGS -Werror=attributes"
16350
 
 
16351
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
16352
 
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
16353
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354
 
/* end confdefs.h.  */
16355
 
int i;
16356
 
int
16357
 
main ()
16358
 
{
16359
 
 
16360
 
  ;
16361
 
  return 0;
16362
 
}
16363
 
_ACEOF
16364
 
if ac_fn_c_try_link "$LINENO"; then :
16365
 
  supported=yes
16366
 
else
16367
 
  supported=no
16368
 
fi
16369
 
rm -f core conftest.err conftest.$ac_objext \
16370
 
    conftest$ac_exeext conftest.$ac_ext
16371
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372
 
$as_echo "$supported" >&6; }
16373
 
                CFLAGS="$xorg_testset_save_CFLAGS"
16374
 
 
16375
 
                if test "$supported" = "yes" ; then
16376
 
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
16377
 
                        found="yes"
16378
 
                fi
16379
 
        fi
16380
 
 
16381
 
 
16382
 
 
16383
 
if test "x$STRICT_COMPILE" = "xyes"; then
16384
 
    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
16385
 
    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
16386
 
fi
16387
 
 
16388
 
 
16389
 
 
16390
 
 
16391
 
 
16392
 
 
16393
 
cat >>confdefs.h <<_ACEOF
16394
 
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
16395
 
_ACEOF
16396
 
 
16397
 
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
16398
 
        if test "x$PVM" = "x"; then
16399
 
                PVM="0"
16400
 
        fi
16401
 
 
16402
 
cat >>confdefs.h <<_ACEOF
16403
 
#define PACKAGE_VERSION_MINOR $PVM
16404
 
_ACEOF
16405
 
 
16406
 
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
16407
 
        if test "x$PVP" = "x"; then
16408
 
                PVP="0"
16409
 
        fi
16410
 
 
16411
 
cat >>confdefs.h <<_ACEOF
16412
 
#define PACKAGE_VERSION_PATCHLEVEL $PVP
16413
 
_ACEOF
16414
 
 
16415
 
 
16416
 
 
16417
 
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
16418
 
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
16419
 
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
16420
 
echo 'git directory not found: installing possibly empty changelog.' >&2)"
16421
 
 
16422
 
 
16423
 
 
16424
 
 
16425
 
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
16426
 
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
16427
 
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
16428
 
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
16429
 
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
16430
 
 
16431
 
 
16432
 
 
16433
 
 
16434
 
 
16435
 
 
16436
 
if test x$APP_MAN_SUFFIX = x    ; then
16437
 
    APP_MAN_SUFFIX=1
16438
 
fi
16439
 
if test x$APP_MAN_DIR = x    ; then
16440
 
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
16441
 
fi
16442
 
 
16443
 
if test x$LIB_MAN_SUFFIX = x    ; then
16444
 
    LIB_MAN_SUFFIX=3
16445
 
fi
16446
 
if test x$LIB_MAN_DIR = x    ; then
16447
 
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
16448
 
fi
16449
 
 
16450
 
if test x$FILE_MAN_SUFFIX = x    ; then
16451
 
    case $host_os in
16452
 
        solaris*)       FILE_MAN_SUFFIX=4  ;;
16453
 
        *)              FILE_MAN_SUFFIX=5  ;;
16454
 
    esac
16455
 
fi
16456
 
if test x$FILE_MAN_DIR = x    ; then
16457
 
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
16458
 
fi
16459
 
 
16460
 
if test x$MISC_MAN_SUFFIX = x    ; then
16461
 
    case $host_os in
16462
 
        solaris*)       MISC_MAN_SUFFIX=5  ;;
16463
 
        *)              MISC_MAN_SUFFIX=7  ;;
16464
 
    esac
16465
 
fi
16466
 
if test x$MISC_MAN_DIR = x    ; then
16467
 
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
16468
 
fi
16469
 
 
16470
 
if test x$DRIVER_MAN_SUFFIX = x    ; then
16471
 
    case $host_os in
16472
 
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
16473
 
        *)              DRIVER_MAN_SUFFIX=4  ;;
16474
 
    esac
16475
 
fi
16476
 
if test x$DRIVER_MAN_DIR = x    ; then
16477
 
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
16478
 
fi
16479
 
 
16480
 
if test x$ADMIN_MAN_SUFFIX = x    ; then
16481
 
    case $host_os in
16482
 
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
16483
 
        *)              ADMIN_MAN_SUFFIX=8  ;;
16484
 
    esac
16485
 
fi
16486
 
if test x$ADMIN_MAN_DIR = x    ; then
16487
 
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
16488
 
fi
16489
 
 
16490
 
 
16491
 
 
16492
 
 
16493
 
 
16494
 
 
16495
 
 
16496
 
 
16497
 
 
16498
 
 
16499
 
 
16500
 
 
16501
 
 
16502
 
 
16503
 
 
16504
 
XORG_MAN_PAGE="X Version 11"
16505
 
 
16506
 
MAN_SUBSTS="\
16507
 
        -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
16508
 
        -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
16509
 
        -e 's|__xservername__|Xorg|g' \
16510
 
        -e 's|__xconfigfile__|xorg.conf|g' \
16511
 
        -e 's|__projectroot__|\$(prefix)|g' \
16512
 
        -e 's|__apploaddir__|\$(appdefaultdir)|g' \
16513
 
        -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
16514
 
        -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
16515
 
        -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
16516
 
        -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
16517
 
        -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
16518
 
        -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
16519
 
 
16520
 
 
16521
 
 
16522
 
# Check whether --enable-silent-rules was given.
16523
 
if test "${enable_silent_rules+set}" = set; then :
16524
 
  enableval=$enable_silent_rules;
16525
 
fi
16526
 
 
16527
 
case $enable_silent_rules in
16528
 
yes) AM_DEFAULT_VERBOSITY=0;;
16529
 
no)  AM_DEFAULT_VERBOSITY=1;;
16530
 
*)   AM_DEFAULT_VERBOSITY=0;;
16531
 
esac
16532
 
am_make=${MAKE-make}
16533
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16534
 
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16535
 
if ${am_cv_make_support_nested_variables+:} false; then :
16536
 
  $as_echo_n "(cached) " >&6
16537
 
else
16538
 
  if $as_echo 'TRUE=$(BAR$(V))
16539
 
BAR0=false
16540
 
BAR1=true
16541
 
V=1
16542
 
am__doit:
16543
 
        @$(TRUE)
16544
 
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16545
 
  am_cv_make_support_nested_variables=yes
16546
 
else
16547
 
  am_cv_make_support_nested_variables=no
16548
 
fi
16549
 
fi
16550
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16551
 
$as_echo "$am_cv_make_support_nested_variables" >&6; }
16552
 
if test $am_cv_make_support_nested_variables = yes; then
16553
 
    AM_V='$(V)'
16554
 
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16555
 
else
16556
 
  AM_V=$AM_DEFAULT_VERBOSITY
16557
 
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16558
 
fi
16559
 
AM_BACKSLASH='\'
16560
 
 
16561
 
 
16562
 
 
16563
 
 
16564
 
 
16565
 
 
16566
 
# Check whether --with-doxygen was given.
16567
 
if test "${with_doxygen+set}" = set; then :
16568
 
  withval=$with_doxygen; use_doxygen=$withval
16569
 
else
16570
 
  use_doxygen=auto
16571
 
fi
16572
 
 
16573
 
 
16574
 
 
16575
 
if test "x$use_doxygen" = x"auto"; then
16576
 
   # Extract the first word of "doxygen", so it can be a program name with args.
16577
 
set dummy doxygen; ac_word=$2
16578
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16579
 
$as_echo_n "checking for $ac_word... " >&6; }
16580
 
if ${ac_cv_path_DOXYGEN+:} false; then :
16581
 
  $as_echo_n "(cached) " >&6
16582
 
else
16583
 
  case $DOXYGEN in
16584
 
  [\\/]* | ?:[\\/]*)
16585
 
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16586
 
  ;;
16587
 
  *)
16588
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589
 
for as_dir in $PATH
16590
 
do
16591
 
  IFS=$as_save_IFS
16592
 
  test -z "$as_dir" && as_dir=.
16593
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16594
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16595
 
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16596
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16597
 
    break 2
16598
 
  fi
16599
 
done
16600
 
  done
16601
 
IFS=$as_save_IFS
16602
 
 
16603
 
  ;;
16604
 
esac
16605
 
fi
16606
 
DOXYGEN=$ac_cv_path_DOXYGEN
16607
 
if test -n "$DOXYGEN"; then
16608
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16609
 
$as_echo "$DOXYGEN" >&6; }
16610
 
else
16611
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612
 
$as_echo "no" >&6; }
16613
 
fi
16614
 
 
16615
 
 
16616
 
   if test "x$DOXYGEN" = "x"; then
16617
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
16618
 
$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
16619
 
        have_doxygen=no
16620
 
   else
16621
 
        have_doxygen=yes
16622
 
   fi
16623
 
elif test "x$use_doxygen" = x"yes" ; then
16624
 
   # Extract the first word of "doxygen", so it can be a program name with args.
16625
 
set dummy doxygen; ac_word=$2
16626
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16627
 
$as_echo_n "checking for $ac_word... " >&6; }
16628
 
if ${ac_cv_path_DOXYGEN+:} false; then :
16629
 
  $as_echo_n "(cached) " >&6
16630
 
else
16631
 
  case $DOXYGEN in
16632
 
  [\\/]* | ?:[\\/]*)
16633
 
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16634
 
  ;;
16635
 
  *)
16636
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16637
 
for as_dir in $PATH
16638
 
do
16639
 
  IFS=$as_save_IFS
16640
 
  test -z "$as_dir" && as_dir=.
16641
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16642
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16643
 
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16644
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16645
 
    break 2
16646
 
  fi
16647
 
done
16648
 
  done
16649
 
IFS=$as_save_IFS
16650
 
 
16651
 
  ;;
16652
 
esac
16653
 
fi
16654
 
DOXYGEN=$ac_cv_path_DOXYGEN
16655
 
if test -n "$DOXYGEN"; then
16656
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16657
 
$as_echo "$DOXYGEN" >&6; }
16658
 
else
16659
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660
 
$as_echo "no" >&6; }
16661
 
fi
16662
 
 
16663
 
 
16664
 
   if test "x$DOXYGEN" = "x"; then
16665
 
        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
16666
 
   fi
16667
 
   have_doxygen=yes
16668
 
elif test "x$use_doxygen" = x"no" ; then
16669
 
   if test "x$DOXYGEN" != "x"; then
16670
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
16671
 
$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
16672
 
   fi
16673
 
   have_doxygen=no
16674
 
else
16675
 
   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
16676
 
fi
16677
 
if test "$have_doxygen" = yes; then
16678
 
    # scrape the doxygen version
16679
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
16680
 
$as_echo_n "checking the doxygen version... " >&6; }
16681
 
    doxygen_version=`$DOXYGEN --version 2>/dev/null`
16682
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
16683
 
$as_echo "$doxygen_version" >&6; }
16684
 
    as_arg_v1=$doxygen_version
16685
 
as_arg_v2=1.6.1
16686
 
awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16687
 
case $? in #(
16688
 
  1) :
16689
 
    if test "x$use_doxygen" = xauto; then
16690
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
16691
 
$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
16692
 
            have_doxygen=no
16693
 
        else
16694
 
            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
16695
 
        fi ;; #(
16696
 
  0) :
16697
 
     ;; #(
16698
 
  2) :
16699
 
     ;; #(
16700
 
  *) :
16701
 
     ;;
16702
 
esac
16703
 
fi
16704
 
 if test "$have_doxygen" = yes; then
16705
 
  HAVE_DOXYGEN_TRUE=
16706
 
  HAVE_DOXYGEN_FALSE='#'
16707
 
else
16708
 
  HAVE_DOXYGEN_TRUE='#'
16709
 
  HAVE_DOXYGEN_FALSE=
16710
 
fi
16711
 
 
16712
 
 
16713
 
 
16714
 
# Checks for libraries.
16715
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
16716
 
$as_echo_n "checking for rint in -lm... " >&6; }
16717
 
if ${ac_cv_lib_m_rint+:} false; then :
16718
 
  $as_echo_n "(cached) " >&6
16719
 
else
16720
 
  ac_check_lib_save_LIBS=$LIBS
16721
 
LIBS="-lm  $LIBS"
16722
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723
 
/* end confdefs.h.  */
16724
 
 
16725
 
/* Override any GCC internal prototype to avoid an error.
16726
 
   Use char because int might match the return type of a GCC
16727
 
   builtin and then its argument prototype would still apply.  */
16728
 
#ifdef __cplusplus
16729
 
extern "C"
16730
 
#endif
16731
 
char rint ();
16732
 
int
16733
 
main ()
16734
 
{
16735
 
return rint ();
16736
 
  ;
16737
 
  return 0;
16738
 
}
16739
 
_ACEOF
16740
 
if ac_fn_c_try_link "$LINENO"; then :
16741
 
  ac_cv_lib_m_rint=yes
16742
 
else
16743
 
  ac_cv_lib_m_rint=no
16744
 
fi
16745
 
rm -f core conftest.err conftest.$ac_objext \
16746
 
    conftest$ac_exeext conftest.$ac_ext
16747
 
LIBS=$ac_check_lib_save_LIBS
16748
 
fi
16749
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
16750
 
$as_echo "$ac_cv_lib_m_rint" >&6; }
16751
 
if test "x$ac_cv_lib_m_rint" = xyes; then :
16752
 
  cat >>confdefs.h <<_ACEOF
16753
 
#define HAVE_LIBM 1
16754
 
_ACEOF
16755
 
 
16756
 
  LIBS="-lm $LIBS"
16757
 
 
16758
 
fi
16759
 
 
16760
 
 
16761
 
# Obtain compiler/linker options from server and required extensions
16762
 
 
16763
 
pkg_failed=no
16764
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
16765
 
$as_echo_n "checking for XORG... " >&6; }
16766
 
 
16767
 
if test -n "$XORG_CFLAGS"; then
16768
 
    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
16769
 
 elif test -n "$PKG_CONFIG"; then
16770
 
    if test -n "$PKG_CONFIG" && \
16771
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto\""; } >&5
16772
 
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto") 2>&5
16773
 
  ac_status=$?
16774
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16775
 
  test $ac_status = 0; }; then
16776
 
  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>/dev/null`
16777
 
                      test "x$?" != "x0" && pkg_failed=yes
16778
 
else
16779
 
  pkg_failed=yes
16780
 
fi
16781
 
 else
16782
 
    pkg_failed=untried
16783
 
fi
16784
 
if test -n "$XORG_LIBS"; then
16785
 
    pkg_cv_XORG_LIBS="$XORG_LIBS"
16786
 
 elif test -n "$PKG_CONFIG"; then
16787
 
    if test -n "$PKG_CONFIG" && \
16788
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto\""; } >&5
16789
 
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto") 2>&5
16790
 
  ac_status=$?
16791
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16792
 
  test $ac_status = 0; }; then
16793
 
  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>/dev/null`
16794
 
                      test "x$?" != "x0" && pkg_failed=yes
16795
 
else
16796
 
  pkg_failed=yes
16797
 
fi
16798
 
 else
16799
 
    pkg_failed=untried
16800
 
fi
16801
 
 
16802
 
 
16803
 
 
16804
 
if test $pkg_failed = yes; then
16805
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806
 
$as_echo "no" >&6; }
16807
 
 
16808
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16809
 
        _pkg_short_errors_supported=yes
16810
 
else
16811
 
        _pkg_short_errors_supported=no
16812
 
fi
16813
 
        if test $_pkg_short_errors_supported = yes; then
16814
 
                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>&1`
16815
 
        else
16816
 
                XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>&1`
16817
 
        fi
16818
 
        # Put the nasty error message in config.log where it belongs
16819
 
        echo "$XORG_PKG_ERRORS" >&5
16820
 
 
16821
 
        as_fn_error $? "Package requirements (xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto) were not met:
16822
 
 
16823
 
$XORG_PKG_ERRORS
16824
 
 
16825
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16826
 
installed software in a non-standard prefix.
16827
 
 
16828
 
Alternatively, you may set the environment variables XORG_CFLAGS
16829
 
and XORG_LIBS to avoid the need to call pkg-config.
16830
 
See the pkg-config man page for more details." "$LINENO" 5
16831
 
elif test $pkg_failed = untried; then
16832
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833
 
$as_echo "no" >&6; }
16834
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16835
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16836
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16837
 
is in your PATH or set the PKG_CONFIG environment variable to the full
16838
 
path to pkg-config.
16839
 
 
16840
 
Alternatively, you may set the environment variables XORG_CFLAGS
16841
 
and XORG_LIBS to avoid the need to call pkg-config.
16842
 
See the pkg-config man page for more details.
16843
 
 
16844
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16845
 
See \`config.log' for more details" "$LINENO" 5; }
16846
 
else
16847
 
        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
16848
 
        XORG_LIBS=$pkg_cv_XORG_LIBS
16849
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850
 
$as_echo "yes" >&6; }
16851
 
 
16852
 
fi
16853
 
 
16854
 
# Obtain compiler/linker options for the xsetwacom tool
16855
 
 
16856
 
pkg_failed=no
16857
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
16858
 
$as_echo_n "checking for X11... " >&6; }
16859
 
 
16860
 
if test -n "$X11_CFLAGS"; then
16861
 
    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16862
 
 elif test -n "$PKG_CONFIG"; then
16863
 
    if test -n "$PKG_CONFIG" && \
16864
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama\""; } >&5
16865
 
  ($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama") 2>&5
16866
 
  ac_status=$?
16867
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868
 
  test $ac_status = 0; }; then
16869
 
  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xi xrandr xinerama" 2>/dev/null`
16870
 
                      test "x$?" != "x0" && pkg_failed=yes
16871
 
else
16872
 
  pkg_failed=yes
16873
 
fi
16874
 
 else
16875
 
    pkg_failed=untried
16876
 
fi
16877
 
if test -n "$X11_LIBS"; then
16878
 
    pkg_cv_X11_LIBS="$X11_LIBS"
16879
 
 elif test -n "$PKG_CONFIG"; then
16880
 
    if test -n "$PKG_CONFIG" && \
16881
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama\""; } >&5
16882
 
  ($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama") 2>&5
16883
 
  ac_status=$?
16884
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885
 
  test $ac_status = 0; }; then
16886
 
  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xi xrandr xinerama" 2>/dev/null`
16887
 
                      test "x$?" != "x0" && pkg_failed=yes
16888
 
else
16889
 
  pkg_failed=yes
16890
 
fi
16891
 
 else
16892
 
    pkg_failed=untried
16893
 
fi
16894
 
 
16895
 
 
16896
 
 
16897
 
if test $pkg_failed = yes; then
16898
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899
 
$as_echo "no" >&6; }
16900
 
 
16901
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16902
 
        _pkg_short_errors_supported=yes
16903
 
else
16904
 
        _pkg_short_errors_supported=no
16905
 
fi
16906
 
        if test $_pkg_short_errors_supported = yes; then
16907
 
                X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xi xrandr xinerama" 2>&1`
16908
 
        else
16909
 
                X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xi xrandr xinerama" 2>&1`
16910
 
        fi
16911
 
        # Put the nasty error message in config.log where it belongs
16912
 
        echo "$X11_PKG_ERRORS" >&5
16913
 
 
16914
 
        as_fn_error $? "Package requirements (x11 xi xrandr xinerama) were not met:
16915
 
 
16916
 
$X11_PKG_ERRORS
16917
 
 
16918
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16919
 
installed software in a non-standard prefix.
16920
 
 
16921
 
Alternatively, you may set the environment variables X11_CFLAGS
16922
 
and X11_LIBS to avoid the need to call pkg-config.
16923
 
See the pkg-config man page for more details." "$LINENO" 5
16924
 
elif test $pkg_failed = untried; then
16925
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926
 
$as_echo "no" >&6; }
16927
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16928
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16929
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16930
 
is in your PATH or set the PKG_CONFIG environment variable to the full
16931
 
path to pkg-config.
16932
 
 
16933
 
Alternatively, you may set the environment variables X11_CFLAGS
16934
 
and X11_LIBS to avoid the need to call pkg-config.
16935
 
See the pkg-config man page for more details.
16936
 
 
16937
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16938
 
See \`config.log' for more details" "$LINENO" 5; }
16939
 
else
16940
 
        X11_CFLAGS=$pkg_cv_X11_CFLAGS
16941
 
        X11_LIBS=$pkg_cv_X11_LIBS
16942
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16943
 
$as_echo "yes" >&6; }
16944
 
 
16945
 
fi
16946
 
 
16947
 
# Obtain compiler/linker options for libudev used by ISDV4 code
16948
 
 
16949
 
pkg_failed=no
16950
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
16951
 
$as_echo_n "checking for UDEV... " >&6; }
16952
 
 
16953
 
if test -n "$UDEV_CFLAGS"; then
16954
 
    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
16955
 
 elif test -n "$PKG_CONFIG"; then
16956
 
    if test -n "$PKG_CONFIG" && \
16957
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
16958
 
  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
16959
 
  ac_status=$?
16960
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961
 
  test $ac_status = 0; }; then
16962
 
  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
16963
 
                      test "x$?" != "x0" && pkg_failed=yes
16964
 
else
16965
 
  pkg_failed=yes
16966
 
fi
16967
 
 else
16968
 
    pkg_failed=untried
16969
 
fi
16970
 
if test -n "$UDEV_LIBS"; then
16971
 
    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
16972
 
 elif test -n "$PKG_CONFIG"; then
16973
 
    if test -n "$PKG_CONFIG" && \
16974
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
16975
 
  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
16976
 
  ac_status=$?
16977
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16978
 
  test $ac_status = 0; }; then
16979
 
  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
16980
 
                      test "x$?" != "x0" && pkg_failed=yes
16981
 
else
16982
 
  pkg_failed=yes
16983
 
fi
16984
 
 else
16985
 
    pkg_failed=untried
16986
 
fi
16987
 
 
16988
 
 
16989
 
 
16990
 
if test $pkg_failed = yes; then
16991
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992
 
$as_echo "no" >&6; }
16993
 
 
16994
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16995
 
        _pkg_short_errors_supported=yes
16996
 
else
16997
 
        _pkg_short_errors_supported=no
16998
 
fi
16999
 
        if test $_pkg_short_errors_supported = yes; then
17000
 
                UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
17001
 
        else
17002
 
                UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
17003
 
        fi
17004
 
        # Put the nasty error message in config.log where it belongs
17005
 
        echo "$UDEV_PKG_ERRORS" >&5
17006
 
 
17007
 
        as_fn_error $? "Package requirements (libudev) were not met:
17008
 
 
17009
 
$UDEV_PKG_ERRORS
17010
 
 
17011
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17012
 
installed software in a non-standard prefix.
17013
 
 
17014
 
Alternatively, you may set the environment variables UDEV_CFLAGS
17015
 
and UDEV_LIBS to avoid the need to call pkg-config.
17016
 
See the pkg-config man page for more details." "$LINENO" 5
17017
 
elif test $pkg_failed = untried; then
17018
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17019
 
$as_echo "no" >&6; }
17020
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17021
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17022
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17023
 
is in your PATH or set the PKG_CONFIG environment variable to the full
17024
 
path to pkg-config.
17025
 
 
17026
 
Alternatively, you may set the environment variables UDEV_CFLAGS
17027
 
and UDEV_LIBS to avoid the need to call pkg-config.
17028
 
See the pkg-config man page for more details.
17029
 
 
17030
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17031
 
See \`config.log' for more details" "$LINENO" 5; }
17032
 
else
17033
 
        UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17034
 
        UDEV_LIBS=$pkg_cv_UDEV_LIBS
17035
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17036
 
$as_echo "yes" >&6; }
17037
 
 
17038
 
fi
17039
 
 
17040
 
# X Server SDK location is required to install wacom header files
17041
 
# This location is also relayed in the xorg-wacom.pc file
17042
 
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
17043
 
 
17044
 
# Workaround overriding sdkdir to be able to create a tarball when user has no
17045
 
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
17046
 
 
17047
 
# Check whether --with-sdkdir was given.
17048
 
if test "${with_sdkdir+set}" = set; then :
17049
 
  withval=$with_sdkdir; sdkdir="$withval"
17050
 
fi
17051
 
 
17052
 
 
17053
 
 
17054
 
DRIVER_NAME=wacom
17055
 
 
17056
 
 
17057
 
# -----------------------------------------------------------------------------
17058
 
#                       Configuration options
17059
 
# -----------------------------------------------------------------------------
17060
 
# Define a configure option for code debugging
17061
 
# Check whether --enable-debug was given.
17062
 
if test "${enable_debug+set}" = set; then :
17063
 
  enableval=$enable_debug; DEBUGGING=$enableval
17064
 
else
17065
 
  DEBUGGING=yes
17066
 
fi
17067
 
 
17068
 
 
17069
 
# Define the C preprocessor macro DEBUG in config.h
17070
 
if test "x$DEBUGGING" = xyes; then
17071
 
 
17072
 
$as_echo "#define DEBUG 1" >>confdefs.h
17073
 
 
17074
 
fi
17075
 
 
17076
 
# Define a configure option for an alternate input module directory
17077
 
 
17078
 
# Check whether --with-xorg-module-dir was given.
17079
 
if test "${with_xorg_module_dir+set}" = set; then :
17080
 
  withval=$with_xorg_module_dir; moduledir="$withval"
17081
 
else
17082
 
  moduledir="$libdir/xorg/modules"
17083
 
fi
17084
 
 
17085
 
inputdir=${moduledir}/input
17086
 
 
17087
 
 
17088
 
# Define a configure option for an alternate X Server configuration directory
17089
 
sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
17090
 
 
17091
 
# Check whether --with-xorg-conf-dir was given.
17092
 
if test "${with_xorg_conf_dir+set}" = set; then :
17093
 
  withval=$with_xorg_conf_dir; configdir="$withval"
17094
 
else
17095
 
  configdir="$sysconfigdir"
17096
 
fi
17097
 
 
17098
 
 
17099
 
 if test "x$configdir" != "x"; then
17100
 
  HAS_XORG_CONF_DIR_TRUE=
17101
 
  HAS_XORG_CONF_DIR_FALSE='#'
17102
 
else
17103
 
  HAS_XORG_CONF_DIR_TRUE='#'
17104
 
  HAS_XORG_CONF_DIR_FALSE=
17105
 
fi
17106
 
 
17107
 
 
17108
 
# Check whether --enable-unit-tests was given.
17109
 
if test "${enable_unit_tests+set}" = set; then :
17110
 
  enableval=$enable_unit_tests; UNITTESTS=$enableval
17111
 
else
17112
 
  UNITTESTS=auto
17113
 
fi
17114
 
 
17115
 
 
17116
 
# If unittests aren't explicitly disabled, check for required support
17117
 
if test "x$UNITTESTS" != xno ; then
17118
 
       # Check if linker supports -wrap, passed via compiler flags
17119
 
       # When cross-compiling, reports no, since unit tests run from
17120
 
       # "make check", so would be running on build machine,  not target
17121
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -wrap" >&5
17122
 
$as_echo_n "checking whether the linker supports -wrap... " >&6; }
17123
 
       save_LDFLAGS="$LDFLAGS"
17124
 
       LDFLAGS="$LDFLAGS -Wl,-wrap,exit"
17125
 
       if test "$cross_compiling" = yes; then :
17126
 
  linker_can_wrap="no"
17127
 
else
17128
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129
 
/* end confdefs.h.  */
17130
 
 
17131
 
        void __wrap_exit (int s)
17132
 
        {
17133
 
            __real_exit (0);
17134
 
        }
17135
 
int
17136
 
main ()
17137
 
{
17138
 
exit (1);
17139
 
  ;
17140
 
  return 0;
17141
 
}
17142
 
_ACEOF
17143
 
if ac_fn_c_try_run "$LINENO"; then :
17144
 
  linker_can_wrap="yes"
17145
 
else
17146
 
  linker_can_wrap="no"
17147
 
fi
17148
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17149
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17150
 
fi
17151
 
 
17152
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_can_wrap" >&5
17153
 
$as_echo "$linker_can_wrap" >&6; }
17154
 
       LDFLAGS="$save_LDFLAGS"
17155
 
fi
17156
 
 
17157
 
if test "x$UNITTESTS" = xauto; then
17158
 
       if test "x$linker_can_wrap" = xyes; then
17159
 
           UNITTESTS=yes
17160
 
       else
17161
 
           UNITTESTS=no
17162
 
       fi
17163
 
fi
17164
 
if test "x$UNITTESTS" = xyes; then
17165
 
       if test "x$linker_can_wrap" = xno; then
17166
 
           as_fn_error $? "ld -wrap support required to build unit tests" "$LINENO" 5
17167
 
       fi
17168
 
 
17169
 
$as_echo "#define UNITTESTS 1" >>confdefs.h
17170
 
 
17171
 
fi
17172
 
 if test "x$UNITTESTS" = xyes; then
17173
 
  UNITTESTS_TRUE=
17174
 
  UNITTESTS_FALSE='#'
17175
 
else
17176
 
  UNITTESTS_TRUE='#'
17177
 
  UNITTESTS_FALSE=
17178
 
fi
17179
 
 
17180
 
 
17181
 
 
17182
 
 
17183
 
# -----------------------------------------------------------------------------
17184
 
 
17185
 
ac_config_files="$ac_config_files Makefile conf/Makefile doc/Makefile doc/doxygen.conf src/Makefile man/Makefile include/Makefile tools/Makefile test/Makefile xorg-wacom.pc"
17186
 
 
17187
 
cat >confcache <<\_ACEOF
17188
 
# This file is a shell script that caches the results of configure
17189
 
# tests run on this system so they can be shared between configure
17190
 
# scripts and configure runs, see configure's option --config-cache.
17191
 
# It is not useful on other systems.  If it contains results you don't
17192
 
# want to keep, you may remove or edit it.
17193
 
#
17194
 
# config.status only pays attention to the cache file if you give it
17195
 
# the --recheck option to rerun configure.
17196
 
#
17197
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17198
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17199
 
# following values.
17200
 
 
17201
 
_ACEOF
17202
 
 
17203
 
# The following way of writing the cache mishandles newlines in values,
17204
 
# but we know of no workaround that is simple, portable, and efficient.
17205
 
# So, we kill variables containing newlines.
17206
 
# Ultrix sh set writes to stderr and can't be redirected directly,
17207
 
# and sets the high bit in the cache file unless we assign to the vars.
17208
 
(
17209
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17210
 
    eval ac_val=\$$ac_var
17211
 
    case $ac_val in #(
17212
 
    *${as_nl}*)
17213
 
      case $ac_var in #(
17214
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17215
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17216
 
      esac
17217
 
      case $ac_var in #(
17218
 
      _ | IFS | as_nl) ;; #(
17219
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17220
 
      *) { eval $ac_var=; unset $ac_var;} ;;
17221
 
      esac ;;
17222
 
    esac
17223
 
  done
17224
 
 
17225
 
  (set) 2>&1 |
17226
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17227
 
    *${as_nl}ac_space=\ *)
17228
 
      # `set' does not quote correctly, so add quotes: double-quote
17229
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
17230
 
      sed -n \
17231
 
        "s/'/'\\\\''/g;
17232
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17233
 
      ;; #(
17234
 
    *)
17235
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17236
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17237
 
      ;;
17238
 
    esac |
17239
 
    sort
17240
 
) |
17241
 
  sed '
17242
 
     /^ac_cv_env_/b end
17243
 
     t clear
17244
 
     :clear
17245
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17246
 
     t end
17247
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17248
 
     :end' >>confcache
17249
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17250
 
  if test -w "$cache_file"; then
17251
 
    if test "x$cache_file" != "x/dev/null"; then
17252
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17253
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
17254
 
      if test ! -f "$cache_file" || test -h "$cache_file"; then
17255
 
        cat confcache >"$cache_file"
17256
 
      else
17257
 
        case $cache_file in #(
17258
 
        */* | ?:*)
17259
 
          mv -f confcache "$cache_file"$$ &&
17260
 
          mv -f "$cache_file"$$ "$cache_file" ;; #(
17261
 
        *)
17262
 
          mv -f confcache "$cache_file" ;;
17263
 
        esac
17264
 
      fi
17265
 
    fi
17266
 
  else
17267
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17268
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17269
 
  fi
17270
 
fi
17271
 
rm -f confcache
17272
 
 
17273
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17274
 
# Let make expand exec_prefix.
17275
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17276
 
 
17277
 
DEFS=-DHAVE_CONFIG_H
17278
 
 
17279
 
ac_libobjs=
17280
 
ac_ltlibobjs=
17281
 
U=
17282
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17283
 
  # 1. Remove the extension, and $U if already installed.
17284
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17285
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17286
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17287
 
  #    will be set to the directory where LIBOBJS objects are built.
17288
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17289
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17290
 
done
17291
 
LIBOBJS=$ac_libobjs
17292
 
 
17293
 
LTLIBOBJS=$ac_ltlibobjs
17294
 
 
17295
 
 
17296
 
 if test -n "$EXEEXT"; then
17297
 
  am__EXEEXT_TRUE=
17298
 
  am__EXEEXT_FALSE='#'
17299
 
else
17300
 
  am__EXEEXT_TRUE='#'
17301
 
  am__EXEEXT_FALSE=
17302
 
fi
17303
 
 
17304
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17305
 
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17306
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17307
 
fi
17308
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17309
 
  as_fn_error $? "conditional \"AMDEP\" was never defined.
17310
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17311
 
fi
17312
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17313
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17314
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17315
 
fi
17316
 
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
17317
 
  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
17318
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17319
 
fi
17320
 
if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
17321
 
  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
17322
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17323
 
fi
17324
 
if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
17325
 
  as_fn_error $? "conditional \"UNITTESTS\" was never defined.
17326
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17327
 
fi
17328
 
 
17329
 
: "${CONFIG_STATUS=./config.status}"
17330
 
ac_write_fail=0
17331
 
ac_clean_files_save=$ac_clean_files
17332
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17333
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17334
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17335
 
as_write_fail=0
17336
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17337
 
#! $SHELL
17338
 
# Generated by $as_me.
17339
 
# Run this file to recreate the current configuration.
17340
 
# Compiler output produced by configure, useful for debugging
17341
 
# configure, is in config.log if it exists.
17342
 
 
17343
 
debug=false
17344
 
ac_cs_recheck=false
17345
 
ac_cs_silent=false
17346
 
 
17347
 
SHELL=\${CONFIG_SHELL-$SHELL}
17348
 
export SHELL
17349
 
_ASEOF
17350
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17351
 
## -------------------- ##
17352
 
## M4sh Initialization. ##
17353
 
## -------------------- ##
17354
 
 
17355
 
# Be more Bourne compatible
17356
 
DUALCASE=1; export DUALCASE # for MKS sh
17357
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17358
 
  emulate sh
17359
 
  NULLCMD=:
17360
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17361
 
  # is contrary to our usage.  Disable this feature.
17362
 
  alias -g '${1+"$@"}'='"$@"'
17363
 
  setopt NO_GLOB_SUBST
17364
 
else
17365
 
  case `(set -o) 2>/dev/null` in #(
17366
 
  *posix*) :
17367
 
    set -o posix ;; #(
17368
 
  *) :
17369
 
     ;;
17370
 
esac
17371
 
fi
17372
 
 
17373
 
 
17374
 
as_nl='
17375
 
'
17376
 
export as_nl
17377
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17378
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17379
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17380
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17381
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
17382
 
# but without wasting forks for bash or zsh.
17383
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
17384
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17385
 
  as_echo='print -r --'
17386
 
  as_echo_n='print -rn --'
17387
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17388
 
  as_echo='printf %s\n'
17389
 
  as_echo_n='printf %s'
17390
 
else
17391
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17392
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17393
 
    as_echo_n='/usr/ucb/echo -n'
17394
 
  else
17395
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17396
 
    as_echo_n_body='eval
17397
 
      arg=$1;
17398
 
      case $arg in #(
17399
 
      *"$as_nl"*)
17400
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
17401
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17402
 
      esac;
17403
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17404
 
    '
17405
 
    export as_echo_n_body
17406
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
17407
 
  fi
17408
 
  export as_echo_body
17409
 
  as_echo='sh -c $as_echo_body as_echo'
17410
 
fi
17411
 
 
17412
 
# The user is always right.
17413
 
if test "${PATH_SEPARATOR+set}" != set; then
17414
 
  PATH_SEPARATOR=:
17415
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17416
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17417
 
      PATH_SEPARATOR=';'
17418
 
  }
17419
 
fi
17420
 
 
17421
 
 
17422
 
# IFS
17423
 
# We need space, tab and new line, in precisely that order.  Quoting is
17424
 
# there to prevent editors from complaining about space-tab.
17425
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17426
 
# splitting by setting IFS to empty value.)
17427
 
IFS=" ""        $as_nl"
17428
 
 
17429
 
# Find who we are.  Look in the path if we contain no directory separator.
17430
 
as_myself=
17431
 
case $0 in #((
17432
 
  *[\\/]* ) as_myself=$0 ;;
17433
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17434
 
for as_dir in $PATH
17435
 
do
17436
 
  IFS=$as_save_IFS
17437
 
  test -z "$as_dir" && as_dir=.
17438
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17439
 
  done
17440
 
IFS=$as_save_IFS
17441
 
 
17442
 
     ;;
17443
 
esac
17444
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
17445
 
# in which case we are not to be found in the path.
17446
 
if test "x$as_myself" = x; then
17447
 
  as_myself=$0
17448
 
fi
17449
 
if test ! -f "$as_myself"; then
17450
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17451
 
  exit 1
17452
 
fi
17453
 
 
17454
 
# Unset variables that we do not need and which cause bugs (e.g. in
17455
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17456
 
# suppresses any "Segmentation fault" message there.  '((' could
17457
 
# trigger a bug in pdksh 5.2.14.
17458
 
for as_var in BASH_ENV ENV MAIL MAILPATH
17459
 
do eval test x\${$as_var+set} = xset \
17460
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17461
 
done
17462
 
PS1='$ '
17463
 
PS2='> '
17464
 
PS4='+ '
17465
 
 
17466
 
# NLS nuisances.
17467
 
LC_ALL=C
17468
 
export LC_ALL
17469
 
LANGUAGE=C
17470
 
export LANGUAGE
17471
 
 
17472
 
# CDPATH.
17473
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17474
 
 
17475
 
 
17476
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
17477
 
# ----------------------------------------
17478
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17479
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17480
 
# script with STATUS, using 1 if that was 0.
17481
 
as_fn_error ()
17482
 
{
17483
 
  as_status=$1; test $as_status -eq 0 && as_status=1
17484
 
  if test "$4"; then
17485
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17486
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17487
 
  fi
17488
 
  $as_echo "$as_me: error: $2" >&2
17489
 
  as_fn_exit $as_status
17490
 
} # as_fn_error
17491
 
 
17492
 
 
17493
 
# as_fn_set_status STATUS
17494
 
# -----------------------
17495
 
# Set $? to STATUS, without forking.
17496
 
as_fn_set_status ()
17497
 
{
17498
 
  return $1
17499
 
} # as_fn_set_status
17500
 
 
17501
 
# as_fn_exit STATUS
17502
 
# -----------------
17503
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17504
 
as_fn_exit ()
17505
 
{
17506
 
  set +e
17507
 
  as_fn_set_status $1
17508
 
  exit $1
17509
 
} # as_fn_exit
17510
 
 
17511
 
# as_fn_unset VAR
17512
 
# ---------------
17513
 
# Portably unset VAR.
17514
 
as_fn_unset ()
17515
 
{
17516
 
  { eval $1=; unset $1;}
17517
 
}
17518
 
as_unset=as_fn_unset
17519
 
# as_fn_append VAR VALUE
17520
 
# ----------------------
17521
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
17522
 
# advantage of any shell optimizations that allow amortized linear growth over
17523
 
# repeated appends, instead of the typical quadratic growth present in naive
17524
 
# implementations.
17525
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17526
 
  eval 'as_fn_append ()
17527
 
  {
17528
 
    eval $1+=\$2
17529
 
  }'
17530
 
else
17531
 
  as_fn_append ()
17532
 
  {
17533
 
    eval $1=\$$1\$2
17534
 
  }
17535
 
fi # as_fn_append
17536
 
 
17537
 
# as_fn_arith ARG...
17538
 
# ------------------
17539
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
17540
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17541
 
# must be portable across $(()) and expr.
17542
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17543
 
  eval 'as_fn_arith ()
17544
 
  {
17545
 
    as_val=$(( $* ))
17546
 
  }'
17547
 
else
17548
 
  as_fn_arith ()
17549
 
  {
17550
 
    as_val=`expr "$@" || test $? -eq 1`
17551
 
  }
17552
 
fi # as_fn_arith
17553
 
 
17554
 
 
17555
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
17556
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17557
 
  as_expr=expr
17558
 
else
17559
 
  as_expr=false
17560
 
fi
17561
 
 
17562
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17563
 
  as_basename=basename
17564
 
else
17565
 
  as_basename=false
17566
 
fi
17567
 
 
17568
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17569
 
  as_dirname=dirname
17570
 
else
17571
 
  as_dirname=false
17572
 
fi
17573
 
 
17574
 
as_me=`$as_basename -- "$0" ||
17575
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17576
 
         X"$0" : 'X\(//\)$' \| \
17577
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17578
 
$as_echo X/"$0" |
17579
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
17580
 
            s//\1/
17581
 
            q
17582
 
          }
17583
 
          /^X\/\(\/\/\)$/{
17584
 
            s//\1/
17585
 
            q
17586
 
          }
17587
 
          /^X\/\(\/\).*/{
17588
 
            s//\1/
17589
 
            q
17590
 
          }
17591
 
          s/.*/./; q'`
17592
 
 
17593
 
# Avoid depending upon Character Ranges.
17594
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17595
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17596
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17597
 
as_cr_digits='0123456789'
17598
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
17599
 
 
17600
 
ECHO_C= ECHO_N= ECHO_T=
17601
 
case `echo -n x` in #(((((
17602
 
-n*)
17603
 
  case `echo 'xy\c'` in
17604
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17605
 
  xy)  ECHO_C='\c';;
17606
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17607
 
       ECHO_T=' ';;
17608
 
  esac;;
17609
 
*)
17610
 
  ECHO_N='-n';;
17611
 
esac
17612
 
 
17613
 
rm -f conf$$ conf$$.exe conf$$.file
17614
 
if test -d conf$$.dir; then
17615
 
  rm -f conf$$.dir/conf$$.file
17616
 
else
17617
 
  rm -f conf$$.dir
17618
 
  mkdir conf$$.dir 2>/dev/null
17619
 
fi
17620
 
if (echo >conf$$.file) 2>/dev/null; then
17621
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
17622
 
    as_ln_s='ln -s'
17623
 
    # ... but there are two gotchas:
17624
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17625
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17626
 
    # In both cases, we have to default to `cp -p'.
17627
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17628
 
      as_ln_s='cp -p'
17629
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
17630
 
    as_ln_s=ln
17631
 
  else
17632
 
    as_ln_s='cp -p'
17633
 
  fi
17634
 
else
17635
 
  as_ln_s='cp -p'
17636
 
fi
17637
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17638
 
rmdir conf$$.dir 2>/dev/null
17639
 
 
17640
 
 
17641
 
# as_fn_mkdir_p
17642
 
# -------------
17643
 
# Create "$as_dir" as a directory, including parents if necessary.
17644
 
as_fn_mkdir_p ()
17645
 
{
17646
 
 
17647
 
  case $as_dir in #(
17648
 
  -*) as_dir=./$as_dir;;
17649
 
  esac
17650
 
  test -d "$as_dir" || eval $as_mkdir_p || {
17651
 
    as_dirs=
17652
 
    while :; do
17653
 
      case $as_dir in #(
17654
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17655
 
      *) as_qdir=$as_dir;;
17656
 
      esac
17657
 
      as_dirs="'$as_qdir' $as_dirs"
17658
 
      as_dir=`$as_dirname -- "$as_dir" ||
17659
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17660
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
17661
 
         X"$as_dir" : 'X\(//\)$' \| \
17662
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17663
 
$as_echo X"$as_dir" |
17664
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17665
 
            s//\1/
17666
 
            q
17667
 
          }
17668
 
          /^X\(\/\/\)[^/].*/{
17669
 
            s//\1/
17670
 
            q
17671
 
          }
17672
 
          /^X\(\/\/\)$/{
17673
 
            s//\1/
17674
 
            q
17675
 
          }
17676
 
          /^X\(\/\).*/{
17677
 
            s//\1/
17678
 
            q
17679
 
          }
17680
 
          s/.*/./; q'`
17681
 
      test -d "$as_dir" && break
17682
 
    done
17683
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
17684
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17685
 
 
17686
 
 
17687
 
} # as_fn_mkdir_p
17688
 
if mkdir -p . 2>/dev/null; then
17689
 
  as_mkdir_p='mkdir -p "$as_dir"'
17690
 
else
17691
 
  test -d ./-p && rmdir ./-p
17692
 
  as_mkdir_p=false
17693
 
fi
17694
 
 
17695
 
if test -x / >/dev/null 2>&1; then
17696
 
  as_test_x='test -x'
17697
 
else
17698
 
  if ls -dL / >/dev/null 2>&1; then
17699
 
    as_ls_L_option=L
17700
 
  else
17701
 
    as_ls_L_option=
17702
 
  fi
17703
 
  as_test_x='
17704
 
    eval sh -c '\''
17705
 
      if test -d "$1"; then
17706
 
        test -d "$1/.";
17707
 
      else
17708
 
        case $1 in #(
17709
 
        -*)set "./$1";;
17710
 
        esac;
17711
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17712
 
        ???[sx]*):;;*)false;;esac;fi
17713
 
    '\'' sh
17714
 
  '
17715
 
fi
17716
 
as_executable_p=$as_test_x
17717
 
 
17718
 
# Sed expression to map a string onto a valid CPP name.
17719
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17720
 
 
17721
 
# Sed expression to map a string onto a valid variable name.
17722
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17723
 
 
17724
 
 
17725
 
exec 6>&1
17726
 
## ----------------------------------- ##
17727
 
## Main body of $CONFIG_STATUS script. ##
17728
 
## ----------------------------------- ##
17729
 
_ASEOF
17730
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17731
 
 
17732
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17733
 
# Save the log message, to keep $0 and so on meaningful, and to
17734
 
# report actual input values of CONFIG_FILES etc. instead of their
17735
 
# values after options handling.
17736
 
ac_log="
17737
 
This file was extended by xf86-input-wacom $as_me 0.14.0, which was
17738
 
generated by GNU Autoconf 2.68.  Invocation command line was
17739
 
 
17740
 
  CONFIG_FILES    = $CONFIG_FILES
17741
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
17742
 
  CONFIG_LINKS    = $CONFIG_LINKS
17743
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
17744
 
  $ $0 $@
17745
 
 
17746
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
17747
 
"
17748
 
 
17749
 
_ACEOF
17750
 
 
17751
 
case $ac_config_files in *"
17752
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
17753
 
esac
17754
 
 
17755
 
case $ac_config_headers in *"
17756
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17757
 
esac
17758
 
 
17759
 
 
17760
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17761
 
# Files that config.status was made for.
17762
 
config_files="$ac_config_files"
17763
 
config_headers="$ac_config_headers"
17764
 
config_commands="$ac_config_commands"
17765
 
 
17766
 
_ACEOF
17767
 
 
17768
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17769
 
ac_cs_usage="\
17770
 
\`$as_me' instantiates files and other configuration actions
17771
 
from templates according to the current configuration.  Unless the files
17772
 
and actions are specified as TAGs, all are instantiated by default.
17773
 
 
17774
 
Usage: $0 [OPTION]... [TAG]...
17775
 
 
17776
 
  -h, --help       print this help, then exit
17777
 
  -V, --version    print version number and configuration settings, then exit
17778
 
      --config     print configuration, then exit
17779
 
  -q, --quiet, --silent
17780
 
                   do not print progress messages
17781
 
  -d, --debug      don't remove temporary files
17782
 
      --recheck    update $as_me by reconfiguring in the same conditions
17783
 
      --file=FILE[:TEMPLATE]
17784
 
                   instantiate the configuration file FILE
17785
 
      --header=FILE[:TEMPLATE]
17786
 
                   instantiate the configuration header FILE
17787
 
 
17788
 
Configuration files:
17789
 
$config_files
17790
 
 
17791
 
Configuration headers:
17792
 
$config_headers
17793
 
 
17794
 
Configuration commands:
17795
 
$config_commands
17796
 
 
17797
 
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
17798
 
 
17799
 
_ACEOF
17800
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17801
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17802
 
ac_cs_version="\\
17803
 
xf86-input-wacom config.status 0.14.0
17804
 
configured by $0, generated by GNU Autoconf 2.68,
17805
 
  with options \\"\$ac_cs_config\\"
17806
 
 
17807
 
Copyright (C) 2010 Free Software Foundation, Inc.
17808
 
This config.status script is free software; the Free Software Foundation
17809
 
gives unlimited permission to copy, distribute and modify it."
17810
 
 
17811
 
ac_pwd='$ac_pwd'
17812
 
srcdir='$srcdir'
17813
 
INSTALL='$INSTALL'
17814
 
MKDIR_P='$MKDIR_P'
17815
 
AWK='$AWK'
17816
 
test -n "\$AWK" || AWK=awk
17817
 
_ACEOF
17818
 
 
17819
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17820
 
# The default lists apply if the user does not specify any file.
17821
 
ac_need_defaults=:
17822
 
while test $# != 0
17823
 
do
17824
 
  case $1 in
17825
 
  --*=?*)
17826
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17827
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17828
 
    ac_shift=:
17829
 
    ;;
17830
 
  --*=)
17831
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17832
 
    ac_optarg=
17833
 
    ac_shift=:
17834
 
    ;;
17835
 
  *)
17836
 
    ac_option=$1
17837
 
    ac_optarg=$2
17838
 
    ac_shift=shift
17839
 
    ;;
17840
 
  esac
17841
 
 
17842
 
  case $ac_option in
17843
 
  # Handling of the options.
17844
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17845
 
    ac_cs_recheck=: ;;
17846
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17847
 
    $as_echo "$ac_cs_version"; exit ;;
17848
 
  --config | --confi | --conf | --con | --co | --c )
17849
 
    $as_echo "$ac_cs_config"; exit ;;
17850
 
  --debug | --debu | --deb | --de | --d | -d )
17851
 
    debug=: ;;
17852
 
  --file | --fil | --fi | --f )
17853
 
    $ac_shift
17854
 
    case $ac_optarg in
17855
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17856
 
    '') as_fn_error $? "missing file argument" ;;
17857
 
    esac
17858
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
17859
 
    ac_need_defaults=false;;
17860
 
  --header | --heade | --head | --hea )
17861
 
    $ac_shift
17862
 
    case $ac_optarg in
17863
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17864
 
    esac
17865
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17866
 
    ac_need_defaults=false;;
17867
 
  --he | --h)
17868
 
    # Conflict between --help and --header
17869
 
    as_fn_error $? "ambiguous option: \`$1'
17870
 
Try \`$0 --help' for more information.";;
17871
 
  --help | --hel | -h )
17872
 
    $as_echo "$ac_cs_usage"; exit ;;
17873
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17874
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17875
 
    ac_cs_silent=: ;;
17876
 
 
17877
 
  # This is an error.
17878
 
  -*) as_fn_error $? "unrecognized option: \`$1'
17879
 
Try \`$0 --help' for more information." ;;
17880
 
 
17881
 
  *) as_fn_append ac_config_targets " $1"
17882
 
     ac_need_defaults=false ;;
17883
 
 
17884
 
  esac
17885
 
  shift
17886
 
done
17887
 
 
17888
 
ac_configure_extra_args=
17889
 
 
17890
 
if $ac_cs_silent; then
17891
 
  exec 6>/dev/null
17892
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
17893
 
fi
17894
 
 
17895
 
_ACEOF
17896
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17897
 
if \$ac_cs_recheck; then
17898
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17899
 
  shift
17900
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17901
 
  CONFIG_SHELL='$SHELL'
17902
 
  export CONFIG_SHELL
17903
 
  exec "\$@"
17904
 
fi
17905
 
 
17906
 
_ACEOF
17907
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17908
 
exec 5>>config.log
17909
 
{
17910
 
  echo
17911
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17912
 
## Running $as_me. ##
17913
 
_ASBOX
17914
 
  $as_echo "$ac_log"
17915
 
} >&5
17916
 
 
17917
 
_ACEOF
17918
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919
 
#
17920
 
# INIT-COMMANDS
17921
 
#
17922
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17923
 
 
17924
 
 
17925
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
17926
 
# if CDPATH is set.
17927
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17928
 
 
17929
 
sed_quote_subst='$sed_quote_subst'
17930
 
double_quote_subst='$double_quote_subst'
17931
 
delay_variable_subst='$delay_variable_subst'
17932
 
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17933
 
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17934
 
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17935
 
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17936
 
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17937
 
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17938
 
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17939
 
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17940
 
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17941
 
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17942
 
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17943
 
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17944
 
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17945
 
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17946
 
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17947
 
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17948
 
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17949
 
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17950
 
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17951
 
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17952
 
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17953
 
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17954
 
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17955
 
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17956
 
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17957
 
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17958
 
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17959
 
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17960
 
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17961
 
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17962
 
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17963
 
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17964
 
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17965
 
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17966
 
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17967
 
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17968
 
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17969
 
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17970
 
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17971
 
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17972
 
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17973
 
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17974
 
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17975
 
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17976
 
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17977
 
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17978
 
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17979
 
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17980
 
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17981
 
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17982
 
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17983
 
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17984
 
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17985
 
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17986
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17987
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17988
 
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"`'
17989
 
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17990
 
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17991
 
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17992
 
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17993
 
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17994
 
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17995
 
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17996
 
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17997
 
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17998
 
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17999
 
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18000
 
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18001
 
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18002
 
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18003
 
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18004
 
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18005
 
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18006
 
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18007
 
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18008
 
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18009
 
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18010
 
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18011
 
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18012
 
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18013
 
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18014
 
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18015
 
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18016
 
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18017
 
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18018
 
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18019
 
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18020
 
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18021
 
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18022
 
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18023
 
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18024
 
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18025
 
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18026
 
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18027
 
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18028
 
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18029
 
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18030
 
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18031
 
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18032
 
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18033
 
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18034
 
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18035
 
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18036
 
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18037
 
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18038
 
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18039
 
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18040
 
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18041
 
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18042
 
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18043
 
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18044
 
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18045
 
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18046
 
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18047
 
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18048
 
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18049
 
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18050
 
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18051
 
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18052
 
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18053
 
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18054
 
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18055
 
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18056
 
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18057
 
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18058
 
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18059
 
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18060
 
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18061
 
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18062
 
 
18063
 
LTCC='$LTCC'
18064
 
LTCFLAGS='$LTCFLAGS'
18065
 
compiler='$compiler_DEFAULT'
18066
 
 
18067
 
# A function that is used when there is no print builtin or printf.
18068
 
func_fallback_echo ()
18069
 
{
18070
 
  eval 'cat <<_LTECHO_EOF
18071
 
\$1
18072
 
_LTECHO_EOF'
18073
 
}
18074
 
 
18075
 
# Quote evaled strings.
18076
 
for var in SHELL \
18077
 
ECHO \
18078
 
PATH_SEPARATOR \
18079
 
SED \
18080
 
GREP \
18081
 
EGREP \
18082
 
FGREP \
18083
 
LD \
18084
 
NM \
18085
 
LN_S \
18086
 
lt_SP2NL \
18087
 
lt_NL2SP \
18088
 
reload_flag \
18089
 
OBJDUMP \
18090
 
deplibs_check_method \
18091
 
file_magic_cmd \
18092
 
file_magic_glob \
18093
 
want_nocaseglob \
18094
 
DLLTOOL \
18095
 
sharedlib_from_linklib_cmd \
18096
 
AR \
18097
 
AR_FLAGS \
18098
 
archiver_list_spec \
18099
 
STRIP \
18100
 
RANLIB \
18101
 
CC \
18102
 
CFLAGS \
18103
 
compiler \
18104
 
lt_cv_sys_global_symbol_pipe \
18105
 
lt_cv_sys_global_symbol_to_cdecl \
18106
 
lt_cv_sys_global_symbol_to_c_name_address \
18107
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18108
 
nm_file_list_spec \
18109
 
lt_prog_compiler_no_builtin_flag \
18110
 
lt_prog_compiler_pic \
18111
 
lt_prog_compiler_wl \
18112
 
lt_prog_compiler_static \
18113
 
lt_cv_prog_compiler_c_o \
18114
 
need_locks \
18115
 
MANIFEST_TOOL \
18116
 
DSYMUTIL \
18117
 
NMEDIT \
18118
 
LIPO \
18119
 
OTOOL \
18120
 
OTOOL64 \
18121
 
shrext_cmds \
18122
 
export_dynamic_flag_spec \
18123
 
whole_archive_flag_spec \
18124
 
compiler_needs_object \
18125
 
with_gnu_ld \
18126
 
allow_undefined_flag \
18127
 
no_undefined_flag \
18128
 
hardcode_libdir_flag_spec \
18129
 
hardcode_libdir_separator \
18130
 
exclude_expsyms \
18131
 
include_expsyms \
18132
 
file_list_spec \
18133
 
variables_saved_for_relink \
18134
 
libname_spec \
18135
 
library_names_spec \
18136
 
soname_spec \
18137
 
install_override_mode \
18138
 
finish_eval \
18139
 
old_striplib \
18140
 
striplib; do
18141
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18142
 
    *[\\\\\\\`\\"\\\$]*)
18143
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18144
 
      ;;
18145
 
    *)
18146
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18147
 
      ;;
18148
 
    esac
18149
 
done
18150
 
 
18151
 
# Double-quote double-evaled strings.
18152
 
for var in reload_cmds \
18153
 
old_postinstall_cmds \
18154
 
old_postuninstall_cmds \
18155
 
old_archive_cmds \
18156
 
extract_expsyms_cmds \
18157
 
old_archive_from_new_cmds \
18158
 
old_archive_from_expsyms_cmds \
18159
 
archive_cmds \
18160
 
archive_expsym_cmds \
18161
 
module_cmds \
18162
 
module_expsym_cmds \
18163
 
export_symbols_cmds \
18164
 
prelink_cmds \
18165
 
postlink_cmds \
18166
 
postinstall_cmds \
18167
 
postuninstall_cmds \
18168
 
finish_cmds \
18169
 
sys_lib_search_path_spec \
18170
 
sys_lib_dlsearch_path_spec; do
18171
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18172
 
    *[\\\\\\\`\\"\\\$]*)
18173
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18174
 
      ;;
18175
 
    *)
18176
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18177
 
      ;;
18178
 
    esac
18179
 
done
18180
 
 
18181
 
ac_aux_dir='$ac_aux_dir'
18182
 
xsi_shell='$xsi_shell'
18183
 
lt_shell_append='$lt_shell_append'
18184
 
 
18185
 
# See if we are running on zsh, and set the options which allow our
18186
 
# commands through without removal of \ escapes INIT.
18187
 
if test -n "\${ZSH_VERSION+set}" ; then
18188
 
   setopt NO_GLOB_SUBST
18189
 
fi
18190
 
 
18191
 
 
18192
 
    PACKAGE='$PACKAGE'
18193
 
    VERSION='$VERSION'
18194
 
    TIMESTAMP='$TIMESTAMP'
18195
 
    RM='$RM'
18196
 
    ofile='$ofile'
18197
 
 
18198
 
 
18199
 
 
18200
 
 
18201
 
_ACEOF
18202
 
 
18203
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204
 
 
18205
 
# Handling of arguments.
18206
 
for ac_config_target in $ac_config_targets
18207
 
do
18208
 
  case $ac_config_target in
18209
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18210
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18211
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18212
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18213
 
    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
18214
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18215
 
    "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
18216
 
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18217
 
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18218
 
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18219
 
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18220
 
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18221
 
    "xorg-wacom.pc") CONFIG_FILES="$CONFIG_FILES xorg-wacom.pc" ;;
18222
 
 
18223
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18224
 
  esac
18225
 
done
18226
 
 
18227
 
 
18228
 
# If the user did not use the arguments to specify the items to instantiate,
18229
 
# then the envvar interface is used.  Set only those that are not.
18230
 
# We use the long form for the default assignment because of an extremely
18231
 
# bizarre bug on SunOS 4.1.3.
18232
 
if $ac_need_defaults; then
18233
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18234
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18235
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18236
 
fi
18237
 
 
18238
 
# Have a temporary directory for convenience.  Make it in the build tree
18239
 
# simply because there is no reason against having it here, and in addition,
18240
 
# creating and moving files from /tmp can sometimes cause problems.
18241
 
# Hook for its removal unless debugging.
18242
 
# Note that there is a small window in which the directory will not be cleaned:
18243
 
# after its creation but before its name has been assigned to `$tmp'.
18244
 
$debug ||
18245
 
{
18246
 
  tmp= ac_tmp=
18247
 
  trap 'exit_status=$?
18248
 
  : "${ac_tmp:=$tmp}"
18249
 
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18250
 
' 0
18251
 
  trap 'as_fn_exit 1' 1 2 13 15
18252
 
}
18253
 
# Create a (secure) tmp directory for tmp files.
18254
 
 
18255
 
{
18256
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18257
 
  test -d "$tmp"
18258
 
}  ||
18259
 
{
18260
 
  tmp=./conf$$-$RANDOM
18261
 
  (umask 077 && mkdir "$tmp")
18262
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18263
 
ac_tmp=$tmp
18264
 
 
18265
 
# Set up the scripts for CONFIG_FILES section.
18266
 
# No need to generate them if there are no CONFIG_FILES.
18267
 
# This happens for instance with `./config.status config.h'.
18268
 
if test -n "$CONFIG_FILES"; then
18269
 
 
18270
 
 
18271
 
ac_cr=`echo X | tr X '\015'`
18272
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18273
 
# But we know of no other shell where ac_cr would be empty at this
18274
 
# point, so we can use a bashism as a fallback.
18275
 
if test "x$ac_cr" = x; then
18276
 
  eval ac_cr=\$\'\\r\'
18277
 
fi
18278
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18279
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18280
 
  ac_cs_awk_cr='\\r'
18281
 
else
18282
 
  ac_cs_awk_cr=$ac_cr
18283
 
fi
18284
 
 
18285
 
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18286
 
_ACEOF
18287
 
 
18288
 
 
18289
 
{
18290
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18291
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18292
 
  echo "_ACEOF"
18293
 
} >conf$$subs.sh ||
18294
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18295
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18296
 
ac_delim='%!_!# '
18297
 
for ac_last_try in false false false false false :; do
18298
 
  . ./conf$$subs.sh ||
18299
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18300
 
 
18301
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18302
 
  if test $ac_delim_n = $ac_delim_num; then
18303
 
    break
18304
 
  elif $ac_last_try; then
18305
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18306
 
  else
18307
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18308
 
  fi
18309
 
done
18310
 
rm -f conf$$subs.sh
18311
 
 
18312
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18313
 
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18314
 
_ACEOF
18315
 
sed -n '
18316
 
h
18317
 
s/^/S["/; s/!.*/"]=/
18318
 
p
18319
 
g
18320
 
s/^[^!]*!//
18321
 
:repl
18322
 
t repl
18323
 
s/'"$ac_delim"'$//
18324
 
t delim
18325
 
:nl
18326
 
h
18327
 
s/\(.\{148\}\)..*/\1/
18328
 
t more1
18329
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18330
 
p
18331
 
n
18332
 
b repl
18333
 
:more1
18334
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18335
 
p
18336
 
g
18337
 
s/.\{148\}//
18338
 
t nl
18339
 
:delim
18340
 
h
18341
 
s/\(.\{148\}\)..*/\1/
18342
 
t more2
18343
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
18344
 
p
18345
 
b
18346
 
:more2
18347
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18348
 
p
18349
 
g
18350
 
s/.\{148\}//
18351
 
t delim
18352
 
' <conf$$subs.awk | sed '
18353
 
/^[^""]/{
18354
 
  N
18355
 
  s/\n//
18356
 
}
18357
 
' >>$CONFIG_STATUS || ac_write_fail=1
18358
 
rm -f conf$$subs.awk
18359
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18360
 
_ACAWK
18361
 
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18362
 
  for (key in S) S_is_set[key] = 1
18363
 
  FS = ""
18364
 
 
18365
 
}
18366
 
{
18367
 
  line = $ 0
18368
 
  nfields = split(line, field, "@")
18369
 
  substed = 0
18370
 
  len = length(field[1])
18371
 
  for (i = 2; i < nfields; i++) {
18372
 
    key = field[i]
18373
 
    keylen = length(key)
18374
 
    if (S_is_set[key]) {
18375
 
      value = S[key]
18376
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18377
 
      len += length(value) + length(field[++i])
18378
 
      substed = 1
18379
 
    } else
18380
 
      len += 1 + keylen
18381
 
  }
18382
 
 
18383
 
  print line
18384
 
}
18385
 
 
18386
 
_ACAWK
18387
 
_ACEOF
18388
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18390
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18391
 
else
18392
 
  cat
18393
 
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18394
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18395
 
_ACEOF
18396
 
 
18397
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18398
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18399
 
# trailing colons and then remove the whole line if VPATH becomes empty
18400
 
# (actually we leave an empty line to preserve line numbers).
18401
 
if test "x$srcdir" = x.; then
18402
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18403
 
h
18404
 
s///
18405
 
s/^/:/
18406
 
s/[      ]*$/:/
18407
 
s/:\$(srcdir):/:/g
18408
 
s/:\${srcdir}:/:/g
18409
 
s/:@srcdir@:/:/g
18410
 
s/^:*//
18411
 
s/:*$//
18412
 
x
18413
 
s/\(=[   ]*\).*/\1/
18414
 
G
18415
 
s/\n//
18416
 
s/^[^=]*=[       ]*$//
18417
 
}'
18418
 
fi
18419
 
 
18420
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18421
 
fi # test -n "$CONFIG_FILES"
18422
 
 
18423
 
# Set up the scripts for CONFIG_HEADERS section.
18424
 
# No need to generate them if there are no CONFIG_HEADERS.
18425
 
# This happens for instance with `./config.status Makefile'.
18426
 
if test -n "$CONFIG_HEADERS"; then
18427
 
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18428
 
BEGIN {
18429
 
_ACEOF
18430
 
 
18431
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
18432
 
# here-document in config.status, that substitutes the proper values into
18433
 
# config.h.in to produce config.h.
18434
 
 
18435
 
# Create a delimiter string that does not exist in confdefs.h, to ease
18436
 
# handling of long lines.
18437
 
ac_delim='%!_!# '
18438
 
for ac_last_try in false false :; do
18439
 
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18440
 
  if test -z "$ac_tt"; then
18441
 
    break
18442
 
  elif $ac_last_try; then
18443
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18444
 
  else
18445
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18446
 
  fi
18447
 
done
18448
 
 
18449
 
# For the awk script, D is an array of macro values keyed by name,
18450
 
# likewise P contains macro parameters if any.  Preserve backslash
18451
 
# newline sequences.
18452
 
 
18453
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18454
 
sed -n '
18455
 
s/.\{148\}/&'"$ac_delim"'/g
18456
 
t rset
18457
 
:rset
18458
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
18459
 
t def
18460
 
d
18461
 
:def
18462
 
s/\\$//
18463
 
t bsnl
18464
 
s/["\\]/\\&/g
18465
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18466
 
D["\1"]=" \3"/p
18467
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18468
 
d
18469
 
:bsnl
18470
 
s/["\\]/\\&/g
18471
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18472
 
D["\1"]=" \3\\\\\\n"\\/p
18473
 
t cont
18474
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18475
 
t cont
18476
 
d
18477
 
:cont
18478
 
n
18479
 
s/.\{148\}/&'"$ac_delim"'/g
18480
 
t clear
18481
 
:clear
18482
 
s/\\$//
18483
 
t bsnlc
18484
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18485
 
d
18486
 
:bsnlc
18487
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18488
 
b cont
18489
 
' <confdefs.h | sed '
18490
 
s/'"$ac_delim"'/"\\\
18491
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18492
 
 
18493
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494
 
  for (key in D) D_is_set[key] = 1
18495
 
  FS = ""
18496
 
}
18497
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18498
 
  line = \$ 0
18499
 
  split(line, arg, " ")
18500
 
  if (arg[1] == "#") {
18501
 
    defundef = arg[2]
18502
 
    mac1 = arg[3]
18503
 
  } else {
18504
 
    defundef = substr(arg[1], 2)
18505
 
    mac1 = arg[2]
18506
 
  }
18507
 
  split(mac1, mac2, "(") #)
18508
 
  macro = mac2[1]
18509
 
  prefix = substr(line, 1, index(line, defundef) - 1)
18510
 
  if (D_is_set[macro]) {
18511
 
    # Preserve the white space surrounding the "#".
18512
 
    print prefix "define", macro P[macro] D[macro]
18513
 
    next
18514
 
  } else {
18515
 
    # Replace #undef with comments.  This is necessary, for example,
18516
 
    # in the case of _POSIX_SOURCE, which is predefined and required
18517
 
    # on some systems where configure will not decide to define it.
18518
 
    if (defundef == "undef") {
18519
 
      print "/*", prefix defundef, macro, "*/"
18520
 
      next
18521
 
    }
18522
 
  }
18523
 
}
18524
 
{ print }
18525
 
_ACAWK
18526
 
_ACEOF
18527
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18528
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18529
 
fi # test -n "$CONFIG_HEADERS"
18530
 
 
18531
 
 
18532
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18533
 
shift
18534
 
for ac_tag
18535
 
do
18536
 
  case $ac_tag in
18537
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
18538
 
  esac
18539
 
  case $ac_mode$ac_tag in
18540
 
  :[FHL]*:*);;
18541
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18542
 
  :[FH]-) ac_tag=-:-;;
18543
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18544
 
  esac
18545
 
  ac_save_IFS=$IFS
18546
 
  IFS=:
18547
 
  set x $ac_tag
18548
 
  IFS=$ac_save_IFS
18549
 
  shift
18550
 
  ac_file=$1
18551
 
  shift
18552
 
 
18553
 
  case $ac_mode in
18554
 
  :L) ac_source=$1;;
18555
 
  :[FH])
18556
 
    ac_file_inputs=
18557
 
    for ac_f
18558
 
    do
18559
 
      case $ac_f in
18560
 
      -) ac_f="$ac_tmp/stdin";;
18561
 
      *) # Look for the file first in the build tree, then in the source tree
18562
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
18563
 
         # because $ac_f cannot contain `:'.
18564
 
         test -f "$ac_f" ||
18565
 
           case $ac_f in
18566
 
           [\\/$]*) false;;
18567
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18568
 
           esac ||
18569
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18570
 
      esac
18571
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18572
 
      as_fn_append ac_file_inputs " '$ac_f'"
18573
 
    done
18574
 
 
18575
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
18576
 
    # use $as_me), people would be surprised to read:
18577
 
    #    /* config.h.  Generated by config.status.  */
18578
 
    configure_input='Generated from '`
18579
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18580
 
        `' by configure.'
18581
 
    if test x"$ac_file" != x-; then
18582
 
      configure_input="$ac_file.  $configure_input"
18583
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18584
 
$as_echo "$as_me: creating $ac_file" >&6;}
18585
 
    fi
18586
 
    # Neutralize special characters interpreted by sed in replacement strings.
18587
 
    case $configure_input in #(
18588
 
    *\&* | *\|* | *\\* )
18589
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
18590
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18591
 
    *) ac_sed_conf_input=$configure_input;;
18592
 
    esac
18593
 
 
18594
 
    case $ac_tag in
18595
 
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18596
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18597
 
    esac
18598
 
    ;;
18599
 
  esac
18600
 
 
18601
 
  ac_dir=`$as_dirname -- "$ac_file" ||
18602
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18603
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
18604
 
         X"$ac_file" : 'X\(//\)$' \| \
18605
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18606
 
$as_echo X"$ac_file" |
18607
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18608
 
            s//\1/
18609
 
            q
18610
 
          }
18611
 
          /^X\(\/\/\)[^/].*/{
18612
 
            s//\1/
18613
 
            q
18614
 
          }
18615
 
          /^X\(\/\/\)$/{
18616
 
            s//\1/
18617
 
            q
18618
 
          }
18619
 
          /^X\(\/\).*/{
18620
 
            s//\1/
18621
 
            q
18622
 
          }
18623
 
          s/.*/./; q'`
18624
 
  as_dir="$ac_dir"; as_fn_mkdir_p
18625
 
  ac_builddir=.
18626
 
 
18627
 
case "$ac_dir" in
18628
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18629
 
*)
18630
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18631
 
  # A ".." for each directory in $ac_dir_suffix.
18632
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18633
 
  case $ac_top_builddir_sub in
18634
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18635
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18636
 
  esac ;;
18637
 
esac
18638
 
ac_abs_top_builddir=$ac_pwd
18639
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
18640
 
# for backward compatibility:
18641
 
ac_top_builddir=$ac_top_build_prefix
18642
 
 
18643
 
case $srcdir in
18644
 
  .)  # We are building in place.
18645
 
    ac_srcdir=.
18646
 
    ac_top_srcdir=$ac_top_builddir_sub
18647
 
    ac_abs_top_srcdir=$ac_pwd ;;
18648
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
18649
 
    ac_srcdir=$srcdir$ac_dir_suffix;
18650
 
    ac_top_srcdir=$srcdir
18651
 
    ac_abs_top_srcdir=$srcdir ;;
18652
 
  *) # Relative name.
18653
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18654
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
18655
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18656
 
esac
18657
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18658
 
 
18659
 
 
18660
 
  case $ac_mode in
18661
 
  :F)
18662
 
  #
18663
 
  # CONFIG_FILE
18664
 
  #
18665
 
 
18666
 
  case $INSTALL in
18667
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18668
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18669
 
  esac
18670
 
  ac_MKDIR_P=$MKDIR_P
18671
 
  case $MKDIR_P in
18672
 
  [\\/$]* | ?:[\\/]* ) ;;
18673
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18674
 
  esac
18675
 
_ACEOF
18676
 
 
18677
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18678
 
# If the template does not know about datarootdir, expand it.
18679
 
# FIXME: This hack should be removed a few years after 2.60.
18680
 
ac_datarootdir_hack=; ac_datarootdir_seen=
18681
 
ac_sed_dataroot='
18682
 
/datarootdir/ {
18683
 
  p
18684
 
  q
18685
 
}
18686
 
/@datadir@/p
18687
 
/@docdir@/p
18688
 
/@infodir@/p
18689
 
/@localedir@/p
18690
 
/@mandir@/p'
18691
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18692
 
*datarootdir*) ac_datarootdir_seen=yes;;
18693
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18694
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18695
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18696
 
_ACEOF
18697
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18698
 
  ac_datarootdir_hack='
18699
 
  s&@datadir@&$datadir&g
18700
 
  s&@docdir@&$docdir&g
18701
 
  s&@infodir@&$infodir&g
18702
 
  s&@localedir@&$localedir&g
18703
 
  s&@mandir@&$mandir&g
18704
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
18705
 
esac
18706
 
_ACEOF
18707
 
 
18708
 
# Neutralize VPATH when `$srcdir' = `.'.
18709
 
# Shell code in configure.ac might set extrasub.
18710
 
# FIXME: do we really want to maintain this feature?
18711
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18712
 
ac_sed_extra="$ac_vpsub
18713
 
$extrasub
18714
 
_ACEOF
18715
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18716
 
:t
18717
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18718
 
s|@configure_input@|$ac_sed_conf_input|;t t
18719
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
18720
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18721
 
s&@srcdir@&$ac_srcdir&;t t
18722
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18723
 
s&@top_srcdir@&$ac_top_srcdir&;t t
18724
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18725
 
s&@builddir@&$ac_builddir&;t t
18726
 
s&@abs_builddir@&$ac_abs_builddir&;t t
18727
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18728
 
s&@INSTALL@&$ac_INSTALL&;t t
18729
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18730
 
$ac_datarootdir_hack
18731
 
"
18732
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18733
 
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18734
 
 
18735
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18736
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18737
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18738
 
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18739
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18740
 
which seems to be undefined.  Please make sure it is defined" >&5
18741
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18742
 
which seems to be undefined.  Please make sure it is defined" >&2;}
18743
 
 
18744
 
  rm -f "$ac_tmp/stdin"
18745
 
  case $ac_file in
18746
 
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18747
 
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18748
 
  esac \
18749
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18750
 
 ;;
18751
 
  :H)
18752
 
  #
18753
 
  # CONFIG_HEADER
18754
 
  #
18755
 
  if test x"$ac_file" != x-; then
18756
 
    {
18757
 
      $as_echo "/* $configure_input  */" \
18758
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18759
 
    } >"$ac_tmp/config.h" \
18760
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18761
 
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18762
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18763
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
18764
 
    else
18765
 
      rm -f "$ac_file"
18766
 
      mv "$ac_tmp/config.h" "$ac_file" \
18767
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18768
 
    fi
18769
 
  else
18770
 
    $as_echo "/* $configure_input  */" \
18771
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18772
 
      || as_fn_error $? "could not create -" "$LINENO" 5
18773
 
  fi
18774
 
# Compute "$ac_file"'s index in $config_headers.
18775
 
_am_arg="$ac_file"
18776
 
_am_stamp_count=1
18777
 
for _am_header in $config_headers :; do
18778
 
  case $_am_header in
18779
 
    $_am_arg | $_am_arg:* )
18780
 
      break ;;
18781
 
    * )
18782
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18783
 
  esac
18784
 
done
18785
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18786
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18787
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
18788
 
         X"$_am_arg" : 'X\(//\)$' \| \
18789
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18790
 
$as_echo X"$_am_arg" |
18791
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18792
 
            s//\1/
18793
 
            q
18794
 
          }
18795
 
          /^X\(\/\/\)[^/].*/{
18796
 
            s//\1/
18797
 
            q
18798
 
          }
18799
 
          /^X\(\/\/\)$/{
18800
 
            s//\1/
18801
 
            q
18802
 
          }
18803
 
          /^X\(\/\).*/{
18804
 
            s//\1/
18805
 
            q
18806
 
          }
18807
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
18808
 
 ;;
18809
 
 
18810
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18811
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
18812
 
 ;;
18813
 
  esac
18814
 
 
18815
 
 
18816
 
  case $ac_file$ac_mode in
18817
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18818
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18819
 
  # are listed without --file.  Let's play safe and only enable the eval
18820
 
  # if we detect the quoting.
18821
 
  case $CONFIG_FILES in
18822
 
  *\'*) eval set x "$CONFIG_FILES" ;;
18823
 
  *)   set x $CONFIG_FILES ;;
18824
 
  esac
18825
 
  shift
18826
 
  for mf
18827
 
  do
18828
 
    # Strip MF so we end up with the name of the file.
18829
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
18830
 
    # Check whether this is an Automake generated Makefile or not.
18831
 
    # We used to match only the files named `Makefile.in', but
18832
 
    # some people rename them; so instead we look at the file content.
18833
 
    # Grep'ing the first line is not enough: some people post-process
18834
 
    # each Makefile.in and add a new line on top of each file to say so.
18835
 
    # Grep'ing the whole file is not good either: AIX grep has a line
18836
 
    # limit of 2048, but all sed's we know have understand at least 4000.
18837
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18838
 
      dirpart=`$as_dirname -- "$mf" ||
18839
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840
 
         X"$mf" : 'X\(//\)[^/]' \| \
18841
 
         X"$mf" : 'X\(//\)$' \| \
18842
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18843
 
$as_echo X"$mf" |
18844
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18845
 
            s//\1/
18846
 
            q
18847
 
          }
18848
 
          /^X\(\/\/\)[^/].*/{
18849
 
            s//\1/
18850
 
            q
18851
 
          }
18852
 
          /^X\(\/\/\)$/{
18853
 
            s//\1/
18854
 
            q
18855
 
          }
18856
 
          /^X\(\/\).*/{
18857
 
            s//\1/
18858
 
            q
18859
 
          }
18860
 
          s/.*/./; q'`
18861
 
    else
18862
 
      continue
18863
 
    fi
18864
 
    # Extract the definition of DEPDIR, am__include, and am__quote
18865
 
    # from the Makefile without running `make'.
18866
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18867
 
    test -z "$DEPDIR" && continue
18868
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18869
 
    test -z "am__include" && continue
18870
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18871
 
    # When using ansi2knr, U may be empty or an underscore; expand it
18872
 
    U=`sed -n 's/^U = //p' < "$mf"`
18873
 
    # Find all dependency output files, they are included files with
18874
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18875
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
18876
 
    # expansion.
18877
 
    for file in `sed -n "
18878
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18879
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18880
 
      # Make sure the directory exists.
18881
 
      test -f "$dirpart/$file" && continue
18882
 
      fdir=`$as_dirname -- "$file" ||
18883
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18884
 
         X"$file" : 'X\(//\)[^/]' \| \
18885
 
         X"$file" : 'X\(//\)$' \| \
18886
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18887
 
$as_echo X"$file" |
18888
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18889
 
            s//\1/
18890
 
            q
18891
 
          }
18892
 
          /^X\(\/\/\)[^/].*/{
18893
 
            s//\1/
18894
 
            q
18895
 
          }
18896
 
          /^X\(\/\/\)$/{
18897
 
            s//\1/
18898
 
            q
18899
 
          }
18900
 
          /^X\(\/\).*/{
18901
 
            s//\1/
18902
 
            q
18903
 
          }
18904
 
          s/.*/./; q'`
18905
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18906
 
      # echo "creating $dirpart/$file"
18907
 
      echo '# dummy' > "$dirpart/$file"
18908
 
    done
18909
 
  done
18910
 
}
18911
 
 ;;
18912
 
    "libtool":C)
18913
 
 
18914
 
    # See if we are running on zsh, and set the options which allow our
18915
 
    # commands through without removal of \ escapes.
18916
 
    if test -n "${ZSH_VERSION+set}" ; then
18917
 
      setopt NO_GLOB_SUBST
18918
 
    fi
18919
 
 
18920
 
    cfgfile="${ofile}T"
18921
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18922
 
    $RM "$cfgfile"
18923
 
 
18924
 
    cat <<_LT_EOF >> "$cfgfile"
18925
 
#! $SHELL
18926
 
 
18927
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18928
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18929
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18930
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18931
 
#
18932
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18933
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18934
 
#                 Foundation, Inc.
18935
 
#   Written by Gordon Matzigkeit, 1996
18936
 
#
18937
 
#   This file is part of GNU Libtool.
18938
 
#
18939
 
# GNU Libtool is free software; you can redistribute it and/or
18940
 
# modify it under the terms of the GNU General Public License as
18941
 
# published by the Free Software Foundation; either version 2 of
18942
 
# the License, or (at your option) any later version.
18943
 
#
18944
 
# As a special exception to the GNU General Public License,
18945
 
# if you distribute this file as part of a program or library that
18946
 
# is built using GNU Libtool, you may include this file under the
18947
 
# same distribution terms that you use for the rest of that program.
18948
 
#
18949
 
# GNU Libtool is distributed in the hope that it will be useful,
18950
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18951
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18952
 
# GNU General Public License for more details.
18953
 
#
18954
 
# You should have received a copy of the GNU General Public License
18955
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
18956
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18957
 
# obtained by writing to the Free Software Foundation, Inc.,
18958
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18959
 
 
18960
 
 
18961
 
# The names of the tagged configurations supported by this script.
18962
 
available_tags=""
18963
 
 
18964
 
# ### BEGIN LIBTOOL CONFIG
18965
 
 
18966
 
# Whether or not to build static libraries.
18967
 
build_old_libs=$enable_static
18968
 
 
18969
 
# Which release of libtool.m4 was used?
18970
 
macro_version=$macro_version
18971
 
macro_revision=$macro_revision
18972
 
 
18973
 
# Whether or not to build shared libraries.
18974
 
build_libtool_libs=$enable_shared
18975
 
 
18976
 
# What type of objects to build.
18977
 
pic_mode=$pic_mode
18978
 
 
18979
 
# Whether or not to optimize for fast installation.
18980
 
fast_install=$enable_fast_install
18981
 
 
18982
 
# Shell to use when invoking shell scripts.
18983
 
SHELL=$lt_SHELL
18984
 
 
18985
 
# An echo program that protects backslashes.
18986
 
ECHO=$lt_ECHO
18987
 
 
18988
 
# The PATH separator for the build system.
18989
 
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18990
 
 
18991
 
# The host system.
18992
 
host_alias=$host_alias
18993
 
host=$host
18994
 
host_os=$host_os
18995
 
 
18996
 
# The build system.
18997
 
build_alias=$build_alias
18998
 
build=$build
18999
 
build_os=$build_os
19000
 
 
19001
 
# A sed program that does not truncate output.
19002
 
SED=$lt_SED
19003
 
 
19004
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19005
 
Xsed="\$SED -e 1s/^X//"
19006
 
 
19007
 
# A grep program that handles long lines.
19008
 
GREP=$lt_GREP
19009
 
 
19010
 
# An ERE matcher.
19011
 
EGREP=$lt_EGREP
19012
 
 
19013
 
# A literal string matcher.
19014
 
FGREP=$lt_FGREP
19015
 
 
19016
 
# A BSD- or MS-compatible name lister.
19017
 
NM=$lt_NM
19018
 
 
19019
 
# Whether we need soft or hard links.
19020
 
LN_S=$lt_LN_S
19021
 
 
19022
 
# What is the maximum length of a command?
19023
 
max_cmd_len=$max_cmd_len
19024
 
 
19025
 
# Object file suffix (normally "o").
19026
 
objext=$ac_objext
19027
 
 
19028
 
# Executable file suffix (normally "").
19029
 
exeext=$exeext
19030
 
 
19031
 
# whether the shell understands "unset".
19032
 
lt_unset=$lt_unset
19033
 
 
19034
 
# turn spaces into newlines.
19035
 
SP2NL=$lt_lt_SP2NL
19036
 
 
19037
 
# turn newlines into spaces.
19038
 
NL2SP=$lt_lt_NL2SP
19039
 
 
19040
 
# convert \$build file names to \$host format.
19041
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
19042
 
 
19043
 
# convert \$build files to toolchain format.
19044
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19045
 
 
19046
 
# An object symbol dumper.
19047
 
OBJDUMP=$lt_OBJDUMP
19048
 
 
19049
 
# Method to check whether dependent libraries are shared objects.
19050
 
deplibs_check_method=$lt_deplibs_check_method
19051
 
 
19052
 
# Command to use when deplibs_check_method = "file_magic".
19053
 
file_magic_cmd=$lt_file_magic_cmd
19054
 
 
19055
 
# How to find potential files when deplibs_check_method = "file_magic".
19056
 
file_magic_glob=$lt_file_magic_glob
19057
 
 
19058
 
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19059
 
want_nocaseglob=$lt_want_nocaseglob
19060
 
 
19061
 
# DLL creation program.
19062
 
DLLTOOL=$lt_DLLTOOL
19063
 
 
19064
 
# Command to associate shared and link libraries.
19065
 
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19066
 
 
19067
 
# The archiver.
19068
 
AR=$lt_AR
19069
 
 
19070
 
# Flags to create an archive.
19071
 
AR_FLAGS=$lt_AR_FLAGS
19072
 
 
19073
 
# How to feed a file listing to the archiver.
19074
 
archiver_list_spec=$lt_archiver_list_spec
19075
 
 
19076
 
# A symbol stripping program.
19077
 
STRIP=$lt_STRIP
19078
 
 
19079
 
# Commands used to install an old-style archive.
19080
 
RANLIB=$lt_RANLIB
19081
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19082
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19083
 
 
19084
 
# Whether to use a lock for old archive extraction.
19085
 
lock_old_archive_extraction=$lock_old_archive_extraction
19086
 
 
19087
 
# A C compiler.
19088
 
LTCC=$lt_CC
19089
 
 
19090
 
# LTCC compiler flags.
19091
 
LTCFLAGS=$lt_CFLAGS
19092
 
 
19093
 
# Take the output of nm and produce a listing of raw symbols and C names.
19094
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19095
 
 
19096
 
# Transform the output of nm in a proper C declaration.
19097
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19098
 
 
19099
 
# Transform the output of nm in a C name address pair.
19100
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19101
 
 
19102
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
19103
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19104
 
 
19105
 
# Specify filename containing input files for \$NM.
19106
 
nm_file_list_spec=$lt_nm_file_list_spec
19107
 
 
19108
 
# The root where to search for dependent libraries,and in which our libraries should be installed.
19109
 
lt_sysroot=$lt_sysroot
19110
 
 
19111
 
# The name of the directory that contains temporary libtool files.
19112
 
objdir=$objdir
19113
 
 
19114
 
# Used to examine libraries when file_magic_cmd begins with "file".
19115
 
MAGIC_CMD=$MAGIC_CMD
19116
 
 
19117
 
# Must we lock files when doing compilation?
19118
 
need_locks=$lt_need_locks
19119
 
 
19120
 
# Manifest tool.
19121
 
MANIFEST_TOOL=$lt_MANIFEST_TOOL
19122
 
 
19123
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19124
 
DSYMUTIL=$lt_DSYMUTIL
19125
 
 
19126
 
# Tool to change global to local symbols on Mac OS X.
19127
 
NMEDIT=$lt_NMEDIT
19128
 
 
19129
 
# Tool to manipulate fat objects and archives on Mac OS X.
19130
 
LIPO=$lt_LIPO
19131
 
 
19132
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19133
 
OTOOL=$lt_OTOOL
19134
 
 
19135
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19136
 
OTOOL64=$lt_OTOOL64
19137
 
 
19138
 
# Old archive suffix (normally "a").
19139
 
libext=$libext
19140
 
 
19141
 
# Shared library suffix (normally ".so").
19142
 
shrext_cmds=$lt_shrext_cmds
19143
 
 
19144
 
# The commands to extract the exported symbol list from a shared archive.
19145
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19146
 
 
19147
 
# Variables whose values should be saved in libtool wrapper scripts and
19148
 
# restored at link time.
19149
 
variables_saved_for_relink=$lt_variables_saved_for_relink
19150
 
 
19151
 
# Do we need the "lib" prefix for modules?
19152
 
need_lib_prefix=$need_lib_prefix
19153
 
 
19154
 
# Do we need a version for libraries?
19155
 
need_version=$need_version
19156
 
 
19157
 
# Library versioning type.
19158
 
version_type=$version_type
19159
 
 
19160
 
# Shared library runtime path variable.
19161
 
runpath_var=$runpath_var
19162
 
 
19163
 
# Shared library path variable.
19164
 
shlibpath_var=$shlibpath_var
19165
 
 
19166
 
# Is shlibpath searched before the hard-coded library search path?
19167
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19168
 
 
19169
 
# Format of library name prefix.
19170
 
libname_spec=$lt_libname_spec
19171
 
 
19172
 
# List of archive names.  First name is the real one, the rest are links.
19173
 
# The last name is the one that the linker finds with -lNAME
19174
 
library_names_spec=$lt_library_names_spec
19175
 
 
19176
 
# The coded name of the library, if different from the real name.
19177
 
soname_spec=$lt_soname_spec
19178
 
 
19179
 
# Permission mode override for installation of shared libraries.
19180
 
install_override_mode=$lt_install_override_mode
19181
 
 
19182
 
# Command to use after installation of a shared archive.
19183
 
postinstall_cmds=$lt_postinstall_cmds
19184
 
 
19185
 
# Command to use after uninstallation of a shared archive.
19186
 
postuninstall_cmds=$lt_postuninstall_cmds
19187
 
 
19188
 
# Commands used to finish a libtool library installation in a directory.
19189
 
finish_cmds=$lt_finish_cmds
19190
 
 
19191
 
# As "finish_cmds", except a single script fragment to be evaled but
19192
 
# not shown.
19193
 
finish_eval=$lt_finish_eval
19194
 
 
19195
 
# Whether we should hardcode library paths into libraries.
19196
 
hardcode_into_libs=$hardcode_into_libs
19197
 
 
19198
 
# Compile-time system search path for libraries.
19199
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19200
 
 
19201
 
# Run-time system search path for libraries.
19202
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19203
 
 
19204
 
# Whether dlopen is supported.
19205
 
dlopen_support=$enable_dlopen
19206
 
 
19207
 
# Whether dlopen of programs is supported.
19208
 
dlopen_self=$enable_dlopen_self
19209
 
 
19210
 
# Whether dlopen of statically linked programs is supported.
19211
 
dlopen_self_static=$enable_dlopen_self_static
19212
 
 
19213
 
# Commands to strip libraries.
19214
 
old_striplib=$lt_old_striplib
19215
 
striplib=$lt_striplib
19216
 
 
19217
 
 
19218
 
# The linker used to build libraries.
19219
 
LD=$lt_LD
19220
 
 
19221
 
# How to create reloadable object files.
19222
 
reload_flag=$lt_reload_flag
19223
 
reload_cmds=$lt_reload_cmds
19224
 
 
19225
 
# Commands used to build an old-style archive.
19226
 
old_archive_cmds=$lt_old_archive_cmds
19227
 
 
19228
 
# A language specific compiler.
19229
 
CC=$lt_compiler
19230
 
 
19231
 
# Is the compiler the GNU compiler?
19232
 
with_gcc=$GCC
19233
 
 
19234
 
# Compiler flag to turn off builtin functions.
19235
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19236
 
 
19237
 
# Additional compiler flags for building library objects.
19238
 
pic_flag=$lt_lt_prog_compiler_pic
19239
 
 
19240
 
# How to pass a linker flag through the compiler.
19241
 
wl=$lt_lt_prog_compiler_wl
19242
 
 
19243
 
# Compiler flag to prevent dynamic linking.
19244
 
link_static_flag=$lt_lt_prog_compiler_static
19245
 
 
19246
 
# Does compiler simultaneously support -c and -o options?
19247
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19248
 
 
19249
 
# Whether or not to add -lc for building shared libraries.
19250
 
build_libtool_need_lc=$archive_cmds_need_lc
19251
 
 
19252
 
# Whether or not to disallow shared libs when runtime libs are static.
19253
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19254
 
 
19255
 
# Compiler flag to allow reflexive dlopens.
19256
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19257
 
 
19258
 
# Compiler flag to generate shared objects directly from archives.
19259
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19260
 
 
19261
 
# Whether the compiler copes with passing no objects directly.
19262
 
compiler_needs_object=$lt_compiler_needs_object
19263
 
 
19264
 
# Create an old-style archive from a shared archive.
19265
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19266
 
 
19267
 
# Create a temporary old-style archive to link instead of a shared archive.
19268
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19269
 
 
19270
 
# Commands used to build a shared archive.
19271
 
archive_cmds=$lt_archive_cmds
19272
 
archive_expsym_cmds=$lt_archive_expsym_cmds
19273
 
 
19274
 
# Commands used to build a loadable module if different from building
19275
 
# a shared archive.
19276
 
module_cmds=$lt_module_cmds
19277
 
module_expsym_cmds=$lt_module_expsym_cmds
19278
 
 
19279
 
# Whether we are building with GNU ld or not.
19280
 
with_gnu_ld=$lt_with_gnu_ld
19281
 
 
19282
 
# Flag that allows shared libraries with undefined symbols to be built.
19283
 
allow_undefined_flag=$lt_allow_undefined_flag
19284
 
 
19285
 
# Flag that enforces no undefined symbols.
19286
 
no_undefined_flag=$lt_no_undefined_flag
19287
 
 
19288
 
# Flag to hardcode \$libdir into a binary during linking.
19289
 
# This must work even if \$libdir does not exist
19290
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19291
 
 
19292
 
# Whether we need a single "-rpath" flag with a separated argument.
19293
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19294
 
 
19295
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19296
 
# DIR into the resulting binary.
19297
 
hardcode_direct=$hardcode_direct
19298
 
 
19299
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19300
 
# DIR into the resulting binary and the resulting library dependency is
19301
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19302
 
# library is relocated.
19303
 
hardcode_direct_absolute=$hardcode_direct_absolute
19304
 
 
19305
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19306
 
# into the resulting binary.
19307
 
hardcode_minus_L=$hardcode_minus_L
19308
 
 
19309
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19310
 
# into the resulting binary.
19311
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
19312
 
 
19313
 
# Set to "yes" if building a shared library automatically hardcodes DIR
19314
 
# into the library and all subsequent libraries and executables linked
19315
 
# against it.
19316
 
hardcode_automatic=$hardcode_automatic
19317
 
 
19318
 
# Set to yes if linker adds runtime paths of dependent libraries
19319
 
# to runtime path list.
19320
 
inherit_rpath=$inherit_rpath
19321
 
 
19322
 
# Whether libtool must link a program against all its dependency libraries.
19323
 
link_all_deplibs=$link_all_deplibs
19324
 
 
19325
 
# Set to "yes" if exported symbols are required.
19326
 
always_export_symbols=$always_export_symbols
19327
 
 
19328
 
# The commands to list exported symbols.
19329
 
export_symbols_cmds=$lt_export_symbols_cmds
19330
 
 
19331
 
# Symbols that should not be listed in the preloaded symbols.
19332
 
exclude_expsyms=$lt_exclude_expsyms
19333
 
 
19334
 
# Symbols that must always be exported.
19335
 
include_expsyms=$lt_include_expsyms
19336
 
 
19337
 
# Commands necessary for linking programs (against libraries) with templates.
19338
 
prelink_cmds=$lt_prelink_cmds
19339
 
 
19340
 
# Commands necessary for finishing linking programs.
19341
 
postlink_cmds=$lt_postlink_cmds
19342
 
 
19343
 
# Specify filename containing input files.
19344
 
file_list_spec=$lt_file_list_spec
19345
 
 
19346
 
# How to hardcode a shared library path into an executable.
19347
 
hardcode_action=$hardcode_action
19348
 
 
19349
 
# ### END LIBTOOL CONFIG
19350
 
 
19351
 
_LT_EOF
19352
 
 
19353
 
  case $host_os in
19354
 
  aix3*)
19355
 
    cat <<\_LT_EOF >> "$cfgfile"
19356
 
# AIX sometimes has problems with the GCC collect2 program.  For some
19357
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
19358
 
# vanish in a puff of smoke.
19359
 
if test "X${COLLECT_NAMES+set}" != Xset; then
19360
 
  COLLECT_NAMES=
19361
 
  export COLLECT_NAMES
19362
 
fi
19363
 
_LT_EOF
19364
 
    ;;
19365
 
  esac
19366
 
 
19367
 
 
19368
 
ltmain="$ac_aux_dir/ltmain.sh"
19369
 
 
19370
 
 
19371
 
  # We use sed instead of cat because bash on DJGPP gets confused if
19372
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19373
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
19374
 
  # is reportedly fixed, but why not run on old versions too?
19375
 
  sed '$q' "$ltmain" >> "$cfgfile" \
19376
 
     || (rm -f "$cfgfile"; exit 1)
19377
 
 
19378
 
  if test x"$xsi_shell" = xyes; then
19379
 
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19380
 
func_dirname ()\
19381
 
{\
19382
 
\    case ${1} in\
19383
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
19384
 
\      *  ) func_dirname_result="${3}" ;;\
19385
 
\    esac\
19386
 
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19387
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19388
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19389
 
test 0 -eq $? || _lt_function_replace_fail=:
19390
 
 
19391
 
 
19392
 
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19393
 
func_basename ()\
19394
 
{\
19395
 
\    func_basename_result="${1##*/}"\
19396
 
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19397
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19398
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19399
 
test 0 -eq $? || _lt_function_replace_fail=:
19400
 
 
19401
 
 
19402
 
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19403
 
func_dirname_and_basename ()\
19404
 
{\
19405
 
\    case ${1} in\
19406
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
19407
 
\      *  ) func_dirname_result="${3}" ;;\
19408
 
\    esac\
19409
 
\    func_basename_result="${1##*/}"\
19410
 
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19411
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19412
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19413
 
test 0 -eq $? || _lt_function_replace_fail=:
19414
 
 
19415
 
 
19416
 
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19417
 
func_stripname ()\
19418
 
{\
19419
 
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19420
 
\    # positional parameters, so assign one to ordinary parameter first.\
19421
 
\    func_stripname_result=${3}\
19422
 
\    func_stripname_result=${func_stripname_result#"${1}"}\
19423
 
\    func_stripname_result=${func_stripname_result%"${2}"}\
19424
 
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19425
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19426
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19427
 
test 0 -eq $? || _lt_function_replace_fail=:
19428
 
 
19429
 
 
19430
 
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19431
 
func_split_long_opt ()\
19432
 
{\
19433
 
\    func_split_long_opt_name=${1%%=*}\
19434
 
\    func_split_long_opt_arg=${1#*=}\
19435
 
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19436
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19437
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19438
 
test 0 -eq $? || _lt_function_replace_fail=:
19439
 
 
19440
 
 
19441
 
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19442
 
func_split_short_opt ()\
19443
 
{\
19444
 
\    func_split_short_opt_arg=${1#??}\
19445
 
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19446
 
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19447
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19448
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19449
 
test 0 -eq $? || _lt_function_replace_fail=:
19450
 
 
19451
 
 
19452
 
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19453
 
func_lo2o ()\
19454
 
{\
19455
 
\    case ${1} in\
19456
 
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19457
 
\      *)    func_lo2o_result=${1} ;;\
19458
 
\    esac\
19459
 
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19460
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19461
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19462
 
test 0 -eq $? || _lt_function_replace_fail=:
19463
 
 
19464
 
 
19465
 
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19466
 
func_xform ()\
19467
 
{\
19468
 
    func_xform_result=${1%.*}.lo\
19469
 
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19470
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19471
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19472
 
test 0 -eq $? || _lt_function_replace_fail=:
19473
 
 
19474
 
 
19475
 
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19476
 
func_arith ()\
19477
 
{\
19478
 
    func_arith_result=$(( $* ))\
19479
 
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19480
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19481
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19482
 
test 0 -eq $? || _lt_function_replace_fail=:
19483
 
 
19484
 
 
19485
 
  sed -e '/^func_len ()$/,/^} # func_len /c\
19486
 
func_len ()\
19487
 
{\
19488
 
    func_len_result=${#1}\
19489
 
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19490
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19491
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19492
 
test 0 -eq $? || _lt_function_replace_fail=:
19493
 
 
19494
 
fi
19495
 
 
19496
 
if test x"$lt_shell_append" = xyes; then
19497
 
  sed -e '/^func_append ()$/,/^} # func_append /c\
19498
 
func_append ()\
19499
 
{\
19500
 
    eval "${1}+=\\${2}"\
19501
 
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19502
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19503
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19504
 
test 0 -eq $? || _lt_function_replace_fail=:
19505
 
 
19506
 
 
19507
 
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19508
 
func_append_quoted ()\
19509
 
{\
19510
 
\    func_quote_for_eval "${2}"\
19511
 
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19512
 
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19513
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
19514
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19515
 
test 0 -eq $? || _lt_function_replace_fail=:
19516
 
 
19517
 
 
19518
 
  # Save a `func_append' function call where possible by direct use of '+='
19519
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19520
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
19521
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19522
 
  test 0 -eq $? || _lt_function_replace_fail=:
19523
 
else
19524
 
  # Save a `func_append' function call even when '+=' is not available
19525
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19526
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
19527
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19528
 
  test 0 -eq $? || _lt_function_replace_fail=:
19529
 
fi
19530
 
 
19531
 
if test x"$_lt_function_replace_fail" = x":"; then
19532
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19533
 
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19534
 
fi
19535
 
 
19536
 
 
19537
 
   mv -f "$cfgfile" "$ofile" ||
19538
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19539
 
  chmod +x "$ofile"
19540
 
 
19541
 
 ;;
19542
 
 
19543
 
  esac
19544
 
done # for ac_tag
19545
 
 
19546
 
 
19547
 
as_fn_exit 0
19548
 
_ACEOF
19549
 
ac_clean_files=$ac_clean_files_save
19550
 
 
19551
 
test $ac_write_fail = 0 ||
19552
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19553
 
 
19554
 
 
19555
 
# configure is writing to config.log, and then calls config.status.
19556
 
# config.status does its own redirection, appending to config.log.
19557
 
# Unfortunately, on DOS this fails, as config.log is still kept open
19558
 
# by configure, so config.status won't be able to write to it; its
19559
 
# output is simply discarded.  So we exec the FD to /dev/null,
19560
 
# effectively closing config.log, so it can be properly (re)opened and
19561
 
# appended to by config.status.  When coming back to configure, we
19562
 
# need to make the FD available again.
19563
 
if test "$no_create" != yes; then
19564
 
  ac_cs_success=:
19565
 
  ac_config_status_args=
19566
 
  test "$silent" = yes &&
19567
 
    ac_config_status_args="$ac_config_status_args --quiet"
19568
 
  exec 5>/dev/null
19569
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19570
 
  exec 5>>config.log
19571
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19572
 
  # would make configure fail if this is the last instruction.
19573
 
  $ac_cs_success || as_fn_exit 1
19574
 
fi
19575
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19576
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19577
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19578
 
fi
19579